mirror of
https://chromium.googlesource.com/libyuv/libyuv
synced 2026-02-14 22:29:52 +08:00
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:
parent
173ed374c0
commit
ebd9e130f0
@ -1,6 +1,6 @@
|
|||||||
Name: libyuv
|
Name: libyuv
|
||||||
URL: http://code.google.com/p/libyuv/
|
URL: http://code.google.com/p/libyuv/
|
||||||
Version: 1815
|
Version: 1816
|
||||||
License: BSD
|
License: BSD
|
||||||
License File: LICENSE
|
License File: LICENSE
|
||||||
|
|
||||||
|
|||||||
@ -11,6 +11,6 @@
|
|||||||
#ifndef INCLUDE_LIBYUV_VERSION_H_
|
#ifndef INCLUDE_LIBYUV_VERSION_H_
|
||||||
#define INCLUDE_LIBYUV_VERSION_H_
|
#define INCLUDE_LIBYUV_VERSION_H_
|
||||||
|
|
||||||
#define LIBYUV_VERSION 1815
|
#define LIBYUV_VERSION 1816
|
||||||
|
|
||||||
#endif // INCLUDE_LIBYUV_VERSION_H_
|
#endif // INCLUDE_LIBYUV_VERSION_H_
|
||||||
|
|||||||
@ -6443,6 +6443,7 @@ static int I010AlphaToARGBMatrixBilinear(
|
|||||||
}
|
}
|
||||||
dst_argb += dst_stride_argb;
|
dst_argb += dst_stride_argb;
|
||||||
src_y += src_stride_y;
|
src_y += src_stride_y;
|
||||||
|
src_a += src_stride_a;
|
||||||
|
|
||||||
for (y = 0; y < height - 2; y += 2) {
|
for (y = 0; y < height - 2; y += 2) {
|
||||||
Scale2RowUp(src_u, src_stride_u, temp_u_1, kRowSize, width);
|
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);
|
Scale2RowUp(src_v, 0, temp_v_1, kRowSize, width);
|
||||||
I410AlphaToARGBRow(src_y, temp_u_1, temp_v_1, src_a, dst_argb, yuvconstants,
|
I410AlphaToARGBRow(src_y, temp_u_1, temp_v_1, src_a, dst_argb, yuvconstants,
|
||||||
width);
|
width);
|
||||||
|
if (attenuate) {
|
||||||
|
ARGBAttenuateRow(dst_argb, dst_argb, width);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
free_aligned_buffer_64(row);
|
free_aligned_buffer_64(row);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user