diff options
author | Magnus Jedvert <magjed@google.com> | 2016-05-26 10:30:57 +0200 |
---|---|---|
committer | Magnus Jedvert <magjed@google.com> | 2016-05-26 10:30:57 +0200 |
commit | 942db3016a1653e66eb7935966449e06bdceb7b3 (patch) | |
tree | d22c7a525fad18ce6d6106da217bd09179be747e /include/libyuv/planar_functions.h | |
parent | 6020d2aa641fe3e395e8ee186ee97fa9a817250c (diff) | |
download | libyuv-942db3016a1653e66eb7935966449e06bdceb7b3.tar.gz |
Add ARGBExtractAlpha function
BUG=libyuv:572
R=fbarchard@google.com
Review URL: https://codereview.chromium.org/1995293002 .
Diffstat (limited to 'include/libyuv/planar_functions.h')
-rw-r--r-- | include/libyuv/planar_functions.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/libyuv/planar_functions.h b/include/libyuv/planar_functions.h index 9c19a59d..881b0c5c 100644 --- a/include/libyuv/planar_functions.h +++ b/include/libyuv/planar_functions.h @@ -288,6 +288,12 @@ int ARGBCopyAlpha(const uint8* src_argb, int src_stride_argb, uint8* dst_argb, int dst_stride_argb, int width, int height); +// Extract the alpha channel from ARGB. +LIBYUV_API +int ARGBExtractAlpha(const uint8* src_argb, int src_stride_argb, + uint8* dst_a, int dst_stride_a, + int width, int height); + // Copy Y channel to Alpha of ARGB. LIBYUV_API int ARGBCopyYToAlpha(const uint8* src_y, int src_stride_y, |