aboutsummaryrefslogtreecommitdiff
path: root/include/libyuv/planar_functions.h
diff options
context:
space:
mode:
authorFrank Barchard <fbarchard@google.com>2016-10-07 17:20:30 -0700
committerFrank Barchard <fbarchard@google.com>2016-10-07 17:20:30 -0700
commitedd3a84d0524a6ad2d9f9bc3c19742e79648354d (patch)
tree1b81aadf13197216e0882943032f4aae6915e006 /include/libyuv/planar_functions.h
parenta2891ec77c183ec265af8278eee821e4d9715c12 (diff)
downloadlibyuv-edd3a84d0524a6ad2d9f9bc3c19742e79648354d.tar.gz
libyuv::YUY2ToY for isolating Y channel of YUY2.
This function is the first step of YUY2 To I420. Provided primarily for diagnostics. TBR=wangcheng@google.com BUG=libyuv:647 TESTED=LibYUVConvertTest.YUY2ToY_Opt Review URL: https://codereview.chromium.org/2399153004 .
Diffstat (limited to 'include/libyuv/planar_functions.h')
-rw-r--r--include/libyuv/planar_functions.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/libyuv/planar_functions.h b/include/libyuv/planar_functions.h
index 1b57b292..1098dd64 100644
--- a/include/libyuv/planar_functions.h
+++ b/include/libyuv/planar_functions.h
@@ -111,6 +111,11 @@ int UYVYToNV12(const uint8* src_uyvy, int src_stride_uyvy,
uint8* dst_uv, int dst_stride_uv,
int width, int height);
+LIBYUV_API
+int YUY2ToY(const uint8* src_yuy2, int src_stride_yuy2,
+ uint8* dst_y, int dst_stride_y,
+ int width, int height);
+
// Convert I420 to I400. (calls CopyPlane ignoring u/v).
LIBYUV_API
int I420ToI400(const uint8* src_y, int src_stride_y,