Lines Matching defs:cpi

16 void vp9_init_layer_context(VP9_COMP *const cpi) {
17 SVC *const svc = &cpi->svc;
18 const VP9_CONFIG *const oxcf = &cpi->oxcf;
65 void vp9_update_layer_context_change_config(VP9_COMP *const cpi,
67 SVC *const svc = &cpi->svc;
68 const VP9_CONFIG *const oxcf = &cpi->oxcf;
69 const RATE_CONTROL *const rc = &cpi->rc;
119 void vp9_update_temporal_layer_framerate(VP9_COMP *const cpi) {
120 SVC *const svc = &cpi->svc;
121 const VP9_CONFIG *const oxcf = &cpi->oxcf;
128 lrc->max_frame_bandwidth = cpi->rc.max_frame_bandwidth;
143 void vp9_update_spatial_layer_framerate(VP9_COMP *const cpi, double framerate) {
144 const VP9_CONFIG *const oxcf = &cpi->oxcf;
145 LAYER_CONTEXT *const lc = get_layer_context(&cpi->svc);
156 lrc->static_scene_max_gf_interval = cpi->key_frame_frequency >> 1;
170 void vp9_restore_layer_context(VP9_COMP *const cpi) {
171 LAYER_CONTEXT *const lc = get_layer_context(&cpi->svc);
172 const int old_frame_since_key = cpi->rc.frames_since_key;
173 const int old_frame_to_key = cpi->rc.frames_to_key;
175 cpi->rc = lc->rc;
176 cpi->twopass = lc->twopass;
177 cpi->oxcf.target_bandwidth = lc->target_bandwidth;
178 cpi->oxcf.starting_buffer_level = lc->starting_buffer_level;
179 cpi->oxcf.optimal_buffer_level = lc->optimal_buffer_level;
180 cpi->oxcf.maximum_buffer_size = lc->maximum_buffer_size;
181 cpi->output_framerate = lc->framerate;
184 if (cpi->svc.number_temporal_layers > 1) {
185 cpi->rc.frames_since_key = old_frame_since_key;
186 cpi->rc.frames_to_key = old_frame_to_key;
190 void vp9_save_layer_context(VP9_COMP *const cpi) {
191 const VP9_CONFIG *const oxcf = &cpi->oxcf;
192 LAYER_CONTEXT *const lc = get_layer_context(&cpi->svc);
194 lc->rc = cpi->rc;
195 lc->twopass = cpi->twopass;
200 lc->framerate = cpi->output_framerate;
203 void vp9_init_second_pass_spatial_svc(VP9_COMP *cpi) {
204 SVC *const svc = &cpi->svc;
211 vp9_init_second_pass(cpi);