Add vp9_extend_frame_borders

Adds a subsampling aware border extension function. This may be reworked
soon to support more than 3 planes.

Change-Id: I76b81901ad10bb1e678dd4f0d22740ca6c76c43b
This commit is contained in:
John Koleszar
2013-05-08 16:18:44 -07:00
committed by Gerrit Code Review
parent 7addafb5b1
commit 418564e7d0
5 changed files with 41 additions and 3 deletions

View File

@@ -770,7 +770,7 @@ void vp9_first_pass(VP9_COMP *cpi) {
// swap frame pointers so last frame refers to the frame we just compressed
swap_yv12(lst_yv12, new_yv12);
vp8_yv12_extend_frame_borders(lst_yv12);
vp9_extend_frame_borders(lst_yv12, cm->subsampling_x, cm->subsampling_y);
// Special case for the first frame. Copy into the GF buffer as a second reference.
if (cm->current_video_frame == 0)