Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(105)

Side by Side Diff: include/libyuv/planar_functions.h

Issue 2277603004: Add SplitUVPlanes and MergeUVPlanes (Closed) Base URL: https://chromium.googlesource.com/libyuv/libyuv@master
Patch Set: moved to planar_functions Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright 2011 The LibYuv Project Authors. All rights reserved. 2 * Copyright 2011 The LibYuv Project Authors. All rights reserved.
3 * 3 *
4 * Use of this source code is governed by a BSD-style license 4 * Use of this source code is governed by a BSD-style license
5 * that can be found in the LICENSE file in the root of the source 5 * that can be found in the LICENSE file in the root of the source
6 * tree. An additional intellectual property rights grant can be found 6 * tree. An additional intellectual property rights grant can be found
7 * in the file PATENTS. All contributing project authors may 7 * in the file PATENTS. All contributing project authors may
8 * be found in the AUTHORS file in the root of the source tree. 8 * be found in the AUTHORS file in the root of the source tree.
9 */ 9 */
10 10
(...skipping 21 matching lines...) Expand all
32 void CopyPlane_16(const uint16* src_y, int src_stride_y, 32 void CopyPlane_16(const uint16* src_y, int src_stride_y,
33 uint16* dst_y, int dst_stride_y, 33 uint16* dst_y, int dst_stride_y,
34 int width, int height); 34 int width, int height);
35 35
36 // Set a plane of data to a 32 bit value. 36 // Set a plane of data to a 32 bit value.
37 LIBYUV_API 37 LIBYUV_API
38 void SetPlane(uint8* dst_y, int dst_stride_y, 38 void SetPlane(uint8* dst_y, int dst_stride_y,
39 int width, int height, 39 int width, int height,
40 uint32 value); 40 uint32 value);
41 41
42 // Split interleaved UV plane into separate U and V planes.
43 LIBYUV_API
44 int SplitUVPlane(const uint8* src_uv, int src_stride_uv,
45 uint8* dst_u, int dst_stride_u,
46 uint8* dst_v, int dst_stride_v,
47 int width, int height);
48
49 // Merge separate U and V planes into one interleaved UV plane.
50 LIBYUV_API
51 int MergeUVPlanes(const uint8* src_u, int src_stride_u,
52 const uint8* src_v, int src_stride_v,
53 uint8* dst_uv, int dst_stride_uv,
54 int width, int height);
55
42 // Copy I400. Supports inverting. 56 // Copy I400. Supports inverting.
43 LIBYUV_API 57 LIBYUV_API
44 int I400ToI400(const uint8* src_y, int src_stride_y, 58 int I400ToI400(const uint8* src_y, int src_stride_y,
45 uint8* dst_y, int dst_stride_y, 59 uint8* dst_y, int dst_stride_y,
46 int width, int height); 60 int width, int height);
47 61
48 #define J400ToJ400 I400ToI400 62 #define J400ToJ400 I400ToI400
49 63
50 // Copy I422 to I422. 64 // Copy I422 to I422.
51 #define I422ToI422 I422Copy 65 #define I422ToI422 I422Copy
(...skipping 446 matching lines...) Expand 10 before | Expand all | Expand 10 after
498 int ARGBSobelXY(const uint8* src_argb, int src_stride_argb, 512 int ARGBSobelXY(const uint8* src_argb, int src_stride_argb,
499 uint8* dst_argb, int dst_stride_argb, 513 uint8* dst_argb, int dst_stride_argb,
500 int width, int height); 514 int width, int height);
501 515
502 #ifdef __cplusplus 516 #ifdef __cplusplus
503 } // extern "C" 517 } // extern "C"
504 } // namespace libyuv 518 } // namespace libyuv
505 #endif 519 #endif
506 520
507 #endif // INCLUDE_LIBYUV_PLANAR_FUNCTIONS_H_ NOLINT 521 #endif // INCLUDE_LIBYUV_PLANAR_FUNCTIONS_H_ NOLINT
OLDNEW
« no previous file with comments | « README.chromium ('k') | include/libyuv/row.h » ('j') | include/libyuv/row.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698