diff options
author | fbarchard@google.com <fbarchard@google.com> | 2015-04-14 00:21:15 +0000 |
---|---|---|
committer | fbarchard@google.com <fbarchard@google.com> | 2015-04-14 00:21:15 +0000 |
commit | 013e812275fe6388ff1cea62e5d0ad569648b3ea (patch) | |
tree | 2397ebf7322528d2481018bd87968045d2f79be4 /source/scale_common.cc | |
parent | b5ea79d84566ec7ac6651e54c9a93254ae549cbd (diff) | |
download | libyuv-013e812275fe6388ff1cea62e5d0ad569648b3ea.tar.gz |
Port box filter to AVX2.
BUG=libyuv:425
TESTED=c:\intelsde\sde -ast -hsw -- out\release\libyuv_unittest.exe --gtest_catch_exceptions=0 --gtest_filter=*libyuvTest.ScaleTo640x360_Box
R=tpsiaki@google.com
Review URL: https://webrtc-codereview.appspot.com/43149004
git-svn-id: http://libyuv.googlecode.com/svn/trunk@1367 16f28f9a-4ce2-e073-06de-1de4eb20be90
Diffstat (limited to 'source/scale_common.cc')
-rw-r--r-- | source/scale_common.cc | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/source/scale_common.cc b/source/scale_common.cc index 96e2564b..793df0a0 100644 --- a/source/scale_common.cc +++ b/source/scale_common.cc @@ -1030,10 +1030,6 @@ enum FilterMode ScaleFilterReduce(int src_width, int src_height, if (dst_width * 2 >= src_width && dst_height * 2 >= src_height) { filtering = kFilterBilinear; } - // If scaling to larger, switch from Box to Bilinear. - if (dst_width >= src_width || dst_height >= src_height) { - filtering = kFilterBilinear; - } } if (filtering == kFilterBilinear) { if (src_height == 1) { |