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 167 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
178 int width, int height); | 178 int width, int height); |
179 | 179 |
180 // RGB12 (R444 fourcc) little endian to I420. | 180 // RGB12 (R444 fourcc) little endian to I420. |
181 LIBYUV_API | 181 LIBYUV_API |
182 int ARGB4444ToI420(const uint8* src_frame, int src_stride_frame, | 182 int ARGB4444ToI420(const uint8* src_frame, int src_stride_frame, |
183 uint8* dst_y, int dst_stride_y, | 183 uint8* dst_y, int dst_stride_y, |
184 uint8* dst_u, int dst_stride_u, | 184 uint8* dst_u, int dst_stride_u, |
185 uint8* dst_v, int dst_stride_v, | 185 uint8* dst_v, int dst_stride_v, |
186 int width, int height); | 186 int width, int height); |
187 | 187 |
| 188 // Draw a rectangle into I420. |
| 189 // TODO(fbarchard): add planar_functions.h to webrtc includes |
| 190 // https://bugs.chromium.org/p/libyuv/issues/detail?id=618 |
| 191 LIBYUV_API |
| 192 int I420Rect(uint8* dst_y, int dst_stride_y, |
| 193 uint8* dst_u, int dst_stride_u, |
| 194 uint8* dst_v, int dst_stride_v, |
| 195 int x, int y, int width, int height, |
| 196 int value_y, int value_u, int value_v); |
| 197 |
188 #ifdef HAVE_JPEG | 198 #ifdef HAVE_JPEG |
189 // src_width/height provided by capture. | 199 // src_width/height provided by capture. |
190 // dst_width/height for clipping determine final size. | 200 // dst_width/height for clipping determine final size. |
191 LIBYUV_API | 201 LIBYUV_API |
192 int MJPGToI420(const uint8* sample, size_t sample_size, | 202 int MJPGToI420(const uint8* sample, size_t sample_size, |
193 uint8* dst_y, int dst_stride_y, | 203 uint8* dst_y, int dst_stride_y, |
194 uint8* dst_u, int dst_stride_u, | 204 uint8* dst_u, int dst_stride_u, |
195 uint8* dst_v, int dst_stride_v, | 205 uint8* dst_v, int dst_stride_v, |
196 int src_width, int src_height, | 206 int src_width, int src_height, |
197 int dst_width, int dst_height); | 207 int dst_width, int dst_height); |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
234 int crop_width, int crop_height, | 244 int crop_width, int crop_height, |
235 enum RotationMode rotation, | 245 enum RotationMode rotation, |
236 uint32 format); | 246 uint32 format); |
237 | 247 |
238 #ifdef __cplusplus | 248 #ifdef __cplusplus |
239 } // extern "C" | 249 } // extern "C" |
240 } // namespace libyuv | 250 } // namespace libyuv |
241 #endif | 251 #endif |
242 | 252 |
243 #endif // INCLUDE_LIBYUV_CONVERT_H_ NOLINT | 253 #endif // INCLUDE_LIBYUV_CONVERT_H_ NOLINT |
OLD | NEW |