Home
last modified time | relevance | path

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

12

/hardware/intel/common/omx-components/videocodec/libvpx_internal/libvpx/vp9/encoder/
Dvp9_svc_layercontext.c17 const VP9_CONFIG *const oxcf = &cpi->oxcf; in vp9_init_layer_context() local
34 lrc->avg_frame_qindex[INTER_FRAME] = q_trans[oxcf->worst_allowed_q]; in vp9_init_layer_context()
35 lrc->ni_av_qi = q_trans[oxcf->worst_allowed_q]; in vp9_init_layer_context()
48 lc->target_bandwidth = oxcf->ts_target_bitrate[layer] * 1000; in vp9_init_layer_context()
49 lrc->last_q[INTER_FRAME] = q_trans[oxcf->worst_allowed_q]; in vp9_init_layer_context()
51 lc->target_bandwidth = oxcf->ss_target_bitrate[layer] * 1000; in vp9_init_layer_context()
52 lrc->last_q[0] = q_trans[oxcf->best_allowed_q]; in vp9_init_layer_context()
53 lrc->last_q[1] = q_trans[oxcf->best_allowed_q]; in vp9_init_layer_context()
54 lrc->last_q[2] = q_trans[oxcf->best_allowed_q]; in vp9_init_layer_context()
57 lrc->buffer_level = vp9_rescale((int)(oxcf->starting_buffer_level), in vp9_init_layer_context()
[all …]
Dvp9_ratectrl.c186 const VP9_CONFIG *oxcf = &cpi->oxcf; in vp9_rc_clamp_iframe_target_size() local
187 if (oxcf->rc_max_intra_bitrate_pct) { in vp9_rc_clamp_iframe_target_size()
189 oxcf->rc_max_intra_bitrate_pct / 100; in vp9_rc_clamp_iframe_target_size()
220 const VP9_CONFIG *oxcf = &cpi->oxcf; in update_buffer_level() local
231 rc->bits_off_target = MIN(rc->bits_off_target, oxcf->maximum_buffer_size); in update_buffer_level()
234 if (cpi->use_svc && cpi->oxcf.end_usage == USAGE_STREAM_FROM_SERVER) { in update_buffer_level()
240 const VP9_CONFIG *oxcf = &cpi->oxcf; in vp9_rc_drop_frame() local
243 if (!oxcf->drop_frames_water_mark) { in vp9_rc_drop_frame()
252 int drop_mark = (int)(oxcf->drop_frames_water_mark * in vp9_rc_drop_frame()
253 oxcf->optimal_buffer_level / 100); in vp9_rc_drop_frame()
[all …]
Dvp9_onyx_if.c430 cpi->rd_thresh_mult[i] = is_slowest_mode(cpi->oxcf.mode) ? -500 : 0; in set_rd_speed_thresholds()
511 cpi->rd_thresh_mult_sub8x8[i] = is_slowest_mode(cpi->oxcf.mode) ? -500 : 0; in set_rd_speed_thresholds_sub8x8()
554 if (cpi->oxcf.lossless || cpi->mb.e_mbd.lossless) { in set_speed_features()
561 const VP9_CONFIG *oxcf = &cpi->oxcf; in alloc_raw_frame_buffers() local
563 cpi->lookahead = vp9_lookahead_init(oxcf->width, oxcf->height, in alloc_raw_frame_buffers()
565 oxcf->lag_in_frames); in alloc_raw_frame_buffers()
571 oxcf->width, oxcf->height, in alloc_raw_frame_buffers()
693 VP9_CONFIG *const oxcf = &cpi->oxcf; in vp9_new_framerate() local
696 oxcf->framerate = framerate < 0.1 ? 30 : framerate; in vp9_new_framerate()
697 cpi->output_framerate = cpi->oxcf.framerate; in vp9_new_framerate()
[all …]
Dvp9_temporal_filter.c382 int blur_type = cpi->oxcf.arnr_type; in vp9_temporal_filter_prepare()
470 int frames_bwd = cpi->oxcf.arnr_max_frames - 1; in vp9_configure_arnr_filter()
471 int frames_fwd = cpi->oxcf.arnr_max_frames - 1; in vp9_configure_arnr_filter()
484 switch (cpi->oxcf.arnr_type) { in vp9_configure_arnr_filter()
512 frames_bwd += (cpi->oxcf.arnr_max_frames + 1) & 0x1; in vp9_configure_arnr_filter()
526 cpi->active_arnr_strength = cpi->oxcf.arnr_strength; in vp9_configure_arnr_filter()
528 cpi->active_arnr_strength = cpi->oxcf.arnr_strength - ((16 - q) / 2); in vp9_configure_arnr_filter()
Dvp9_firstpass.c272 cpi->oxcf.two_pass_vbrbias / 100.0); in calculate_modified_err()
339 (int64_t)cpi->oxcf.two_pass_vbrmax_section) / 100; in frame_max_bits()
599 if (cpi->oxcf.aq_mode == VARIANCE_AQ) { in vp9_first_pass()
606 if (cpi->oxcf.aq_mode == VARIANCE_AQ) { in vp9_first_pass()
642 if (cpi->oxcf.aq_mode == VARIANCE_AQ) { in vp9_first_pass()
653 if (cpi->oxcf.aq_mode == VARIANCE_AQ) { in vp9_first_pass()
674 if (cpi->oxcf.aq_mode == VARIANCE_AQ) { in vp9_first_pass()
933 if (cpi->oxcf.end_usage == USAGE_CONSTRAINED_QUALITY) in vp9_twopass_worst_quality()
945 const VP9_CONFIG *const oxcf = &cpi->oxcf; in vp9_init_second_pass() local
980 oxcf->target_bandwidth / 10000000.0); in vp9_init_second_pass()
[all …]
Dvp9_speed_features.c296 sf->optimize_coefficients = !cpi->oxcf.lossless; in vp9_set_speed_features()
346 switch (cpi->oxcf.mode) { in vp9_set_speed_features()
380 if (cpi->encode_breakout && cpi->oxcf.mode == MODE_REALTIME && in vp9_set_speed_features()
387 if (!cpi->oxcf.frame_periodic_boost) { in vp9_set_speed_features()
Dvp9_onyx_int.h289 VP9_CONFIG oxcf; member
522 struct VP9_COMP *vp9_create_compressor(VP9_CONFIG *oxcf);
525 void vp9_change_config(VP9_COMP *cpi, const VP9_CONFIG *oxcf);
Dvp9_encodeframe.c254 if (cpi->oxcf.aq_mode != VARIANCE_AQ) { in set_offsets()
862 if (cpi->oxcf.aq_mode == COMPLEXITY_AQ) { in update_state()
870 else if (cpi->oxcf.aq_mode == CYCLIC_REFRESH_AQ) { in update_state()
901 if (cpi->oxcf.aq_mode) in update_state()
996 const AQ_MODE aq_mode = cpi->oxcf.aq_mode; in rd_pick_sb_modes()
1054 if (cpi->oxcf.tuning == VP8_TUNE_SSIM) in rd_pick_sb_modes()
1067 } else if (cpi->oxcf.aq_mode == CYCLIC_REFRESH_AQ) { in rd_pick_sb_modes()
1095 } else if ((cpi->oxcf.aq_mode == COMPLEXITY_AQ) || in rd_pick_sb_modes()
1096 (cpi->oxcf.aq_mode == CYCLIC_REFRESH_AQ)) { in rd_pick_sb_modes()
1434 if ((cpi->oxcf.aq_mode == CYCLIC_REFRESH_AQ) && seg->enabled) { in update_state_rt()
[all …]
/hardware/intel/common/omx-components/videocodec/libvpx_internal/libvpx/vp8/encoder/
Donyx_if.c222 lc->starting_buffer_level = cpi->oxcf.starting_buffer_level; in save_layer_context()
223 lc->optimal_buffer_level = cpi->oxcf.optimal_buffer_level; in save_layer_context()
224 lc->maximum_buffer_size = cpi->oxcf.maximum_buffer_size; in save_layer_context()
225 lc->starting_buffer_level_in_ms = cpi->oxcf.starting_buffer_level_in_ms; in save_layer_context()
226 lc->optimal_buffer_level_in_ms = cpi->oxcf.optimal_buffer_level_in_ms; in save_layer_context()
227 lc->maximum_buffer_size_in_ms = cpi->oxcf.maximum_buffer_size_in_ms; in save_layer_context()
261 cpi->oxcf.target_bandwidth = lc->target_bandwidth; in restore_layer_context()
262 cpi->oxcf.starting_buffer_level = lc->starting_buffer_level; in restore_layer_context()
263 cpi->oxcf.optimal_buffer_level = lc->optimal_buffer_level; in restore_layer_context()
264 cpi->oxcf.maximum_buffer_size = lc->maximum_buffer_size; in restore_layer_context()
[all …]
Dratectrl.c350 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 …]
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()
63 if (cpi->oxcf.mr_total_resolutions >1 in vp8_cal_dissimilarity()
64 && cpi->oxcf.mr_encoder_id < (cpi->oxcf.mr_total_resolutions - 1)) in vp8_cal_dissimilarity()
70 = (LOWER_RES_FRAME_INFO*)cpi->oxcf.mr_low_res_mode_info; in vp8_cal_dissimilarity()
115 if(cpi->oxcf.play_alternate) in vp8_cal_dissimilarity()
223 if (cpi->oxcf.mr_total_resolutions >1 in vp8_store_drop_frame_info()
224 && cpi->oxcf.mr_encoder_id < (cpi->oxcf.mr_total_resolutions - 1)) in vp8_store_drop_frame_info()
230 = (LOWER_RES_FRAME_INFO*)cpi->oxcf.mr_low_res_mode_info; in vp8_store_drop_frame_info()
Dfirstpass.c56 #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 …]
Dpickinter.c417 = ((LOWER_RES_FRAME_INFO*)cpi->oxcf.mr_low_res_mode_info)->mb_info; in get_lower_res_motion_info()
428 parent_mb_row = mb_row*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()
430 parent_mb_col = mb_col*cpi->oxcf.mr_down_sampling_factor.den in get_lower_res_motion_info()
431 /cpi->oxcf.mr_down_sampling_factor.num; in get_lower_res_motion_info()
442 if (cpi->oxcf.mr_encoder_id == (cpi->oxcf.mr_total_resolutions - 1)) in get_lower_res_motion_info()
451 *cpi->oxcf.mr_down_sampling_factor.num in get_lower_res_motion_info()
452 /cpi->oxcf.mr_down_sampling_factor.den; in get_lower_res_motion_info()
454 *cpi->oxcf.mr_down_sampling_factor.num in get_lower_res_motion_info()
455 /cpi->oxcf.mr_down_sampling_factor.den; in get_lower_res_motion_info()
[all …]
Dencodeframe.c478 if(cpi->oxcf.tuning == VP8_TUNE_SSIM) in encode_mb_row()
658 else if ((cpi->oxcf.number_of_layers > 1) && in init_encode_frame_mb_context()
662 else if ((cpi->oxcf.number_of_layers > 1) && in init_encode_frame_mb_context()
733 if (cpi->oxcf.cpu_used < 0) in vp8_encode_frame()
734 cpi->Speed = -(cpi->oxcf.cpu_used); in vp8_encode_frame()
775 if(cpi->oxcf.tuning == VP8_TUNE_SSIM) in vp8_encode_frame()
1016 if ((cm->frame_type != KEY_FRAME) && ((cpi->oxcf.number_of_layers > 1) || in vp8_encode_frame()
1175 if(cpi->oxcf.tuning == VP8_TUNE_SSIM) in vp8cx_encode_intra_macroblock()
1224 x->encode_breakout = cpi->oxcf.encode_breakout; in vp8cx_encode_inter_macroblock()
1272 if(cpi->oxcf.tuning == VP8_TUNE_SSIM) in vp8cx_encode_inter_macroblock()
[all …]
Dbitstream.c1047 if (cpi->oxcf.error_resilient_mode & VPX_ERROR_RESILIENT_PARTITIONS) in vp8_estimate_entropy_savings()
1068 if (cpi->oxcf.error_resilient_mode & VPX_ERROR_RESILIENT_PARTITIONS) in vp8_update_coef_context()
1095 if (cpi->oxcf.error_resilient_mode & VPX_ERROR_RESILIENT_PARTITIONS) in vp8_update_coef_probs()
1136 if (!(cpi->oxcf.error_resilient_mode & in vp8_update_coef_probs()
1151 if ((cpi->oxcf.error_resilient_mode & in vp8_update_coef_probs()
1411 || cpi->oxcf.error_resilient_mode; in vp8_pack_bitstream()
1425 || cpi->oxcf.error_resilient_mode) in vp8_pack_bitstream()
1452 || cpi->oxcf.error_resilient_mode) in vp8_pack_bitstream()
1516 if (cpi->oxcf.error_resilient_mode & VPX_ERROR_RESILIENT_PARTITIONS) in vp8_pack_bitstream()
Dethreading.c161 if (cpi->oxcf.tuning == VP8_TUNE_SSIM) in thread_encoding_proc()
505 if (cm->processor_core_count > 1 && cpi->oxcf.multi_threaded > 1) in vp8cx_create_encoder_threads()
508 int th_count = cpi->oxcf.multi_threaded - 1; in vp8cx_create_encoder_threads()
512 if (cpi->oxcf.multi_threaded > cm->processor_core_count) in vp8cx_create_encoder_threads()
/hardware/intel/common/omx-components/videocodec/libvpx_internal/libvpx/vp8/
Dvp8_cx_iface.c82 VP8_CONFIG oxcf; member
285 static vpx_codec_err_t set_vp8e_config(VP8_CONFIG *oxcf, in set_vp8e_config() argument
290 oxcf->multi_threaded = cfg.g_threads; in set_vp8e_config()
291 oxcf->Version = cfg.g_profile; in set_vp8e_config()
293 oxcf->Width = cfg.g_w; in set_vp8e_config()
294 oxcf->Height = cfg.g_h; in set_vp8e_config()
295 oxcf->timebase = cfg.g_timebase; in set_vp8e_config()
297 oxcf->error_resilient_mode = cfg.g_error_resilient; in set_vp8e_config()
304 oxcf->Mode = MODE_BESTQUALITY; in set_vp8e_config()
307 oxcf->Mode = MODE_FIRSTPASS; in set_vp8e_config()
[all …]
Dvp8_dx_iface.c432 VP8D_CONFIG oxcf; in vp8_decode() local
434 oxcf.Width = ctx->si.w; in vp8_decode()
435 oxcf.Height = ctx->si.h; in vp8_decode()
436 oxcf.Version = 9; in vp8_decode()
437 oxcf.postprocess = 0; in vp8_decode()
438 oxcf.max_threads = ctx->cfg.threads; in vp8_decode()
439 oxcf.error_concealment = in vp8_decode()
454 res = vp8_create_decoder_instances(&ctx->yv12_frame_buffers, &oxcf); in vp8_decode()
/hardware/intel/common/omx-components/videocodec/libvpx_internal/libvpx/vp9/
Dvp9_cx_iface.c78 VP9_CONFIG oxcf; member
280 static vpx_codec_err_t set_vp9e_config(VP9_CONFIG *oxcf, in set_vp9e_config() argument
283 oxcf->version = cfg->g_profile; in set_vp9e_config()
284 oxcf->width = cfg->g_w; in set_vp9e_config()
285 oxcf->height = cfg->g_h; in set_vp9e_config()
287 oxcf->framerate = (double)cfg->g_timebase.den / cfg->g_timebase.num; in set_vp9e_config()
288 if (oxcf->framerate > 180) in set_vp9e_config()
289 oxcf->framerate = 30; in set_vp9e_config()
293 oxcf->mode = MODE_GOODQUALITY; in set_vp9e_config()
296 oxcf->mode = MODE_FIRSTPASS; in set_vp9e_config()
[all …]
Dvp9_dx_iface.c184 VP9D_CONFIG oxcf; in decode_one() local
189 oxcf.width = ctx->si.w; in decode_one()
190 oxcf.height = ctx->si.h; in decode_one()
191 oxcf.version = 9; in decode_one()
192 oxcf.max_threads = ctx->cfg.threads; in decode_one()
193 oxcf.inv_tile_order = ctx->invert_tile_order; in decode_one()
194 optr = vp9_create_decompressor(&oxcf); in decode_one()
/hardware/intel/common/omx-components/videocodec/libvpx_internal/libvpx/vp9/decoder/
Dvp9_decoder.h43 VP9D_CONFIG oxcf; member
87 struct VP9Decompressor *vp9_create_decompressor(const VP9D_CONFIG *oxcf);
Dvp9_decoder.c113 VP9D_COMP *vp9_create_decompressor(const VP9D_CONFIG *oxcf) { in vp9_create_decompressor() argument
136 pbi->oxcf = *oxcf; in vp9_create_decompressor()
/hardware/intel/common/omx-components/videocodec/libvpx_internal/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);
/hardware/intel/common/omx-components/videocodec/libvpx_internal/libvpx/vp8/decoder/
Donyxd_int.h77 VP8D_CONFIG oxcf; member
135 int vp8_create_decoder_instances(struct frame_buffers *fb, VP8D_CONFIG *oxcf);
Donyxd_if.c54 static struct VP8D_COMP * create_decompressor(VP8D_CONFIG *oxcf) in create_decompressor() argument
57 (void)oxcf; in create_decompressor()
87 pbi->ec_enabled = oxcf->error_concealment; in create_decompressor()
480 int vp8_create_decoder_instances(struct frame_buffers *fb, VP8D_CONFIG *oxcf) in vp8_create_decoder_instances() argument
485 fb->pbi[0] = create_decompressor(oxcf); in vp8_create_decoder_instances()
492 fb->pbi[0]->max_threads = oxcf->max_threads; in vp8_create_decoder_instances()

12