From: Zoe Liu Date: Fri, 22 Jun 2018 02:56:09 +0000 (-0700) Subject: Single out ref frame update functionality X-Git-Tag: v1.8.0~588 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=a4b53b2e0ef60aa5841616f87afe3f957056ef43;p=libvpx Single out ref frame update functionality This CL is for a preparation to introduce hierarchical structure based reference frame update. Change-Id: Id00a6b721c97d24fc7f5499483b31762b3839a3e --- diff --git a/vp9/encoder/vp9_encoder.c b/vp9/encoder/vp9_encoder.c index 472c38658..74e0d85a5 100644 --- a/vp9/encoder/vp9_encoder.c +++ b/vp9/encoder/vp9_encoder.c @@ -2952,7 +2952,7 @@ static int recode_loop_test(VP9_COMP *cpi, int high_limit, int low_limit, int q, return force_recode; } -void vp9_update_reference_frames(VP9_COMP *cpi) { +void update_ref_frames(VP9_COMP *cpi) { VP9_COMMON *const cm = &cpi->common; BufferPool *const pool = cm->buffer_pool; @@ -3016,6 +3016,14 @@ void vp9_update_reference_frames(VP9_COMP *cpi) { cpi->interp_filter_selected[0], sizeof(cpi->interp_filter_selected[0])); } +} + +void vp9_update_reference_frames(VP9_COMP *cpi) { + VP9_COMMON *const cm = &cpi->common; + BufferPool *const pool = cm->buffer_pool; + + update_ref_frames(cpi); + #if CONFIG_VP9_TEMPORAL_DENOISING if (cpi->oxcf.noise_sensitivity > 0 && denoise_svc(cpi) && cpi->denoiser.denoising_level > kDenLowLow) { @@ -3054,6 +3062,7 @@ void vp9_update_reference_frames(VP9_COMP *cpi) { denoise_svc_second_layer); } #endif + if (is_one_pass_cbr_svc(cpi)) { // Keep track of frame index for each reference frame. SVC *const svc = &cpi->svc;