Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(521)

Side by Side Diff: include/libyuv/convert.h

Issue 2132993003: duplicate I420Rect prototype into convert for webrtc (Closed) Base URL: https://chromium.googlesource.com/libyuv/libyuv@master
Patch Set: Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « README.chromium ('k') | include/libyuv/version.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « README.chromium ('k') | include/libyuv/version.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698