diff options
author | Frank Barchard <fbarchard@google.com> | 2016-10-07 17:20:30 -0700 |
---|---|---|
committer | Frank Barchard <fbarchard@google.com> | 2016-10-07 17:20:30 -0700 |
commit | edd3a84d0524a6ad2d9f9bc3c19742e79648354d (patch) | |
tree | 1b81aadf13197216e0882943032f4aae6915e006 /include/libyuv/planar_functions.h | |
parent | a2891ec77c183ec265af8278eee821e4d9715c12 (diff) | |
download | libyuv-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.h | 5 |
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, |