summaryrefslogtreecommitdiff
path: root/vp9/decoder
diff options
context:
space:
mode:
authorhkuang <hkuang@google.com>2013-12-06 11:39:38 -0800
committerhkuang <hkuang@google.com>2013-12-09 16:44:08 -0800
commitff2c96be1fe11f76b72e6f15fd23155627c9bbe4 (patch)
tree2473f84af7837dcd16a57f0023f7da83b598bb0a /vp9/decoder
parent2dd730ccb39424f2589f9593e5ea96f27801c64f (diff)
downloadlibvpx-ff2c96be1fe11f76b72e6f15fd23155627c9bbe4.tar
libvpx-ff2c96be1fe11f76b72e6f15fd23155627c9bbe4.tar.gz
libvpx-ff2c96be1fe11f76b72e6f15fd23155627c9bbe4.tar.bz2
libvpx-ff2c96be1fe11f76b72e6f15fd23155627c9bbe4.zip
Implenment on demand border extension. In place extend
the border now. Next commit will totally remove the border. Change-Id: Ic1e1ca9cc34f81c688715b3948689b47df63a151
Diffstat (limited to 'vp9/decoder')
-rw-r--r--vp9/decoder/vp9_decodeframe.c2
-rw-r--r--vp9/decoder/vp9_onyxd_if.c4
2 files changed, 2 insertions, 4 deletions
diff --git a/vp9/decoder/vp9_decodeframe.c b/vp9/decoder/vp9_decodeframe.c
index 78cf09bfa..1d5aa06e7 100644
--- a/vp9/decoder/vp9_decodeframe.c
+++ b/vp9/decoder/vp9_decodeframe.c
@@ -379,6 +379,8 @@ static void set_ref(VP9_COMMON *const cm, MACROBLOCKD *const xd,
const int ref = mbmi->ref_frame[idx] - LAST_FRAME;
const YV12_BUFFER_CONFIG *cfg = get_frame_ref_buffer(cm, ref);
const struct scale_factors_common *sfc = &cm->active_ref_scale_comm[ref];
+
+ xd->ref_buf[idx] = cfg;
if (!vp9_is_valid_scale(sfc))
vpx_internal_error(&cm->error, VPX_CODEC_UNSUP_BITSTREAM,
"Invalid scale factors");
diff --git a/vp9/decoder/vp9_onyxd_if.c b/vp9/decoder/vp9_onyxd_if.c
index e72b9628b..e24ba4279 100644
--- a/vp9/decoder/vp9_onyxd_if.c
+++ b/vp9/decoder/vp9_onyxd_if.c
@@ -379,10 +379,6 @@ int vp9_receive_compressed_data(VP9D_PTR ptr,
cm->current_video_frame + 3000);
#endif
- vp9_extend_frame_inner_borders(cm->frame_to_show,
- cm->subsampling_x,
- cm->subsampling_y);
-
#if WRITE_RECON_BUFFER == 1
if (cm->show_frame)
recon_write_yuv_frame("recon.yuv", cm->frame_to_show,