mirror of
https://chromium.googlesource.com/libyuv/libyuv
synced 2025-12-08 01:36:47 +08:00
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
This commit is contained in:
parent
f5f6fd2aa7
commit
61466be698
@ -1,6 +1,6 @@
|
||||
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);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user