Home
last modified time | relevance | path

Searched refs:oxcf (Results 1 – 25 of 41) sorted by relevance

12

/external/libvpx/libvpx/vp8/encoder/
Donyx_if.c198 lc->starting_buffer_level = cpi->oxcf.starting_buffer_level; in save_layer_context()
199 lc->optimal_buffer_level = cpi->oxcf.optimal_buffer_level; in save_layer_context()
200 lc->maximum_buffer_size = cpi->oxcf.maximum_buffer_size; in save_layer_context()
201 lc->starting_buffer_level_in_ms = cpi->oxcf.starting_buffer_level_in_ms; in save_layer_context()
202 lc->optimal_buffer_level_in_ms = cpi->oxcf.optimal_buffer_level_in_ms; in save_layer_context()
203 lc->maximum_buffer_size_in_ms = cpi->oxcf.maximum_buffer_size_in_ms; in save_layer_context()
235 cpi->oxcf.target_bandwidth = lc->target_bandwidth; in restore_layer_context()
236 cpi->oxcf.starting_buffer_level = lc->starting_buffer_level; in restore_layer_context()
237 cpi->oxcf.optimal_buffer_level = lc->optimal_buffer_level; in restore_layer_context()
238 cpi->oxcf.maximum_buffer_size = lc->maximum_buffer_size; in restore_layer_context()
[all …]
Dratectrl.c302 if (cpi->oxcf.fixed_q >= 0) { in calc_iframe_target_size()
303 int Q = cpi->oxcf.key_q; in calc_iframe_target_size()
317 target = cpi->oxcf.starting_buffer_level / 2; in calc_iframe_target_size()
319 if (target > cpi->oxcf.target_bandwidth * 3 / 2) { in calc_iframe_target_size()
320 target = cpi->oxcf.target_bandwidth * 3 / 2; in calc_iframe_target_size()
329 if (cpi->oxcf.number_of_layers == 1) { in calc_iframe_target_size()
351 if (cpi->oxcf.rc_max_intra_bitrate_pct) { in calc_iframe_target_size()
353 cpi->per_frame_bandwidth * cpi->oxcf.rc_max_intra_bitrate_pct / 100; in calc_iframe_target_size()
383 (cpi->oxcf.fixed_q < 0) ? cpi->last_q[INTER_FRAME] : cpi->oxcf.fixed_q; in calc_gf_params()
500 if (cpi->oxcf.fixed_q == -1) { in calc_gf_params()
[all …]
Dmr_dissim.c24 unsigned int iw = cpi->oxcf.Width * cpi->oxcf.mr_down_sampling_factor.den + in vp8_cal_low_res_mb_cols()
25 cpi->oxcf.mr_down_sampling_factor.num - 1; in vp8_cal_low_res_mb_cols()
27 low_res_w = iw / cpi->oxcf.mr_down_sampling_factor.num; in vp8_cal_low_res_mb_cols()
59 if (cpi->oxcf.mr_total_resolutions > 1 && in vp8_cal_dissimilarity()
60 cpi->oxcf.mr_encoder_id < (cpi->oxcf.mr_total_resolutions - 1)) { in vp8_cal_dissimilarity()
65 (LOWER_RES_FRAME_INFO *)cpi->oxcf.mr_low_res_mode_info; in vp8_cal_dissimilarity()
105 if (cpi->oxcf.play_alternate) { in vp8_cal_dissimilarity()
203 if (cpi->oxcf.mr_total_resolutions > 1 && in vp8_store_drop_frame_info()
204 cpi->oxcf.mr_encoder_id < (cpi->oxcf.mr_total_resolutions - 1)) { in vp8_store_drop_frame_info()
209 (LOWER_RES_FRAME_INFO *)cpi->oxcf.mr_low_res_mode_info; in vp8_store_drop_frame_info()
Dfirstpass.c57 #define POW1 (double)cpi->oxcf.two_pass_vbrbias / 100.0
58 #define POW2 (double)cpi->oxcf.two_pass_vbrbias / 100.0
326 if (cpi->oxcf.end_usage == USAGE_STREAM_FROM_SERVER) { in frame_max_bits()
329 DOUBLE_DIVIDE_CHECK((double)cpi->oxcf.optimal_buffer_level); in frame_max_bits()
335 ((double)cpi->oxcf.two_pass_vbrmax_section / 100.0)); in frame_max_bits()
360 ((double)cpi->oxcf.two_pass_vbrmax_section / 100.0)); in frame_max_bits()
612 if (raw_motion_error < cpi->oxcf.encode_breakout) { in vp8_first_pass()
966 if (cpi->oxcf.cpu_used <= 5) { in estimate_max_q()
967 speed_correction = 1.04 + (cpi->oxcf.cpu_used * 0.04); in estimate_max_q()
1008 if ((cpi->oxcf.end_usage == USAGE_CONSTRAINED_QUALITY) && in estimate_max_q()
[all …]
Dpickinter.c141 if (cpi->oxcf.number_of_layers > 1) { in check_dot_artifact_candidate()
153 !cpi->oxcf.screen_content_mode) { in check_dot_artifact_candidate()
472 ((LOWER_RES_FRAME_INFO *)cpi->oxcf.mr_low_res_mode_info)->mb_info; in get_lower_res_motion_info()
483 parent_mb_row = mb_row * cpi->oxcf.mr_down_sampling_factor.den / in get_lower_res_motion_info()
484 cpi->oxcf.mr_down_sampling_factor.num; in get_lower_res_motion_info()
485 parent_mb_col = mb_col * cpi->oxcf.mr_down_sampling_factor.den / in get_lower_res_motion_info()
486 cpi->oxcf.mr_down_sampling_factor.num; in get_lower_res_motion_info()
497 if (cpi->oxcf.mr_encoder_id == (cpi->oxcf.mr_total_resolutions - 1)) in get_lower_res_motion_info()
505 cpi->oxcf.mr_down_sampling_factor.num / in get_lower_res_motion_info()
506 cpi->oxcf.mr_down_sampling_factor.den; in get_lower_res_motion_info()
[all …]
Dencodeframe.c434 if (cpi->oxcf.tuning == VP8_TUNE_SSIM) vp8_activity_masking(cpi, x); in encode_mb_row()
627 } else if ((cpi->oxcf.number_of_layers > 1) && in init_encode_frame_mb_context()
630 } else if ((cpi->oxcf.number_of_layers > 1) && in init_encode_frame_mb_context()
687 if (cpi->oxcf.cpu_used < 0) { in vp8_encode_frame()
688 cpi->Speed = -(cpi->oxcf.cpu_used); in vp8_encode_frame()
727 if (cpi->oxcf.tuning == VP8_TUNE_SSIM) { in vp8_encode_frame()
954 ((cpi->oxcf.number_of_layers > 1) || in vp8_encode_frame()
1092 if (cpi->oxcf.tuning == VP8_TUNE_SSIM) { in vp8cx_encode_intra_macroblock()
1136 x->encode_breakout = cpi->oxcf.encode_breakout; in vp8cx_encode_inter_macroblock()
1178 if (cpi->oxcf.tuning == VP8_TUNE_SSIM) { in vp8cx_encode_inter_macroblock()
[all …]
/external/libvpx/libvpx/vp8/
Dvp8_cx_iface.c77 VP8_CONFIG oxcf; member
274 static vpx_codec_err_t set_vp8e_config(VP8_CONFIG *oxcf, in set_vp8e_config() argument
278 oxcf->multi_threaded = cfg.g_threads; in set_vp8e_config()
279 oxcf->Version = cfg.g_profile; in set_vp8e_config()
281 oxcf->Width = cfg.g_w; in set_vp8e_config()
282 oxcf->Height = cfg.g_h; in set_vp8e_config()
283 oxcf->timebase = cfg.g_timebase; in set_vp8e_config()
285 oxcf->error_resilient_mode = cfg.g_error_resilient; in set_vp8e_config()
288 case VPX_RC_ONE_PASS: oxcf->Mode = MODE_BESTQUALITY; break; in set_vp8e_config()
289 case VPX_RC_FIRST_PASS: oxcf->Mode = MODE_FIRSTPASS; break; in set_vp8e_config()
[all …]
Dvp8_dx_iface.c303 VP8D_CONFIG oxcf; in vp8_decode() local
305 oxcf.Width = ctx->si.w; in vp8_decode()
306 oxcf.Height = ctx->si.h; in vp8_decode()
307 oxcf.Version = 9; in vp8_decode()
308 oxcf.postprocess = 0; in vp8_decode()
309 oxcf.max_threads = ctx->cfg.threads; in vp8_decode()
310 oxcf.error_concealment = in vp8_decode()
324 res = vp8_create_decoder_instances(&ctx->yv12_frame_buffers, &oxcf); in vp8_decode()
/external/libvpx/libvpx/vp9/
Dvp9_cx_iface.c95 VP9EncoderConfig oxcf; member
400 static void config_target_level(VP9EncoderConfig *oxcf) { in config_target_level() argument
403 const int target_level_index = get_level_index(oxcf->target_level); in config_target_level()
412 if ((double)oxcf->target_bandwidth > max_average_bitrate) in config_target_level()
413 oxcf->target_bandwidth = (int64_t)(max_average_bitrate); in config_target_level()
414 if (oxcf->ss_number_layers == 1 && oxcf->pass != 0) in config_target_level()
415 oxcf->ss_target_bitrate[0] = (int)oxcf->target_bandwidth; in config_target_level()
419 (int)((max_average_bitrate * 1.10 - (double)oxcf->target_bandwidth) * in config_target_level()
420 100 / (double)(oxcf->target_bandwidth)); in config_target_level()
421 if (oxcf->over_shoot_pct > max_over_shoot_pct) in config_target_level()
[all …]
/external/libvpx/libvpx/vp9/encoder/
Dvp9_svc_layercontext.c24 const VP9EncoderConfig *const oxcf = &cpi->oxcf; in vp9_init_layer_context() local
40 for (sl = 0; sl < oxcf->ss_number_layers; ++sl) { in vp9_init_layer_context()
49 if (cpi->oxcf.error_resilient_mode == 0 && cpi->oxcf.pass == 2) { in vp9_init_layer_context()
66 for (sl = 0; sl < oxcf->ss_number_layers; ++sl) { in vp9_init_layer_context()
67 for (tl = 0; tl < oxcf->ts_number_layers; ++tl) { in vp9_init_layer_context()
68 int layer = LAYER_IDS_TO_IDX(sl, tl, oxcf->ts_number_layers); in vp9_init_layer_context()
76 lrc->ni_av_qi = oxcf->worst_allowed_q; in vp9_init_layer_context()
90 if (cpi->oxcf.rc_mode == VPX_CBR) { in vp9_init_layer_context()
91 lc->target_bandwidth = oxcf->layer_target_bitrate[layer]; in vp9_init_layer_context()
92 lrc->last_q[INTER_FRAME] = oxcf->worst_allowed_q; in vp9_init_layer_context()
[all …]
Dvp9_ratectrl.c217 const VP9EncoderConfig *oxcf = &cpi->oxcf; in vp9_rc_clamp_pframe_target_size() local
230 if (oxcf->rc_max_inter_bitrate_pct) { in vp9_rc_clamp_pframe_target_size()
232 rc->avg_frame_bandwidth * oxcf->rc_max_inter_bitrate_pct / 100; in vp9_rc_clamp_pframe_target_size()
240 const VP9EncoderConfig *oxcf = &cpi->oxcf; in vp9_rc_clamp_iframe_target_size() local
241 if (oxcf->rc_max_intra_bitrate_pct) { in vp9_rc_clamp_iframe_target_size()
243 rc->avg_frame_bandwidth * oxcf->rc_max_intra_bitrate_pct / 100; in vp9_rc_clamp_iframe_target_size()
288 if (cpi->oxcf.content == VP9E_CONTENT_SCREEN && in update_buffer_level()
289 cpi->oxcf.drop_frames_water_mark == 0) in update_buffer_level()
324 void vp9_rc_init(const VP9EncoderConfig *oxcf, int pass, RATE_CONTROL *rc) { in vp9_rc_init() argument
327 if (pass == 0 && oxcf->rc_mode == VPX_CBR) { in vp9_rc_init()
[all …]
Dvp9_encoder.c99 const VP9EncoderConfig *const oxcf = &cpi->oxcf; in is_spatial_denoise_enabled() local
101 return (oxcf->pass != 1) && !is_lossless_requested(&cpi->oxcf) && in is_spatial_denoise_enabled()
109 const VP9EncoderConfig *const oxcf = &cpi->oxcf; in compute_context_model_thresh() local
111 const int bitrate = (int)(oxcf->target_bandwidth >> 10); in compute_context_model_thresh()
434 const VP9EncoderConfig *const oxcf = &cpi->oxcf; in is_psnr_calc_enabled() local
436 return cpi->b_calculate_psnr && (oxcf->pass != 1) && cm->show_frame; in is_psnr_calc_enabled()
1056 const VP9EncoderConfig *oxcf = &cpi->oxcf; in alloc_raw_frame_buffers() local
1059 cpi->lookahead = vp9_lookahead_init(oxcf->width, oxcf->height, in alloc_raw_frame_buffers()
1064 oxcf->lag_in_frames); in alloc_raw_frame_buffers()
1070 if (vpx_realloc_frame_buffer(&cpi->alt_ref_buffer, oxcf->width, oxcf->height, in alloc_raw_frame_buffers()
[all …]
Dvp9_speed_features.c132 if ((speed >= 1) && (cpi->oxcf.pass == 2) && in set_good_speed_feature_framesize_dependent()
185 if (cpi->oxcf.pass == 2) { in set_good_speed_feature_framesize_independent()
233 sf->reference_masking = cpi->oxcf.resize_mode != RESIZE_DYNAMIC ? 1 : 0; in set_good_speed_feature_framesize_independent()
403 cpi->oxcf.resize_mode == RESIZE_DYNAMIC)) { in set_rt_speed_feature_framesize_independent()
479 if (cpi->oxcf.rc_mode == VPX_VBR && cpi->oxcf.lag_in_frames > 0 && in set_rt_speed_feature_framesize_independent()
497 if (cpi->oxcf.rc_mode == VPX_VBR) sf->mv.search_method = NSTEP; in set_rt_speed_feature_framesize_independent()
516 if (cpi->oxcf.rc_mode == VPX_CBR && in set_rt_speed_feature_framesize_independent()
517 cpi->oxcf.content != VP9E_CONTENT_SCREEN) { in set_rt_speed_feature_framesize_independent()
530 if (cpi->oxcf.rc_mode == VPX_CBR && content != VP9E_CONTENT_SCREEN) { in set_rt_speed_feature_framesize_independent()
576 if (cpi->row_mt && cpi->oxcf.max_threads > 1) in set_rt_speed_feature_framesize_independent()
[all …]
Dvp9_noise_estimate.c48 if (cpi->oxcf.noise_sensitivity > 0 && denoise_svc(cpi) && in enable_noise_estimation()
56 if (cpi->oxcf.pass == 0 && cpi->oxcf.rc_mode == VPX_CBR && in enable_noise_estimation()
57 cpi->oxcf.aq_mode == CYCLIC_REFRESH_AQ && cpi->oxcf.speed >= 5 && in enable_noise_estimation()
59 cpi->oxcf.content != VP9E_CONTENT_SCREEN && cpi->common.width >= 640 && in enable_noise_estimation()
114 if (cpi->oxcf.noise_sensitivity > 0 && denoise_svc(cpi)) { in vp9_update_noise_estimate()
134 if (cpi->oxcf.noise_sensitivity > 0 && denoise_svc(cpi)) in vp9_update_noise_estimate()
149 if (cpi->oxcf.noise_sensitivity > 0 && denoise_svc(cpi) && in vp9_update_noise_estimate()
262 if (cpi->oxcf.noise_sensitivity > 0 && denoise_svc(cpi)) in vp9_update_noise_estimate()
269 if (cpi->oxcf.noise_sensitivity > 0 && denoise_svc(cpi)) in vp9_update_noise_estimate()
Dvp9_picklpf.c28 if (cpi->oxcf.pass == 2) { in get_max_filter_level()
102 if ((cpi->oxcf.pass == 2) && (cpi->twopass.section_intra_rating < 20)) in search_filter_level()
153 lf->sharpness_level = cm->frame_type == KEY_FRAME ? 0 : cpi->oxcf.sharpness; in vp9_pick_filter_level()
184 if (cpi->oxcf.pass == 0 && cpi->oxcf.rc_mode == VPX_CBR && in vp9_pick_filter_level()
185 cpi->oxcf.aq_mode == CYCLIC_REFRESH_AQ && cm->seg.enabled && in vp9_pick_filter_level()
186 cpi->oxcf.content != VP9E_CONTENT_SCREEN && cm->frame_type != KEY_FRAME) in vp9_pick_filter_level()
Dvp9_firstpass.c243 const VP9EncoderConfig *oxcf, in calculate_mod_frame_score() argument
251 oxcf->two_pass_vbrbias / 100.0); in calculate_mod_frame_score()
265 const VP9EncoderConfig *oxcf, in calculate_norm_frame_score() argument
273 oxcf->two_pass_vbrbias / 100.0); in calculate_norm_frame_score()
275 const double min_score = (double)(oxcf->two_pass_vbrmin_section) / 100.0; in calculate_norm_frame_score()
276 const double max_score = (double)(oxcf->two_pass_vbrmax_section) / 100.0; in calculate_norm_frame_score()
294 const VP9EncoderConfig *oxcf) { in frame_max_bits() argument
296 (int64_t)oxcf->two_pass_vbrmax_section) / in frame_max_bits()
713 const int num_mbs = (cpi->oxcf.resize_mode != RESIZE_NONE) ? cpi->initial_mbs in first_pass_stat_calc()
1584 const VP9EncoderConfig *const oxcf = &cpi->oxcf; in get_twopass_worst_quality() local
[all …]
Dvp9_encoder.h455 VP9EncoderConfig oxcf; member
721 struct VP9_COMP *vp9_create_compressor(VP9EncoderConfig *oxcf,
725 void vp9_change_config(VP9_COMP *cpi, const VP9EncoderConfig *oxcf);
853 return cpi->use_svc && cpi->oxcf.pass != 0; in is_two_pass_svc()
857 return (cpi->use_svc && cpi->oxcf.pass == 0); in is_one_pass_cbr_svc()
869 return !(cpi->oxcf.mode == REALTIME && cpi->oxcf.rc_mode == VPX_CBR) && in is_altref_enabled()
870 cpi->oxcf.lag_in_frames > 0 && in is_altref_enabled()
871 (cpi->oxcf.enable_auto_arf && in is_altref_enabled()
873 cpi->oxcf.ss_enable_auto_arf[cpi->svc.spatial_layer_id])); in is_altref_enabled()
Dvp9_aq_cyclicrefresh.c131 if (cpi->oxcf.speed < 8) in vp9_cyclic_refresh_rc_bits_per_mb()
174 if (cpi->oxcf.rc_mode == VPX_VBR && mi->ref_frame[0] == GOLDEN_FRAME) in vp9_cyclic_refresh_update_segment()
277 !cpi->oxcf.gf_cbr_boost_pct) { in vp9_cyclic_refresh_postencode()
316 if (cpi->oxcf.rc_mode == VPX_VBR) rc->baseline_gf_interval = 20; in vp9_cyclic_refresh_set_golden_update()
349 if (cpi->oxcf.content != VP9E_CONTENT_SCREEN) { in cyclic_refresh_update_map()
353 cpi->oxcf.content == VP9E_CONTENT_SCREEN in cyclic_refresh_update_map()
470 if (cpi->oxcf.rc_mode == VPX_VBR) { in vp9_cyclic_refresh_update_parameters()
Dvp9_temporal_filter.c624 const VP9EncoderConfig *const oxcf = &cpi->oxcf; in adjust_arnr_filter() local
627 int frames_fwd = (cpi->oxcf.arnr_max_frames - 1) >> 1; in adjust_arnr_filter()
632 if (oxcf->pass == 2) { in adjust_arnr_filter()
633 base_strength = oxcf->arnr_strength + cpi->twopass.arnr_strength_adjustment; in adjust_arnr_filter()
637 base_strength = oxcf->arnr_strength; in adjust_arnr_filter()
648 if (frames_bwd < distance) frames_bwd += (oxcf->arnr_max_frames + 1) & 0x1; in adjust_arnr_filter()
678 if (cpi->oxcf.pass == 2 && cpi->multi_arf_allowed) { in adjust_arnr_filter()
Dvp9_pickmode.c174 if (cpi->oxcf.speed > 5 && x->lowvar_highsumdiff) { in combined_motion_search()
363 if (cpi->oxcf.noise_sensitivity > 0 && denoise_svc(cpi) && in model_rd_for_sb_y_large()
364 cpi->oxcf.speed > 5) in model_rd_for_sb_y_large()
369 ac_thr *= ac_thr_factor(cpi->oxcf.speed, cpi->common.width, in model_rd_for_sb_y_large()
372 ac_thr *= ac_thr_factor(cpi->oxcf.speed, cpi->common.width, in model_rd_for_sb_y_large()
383 if (cpi->oxcf.aq_mode == CYCLIC_REFRESH_AQ && in model_rd_for_sb_y_large()
463 if (cpi->oxcf.speed < 8 || x->color_sensitivity[i - 1]) { in model_rd_for_sb_y_large()
560 if (cpi->oxcf.aq_mode == CYCLIC_REFRESH_AQ && in model_rd_for_sb_y()
653 (cpi->oxcf.speed > 5 && cpi->common.frame_type != KEY_FRAME && in block_yrd()
1551 if (cpi->oxcf.noise_sensitivity > 0) { in vp9_pick_inter_mode()
[all …]
Dvp9_ethread.c59 const int aligned_width = ALIGN_POWER_OF_TWO(cpi->oxcf.width, MI_SIZE_LOG2); in get_max_tile_cols()
66 clamp(cpi->oxcf.tile_columns, min_log2_tile_cols, max_log2_tile_cols); in get_max_tile_cols()
84 allocated_workers = VPXMIN(cpi->oxcf.max_threads, max_tile_cols); in create_enc_workers()
167 const int num_workers = VPXMIN(cpi->oxcf.max_threads, tile_cols); in vp9_encode_tiles_mt()
431 int num_workers = VPXMAX(cpi->oxcf.max_threads, 1); in vp9_encode_fp_row_mt()
587 int num_workers = VPXMAX(cpi->oxcf.max_threads, 1); in vp9_encode_tiles_row_mt()
Dvp9_bitstream.h46 cpi->oxcf.ss_enable_auto_arf[0])); in vp9_preserve_existing_gf()
/external/libvpx/libvpx/vp8/common/
Donyx.h246 struct VP8_COMP *vp8_create_compressor(VP8_CONFIG *oxcf);
249 void vp8_init_config(struct VP8_COMP *onyx, VP8_CONFIG *oxcf);
250 void vp8_change_config(struct VP8_COMP *onyx, VP8_CONFIG *oxcf);
/external/libvpx/libvpx/vp8/decoder/
Donyxd_if.c66 static struct VP8D_COMP *create_decompressor(VP8D_CONFIG *oxcf) { in create_decompressor() argument
97 pbi->ec_enabled = oxcf->error_concealment; in create_decompressor()
100 (void)oxcf; in create_decompressor()
441 int vp8_create_decoder_instances(struct frame_buffers *fb, VP8D_CONFIG *oxcf) { in vp8_create_decoder_instances() argument
443 fb->pbi[0] = create_decompressor(oxcf); in vp8_create_decoder_instances()
455 fb->pbi[0]->max_threads = oxcf->max_threads; in vp8_create_decoder_instances()
Donyxd_int.h64 VP8D_CONFIG oxcf; member
124 int vp8_create_decoder_instances(struct frame_buffers *fb, VP8D_CONFIG *oxcf);

12