From 8b55286ed517052d806f8a76234693f92f2cedd4 Mon Sep 17 00:00:00 2001 From: Frank Barchard Date: Fri, 8 Jul 2016 16:03:38 -0700 Subject: [PATCH] duplicate I420Rect prototype into convert for webrtc TBR=harryjin@google.com BUG=libyuv:618 Review URL: https://codereview.chromium.org/2132993003 . --- README.chromium | 2 +- include/libyuv/convert.h | 10 ++++++++++ include/libyuv/version.h | 2 +- 3 files changed, 12 insertions(+), 2 deletions(-) diff --git a/README.chromium b/README.chromium index dca8ccf34..19c47cf2a 100644 --- a/README.chromium +++ b/README.chromium @@ -1,6 +1,6 @@ Name: libyuv URL: http://code.google.com/p/libyuv/ -Version: 1603 +Version: 1604 License: BSD License File: LICENSE diff --git a/include/libyuv/convert.h b/include/libyuv/convert.h index a2cdc5718..7750cbe3f 100644 --- a/include/libyuv/convert.h +++ b/include/libyuv/convert.h @@ -185,6 +185,16 @@ int ARGB4444ToI420(const uint8* src_frame, int src_stride_frame, uint8* dst_v, int dst_stride_v, int width, int height); +// Draw a rectangle into I420. +// TODO(fbarchard): add planar_functions.h to webrtc includes +// https://bugs.chromium.org/p/libyuv/issues/detail?id=618 +LIBYUV_API +int I420Rect(uint8* dst_y, int dst_stride_y, + uint8* dst_u, int dst_stride_u, + uint8* dst_v, int dst_stride_v, + int x, int y, int width, int height, + int value_y, int value_u, int value_v); + #ifdef HAVE_JPEG // src_width/height provided by capture. // dst_width/height for clipping determine final size. diff --git a/include/libyuv/version.h b/include/libyuv/version.h index 5f8ca2ad6..1864bc4ba 100644 --- a/include/libyuv/version.h +++ b/include/libyuv/version.h @@ -11,6 +11,6 @@ #ifndef INCLUDE_LIBYUV_VERSION_H_ // NOLINT #define INCLUDE_LIBYUV_VERSION_H_ -#define LIBYUV_VERSION 1603 +#define LIBYUV_VERSION 1604 #endif // INCLUDE_LIBYUV_VERSION_H_ NOLINT