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 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
64 int width, int height); | 64 int width, int height); |
65 | 65 |
66 // Convert I400 (grey) to I420. | 66 // Convert I400 (grey) to I420. |
67 LIBYUV_API | 67 LIBYUV_API |
68 int I400ToI420(const uint8* src_y, int src_stride_y, | 68 int I400ToI420(const uint8* src_y, int src_stride_y, |
69 uint8* dst_y, int dst_stride_y, | 69 uint8* dst_y, int dst_stride_y, |
70 uint8* dst_u, int dst_stride_u, | 70 uint8* dst_u, int dst_stride_u, |
71 uint8* dst_v, int dst_stride_v, | 71 uint8* dst_v, int dst_stride_v, |
72 int width, int height); | 72 int width, int height); |
73 | 73 |
| 74 #define J400ToJ420 I400ToI420 |
| 75 |
74 // Convert NV12 to I420. | 76 // Convert NV12 to I420. |
75 LIBYUV_API | 77 LIBYUV_API |
76 int NV12ToI420(const uint8* src_y, int src_stride_y, | 78 int NV12ToI420(const uint8* src_y, int src_stride_y, |
77 const uint8* src_uv, int src_stride_uv, | 79 const uint8* src_uv, int src_stride_uv, |
78 uint8* dst_y, int dst_stride_y, | 80 uint8* dst_y, int dst_stride_y, |
79 uint8* dst_u, int dst_stride_u, | 81 uint8* dst_u, int dst_stride_u, |
80 uint8* dst_v, int dst_stride_v, | 82 uint8* dst_v, int dst_stride_v, |
81 int width, int height); | 83 int width, int height); |
82 | 84 |
83 // Convert NV21 to I420. | 85 // Convert NV21 to I420. |
(...skipping 150 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
234 int crop_width, int crop_height, | 236 int crop_width, int crop_height, |
235 enum RotationMode rotation, | 237 enum RotationMode rotation, |
236 uint32 format); | 238 uint32 format); |
237 | 239 |
238 #ifdef __cplusplus | 240 #ifdef __cplusplus |
239 } // extern "C" | 241 } // extern "C" |
240 } // namespace libyuv | 242 } // namespace libyuv |
241 #endif | 243 #endif |
242 | 244 |
243 #endif // INCLUDE_LIBYUV_CONVERT_H_ NOLINT | 245 #endif // INCLUDE_LIBYUV_CONVERT_H_ NOLINT |
OLD | NEW |