summaryrefslogtreecommitdiff
path: root/vp9/decoder
diff options
context:
space:
mode:
authorJohn Koleszar <jkoleszar@google.com>2013-03-13 17:09:05 -0700
committerGerrit Code Review <gerrit@gerrit.golo.chromium.org>2013-03-13 19:10:10 -0700
commit9b7be888839c884451646905bd54b5861aac592b (patch)
treee89260e1a8dc81f15c27f68a8d9368aecf4a3b7c /vp9/decoder
parentb3c350a1a99ac89e81cff77d82a9a11c0a762600 (diff)
downloadlibvpx-9b7be888839c884451646905bd54b5861aac592b.tar
libvpx-9b7be888839c884451646905bd54b5861aac592b.tar.gz
libvpx-9b7be888839c884451646905bd54b5861aac592b.tar.bz2
libvpx-9b7be888839c884451646905bd54b5861aac592b.zip
Fix pulsing issue with scaling
Updates the YV12_BUFFER_CONFIG structure to be crop-aware. The exiting width/height parameters are left unchanged, storing the width and height algined to a 16 byte boundary. The cropped dimensions are added as new fields. This fixes a nasty visual pulse when switching between scaled and unscaled frame dimensions due to a mismatch between the scaling ratio and the 16-byte aligned sizes. Change-Id: Id4a3f6aea6b9b9ae38bdfa1b87b7eb2cfcdd57b6
Diffstat (limited to 'vp9/decoder')
-rw-r--r--vp9/decoder/vp9_decodframe.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/vp9/decoder/vp9_decodframe.c b/vp9/decoder/vp9_decodframe.c
index 572ba2905..a3324731e 100644
--- a/vp9/decoder/vp9_decodframe.c
+++ b/vp9/decoder/vp9_decodframe.c
@@ -1367,7 +1367,7 @@ int vp9_decode_frame(VP9D_COMP *pbi, const unsigned char **p_data_end) {
/* Reset the frame pointers to the current frame size */
vp8_yv12_realloc_frame_buffer(&pc->yv12_fb[pc->new_fb_idx],
- pc->mb_cols * 16, pc->mb_rows * 16,
+ pc->Width, pc->Height,
VP9BORDERINPIXELS);
if (vp9_start_decode(&header_bc, data,