Home
last modified time | relevance | path

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

12345

/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.c52 extern int vp8_update_coef_context(VP8_COMP *cpi);
53 extern void vp8_update_coef_probs(VP8_COMP *cpi);
56 extern void vp8cx_pick_filter_level_fast(YV12_BUFFER_CONFIG *sd, VP8_COMP *cpi);
57 extern void vp8cx_set_alt_lf_level(VP8_COMP *cpi, int filt_val);
58 extern void vp8cx_pick_filter_level(YV12_BUFFER_CONFIG *sd, VP8_COMP *cpi);
66 extern int vp8cx_create_encoder_threads(VP8_COMP *cpi);
67 extern void vp8cx_remove_encoder_threads(VP8_COMP *cpi);
69 int vp8_estimate_entropy_savings(VP8_COMP *cpi);
73 extern void vp8_temporal_filter_prepare_c(VP8_COMP *cpi, int distance);
75 static void set_default_lf_deltas(VP8_COMP *cpi);
[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.c37 extern void vp8_stuff_mb(VP8_COMP *cpi, MACROBLOCK *x, TOKENEXTRA **t);
40 extern void vp8_convert_rfct_to_prob(VP8_COMP *const cpi);
41 extern void vp8cx_initialize_me_consts(VP8_COMP *cpi, int QIndex);
42 extern void vp8_auto_select_speed(VP8_COMP *cpi);
43 extern void vp8cx_init_mbrthread_data(VP8_COMP *cpi, MACROBLOCK *x,
45 static void adjust_act_zbin(VP8_COMP *cpi, MACROBLOCK *x);
75 static unsigned int tt_activity_measure(VP8_COMP *cpi, MACROBLOCK *x) { in tt_activity_measure() argument
78 (void)cpi; in tt_activity_measure()
97 static unsigned int alt_activity_measure(VP8_COMP *cpi, MACROBLOCK *x, in alt_activity_measure() argument
99 return vp8_encode_intra(cpi, x, use_dc_pred); in alt_activity_measure()
[all …]
Dvp8_quantize.c182 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 …]
Dethreading.c20 extern void vp8cx_mb_init_quantizer(VP8_COMP *cpi, MACROBLOCK *x,
24 VP8_COMP *cpi = (VP8_COMP *)(((LPFTHREAD_DATA *)p_data)->ptr1); in thread_loopfilter() local
25 VP8_COMMON *cm = &cpi->common; in thread_loopfilter()
28 if (protected_read(&cpi->mt_mutex, &cpi->b_multi_threaded) == 0) break; in thread_loopfilter()
30 if (sem_wait(&cpi->h_event_start_lpf) == 0) { in thread_loopfilter()
32 if (protected_read(&cpi->mt_mutex, &cpi->b_multi_threaded) == 0) break; in thread_loopfilter()
34 vp8_loopfilter_frame(cpi, cm); in thread_loopfilter()
36 sem_post(&cpi->h_event_end_lpf); in thread_loopfilter()
45 VP8_COMP *cpi = (VP8_COMP *)(((ENCODETHREAD_DATA *)p_data)->ptr1); in thread_encoding_proc() local
50 if (protected_read(&cpi->mt_mutex, &cpi->b_multi_threaded) == 0) break; in thread_encoding_proc()
[all …]
Dbitstream.c85 static void update_mbintra_mode_probs(VP8_COMP *cpi) { in update_mbintra_mode_probs() argument
86 VP8_COMMON *const x = &cpi->common; in update_mbintra_mode_probs()
88 vp8_writer *const w = cpi->bc; in update_mbintra_mode_probs()
95 x->fc.ymode_prob, bct, (unsigned int *)cpi->mb.ymode_count); in update_mbintra_mode_probs()
102 x->fc.uv_mode_prob, bct, (unsigned int *)cpi->mb.uv_mode_count); in update_mbintra_mode_probs()
298 static void pack_tokens_into_partitions(VP8_COMP *cpi, unsigned char *cx_data, in pack_tokens_into_partitions() argument
309 w = cpi->bc + i + 1; in pack_tokens_into_partitions()
313 for (mb_row = i; mb_row < cpi->common.mb_rows; mb_row += num_part) { in pack_tokens_into_partitions()
314 const TOKENEXTRA *p = cpi->tplist[mb_row].start; in pack_tokens_into_partitions()
315 const TOKENEXTRA *stop = cpi->tplist[mb_row].stop; in pack_tokens_into_partitions()
[all …]
Dtemporal_filter.c111 static int vp8_temporal_filter_find_matching_mb_c(VP8_COMP *cpi, in vp8_temporal_filter_find_matching_mb_c() argument
116 MACROBLOCK *x = &cpi->mb; in vp8_temporal_filter_find_matching_mb_c()
150 if (cpi->Speed < 8) { in vp8_temporal_filter_find_matching_mb_c()
151 step_param = cpi->sf.first_step + (cpi->Speed > 5); in vp8_temporal_filter_find_matching_mb_c()
153 step_param = cpi->sf.first_step + 2; in vp8_temporal_filter_find_matching_mb_c()
160 &cpi->fn_ptr[BLOCK_16X16], NULL, NULL, &best_ref_mv1); in vp8_temporal_filter_find_matching_mb_c()
168 bestsme = cpi->find_fractional_mv_step( in vp8_temporal_filter_find_matching_mb_c()
170 &cpi->fn_ptr[BLOCK_16X16], NULL, &distortion, &sse); in vp8_temporal_filter_find_matching_mb_c()
186 static void vp8_temporal_filter_iterate_c(VP8_COMP *cpi, int frame_count, in vp8_temporal_filter_iterate_c() argument
192 int mb_cols = cpi->common.mb_cols; in vp8_temporal_filter_iterate_c()
[all …]
Dpicklpf.c94 static int get_min_filter_level(VP8_COMP *cpi, int base_qindex) { in get_min_filter_level() argument
97 if (cpi->source_alt_ref_active && cpi->common.refresh_golden_frame && in get_min_filter_level()
98 !cpi->common.refresh_alt_ref_frame) { in get_min_filter_level()
114 static int get_max_filter_level(VP8_COMP *cpi, int base_qindex) { in get_max_filter_level() argument
123 if (cpi->twopass.section_intra_rating > 8) { in get_max_filter_level()
130 void vp8cx_pick_filter_level_fast(YV12_BUFFER_CONFIG *sd, VP8_COMP *cpi) { in vp8cx_pick_filter_level_fast() argument
131 VP8_COMMON *cm = &cpi->common; in vp8cx_pick_filter_level_fast()
135 int min_filter_level = get_min_filter_level(cpi, cm->base_qindex); in vp8cx_pick_filter_level_fast()
136 int max_filter_level = get_max_filter_level(cpi, cm->base_qindex); in vp8cx_pick_filter_level_fast()
142 cm->frame_to_show = &cpi->pick_lf_lvl_frame; in vp8cx_pick_filter_level_fast()
[all …]
Dpickinter.c125 static int check_dot_artifact_candidate(VP8_COMP *cpi, MACROBLOCK *x, in check_dot_artifact_candidate() argument
131 unsigned int max_num = (cpi->common.MBs) / 10; in check_dot_artifact_candidate()
134 int index = mb_row * cpi->common.mb_cols + mb_col; in check_dot_artifact_candidate()
141 if (cpi->oxcf.number_of_layers > 1) { in check_dot_artifact_candidate()
150 if (cpi->current_layer == 0 && in check_dot_artifact_candidate()
151 cpi->consec_zero_last_mvbias[index] > num_frames && in check_dot_artifact_candidate()
153 !cpi->oxcf.screen_content_mode) { in check_dot_artifact_candidate()
466 static void get_lower_res_motion_info(VP8_COMP *cpi, MACROBLOCKD *xd, in get_lower_res_motion_info() argument
472 ((LOWER_RES_FRAME_INFO *)cpi->oxcf.mr_low_res_mode_info)->mb_info; in get_lower_res_motion_info()
483 parent_mb_row = mb_row * cpi->oxcf.mr_down_sampling_factor.den / in get_lower_res_motion_info()
[all …]
/external/libvpx/libvpx/vp9/encoder/
Dvp9_svc_layercontext.c22 void vp9_init_layer_context(VP9_COMP *const cpi) { in vp9_init_layer_context() argument
23 SVC *const svc = &cpi->svc; in vp9_init_layer_context()
24 const VP9EncoderConfig *const oxcf = &cpi->oxcf; in vp9_init_layer_context()
25 int mi_rows = cpi->common.mi_rows; in vp9_init_layer_context()
26 int mi_cols = cpi->common.mi_cols; in vp9_init_layer_context()
49 if (cpi->oxcf.error_resilient_mode == 0 && cpi->oxcf.pass == 2) { in vp9_init_layer_context()
50 if (vpx_realloc_frame_buffer(&cpi->svc.empty_frame.img, SMALL_FRAME_WIDTH, in vp9_init_layer_context()
51 SMALL_FRAME_HEIGHT, cpi->common.subsampling_x, in vp9_init_layer_context()
52 cpi->common.subsampling_y, in vp9_init_layer_context()
54 cpi->common.use_highbitdepth, in vp9_init_layer_context()
[all …]
Dvp9_encoder.c97 static int is_spatial_denoise_enabled(VP9_COMP *cpi) { in is_spatial_denoise_enabled() argument
98 VP9_COMMON *const cm = &cpi->common; in is_spatial_denoise_enabled()
99 const VP9EncoderConfig *const oxcf = &cpi->oxcf; in is_spatial_denoise_enabled()
101 return (oxcf->pass != 1) && !is_lossless_requested(&cpi->oxcf) && in is_spatial_denoise_enabled()
107 static int compute_context_model_thresh(const VP9_COMP *const cpi) { in compute_context_model_thresh() argument
108 const VP9_COMMON *const cm = &cpi->common; in compute_context_model_thresh()
109 const VP9EncoderConfig *const oxcf = &cpi->oxcf; in compute_context_model_thresh()
432 static int is_psnr_calc_enabled(VP9_COMP *cpi) { in is_psnr_calc_enabled() argument
433 VP9_COMMON *const cm = &cpi->common; in is_psnr_calc_enabled()
434 const VP9EncoderConfig *const oxcf = &cpi->oxcf; in is_psnr_calc_enabled()
[all …]
Dvp9_ratectrl.c215 int vp9_rc_clamp_pframe_target_size(const VP9_COMP *const cpi, int target) { in vp9_rc_clamp_pframe_target_size() argument
216 const RATE_CONTROL *rc = &cpi->rc; in vp9_rc_clamp_pframe_target_size()
217 const VP9EncoderConfig *oxcf = &cpi->oxcf; in vp9_rc_clamp_pframe_target_size()
221 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()
272 static void update_buffer_level(VP9_COMP *cpi, int encoded_frame_size) { in update_buffer_level() argument
273 const VP9_COMMON *const cm = &cpi->common; in update_buffer_level()
274 RATE_CONTROL *const rc = &cpi->rc; in update_buffer_level()
[all …]
Dvp9_noise_estimate.c42 static int enable_noise_estimation(VP9_COMP *const cpi) { in enable_noise_estimation() argument
44 if (cpi->common.use_highbitdepth) return 0; in enable_noise_estimation()
48 if (cpi->oxcf.noise_sensitivity > 0 && denoise_svc(cpi) && in enable_noise_estimation()
49 cpi->common.width >= 320 && cpi->common.height >= 180) in enable_noise_estimation()
56 if (cpi->oxcf.pass == 0 && cpi->oxcf.rc_mode == VPX_CBR && in enable_noise_estimation()
57 cpi->oxcf.aq_mode == CYCLIC_REFRESH_AQ && cpi->oxcf.speed >= 5 && in enable_noise_estimation()
58 cpi->resize_state == ORIG && cpi->resize_pending == 0 && !cpi->use_svc && in enable_noise_estimation()
59 cpi->oxcf.content != VP9E_CONTENT_SCREEN && cpi->common.width >= 640 && in enable_noise_estimation()
60 cpi->common.height >= 360) in enable_noise_estimation()
99 void vp9_update_noise_estimate(VP9_COMP *const cpi) { in vp9_update_noise_estimate() argument
[all …]
Dvp9_ethread.c39 VP9_COMP *const cpi = thread_data->cpi; in enc_worker_hook() local
40 const VP9_COMMON *const cm = &cpi->common; in enc_worker_hook()
48 t += cpi->num_workers) { in enc_worker_hook()
52 vp9_encode_tile(cpi, thread_data->td, tile_row, tile_col); in enc_worker_hook()
58 static int get_max_tile_cols(VP9_COMP *cpi) { in get_max_tile_cols() argument
59 const int aligned_width = ALIGN_POWER_OF_TWO(cpi->oxcf.width, MI_SIZE_LOG2); in get_max_tile_cols()
66 clamp(cpi->oxcf.tile_columns, min_log2_tile_cols, max_log2_tile_cols); in get_max_tile_cols()
70 static void create_enc_workers(VP9_COMP *cpi, int num_workers) { in create_enc_workers() argument
71 VP9_COMMON *const cm = &cpi->common; in create_enc_workers()
76 if (cpi->num_workers == 0) { in create_enc_workers()
[all …]
Dvp9_firstpass.c227 static double calculate_active_area(const VP9_COMP *cpi, in calculate_active_area() argument
234 ((this_frame->inactive_zone_rows * 2) / (double)cpi->common.mb_rows)); in calculate_active_area()
241 static double calculate_mod_frame_score(const VP9_COMP *cpi, in calculate_mod_frame_score() argument
259 pow(calculate_active_area(cpi, this_frame), ACT_AREA_CORRECTION); in calculate_mod_frame_score()
263 static double calculate_norm_frame_score(const VP9_COMP *cpi, in calculate_norm_frame_score() argument
284 pow(calculate_active_area(cpi, this_frame), ACT_AREA_CORRECTION); in calculate_norm_frame_score()
306 void vp9_init_first_pass(VP9_COMP *cpi) { in vp9_init_first_pass() argument
307 zero_stats(&cpi->twopass.total_stats); in vp9_init_first_pass()
310 void vp9_end_first_pass(VP9_COMP *cpi) { in vp9_end_first_pass() argument
311 if (is_two_pass_svc(cpi)) { in vp9_end_first_pass()
[all …]
Dvp9_picklpf.c27 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 …]
Dvp9_speed_features.c34 static int frame_is_boosted(const VP9_COMP *cpi) { in frame_is_boosted() argument
35 return frame_is_kf_gf_arf(cpi) || vp9_is_upper_layer_key_frame(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()
132 if ((speed >= 1) && (cpi->oxcf.pass == 2) && in set_good_speed_feature_framesize_dependent()
133 ((cpi->twopass.fr_content_type == FC_GRAPHICS_ANIMATION) || in set_good_speed_feature_framesize_dependent()
134 (vp9_internal_image_edge(cpi)))) { in set_good_speed_feature_framesize_dependent()
156 static void set_good_speed_feature_framesize_independent(VP9_COMP *cpi, in set_good_speed_feature_framesize_independent() argument
160 const int boosted = frame_is_boosted(cpi); in set_good_speed_feature_framesize_independent()
168 sf->use_square_partition_only = !frame_is_boosted(cpi); in set_good_speed_feature_framesize_independent()
[all …]
Dvp9_aq_cyclicrefresh.c78 static int compute_deltaq(const VP9_COMP *cpi, int q, double rate_factor) { in compute_deltaq() argument
79 const CYCLIC_REFRESH *const cr = cpi->cyclic_refresh; in compute_deltaq()
80 const RATE_CONTROL *const rc = &cpi->rc; in compute_deltaq()
81 int deltaq = vp9_compute_qdelta_by_rate(rc, cpi->common.frame_type, q, in compute_deltaq()
82 rate_factor, cpi->common.bit_depth); in compute_deltaq()
93 int vp9_cyclic_refresh_estimate_bits_at_q(const VP9_COMP *cpi, in vp9_cyclic_refresh_estimate_bits_at_q() argument
95 const VP9_COMMON *const cm = &cpi->common; in vp9_cyclic_refresh_estimate_bits_at_q()
96 const CYCLIC_REFRESH *const cr = cpi->cyclic_refresh; in vp9_cyclic_refresh_estimate_bits_at_q()
125 int vp9_cyclic_refresh_rc_bits_per_mb(const VP9_COMP *cpi, int i, in vp9_cyclic_refresh_rc_bits_per_mb() argument
127 const VP9_COMMON *const cm = &cpi->common; in vp9_cyclic_refresh_rc_bits_per_mb()
[all …]
Dvp9_encodeframe.c51 static void encode_superblock(VP9_COMP *cpi, ThreadData *td, TOKENEXTRA **t,
128 unsigned int vp9_get_sby_perpixel_variance(VP9_COMP *cpi, in vp9_get_sby_perpixel_variance() argument
133 cpi->fn_ptr[bs].vf(ref->buf, ref->stride, VP9_VAR_OFFS, 0, &sse); in vp9_get_sby_perpixel_variance()
138 unsigned int vp9_high_get_sby_perpixel_variance(VP9_COMP *cpi, in vp9_high_get_sby_perpixel_variance() argument
145 cpi->fn_ptr[bs].vf(ref->buf, ref->stride, in vp9_high_get_sby_perpixel_variance()
150 cpi->fn_ptr[bs].vf(ref->buf, ref->stride, in vp9_high_get_sby_perpixel_variance()
156 cpi->fn_ptr[bs].vf(ref->buf, ref->stride, in vp9_high_get_sby_perpixel_variance()
165 static unsigned int get_sby_perpixel_diff_variance(VP9_COMP *cpi, in get_sby_perpixel_diff_variance() argument
171 const YV12_BUFFER_CONFIG *last = get_ref_frame_buffer(cpi, LAST_FRAME); in get_sby_perpixel_diff_variance()
176 var = cpi->fn_ptr[bs].vf(ref->buf, ref->stride, last_y, last->y_stride, &sse); in get_sby_perpixel_diff_variance()
[all …]
Dvp9_encoder.h723 void vp9_remove_compressor(VP9_COMP *cpi);
725 void vp9_change_config(VP9_COMP *cpi, const VP9EncoderConfig *oxcf);
729 int vp9_receive_raw_frame(VP9_COMP *cpi, vpx_enc_frame_flags_t frame_flags,
733 int vp9_get_compressed_data(VP9_COMP *cpi, unsigned int *frame_flags,
737 int vp9_get_preview_raw_frame(VP9_COMP *cpi, YV12_BUFFER_CONFIG *dest,
740 int vp9_use_as_reference(VP9_COMP *cpi, int ref_frame_flags);
742 void vp9_update_reference(VP9_COMP *cpi, int ref_frame_flags);
744 int vp9_copy_reference_enc(VP9_COMP *cpi, VP9_REFFRAME ref_frame_flag,
747 int vp9_set_reference_enc(VP9_COMP *cpi, VP9_REFFRAME ref_frame_flag,
750 int vp9_update_entropy(VP9_COMP *cpi, int update);
[all …]
Dvp9_mbgraph.c25 static unsigned int do_16x16_motion_iteration(VP9_COMP *cpi, const MV *ref_mv, in do_16x16_motion_iteration() argument
28 MACROBLOCK *const x = &cpi->td.mb; in do_16x16_motion_iteration()
30 MV_SPEED_FEATURES *const mv_sf = &cpi->sf.mv; in do_16x16_motion_iteration()
32 const vp9_variance_fn_ptr_t v_fn_ptr = cpi->fn_ptr[BLOCK_16X16]; in do_16x16_motion_iteration()
47 vp9_full_pixel_search(cpi, x, BLOCK_16X16, &ref_full, step_param, in do_16x16_motion_iteration()
48 cpi->sf.mv.search_method, x->errorperbit, in do_16x16_motion_iteration()
49 cond_cost_list(cpi, cost_list), ref_mv, dst_mv, 0, 0); in do_16x16_motion_iteration()
60 cpi->find_fractional_mv_step( in do_16x16_motion_iteration()
61 x, dst_mv, ref_mv, cpi->common.allow_high_precision_mv, x->errorperbit, in do_16x16_motion_iteration()
63 cond_cost_list(cpi, cost_list), NULL, NULL, &distortion, &sse, NULL, 0, in do_16x16_motion_iteration()
[all …]
Dvp9_bitstream.c234 VP9_COMP *cpi, const MACROBLOCKD *const xd, in pack_inter_mode_mvs() argument
238 VP9_COMMON *const cm = &cpi->common; in pack_inter_mode_mvs()
319 vp9_encode_mv(cpi, w, &mi->bmi[j].as_mv[ref].as_mv, in pack_inter_mode_mvs()
328 vp9_encode_mv(cpi, w, &mi->mv[ref].as_mv, in pack_inter_mode_mvs()
371 VP9_COMP *cpi, MACROBLOCKD *const xd, const TileInfo *const tile, in write_modes_b() argument
375 const VP9_COMMON *const cm = &cpi->common; in write_modes_b()
377 cpi->td.mb.mbmi_ext_base + (mi_row * cm->mi_cols + mi_col); in write_modes_b()
389 pack_inter_mode_mvs(cpi, xd, mbmi_ext, w, max_mv_magnitude, in write_modes_b()
420 VP9_COMP *cpi, MACROBLOCKD *const xd, const TileInfo *const tile, in write_modes_sb() argument
425 const VP9_COMMON *const cm = &cpi->common; in write_modes_sb()
[all …]
Dvp9_bitstream.h34 int vp9_get_refresh_mask(VP9_COMP *cpi);
36 void vp9_bitstream_encode_tiles_buffer_dealloc(VP9_COMP *const cpi);
38 void vp9_pack_bitstream(VP9_COMP *cpi, uint8_t *dest, size_t *size);
40 static INLINE int vp9_preserve_existing_gf(VP9_COMP *cpi) { in vp9_preserve_existing_gf() argument
41 return !cpi->multi_arf_allowed && cpi->refresh_golden_frame && in vp9_preserve_existing_gf()
42 cpi->rc.is_src_frame_alt_ref && in vp9_preserve_existing_gf()
43 (!cpi->use_svc || // Add spatial svc base layer case here in vp9_preserve_existing_gf()
44 (is_two_pass_svc(cpi) && cpi->svc.spatial_layer_id == 0 && in vp9_preserve_existing_gf()
45 cpi->svc.layer_context[0].gold_ref_idx >= 0 && in vp9_preserve_existing_gf()
46 cpi->oxcf.ss_enable_auto_arf[0])); in vp9_preserve_existing_gf()
/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 …]

12345