summaryrefslogtreecommitdiff
path: root/vp8/common/setupintrarecon.c
diff options
context:
space:
mode:
authorScott LaVarnway <slavarnway@google.com>2012-09-13 11:51:27 -0700
committerScott LaVarnway <slavarnway@google.com>2012-09-13 11:51:27 -0700
commit648cfcb4375f23a6bec67b84d3677c0db728bae6 (patch)
tree753a23f2d8f04671a1059c4f27aaba27ae65a8d1 /vp8/common/setupintrarecon.c
parent08cf9faed0ac907a14ee83c9b1d99dd57fd89be6 (diff)
downloadlibvpx-648cfcb4375f23a6bec67b84d3677c0db728bae6.tar
libvpx-648cfcb4375f23a6bec67b84d3677c0db728bae6.tar.gz
libvpx-648cfcb4375f23a6bec67b84d3677c0db728bae6.tar.bz2
libvpx-648cfcb4375f23a6bec67b84d3677c0db728bae6.zip
Changed setup intra recon to be row based
Initialize the top line at the beginning of each frame and the left column at the beginning of each row. Change-Id: I5412f7ea49ffc490215cf65a62715a6c5e3a5a29
Diffstat (limited to 'vp8/common/setupintrarecon.c')
-rw-r--r--vp8/common/setupintrarecon.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/vp8/common/setupintrarecon.c b/vp8/common/setupintrarecon.c
index 7976e252b..60afe519f 100644
--- a/vp8/common/setupintrarecon.c
+++ b/vp8/common/setupintrarecon.c
@@ -30,3 +30,10 @@ void vp8_setup_intra_recon(YV12_BUFFER_CONFIG *ybf)
ybf->v_buffer[ybf->uv_stride *i - 1] = (unsigned char) 129;
}
+
+void vp8_setup_intra_recon_top_line(YV12_BUFFER_CONFIG *ybf)
+{
+ vpx_memset(ybf->y_buffer - 1 - ybf->y_stride, 127, ybf->y_width + 5);
+ vpx_memset(ybf->u_buffer - 1 - ybf->uv_stride, 127, ybf->uv_width + 5);
+ vpx_memset(ybf->v_buffer - 1 - ybf->uv_stride, 127, ybf->uv_width + 5);
+}