Fix bugs in I010AlphaToARGBMatrixBilinear()

Add a missing increment of src_a and ARGBAttenuateRow() call.

Bug: libyuv:922
Change-Id: I26e04e70c6a1a231cbe54b60c249f4c2e8af112a
Reviewed-on: https://chromium-review.googlesource.com/c/libyuv/libyuv/+/3549976
Reviewed-by: Mirko Bonadei <mbonadei@chromium.org>
Commit-Queue: Wan-Teh Chang <wtc@google.com>
This commit is contained in:
Wan-Teh Chang 2022-03-25 08:23:07 -07:00 committed by libyuv LUCI CQ
parent 173ed374c0
commit ebd9e130f0
3 changed files with 6 additions and 2 deletions

View File

@ -1,6 +1,6 @@
Name: libyuv
URL: http://code.google.com/p/libyuv/
Version: 1815
Version: 1816
License: BSD
License File: LICENSE

View File

@ -11,6 +11,6 @@
#ifndef INCLUDE_LIBYUV_VERSION_H_
#define INCLUDE_LIBYUV_VERSION_H_
#define LIBYUV_VERSION 1815
#define LIBYUV_VERSION 1816
#endif // INCLUDE_LIBYUV_VERSION_H_

View File

@ -6443,6 +6443,7 @@ static int I010AlphaToARGBMatrixBilinear(
}
dst_argb += dst_stride_argb;
src_y += src_stride_y;
src_a += src_stride_a;
for (y = 0; y < height - 2; y += 2) {
Scale2RowUp(src_u, src_stride_u, temp_u_1, kRowSize, width);
@ -6472,6 +6473,9 @@ static int I010AlphaToARGBMatrixBilinear(
Scale2RowUp(src_v, 0, temp_v_1, kRowSize, width);
I410AlphaToARGBRow(src_y, temp_u_1, temp_v_1, src_a, dst_argb, yuvconstants,
width);
if (attenuate) {
ARGBAttenuateRow(dst_argb, dst_argb, width);
}
}
free_aligned_buffer_64(row);