OLD | NEW |
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 Loading... |
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 Loading... |
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 |
OLD | NEW |