OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2012 The LibYuv Project Authors. All rights reserved. | 2 * Copyright 2012 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 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
61 int width, int height); | 61 int width, int height); |
62 | 62 |
63 // Convert I411 to ARGB. | 63 // Convert I411 to ARGB. |
64 LIBYUV_API | 64 LIBYUV_API |
65 int I411ToARGB(const uint8* src_y, int src_stride_y, | 65 int I411ToARGB(const uint8* src_y, int src_stride_y, |
66 const uint8* src_u, int src_stride_u, | 66 const uint8* src_u, int src_stride_u, |
67 const uint8* src_v, int src_stride_v, | 67 const uint8* src_v, int src_stride_v, |
68 uint8* dst_argb, int dst_stride_argb, | 68 uint8* dst_argb, int dst_stride_argb, |
69 int width, int height); | 69 int width, int height); |
70 | 70 |
71 // Convert I400 (grey) to ARGB. | 71 // Convert I400 (grey) to ARGB. Reverse of ARGBToI400. |
72 LIBYUV_API | 72 LIBYUV_API |
73 int I400ToARGB(const uint8* src_y, int src_stride_y, | 73 int I400ToARGB(const uint8* src_y, int src_stride_y, |
74 uint8* dst_argb, int dst_stride_argb, | 74 uint8* dst_argb, int dst_stride_argb, |
75 int width, int height); | 75 int width, int height); |
76 | 76 |
| 77 // Convert J400 (jpeg grey) to ARGB. |
| 78 LIBYUV_API |
| 79 int J400ToARGB(const uint8* src_y, int src_stride_y, |
| 80 uint8* dst_argb, int dst_stride_argb, |
| 81 int width, int height); |
| 82 |
77 // Alias. | 83 // Alias. |
78 #define YToARGB I400ToARGB_Reference | 84 #define YToARGB I400ToARGB |
79 | |
80 // Convert I400 to ARGB. Reverse of ARGBToI400. | |
81 LIBYUV_API | |
82 int I400ToARGB_Reference(const uint8* src_y, int src_stride_y, | |
83 uint8* dst_argb, int dst_stride_argb, | |
84 int width, int height); | |
85 | 85 |
86 // Convert NV12 to ARGB. | 86 // Convert NV12 to ARGB. |
87 LIBYUV_API | 87 LIBYUV_API |
88 int NV12ToARGB(const uint8* src_y, int src_stride_y, | 88 int NV12ToARGB(const uint8* src_y, int src_stride_y, |
89 const uint8* src_uv, int src_stride_uv, | 89 const uint8* src_uv, int src_stride_uv, |
90 uint8* dst_argb, int dst_stride_argb, | 90 uint8* dst_argb, int dst_stride_argb, |
91 int width, int height); | 91 int width, int height); |
92 | 92 |
93 // Convert NV21 to ARGB. | 93 // Convert NV21 to ARGB. |
94 LIBYUV_API | 94 LIBYUV_API |
(...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
222 int crop_width, int crop_height, | 222 int crop_width, int crop_height, |
223 enum RotationMode rotation, | 223 enum RotationMode rotation, |
224 uint32 format); | 224 uint32 format); |
225 | 225 |
226 #ifdef __cplusplus | 226 #ifdef __cplusplus |
227 } // extern "C" | 227 } // extern "C" |
228 } // namespace libyuv | 228 } // namespace libyuv |
229 #endif | 229 #endif |
230 | 230 |
231 #endif // INCLUDE_LIBYUV_CONVERT_ARGB_H_ NOLINT | 231 #endif // INCLUDE_LIBYUV_CONVERT_ARGB_H_ NOLINT |
OLD | NEW |