diff options
author | Frank Barchard <fbarchard@google.com> | 2018-01-24 15:27:14 -0800 |
---|---|---|
committer | Frank Barchard <fbarchard@chromium.org> | 2018-01-25 00:36:40 +0000 |
commit | 3f43ecc0292ac1e4146928bc7d0c9107210be671 (patch) | |
tree | b1eb456e540b2c88a34c2b811c1bd2bb44cadf76 /source/convert_from.cc | |
parent | 92e22cf5b66173d5d5056751ca62bc2254e4ff86 (diff) | |
download | libyuv-3f43ecc0292ac1e4146928bc7d0c9107210be671.tar.gz |
Add H420ToAR30 and a test that does a histogram
[ RUN ] LibYUVConvertTest.TestH420ToAR30
uniques: B 222, G, 222, R 222
[ OK ] LibYUVConvertTest.TestH420ToAR30 (0 ms)
[ RUN ] LibYUVConvertTest.TestH420ToARGB
uniques: B 220, G, 220, R 220
[ OK ] LibYUVConvertTest.TestH420ToARGB (0 ms)
Bug: libyuv: 751
Test: LibYUVConvertTest.TestH420ToAR30
Change-Id: I9b75af286124c058c24799778a58c3feb9a1a1ab
Reviewed-on: https://chromium-review.googlesource.com/884845
Reviewed-by: Miguel Casas <mcasas@chromium.org>
Commit-Queue: Frank Barchard <fbarchard@chromium.org>
Diffstat (limited to 'source/convert_from.cc')
-rw-r--r-- | source/convert_from.cc | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/source/convert_from.cc b/source/convert_from.cc index eb463135..bc90d3c5 100644 --- a/source/convert_from.cc +++ b/source/convert_from.cc @@ -1210,6 +1210,23 @@ int I420ToAR30(const uint8_t* src_y, &kYuvI601Constants, width, height); } +// Convert H420 to AR30. +LIBYUV_API +int H420ToAR30(const uint8_t* src_y, + int src_stride_y, + const uint8_t* src_u, + int src_stride_u, + const uint8_t* src_v, + int src_stride_v, + uint8_t* dst_ar30, + int dst_stride_ar30, + int width, + int height) { + return I420ToAR30Matrix(src_y, src_stride_y, src_u, src_stride_u, src_v, + src_stride_v, dst_ar30, dst_stride_ar30, + &kYvuH709Constants, width, height); +} + // Convert I420 to specified format LIBYUV_API int ConvertFromI420(const uint8_t* y, |