/external/libvpx/libvpx/vp9/encoder/ |
D | vp9_svc_layercontext.c | 23 const VP9EncoderConfig *const oxcf = &cpi->oxcf; in vp9_init_layer_context() local 30 if (cpi->oxcf.error_resilient_mode == 0 && cpi->oxcf.pass == 2) { in vp9_init_layer_context() 49 for (sl = 0; sl < oxcf->ss_number_layers; ++sl) { in vp9_init_layer_context() 50 for (tl = 0; tl < oxcf->ts_number_layers; ++tl) { in vp9_init_layer_context() 51 int layer = LAYER_IDS_TO_IDX(sl, tl, oxcf->ts_number_layers); in vp9_init_layer_context() 59 lrc->ni_av_qi = oxcf->worst_allowed_q; in vp9_init_layer_context() 73 if (cpi->oxcf.rc_mode == VPX_CBR) { in vp9_init_layer_context() 74 lc->target_bandwidth = oxcf->layer_target_bitrate[layer]; in vp9_init_layer_context() 75 lrc->last_q[INTER_FRAME] = oxcf->worst_allowed_q; in vp9_init_layer_context() 76 lrc->avg_frame_qindex[INTER_FRAME] = oxcf->worst_allowed_q; in vp9_init_layer_context() [all …]
|
D | vp9_ratectrl.c | 201 const VP9EncoderConfig *oxcf = &cpi->oxcf; in vp9_rc_clamp_pframe_target_size() local 216 if (oxcf->rc_max_inter_bitrate_pct) { in vp9_rc_clamp_pframe_target_size() 218 oxcf->rc_max_inter_bitrate_pct / 100; in vp9_rc_clamp_pframe_target_size() 226 const VP9EncoderConfig *oxcf = &cpi->oxcf; in vp9_rc_clamp_iframe_target_size() local 227 if (oxcf->rc_max_intra_bitrate_pct) { in vp9_rc_clamp_iframe_target_size() 229 oxcf->rc_max_intra_bitrate_pct / 100; in vp9_rc_clamp_iframe_target_size() 304 void vp9_rc_init(const VP9EncoderConfig *oxcf, int pass, RATE_CONTROL *rc) { in vp9_rc_init() argument 307 if (pass == 0 && oxcf->rc_mode == VPX_CBR) { in vp9_rc_init() 308 rc->avg_frame_qindex[KEY_FRAME] = oxcf->worst_allowed_q; in vp9_rc_init() 309 rc->avg_frame_qindex[INTER_FRAME] = oxcf->worst_allowed_q; in vp9_rc_init() [all …]
|
D | vp9_encoder.c | 615 const VP9EncoderConfig *oxcf = &cpi->oxcf; in alloc_raw_frame_buffers() local 618 cpi->lookahead = vp9_lookahead_init(oxcf->width, oxcf->height, in alloc_raw_frame_buffers() 623 oxcf->lag_in_frames); in alloc_raw_frame_buffers() 630 oxcf->width, oxcf->height, in alloc_raw_frame_buffers() 724 cm->log2_tile_cols = clamp(cpi->oxcf.tile_columns, in set_tile_limits() 726 cm->log2_tile_rows = cpi->oxcf.tile_rows; in set_tile_limits() 763 static void init_config(struct VP9_COMP *cpi, VP9EncoderConfig *oxcf) { in init_config() argument 766 cpi->oxcf = *oxcf; in init_config() 767 cpi->framerate = oxcf->init_framerate; in init_config() 769 cm->profile = oxcf->profile; in init_config() [all …]
|
D | vp9_speed_features.c | 95 if ((speed >= 1) && (cpi->oxcf.pass == 2) && in set_good_speed_feature_framesize_dependent() 151 sf->reference_masking = cpi->oxcf.resize_mode != RESIZE_DYNAMIC ? 1 : 0; in set_good_speed_feature() 287 sf->reference_masking = (cpi->oxcf.resize_mode != RESIZE_DYNAMIC && in set_rt_speed_feature() 412 const VP9EncoderConfig *const oxcf = &cpi->oxcf; in vp9_set_speed_features_framesize_dependent() local 416 if (oxcf->mode == REALTIME) { in vp9_set_speed_features_framesize_dependent() 417 set_rt_speed_feature_framesize_dependent(cpi, sf, oxcf->speed); in vp9_set_speed_features_framesize_dependent() 418 } else if (oxcf->mode == GOOD) { in vp9_set_speed_features_framesize_dependent() 419 set_good_speed_feature_framesize_dependent(cpi, sf, oxcf->speed); in vp9_set_speed_features_framesize_dependent() 426 if (cpi->encode_breakout && oxcf->mode == REALTIME && in vp9_set_speed_features_framesize_dependent() 443 const VP9EncoderConfig *const oxcf = &cpi->oxcf; in vp9_set_speed_features_framesize_independent() local [all …]
|
D | vp9_firstpass.c | 254 const VP9EncoderConfig *oxcf, in calculate_modified_err() argument 261 DOUBLE_DIVIDE_CHECK(av_err), oxcf->two_pass_vbrbias / 100.0); in calculate_modified_err() 277 const VP9EncoderConfig *oxcf) { in frame_max_bits() argument 279 (int64_t)oxcf->two_pass_vbrmax_section) / 100; in frame_max_bits() 1037 const int num_mbs = (cpi->oxcf.resize_mode != RESIZE_NONE) in vp9_first_pass() 1184 const VP9EncoderConfig *const oxcf = &cpi->oxcf; in get_twopass_worst_quality() local 1191 const int num_mbs = (cpi->oxcf.resize_mode != RESIZE_NONE) in get_twopass_worst_quality() 1195 const double speed_term = 1.0 + 0.04 * oxcf->speed; in get_twopass_worst_quality() 1225 if (cpi->oxcf.rc_mode == VPX_CQ) in get_twopass_worst_quality() 1226 q = MAX(q, oxcf->cq_level); in get_twopass_worst_quality() [all …]
|
D | vp9_encoder.h | 298 VP9EncoderConfig oxcf; member 507 struct VP9_COMP *vp9_create_compressor(VP9EncoderConfig *oxcf, 511 void vp9_change_config(VP9_COMP *cpi, const VP9EncoderConfig *oxcf); 623 return cpi->use_svc && cpi->oxcf.pass != 0; in is_two_pass_svc() 627 return (cpi->use_svc && cpi->oxcf.pass == 0); in is_one_pass_cbr_svc() 631 return cpi->oxcf.mode != REALTIME && cpi->oxcf.lag_in_frames > 0 && in is_altref_enabled() 632 (cpi->oxcf.enable_auto_arf && in is_altref_enabled() 634 cpi->oxcf.ss_enable_auto_arf[cpi->svc.spatial_layer_id])); in is_altref_enabled()
|
D | vp9_ethread.c | 55 const int aligned_width = ALIGN_POWER_OF_TWO(cpi->oxcf.width, MI_SIZE_LOG2); in get_max_tile_cols() 61 log2_tile_cols = clamp(cpi->oxcf.tile_columns, in get_max_tile_cols() 70 const int num_workers = MIN(cpi->oxcf.max_threads, tile_cols); in vp9_encode_tiles_mt() 83 allocated_workers = MIN(cpi->oxcf.max_threads, max_tile_cols); in vp9_encode_tiles_mt()
|
D | vp9_picklpf.c | 28 if (cpi->oxcf.pass == 2) { in get_max_filter_level() 101 if ((cpi->oxcf.pass == 2) && (cpi->twopass.section_intra_rating < 20)) in search_filter_level() 155 : cpi->oxcf.sharpness; in vp9_pick_filter_level()
|
D | vp9_temporal_filter.c | 594 const VP9EncoderConfig *const oxcf = &cpi->oxcf; in adjust_arnr_filter() local 597 int frames_fwd = (cpi->oxcf.arnr_max_frames - 1) >> 1; in adjust_arnr_filter() 612 frames_bwd += (oxcf->arnr_max_frames + 1) & 0x1; in adjust_arnr_filter() 625 strength = oxcf->arnr_strength; in adjust_arnr_filter() 627 strength = oxcf->arnr_strength - ((16 - q) / 2); in adjust_arnr_filter() 643 if (cpi->oxcf.pass == 2 && cpi->multi_arf_allowed) { in adjust_arnr_filter()
|
D | vp9_bitstream.h | 30 cpi->oxcf.ss_enable_auto_arf[0])); in vp9_preserve_existing_gf()
|
/external/libvpx/libvpx/vp8/encoder/ |
D | onyx_if.c | 208 lc->starting_buffer_level = cpi->oxcf.starting_buffer_level; in save_layer_context() 209 lc->optimal_buffer_level = cpi->oxcf.optimal_buffer_level; in save_layer_context() 210 lc->maximum_buffer_size = cpi->oxcf.maximum_buffer_size; in save_layer_context() 211 lc->starting_buffer_level_in_ms = cpi->oxcf.starting_buffer_level_in_ms; in save_layer_context() 212 lc->optimal_buffer_level_in_ms = cpi->oxcf.optimal_buffer_level_in_ms; in save_layer_context() 213 lc->maximum_buffer_size_in_ms = cpi->oxcf.maximum_buffer_size_in_ms; in save_layer_context() 247 cpi->oxcf.target_bandwidth = lc->target_bandwidth; in restore_layer_context() 248 cpi->oxcf.starting_buffer_level = lc->starting_buffer_level; in restore_layer_context() 249 cpi->oxcf.optimal_buffer_level = lc->optimal_buffer_level; in restore_layer_context() 250 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 | 55 #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 …]
|
D | pickinter.c | 99 if (cpi->oxcf.number_of_layers > 1) in check_dot_artifact_candidate() 112 !cpi->oxcf.screen_content_mode) in check_dot_artifact_candidate() 514 = ((LOWER_RES_FRAME_INFO*)cpi->oxcf.mr_low_res_mode_info)->mb_info; in get_lower_res_motion_info() 525 parent_mb_row = mb_row*cpi->oxcf.mr_down_sampling_factor.den in get_lower_res_motion_info() 526 /cpi->oxcf.mr_down_sampling_factor.num; in get_lower_res_motion_info() 527 parent_mb_col = mb_col*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() 539 if (cpi->oxcf.mr_encoder_id == (cpi->oxcf.mr_total_resolutions - 1)) in get_lower_res_motion_info() 548 *cpi->oxcf.mr_down_sampling_factor.num in get_lower_res_motion_info() 549 /cpi->oxcf.mr_down_sampling_factor.den; in get_lower_res_motion_info() [all …]
|
D | encodeframe.c | 479 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() 752 if (cpi->oxcf.cpu_used < 0) in vp8_encode_frame() 753 cpi->Speed = -(cpi->oxcf.cpu_used); in vp8_encode_frame() 794 if(cpi->oxcf.tuning == VP8_TUNE_SSIM) in vp8_encode_frame() 1035 if ((cm->frame_type != KEY_FRAME) && ((cpi->oxcf.number_of_layers > 1) || in vp8_encode_frame() 1196 if(cpi->oxcf.tuning == VP8_TUNE_SSIM) in vp8cx_encode_intra_macroblock() 1245 x->encode_breakout = cpi->oxcf.encode_breakout; in vp8cx_encode_inter_macroblock() 1291 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 | 159 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 | 155 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 | 76 VP8_CONFIG oxcf; member 282 static vpx_codec_err_t set_vp8e_config(VP8_CONFIG *oxcf, in set_vp8e_config() argument 287 oxcf->multi_threaded = cfg.g_threads; in set_vp8e_config() 288 oxcf->Version = cfg.g_profile; in set_vp8e_config() 290 oxcf->Width = cfg.g_w; in set_vp8e_config() 291 oxcf->Height = cfg.g_h; in set_vp8e_config() 292 oxcf->timebase = cfg.g_timebase; in set_vp8e_config() 294 oxcf->error_resilient_mode = cfg.g_error_resilient; in set_vp8e_config() 299 oxcf->Mode = MODE_BESTQUALITY; in set_vp8e_config() 302 oxcf->Mode = MODE_FIRSTPASS; in set_vp8e_config() [all …]
|
D | vp8_dx_iface.c | 373 VP8D_CONFIG oxcf; in vp8_decode() local 375 oxcf.Width = ctx->si.w; in vp8_decode() 376 oxcf.Height = ctx->si.h; in vp8_decode() 377 oxcf.Version = 9; in vp8_decode() 378 oxcf.postprocess = 0; in vp8_decode() 379 oxcf.max_threads = ctx->cfg.threads; in vp8_decode() 380 oxcf.error_concealment = in vp8_decode() 394 res = vp8_create_decoder_instances(&ctx->yv12_frame_buffers, &oxcf); in vp8_decode()
|
/external/libvpx/libvpx/vp9/ |
D | vp9_cx_iface.c | 80 VP9EncoderConfig oxcf; member 380 VP9EncoderConfig *oxcf, in set_encoder_config() argument 385 oxcf->profile = cfg->g_profile; in set_encoder_config() 386 oxcf->max_threads = (int)cfg->g_threads; in set_encoder_config() 387 oxcf->width = cfg->g_w; in set_encoder_config() 388 oxcf->height = cfg->g_h; in set_encoder_config() 389 oxcf->bit_depth = cfg->g_bit_depth; in set_encoder_config() 390 oxcf->input_bit_depth = cfg->g_input_bit_depth; in set_encoder_config() 392 oxcf->init_framerate = (double)cfg->g_timebase.den / cfg->g_timebase.num; in set_encoder_config() 393 if (oxcf->init_framerate > 180) in set_encoder_config() [all …]
|
/external/libvpx/libvpx/vp8/common/ |
D | onyx.h | 258 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/ |
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() 90 (void)oxcf; in create_decompressor() 456 int vp8_create_decoder_instances(struct frame_buffers *fb, VP8D_CONFIG *oxcf) in vp8_create_decoder_instances() argument 461 fb->pbi[0] = create_decompressor(oxcf); in vp8_create_decoder_instances() 468 fb->pbi[0]->max_threads = oxcf->max_threads; in vp8_create_decoder_instances()
|
D | onyxd_int.h | 77 VP8D_CONFIG oxcf; member 135 int vp8_create_decoder_instances(struct frame_buffers *fb, VP8D_CONFIG *oxcf);
|