Home
last modified time | relevance | path

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

12

/external/libvpx/libvpx/vp9/encoder/
Dvp9_svc_layercontext.c25 const VP9EncoderConfig *const oxcf = &cpi->oxcf; in vp9_init_layer_context() local
35 if (cpi->oxcf.error_resilient_mode == 0 && cpi->oxcf.pass == 2) { in vp9_init_layer_context()
54 for (sl = 0; sl < oxcf->ss_number_layers; ++sl) { in vp9_init_layer_context()
55 for (tl = 0; tl < oxcf->ts_number_layers; ++tl) { in vp9_init_layer_context()
56 int layer = LAYER_IDS_TO_IDX(sl, tl, oxcf->ts_number_layers); in vp9_init_layer_context()
64 lrc->ni_av_qi = oxcf->worst_allowed_q; in vp9_init_layer_context()
78 if (cpi->oxcf.rc_mode == VPX_CBR) { in vp9_init_layer_context()
79 lc->target_bandwidth = oxcf->layer_target_bitrate[layer]; in vp9_init_layer_context()
80 lrc->last_q[INTER_FRAME] = oxcf->worst_allowed_q; in vp9_init_layer_context()
81 lrc->avg_frame_qindex[INTER_FRAME] = oxcf->worst_allowed_q; in vp9_init_layer_context()
[all …]
Dvp9_ratectrl.c202 const VP9EncoderConfig *oxcf = &cpi->oxcf; in vp9_rc_clamp_pframe_target_size() local
217 if (oxcf->rc_max_inter_bitrate_pct) { in vp9_rc_clamp_pframe_target_size()
219 oxcf->rc_max_inter_bitrate_pct / 100; in vp9_rc_clamp_pframe_target_size()
227 const VP9EncoderConfig *oxcf = &cpi->oxcf; in vp9_rc_clamp_iframe_target_size() local
228 if (oxcf->rc_max_intra_bitrate_pct) { in vp9_rc_clamp_iframe_target_size()
230 oxcf->rc_max_intra_bitrate_pct / 100; in vp9_rc_clamp_iframe_target_size()
277 if (cpi->oxcf.content == VP9E_CONTENT_SCREEN && in update_buffer_level()
278 cpi->oxcf.drop_frames_water_mark == 0) in update_buffer_level()
313 void vp9_rc_init(const VP9EncoderConfig *oxcf, int pass, RATE_CONTROL *rc) { in vp9_rc_init() argument
316 if (pass == 0 && oxcf->rc_mode == VPX_CBR) { in vp9_rc_init()
[all …]
Dvp9_encoder.c618 const VP9EncoderConfig *oxcf = &cpi->oxcf; in alloc_raw_frame_buffers() local
621 cpi->lookahead = vp9_lookahead_init(oxcf->width, oxcf->height, in alloc_raw_frame_buffers()
626 oxcf->lag_in_frames); in alloc_raw_frame_buffers()
633 oxcf->width, oxcf->height, in alloc_raw_frame_buffers()
727 cm->log2_tile_cols = clamp(cpi->oxcf.tile_columns, in set_tile_limits()
729 cm->log2_tile_rows = cpi->oxcf.tile_rows; in set_tile_limits()
766 static void init_config(struct VP9_COMP *cpi, VP9EncoderConfig *oxcf) { in init_config() argument
769 cpi->oxcf = *oxcf; in init_config()
770 cpi->framerate = oxcf->init_framerate; in init_config()
772 cm->profile = oxcf->profile; in init_config()
[all …]
Dvp9_speed_features.c96 if ((speed >= 1) && (cpi->oxcf.pass == 2) && in set_good_speed_feature_framesize_dependent()
156 sf->reference_masking = cpi->oxcf.resize_mode != RESIZE_DYNAMIC ? 1 : 0; in set_good_speed_feature()
292 sf->reference_masking = (cpi->oxcf.resize_mode != RESIZE_DYNAMIC && in set_rt_speed_feature()
416 const VP9EncoderConfig *const oxcf = &cpi->oxcf; in vp9_set_speed_features_framesize_dependent() local
420 if (oxcf->mode == REALTIME) { in vp9_set_speed_features_framesize_dependent()
421 set_rt_speed_feature_framesize_dependent(cpi, sf, oxcf->speed); in vp9_set_speed_features_framesize_dependent()
422 } else if (oxcf->mode == GOOD) { in vp9_set_speed_features_framesize_dependent()
423 set_good_speed_feature_framesize_dependent(cpi, sf, oxcf->speed); in vp9_set_speed_features_framesize_dependent()
430 if (cpi->encode_breakout && oxcf->mode == REALTIME && in vp9_set_speed_features_framesize_dependent()
447 const VP9EncoderConfig *const oxcf = &cpi->oxcf; in vp9_set_speed_features_framesize_independent() local
[all …]
Dvp9_firstpass.c255 const VP9EncoderConfig *oxcf, in calculate_modified_err() argument
262 DOUBLE_DIVIDE_CHECK(av_err), oxcf->two_pass_vbrbias / 100.0); in calculate_modified_err()
278 const VP9EncoderConfig *oxcf) { in frame_max_bits() argument
280 (int64_t)oxcf->two_pass_vbrmax_section) / 100; in frame_max_bits()
1038 const int num_mbs = (cpi->oxcf.resize_mode != RESIZE_NONE) in vp9_first_pass()
1185 const VP9EncoderConfig *const oxcf = &cpi->oxcf; in get_twopass_worst_quality() local
1195 const int num_mbs = (cpi->oxcf.resize_mode != RESIZE_NONE) in get_twopass_worst_quality()
1199 const double speed_term = 1.0 + 0.04 * oxcf->speed; in get_twopass_worst_quality()
1229 if (cpi->oxcf.rc_mode == VPX_CQ) in get_twopass_worst_quality()
1230 q = VPXMAX(q, oxcf->cq_level); in get_twopass_worst_quality()
[all …]
Dvp9_encoder.h301 VP9EncoderConfig oxcf; member
510 struct VP9_COMP *vp9_create_compressor(VP9EncoderConfig *oxcf,
514 void vp9_change_config(VP9_COMP *cpi, const VP9EncoderConfig *oxcf);
625 return cpi->use_svc && cpi->oxcf.pass != 0; in is_two_pass_svc()
629 return (cpi->use_svc && cpi->oxcf.pass == 0); in is_one_pass_cbr_svc()
633 return cpi->oxcf.mode != REALTIME && cpi->oxcf.lag_in_frames > 0 && in is_altref_enabled()
634 (cpi->oxcf.enable_auto_arf && in is_altref_enabled()
636 cpi->oxcf.ss_enable_auto_arf[cpi->svc.spatial_layer_id])); in is_altref_enabled()
Dvp9_ethread.c56 const int aligned_width = ALIGN_POWER_OF_TWO(cpi->oxcf.width, MI_SIZE_LOG2); in get_max_tile_cols()
62 log2_tile_cols = clamp(cpi->oxcf.tile_columns, in get_max_tile_cols()
71 const int num_workers = VPXMIN(cpi->oxcf.max_threads, tile_cols); in vp9_encode_tiles_mt()
84 allocated_workers = VPXMIN(cpi->oxcf.max_threads, max_tile_cols); in vp9_encode_tiles_mt()
Dvp9_picklpf.c28 if (cpi->oxcf.pass == 2) { in get_max_filter_level()
103 if ((cpi->oxcf.pass == 2) && (cpi->twopass.section_intra_rating < 20)) in search_filter_level()
157 : cpi->oxcf.sharpness; in vp9_pick_filter_level()
Dvp9_temporal_filter.c597 const VP9EncoderConfig *const oxcf = &cpi->oxcf; in adjust_arnr_filter() local
600 int frames_fwd = (cpi->oxcf.arnr_max_frames - 1) >> 1; in adjust_arnr_filter()
615 frames_bwd += (oxcf->arnr_max_frames + 1) & 0x1; in adjust_arnr_filter()
628 strength = oxcf->arnr_strength; in adjust_arnr_filter()
630 strength = oxcf->arnr_strength - ((16 - q) / 2); in adjust_arnr_filter()
646 if (cpi->oxcf.pass == 2 && cpi->multi_arf_allowed) { in adjust_arnr_filter()
Dvp9_bitstream.h30 cpi->oxcf.ss_enable_auto_arf[0])); in vp9_preserve_existing_gf()
/external/libvpx/libvpx/vp8/encoder/
Donyx_if.c209 lc->starting_buffer_level = cpi->oxcf.starting_buffer_level; in save_layer_context()
210 lc->optimal_buffer_level = cpi->oxcf.optimal_buffer_level; in save_layer_context()
211 lc->maximum_buffer_size = cpi->oxcf.maximum_buffer_size; in save_layer_context()
212 lc->starting_buffer_level_in_ms = cpi->oxcf.starting_buffer_level_in_ms; in save_layer_context()
213 lc->optimal_buffer_level_in_ms = cpi->oxcf.optimal_buffer_level_in_ms; in save_layer_context()
214 lc->maximum_buffer_size_in_ms = cpi->oxcf.maximum_buffer_size_in_ms; in save_layer_context()
248 cpi->oxcf.target_bandwidth = lc->target_bandwidth; in restore_layer_context()
249 cpi->oxcf.starting_buffer_level = lc->starting_buffer_level; in restore_layer_context()
250 cpi->oxcf.optimal_buffer_level = lc->optimal_buffer_level; in restore_layer_context()
251 cpi->oxcf.maximum_buffer_size = lc->maximum_buffer_size; in restore_layer_context()
[all …]
Dratectrl.c351 if (cpi->oxcf.fixed_q >= 0) in calc_iframe_target_size()
353 int Q = cpi->oxcf.key_q; in calc_iframe_target_size()
370 target = cpi->oxcf.starting_buffer_level / 2; in calc_iframe_target_size()
372 if(target > cpi->oxcf.target_bandwidth * 3 / 2) in calc_iframe_target_size()
373 target = cpi->oxcf.target_bandwidth * 3 / 2; in calc_iframe_target_size()
383 if (cpi->oxcf.number_of_layers == 1) { in calc_iframe_target_size()
408 if (cpi->oxcf.rc_max_intra_bitrate_pct) in calc_iframe_target_size()
411 * cpi->oxcf.rc_max_intra_bitrate_pct / 100; in calc_iframe_target_size()
444 int Q = (cpi->oxcf.fixed_q < 0) ? cpi->last_q[INTER_FRAME] : cpi->oxcf.fixed_q; in calc_gf_params()
559 if (cpi->oxcf.fixed_q == -1) in calc_gf_params()
[all …]
Dmr_dissim.c26 unsigned int iw = cpi->oxcf.Width*cpi->oxcf.mr_down_sampling_factor.den in vp8_cal_low_res_mb_cols()
27 + cpi->oxcf.mr_down_sampling_factor.num - 1; in vp8_cal_low_res_mb_cols()
29 low_res_w = iw/cpi->oxcf.mr_down_sampling_factor.num; in vp8_cal_low_res_mb_cols()
65 if (cpi->oxcf.mr_total_resolutions >1 in vp8_cal_dissimilarity()
66 && cpi->oxcf.mr_encoder_id < (cpi->oxcf.mr_total_resolutions - 1)) in vp8_cal_dissimilarity()
72 = (LOWER_RES_FRAME_INFO*)cpi->oxcf.mr_low_res_mode_info; in vp8_cal_dissimilarity()
117 if(cpi->oxcf.play_alternate) in vp8_cal_dissimilarity()
227 if (cpi->oxcf.mr_total_resolutions >1 in vp8_store_drop_frame_info()
228 && cpi->oxcf.mr_encoder_id < (cpi->oxcf.mr_total_resolutions - 1)) in vp8_store_drop_frame_info()
234 = (LOWER_RES_FRAME_INFO*)cpi->oxcf.mr_low_res_mode_info; in vp8_store_drop_frame_info()
Dfirstpass.c55 #define POW1 (double)cpi->oxcf.two_pass_vbrbias/100.0
56 #define POW2 (double)cpi->oxcf.two_pass_vbrbias/100.0
355 if (cpi->oxcf.end_usage == USAGE_STREAM_FROM_SERVER) in frame_max_bits()
357 …ness_ratio = (double)cpi->buffer_level / DOUBLE_DIVIDE_CHECK((double)cpi->oxcf.optimal_buffer_leve… in frame_max_bits()
362 …max_bits = (int)(cpi->av_per_frame_bandwidth * ((double)cpi->oxcf.two_pass_vbrmax_section / 100.0)… in frame_max_bits()
385 …l_stats.count - (double)cpi->common.current_video_frame)) * ((double)cpi->oxcf.two_pass_vbrmax_sec… in frame_max_bits()
652 if (raw_motion_error < cpi->oxcf.encode_breakout) in vp8_first_pass()
1030 if (cpi->oxcf.cpu_used <= 5) in estimate_max_q()
1031 speed_correction = 1.04 + (cpi->oxcf.cpu_used * 0.04); in estimate_max_q()
1072 if ( (cpi->oxcf.end_usage == USAGE_CONSTRAINED_QUALITY) && in estimate_max_q()
[all …]
Dpickinter.c101 if (cpi->oxcf.number_of_layers > 1) in check_dot_artifact_candidate()
114 !cpi->oxcf.screen_content_mode) in check_dot_artifact_candidate()
516 = ((LOWER_RES_FRAME_INFO*)cpi->oxcf.mr_low_res_mode_info)->mb_info; in get_lower_res_motion_info()
527 parent_mb_row = mb_row*cpi->oxcf.mr_down_sampling_factor.den in get_lower_res_motion_info()
528 /cpi->oxcf.mr_down_sampling_factor.num; in get_lower_res_motion_info()
529 parent_mb_col = mb_col*cpi->oxcf.mr_down_sampling_factor.den in get_lower_res_motion_info()
530 /cpi->oxcf.mr_down_sampling_factor.num; in get_lower_res_motion_info()
541 if (cpi->oxcf.mr_encoder_id == (cpi->oxcf.mr_total_resolutions - 1)) in get_lower_res_motion_info()
550 *cpi->oxcf.mr_down_sampling_factor.num in get_lower_res_motion_info()
551 /cpi->oxcf.mr_down_sampling_factor.den; in get_lower_res_motion_info()
[all …]
Dencodeframe.c479 if(cpi->oxcf.tuning == VP8_TUNE_SSIM) in encode_mb_row()
677 else if ((cpi->oxcf.number_of_layers > 1) && in init_encode_frame_mb_context()
681 else if ((cpi->oxcf.number_of_layers > 1) && in init_encode_frame_mb_context()
754 if (cpi->oxcf.cpu_used < 0) in vp8_encode_frame()
755 cpi->Speed = -(cpi->oxcf.cpu_used); in vp8_encode_frame()
796 if(cpi->oxcf.tuning == VP8_TUNE_SSIM) in vp8_encode_frame()
1037 if ((cm->frame_type != KEY_FRAME) && ((cpi->oxcf.number_of_layers > 1) || in vp8_encode_frame()
1198 if(cpi->oxcf.tuning == VP8_TUNE_SSIM) in vp8cx_encode_intra_macroblock()
1247 x->encode_breakout = cpi->oxcf.encode_breakout; in vp8cx_encode_inter_macroblock()
1293 if(cpi->oxcf.tuning == VP8_TUNE_SSIM) in vp8cx_encode_inter_macroblock()
[all …]
Dbitstream.c1048 if (cpi->oxcf.error_resilient_mode & VPX_ERROR_RESILIENT_PARTITIONS) in vp8_estimate_entropy_savings()
1069 if (cpi->oxcf.error_resilient_mode & VPX_ERROR_RESILIENT_PARTITIONS) in vp8_update_coef_context()
1096 if (cpi->oxcf.error_resilient_mode & VPX_ERROR_RESILIENT_PARTITIONS) in vp8_update_coef_probs()
1137 if (!(cpi->oxcf.error_resilient_mode & in vp8_update_coef_probs()
1152 if ((cpi->oxcf.error_resilient_mode & in vp8_update_coef_probs()
1412 || cpi->oxcf.error_resilient_mode; in vp8_pack_bitstream()
1426 || cpi->oxcf.error_resilient_mode) in vp8_pack_bitstream()
1453 || cpi->oxcf.error_resilient_mode) in vp8_pack_bitstream()
1517 if (cpi->oxcf.error_resilient_mode & VPX_ERROR_RESILIENT_PARTITIONS) in vp8_pack_bitstream()
Dethreading.c159 if (cpi->oxcf.tuning == VP8_TUNE_SSIM) in thread_encoding_proc()
520 if (cm->processor_core_count > 1 && cpi->oxcf.multi_threaded > 1) in vp8cx_create_encoder_threads()
523 int th_count = cpi->oxcf.multi_threaded - 1; in vp8cx_create_encoder_threads()
527 if (cpi->oxcf.multi_threaded > cm->processor_core_count) in vp8cx_create_encoder_threads()
Dpicklpf.c155 cm->sharpness_level = cpi->oxcf.Sharpness; in vp8cx_pick_filter_level_fast()
298 cm->sharpness_level = cpi->oxcf.Sharpness; in vp8cx_pick_filter_level()
/external/libvpx/libvpx/vp8/
Dvp8_cx_iface.c77 VP8_CONFIG oxcf; member
283 static vpx_codec_err_t set_vp8e_config(VP8_CONFIG *oxcf, in set_vp8e_config() argument
288 oxcf->multi_threaded = cfg.g_threads; in set_vp8e_config()
289 oxcf->Version = cfg.g_profile; in set_vp8e_config()
291 oxcf->Width = cfg.g_w; in set_vp8e_config()
292 oxcf->Height = cfg.g_h; in set_vp8e_config()
293 oxcf->timebase = cfg.g_timebase; in set_vp8e_config()
295 oxcf->error_resilient_mode = cfg.g_error_resilient; in set_vp8e_config()
300 oxcf->Mode = MODE_BESTQUALITY; in set_vp8e_config()
303 oxcf->Mode = MODE_FIRSTPASS; in set_vp8e_config()
[all …]
Dvp8_dx_iface.c360 VP8D_CONFIG oxcf; in vp8_decode() local
362 oxcf.Width = ctx->si.w; in vp8_decode()
363 oxcf.Height = ctx->si.h; in vp8_decode()
364 oxcf.Version = 9; in vp8_decode()
365 oxcf.postprocess = 0; in vp8_decode()
366 oxcf.max_threads = ctx->cfg.threads; in vp8_decode()
367 oxcf.error_concealment = in vp8_decode()
381 res = vp8_create_decoder_instances(&ctx->yv12_frame_buffers, &oxcf); in vp8_decode()
/external/libvpx/libvpx/vp9/
Dvp9_cx_iface.c86 VP9EncoderConfig oxcf; member
388 VP9EncoderConfig *oxcf, in set_encoder_config() argument
393 oxcf->profile = cfg->g_profile; in set_encoder_config()
394 oxcf->max_threads = (int)cfg->g_threads; in set_encoder_config()
395 oxcf->width = cfg->g_w; in set_encoder_config()
396 oxcf->height = cfg->g_h; in set_encoder_config()
397 oxcf->bit_depth = cfg->g_bit_depth; in set_encoder_config()
398 oxcf->input_bit_depth = cfg->g_input_bit_depth; in set_encoder_config()
400 oxcf->init_framerate = (double)cfg->g_timebase.den / cfg->g_timebase.num; in set_encoder_config()
401 if (oxcf->init_framerate > 180) in set_encoder_config()
[all …]
/external/libvpx/libvpx/vp8/common/
Donyx.h258 struct VP8_COMP* vp8_create_compressor(VP8_CONFIG *oxcf);
261 void vp8_init_config(struct VP8_COMP* onyx, VP8_CONFIG *oxcf);
262 void vp8_change_config(struct VP8_COMP* onyx, VP8_CONFIG *oxcf);
/external/libvpx/libvpx/vp8/decoder/
Donyxd_if.c68 static struct VP8D_COMP * create_decompressor(VP8D_CONFIG *oxcf) in create_decompressor() argument
101 pbi->ec_enabled = oxcf->error_concealment; in create_decompressor()
104 (void)oxcf; in create_decompressor()
471 int vp8_create_decoder_instances(struct frame_buffers *fb, VP8D_CONFIG *oxcf) in vp8_create_decoder_instances() argument
476 fb->pbi[0] = create_decompressor(oxcf); in vp8_create_decoder_instances()
483 fb->pbi[0]->max_threads = oxcf->max_threads; in vp8_create_decoder_instances()
Donyxd_int.h77 VP8D_CONFIG oxcf; member
135 int vp8_create_decoder_instances(struct frame_buffers *fb, VP8D_CONFIG *oxcf);

12