/external/libvpx/libvpx/vp8/encoder/ |
H A D | ratectrl.c | 302 if (cpi->oxcf.fixed_q >= 0) { 303 int Q = cpi->oxcf.key_q; 317 target = cpi->oxcf.starting_buffer_level / 2; 319 if (target > cpi->oxcf.target_bandwidth * 3 / 2) { 320 target = cpi->oxcf.target_bandwidth * 3 / 2; 329 if (cpi->oxcf.number_of_layers == 1) { 351 if (cpi->oxcf.rc_max_intra_bitrate_pct) { 353 cpi->per_frame_bandwidth * cpi->oxcf.rc_max_intra_bitrate_pct / 100; 383 (cpi->oxcf.fixed_q < 0) ? cpi->last_q[INTER_FRAME] : cpi->oxcf [all...] |
H A D | onyx_if.c | 200 lc->starting_buffer_level = cpi->oxcf.starting_buffer_level; 201 lc->optimal_buffer_level = cpi->oxcf.optimal_buffer_level; 202 lc->maximum_buffer_size = cpi->oxcf.maximum_buffer_size; 203 lc->starting_buffer_level_in_ms = cpi->oxcf.starting_buffer_level_in_ms; 204 lc->optimal_buffer_level_in_ms = cpi->oxcf.optimal_buffer_level_in_ms; 205 lc->maximum_buffer_size_in_ms = cpi->oxcf.maximum_buffer_size_in_ms; 238 cpi->oxcf.target_bandwidth = lc->target_bandwidth; 239 cpi->oxcf.starting_buffer_level = lc->starting_buffer_level; 240 cpi->oxcf.optimal_buffer_level = lc->optimal_buffer_level; 241 cpi->oxcf 277 init_temporal_layer_context(VP8_COMP *cpi, VP8_CONFIG *oxcf, const int layer, double prev_layer_framerate) argument 335 reset_temporal_layer_change(VP8_COMP *cpi, VP8_CONFIG *oxcf, const int prev_num_layers) argument 1312 init_config(VP8_COMP *cpi, VP8_CONFIG *oxcf) argument 1391 VP8_CONFIG *oxcf = &cpi->oxcf; local 1434 vp8_change_config(VP8_COMP *cpi, VP8_CONFIG *oxcf) argument 1754 vp8_create_compressor(VP8_CONFIG *oxcf) argument [all...] |
H A D | mr_dissim.c | 24 unsigned int iw = cpi->oxcf.Width * cpi->oxcf.mr_down_sampling_factor.den + 25 cpi->oxcf.mr_down_sampling_factor.num - 1; 27 low_res_w = iw / cpi->oxcf.mr_down_sampling_factor.num; 59 if (cpi->oxcf.mr_total_resolutions > 1 && 60 cpi->oxcf.mr_encoder_id < (cpi->oxcf.mr_total_resolutions - 1)) { 65 (LOWER_RES_FRAME_INFO *)cpi->oxcf.mr_low_res_mode_info; 105 if (cpi->oxcf.play_alternate) { 203 if (cpi->oxcf [all...] |
H A D | firstpass.c | 57 #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) { 329 DOUBLE_DIVIDE_CHECK((double)cpi->oxcf.optimal_buffer_level); 335 ((double)cpi->oxcf.two_pass_vbrmax_section / 100.0)); 360 ((double)cpi->oxcf.two_pass_vbrmax_section / 100.0)); 612 if (raw_motion_error < cpi->oxcf.encode_breakout) { 966 if (cpi->oxcf.cpu_used <= 5) { 967 speed_correction = 1.04 + (cpi->oxcf.cpu_used * 0.04); 1008 if ((cpi->oxcf [all...] |
H A D | pickinter.c | 69 if (cpi->oxcf.number_of_layers > 1) { 81 !cpi->oxcf.screen_content_mode) { 400 ((LOWER_RES_FRAME_INFO *)cpi->oxcf.mr_low_res_mode_info)->mb_info; 411 parent_mb_row = mb_row * cpi->oxcf.mr_down_sampling_factor.den / 412 cpi->oxcf.mr_down_sampling_factor.num; 413 parent_mb_col = mb_col * cpi->oxcf.mr_down_sampling_factor.den / 414 cpi->oxcf.mr_down_sampling_factor.num; 425 if (cpi->oxcf.mr_encoder_id == (cpi->oxcf.mr_total_resolutions - 1)) 433 cpi->oxcf [all...] |
H A D | encodeframe.c | 429 if (cpi->oxcf.tuning == VP8_TUNE_SSIM) vp8_activity_masking(cpi, x); 623 } else if ((cpi->oxcf.number_of_layers > 1) && 626 } else if ((cpi->oxcf.number_of_layers > 1) && 683 if (cpi->oxcf.cpu_used < 0) { 684 cpi->Speed = -(cpi->oxcf.cpu_used); 723 if (cpi->oxcf.tuning == VP8_TUNE_SSIM) { 951 ((cpi->oxcf.number_of_layers > 1) || 1089 if (cpi->oxcf.tuning == VP8_TUNE_SSIM) { 1133 x->encode_breakout = cpi->oxcf.encode_breakout; 1175 if (cpi->oxcf [all...] |
/external/libvpx/libvpx/vp9/ |
H A D | vp9_cx_iface.c | 95 VP9EncoderConfig oxcf; member in struct:vpx_codec_alg_priv 414 static void config_target_level(VP9EncoderConfig *oxcf) { argument 417 const int target_level_index = get_level_index(oxcf->target_level); 426 if ((double)oxcf->target_bandwidth > max_average_bitrate) 427 oxcf->target_bandwidth = (int64_t)(max_average_bitrate); 428 if (oxcf->ss_number_layers == 1 && oxcf->pass != 0) 429 oxcf->ss_target_bitrate[0] = (int)oxcf->target_bandwidth; 433 (int)((max_average_bitrate * 1.10 - (double)oxcf 467 set_encoder_config( VP9EncoderConfig *oxcf, const vpx_codec_enc_cfg_t *cfg, const struct vp9_extracfg *extra_cfg) argument 1103 const VP9EncoderConfig *const oxcf = &cpi->oxcf; local [all...] |
/external/libvpx/libvpx/vp8/ |
H A D | vp8_cx_iface.c | 77 VP8_CONFIG oxcf; member in struct:vpx_codec_alg_priv 274 static vpx_codec_err_t set_vp8e_config(VP8_CONFIG *oxcf, argument 278 oxcf->multi_threaded = cfg.g_threads; 279 oxcf->Version = cfg.g_profile; 281 oxcf->Width = cfg.g_w; 282 oxcf->Height = cfg.g_h; 283 oxcf->timebase = cfg.g_timebase; 285 oxcf->error_resilient_mode = cfg.g_error_resilient; 288 case VPX_RC_ONE_PASS: oxcf->Mode = MODE_BESTQUALITY; break; 289 case VPX_RC_FIRST_PASS: oxcf [all...] |
H A D | vp8_dx_iface.c | 303 VP8D_CONFIG oxcf; local 305 oxcf.Width = ctx->si.w; 306 oxcf.Height = ctx->si.h; 307 oxcf.Version = 9; 308 oxcf.postprocess = 0; 309 oxcf.max_threads = ctx->cfg.threads; 310 oxcf.error_concealment = 324 res = vp8_create_decoder_instances(&ctx->yv12_frame_buffers, &oxcf);
|
/external/libvpx/libvpx/vp9/encoder/ |
H A D | vp9_svc_layercontext.c | 24 const VP9EncoderConfig *const oxcf = &cpi->oxcf; local 42 for (sl = 0; sl < oxcf->ss_number_layers; ++sl) { 51 if (cpi->oxcf.error_resilient_mode == 0 && cpi->oxcf.pass == 2) { 68 for (sl = 0; sl < oxcf->ss_number_layers; ++sl) { 69 for (tl = 0; tl < oxcf->ts_number_layers; ++tl) { 70 int layer = LAYER_IDS_TO_IDX(sl, tl, oxcf->ts_number_layers); 78 lrc->ni_av_qi = oxcf->worst_allowed_q; 92 if (cpi->oxcf 152 const VP9EncoderConfig *const oxcf = &cpi->oxcf; local 249 const VP9EncoderConfig *const oxcf = &cpi->oxcf; local 275 const VP9EncoderConfig *const oxcf = &cpi->oxcf; local 330 const VP9EncoderConfig *const oxcf = &cpi->oxcf; local 830 const VP9EncoderConfig *const oxcf = &cpi->oxcf; local [all...] |
H A D | vp9_ratectrl.c | 212 const VP9EncoderConfig *oxcf = &cpi->oxcf; local 214 if (cpi->oxcf.pass != 2) { 230 if (oxcf->rc_max_inter_bitrate_pct) { 232 rc->avg_frame_bandwidth * oxcf->rc_max_inter_bitrate_pct / 100; 240 const VP9EncoderConfig *oxcf = &cpi->oxcf; local 241 if (oxcf->rc_max_intra_bitrate_pct) { 243 rc->avg_frame_bandwidth * oxcf->rc_max_intra_bitrate_pct / 100; 288 if (cpi->oxcf 324 vp9_rc_init(const VP9EncoderConfig *oxcf, int pass, RATE_CONTROL *rc) argument 394 const VP9EncoderConfig *oxcf = &cpi->oxcf; local 841 get_active_cq_level_one_pass(const RATE_CONTROL *rc, const VP9EncoderConfig *const oxcf) argument 856 get_active_cq_level_two_pass(const TWO_PASS *twopass, const RATE_CONTROL *rc, const VP9EncoderConfig *const oxcf) argument 882 const VP9EncoderConfig *const oxcf = &cpi->oxcf; local 1063 const VP9EncoderConfig *const oxcf = &cpi->oxcf; local 1382 const VP9EncoderConfig *const oxcf = &cpi->oxcf; local 1610 const VP9EncoderConfig *oxcf = &cpi->oxcf; local 1660 const VP9EncoderConfig *oxcf = &cpi->oxcf; local 1844 const VP9EncoderConfig *const oxcf = &cpi->oxcf; local 1900 const VP9EncoderConfig *const oxcf = &cpi->oxcf; local [all...] |
H A D | vp9_speed_features.c | 132 if ((speed >= 1) && (cpi->oxcf.pass == 2) && 160 const VP9EncoderConfig *const oxcf = &cpi->oxcf; local 186 if (oxcf->pass == 2) { 229 if (oxcf->vbr_corpus_complexity) 238 sf->reference_masking = oxcf->resize_mode != RESIZE_DYNAMIC ? 1 : 0; 413 cpi->oxcf.resize_mode == RESIZE_DYNAMIC)) { 454 if (cpi->oxcf.rc_mode == VPX_VBR && cpi->oxcf.lag_in_frames > 0) 492 if (cpi->oxcf 673 const VP9EncoderConfig *const oxcf = &cpi->oxcf; local 725 const VP9EncoderConfig *const oxcf = &cpi->oxcf; local [all...] |
H A D | vp9_bitstream.h | 46 cpi->oxcf.ss_enable_auto_arf[0]));
|
H A D | vp9_encoder.c | 98 const VP9EncoderConfig *const oxcf = &cpi->oxcf; local 100 return (oxcf->pass != 1) && !is_lossless_requested(&cpi->oxcf) && 108 const VP9EncoderConfig *const oxcf = &cpi->oxcf; local 110 const int bitrate = (int)(oxcf->target_bandwidth >> 10); 433 const VP9EncoderConfig *const oxcf = &cpi->oxcf; local 435 return cpi->b_calculate_psnr && (oxcf 1075 const VP9EncoderConfig *oxcf = &cpi->oxcf; local 1283 init_config(struct VP9_COMP *cpi, VP9EncoderConfig *oxcf) argument 1333 set_rc_buffer_sizes(RATE_CONTROL *rc, const VP9EncoderConfig *oxcf) argument 1754 vp9_change_config(struct VP9_COMP *cpi, const VP9EncoderConfig *oxcf) argument 1975 vp9_create_compressor(VP9EncoderConfig *oxcf, BufferPool *const pool) argument 2772 const VP9EncoderConfig *const oxcf = &cpi->oxcf; local 3376 VP9EncoderConfig *const oxcf = &cpi->oxcf; local 3689 const VP9EncoderConfig *const oxcf = &cpi->oxcf; local 4308 const VP9EncoderConfig *const oxcf = &cpi->oxcf; local 4359 const VP9EncoderConfig *const oxcf = &cpi->oxcf; local 5071 const VP9EncoderConfig *const oxcf = &cpi->oxcf; local [all...] |
H A D | vp9_noise_estimate.c | 57 if (cpi->oxcf.noise_sensitivity > 0 && noise_est_svc(cpi) && 65 if (cpi->oxcf.pass == 0 && cpi->oxcf.rc_mode == VPX_CBR && 66 cpi->oxcf.aq_mode == CYCLIC_REFRESH_AQ && cpi->oxcf.speed >= 5 && 68 cpi->oxcf.content != VP9E_CONTENT_SCREEN && 123 if (cpi->oxcf.noise_sensitivity > 0 && noise_est_svc(cpi)) { 143 if (cpi->oxcf.noise_sensitivity > 0 && noise_est_svc(cpi)) 158 if (cpi->oxcf.noise_sensitivity > 0 && noise_est_svc(cpi) && 269 if (cpi->oxcf [all...] |
H A D | vp9_picklpf.c | 28 if (cpi->oxcf.pass == 2) { 102 if ((cpi->oxcf.pass == 2) && (cpi->twopass.section_intra_rating < 20)) 153 lf->sharpness_level = cm->frame_type == KEY_FRAME ? 0 : cpi->oxcf.sharpness; 184 if (cpi->oxcf.pass == 0 && cpi->oxcf.rc_mode == VPX_CBR && 185 cpi->oxcf.aq_mode == CYCLIC_REFRESH_AQ && cm->seg.enabled && 186 cpi->oxcf.content != VP9E_CONTENT_SCREEN && cm->frame_type != KEY_FRAME)
|
H A D | vp9_firstpass.c | 243 if (cpi->oxcf.vbr_corpus_complexity) 254 const VP9EncoderConfig *oxcf, 260 oxcf->two_pass_vbrbias / 100.0); 275 const VP9EncoderConfig *oxcf, 281 oxcf->two_pass_vbrbias / 100.0); 283 const double min_score = (double)(oxcf->two_pass_vbrmin_section) / 100.0; 284 const double max_score = (double)(oxcf->two_pass_vbrmax_section) / 100.0; 302 const VP9EncoderConfig *oxcf) { 304 (int64_t)oxcf->two_pass_vbrmax_section) / 721 const int num_mbs = (cpi->oxcf 253 calculate_mod_frame_score(const VP9_COMP *cpi, const VP9EncoderConfig *oxcf, const FIRSTPASS_STATS *this_frame, const double av_err) argument 273 calculate_norm_frame_score(const VP9_COMP *cpi, const TWO_PASS *twopass, const VP9EncoderConfig *oxcf, const FIRSTPASS_STATS *this_frame, const double av_err) argument 301 frame_max_bits(const RATE_CONTROL *rc, const VP9EncoderConfig *oxcf) argument 1593 const VP9EncoderConfig *const oxcf = &cpi->oxcf; local 1694 VP9EncoderConfig *const oxcf = &cpi->oxcf; local 2174 VP9EncoderConfig *const oxcf = &cpi->oxcf; local 2195 VP9EncoderConfig *const oxcf = &cpi->oxcf; local 2391 VP9EncoderConfig *const oxcf = &cpi->oxcf; local 2832 const VP9EncoderConfig *const oxcf = &cpi->oxcf; local [all...] |
H A D | vp9_encoder.h | 460 VP9EncoderConfig oxcf; member in struct:VP9_COMP 730 struct VP9_COMP *vp9_create_compressor(VP9EncoderConfig *oxcf, 734 void vp9_change_config(VP9_COMP *cpi, const VP9EncoderConfig *oxcf); 862 return cpi->use_svc && cpi->oxcf.pass != 0; 866 return (cpi->use_svc && cpi->oxcf.pass == 0); 879 return !(cpi->oxcf.mode == REALTIME && cpi->oxcf.rc_mode == VPX_CBR) && 880 cpi->oxcf.lag_in_frames >= MIN_LOOKAHEAD_FOR_ARFS && 881 (cpi->oxcf.enable_auto_arf && 883 cpi->oxcf [all...] |
H A D | vp9_aq_cyclicrefresh.c | 131 if (cpi->oxcf.speed < 8) 174 if (cpi->oxcf.rc_mode == VPX_VBR && mi->ref_frame[0] == GOLDEN_FRAME) 277 !cpi->oxcf.gf_cbr_boost_pct) { 316 if (cpi->oxcf.rc_mode == VPX_VBR) rc->baseline_gf_interval = 20; 349 if (cpi->oxcf.content != VP9E_CONTENT_SCREEN) { 353 cpi->oxcf.content == VP9E_CONTENT_SCREEN 471 if (cpi->oxcf.rc_mode == VPX_VBR) {
|
H A D | vp9_temporal_filter.c | 353 if (cpi->oxcf.content == VP9E_CONTENT_FILM) { 645 const VP9EncoderConfig *const oxcf = &cpi->oxcf; local 648 int frames_fwd = (cpi->oxcf.arnr_max_frames - 1) >> 1; 653 if (oxcf->pass == 2) { 654 base_strength = oxcf->arnr_strength + cpi->twopass.arnr_strength_adjustment; 658 base_strength = oxcf->arnr_strength; 669 if (frames_bwd < distance) frames_bwd += (oxcf->arnr_max_frames + 1) & 0x1; 699 if (cpi->oxcf.pass == 2 && cpi->multi_arf_allowed) {
|
H A D | vp9_pickmode.c | 175 if (cpi->oxcf.speed > 5 && x->lowvar_highsumdiff) { 376 if (cpi->oxcf.noise_sensitivity > 0 && denoise_svc(cpi) && 377 cpi->oxcf.speed > 5) 382 ac_thr *= ac_thr_factor(cpi->oxcf.speed, cpi->common.width, 385 ac_thr *= ac_thr_factor(cpi->oxcf.speed, cpi->common.width, 396 if (cpi->oxcf.aq_mode == CYCLIC_REFRESH_AQ && 476 if (cpi->oxcf.speed < 8 || x->color_sensitivity[i - 1]) { 574 if (cpi->oxcf.aq_mode == CYCLIC_REFRESH_AQ && 667 (cpi->oxcf.speed > 5 && cpi->common.frame_type != KEY_FRAME && 1564 if (cpi->oxcf [all...] |
H A D | vp9_ethread.c | 60 const int aligned_width = ALIGN_POWER_OF_TWO(cpi->oxcf.width, MI_SIZE_LOG2); 67 clamp(cpi->oxcf.tile_columns, min_log2_tile_cols, max_log2_tile_cols); 68 if (cpi->oxcf.target_level == LEVEL_AUTO) { 92 allocated_workers = VPXMIN(cpi->oxcf.max_threads, max_tile_cols); 175 const int num_workers = VPXMIN(cpi->oxcf.max_threads, tile_cols); 442 int num_workers = VPXMAX(cpi->oxcf.max_threads, 1); 599 int num_workers = VPXMAX(cpi->oxcf.max_threads, 1);
|
/external/libvpx/libvpx/vp8/decoder/ |
H A D | onyxd_int.h | 64 VP8D_CONFIG oxcf; member in struct:VP8D_COMP 125 int vp8_create_decoder_instances(struct frame_buffers *fb, VP8D_CONFIG *oxcf);
|
H A D | onyxd_if.c | 65 static struct VP8D_COMP *create_decompressor(VP8D_CONFIG *oxcf) { argument 96 pbi->ec_enabled = oxcf->error_concealment; 99 (void)oxcf; 440 int vp8_create_decoder_instances(struct frame_buffers *fb, VP8D_CONFIG *oxcf) { argument 442 fb->pbi[0] = create_decompressor(oxcf); 454 fb->pbi[0]->max_threads = oxcf->max_threads;
|
/external/libvpx/libvpx/vp8/common/ |
H A D | onyx.h | 246 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);
|