/external/libaom/libaom/av1/encoder/ |
D | pass2_strategy.c | 46 double calculate_modified_err(const AV1_COMP *cpi, const TWO_PASS *twopass, in calculate_modified_err() argument 49 const FIRSTPASS_STATS *const stats = &twopass->total_stats; in calculate_modified_err() 65 return fclamp(modified_error, twopass->modified_error_min, in calculate_modified_err() 66 twopass->modified_error_max); in calculate_modified_err() 304 TWO_PASS *const twopass = &cpi->twopass; in detect_transition_to_still() local 316 const FIRSTPASS_STATS *stats = &twopass->stats_in[j]; in detect_transition_to_still() 317 if (stats >= twopass->stats_in_end) break; in detect_transition_to_still() 332 static int detect_flash(const TWO_PASS *twopass, int offset) { in detect_flash() argument 333 const FIRSTPASS_STATS *const next_frame = read_frame_stats(twopass, offset); in detect_flash() 411 TWO_PASS *const twopass = &cpi->twopass; in calc_arf_boost() local [all …]
|
D | ratectrl.c | 375 get_rate_factor_level(&cpi->twopass.gf_group); in get_rate_correction_factor() 402 get_rate_factor_level(&cpi->twopass.gf_group); in set_rate_correction_factor() 808 const GF_GROUP *gf_group = &cpi->twopass.gf_group; in gf_group_pyramid_level() 997 get_rate_factor_level(&cpi->twopass.gf_group); in av1_frame_type_qdelta() 1011 const GF_GROUP *gf_group = &cpi->twopass.gf_group; in rc_pick_q_and_bounds_two_pass() 1015 int active_worst_quality = cpi->twopass.active_worst_quality; in rc_pick_q_and_bounds_two_pass() 1051 if (cpi->twopass.last_kfgroup_zeromotion_pct >= STATIC_MOTION_THRESH) { in rc_pick_q_and_bounds_two_pass() 1075 if (cpi->twopass.kf_zeromotion_pct >= STATIC_KF_GROUP_THRESH) { in rc_pick_q_and_bounds_two_pass() 1085 q_adj_factor += 0.05 - (0.001 * (double)cpi->twopass.kf_zeromotion_pct); in rc_pick_q_and_bounds_two_pass() 1188 (cpi->twopass.extend_minq + cpi->twopass.extend_minq_fast); in rc_pick_q_and_bounds_two_pass() [all …]
|
D | partition_strategy.h | 148 cpi->twopass.gf_group.update_type[cpi->twopass.gf_group.index] != in use_auto_max_partition() 150 cpi->twopass.gf_group.update_type[cpi->twopass.gf_group.index] != in use_auto_max_partition()
|
D | encode_strategy.c | 181 ++cpi->twopass.gf_group.index; in update_twopass_gf_group_index() 193 const GF_GROUP *const gf_group = &cpi->twopass.gf_group; in check_show_existing_frame() 318 const GF_GROUP *const gf_group = &cpi->twopass.gf_group; in get_current_frame_ref_type() 465 const GF_GROUP *const gf_group = &cpi->twopass.gf_group; in get_arf_src_index() 481 const GF_GROUP *const gf_group = &cpi->twopass.gf_group; in get_internal_arf_src_index() 514 const GF_GROUP *const gf_group = &cpi->twopass.gf_group; in setup_arf_or_arf2() 983 cpi->twopass.gf_group.update_type[cpi->twopass.gf_group.index]; in av1_encode_strategy() 987 if (flush && oxcf->pass == 1 && !cpi->twopass.first_pass_done) { in av1_encode_strategy() 989 cpi->twopass.first_pass_done = 1; in av1_encode_strategy() 1039 cpi->twopass.gf_group.update_type[cpi->twopass.gf_group.index]; in av1_encode_strategy() [all …]
|
D | firstpass.c | 140 av1_twopass_zero_stats(&cpi->twopass.total_stats); in av1_init_first_pass() 144 output_stats(&cpi->twopass.total_stats, cpi->output_pkt_list); in av1_end_first_pass() 355 TWO_PASS *twopass = &cpi->twopass; in av1_first_pass() local 806 twopass->this_frame_stats = fps; in av1_first_pass() 807 output_stats(&twopass->this_frame_stats, cpi->output_pkt_list); in av1_first_pass() 808 accumulate_stats(&twopass->total_stats, &fps); in av1_first_pass() 813 if ((twopass->sr_update_lag > 3) || in av1_first_pass() 815 (twopass->this_frame_stats.pcnt_inter > 0.20) && in av1_first_pass() 816 ((twopass->this_frame_stats.intra_error / in av1_first_pass() 817 DOUBLE_DIVIDE_CHECK(twopass->this_frame_stats.coded_error)) > 2.0))) { in av1_first_pass() [all …]
|
D | gop_structure.c | 171 TWO_PASS *const twopass = &cpi->twopass; in av1_gop_setup_structure() local 172 GF_GROUP *const gf_group = &twopass->gf_group; in av1_gop_setup_structure()
|
D | picklpf.c | 42 return cpi->twopass.section_intra_rating > 8 ? MAX_LOOP_FILTER * 3 / 4 in av1_get_max_filter_level() 145 if ((cpi->oxcf.pass == 2) && (cpi->twopass.section_intra_rating < 20)) in search_filter_level() 146 bias = (bias * cpi->twopass.section_intra_rating) / 20; in search_filter_level()
|
D | aq_variance.c | 53 int avg_energy = (int)(cpi->twopass.mb_av_energy - 2); in av1_vaq_frame_setup() 177 energy_midpoint = (cpi->oxcf.pass == 2) ? cpi->twopass.frame_avg_haar_energy in av1_block_wavelet_energy_level()
|
D | aq_complexity.c | 148 ? AOMMAX(exp(cpi->twopass.mb_av_energy), MIN_DEFAULT_LV_THRESH) in av1_caq_select_segment()
|
D | speed_features.c | 816 if (cpi->twopass.fr_content_type == FC_GRAPHICS_ANIMATION) in av1_set_speed_features_framesize_independent() 831 (cpi->twopass.fr_content_type == FC_GRAPHICS_ANIMATION || in av1_set_speed_features_framesize_independent()
|
D | encodeframe.c | 2130 const TWO_PASS *const twopass = &cpi->twopass; in active_h_edge() local 2134 top_edge += (int)(twopass->this_frame_stats.inactive_zone_rows * 2); in active_h_edge() 2136 bottom_edge -= (int)(twopass->this_frame_stats.inactive_zone_rows * 2); in active_h_edge() 2157 const TWO_PASS *const twopass = &cpi->twopass; in active_v_edge() local 2161 left_edge += (int)(twopass->this_frame_stats.inactive_zone_cols * 2); in active_v_edge() 2163 right_edge -= (int)(twopass->this_frame_stats.inactive_zone_cols * 2); in active_v_edge() 4294 TplDepFrame *tpl_frame = &cpi->tpl_stats[cpi->twopass.gf_group.index]; in get_rdmult_delta() 4310 if (cpi->twopass.gf_group.index >= MAX_LAG_BUFFERS) return orig_rdmult; in get_rdmult_delta() 4806 if (cpi->twopass.gf_group.index > 0 && cpi->oxcf.enable_tpl_model && in encode_sb_row() 5434 if (cpi->twopass.gf_group.index && in encode_frame_internal() [all …]
|
/external/libvpx/libvpx/vp8/encoder/ |
D | firstpass.c | 81 cpi->twopass.stats_in = Position; in reset_fpf_position() 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() 94 FIRSTPASS_STATS *fps_ptr = cpi->twopass.stats_in; in read_frame_stats() 98 if (&fps_ptr[offset] >= cpi->twopass.stats_in_end) return EOF; in read_frame_stats() 100 if (&fps_ptr[offset] < cpi->twopass.stats_in_start) return EOF; in read_frame_stats() 108 if (cpi->twopass.stats_in >= cpi->twopass.stats_in_end) return EOF; in input_stats() 110 *fps = *cpi->twopass.stats_in; in input_stats() 111 cpi->twopass.stats_in = in input_stats() 112 (void *)((char *)cpi->twopass.stats_in + sizeof(FIRSTPASS_STATS)); in input_stats() [all …]
|
D | picklpf.c | 124 if (cpi->twopass.section_intra_rating > 8) { in get_max_filter_level() 321 if (cpi->twopass.section_intra_rating < 20) { in vp8cx_pick_filter_level() 322 Bias = Bias * cpi->twopass.section_intra_rating / 20; in vp8cx_pick_filter_level()
|
D | onyx_if.c | 1287 cpi->twopass.static_scene_max_gf_interval = cpi->key_frame_frequency >> 1; in vp8_new_framerate() 1295 if (cpi->twopass.static_scene_max_gf_interval > in vp8_new_framerate() 1297 cpi->twopass.static_scene_max_gf_interval = cpi->oxcf.lag_in_frames - 1; in vp8_new_framerate() 1301 if (cpi->max_gf_interval > cpi->twopass.static_scene_max_gf_interval) { in vp8_new_framerate() 1302 cpi->max_gf_interval = cpi->twopass.static_scene_max_gf_interval; in vp8_new_framerate() 1802 cpi->twopass.gf_decay_rate = 0; in vp8_create_compressor() 1946 cpi->twopass.est_max_qcorrection_factor = 1.0; in vp8_create_compressor() 1977 cpi->twopass.stats_in_start = oxcf->two_pass_stats_in.buf; in vp8_create_compressor() 1978 cpi->twopass.stats_in = cpi->twopass.stats_in_start; in vp8_create_compressor() 1979 cpi->twopass.stats_in_end = in vp8_create_compressor() [all …]
|
D | onyx_int.h | 598 } twopass; member
|
/external/libvpx/libvpx/vp9/encoder/ |
D | vp9_firstpass.c | 236 static double get_distribution_av_err(VP9_COMP *cpi, TWO_PASS *const twopass) { in get_distribution_av_err() argument 238 twopass->total_stats.weight / twopass->total_stats.count; in get_distribution_av_err() 241 return av_weight * twopass->mean_mod_score; in get_distribution_av_err() 243 return (twopass->total_stats.coded_error * av_weight) / in get_distribution_av_err() 244 twopass->total_stats.count; in get_distribution_av_err() 271 const TWO_PASS *twopass, in calculate_norm_frame_score() argument 292 modified_score /= DOUBLE_DIVIDE_CHECK(twopass->mean_mod_score); in calculate_norm_frame_score() 312 zero_stats(&cpi->twopass.total_stats); in vp9_init_first_pass() 316 output_stats(&cpi->twopass.total_stats, cpi->output_pkt_list); in vp9_end_first_pass() 317 vpx_free(cpi->twopass.fp_mb_float_stats); in vp9_end_first_pass() [all …]
|
D | vp9_ratectrl.c | 680 cpi->twopass.gf_group.rf_level[cpi->twopass.gf_group.index]; in get_rate_correction_factor() 707 cpi->twopass.gf_group.rf_level[cpi->twopass.gf_group.index]; in set_rate_correction_factor() 725 cpi->twopass.gf_group.rf_level[cpi->twopass.gf_group.index]; in vp9_rc_update_rate_correction_factors() 874 const GF_GROUP *const gf_group = &cpi->twopass.gf_group; in get_gf_active_quality() 1098 static int get_active_cq_level_two_pass(const TWO_PASS *twopass, in get_active_cq_level_two_pass() argument 1104 if (twopass->mb_smooth_pct > SMOOTH_PCT_MIN) { in get_active_cq_level_two_pass() 1106 (int)((twopass->mb_smooth_pct - SMOOTH_PCT_MIN) / SMOOTH_PCT_DIV); in get_active_cq_level_two_pass() 1304 int active_worst_quality = cpi->twopass.active_worst_quality; in pick_kf_q_bound_two_pass() 1314 if (cpi->twopass.last_kfgroup_zeromotion_pct >= STATIC_MOTION_THRESH) { in pick_kf_q_bound_two_pass() 1336 if (cpi->twopass.kf_zeromotion_pct >= STATIC_KF_GROUP_THRESH) { in pick_kf_q_bound_two_pass() [all …]
|
D | vp9_picklpf.c | 29 return cpi->twopass.section_intra_rating > 8 ? MAX_LOOP_FILTER * 3 / 4 in get_max_filter_level() 102 if ((cpi->oxcf.pass == 2) && (cpi->twopass.section_intra_rating < 20)) in search_filter_level() 103 bias = (bias * cpi->twopass.section_intra_rating) / 20; in search_filter_level()
|
D | vp9_speed_features.c | 180 ((cpi->twopass.fr_content_type == FC_GRAPHICS_ANIMATION) || in set_good_speed_feature_framesize_dependent() 225 if (cpi->twopass.fr_content_type == FC_GRAPHICS_ANIMATION) { in set_good_speed_feature_framesize_independent() 246 TWO_PASS *const twopass = &cpi->twopass; in set_good_speed_feature_framesize_independent() local 247 if ((twopass->fr_content_type == FC_GRAPHICS_ANIMATION) || in set_good_speed_feature_framesize_independent() 280 (cpi->twopass.fr_content_type == FC_GRAPHICS_ANIMATION) ? (1 << 23) in set_good_speed_feature_framesize_independent() 315 if (cpi->twopass.fr_content_type == FC_GRAPHICS_ANIMATION) { in set_good_speed_feature_framesize_independent() 346 if (cpi->twopass.fr_content_type == FC_GRAPHICS_ANIMATION) { in set_good_speed_feature_framesize_independent() 955 (cpi->twopass.fr_content_type == FC_GRAPHICS_ANIMATION) ? (1 << 20) in vp9_set_speed_features_framesize_independent() 957 if (cpi->twopass.fr_content_type == FC_GRAPHICS_ANIMATION) { in vp9_set_speed_features_framesize_independent()
|
D | vp9_encoder.c | 804 GF_GROUP *const gf_group = &cpi->twopass.gf_group; in setup_frame() 2197 CHECK_MEM_ERROR(cm, cpi->twopass.frame_mb_stats_buf, in vp9_create_compressor() 2200 cpi->twopass.frame_mb_stats_buf = NULL; in vp9_create_compressor() 2323 lc->twopass.stats_in_start = lc->rc_twopass_stats_in.buf; in vp9_create_compressor() 2324 lc->twopass.stats_in = lc->twopass.stats_in_start; in vp9_create_compressor() 2325 lc->twopass.stats_in_end = in vp9_create_compressor() 2326 lc->twopass.stats_in_start + packets_in_layer - 1; in vp9_create_compressor() 2347 cpi->twopass.firstpass_mb_stats.mb_stats_start = in vp9_create_compressor() 2349 cpi->twopass.firstpass_mb_stats.mb_stats_end = in vp9_create_compressor() 2350 cpi->twopass.firstpass_mb_stats.mb_stats_start + in vp9_create_compressor() [all …]
|
D | vp9_svc_layercontext.c | 336 cpi->twopass = lc->twopass; in vp9_restore_layer_context() 372 lc->twopass = cpi->twopass; in vp9_save_layer_context() 403 TWO_PASS *const twopass = &svc->layer_context[i].twopass; in vp9_init_second_pass_spatial_svc() local 408 twopass->total_stats.spatial_layer_id = i; in vp9_init_second_pass_spatial_svc() 409 twopass->total_left_stats.spatial_layer_id = i; in vp9_init_second_pass_spatial_svc()
|
D | vp9_aq_complexity.c | 135 low_var_thresh = (cpi->oxcf.pass == 2) ? VPXMAX(cpi->twopass.mb_av_energy, in vp9_caq_select_segment()
|
D | vp9_svc_layercontext.h | 50 TWO_PASS twopass; member
|
D | vp9_aq_variance.c | 236 (cpi->oxcf.pass == 2) ? cpi->twopass.mb_av_energy : DEFAULT_E_MIDPOINT; in vp9_block_energy()
|
/external/libvpx/libvpx/vp9/ |
D | vp9_cx_iface.c | 1089 TWO_PASS *const twopass = &cpi->twopass; in encoder_encode() local 1090 FIRSTPASS_STATS *stats = &twopass->total_stats; in encoder_encode() 1091 twopass->bits_left = in encoder_encode()
|