diff options
author | Frank Barchard <fbarchard@google.com> | 2016-01-11 16:33:36 -0800 |
---|---|---|
committer | Frank Barchard <fbarchard@google.com> | 2016-01-11 16:33:36 -0800 |
commit | 23c6a83561d324fc1cec47f7ab14b583a812d236 (patch) | |
tree | 0da4c7518ef7d23024296ea00c731194939d80b3 /source/rotate.cc | |
parent | 0e462e6f450b9248a83feee50871e1ad76d317c3 (diff) | |
download | libyuv-23c6a83561d324fc1cec47f7ab14b583a812d236.tar.gz |
Fix ifdef mismatch for mirroruv
Macro define and macro ifdef didnt match, leading to C code
being used. Make macro match function name.
TBR=harryjin@google.com
BUG=libyuv:543
Review URL: https://codereview.chromium.org/1579023002 .
Diffstat (limited to 'source/rotate.cc')
-rw-r--r-- | source/rotate.cc | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/source/rotate.cc b/source/rotate.cc index 31e04af9..21fa480e 100644 --- a/source/rotate.cc +++ b/source/rotate.cc @@ -267,22 +267,22 @@ void RotateUV180(const uint8* src, int src_stride, uint8* dst_b, int dst_stride_b, int width, int height) { int i; - void (*MirrorRowUV)(const uint8* src, uint8* dst_u, uint8* dst_v, int width) = + void (*MirrorUVRow)(const uint8* src, uint8* dst_u, uint8* dst_v, int width) = MirrorUVRow_C; #if defined(HAS_MIRRORUVROW_NEON) if (TestCpuFlag(kCpuHasNEON) && IS_ALIGNED(width, 8)) { - MirrorRowUV = MirrorUVRow_NEON; + MirrorUVRow = MirrorUVRow_NEON; } #endif -#if defined(HAS_MIRRORROW_UV_SSSE3) +#if defined(HAS_MIRRORUVROW_SSSE3) if (TestCpuFlag(kCpuHasSSSE3) && IS_ALIGNED(width, 16)) { - MirrorRowUV = MirrorUVRow_SSSE3; + MirrorUVRow = MirrorUVRow_SSSE3; } #endif #if defined(HAS_MIRRORUVROW_MIPS_DSPR2) if (TestCpuFlag(kCpuHasMIPS_DSPR2) && IS_ALIGNED(src, 4) && IS_ALIGNED(src_stride, 4)) { - MirrorRowUV = MirrorUVRow_MIPS_DSPR2; + MirrorUVRow = MirrorUVRow_MIPS_DSPR2; } #endif @@ -290,7 +290,7 @@ void RotateUV180(const uint8* src, int src_stride, dst_b += dst_stride_b * (height - 1); for (i = 0; i < height; ++i) { - MirrorRowUV(src, dst_a, dst_b, width); + MirrorUVRow(src, dst_a, dst_b, width); src += src_stride; dst_a -= dst_stride_a; dst_b -= dst_stride_b; |