Fix macro define typo in scale_uv.cc

The correct define can be found in scale_row.h

Change-Id: I633ed47006c7bd8014038493005c2d934489ff18
Signed-off-by: Darren Hsieh <darren.hsieh@sifive.com>
Reviewed-on: https://chromium-review.googlesource.com/c/libyuv/libyuv/+/4411353
Reviewed-by: Frank Barchard <fbarchard@chromium.org>
Commit-Queue: Frank Barchard <fbarchard@chromium.org>
This commit is contained in:
Darren Hsieh 2023-04-10 01:09:34 -07:00 committed by Frank Barchard
parent 646fc1b214
commit 724e7aee03

View File

@ -644,19 +644,19 @@ void ScaleUVLinearUp2(int src_width,
// This function can only scale up by 2 times horizontally. // This function can only scale up by 2 times horizontally.
assert(src_width == ((dst_width + 1) / 2)); assert(src_width == ((dst_width + 1) / 2));
#ifdef HAS_SCALEUVROWUP2LINEAR_SSSE3 #ifdef HAS_SCALEUVROWUP2_LINEAR_SSSE3
if (TestCpuFlag(kCpuHasSSSE3)) { if (TestCpuFlag(kCpuHasSSSE3)) {
ScaleRowUp = ScaleUVRowUp2_Linear_Any_SSSE3; ScaleRowUp = ScaleUVRowUp2_Linear_Any_SSSE3;
} }
#endif #endif
#ifdef HAS_SCALEUVROWUP2LINEAR_AVX2 #ifdef HAS_SCALEUVROWUP2_LINEAR_AVX2
if (TestCpuFlag(kCpuHasAVX2)) { if (TestCpuFlag(kCpuHasAVX2)) {
ScaleRowUp = ScaleUVRowUp2_Linear_Any_AVX2; ScaleRowUp = ScaleUVRowUp2_Linear_Any_AVX2;
} }
#endif #endif
#ifdef HAS_SCALEUVROWUP2LINEAR_NEON #ifdef HAS_SCALEUVROWUP2_LINEAR_NEON
if (TestCpuFlag(kCpuHasNEON)) { if (TestCpuFlag(kCpuHasNEON)) {
ScaleRowUp = ScaleUVRowUp2_Linear_Any_NEON; ScaleRowUp = ScaleUVRowUp2_Linear_Any_NEON;
} }
@ -697,19 +697,19 @@ void ScaleUVBilinearUp2(int src_width,
assert(src_width == ((dst_width + 1) / 2)); assert(src_width == ((dst_width + 1) / 2));
assert(src_height == ((dst_height + 1) / 2)); assert(src_height == ((dst_height + 1) / 2));
#ifdef HAS_SCALEUVROWUP2BILINEAR_SSSE3 #ifdef HAS_SCALEUVROWUP2_BILINEAR_SSSE3
if (TestCpuFlag(kCpuHasSSSE3)) { if (TestCpuFlag(kCpuHasSSSE3)) {
Scale2RowUp = ScaleUVRowUp2_Bilinear_Any_SSSE3; Scale2RowUp = ScaleUVRowUp2_Bilinear_Any_SSSE3;
} }
#endif #endif
#ifdef HAS_SCALEUVROWUP2BILINEAR_AVX2 #ifdef HAS_SCALEUVROWUP2_BILINEAR_AVX2
if (TestCpuFlag(kCpuHasAVX2)) { if (TestCpuFlag(kCpuHasAVX2)) {
Scale2RowUp = ScaleUVRowUp2_Bilinear_Any_AVX2; Scale2RowUp = ScaleUVRowUp2_Bilinear_Any_AVX2;
} }
#endif #endif
#ifdef HAS_SCALEUVROWUP2BILINEAR_NEON #ifdef HAS_SCALEUVROWUP2_BILINEAR_NEON
if (TestCpuFlag(kCpuHasNEON)) { if (TestCpuFlag(kCpuHasNEON)) {
Scale2RowUp = ScaleUVRowUp2_Bilinear_Any_NEON; Scale2RowUp = ScaleUVRowUp2_Bilinear_Any_NEON;
} }
@ -751,19 +751,19 @@ void ScaleUVLinearUp2_16(int src_width,
// This function can only scale up by 2 times horizontally. // This function can only scale up by 2 times horizontally.
assert(src_width == ((dst_width + 1) / 2)); assert(src_width == ((dst_width + 1) / 2));
#ifdef HAS_SCALEUVROWUP2LINEAR_16_SSE41 #ifdef HAS_SCALEUVROWUP2_LINEAR_16_SSE41
if (TestCpuFlag(kCpuHasSSE41)) { if (TestCpuFlag(kCpuHasSSE41)) {
ScaleRowUp = ScaleUVRowUp2_Linear_16_Any_SSE41; ScaleRowUp = ScaleUVRowUp2_Linear_16_Any_SSE41;
} }
#endif #endif
#ifdef HAS_SCALEUVROWUP2LINEAR_16_AVX2 #ifdef HAS_SCALEUVROWUP2_LINEAR_16_AVX2
if (TestCpuFlag(kCpuHasAVX2)) { if (TestCpuFlag(kCpuHasAVX2)) {
ScaleRowUp = ScaleUVRowUp2_Linear_16_Any_AVX2; ScaleRowUp = ScaleUVRowUp2_Linear_16_Any_AVX2;
} }
#endif #endif
#ifdef HAS_SCALEUVROWUP2LINEAR_16_NEON #ifdef HAS_SCALEUVROWUP2_LINEAR_16_NEON
if (TestCpuFlag(kCpuHasNEON)) { if (TestCpuFlag(kCpuHasNEON)) {
ScaleRowUp = ScaleUVRowUp2_Linear_16_Any_NEON; ScaleRowUp = ScaleUVRowUp2_Linear_16_Any_NEON;
} }
@ -804,19 +804,19 @@ void ScaleUVBilinearUp2_16(int src_width,
assert(src_width == ((dst_width + 1) / 2)); assert(src_width == ((dst_width + 1) / 2));
assert(src_height == ((dst_height + 1) / 2)); assert(src_height == ((dst_height + 1) / 2));
#ifdef HAS_SCALEUVROWUP2BILINEAR_16_SSE41 #ifdef HAS_SCALEUVROWUP2_BILINEAR_16_SSE41
if (TestCpuFlag(kCpuHasSSE41)) { if (TestCpuFlag(kCpuHasSSE41)) {
Scale2RowUp = ScaleUVRowUp2_Bilinear_16_Any_SSE41; Scale2RowUp = ScaleUVRowUp2_Bilinear_16_Any_SSE41;
} }
#endif #endif
#ifdef HAS_SCALEUVROWUP2BILINEAR_16_AVX2 #ifdef HAS_SCALEUVROWUP2_BILINEAR_16_AVX2
if (TestCpuFlag(kCpuHasAVX2)) { if (TestCpuFlag(kCpuHasAVX2)) {
Scale2RowUp = ScaleUVRowUp2_Bilinear_16_Any_AVX2; Scale2RowUp = ScaleUVRowUp2_Bilinear_16_Any_AVX2;
} }
#endif #endif
#ifdef HAS_SCALEUVROWUP2BILINEAR_16_NEON #ifdef HAS_SCALEUVROWUP2_BILINEAR_16_NEON
if (TestCpuFlag(kCpuHasNEON)) { if (TestCpuFlag(kCpuHasNEON)) {
Scale2RowUp = ScaleUVRowUp2_Bilinear_16_Any_NEON; Scale2RowUp = ScaleUVRowUp2_Bilinear_16_Any_NEON;
} }