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 142 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
153 uint8* dst_frame, int dst_stride_frame, | 153 uint8* dst_frame, int dst_stride_frame, |
154 int width, int height); | 154 int width, int height); |
155 | 155 |
156 LIBYUV_API | 156 LIBYUV_API |
157 int I420ToARGB4444(const uint8* src_y, int src_stride_y, | 157 int I420ToARGB4444(const uint8* src_y, int src_stride_y, |
158 const uint8* src_u, int src_stride_u, | 158 const uint8* src_u, int src_stride_u, |
159 const uint8* src_v, int src_stride_v, | 159 const uint8* src_v, int src_stride_v, |
160 uint8* dst_frame, int dst_stride_frame, | 160 uint8* dst_frame, int dst_stride_frame, |
161 int width, int height); | 161 int width, int height); |
162 | 162 |
163 // Merge separate U and V planes into one interleaved UV plane. | |
164 LIBYUV_API | |
165 int MergeUVPlanes(const uint8* src_u, int src_stride_u, | |
fbarchard1
2016/08/24 17:42:23
move to planar_functions.h
functions in convert fr
| |
166 const uint8* src_v, int src_stride_v, | |
167 uint8* dst_uv, int dst_stride_uv, | |
168 int width, int height); | |
169 | |
163 // Convert I420 to specified format. | 170 // Convert I420 to specified format. |
164 // "dst_sample_stride" is bytes in a row for the destination. Pass 0 if the | 171 // "dst_sample_stride" is bytes in a row for the destination. Pass 0 if the |
165 // buffer has contiguous rows. Can be negative. A multiple of 16 is optimal. | 172 // buffer has contiguous rows. Can be negative. A multiple of 16 is optimal. |
166 LIBYUV_API | 173 LIBYUV_API |
167 int ConvertFromI420(const uint8* y, int y_stride, | 174 int ConvertFromI420(const uint8* y, int y_stride, |
168 const uint8* u, int u_stride, | 175 const uint8* u, int u_stride, |
169 const uint8* v, int v_stride, | 176 const uint8* v, int v_stride, |
170 uint8* dst_sample, int dst_sample_stride, | 177 uint8* dst_sample, int dst_sample_stride, |
171 int width, int height, | 178 int width, int height, |
172 uint32 format); | 179 uint32 format); |
173 | 180 |
174 #ifdef __cplusplus | 181 #ifdef __cplusplus |
175 } // extern "C" | 182 } // extern "C" |
176 } // namespace libyuv | 183 } // namespace libyuv |
177 #endif | 184 #endif |
178 | 185 |
179 #endif // INCLUDE_LIBYUV_CONVERT_FROM_H_ NOLINT | 186 #endif // INCLUDE_LIBYUV_CONVERT_FROM_H_ NOLINT |
OLD | NEW |