diff options
author | fbarchard@google.com <fbarchard@google.com> | 2014-10-20 18:39:21 +0000 |
---|---|---|
committer | fbarchard@google.com <fbarchard@google.com> | 2014-10-20 18:39:21 +0000 |
commit | 055725b8fed658d20af64be1407b4a01bb27896c (patch) | |
tree | d322b74fe0c3bf09c67c6e56251ad3736a89c8ec | |
parent | 9107460c7f76a10cc4122d91e62b0580eacd376e (diff) | |
download | libyuv-055725b8fed658d20af64be1407b4a01bb27896c.tar.gz |
Neon does 8 at a time, so a check is added for any function of I422ToBGRA that width is >= 8 and for fast path that it is a multiple of 8 not 16.
BUG=373
TESTED=untested
R=brucedawson@google.com
Review URL: https://webrtc-codereview.appspot.com/24059004
git-svn-id: http://libyuv.googlecode.com/svn/trunk@1126 16f28f9a-4ce2-e073-06de-1de4eb20be90
-rw-r--r-- | source/planar_functions.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/planar_functions.cc b/source/planar_functions.cc index 661cad9..ebed839 100644 --- a/source/planar_functions.cc +++ b/source/planar_functions.cc @@ -794,9 +794,9 @@ int I422ToBGRA(const uint8* src_y, int src_stride_y, src_stride_y = src_stride_u = src_stride_v = dst_stride_bgra = 0; } #if defined(HAS_I422TOBGRAROW_NEON) - if (TestCpuFlag(kCpuHasNEON)) { + if (TestCpuFlag(kCpuHasNEON) && width >= 8) { I422ToBGRARow = I422ToBGRARow_Any_NEON; - if (IS_ALIGNED(width, 16)) { + if (IS_ALIGNED(width, 8)) { I422ToBGRARow = I422ToBGRARow_NEON; } } |