diff options
author | Frank Barchard <fbarchard@google.com> | 2023-05-16 16:42:55 -0700 |
---|---|---|
committer | libyuv LUCI CQ <libyuv-scoped@luci-project-accounts.iam.gserviceaccount.com> | 2023-05-17 00:23:24 +0000 |
commit | a37799344d29dc8e4d3fb00ced5f07e5ce8bf1b9 (patch) | |
tree | 29d0c84f1ad34bae07925d018048060158aa0172 /include | |
parent | 11d4536002b4748ff3ed795ce893335bbb5f79fe (diff) | |
download | libyuv-a37799344d29dc8e4d3fb00ced5f07e5ce8bf1b9.tar.gz |
ARGBToI420Alpha function to convert ARGB to I420 with Alpha
Bug: b/281866362
Change-Id: Ic1093a887fb483f134c78909cf1ee7495e7345ba
Reviewed-on: https://chromium-review.googlesource.com/c/libyuv/libyuv/+/4534100
Commit-Queue: Frank Barchard <fbarchard@chromium.org>
Reviewed-by: Wan-Teh Chang <wtc@google.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/libyuv/convert.h | 15 | ||||
-rw-r--r-- | include/libyuv/version.h | 2 |
2 files changed, 16 insertions, 1 deletions
diff --git a/include/libyuv/convert.h b/include/libyuv/convert.h index 2f1ce421..4f6d2536 100644 --- a/include/libyuv/convert.h +++ b/include/libyuv/convert.h @@ -751,6 +751,21 @@ int ARGBToI420(const uint8_t* src_argb, int width, int height); +// Convert ARGB to I420 with Alpha +LIBYUV_API +int ARGBToI420Alpha(const uint8_t* src_argb, + int src_stride_argb, + uint8_t* dst_y, + int dst_stride_y, + uint8_t* dst_u, + int dst_stride_u, + uint8_t* dst_v, + int dst_stride_v, + uint8_t* dst_a, + int dst_stride_a, + int width, + int height); + // BGRA little endian (argb in memory) to I420. LIBYUV_API int BGRAToI420(const uint8_t* src_bgra, diff --git a/include/libyuv/version.h b/include/libyuv/version.h index 40efd042..9568200e 100644 --- a/include/libyuv/version.h +++ b/include/libyuv/version.h @@ -11,6 +11,6 @@ #ifndef INCLUDE_LIBYUV_VERSION_H_ #define INCLUDE_LIBYUV_VERSION_H_ -#define LIBYUV_VERSION 1868 +#define LIBYUV_VERSION 1869 #endif // INCLUDE_LIBYUV_VERSION_H_ |