aboutsummaryrefslogtreecommitdiff
path: root/files/include
diff options
context:
space:
mode:
authorHirokazu Honda <hiroh@google.com>2019-09-13 11:50:47 +0900
committerPin-chih Lin <johnylin@google.com>2019-10-15 16:50:25 +0800
commit6b9f20eecb3569c789fb8a749b0fe2d0223ca2b1 (patch)
tree3b943fe523d8067b0ed8a236e2b755a6f24cf33e /files/include
parente0b8fa7f60d39f486c6551903ca746a9eedf5fc3 (diff)
downloadlibyuv-6b9f20eecb3569c789fb8a749b0fe2d0223ca2b1.tar.gz
Add ABGRToNV12
This CL adds ABGRToNV12 in libyuv library in ARC++P. The libyuv master branch already has the function. The CL is based on https://chromium-review.googlesource.com/c/libyuv/libyuv/+/1739509. Bug: 140458621 Test: android.video.cts.VideoEncoderDecoderTest#testAvcOther0Perf1280x0720 on cave Change-Id: I7bed7f2d17ee1cc1bf5b0302beebed2eca89df82 (cherry picked from commit ee8c98966cd696852bfb383c56029f85db890ffe)
Diffstat (limited to 'files/include')
-rw-r--r--files/include/libyuv/convert_from_argb.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/files/include/libyuv/convert_from_argb.h b/files/include/libyuv/convert_from_argb.h
index 05c815a0..cbbef6fe 100644
--- a/files/include/libyuv/convert_from_argb.h
+++ b/files/include/libyuv/convert_from_argb.h
@@ -261,6 +261,17 @@ int ARGBToNV21(const uint8_t* src_argb,
int width,
int height);
+// Convert ABGR To NV12.
+LIBYUV_API
+int ABGRToNV12(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,
+ int width,
+ int height);
+
// Convert ARGB To YUY2.
LIBYUV_API
int ARGBToYUY2(const uint8_t* src_argb,