Home | History | Annotate | Download | only in encoder

Lines Matching refs:cpi

117 static int get_min_filter_level(VP8_COMP *cpi, int base_qindex)
121 if (cpi->source_alt_ref_active && cpi->common.refresh_golden_frame && !cpi->common.refresh_alt_ref_frame)
137 static int get_max_filter_level(VP8_COMP *cpi, int base_qindex)
145 if (cpi->section_intra_rating > 8)
148 (void) cpi;
154 void vp8cx_pick_filter_level_fast(YV12_BUFFER_CONFIG *sd, VP8_COMP *cpi)
156 VP8_COMMON *cm = &cpi->common;
166 //vp8_yv12_copy_frame_ptr( cm->frame_to_show, &cpi->last_frame_uf );
167 vp8_yv12_copy_partial_frame_ptr(cm->frame_to_show, &cpi->last_frame_uf, 3);
172 cm->sharpness_level = cpi->oxcf.Sharpness;
175 min_filter_level = get_min_filter_level(cpi, cm->base_qindex);
176 max_filter_level = get_max_filter_level(cpi, cm->base_qindex);
190 vp8_loop_filter_partial_frame(cm, &cpi->mb.e_mbd, filt_val, 0 , 3);
195 best_err = vp8_calc_partial_ssl_err(sd, cm->frame_to_show, 3, IF_RTCD(&cpi->rtcd.variance));
198 vp8_yv12_copy_partial_frame_ptr(&cpi->last_frame_uf, cm->frame_to_show, 3);
206 vp8_loop_filter_partial_frame(cm, &cpi->mb.e_mbd, filt_val, 0, 3);
212 filt_err = vp8_calc_partial_ssl_err(sd, cm->frame_to_show, 3, IF_RTCD(&cpi->rtcd.variance));
216 vp8_yv12_copy_partial_frame_ptr(&cpi->last_frame_uf, cm->frame_to_show, 3);
243 vp8_loop_filter_partial_frame(cm, &cpi->mb.e_mbd, filt_val, 0, 3);
249 filt_err = vp8_calc_partial_ssl_err(sd, cm->frame_to_show, 3, IF_RTCD(&cpi->rtcd.variance));
252 vp8_yv12_copy_partial_frame_ptr(&cpi->last_frame_uf, cm->frame_to_show, 3);
280 void vp8cx_set_alt_lf_level(VP8_COMP *cpi, int filt_val)
282 MACROBLOCKD *mbd = &cpi->mb.e_mbd;
285 mbd->segment_feature_data[MB_LVL_ALT_LF][0] = cpi->segment_feature_data[MB_LVL_ALT_LF][0];
286 mbd->segment_feature_data[MB_LVL_ALT_LF][1] = cpi->segment_feature_data[MB_LVL_ALT_LF][1];
287 mbd->segment_feature_data[MB_LVL_ALT_LF][2] = cpi->segment_feature_data[MB_LVL_ALT_LF][2];
288 mbd->segment_feature_data[MB_LVL_ALT_LF][3] = cpi->segment_feature_data[MB_LVL_ALT_LF][3];
291 void vp8cx_pick_filter_level(YV12_BUFFER_CONFIG *sd, VP8_COMP *cpi)
293 VP8_COMMON *cm = &cpi->common;
315 vp8_yv12_copy_frame_yonly_no_extend_frame_borders_neon(cm->frame_to_show, &cpi->last_frame_uf);
323 vp8_yv12_copy_frame_ptr(cm->frame_to_show, &cpi->last_frame_uf);
330 cm->sharpness_level = cpi->oxcf.Sharpness;
333 min_filter_level = get_min_filter_level(cpi, cm->base_qindex);
334 max_filter_level = get_max_filter_level(cpi, cm->base_qindex);
348 vp8cx_set_alt_lf_level(cpi, filt_mid);
349 vp8_loop_filter_frame_yonly(cm, &cpi->mb.e_mbd, filt_mid, 0);
354 best_err = vp8_calc_ss_err(sd, cm->frame_to_show, IF_RTCD(&cpi->rtcd.variance));
363 vp8_yv12_copy_frame_yonly_no_extend_frame_borders_neon(&cpi->last_frame_uf, cm->frame_to_show);
371 vp8_yv12_copy_frame_yonly_ptr(&cpi->last_frame_uf, cm->frame_to_show);
380 if (cpi->section_intra_rating < 20)
381 Bias = Bias * cpi->section_intra_rating / 20;
389 vp8cx_set_alt_lf_level(cpi, filt_low);
390 vp8_loop_filter_frame_yonly(cm, &cpi->mb.e_mbd, filt_low, 0);
395 filt_err = vp8_calc_ss_err(sd, cm->frame_to_show, IF_RTCD(&cpi->rtcd.variance));
403 vp8_yv12_copy_frame_yonly_no_extend_frame_borders_neon(&cpi->last_frame_uf, cm->frame_to_show);
411 vp8_yv12_copy_frame_yonly_ptr(&cpi->last_frame_uf, cm->frame_to_show);
429 vp8cx_set_alt_lf_level(cpi, filt_high);
430 vp8_loop_filter_frame_yonly(cm, &cpi->mb.e_mbd, filt_high, 0);
435 filt_err = vp8_calc_ss_err(sd, cm->frame_to_show, IF_RTCD(&cpi->rtcd.variance));
443 vp8_yv12_copy_frame_yonly_no_extend_frame_borders_neon(&cpi->last_frame_uf, cm->frame_to_show);
451 vp8_yv12_copy_frame_yonly_ptr(&cpi->last_frame_uf, cm->frame_to_show);
477 cpi->last_auto_filt_val = filt_best;
478 cpi->last_auto_filt_q = cm->base_qindex;
480 cpi->frames_since_auto_filter = 0;