/external/libvpx/libvpx/vp8/encoder/ |
D | ratectrl.c | 217 void vp8_save_coding_context(VP8_COMP *cpi) in vp8_save_coding_context() argument 219 CODING_CONTEXT *const cc = & cpi->coding_context; in vp8_save_coding_context() 227 cc->frames_since_key = cpi->frames_since_key; in vp8_save_coding_context() 228 cc->filter_level = cpi->common.filter_level; in vp8_save_coding_context() 229 cc->frames_till_gf_update_due = cpi->frames_till_gf_update_due; in vp8_save_coding_context() 230 cc->frames_since_golden = cpi->frames_since_golden; in vp8_save_coding_context() 232 vp8_copy(cc->mvc, cpi->common.fc.mvc); in vp8_save_coding_context() 233 vp8_copy(cc->mvcosts, cpi->rd_costs.mvcosts); in vp8_save_coding_context() 235 vp8_copy(cc->ymode_prob, cpi->common.fc.ymode_prob); in vp8_save_coding_context() 236 vp8_copy(cc->uv_mode_prob, cpi->common.fc.uv_mode_prob); in vp8_save_coding_context() [all …]
|
D | onyx_if.c | 51 extern int vp8_update_coef_context(VP8_COMP *cpi); 52 extern void vp8_update_coef_probs(VP8_COMP *cpi); 55 extern void vp8cx_pick_filter_level_fast(YV12_BUFFER_CONFIG *sd, VP8_COMP *cpi); 56 extern void vp8cx_set_alt_lf_level(VP8_COMP *cpi, int filt_val); 57 extern void vp8cx_pick_filter_level(YV12_BUFFER_CONFIG *sd, VP8_COMP *cpi); 63 extern int vp8cx_create_encoder_threads(VP8_COMP *cpi); 64 extern void vp8cx_remove_encoder_threads(VP8_COMP *cpi); 66 int vp8_estimate_entropy_savings(VP8_COMP *cpi); 70 extern void vp8_temporal_filter_prepare_c(VP8_COMP *cpi, int distance); 72 static void set_default_lf_deltas(VP8_COMP *cpi); [all …]
|
D | firstpass.c | 37 extern void vp8cx_frame_init_quantizer(VP8_COMP *cpi); 55 #define POW1 (double)cpi->oxcf.two_pass_vbrbias/100.0 56 #define POW2 (double)cpi->oxcf.two_pass_vbrbias/100.0 76 static void find_next_key_frame(VP8_COMP *cpi, FIRSTPASS_STATS *this_frame); 81 static void reset_fpf_position(VP8_COMP *cpi, FIRSTPASS_STATS *Position) in reset_fpf_position() argument 83 cpi->twopass.stats_in = Position; in reset_fpf_position() 86 static int lookup_next_frame_stats(VP8_COMP *cpi, FIRSTPASS_STATS *next_frame) in lookup_next_frame_stats() argument 88 if (cpi->twopass.stats_in >= cpi->twopass.stats_in_end) in lookup_next_frame_stats() 91 *next_frame = *cpi->twopass.stats_in; in lookup_next_frame_stats() 96 static int read_frame_stats( VP8_COMP *cpi, in read_frame_stats() argument [all …]
|
D | encodeframe.c | 38 extern void vp8_stuff_mb(VP8_COMP *cpi, MACROBLOCK *x, TOKENEXTRA **t) ; 44 extern void vp8_convert_rfct_to_prob(VP8_COMP *const cpi); 45 extern void vp8cx_initialize_me_consts(VP8_COMP *cpi, int QIndex); 46 extern void vp8_auto_select_speed(VP8_COMP *cpi); 47 extern void vp8cx_init_mbrthread_data(VP8_COMP *cpi, 51 static void adjust_act_zbin( VP8_COMP *cpi, MACROBLOCK *x ); 82 static unsigned int tt_activity_measure( VP8_COMP *cpi, MACROBLOCK *x ) in tt_activity_measure() argument 86 (void)cpi; in tt_activity_measure() 106 static unsigned int alt_activity_measure( VP8_COMP *cpi, in alt_activity_measure() argument 109 return vp8_encode_intra(cpi,x, use_dc_pred); in alt_activity_measure() [all …]
|
D | vp8_quantize.c | 250 void vp8cx_init_quantizer(VP8_COMP *cpi) in vp8cx_init_quantizer() argument 262 quant_val = vp8_dc_quant(Q, cpi->common.y1dc_delta_q); in vp8cx_init_quantizer() 263 cpi->Y1quant_fast[Q][0] = (1 << 16) / quant_val; in vp8cx_init_quantizer() 264 invert_quant(cpi->sf.improved_quant, cpi->Y1quant[Q] + 0, in vp8cx_init_quantizer() 265 cpi->Y1quant_shift[Q] + 0, quant_val); in vp8cx_init_quantizer() 266 cpi->Y1zbin[Q][0] = ((qzbin_factors[Q] * quant_val) + 64) >> 7; in vp8cx_init_quantizer() 267 cpi->Y1round[Q][0] = (qrounding_factors[Q] * quant_val) >> 7; in vp8cx_init_quantizer() 268 cpi->common.Y1dequant[Q][0] = quant_val; in vp8cx_init_quantizer() 269 cpi->zrun_zbin_boost_y1[Q][0] = (quant_val * zbin_boost[0]) >> 7; in vp8cx_init_quantizer() 271 quant_val = vp8_dc2quant(Q, cpi->common.y2dc_delta_q); in vp8cx_init_quantizer() [all …]
|
D | ethreading.c | 20 extern void vp8cx_mb_init_quantizer(VP8_COMP *cpi, MACROBLOCK *x, int ok_to_skip); 24 VP8_COMP *cpi = (VP8_COMP *)(((LPFTHREAD_DATA *)p_data)->ptr1); in thread_loopfilter() local 25 VP8_COMMON *cm = &cpi->common; in thread_loopfilter() 29 if (cpi->b_multi_threaded == 0) in thread_loopfilter() 32 if (sem_wait(&cpi->h_event_start_lpf) == 0) in thread_loopfilter() 34 if (cpi->b_multi_threaded == 0) /* we're shutting down */ in thread_loopfilter() 37 vp8_loopfilter_frame(cpi, cm); in thread_loopfilter() 39 sem_post(&cpi->h_event_end_lpf); in thread_loopfilter() 50 VP8_COMP *cpi = (VP8_COMP *)(((ENCODETHREAD_DATA *)p_data)->ptr1); in thread_encoding_proc() local 56 if (cpi->b_multi_threaded == 0) in thread_encoding_proc() [all …]
|
D | bitstream.c | 108 static void update_mbintra_mode_probs(VP8_COMP *cpi) in update_mbintra_mode_probs() argument 110 VP8_COMMON *const x = & cpi->common; in update_mbintra_mode_probs() 112 vp8_writer *const w = cpi->bc; in update_mbintra_mode_probs() 120 Pnew, x->fc.ymode_prob, bct, (unsigned int *)cpi->mb.ymode_count in update_mbintra_mode_probs() 129 Pnew, x->fc.uv_mode_prob, bct, (unsigned int *)cpi->mb.uv_mode_count in update_mbintra_mode_probs() 377 static void pack_tokens_into_partitions(VP8_COMP *cpi, unsigned char *cx_data, in pack_tokens_into_partitions() argument 391 w = cpi->bc + i + 1; in pack_tokens_into_partitions() 395 for (mb_row = i; mb_row < cpi->common.mb_rows; mb_row += num_part) in pack_tokens_into_partitions() 397 const TOKENEXTRA *p = cpi->tplist[mb_row].start; in pack_tokens_into_partitions() 398 const TOKENEXTRA *stop = cpi->tplist[mb_row].stop; in pack_tokens_into_partitions() [all …]
|
D | temporal_filter.c | 141 VP8_COMP *cpi, in vp8_temporal_filter_find_matching_mb_c() argument 148 MACROBLOCK *x = &cpi->mb; in vp8_temporal_filter_find_matching_mb_c() 182 if (cpi->Speed < 8) in vp8_temporal_filter_find_matching_mb_c() 184 step_param = cpi->sf.first_step + (cpi->Speed > 5); in vp8_temporal_filter_find_matching_mb_c() 188 step_param = cpi->sf.first_step + 2; in vp8_temporal_filter_find_matching_mb_c() 195 &cpi->fn_ptr[BLOCK_16X16], in vp8_temporal_filter_find_matching_mb_c() 204 bestsme = cpi->find_fractional_mv_step(x, b, d, in vp8_temporal_filter_find_matching_mb_c() 208 &cpi->fn_ptr[BLOCK_16X16], in vp8_temporal_filter_find_matching_mb_c() 227 VP8_COMP *cpi, in vp8_temporal_filter_iterate_c() argument 237 int mb_cols = cpi->common.mb_cols; in vp8_temporal_filter_iterate_c() [all …]
|
D | picklpf.c | 100 static int get_min_filter_level(VP8_COMP *cpi, int base_qindex) in get_min_filter_level() argument 104 if (cpi->source_alt_ref_active && cpi->common.refresh_golden_frame && in get_min_filter_level() 105 !cpi->common.refresh_alt_ref_frame) in get_min_filter_level() 121 static int get_max_filter_level(VP8_COMP *cpi, int base_qindex) in get_max_filter_level() argument 131 if (cpi->twopass.section_intra_rating > 8) in get_max_filter_level() 137 void vp8cx_pick_filter_level_fast(YV12_BUFFER_CONFIG *sd, VP8_COMP *cpi) in vp8cx_pick_filter_level_fast() argument 139 VP8_COMMON *cm = &cpi->common; in vp8cx_pick_filter_level_fast() 143 int min_filter_level = get_min_filter_level(cpi, cm->base_qindex); in vp8cx_pick_filter_level_fast() 144 int max_filter_level = get_max_filter_level(cpi, cm->base_qindex); in vp8cx_pick_filter_level_fast() 150 cm->frame_to_show = &cpi->pick_lf_lvl_frame; in vp8cx_pick_filter_level_fast() [all …]
|
D | pickinter.c | 80 static int check_dot_artifact_candidate(VP8_COMP *cpi, in check_dot_artifact_candidate() argument 91 unsigned int max_num = (cpi->common.MBs) / 10; in check_dot_artifact_candidate() 94 int index = mb_row * cpi->common.mb_cols + mb_col; in check_dot_artifact_candidate() 101 if (cpi->oxcf.number_of_layers > 1) in check_dot_artifact_candidate() 111 if (cpi->current_layer == 0 && in check_dot_artifact_candidate() 112 cpi->consec_zero_last_mvbias[index] > num_frames && in check_dot_artifact_candidate() 114 !cpi->oxcf.screen_content_mode) in check_dot_artifact_candidate() 510 void get_lower_res_motion_info(VP8_COMP *cpi, MACROBLOCKD *xd, int *dissim, in get_lower_res_motion_info() argument 516 = ((LOWER_RES_FRAME_INFO*)cpi->oxcf.mr_low_res_mode_info)->mb_info; in get_lower_res_motion_info() 527 parent_mb_row = mb_row*cpi->oxcf.mr_down_sampling_factor.den in get_lower_res_motion_info() [all …]
|
D | rdopt.c | 41 extern void vp8_update_zbin_extra(VP8_COMP *cpi, MACROBLOCK *x); 221 void vp8cx_initialize_me_consts(VP8_COMP *cpi, int QIndex) in vp8cx_initialize_me_consts() argument 223 cpi->mb.sadperbit16 = sad_per_bit16lut[QIndex]; in vp8cx_initialize_me_consts() 224 cpi->mb.sadperbit4 = sad_per_bit4lut[QIndex]; in vp8cx_initialize_me_consts() 227 void vp8_initialize_rd_consts(VP8_COMP *cpi, MACROBLOCK *x, int Qvalue) in vp8_initialize_rd_consts() argument 239 cpi->RDMULT = (int)(rdconst * (capped_q * capped_q)); in vp8_initialize_rd_consts() 242 if (cpi->mb.zbin_over_quant > 0) in vp8_initialize_rd_consts() 250 oq_factor = 1.0 + ((double)0.0015625 * cpi->mb.zbin_over_quant); in vp8_initialize_rd_consts() 252 cpi->RDMULT = (int)(rdconst * (modq * modq)); in vp8_initialize_rd_consts() 255 if (cpi->pass == 2 && (cpi->common.frame_type != KEY_FRAME)) in vp8_initialize_rd_consts() [all …]
|
/external/libvpx/libvpx/vp9/encoder/ |
D | vp9_svc_layercontext.c | 23 void vp9_init_layer_context(VP9_COMP *const cpi) { in vp9_init_layer_context() argument 24 SVC *const svc = &cpi->svc; in vp9_init_layer_context() 25 const VP9EncoderConfig *const oxcf = &cpi->oxcf; in vp9_init_layer_context() 26 int mi_rows = cpi->common.mi_rows; in vp9_init_layer_context() 27 int mi_cols = cpi->common.mi_cols; in vp9_init_layer_context() 35 if (cpi->oxcf.error_resilient_mode == 0 && cpi->oxcf.pass == 2) { in vp9_init_layer_context() 36 if (vpx_realloc_frame_buffer(&cpi->svc.empty_frame.img, in vp9_init_layer_context() 38 cpi->common.subsampling_x, in vp9_init_layer_context() 39 cpi->common.subsampling_y, in vp9_init_layer_context() 41 cpi->common.use_highbitdepth, in vp9_init_layer_context() [all …]
|
D | vp9_encoder.c | 117 static void suppress_active_map(VP9_COMP *cpi) { in suppress_active_map() argument 118 unsigned char *const seg_map = cpi->segmentation_map; in suppress_active_map() 120 if (cpi->active_map.enabled || cpi->active_map.update) in suppress_active_map() 121 for (i = 0; i < cpi->common.mi_rows * cpi->common.mi_cols; ++i) in suppress_active_map() 126 static void apply_active_map(VP9_COMP *cpi) { in apply_active_map() argument 127 struct segmentation *const seg = &cpi->common.seg; in apply_active_map() 128 unsigned char *const seg_map = cpi->segmentation_map; in apply_active_map() 129 const unsigned char *const active_map = cpi->active_map.map; in apply_active_map() 134 if (frame_is_intra_only(&cpi->common)) { in apply_active_map() 135 cpi->active_map.enabled = 0; in apply_active_map() [all …]
|
D | vp9_ratectrl.c | 200 int vp9_rc_clamp_pframe_target_size(const VP9_COMP *const cpi, int target) { in vp9_rc_clamp_pframe_target_size() argument 201 const RATE_CONTROL *rc = &cpi->rc; in vp9_rc_clamp_pframe_target_size() 202 const VP9EncoderConfig *oxcf = &cpi->oxcf; in vp9_rc_clamp_pframe_target_size() 207 if (cpi->refresh_golden_frame && rc->is_src_frame_alt_ref) { in vp9_rc_clamp_pframe_target_size() 225 int vp9_rc_clamp_iframe_target_size(const VP9_COMP *const cpi, int target) { in vp9_rc_clamp_iframe_target_size() argument 226 const RATE_CONTROL *rc = &cpi->rc; in vp9_rc_clamp_iframe_target_size() 227 const VP9EncoderConfig *oxcf = &cpi->oxcf; in vp9_rc_clamp_iframe_target_size() 261 static void update_buffer_level(VP9_COMP *cpi, int encoded_frame_size) { in update_buffer_level() argument 262 const VP9_COMMON *const cm = &cpi->common; in update_buffer_level() 263 RATE_CONTROL *const rc = &cpi->rc; in update_buffer_level() [all …]
|
D | vp9_firstpass.c | 240 static double calculate_active_area(const VP9_COMP *cpi, in calculate_active_area() argument 246 ((this_frame->inactive_zone_rows * 2) / (double)cpi->common.mb_rows)); in calculate_active_area() 253 static double calculate_modified_err(const VP9_COMP *cpi, in calculate_modified_err() argument 270 pow(calculate_active_area(cpi, this_frame), ACT_AREA_CORRECTION); in calculate_modified_err() 289 void vp9_init_first_pass(VP9_COMP *cpi) { in vp9_init_first_pass() argument 290 zero_stats(&cpi->twopass.total_stats); in vp9_init_first_pass() 293 void vp9_end_first_pass(VP9_COMP *cpi) { in vp9_end_first_pass() argument 294 if (is_two_pass_svc(cpi)) { in vp9_end_first_pass() 296 for (i = 0; i < cpi->svc.number_spatial_layers; ++i) { in vp9_end_first_pass() 297 output_stats(&cpi->svc.layer_context[i].twopass.total_stats, in vp9_end_first_pass() [all …]
|
D | vp9_ethread.c | 36 VP9_COMP *const cpi = thread_data->cpi; in enc_worker_hook() local 37 const VP9_COMMON *const cm = &cpi->common; in enc_worker_hook() 45 t += cpi->num_workers) { in enc_worker_hook() 49 vp9_encode_tile(cpi, thread_data->td, tile_row, tile_col); in enc_worker_hook() 55 static int get_max_tile_cols(VP9_COMP *cpi) { in get_max_tile_cols() argument 56 const int aligned_width = ALIGN_POWER_OF_TWO(cpi->oxcf.width, MI_SIZE_LOG2); in get_max_tile_cols() 62 log2_tile_cols = clamp(cpi->oxcf.tile_columns, in get_max_tile_cols() 67 void vp9_encode_tiles_mt(VP9_COMP *cpi) { in vp9_encode_tiles_mt() argument 68 VP9_COMMON *const cm = &cpi->common; in vp9_encode_tiles_mt() 71 const int num_workers = VPXMIN(cpi->oxcf.max_threads, tile_cols); in vp9_encode_tiles_mt() [all …]
|
D | vp9_encoder.h | 512 void vp9_remove_compressor(VP9_COMP *cpi); 514 void vp9_change_config(VP9_COMP *cpi, const VP9EncoderConfig *oxcf); 518 int vp9_receive_raw_frame(VP9_COMP *cpi, unsigned int frame_flags, 522 int vp9_get_compressed_data(VP9_COMP *cpi, unsigned int *frame_flags, 526 int vp9_get_preview_raw_frame(VP9_COMP *cpi, YV12_BUFFER_CONFIG *dest, 529 int vp9_use_as_reference(VP9_COMP *cpi, int ref_frame_flags); 531 void vp9_update_reference(VP9_COMP *cpi, int ref_frame_flags); 533 int vp9_copy_reference_enc(VP9_COMP *cpi, VP9_REFFRAME ref_frame_flag, 536 int vp9_set_reference_enc(VP9_COMP *cpi, VP9_REFFRAME ref_frame_flag, 539 int vp9_update_entropy(VP9_COMP *cpi, int update); [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() 38 VP9_COMP *const cpi, in try_filter_frame() argument 40 VP9_COMMON *const cm = &cpi->common; in try_filter_frame() 45 if (cpi->num_workers > 1) in try_filter_frame() 46 vp9_loop_filter_frame_mt(cm->frame_to_show, cm, cpi->td.mb.e_mbd.plane, in try_filter_frame() 48 cpi->workers, cpi->num_workers, &cpi->lf_row_sync); in try_filter_frame() 50 vp9_loop_filter_frame(cm->frame_to_show, cm, &cpi->td.mb.e_mbd, filt_level, in try_filter_frame() 64 vpx_yv12_copy_y(&cpi->last_frame_uf, cm->frame_to_show); in try_filter_frame() [all …]
|
D | vp9_mbgraph.c | 26 static unsigned int do_16x16_motion_iteration(VP9_COMP *cpi, in do_16x16_motion_iteration() argument 31 MACROBLOCK *const x = &cpi->td.mb; in do_16x16_motion_iteration() 33 MV_SPEED_FEATURES *const mv_sf = &cpi->sf.mv; in do_16x16_motion_iteration() 35 const vp9_variance_fn_ptr_t v_fn_ptr = cpi->fn_ptr[BLOCK_16X16]; in do_16x16_motion_iteration() 54 vp9_full_pixel_search(cpi, x, BLOCK_16X16, &ref_full, step_param, in do_16x16_motion_iteration() 55 x->errorperbit, cond_cost_list(cpi, cost_list), ref_mv, in do_16x16_motion_iteration() 64 cpi->find_fractional_mv_step( in do_16x16_motion_iteration() 65 x, dst_mv, ref_mv, cpi->common.allow_high_precision_mv, x->errorperbit, in do_16x16_motion_iteration() 67 cond_cost_list(cpi, cost_list), in do_16x16_motion_iteration() 87 static int do_16x16_motion_search(VP9_COMP *cpi, const MV *ref_mv, in do_16x16_motion_search() argument [all …]
|
D | vp9_encodeframe.c | 50 static void encode_superblock(VP9_COMP *cpi, ThreadData * td, 105 unsigned int vp9_get_sby_perpixel_variance(VP9_COMP *cpi, in vp9_get_sby_perpixel_variance() argument 109 const unsigned int var = cpi->fn_ptr[bs].vf(ref->buf, ref->stride, in vp9_get_sby_perpixel_variance() 116 VP9_COMP *cpi, const struct buf_2d *ref, BLOCK_SIZE bs, int bd) { in vp9_high_get_sby_perpixel_variance() argument 120 var = cpi->fn_ptr[bs].vf(ref->buf, ref->stride, in vp9_high_get_sby_perpixel_variance() 125 var = cpi->fn_ptr[bs].vf(ref->buf, ref->stride, in vp9_high_get_sby_perpixel_variance() 131 var = cpi->fn_ptr[bs].vf(ref->buf, ref->stride, in vp9_high_get_sby_perpixel_variance() 140 static unsigned int get_sby_perpixel_diff_variance(VP9_COMP *cpi, in get_sby_perpixel_diff_variance() argument 146 const YV12_BUFFER_CONFIG *last = get_ref_frame_buffer(cpi, LAST_FRAME); in get_sby_perpixel_diff_variance() 151 var = cpi->fn_ptr[bs].vf(ref->buf, ref->stride, last_y, last->y_stride, &sse); in get_sby_perpixel_diff_variance() [all …]
|
D | vp9_aq_cyclicrefresh.c | 115 static int compute_deltaq(const VP9_COMP *cpi, int q, double rate_factor) { in compute_deltaq() argument 116 const CYCLIC_REFRESH *const cr = cpi->cyclic_refresh; in compute_deltaq() 117 const RATE_CONTROL *const rc = &cpi->rc; in compute_deltaq() 118 int deltaq = vp9_compute_qdelta_by_rate(rc, cpi->common.frame_type, in compute_deltaq() 120 cpi->common.bit_depth); in compute_deltaq() 131 int vp9_cyclic_refresh_estimate_bits_at_q(const VP9_COMP *cpi, in vp9_cyclic_refresh_estimate_bits_at_q() argument 133 const VP9_COMMON *const cm = &cpi->common; in vp9_cyclic_refresh_estimate_bits_at_q() 134 const CYCLIC_REFRESH *const cr = cpi->cyclic_refresh; in vp9_cyclic_refresh_estimate_bits_at_q() 162 int vp9_cyclic_refresh_rc_bits_per_mb(const VP9_COMP *cpi, int i, in vp9_cyclic_refresh_rc_bits_per_mb() argument 164 const VP9_COMMON *const cm = &cpi->common; in vp9_cyclic_refresh_rc_bits_per_mb() [all …]
|
D | vp9_ratectrl.h | 209 void vp9_rc_get_one_pass_vbr_params(struct VP9_COMP *cpi); 210 void vp9_rc_get_one_pass_cbr_params(struct VP9_COMP *cpi); 211 void vp9_rc_get_svc_params(struct VP9_COMP *cpi); 215 void vp9_rc_postencode_update(struct VP9_COMP *cpi, uint64_t bytes_used); 217 void vp9_rc_postencode_update_drop_frame(struct VP9_COMP *cpi); 221 void vp9_rc_update_rate_correction_factors(struct VP9_COMP *cpi); 225 int vp9_rc_drop_frame(struct VP9_COMP *cpi); 228 void vp9_rc_compute_frame_size_bounds(const struct VP9_COMP *cpi, 234 int vp9_rc_pick_q_and_bounds(const struct VP9_COMP *cpi, 239 int vp9_rc_regulate_q(const struct VP9_COMP *cpi, int target_bits_per_frame, [all …]
|
D | vp9_speed_features.c | 21 static int frame_is_boosted(const VP9_COMP *cpi) { in frame_is_boosted() argument 22 return frame_is_kf_gf_arf(cpi) || vp9_is_upper_layer_key_frame(cpi); in frame_is_boosted() 47 static void set_good_speed_feature_framesize_dependent(VP9_COMP *cpi, in set_good_speed_feature_framesize_dependent() argument 50 VP9_COMMON *const cm = &cpi->common; in set_good_speed_feature_framesize_dependent() 96 if ((speed >= 1) && (cpi->oxcf.pass == 2) && in set_good_speed_feature_framesize_dependent() 97 ((cpi->twopass.fr_content_type == FC_GRAPHICS_ANIMATION) || in set_good_speed_feature_framesize_dependent() 98 (vp9_internal_image_edge(cpi)))) { in set_good_speed_feature_framesize_dependent() 112 static void set_good_speed_feature(VP9_COMP *cpi, VP9_COMMON *cm, in set_good_speed_feature() argument 114 const int boosted = frame_is_boosted(cpi); in set_good_speed_feature() 122 sf->use_square_partition_only = !frame_is_boosted(cpi); in set_good_speed_feature() [all …]
|
D | vp9_svc_layercontext.h | 90 void vp9_init_layer_context(struct VP9_COMP *const cpi); 93 void vp9_update_layer_context_change_config(struct VP9_COMP *const cpi, 98 void vp9_update_temporal_layer_framerate(struct VP9_COMP *const cpi); 101 void vp9_update_spatial_layer_framerate(struct VP9_COMP *const cpi, 106 void vp9_restore_layer_context(struct VP9_COMP *const cpi); 109 void vp9_save_layer_context(struct VP9_COMP *const cpi); 112 void vp9_init_second_pass_spatial_svc(struct VP9_COMP *cpi); 115 void vp9_inc_frame_in_layer(struct VP9_COMP *const cpi); 118 int vp9_is_upper_layer_key_frame(const struct VP9_COMP *const cpi); 121 struct lookahead_entry *vp9_svc_lookahead_pop(struct VP9_COMP *const cpi, [all …]
|
/external/libvpx/libvpx/test/ |
D | set_roi.cc | 47 VP8_COMP cpi; in TEST() local 48 cpi.mb.e_mbd.mb_segement_abs_delta = SEGMENT_DELTADATA; in TEST() 49 cpi.cyclic_refresh_mode_enabled = 0; in TEST() 50 cpi.mb.e_mbd.segmentation_enabled = 0; in TEST() 51 cpi.mb.e_mbd.update_mb_segmentation_map = 0; in TEST() 52 cpi.mb.e_mbd.update_mb_segmentation_data = 0; in TEST() 53 cpi.common.mb_rows = 240 >> 4; in TEST() 54 cpi.common.mb_cols = 320 >> 4; in TEST() 55 const int mbs = (cpi.common.mb_rows * cpi.common.mb_cols); in TEST() 56 memset(cpi.segment_feature_data, 0, sizeof(cpi.segment_feature_data)); in TEST() [all …]
|