diff options
Diffstat (limited to 'files/include/libyuv/convert_argb.h')
-rw-r--r-- | files/include/libyuv/convert_argb.h | 54 |
1 files changed, 52 insertions, 2 deletions
diff --git a/files/include/libyuv/convert_argb.h b/files/include/libyuv/convert_argb.h index f43a5060..6bdfd95c 100644 --- a/files/include/libyuv/convert_argb.h +++ b/files/include/libyuv/convert_argb.h @@ -58,8 +58,8 @@ int I420ToABGR(const uint8* src_y, int src_stride_u, const uint8* src_v, int src_stride_v, - uint8* dst_argb, - int dst_stride_argb, + uint8* dst_abgr, + int dst_stride_abgr, int width, int height); @@ -190,6 +190,28 @@ int NV21ToARGB(const uint8* src_y, int width, int height); +// Convert NV12 to ABGR. +LIBYUV_API +int NV12ToABGR(const uint8* src_y, + int src_stride_y, + const uint8* src_uv, + int src_stride_uv, + uint8* dst_abgr, + int dst_stride_abgr, + int width, + int height); + +// Convert NV21 to ABGR. +LIBYUV_API +int NV21ToABGR(const uint8* src_y, + int src_stride_y, + const uint8* src_uv, + int src_stride_uv, + uint8* dst_abgr, + int dst_stride_abgr, + int width, + int height); + // Convert M420 to ARGB. LIBYUV_API int M420ToARGB(const uint8* src_m420, @@ -410,6 +432,34 @@ int MJPGToARGB(const uint8* sample, int dst_height); #endif +// Convert Android420 to ARGB. +LIBYUV_API +int Android420ToARGB(const uint8* src_y, + int src_stride_y, + const uint8* src_u, + int src_stride_u, + const uint8* src_v, + int src_stride_v, + int src_pixel_stride_uv, + uint8* dst_argb, + int dst_stride_argb, + int width, + int height); + +// Convert Android420 to ABGR. +LIBYUV_API +int Android420ToABGR(const uint8* src_y, + int src_stride_y, + const uint8* src_u, + int src_stride_u, + const uint8* src_v, + int src_stride_v, + int src_pixel_stride_uv, + uint8* dst_abgr, + int dst_stride_abgr, + int width, + int height); + // Convert camera sample to ARGB with cropping, rotation and vertical flip. // "src_size" is needed to parse MJPG. // "dst_stride_argb" number of bytes in a row of the dst_argb plane. |