/external/libvpx/libvpx/vp8/encoder/ |
D | ratectrl.c | 175 void vp8_save_coding_context(VP8_COMP *cpi) { in vp8_save_coding_context() argument 176 CODING_CONTEXT *const cc = &cpi->coding_context; in vp8_save_coding_context() 184 cc->frames_since_key = cpi->frames_since_key; in vp8_save_coding_context() 185 cc->filter_level = cpi->common.filter_level; in vp8_save_coding_context() 186 cc->frames_till_gf_update_due = cpi->frames_till_gf_update_due; in vp8_save_coding_context() 187 cc->frames_since_golden = cpi->frames_since_golden; in vp8_save_coding_context() 189 vp8_copy(cc->mvc, cpi->common.fc.mvc); in vp8_save_coding_context() 190 vp8_copy(cc->mvcosts, cpi->rd_costs.mvcosts); in vp8_save_coding_context() 192 vp8_copy(cc->ymode_prob, cpi->common.fc.ymode_prob); in vp8_save_coding_context() 193 vp8_copy(cc->uv_mode_prob, cpi->common.fc.uv_mode_prob); in vp8_save_coding_context() [all …]
|
D | onyx_if.c | 62 extern int vp8_update_coef_context(VP8_COMP *cpi); 72 static void set_default_lf_deltas(VP8_COMP *cpi); 126 extern void vp8cx_init_quantizer(VP8_COMP *cpi); 189 static void save_layer_context(VP8_COMP *cpi) { in save_layer_context() argument 190 LAYER_CONTEXT *lc = &cpi->layer_context[cpi->current_layer]; in save_layer_context() 193 lc->target_bandwidth = cpi->target_bandwidth; in save_layer_context() 194 lc->starting_buffer_level = cpi->oxcf.starting_buffer_level; in save_layer_context() 195 lc->optimal_buffer_level = cpi->oxcf.optimal_buffer_level; in save_layer_context() 196 lc->maximum_buffer_size = cpi->oxcf.maximum_buffer_size; in save_layer_context() 197 lc->starting_buffer_level_in_ms = cpi->oxcf.starting_buffer_level_in_ms; in save_layer_context() [all …]
|
D | firstpass.c | 39 extern void vp8cx_frame_init_quantizer(VP8_COMP *cpi); 57 #define POW1 (double)cpi->oxcf.two_pass_vbrbias / 100.0 58 #define POW2 (double)cpi->oxcf.two_pass_vbrbias / 100.0 75 static void find_next_key_frame(VP8_COMP *cpi, FIRSTPASS_STATS *this_frame); 80 static void reset_fpf_position(VP8_COMP *cpi, FIRSTPASS_STATS *Position) { in reset_fpf_position() argument 81 cpi->twopass.stats_in = Position; in reset_fpf_position() 84 static int lookup_next_frame_stats(VP8_COMP *cpi, FIRSTPASS_STATS *next_frame) { in lookup_next_frame_stats() argument 85 if (cpi->twopass.stats_in >= cpi->twopass.stats_in_end) return EOF; in lookup_next_frame_stats() 87 *next_frame = *cpi->twopass.stats_in; in lookup_next_frame_stats() 92 static int read_frame_stats(VP8_COMP *cpi, FIRSTPASS_STATS *frame_stats, in read_frame_stats() argument [all …]
|
D | encodeframe.c | 41 extern void vp8_stuff_mb(VP8_COMP *cpi, MACROBLOCK *x, TOKENEXTRA **t); 42 static void adjust_act_zbin(VP8_COMP *cpi, MACROBLOCK *x); 72 static unsigned int tt_activity_measure(VP8_COMP *cpi, MACROBLOCK *x) { in tt_activity_measure() argument 75 (void)cpi; in tt_activity_measure() 94 static unsigned int alt_activity_measure(VP8_COMP *cpi, MACROBLOCK *x, in alt_activity_measure() argument 96 return vp8_encode_intra(cpi, x, use_dc_pred); in alt_activity_measure() 103 static unsigned int mb_activity_measure(VP8_COMP *cpi, MACROBLOCK *x, in mb_activity_measure() argument 111 mb_activity = alt_activity_measure(cpi, x, use_dc_pred); in mb_activity_measure() 114 mb_activity = tt_activity_measure(cpi, x); in mb_activity_measure() 124 static void calc_av_activity(VP8_COMP *cpi, int64_t activity_sum) { in calc_av_activity() argument [all …]
|
D | vp8_quantize.c | 182 void vp8cx_init_quantizer(VP8_COMP *cpi) { in vp8cx_init_quantizer() argument 192 quant_val = vp8_dc_quant(Q, cpi->common.y1dc_delta_q); in vp8cx_init_quantizer() 193 cpi->Y1quant_fast[Q][0] = (1 << 16) / quant_val; in vp8cx_init_quantizer() 194 invert_quant(cpi->sf.improved_quant, cpi->Y1quant[Q] + 0, in vp8cx_init_quantizer() 195 cpi->Y1quant_shift[Q] + 0, quant_val); in vp8cx_init_quantizer() 196 cpi->Y1zbin[Q][0] = ((qzbin_factors[Q] * quant_val) + 64) >> 7; in vp8cx_init_quantizer() 197 cpi->Y1round[Q][0] = (qrounding_factors[Q] * quant_val) >> 7; in vp8cx_init_quantizer() 198 cpi->common.Y1dequant[Q][0] = quant_val; in vp8cx_init_quantizer() 199 cpi->zrun_zbin_boost_y1[Q][0] = (quant_val * zbin_boost[0]) >> 7; in vp8cx_init_quantizer() 201 quant_val = vp8_dc2quant(Q, cpi->common.y2dc_delta_q); in vp8cx_init_quantizer() [all …]
|
D | ethreading.c | 21 extern void vp8cx_mb_init_quantizer(VP8_COMP *cpi, MACROBLOCK *x, 25 VP8_COMP *cpi = (VP8_COMP *)(((LPFTHREAD_DATA *)p_data)->ptr1); in thread_loopfilter() local 26 VP8_COMMON *cm = &cpi->common; in thread_loopfilter() 29 if (vpx_atomic_load_acquire(&cpi->b_multi_threaded) == 0) break; in thread_loopfilter() 31 if (sem_wait(&cpi->h_event_start_lpf) == 0) { in thread_loopfilter() 33 if (vpx_atomic_load_acquire(&cpi->b_multi_threaded) == 0) break; in thread_loopfilter() 35 vp8_loopfilter_frame(cpi, cm); in thread_loopfilter() 37 sem_post(&cpi->h_event_end_lpf); in thread_loopfilter() 46 VP8_COMP *cpi = (VP8_COMP *)(((ENCODETHREAD_DATA *)p_data)->ptr1); in thread_encoding_proc() local 51 if (vpx_atomic_load_acquire(&cpi->b_multi_threaded) == 0) break; in thread_encoding_proc() [all …]
|
D | bitstream.c | 78 static void update_mbintra_mode_probs(VP8_COMP *cpi) { in update_mbintra_mode_probs() argument 79 VP8_COMMON *const x = &cpi->common; in update_mbintra_mode_probs() 81 vp8_writer *const w = cpi->bc; in update_mbintra_mode_probs() 88 x->fc.ymode_prob, bct, (unsigned int *)cpi->mb.ymode_count); in update_mbintra_mode_probs() 95 x->fc.uv_mode_prob, bct, (unsigned int *)cpi->mb.uv_mode_count); in update_mbintra_mode_probs() 291 static void pack_tokens_into_partitions(VP8_COMP *cpi, unsigned char *cx_data, in pack_tokens_into_partitions() argument 302 w = cpi->bc + i + 1; in pack_tokens_into_partitions() 306 for (mb_row = i; mb_row < cpi->common.mb_rows; mb_row += num_part) { in pack_tokens_into_partitions() 307 const TOKENEXTRA *p = cpi->tplist[mb_row].start; in pack_tokens_into_partitions() 308 const TOKENEXTRA *stop = cpi->tplist[mb_row].stop; in pack_tokens_into_partitions() [all …]
|
D | temporal_filter.c | 112 static int vp8_temporal_filter_find_matching_mb_c(VP8_COMP *cpi, in vp8_temporal_filter_find_matching_mb_c() argument 117 MACROBLOCK *x = &cpi->mb; in vp8_temporal_filter_find_matching_mb_c() 151 if (cpi->Speed < 8) { in vp8_temporal_filter_find_matching_mb_c() 152 step_param = cpi->sf.first_step + (cpi->Speed > 5); in vp8_temporal_filter_find_matching_mb_c() 154 step_param = cpi->sf.first_step + 2; in vp8_temporal_filter_find_matching_mb_c() 161 &cpi->fn_ptr[BLOCK_16X16], NULL, NULL, &best_ref_mv1); in vp8_temporal_filter_find_matching_mb_c() 170 bestsme = cpi->find_fractional_mv_step( in vp8_temporal_filter_find_matching_mb_c() 172 &cpi->fn_ptr[BLOCK_16X16], NULL, &distortion, &sse); in vp8_temporal_filter_find_matching_mb_c() 188 static void vp8_temporal_filter_iterate_c(VP8_COMP *cpi, int frame_count, in vp8_temporal_filter_iterate_c() argument 194 int mb_cols = cpi->common.mb_cols; in vp8_temporal_filter_iterate_c() [all …]
|
/external/libvpx/libvpx/vp9/encoder/ |
D | vp9_svc_layercontext.c | 30 void vp9_init_layer_context(VP9_COMP *const cpi) { in vp9_init_layer_context() argument 31 SVC *const svc = &cpi->svc; in vp9_init_layer_context() 32 const VP9EncoderConfig *const oxcf = &cpi->oxcf; in vp9_init_layer_context() 33 int mi_rows = cpi->common.mi_rows; in vp9_init_layer_context() 34 int mi_cols = cpi->common.mi_cols; in vp9_init_layer_context() 84 if (cpi->oxcf.error_resilient_mode == 0 && cpi->oxcf.pass == 2) { in vp9_init_layer_context() 85 if (vpx_realloc_frame_buffer(&cpi->svc.empty_frame.img, SMALL_FRAME_WIDTH, in vp9_init_layer_context() 86 SMALL_FRAME_HEIGHT, cpi->common.subsampling_x, in vp9_init_layer_context() 87 cpi->common.subsampling_y, in vp9_init_layer_context() 89 cpi->common.use_highbitdepth, in vp9_init_layer_context() [all …]
|
D | vp9_encoder.c | 107 static int is_spatial_denoise_enabled(VP9_COMP *cpi) { in is_spatial_denoise_enabled() argument 108 VP9_COMMON *const cm = &cpi->common; in is_spatial_denoise_enabled() 109 const VP9EncoderConfig *const oxcf = &cpi->oxcf; in is_spatial_denoise_enabled() 111 return (oxcf->pass != 1) && !is_lossless_requested(&cpi->oxcf) && in is_spatial_denoise_enabled() 117 static int compute_context_model_thresh(const VP9_COMP *const cpi) { in compute_context_model_thresh() argument 118 const VP9_COMMON *const cm = &cpi->common; in compute_context_model_thresh() 119 const VP9EncoderConfig *const oxcf = &cpi->oxcf; in compute_context_model_thresh() 442 static int is_psnr_calc_enabled(VP9_COMP *cpi) { in is_psnr_calc_enabled() argument 443 VP9_COMMON *const cm = &cpi->common; in is_psnr_calc_enabled() 444 const VP9EncoderConfig *const oxcf = &cpi->oxcf; in is_psnr_calc_enabled() [all …]
|
D | vp9_ratectrl.c | 210 int vp9_rc_clamp_pframe_target_size(const VP9_COMP *const cpi, int target) { in vp9_rc_clamp_pframe_target_size() argument 211 const RATE_CONTROL *rc = &cpi->rc; in vp9_rc_clamp_pframe_target_size() 212 const VP9EncoderConfig *oxcf = &cpi->oxcf; in vp9_rc_clamp_pframe_target_size() 214 if (cpi->oxcf.pass != 2) { in vp9_rc_clamp_pframe_target_size() 218 if (cpi->refresh_golden_frame && rc->is_src_frame_alt_ref) { in vp9_rc_clamp_pframe_target_size() 238 int vp9_rc_clamp_iframe_target_size(const VP9_COMP *const cpi, int target) { in vp9_rc_clamp_iframe_target_size() argument 239 const RATE_CONTROL *rc = &cpi->rc; in vp9_rc_clamp_iframe_target_size() 240 const VP9EncoderConfig *oxcf = &cpi->oxcf; in vp9_rc_clamp_iframe_target_size() 251 static void update_buffer_level_preencode(VP9_COMP *cpi) { in update_buffer_level_preencode() argument 252 RATE_CONTROL *const rc = &cpi->rc; in update_buffer_level_preencode() [all …]
|
D | vp9_noise_estimate.c | 26 static INLINE int noise_est_svc(const struct VP9_COMP *const cpi) { in noise_est_svc() argument 27 return (!cpi->use_svc || in noise_est_svc() 28 (cpi->use_svc && in noise_est_svc() 29 cpi->svc.spatial_layer_id == cpi->svc.number_spatial_layers - 1)); in noise_est_svc() 51 static int enable_noise_estimation(VP9_COMP *const cpi) { in enable_noise_estimation() argument 53 if (cpi->common.use_highbitdepth) return 0; in enable_noise_estimation() 57 if (cpi->oxcf.noise_sensitivity > 0 && noise_est_svc(cpi) && in enable_noise_estimation() 58 cpi->common.width >= 320 && cpi->common.height >= 180) in enable_noise_estimation() 65 if (cpi->oxcf.pass == 0 && cpi->oxcf.rc_mode == VPX_CBR && in enable_noise_estimation() 66 cpi->oxcf.aq_mode == CYCLIC_REFRESH_AQ && cpi->oxcf.speed >= 5 && in enable_noise_estimation() [all …]
|
D | vp9_ethread.c | 40 VP9_COMP *const cpi = thread_data->cpi; in enc_worker_hook() local 41 const VP9_COMMON *const cm = &cpi->common; in enc_worker_hook() 49 t += cpi->num_workers) { in enc_worker_hook() 53 vp9_encode_tile(cpi, thread_data->td, tile_row, tile_col); in enc_worker_hook() 59 static int get_max_tile_cols(VP9_COMP *cpi) { in get_max_tile_cols() argument 60 const int aligned_width = ALIGN_POWER_OF_TWO(cpi->oxcf.width, MI_SIZE_LOG2); in get_max_tile_cols() 67 clamp(cpi->oxcf.tile_columns, min_log2_tile_cols, max_log2_tile_cols); in get_max_tile_cols() 68 if (cpi->oxcf.target_level == LEVEL_AUTO) { in get_max_tile_cols() 70 log_tile_cols_from_picsize_level(cpi->common.width, cpi->common.height); in get_max_tile_cols() 78 static void create_enc_workers(VP9_COMP *cpi, int num_workers) { in create_enc_workers() argument [all …]
|
D | vp9_aq_cyclicrefresh.c | 89 static int compute_deltaq(const VP9_COMP *cpi, int q, double rate_factor) { in compute_deltaq() argument 90 const CYCLIC_REFRESH *const cr = cpi->cyclic_refresh; in compute_deltaq() 91 const RATE_CONTROL *const rc = &cpi->rc; in compute_deltaq() 92 int deltaq = vp9_compute_qdelta_by_rate(rc, cpi->common.frame_type, q, in compute_deltaq() 93 rate_factor, cpi->common.bit_depth); in compute_deltaq() 104 int vp9_cyclic_refresh_estimate_bits_at_q(const VP9_COMP *cpi, in vp9_cyclic_refresh_estimate_bits_at_q() argument 106 const VP9_COMMON *const cm = &cpi->common; in vp9_cyclic_refresh_estimate_bits_at_q() 107 const CYCLIC_REFRESH *const cr = cpi->cyclic_refresh; in vp9_cyclic_refresh_estimate_bits_at_q() 136 int vp9_cyclic_refresh_rc_bits_per_mb(const VP9_COMP *cpi, int i, in vp9_cyclic_refresh_rc_bits_per_mb() argument 138 const VP9_COMMON *const cm = &cpi->common; in vp9_cyclic_refresh_rc_bits_per_mb() [all …]
|
D | vp9_encodeframe.c | 53 static void encode_superblock(VP9_COMP *cpi, ThreadData *td, TOKENEXTRA **t, 103 unsigned int vp9_get_sby_variance(VP9_COMP *cpi, const struct buf_2d *ref, in vp9_get_sby_variance() argument 107 cpi->fn_ptr[bs].vf(ref->buf, ref->stride, VP9_VAR_OFFS, 0, &sse); in vp9_get_sby_variance() 112 unsigned int vp9_high_get_sby_variance(VP9_COMP *cpi, const struct buf_2d *ref, in vp9_high_get_sby_variance() argument 118 cpi->fn_ptr[bs].vf(ref->buf, ref->stride, in vp9_high_get_sby_variance() 123 cpi->fn_ptr[bs].vf(ref->buf, ref->stride, in vp9_high_get_sby_variance() 129 cpi->fn_ptr[bs].vf(ref->buf, ref->stride, in vp9_high_get_sby_variance() 137 unsigned int vp9_get_sby_perpixel_variance(VP9_COMP *cpi, in vp9_get_sby_perpixel_variance() argument 140 return ROUND_POWER_OF_TWO(vp9_get_sby_variance(cpi, ref, bs), in vp9_get_sby_perpixel_variance() 145 unsigned int vp9_high_get_sby_perpixel_variance(VP9_COMP *cpi, in vp9_high_get_sby_perpixel_variance() argument [all …]
|
D | vp9_speed_features.c | 34 static int frame_is_boosted(const VP9_COMP *cpi) { in frame_is_boosted() argument 35 return frame_is_kf_gf_arf(cpi); in frame_is_boosted() 60 static void set_good_speed_feature_framesize_dependent(VP9_COMP *cpi, in set_good_speed_feature_framesize_dependent() argument 63 VP9_COMMON *const cm = &cpi->common; in set_good_speed_feature_framesize_dependent() 120 if (cpi->Source->flags & YV12_FLAG_HIGHBITDEPTH) { in set_good_speed_feature_framesize_dependent() 179 if ((speed >= 1) && (cpi->oxcf.pass == 2) && in set_good_speed_feature_framesize_dependent() 180 ((cpi->twopass.fr_content_type == FC_GRAPHICS_ANIMATION) || in set_good_speed_feature_framesize_dependent() 181 (vp9_internal_image_edge(cpi)))) { in set_good_speed_feature_framesize_dependent() 203 static void set_good_speed_feature_framesize_independent(VP9_COMP *cpi, in set_good_speed_feature_framesize_independent() argument 207 const VP9EncoderConfig *const oxcf = &cpi->oxcf; in set_good_speed_feature_framesize_independent() [all …]
|
D | vp9_firstpass.c | 224 static double calculate_active_area(const VP9_COMP *cpi, in calculate_active_area() argument 231 ((this_frame->inactive_zone_rows * 2) / (double)cpi->common.mb_rows)); in calculate_active_area() 236 static double get_distribution_av_err(VP9_COMP *cpi, TWO_PASS *const twopass) { in get_distribution_av_err() argument 240 if (cpi->oxcf.vbr_corpus_complexity) in get_distribution_av_err() 250 static double calculate_mod_frame_score(const VP9_COMP *cpi, in calculate_mod_frame_score() argument 265 pow(calculate_active_area(cpi, this_frame), ACT_AREA_CORRECTION); in calculate_mod_frame_score() 270 static double calculate_norm_frame_score(const VP9_COMP *cpi, in calculate_norm_frame_score() argument 289 pow(calculate_active_area(cpi, this_frame), ACT_AREA_CORRECTION); in calculate_norm_frame_score() 311 void vp9_init_first_pass(VP9_COMP *cpi) { in vp9_init_first_pass() argument 312 zero_stats(&cpi->twopass.total_stats); in vp9_init_first_pass() [all …]
|
D | vp9_picklpf.c | 27 static int get_max_filter_level(const VP9_COMP *cpi) { in get_max_filter_level() argument 28 if (cpi->oxcf.pass == 2) { in get_max_filter_level() 29 return cpi->twopass.section_intra_rating > 8 ? MAX_LOOP_FILTER * 3 / 4 in get_max_filter_level() 37 VP9_COMP *const cpi, int filt_level, in try_filter_frame() argument 39 VP9_COMMON *const cm = &cpi->common; in try_filter_frame() 44 if (cpi->num_workers > 1) in try_filter_frame() 45 vp9_loop_filter_frame_mt(cm->frame_to_show, cm, cpi->td.mb.e_mbd.plane, in try_filter_frame() 46 filt_level, 1, partial_frame, cpi->workers, in try_filter_frame() 47 cpi->num_workers, &cpi->lf_row_sync); in try_filter_frame() 49 vp9_loop_filter_frame(cm->frame_to_show, cm, &cpi->td.mb.e_mbd, filt_level, in try_filter_frame() [all …]
|
/external/libaom/libaom/av1/encoder/ |
D | encode_strategy.c | 35 void av1_configure_buffer_updates(AV1_COMP *const cpi, in av1_configure_buffer_updates() argument 42 cpi->rc.is_src_frame_alt_ref = 0; in av1_configure_buffer_updates() 43 cpi->rc.is_src_frame_internal_arf = 0; in av1_configure_buffer_updates() 79 cpi->rc.is_src_frame_alt_ref = 1; in av1_configure_buffer_updates() 98 cpi->rc.is_src_frame_alt_ref = 1; in av1_configure_buffer_updates() 99 cpi->rc.is_src_frame_internal_arf = 1; in av1_configure_buffer_updates() 105 if (cpi->oxcf.pass == 2) { in av1_configure_buffer_updates() 118 if (cpi->ext_refresh_frame_flags_pending && in av1_configure_buffer_updates() 119 (cpi->oxcf.pass == 0 || cpi->oxcf.pass == 2)) { in av1_configure_buffer_updates() 120 frame_params->refresh_last_frame = cpi->ext_refresh_last_frame; in av1_configure_buffer_updates() [all …]
|
D | encoder.c | 130 static void suppress_active_map(AV1_COMP *cpi) { in suppress_active_map() argument 131 unsigned char *const seg_map = cpi->segmentation_map; in suppress_active_map() 133 if (cpi->active_map.enabled || cpi->active_map.update) in suppress_active_map() 134 for (i = 0; i < cpi->common.mi_rows * cpi->common.mi_cols; ++i) in suppress_active_map() 139 static void apply_active_map(AV1_COMP *cpi) { in apply_active_map() argument 140 struct segmentation *const seg = &cpi->common.seg; in apply_active_map() 141 unsigned char *const seg_map = cpi->segmentation_map; in apply_active_map() 142 const unsigned char *const active_map = cpi->active_map.map; in apply_active_map() 147 if (frame_is_intra_only(&cpi->common)) { in apply_active_map() 148 cpi->active_map.enabled = 0; in apply_active_map() [all …]
|
D | ratectrl.c | 91 static double resize_rate_factor(const AV1_COMP *cpi, int width, int height) { in resize_rate_factor() argument 92 return (double)(cpi->oxcf.width * cpi->oxcf.height) / (width * height); in resize_rate_factor() 174 int av1_rc_clamp_pframe_target_size(const AV1_COMP *const cpi, int target, in av1_rc_clamp_pframe_target_size() argument 176 const RATE_CONTROL *rc = &cpi->rc; in av1_rc_clamp_pframe_target_size() 177 const AV1EncoderConfig *oxcf = &cpi->oxcf; in av1_rc_clamp_pframe_target_size() 203 int av1_rc_clamp_iframe_target_size(const AV1_COMP *const cpi, int target) { in av1_rc_clamp_iframe_target_size() argument 204 const RATE_CONTROL *rc = &cpi->rc; in av1_rc_clamp_iframe_target_size() 205 const AV1EncoderConfig *oxcf = &cpi->oxcf; in av1_rc_clamp_iframe_target_size() 216 static void update_buffer_level(AV1_COMP *cpi, int encoded_frame_size) { in update_buffer_level() argument 217 const AV1_COMMON *const cm = &cpi->common; in update_buffer_level() [all …]
|
D | ethread.c | 32 static void update_delta_lf_for_row_mt(AV1_COMP *cpi) { in update_delta_lf_for_row_mt() argument 33 AV1_COMMON *cm = &cpi->common; in update_delta_lf_for_row_mt() 34 MACROBLOCKD *xd = &cpi->td.mb.e_mbd; in update_delta_lf_for_row_mt() 40 TileDataEnc *tile_data = &cpi->tile_data[row * cm->tile_cols + col]; in update_delta_lf_for_row_mt() 208 static int get_next_job(AV1_COMP *const cpi, int *current_mi_row, in get_next_job() argument 210 AV1_COMMON *const cm = &cpi->common; in get_next_job() 211 TileDataEnc *const this_tile = &cpi->tile_data[cur_tile_id]; in get_next_job() 223 static void switch_tile_and_get_next_job(AV1_COMP *const cpi, int *cur_tile_id, in switch_tile_and_get_next_job() argument 226 AV1_COMMON *const cm = &cpi->common; in switch_tile_and_get_next_job() 237 TileDataEnc *this_tile = &cpi->tile_data[tile_index]; in switch_tile_and_get_next_job() [all …]
|
D | pass2_strategy.c | 32 double calculate_active_area(const AV1_COMP *cpi, in calculate_active_area() argument 39 ((this_frame->inactive_zone_rows * 2) / (double)cpi->common.mb_rows)); in calculate_active_area() 46 double calculate_modified_err(const AV1_COMP *cpi, const TWO_PASS *twopass, in calculate_modified_err() argument 63 pow(calculate_active_area(cpi, this_frame), ACT_AREA_CORRECTION); in calculate_modified_err() 122 static double get_linear_size_factor(const AV1_COMP *cpi) { in get_linear_size_factor() argument 123 const double this_area = cpi->initial_width * cpi->initial_height; in get_linear_size_factor() 194 static int get_twopass_worst_quality(const AV1_COMP *cpi, in get_twopass_worst_quality() argument 199 const RATE_CONTROL *const rc = &cpi->rc; in get_twopass_worst_quality() 200 const AV1EncoderConfig *const oxcf = &cpi->oxcf; in get_twopass_worst_quality() 207 const int num_mbs = (cpi->oxcf.resize_mode != RESIZE_NONE) in get_twopass_worst_quality() [all …]
|
D | mbgraph.c | 27 static unsigned int do_16x16_motion_iteration(AV1_COMP *cpi, const MV *ref_mv, in do_16x16_motion_iteration() argument 29 MACROBLOCK *const x = &cpi->td.mb; in do_16x16_motion_iteration() 31 const MV_SPEED_FEATURES *const mv_sf = &cpi->sf.mv; in do_16x16_motion_iteration() 32 const aom_variance_fn_ptr_t v_fn_ptr = cpi->fn_ptr[BLOCK_16X16]; in do_16x16_motion_iteration() 49 cond_cost_list(cpi, cost_list), &v_fn_ptr, 0, ref_mv); in do_16x16_motion_iteration() 53 if (cpi->common.cur_frame_force_integer_mv == 1) { in do_16x16_motion_iteration() 59 cpi->find_fractional_mv_step( in do_16x16_motion_iteration() 60 x, &cpi->common, mb_row, mb_col, ref_mv, in do_16x16_motion_iteration() 61 cpi->common.allow_high_precision_mv, x->errorperbit, &v_fn_ptr, 0, in do_16x16_motion_iteration() 62 mv_sf->subpel_iters_per_step, cond_cost_list(cpi, cost_list), NULL, in do_16x16_motion_iteration() [all …]
|
/external/libvpx/libvpx/test/ |
D | set_roi.cc | 42 VP8_COMP cpi; in TEST() local 43 cpi.mb.e_mbd.mb_segement_abs_delta = SEGMENT_DELTADATA; in TEST() 44 cpi.cyclic_refresh_mode_enabled = 0; in TEST() 45 cpi.mb.e_mbd.segmentation_enabled = 0; in TEST() 46 cpi.mb.e_mbd.update_mb_segmentation_map = 0; in TEST() 47 cpi.mb.e_mbd.update_mb_segmentation_data = 0; in TEST() 48 cpi.common.mb_rows = 240 >> 4; in TEST() 49 cpi.common.mb_cols = 320 >> 4; in TEST() 50 const int mbs = (cpi.common.mb_rows * cpi.common.mb_cols); in TEST() 51 memset(cpi.segment_feature_data, 0, sizeof(cpi.segment_feature_data)); in TEST() [all …]
|