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 183 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
194 int width, int height); | 194 int width, int height); |
195 | 195 |
196 // RGB12 (R444 fourcc) little endian to I420. | 196 // RGB12 (R444 fourcc) little endian to I420. |
197 LIBYUV_API | 197 LIBYUV_API |
198 int ARGB4444ToI420(const uint8* src_frame, int src_stride_frame, | 198 int ARGB4444ToI420(const uint8* src_frame, int src_stride_frame, |
199 uint8* dst_y, int dst_stride_y, | 199 uint8* dst_y, int dst_stride_y, |
200 uint8* dst_u, int dst_stride_u, | 200 uint8* dst_u, int dst_stride_u, |
201 uint8* dst_v, int dst_stride_v, | 201 uint8* dst_v, int dst_stride_v, |
202 int width, int height); | 202 int width, int height); |
203 | 203 |
204 // Split interleaved UV plane into separate U and V planes. | |
205 LIBYUV_API | |
206 int SplitUVPlane(const uint8* src_uv, int src_stride_uv, | |
fbarchard1
2016/08/24 17:42:23
prefer SplitPlane function name function name for
fbarchard1
2016/08/24 17:42:23
Should be moved to planar_functions.h
| |
207 uint8* dst_u, int dst_stride_u, | |
208 uint8* dst_v, int dst_stride_v, | |
209 int width, int height); | |
210 | |
204 #ifdef HAVE_JPEG | 211 #ifdef HAVE_JPEG |
205 // src_width/height provided by capture. | 212 // src_width/height provided by capture. |
206 // dst_width/height for clipping determine final size. | 213 // dst_width/height for clipping determine final size. |
207 LIBYUV_API | 214 LIBYUV_API |
208 int MJPGToI420(const uint8* sample, size_t sample_size, | 215 int MJPGToI420(const uint8* sample, size_t sample_size, |
209 uint8* dst_y, int dst_stride_y, | 216 uint8* dst_y, int dst_stride_y, |
210 uint8* dst_u, int dst_stride_u, | 217 uint8* dst_u, int dst_stride_u, |
211 uint8* dst_v, int dst_stride_v, | 218 uint8* dst_v, int dst_stride_v, |
212 int src_width, int src_height, | 219 int src_width, int src_height, |
213 int dst_width, int dst_height); | 220 int dst_width, int dst_height); |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
250 int crop_width, int crop_height, | 257 int crop_width, int crop_height, |
251 enum RotationMode rotation, | 258 enum RotationMode rotation, |
252 uint32 format); | 259 uint32 format); |
253 | 260 |
254 #ifdef __cplusplus | 261 #ifdef __cplusplus |
255 } // extern "C" | 262 } // extern "C" |
256 } // namespace libyuv | 263 } // namespace libyuv |
257 #endif | 264 #endif |
258 | 265 |
259 #endif // INCLUDE_LIBYUV_CONVERT_H_ NOLINT | 266 #endif // INCLUDE_LIBYUV_CONVERT_H_ NOLINT |
OLD | NEW |