]> granicus.if.org Git - libvpx/commitdiff
Increase border size from 96 to 160.
authorRonald S. Bultje <rbultje@google.com>
Fri, 12 Jul 2013 19:59:19 +0000 (12:59 -0700)
committerRonald S. Bultje <rbultje@google.com>
Tue, 16 Jul 2013 00:30:57 +0000 (17:30 -0700)
This is required because upon downscaling, if a motion vector points
partially into the UMV (e.g. all minus 1 of 64+7 pixels, i.e. 70),
then we can point up to 140 pixels into the larger-resolution (2x)
reference buffer UMV, which means the UMV for reference buffers in
downscaling needs to be 140 rounded up to the nearest multiple of 32,
i.e. 160.

Longer-term, we should probably handle the UMV differently by detecting
edge coverage on-the-fly and using a temporary buffer for edge extensions
instead of adding 160 pixels on all sides of the image (which means a
CIF image uses 3x its own area size for borders).

Change-Id: I5184443e6731cd6721fc6a5d430a53e7d91b4f7e

vpx_scale/yv12config.h

index c351370412eb9673c184423c7aa53db58192d657..a934a94bd5cd6edd289d0fcb4b54cb28772740c7 100644 (file)
@@ -18,7 +18,7 @@ extern "C" {
 #include "vpx/vpx_integer.h"
 
 #define VP8BORDERINPIXELS       32
-#define VP9BORDERINPIXELS       96
+#define VP9BORDERINPIXELS       160
 #define VP9_INTERP_EXTEND        4
 
   /*************************************