diff options
author | Frank Barchard <fbarchard@google.com> | 2015-08-07 23:48:38 -0700 |
---|---|---|
committer | Frank Barchard <fbarchard@google.com> | 2015-08-07 23:48:38 -0700 |
commit | 9425c4b01a38863fd0977caae28574a576307f76 (patch) | |
tree | 32357d43af4d08849e020b1e089f59d5d7c6105c /source/rotate.cc | |
parent | 478ff9608bcd5dc57c1ab80d34611cc6c26551d6 (diff) | |
download | libyuv-9425c4b01a38863fd0977caae28574a576307f76.tar.gz |
rotate nv12 any width
BUG=libyuv:464
R=harryjin@google.com
Review URL: https://webrtc-codereview.appspot.com/55709004.
Diffstat (limited to 'source/rotate.cc')
-rw-r--r-- | source/rotate.cc | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/source/rotate.cc b/source/rotate.cc index be3d5892..dac7113d 100644 --- a/source/rotate.cc +++ b/source/rotate.cc @@ -204,11 +204,14 @@ void TransposeUV(const uint8* src, int src_stride, } #endif #if defined(HAS_TRANSPOSEUVWX8_SSE2) - if (TestCpuFlag(kCpuHasSSE2) && IS_ALIGNED(width, 8)) { - TransposeUVWx8 = TransposeUVWx8_SSE2; + if (TestCpuFlag(kCpuHasSSE2)) { + TransposeUVWx8 = TransposeUVWx8_Any_SSE2; + if (IS_ALIGNED(width, 8)) { + TransposeUVWx8 = TransposeUVWx8_SSE2; + } } #endif -#if defined(HAS_TRANSPOSEUVWx8_MIPS_DSPR2) +#if defined(HAS_TRANSPOSEUVWX8_MIPS_DSPR2) if (TestCpuFlag(kCpuHasMIPS_DSPR2) && IS_ALIGNED(width, 2) && IS_ALIGNED(src, 4) && IS_ALIGNED(src_stride, 4)) { TransposeUVWx8 = TransposeUVWx8_MIPS_DSPR2; |