Home
last modified time | relevance | path

Searched refs:cpi (Results 1 – 25 of 230) sorted by relevance

12345678910

/external/libvpx/libvpx/vp8/encoder/
Dratectrl.c175 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 …]
Donyx_if.c62 extern int vp8_update_coef_context(VP8_COMP *cpi);
69 static void set_default_lf_deltas(VP8_COMP *cpi);
123 extern void vp8cx_init_quantizer(VP8_COMP *cpi);
186 static void save_layer_context(VP8_COMP *cpi) { in save_layer_context() argument
187 LAYER_CONTEXT *lc = &cpi->layer_context[cpi->current_layer]; in save_layer_context()
190 lc->target_bandwidth = cpi->target_bandwidth; in save_layer_context()
191 lc->starting_buffer_level = cpi->oxcf.starting_buffer_level; in save_layer_context()
192 lc->optimal_buffer_level = cpi->oxcf.optimal_buffer_level; in save_layer_context()
193 lc->maximum_buffer_size = cpi->oxcf.maximum_buffer_size; in save_layer_context()
194 lc->starting_buffer_level_in_ms = cpi->oxcf.starting_buffer_level_in_ms; in save_layer_context()
[all …]
Dfirstpass.c39 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 …]
Dencodeframe.c41 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 …]
Dvp8_quantize.c180 void vp8cx_init_quantizer(VP8_COMP *cpi) { in vp8cx_init_quantizer() argument
190 quant_val = vp8_dc_quant(Q, cpi->common.y1dc_delta_q); in vp8cx_init_quantizer()
191 cpi->Y1quant_fast[Q][0] = (1 << 16) / quant_val; in vp8cx_init_quantizer()
192 invert_quant(cpi->sf.improved_quant, cpi->Y1quant[Q] + 0, in vp8cx_init_quantizer()
193 cpi->Y1quant_shift[Q] + 0, quant_val); in vp8cx_init_quantizer()
194 cpi->Y1zbin[Q][0] = ((qzbin_factors[Q] * quant_val) + 64) >> 7; in vp8cx_init_quantizer()
195 cpi->Y1round[Q][0] = (qrounding_factors[Q] * quant_val) >> 7; in vp8cx_init_quantizer()
196 cpi->common.Y1dequant[Q][0] = quant_val; in vp8cx_init_quantizer()
197 cpi->zrun_zbin_boost_y1[Q][0] = (quant_val * zbin_boost[0]) >> 7; in vp8cx_init_quantizer()
199 quant_val = vp8_dc2quant(Q, cpi->common.y2dc_delta_q); in vp8cx_init_quantizer()
[all …]
Dethreading.c21 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 …]
Dbitstream.c78 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 …]
/external/libvpx/libvpx/vp9/encoder/
Dvp9_svc_layercontext.c30 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()
86 if (cpi->oxcf.error_resilient_mode == 0 && cpi->oxcf.pass == 2) { in vp9_init_layer_context()
87 if (vpx_realloc_frame_buffer(&cpi->svc.empty_frame.img, SMALL_FRAME_WIDTH, in vp9_init_layer_context()
88 SMALL_FRAME_HEIGHT, cpi->common.subsampling_x, in vp9_init_layer_context()
89 cpi->common.subsampling_y, in vp9_init_layer_context()
91 cpi->common.use_highbitdepth, in vp9_init_layer_context()
[all …]
Dvp9_encoder.c119 static int is_spatial_denoise_enabled(VP9_COMP *cpi) { in is_spatial_denoise_enabled() argument
120 VP9_COMMON *const cm = &cpi->common; in is_spatial_denoise_enabled()
121 const VP9EncoderConfig *const oxcf = &cpi->oxcf; in is_spatial_denoise_enabled()
123 return (oxcf->pass != 1) && !is_lossless_requested(&cpi->oxcf) && in is_spatial_denoise_enabled()
137 static int compute_context_model_thresh(const VP9_COMP *const cpi) { in compute_context_model_thresh() argument
138 const VP9_COMMON *const cm = &cpi->common; in compute_context_model_thresh()
139 const VP9EncoderConfig *const oxcf = &cpi->oxcf; in compute_context_model_thresh()
463 static int is_psnr_calc_enabled(const VP9_COMP *cpi) { in is_psnr_calc_enabled() argument
464 const VP9_COMMON *const cm = &cpi->common; in is_psnr_calc_enabled()
465 const VP9EncoderConfig *const oxcf = &cpi->oxcf; in is_psnr_calc_enabled()
[all …]
Dvp9_ratectrl.c210 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()
217 if (cpi->refresh_golden_frame && rc->is_src_frame_alt_ref) { in vp9_rc_clamp_pframe_target_size()
236 int vp9_rc_clamp_iframe_target_size(const VP9_COMP *const cpi, int target) { in vp9_rc_clamp_iframe_target_size() argument
237 const RATE_CONTROL *rc = &cpi->rc; in vp9_rc_clamp_iframe_target_size()
238 const VP9EncoderConfig *oxcf = &cpi->oxcf; in vp9_rc_clamp_iframe_target_size()
252 static void update_buffer_level_preencode(VP9_COMP *cpi) { in update_buffer_level_preencode() argument
253 RATE_CONTROL *const rc = &cpi->rc; in update_buffer_level_preencode()
265 static void update_buffer_level_svc_preencode(VP9_COMP *cpi) { in update_buffer_level_svc_preencode() argument
[all …]
Dvp9_noise_estimate.c26 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()
52 static int enable_noise_estimation(VP9_COMP *const cpi) { in enable_noise_estimation() argument
54 if (cpi->common.use_highbitdepth) return 0; in enable_noise_estimation()
58 if (cpi->oxcf.noise_sensitivity > 0 && noise_est_svc(cpi) && in enable_noise_estimation()
59 cpi->common.width >= 320 && cpi->common.height >= 180) in enable_noise_estimation()
66 if (cpi->oxcf.pass == 0 && cpi->oxcf.rc_mode == VPX_CBR && in enable_noise_estimation()
67 cpi->oxcf.aq_mode == CYCLIC_REFRESH_AQ && cpi->oxcf.speed >= 5 && in enable_noise_estimation()
[all …]
Dvp9_ethread.c40 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 …]
Dvp9_aq_cyclicrefresh.c89 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 …]
Dvp9_picklpf.c27 static unsigned int get_section_intra_rating(const VP9_COMP *cpi) { in get_section_intra_rating() argument
30 section_intra_rating = (cpi->common.frame_type == KEY_FRAME) in get_section_intra_rating()
31 ? cpi->twopass.key_frame_section_intra_rating in get_section_intra_rating()
32 : cpi->twopass.section_intra_rating; in get_section_intra_rating()
37 static int get_max_filter_level(const VP9_COMP *cpi) { in get_max_filter_level() argument
38 if (cpi->oxcf.pass == 2) { in get_max_filter_level()
39 unsigned int section_intra_rating = get_section_intra_rating(cpi); in get_max_filter_level()
47 VP9_COMP *const cpi, int filt_level, in try_filter_frame() argument
49 VP9_COMMON *const cm = &cpi->common; in try_filter_frame()
54 if (cpi->num_workers > 1) in try_filter_frame()
[all …]
Dvp9_encodeframe.c61 static void encode_superblock(VP9_COMP *cpi, ThreadData *td, TOKENEXTRA **t,
111 unsigned int vp9_get_sby_variance(VP9_COMP *cpi, const struct buf_2d *ref, in vp9_get_sby_variance() argument
115 cpi->fn_ptr[bs].vf(ref->buf, ref->stride, VP9_VAR_OFFS, 0, &sse); in vp9_get_sby_variance()
120 unsigned int vp9_high_get_sby_variance(VP9_COMP *cpi, const struct buf_2d *ref, in vp9_high_get_sby_variance() argument
126 cpi->fn_ptr[bs].vf(ref->buf, ref->stride, in vp9_high_get_sby_variance()
131 cpi->fn_ptr[bs].vf(ref->buf, ref->stride, in vp9_high_get_sby_variance()
137 cpi->fn_ptr[bs].vf(ref->buf, ref->stride, in vp9_high_get_sby_variance()
145 unsigned int vp9_get_sby_perpixel_variance(VP9_COMP *cpi, in vp9_get_sby_perpixel_variance() argument
148 return ROUND_POWER_OF_TWO(vp9_get_sby_variance(cpi, ref, bs), in vp9_get_sby_perpixel_variance()
153 unsigned int vp9_high_get_sby_perpixel_variance(VP9_COMP *cpi, in vp9_high_get_sby_perpixel_variance() argument
[all …]
Dvp9_speed_features.c35 static int frame_is_boosted(const VP9_COMP *cpi) { in frame_is_boosted() argument
36 return frame_is_kf_gf_arf(cpi); in frame_is_boosted()
61 static void set_good_speed_feature_framesize_dependent(VP9_COMP *cpi, in set_good_speed_feature_framesize_dependent() argument
64 VP9_COMMON *const cm = &cpi->common; in set_good_speed_feature_framesize_dependent()
121 if (cpi->Source->flags & YV12_FLAG_HIGHBITDEPTH) { in set_good_speed_feature_framesize_dependent()
180 if ((speed >= 1) && (cpi->oxcf.pass == 2) && in set_good_speed_feature_framesize_dependent()
181 ((cpi->twopass.fr_content_type == FC_GRAPHICS_ANIMATION) || in set_good_speed_feature_framesize_dependent()
182 (vp9_internal_image_edge(cpi)))) { in set_good_speed_feature_framesize_dependent()
204 static void set_good_speed_feature_framesize_independent(VP9_COMP *cpi, in set_good_speed_feature_framesize_independent() argument
208 const VP9EncoderConfig *const oxcf = &cpi->oxcf; in set_good_speed_feature_framesize_independent()
[all …]
Dvp9_svc_layercontext.h200 void vp9_init_layer_context(struct VP9_COMP *const cpi);
203 void vp9_update_layer_context_change_config(struct VP9_COMP *const cpi,
208 void vp9_update_temporal_layer_framerate(struct VP9_COMP *const cpi);
211 void vp9_update_spatial_layer_framerate(struct VP9_COMP *const cpi,
216 void vp9_restore_layer_context(struct VP9_COMP *const cpi);
219 void vp9_save_layer_context(struct VP9_COMP *const cpi);
222 void vp9_init_second_pass_spatial_svc(struct VP9_COMP *cpi);
229 void vp9_inc_frame_in_layer(struct VP9_COMP *const cpi);
232 int vp9_is_upper_layer_key_frame(const struct VP9_COMP *const cpi);
235 struct lookahead_entry *vp9_svc_lookahead_pop(struct VP9_COMP *const cpi,
[all …]
/external/libaom/libaom/av1/encoder/
Dencode_strategy.c39 void av1_configure_buffer_updates(AV1_COMP *const cpi, in av1_configure_buffer_updates() argument
46 const ExternalFlags *const ext_flags = &cpi->ext_flags; in av1_configure_buffer_updates()
47 cpi->rc.is_src_frame_alt_ref = 0; in av1_configure_buffer_updates()
73 cpi->rc.is_src_frame_alt_ref = 1; in av1_configure_buffer_updates()
88 cpi->rc.is_src_frame_alt_ref = 1; in av1_configure_buffer_updates()
101 (!is_stat_generation_stage(cpi))) { in av1_configure_buffer_updates()
127 static INLINE void update_keyframe_counters(AV1_COMP *cpi) { in update_keyframe_counters() argument
128 if (cpi->common.show_frame) { in update_keyframe_counters()
129 if (!cpi->common.show_existing_frame || cpi->rc.is_src_frame_alt_ref || in update_keyframe_counters()
130 cpi->common.current_frame.frame_type == KEY_FRAME) { in update_keyframe_counters()
[all …]
Dencoder.c401 static void suppress_active_map(AV1_COMP *cpi) { in suppress_active_map() argument
402 unsigned char *const seg_map = cpi->enc_seg.map; in suppress_active_map()
404 if (cpi->active_map.enabled || cpi->active_map.update) in suppress_active_map()
406 i < cpi->common.mi_params.mi_rows * cpi->common.mi_params.mi_cols; ++i) in suppress_active_map()
411 static void apply_active_map(AV1_COMP *cpi) { in apply_active_map() argument
412 struct segmentation *const seg = &cpi->common.seg; in apply_active_map()
413 unsigned char *const seg_map = cpi->enc_seg.map; in apply_active_map()
414 const unsigned char *const active_map = cpi->active_map.map; in apply_active_map()
419 if (frame_is_intra_only(&cpi->common)) { in apply_active_map()
420 cpi->active_map.enabled = 0; in apply_active_map()
[all …]
Dratectrl.c98 static double resize_rate_factor(const AV1_COMP *cpi, int width, int height) { in resize_rate_factor() argument
99 return (double)(cpi->oxcf.width * cpi->oxcf.height) / (width * height); in resize_rate_factor()
180 int av1_rc_clamp_pframe_target_size(const AV1_COMP *const cpi, int target, in av1_rc_clamp_pframe_target_size() argument
182 const RATE_CONTROL *rc = &cpi->rc; in av1_rc_clamp_pframe_target_size()
183 const AV1EncoderConfig *oxcf = &cpi->oxcf; in av1_rc_clamp_pframe_target_size()
209 int av1_rc_clamp_iframe_target_size(const AV1_COMP *const cpi, int target) { in av1_rc_clamp_iframe_target_size() argument
210 const RATE_CONTROL *rc = &cpi->rc; in av1_rc_clamp_iframe_target_size()
211 const AV1EncoderConfig *oxcf = &cpi->oxcf; in av1_rc_clamp_iframe_target_size()
240 static void update_buffer_level(AV1_COMP *cpi, int encoded_frame_size) { in update_buffer_level() argument
241 const AV1_COMMON *const cm = &cpi->common; in update_buffer_level()
[all …]
Dethread.c47 static AOM_INLINE void update_delta_lf_for_row_mt(AV1_COMP *cpi) { in update_delta_lf_for_row_mt() argument
48 AV1_COMMON *cm = &cpi->common; in update_delta_lf_for_row_mt()
49 MACROBLOCKD *xd = &cpi->td.mb.e_mbd; in update_delta_lf_for_row_mt()
55 TileDataEnc *tile_data = &cpi->tile_data[row * cm->tiles.cols + col]; in update_delta_lf_for_row_mt()
223 static int get_next_job(AV1_COMP *const cpi, int *current_mi_row, in get_next_job() argument
225 AV1_COMMON *const cm = &cpi->common; in get_next_job()
226 TileDataEnc *const this_tile = &cpi->tile_data[cur_tile_id]; in get_next_job()
238 static AOM_INLINE void switch_tile_and_get_next_job(AV1_COMP *const cpi, in switch_tile_and_get_next_job() argument
242 AV1_COMMON *const cm = &cpi->common; in switch_tile_and_get_next_job()
253 TileDataEnc *this_tile = &cpi->tile_data[tile_index]; in switch_tile_and_get_next_job()
[all …]
Dsvc_layercontext.c23 void av1_init_layer_context(AV1_COMP *const cpi) { in av1_init_layer_context() argument
24 AV1_COMMON *const cm = &cpi->common; in av1_init_layer_context()
25 const AV1EncoderConfig *const oxcf = &cpi->oxcf; in av1_init_layer_context()
26 SVC *const svc = &cpi->svc; in av1_init_layer_context()
27 int mi_rows = cpi->common.mi_params.mi_rows; in av1_init_layer_context()
28 int mi_cols = cpi->common.mi_params.mi_cols; in av1_init_layer_context()
82 void av1_update_layer_context_change_config(AV1_COMP *const cpi, in av1_update_layer_context_change_config() argument
84 const RATE_CONTROL *const rc = &cpi->rc; in av1_update_layer_context_change_config()
85 SVC *const svc = &cpi->svc; in av1_update_layer_context_change_config()
112 lc->framerate = cpi->framerate / lc->framerate_factor; in av1_update_layer_context_change_config()
[all …]
Dmv_prec.c57 int comp_idx, const AV1_COMP *cpi, in keep_one_comp_stat() argument
68 const int use_hp = cpi->common.features.allow_high_precision_mv; in keep_one_comp_stat()
71 const MACROBLOCK *const x = &cpi->td.mb; in keep_one_comp_stat()
125 const MV *cur_mv, const AV1_COMP *cpi) { in keep_one_mv_stat() argument
126 const MACROBLOCK *const x = &cpi->td.mb; in keep_one_mv_stat()
131 const int use_hp = cpi->common.features.allow_high_precision_mv; in keep_one_mv_stat()
162 comp_val ? keep_one_comp_stat(mv_stats, comp_val, comp_idx, cpi, rates) in keep_one_mv_stat()
177 const AV1_COMP *cpi, int mi_row, in collect_mv_stats_b() argument
179 const AV1_COMMON *cm = &cpi->common; in collect_mv_stats_b()
189 cpi->mbmi_ext_info.frame_base + in collect_mv_stats_b()
[all …]
Dpass2_strategy.c214 static int get_twopass_worst_quality(AV1_COMP *cpi, const double section_err, in get_twopass_worst_quality() argument
218 const RATE_CONTROL *const rc = &cpi->rc; in get_twopass_worst_quality()
219 const AV1EncoderConfig *const oxcf = &cpi->oxcf; in get_twopass_worst_quality()
226 const int num_mbs = (cpi->oxcf.resize_mode != RESIZE_NONE) in get_twopass_worst_quality()
227 ? cpi->initial_mbs in get_twopass_worst_quality()
228 : cpi->common.mi_params.MBs; in get_twopass_worst_quality()
235 AOMMIN(cpi->oxcf.under_shoot_pct, cpi->oxcf.over_shoot_pct); in get_twopass_worst_quality()
237 twopass_update_bpm_factor(&cpi->twopass); in get_twopass_worst_quality()
241 target_norm_bits_per_mb, cpi->common.seq_params.bit_depth, in get_twopass_worst_quality()
246 if (cpi->oxcf.rc_mode == AOM_CQ) q = AOMMAX(q, oxcf->cq_level); in get_twopass_worst_quality()
[all …]
/external/libvpx/libvpx/test/
Dset_roi.cc42 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 …]

12345678910