Commit 61466be6 authored by fbarchard@google.com's avatar fbarchard@google.com

Enable bilinear instead of box filter if size of destination is greater than source / 2.

BUG=185
TEST=unittest still passes
Review URL: https://webrtc-codereview.appspot.com/1103005

git-svn-id: http://libyuv.googlecode.com/svn/trunk@563 16f28f9a-4ce2-e073-06de-1de4eb20be90
parent f5f6fd2a
Name: libyuv
URL: http://code.google.com/p/libyuv/
Version: 561
Version: 563
License: BSD
License File: LICENSE
......
......@@ -11,6 +11,6 @@
#ifndef INCLUDE_LIBYUV_VERSION_H_ // NOLINT
#define INCLUDE_LIBYUV_VERSION_H_
#define LIBYUV_VERSION 561
#define LIBYUV_VERSION 563
#endif // INCLUDE_LIBYUV_VERSION_H_ NOLINT
......@@ -3229,7 +3229,7 @@ static void ScalePlaneDown(int src_width, int src_height,
if (!filtering) {
ScalePlaneSimple(src_width, src_height, dst_width, dst_height,
src_stride, dst_stride, src_ptr, dst_ptr);
} else if (filtering == kFilterBilinear || src_height * 2 > dst_height) {
} else if (filtering == kFilterBilinear || dst_height * 2 > src_height) {
// between 1/2x and 1x use bilinear
ScalePlaneBilinear(src_width, src_height, dst_width, dst_height,
src_stride, dst_stride, src_ptr, dst_ptr);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment