diff options
author | Vignesh Venkatasubramanian <vigneshv@google.com> | 2022-08-26 00:09:22 +0000 |
---|---|---|
committer | Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> | 2022-08-26 00:09:22 +0000 |
commit | 435db9f11b09187e0d60683813a28d07cc13166b (patch) | |
tree | e8cf5f7cdc94a5abfe84a758a4245d7269b65f8f /files/include/libyuv/convert_from_argb.h | |
parent | 41b841621ab701fbb2ee8105ee129d0c00c09620 (diff) | |
parent | b2a62fd68100584d133248fde82a0f51f9398154 (diff) | |
download | libyuv-435db9f11b09187e0d60683813a28d07cc13166b.tar.gz |
Merge "Update external/libyuv to r1837" am: fefd4478ef am: 521d439731 am: 9ceba339ff am: b2a62fd681android-u-beta-1-gplmain-16k-with-phonesandroidx-window-extensions-core-releaseandroidx-privacysandbox-ads-releaseandroidx-health-release
Original change: https://android-review.googlesource.com/c/platform/external/libyuv/+/2196947
Change-Id: I835b85bea55524d5186ecf2d74befccaec0a17c3
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
Diffstat (limited to 'files/include/libyuv/convert_from_argb.h')
-rw-r--r-- | files/include/libyuv/convert_from_argb.h | 66 |
1 files changed, 57 insertions, 9 deletions
diff --git a/files/include/libyuv/convert_from_argb.h b/files/include/libyuv/convert_from_argb.h index cbbef6fe..2a488838 100644 --- a/files/include/libyuv/convert_from_argb.h +++ b/files/include/libyuv/convert_from_argb.h @@ -77,6 +77,10 @@ int ARGBToAR30(const uint8_t* src_argb, int width, int height); +// Aliases +#define ABGRToRGB24 ARGBToRAW +#define ABGRToRAW ARGBToRGB24 + // Convert ARGB To RGB24. LIBYUV_API int ARGBToRGB24(const uint8_t* src_argb, @@ -149,6 +153,30 @@ int ARGBToI444(const uint8_t* src_argb, int width, int height); +// Convert ARGB to AR64. +LIBYUV_API +int ARGBToAR64(const uint8_t* src_argb, + int src_stride_argb, + uint16_t* dst_ar64, + int dst_stride_ar64, + int width, + int height); + +// Convert ABGR to AB64. +#define ABGRToAB64 ARGBToAR64 + +// Convert ARGB to AB64. +LIBYUV_API +int ARGBToAB64(const uint8_t* src_argb, + int src_stride_argb, + uint16_t* dst_ab64, + int dst_stride_ab64, + int width, + int height); + +// Convert ABGR to AR64. +#define ABGRToAR64 ARGBToAB64 + // Convert ARGB To I422. LIBYUV_API int ARGBToI422(const uint8_t* src_argb, @@ -210,6 +238,15 @@ int ARGBToJ400(const uint8_t* src_argb, int width, int height); +// Convert RGBA to J400. (JPeg full range). +LIBYUV_API +int RGBAToJ400(const uint8_t* src_rgba, + int src_stride_rgba, + uint8_t* dst_yj, + int dst_stride_yj, + int width, + int height); + // Convert ARGB to I400. LIBYUV_API int ARGBToI400(const uint8_t* src_argb, @@ -250,25 +287,25 @@ int ARGBToNV21(const uint8_t* src_argb, int width, int height); -// Convert ARGB To NV21. +// Convert ABGR To NV12. LIBYUV_API -int ARGBToNV21(const uint8_t* src_argb, - int src_stride_argb, +int ABGRToNV12(const uint8_t* src_abgr, + int src_stride_abgr, uint8_t* dst_y, int dst_stride_y, - uint8_t* dst_vu, - int dst_stride_vu, + uint8_t* dst_uv, + int dst_stride_uv, int width, int height); -// Convert ABGR To NV12. +// Convert ABGR To NV21. LIBYUV_API -int ABGRToNV12(const uint8_t* src_abgr, +int ABGRToNV21(const uint8_t* src_abgr, int src_stride_abgr, uint8_t* dst_y, int dst_stride_y, - uint8_t* dst_uv, - int dst_stride_uv, + uint8_t* dst_vu, + int dst_stride_vu, int width, int height); @@ -290,6 +327,17 @@ int ARGBToUYVY(const uint8_t* src_argb, int width, int height); +// RAW to JNV21 full range NV21 +LIBYUV_API +int RAWToJNV21(const uint8_t* src_raw, + int src_stride_raw, + uint8_t* dst_y, + int dst_stride_y, + uint8_t* dst_vu, + int dst_stride_vu, + int width, + int height); + #ifdef __cplusplus } // extern "C" } // namespace libyuv |