/external/libvpx/libvpx/vp9/encoder/ |
D | vp9_svc_layercontext.c | 19 const VP9EncoderConfig *const oxcf = &cpi->oxcf; in vp9_init_layer_context() local 39 lrc->ni_av_qi = oxcf->worst_allowed_q; in vp9_init_layer_context() 54 lc->target_bandwidth = oxcf->ts_target_bitrate[layer]; in vp9_init_layer_context() 55 lrc->last_q[INTER_FRAME] = oxcf->worst_allowed_q; in vp9_init_layer_context() 56 lrc->avg_frame_qindex[INTER_FRAME] = oxcf->worst_allowed_q; in vp9_init_layer_context() 58 lc->target_bandwidth = oxcf->ss_target_bitrate[layer]; in vp9_init_layer_context() 59 lrc->last_q[KEY_FRAME] = oxcf->best_allowed_q; in vp9_init_layer_context() 60 lrc->last_q[INTER_FRAME] = oxcf->best_allowed_q; in vp9_init_layer_context() 61 lrc->avg_frame_qindex[KEY_FRAME] = (oxcf->worst_allowed_q + in vp9_init_layer_context() 62 oxcf->best_allowed_q) / 2; in vp9_init_layer_context() [all …]
|
D | vp9_ratectrl.c | 137 const VP9EncoderConfig *oxcf = &cpi->oxcf; in vp9_rc_clamp_iframe_target_size() local 138 if (oxcf->rc_max_intra_bitrate_pct) { in vp9_rc_clamp_iframe_target_size() 140 oxcf->rc_max_intra_bitrate_pct / 100; in vp9_rc_clamp_iframe_target_size() 183 if (cpi->use_svc && cpi->oxcf.rc_mode == VPX_CBR) { in update_buffer_level() 188 void vp9_rc_init(const VP9EncoderConfig *oxcf, int pass, RATE_CONTROL *rc) { in vp9_rc_init() argument 191 if (pass == 0 && oxcf->rc_mode == VPX_CBR) { in vp9_rc_init() 192 rc->avg_frame_qindex[KEY_FRAME] = oxcf->worst_allowed_q; in vp9_rc_init() 193 rc->avg_frame_qindex[INTER_FRAME] = oxcf->worst_allowed_q; in vp9_rc_init() 195 rc->avg_frame_qindex[KEY_FRAME] = (oxcf->worst_allowed_q + in vp9_rc_init() 196 oxcf->best_allowed_q) / 2; in vp9_rc_init() [all …]
|
D | vp9_encoder.c | 406 const VP9EncoderConfig *oxcf = &cpi->oxcf; in alloc_raw_frame_buffers() local 408 cpi->lookahead = vp9_lookahead_init(oxcf->width, oxcf->height, in alloc_raw_frame_buffers() 410 oxcf->lag_in_frames); in alloc_raw_frame_buffers() 416 oxcf->width, oxcf->height, in alloc_raw_frame_buffers() 488 cpi->oxcf.framerate = framerate < 0.1 ? 30 : framerate; in vp9_new_framerate() 506 cm->log2_tile_cols = clamp(cpi->oxcf.tile_columns, in set_tile_limits() 508 cm->log2_tile_rows = cpi->oxcf.tile_rows; in set_tile_limits() 517 static void init_config(struct VP9_COMP *cpi, VP9EncoderConfig *oxcf) { in init_config() argument 520 cpi->oxcf = *oxcf; in init_config() 522 cm->profile = oxcf->profile; in init_config() [all …]
|
D | vp9_firstpass.c | 230 const VP9EncoderConfig *oxcf, in calculate_modified_err() argument 236 oxcf->two_pass_vbrbias / 100.0); in calculate_modified_err() 243 const VP9EncoderConfig *oxcf) { in frame_max_bits() argument 245 (int64_t)oxcf->two_pass_vbrmax_section) / 100; in frame_max_bits() 551 if (cpi->oxcf.aq_mode == VARIANCE_AQ) { in vp9_first_pass() 564 if (cpi->oxcf.aq_mode == VARIANCE_AQ) { in vp9_first_pass() 621 if (cpi->oxcf.aq_mode == VARIANCE_AQ) { in vp9_first_pass() 631 if (cpi->oxcf.aq_mode == VARIANCE_AQ) { in vp9_first_pass() 653 if (cpi->oxcf.aq_mode == VARIANCE_AQ) { in vp9_first_pass() 954 const VP9EncoderConfig *const oxcf = &cpi->oxcf; in get_twopass_worst_quality() local [all …]
|
D | vp9_speed_features.c | 323 const VP9EncoderConfig *const oxcf = &cpi->oxcf; in vp9_set_speed_features() local 333 sf->optimize_coefficients = !is_lossless_requested(&cpi->oxcf); in vp9_set_speed_features() 391 switch (oxcf->mode) { in vp9_set_speed_features() 399 set_good_speed_feature(cpi, cm, sf, oxcf->speed); in vp9_set_speed_features() 402 set_rt_speed_feature(cpi, sf, oxcf->speed, oxcf->content); in vp9_set_speed_features() 408 if (oxcf->pass == 1) in vp9_set_speed_features() 412 if (oxcf->pass == 0) { in vp9_set_speed_features() 421 cpi->mb.optimize = sf->optimize_coefficients == 1 && oxcf->pass != 1; in vp9_set_speed_features() 426 if (!cpi->oxcf.frame_periodic_boost) { in vp9_set_speed_features() 430 if (cpi->encode_breakout && oxcf->mode == REALTIME && in vp9_set_speed_features()
|
D | vp9_encoder.h | 251 VP9EncoderConfig oxcf; member 439 struct VP9_COMP *vp9_create_compressor(VP9EncoderConfig *oxcf); 442 void vp9_change_config(VP9_COMP *cpi, const VP9EncoderConfig *oxcf); 541 return cpi->oxcf.mode != REALTIME && cpi->oxcf.lag_in_frames > 0 && in is_altref_enabled() 542 (cpi->oxcf.play_alternate && in is_altref_enabled() 544 cpi->oxcf.ss_play_alternate[cpi->svc.spatial_layer_id])); in is_altref_enabled()
|
D | vp9_picklpf.c | 27 if (cpi->oxcf.pass == 2) { in get_max_filter_level() 85 if ((cpi->oxcf.pass == 2) && (cpi->twopass.section_intra_rating < 20)) in search_filter_level() 145 : cpi->oxcf.sharpness; in vp9_pick_filter_level()
|
D | vp9_temporal_filter.c | 363 int frames_fwd = (cpi->oxcf.arnr_max_frames - 1) >> 1; in adjust_arnr_filter() 378 frames_bwd += (cpi->oxcf.arnr_max_frames + 1) & 0x1; in adjust_arnr_filter() 391 cpi->active_arnr_strength = cpi->oxcf.arnr_strength; in adjust_arnr_filter() 393 cpi->active_arnr_strength = cpi->oxcf.arnr_strength - ((16 - q) / 2); in adjust_arnr_filter() 408 if (cpi->oxcf.pass == 2 && cpi->multi_arf_allowed) { in adjust_arnr_filter()
|
D | vp9_bitstream.h | 32 cpi->oxcf.ss_play_alternate[0])); in vp9_preserve_existing_gf()
|
D | vp9_encodeframe.c | 177 if (cpi->oxcf.aq_mode != VARIANCE_AQ) { in set_offsets() 534 if (cpi->oxcf.aq_mode == COMPLEXITY_AQ) { in update_state() 542 else if (cpi->oxcf.aq_mode == CYCLIC_REFRESH_AQ) { in update_state() 573 if (cpi->oxcf.aq_mode) in update_state() 697 const AQ_MODE aq_mode = cpi->oxcf.aq_mode; in rd_pick_sb_modes() 1306 if ((cpi->oxcf.aq_mode == CYCLIC_REFRESH_AQ) && seg->enabled) { in update_state_rt() 1333 if (cpi->oxcf.noise_sensitivity > 0 && output_enabled) { in encode_b_rt() 1462 if (bsize == BLOCK_16X16 && cpi->oxcf.aq_mode) { in rd_use_partition() 1686 if ((cpi->oxcf.aq_mode == COMPLEXITY_AQ) && cm->seg.update_map) { in rd_use_partition() 1691 if (cpi->oxcf.aq_mode == CYCLIC_REFRESH_AQ) in rd_use_partition() [all …]
|
/external/libvpx/libvpx/vp8/encoder/ |
D | onyx_if.c | 225 lc->starting_buffer_level = cpi->oxcf.starting_buffer_level; in save_layer_context() 226 lc->optimal_buffer_level = cpi->oxcf.optimal_buffer_level; in save_layer_context() 227 lc->maximum_buffer_size = cpi->oxcf.maximum_buffer_size; in save_layer_context() 228 lc->starting_buffer_level_in_ms = cpi->oxcf.starting_buffer_level_in_ms; in save_layer_context() 229 lc->optimal_buffer_level_in_ms = cpi->oxcf.optimal_buffer_level_in_ms; in save_layer_context() 230 lc->maximum_buffer_size_in_ms = cpi->oxcf.maximum_buffer_size_in_ms; in save_layer_context() 264 cpi->oxcf.target_bandwidth = lc->target_bandwidth; in restore_layer_context() 265 cpi->oxcf.starting_buffer_level = lc->starting_buffer_level; in restore_layer_context() 266 cpi->oxcf.optimal_buffer_level = lc->optimal_buffer_level; in restore_layer_context() 267 cpi->oxcf.maximum_buffer_size = lc->maximum_buffer_size; in restore_layer_context() [all …]
|
D | ratectrl.c | 350 if (cpi->oxcf.fixed_q >= 0) in calc_iframe_target_size() 352 int Q = cpi->oxcf.key_q; in calc_iframe_target_size() 369 target = cpi->oxcf.starting_buffer_level / 2; in calc_iframe_target_size() 371 if(target > cpi->oxcf.target_bandwidth * 3 / 2) in calc_iframe_target_size() 372 target = cpi->oxcf.target_bandwidth * 3 / 2; in calc_iframe_target_size() 382 if (cpi->oxcf.number_of_layers == 1) { in calc_iframe_target_size() 406 if (cpi->oxcf.rc_max_intra_bitrate_pct) in calc_iframe_target_size() 409 * cpi->oxcf.rc_max_intra_bitrate_pct / 100; in calc_iframe_target_size() 442 int Q = (cpi->oxcf.fixed_q < 0) ? cpi->last_q[INTER_FRAME] : cpi->oxcf.fixed_q; in calc_gf_params() 557 if (cpi->oxcf.fixed_q == -1) in calc_gf_params() [all …]
|
D | mr_dissim.c | 25 unsigned int iw = cpi->oxcf.Width*cpi->oxcf.mr_down_sampling_factor.den in vp8_cal_low_res_mb_cols() 26 + cpi->oxcf.mr_down_sampling_factor.num - 1; in vp8_cal_low_res_mb_cols() 28 low_res_w = iw/cpi->oxcf.mr_down_sampling_factor.num; in vp8_cal_low_res_mb_cols() 64 if (cpi->oxcf.mr_total_resolutions >1 in vp8_cal_dissimilarity() 65 && cpi->oxcf.mr_encoder_id < (cpi->oxcf.mr_total_resolutions - 1)) in vp8_cal_dissimilarity() 71 = (LOWER_RES_FRAME_INFO*)cpi->oxcf.mr_low_res_mode_info; in vp8_cal_dissimilarity() 116 if(cpi->oxcf.play_alternate) in vp8_cal_dissimilarity() 224 if (cpi->oxcf.mr_total_resolutions >1 in vp8_store_drop_frame_info() 225 && cpi->oxcf.mr_encoder_id < (cpi->oxcf.mr_total_resolutions - 1)) in vp8_store_drop_frame_info() 231 = (LOWER_RES_FRAME_INFO*)cpi->oxcf.mr_low_res_mode_info; in vp8_store_drop_frame_info()
|
D | firstpass.c | 56 #define POW1 (double)cpi->oxcf.two_pass_vbrbias/100.0 57 #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() 651 if (raw_motion_error < cpi->oxcf.encode_breakout) in vp8_first_pass() 1029 if (cpi->oxcf.cpu_used <= 5) in estimate_max_q() 1030 speed_correction = 1.04 + (cpi->oxcf.cpu_used * 0.04); in estimate_max_q() 1071 if ( (cpi->oxcf.end_usage == USAGE_CONSTRAINED_QUALITY) && in estimate_max_q() [all …]
|
D | pickinter.c | 415 = ((LOWER_RES_FRAME_INFO*)cpi->oxcf.mr_low_res_mode_info)->mb_info; in get_lower_res_motion_info() 426 parent_mb_row = mb_row*cpi->oxcf.mr_down_sampling_factor.den in get_lower_res_motion_info() 427 /cpi->oxcf.mr_down_sampling_factor.num; in get_lower_res_motion_info() 428 parent_mb_col = mb_col*cpi->oxcf.mr_down_sampling_factor.den in get_lower_res_motion_info() 429 /cpi->oxcf.mr_down_sampling_factor.num; in get_lower_res_motion_info() 440 if (cpi->oxcf.mr_encoder_id == (cpi->oxcf.mr_total_resolutions - 1)) in get_lower_res_motion_info() 449 *cpi->oxcf.mr_down_sampling_factor.num in get_lower_res_motion_info() 450 /cpi->oxcf.mr_down_sampling_factor.den; in get_lower_res_motion_info() 452 *cpi->oxcf.mr_down_sampling_factor.num in get_lower_res_motion_info() 453 /cpi->oxcf.mr_down_sampling_factor.den; in get_lower_res_motion_info() [all …]
|
D | encodeframe.c | 477 if(cpi->oxcf.tuning == VP8_TUNE_SSIM) in encode_mb_row() 670 else if ((cpi->oxcf.number_of_layers > 1) && in init_encode_frame_mb_context() 674 else if ((cpi->oxcf.number_of_layers > 1) && in init_encode_frame_mb_context() 745 if (cpi->oxcf.cpu_used < 0) in vp8_encode_frame() 746 cpi->Speed = -(cpi->oxcf.cpu_used); in vp8_encode_frame() 787 if(cpi->oxcf.tuning == VP8_TUNE_SSIM) in vp8_encode_frame() 1028 if ((cm->frame_type != KEY_FRAME) && ((cpi->oxcf.number_of_layers > 1) || in vp8_encode_frame() 1187 if(cpi->oxcf.tuning == VP8_TUNE_SSIM) in vp8cx_encode_intra_macroblock() 1236 x->encode_breakout = cpi->oxcf.encode_breakout; in vp8cx_encode_inter_macroblock() 1284 if(cpi->oxcf.tuning == VP8_TUNE_SSIM) in vp8cx_encode_inter_macroblock() [all …]
|
D | bitstream.c | 1046 if (cpi->oxcf.error_resilient_mode & VPX_ERROR_RESILIENT_PARTITIONS) in vp8_estimate_entropy_savings() 1067 if (cpi->oxcf.error_resilient_mode & VPX_ERROR_RESILIENT_PARTITIONS) in vp8_update_coef_context() 1094 if (cpi->oxcf.error_resilient_mode & VPX_ERROR_RESILIENT_PARTITIONS) in vp8_update_coef_probs() 1135 if (!(cpi->oxcf.error_resilient_mode & in vp8_update_coef_probs() 1150 if ((cpi->oxcf.error_resilient_mode & in vp8_update_coef_probs() 1410 || cpi->oxcf.error_resilient_mode; in vp8_pack_bitstream() 1424 || cpi->oxcf.error_resilient_mode) in vp8_pack_bitstream() 1451 || cpi->oxcf.error_resilient_mode) in vp8_pack_bitstream() 1515 if (cpi->oxcf.error_resilient_mode & VPX_ERROR_RESILIENT_PARTITIONS) in vp8_pack_bitstream()
|
D | ethreading.c | 161 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()
|
D | picklpf.c | 154 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/ |
D | vp8_cx_iface.c | 83 VP8_CONFIG oxcf; member 286 static vpx_codec_err_t set_vp8e_config(VP8_CONFIG *oxcf, in set_vp8e_config() argument 291 oxcf->multi_threaded = cfg.g_threads; in set_vp8e_config() 292 oxcf->Version = cfg.g_profile; in set_vp8e_config() 294 oxcf->Width = cfg.g_w; in set_vp8e_config() 295 oxcf->Height = cfg.g_h; in set_vp8e_config() 296 oxcf->timebase = cfg.g_timebase; in set_vp8e_config() 298 oxcf->error_resilient_mode = cfg.g_error_resilient; in set_vp8e_config() 303 oxcf->Mode = MODE_BESTQUALITY; in set_vp8e_config() 306 oxcf->Mode = MODE_FIRSTPASS; in set_vp8e_config() [all …]
|
D | vp8_dx_iface.c | 371 VP8D_CONFIG oxcf; in vp8_decode() local 373 oxcf.Width = ctx->si.w; in vp8_decode() 374 oxcf.Height = ctx->si.h; in vp8_decode() 375 oxcf.Version = 9; in vp8_decode() 376 oxcf.postprocess = 0; in vp8_decode() 377 oxcf.max_threads = ctx->cfg.threads; in vp8_decode() 378 oxcf.error_concealment = in vp8_decode() 392 res = vp8_create_decoder_instances(&ctx->yv12_frame_buffers, &oxcf); in vp8_decode()
|
/external/libvpx/libvpx/vp9/ |
D | vp9_cx_iface.c | 83 VP9EncoderConfig oxcf; member 325 VP9EncoderConfig *oxcf, in set_encoder_config() argument 328 oxcf->profile = cfg->g_profile; in set_encoder_config() 329 oxcf->width = cfg->g_w; in set_encoder_config() 330 oxcf->height = cfg->g_h; in set_encoder_config() 331 oxcf->bit_depth = extra_cfg->bit_depth; in set_encoder_config() 333 oxcf->framerate = (double)cfg->g_timebase.den / cfg->g_timebase.num; in set_encoder_config() 334 if (oxcf->framerate > 180) in set_encoder_config() 335 oxcf->framerate = 30; in set_encoder_config() 339 oxcf->mode = ONE_PASS_GOOD; in set_encoder_config() [all …]
|
/external/libvpx/libvpx/vp8/common/ |
D | onyx.h | 256 struct VP8_COMP* vp8_create_compressor(VP8_CONFIG *oxcf); 259 void vp8_init_config(struct VP8_COMP* onyx, VP8_CONFIG *oxcf); 260 void vp8_change_config(struct VP8_COMP* onyx, VP8_CONFIG *oxcf);
|
/external/libvpx/libvpx/vp8/decoder/ |
D | onyxd_int.h | 77 VP8D_CONFIG oxcf; member 135 int vp8_create_decoder_instances(struct frame_buffers *fb, VP8D_CONFIG *oxcf);
|
D | onyxd_if.c | 54 static struct VP8D_COMP * create_decompressor(VP8D_CONFIG *oxcf) in create_decompressor() argument 87 pbi->ec_enabled = oxcf->error_concealment; in create_decompressor() 452 int vp8_create_decoder_instances(struct frame_buffers *fb, VP8D_CONFIG *oxcf) in vp8_create_decoder_instances() argument 457 fb->pbi[0] = create_decompressor(oxcf); in vp8_create_decoder_instances() 464 fb->pbi[0]->max_threads = oxcf->max_threads; in vp8_create_decoder_instances()
|