InterpolateRow_Any test if fraction is 0 and dont memcpy 2nd row.

Bug: b/228605787
Change-Id: Ia8912e4c1599401320ee82882a2593e78bf56582
Reviewed-on: https://chromium-review.googlesource.com/c/libyuv/libyuv/+/3708833
Reviewed-by: Wan-Teh Chang <wtc@google.com>
Commit-Queue: Frank Barchard <fbarchard@chromium.org>
This commit is contained in:
Frank Barchard 2022-06-17 04:33:18 -07:00 committed by libyuv LUCI CQ
parent 30f9b28048
commit e906ba9fe9
3 changed files with 6 additions and 3 deletions

View File

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

View File

@ -11,6 +11,6 @@
#ifndef INCLUDE_LIBYUV_VERSION_H_
#define INCLUDE_LIBYUV_VERSION_H_
#define LIBYUV_VERSION 1828
#define LIBYUV_VERSION 1829
#endif // INCLUDE_LIBYUV_VERSION_H_

View File

@ -1636,7 +1636,10 @@ ANY11C(UYVYToARGBRow_Any_LSX, UYVYToARGBRow_LSX, 1, 4, 4, 7)
ANY_SIMD(dst_ptr, src_ptr, src_stride, n, source_y_fraction); \
} \
memcpy(temp, src_ptr + n * SBPP, r * SBPP * sizeof(T)); \
memcpy(temp + 64, src_ptr + src_stride + n * SBPP, r * SBPP * sizeof(T)); \
if (source_y_fraction) { \
memcpy(temp + 64, src_ptr + src_stride + n * SBPP, \
r * SBPP * sizeof(T)); \
} \
ANY_SIMD(temp + 128, temp, 64, MASK + 1, source_y_fraction); \
memcpy(dst_ptr + n * BPP, temp + 128, r * BPP * sizeof(T)); \
}