aboutsummaryrefslogtreecommitdiff
path: root/include/libyuv/planar_functions.h
diff options
context:
space:
mode:
authorMagnus Jedvert <magjed@google.com>2016-05-26 10:30:57 +0200
committerMagnus Jedvert <magjed@google.com>2016-05-26 10:30:57 +0200
commit942db3016a1653e66eb7935966449e06bdceb7b3 (patch)
treed22c7a525fad18ce6d6106da217bd09179be747e /include/libyuv/planar_functions.h
parent6020d2aa641fe3e395e8ee186ee97fa9a817250c (diff)
downloadlibyuv-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.h6
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,