Home
last modified time | relevance | path

Searched refs:twopass (Results 1 – 22 of 22) sorted by relevance

/external/libvpx/libvpx/vp8/encoder/
Dfirstpass.c81 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 …]
Dpicklpf.c123 if (cpi->twopass.section_intra_rating > 8) { in get_max_filter_level()
320 if (cpi->twopass.section_intra_rating < 20) { in vp8cx_pick_filter_level()
321 Bias = Bias * cpi->twopass.section_intra_rating / 20; in vp8cx_pick_filter_level()
Donyx_if.c1266 cpi->twopass.static_scene_max_gf_interval = cpi->key_frame_frequency >> 1; in vp8_new_framerate()
1274 if (cpi->twopass.static_scene_max_gf_interval > in vp8_new_framerate()
1276 cpi->twopass.static_scene_max_gf_interval = cpi->oxcf.lag_in_frames - 1; in vp8_new_framerate()
1280 if (cpi->max_gf_interval > cpi->twopass.static_scene_max_gf_interval) { in vp8_new_framerate()
1281 cpi->max_gf_interval = cpi->twopass.static_scene_max_gf_interval; in vp8_new_framerate()
1782 cpi->twopass.gf_decay_rate = 0; in vp8_create_compressor()
1924 cpi->twopass.est_max_qcorrection_factor = 1.0; in vp8_create_compressor()
1952 cpi->twopass.stats_in_start = oxcf->two_pass_stats_in.buf; in vp8_create_compressor()
1953 cpi->twopass.stats_in = cpi->twopass.stats_in_start; in vp8_create_compressor()
1954 cpi->twopass.stats_in_end = in vp8_create_compressor()
[all …]
Donyx_int.h593 } twopass; member
Dratectrl.c570 cpi->per_frame_bandwidth = cpi->twopass.gf_bits; in calc_pframe_target_size()
Drdopt.c188 if (cpi->twopass.next_iiratio > 31) { in vp8_initialize_rd_consts()
192 (cpi->RDMULT * rd_iifactor[cpi->twopass.next_iiratio]) >> 4; in vp8_initialize_rd_consts()
/external/libvpx/libvpx/vp9/encoder/
Dvp9_firstpass.c242 const TWO_PASS *twopass, in calculate_mod_frame_score() argument
245 const FIRSTPASS_STATS *const stats = &twopass->total_stats; in calculate_mod_frame_score()
264 const TWO_PASS *twopass, in calculate_norm_frame_score() argument
267 const FIRSTPASS_STATS *const stats = &twopass->total_stats; in calculate_norm_frame_score()
287 modified_score /= DOUBLE_DIVIDE_CHECK(twopass->mean_mod_score); in calculate_norm_frame_score()
307 zero_stats(&cpi->twopass.total_stats); in vp9_init_first_pass()
314 output_stats(&cpi->svc.layer_context[i].twopass.total_stats, in vp9_end_first_pass()
318 output_stats(&cpi->twopass.total_stats, cpi->output_pkt_list); in vp9_end_first_pass()
321 vpx_free(cpi->twopass.fp_mb_float_stats); in vp9_end_first_pass()
322 cpi->twopass.fp_mb_float_stats = NULL; in vp9_end_first_pass()
[all …]
Dvp9_speed_features.c133 ((cpi->twopass.fr_content_type == FC_GRAPHICS_ANIMATION) || in set_good_speed_feature_framesize_dependent()
171 if (cpi->twopass.fr_content_type == FC_GRAPHICS_ANIMATION) { in set_good_speed_feature_framesize_independent()
186 TWO_PASS *const twopass = &cpi->twopass; in set_good_speed_feature_framesize_independent() local
187 if ((twopass->fr_content_type == FC_GRAPHICS_ANIMATION) || in set_good_speed_feature_framesize_independent()
223 (cpi->twopass.fr_content_type == FC_GRAPHICS_ANIMATION) ? (1 << 23) in set_good_speed_feature_framesize_independent()
247 if (cpi->twopass.fr_content_type == FC_GRAPHICS_ANIMATION) { in set_good_speed_feature_framesize_independent()
275 if (cpi->twopass.fr_content_type == FC_GRAPHICS_ANIMATION) { in set_good_speed_feature_framesize_independent()
756 (cpi->twopass.fr_content_type == FC_GRAPHICS_ANIMATION) ? (1 << 20) in vp9_set_speed_features_framesize_independent()
758 if (cpi->twopass.fr_content_type == FC_GRAPHICS_ANIMATION) { in vp9_set_speed_features_framesize_independent()
Dvp9_picklpf.c29 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()
Dvp9_ratectrl.c436 cpi->twopass.gf_group.rf_level[cpi->twopass.gf_group.index]; in get_rate_correction_factor()
462 cpi->twopass.gf_group.rf_level[cpi->twopass.gf_group.index]; in set_rate_correction_factor()
860 static int get_active_cq_level_two_pass(const TWO_PASS *twopass, in get_active_cq_level_two_pass() argument
866 if (twopass->mb_smooth_pct > SMOOTH_PCT_MIN) { in get_active_cq_level_two_pass()
868 (int)((twopass->mb_smooth_pct - SMOOTH_PCT_MIN) / SMOOTH_PCT_DIV); in get_active_cq_level_two_pass()
1067 const GF_GROUP *gf_group = &cpi->twopass.gf_group; in rc_pick_q_and_bounds_two_pass()
1068 const int cq_level = get_active_cq_level_two_pass(&cpi->twopass, rc, oxcf); in rc_pick_q_and_bounds_two_pass()
1070 int active_worst_quality = cpi->twopass.active_worst_quality; in rc_pick_q_and_bounds_two_pass()
1084 if (cpi->twopass.last_kfgroup_zeromotion_pct >= STATIC_MOTION_THRESH) { in rc_pick_q_and_bounds_two_pass()
1113 q_adj_factor += 0.05 - (0.001 * (double)cpi->twopass.kf_zeromotion_pct); in rc_pick_q_and_bounds_two_pass()
[all …]
Dvp9_encoder.c2083 CHECK_MEM_ERROR(cm, cpi->twopass.frame_mb_stats_buf, in vp9_create_compressor()
2086 cpi->twopass.frame_mb_stats_buf = NULL; in vp9_create_compressor()
2203 lc->twopass.stats_in_start = lc->rc_twopass_stats_in.buf; in vp9_create_compressor()
2204 lc->twopass.stats_in = lc->twopass.stats_in_start; in vp9_create_compressor()
2205 lc->twopass.stats_in_end = in vp9_create_compressor()
2206 lc->twopass.stats_in_start + packets_in_layer - 1; in vp9_create_compressor()
2227 cpi->twopass.firstpass_mb_stats.mb_stats_start = in vp9_create_compressor()
2229 cpi->twopass.firstpass_mb_stats.mb_stats_end = in vp9_create_compressor()
2230 cpi->twopass.firstpass_mb_stats.mb_stats_start + in vp9_create_compressor()
2235 cpi->twopass.stats_in_start = oxcf->two_pass_stats_in.buf; in vp9_create_compressor()
[all …]
Dvp9_svc_layercontext.c293 cpi->twopass = lc->twopass; in vp9_restore_layer_context()
332 lc->twopass = cpi->twopass; in vp9_save_layer_context()
359 TWO_PASS *const twopass = &svc->layer_context[i].twopass; in vp9_init_second_pass_spatial_svc() local
364 twopass->total_stats.spatial_layer_id = i; in vp9_init_second_pass_spatial_svc()
365 twopass->total_left_stats.spatial_layer_id = i; in vp9_init_second_pass_spatial_svc()
Dvp9_svc_layercontext.h32 TWO_PASS twopass; member
Dvp9_aq_complexity.c135 low_var_thresh = (cpi->oxcf.pass == 2) ? VPXMAX(cpi->twopass.mb_av_energy, in vp9_caq_select_segment()
Dvp9_aq_variance.c201 (cpi->oxcf.pass == 2) ? cpi->twopass.mb_av_energy : DEFAULT_E_MIDPOINT; in vp9_block_energy()
Dvp9_temporal_filter.c633 base_strength = oxcf->arnr_strength + cpi->twopass.arnr_strength_adjustment; in adjust_arnr_filter()
679 const GF_GROUP *const gf_group = &cpi->twopass.gf_group; in adjust_arnr_filter()
Dvp9_rdopt.c2934 ((cpi->twopass.this_frame_stats.inactive_zone_rows > 0) || in vp9_internal_image_edge()
2935 (cpi->twopass.this_frame_stats.inactive_zone_cols > 0)); in vp9_internal_image_edge()
2948 TWO_PASS *twopass = &cpi->twopass; in vp9_active_h_edge() local
2952 top_edge += (int)(twopass->this_frame_stats.inactive_zone_rows * 2); in vp9_active_h_edge()
2954 bottom_edge -= (int)(twopass->this_frame_stats.inactive_zone_rows * 2); in vp9_active_h_edge()
2975 TWO_PASS *twopass = &cpi->twopass; in vp9_active_v_edge() local
2979 left_edge += (int)(twopass->this_frame_stats.inactive_zone_cols * 2); in vp9_active_v_edge()
2981 right_edge -= (int)(twopass->this_frame_stats.inactive_zone_cols * 2); in vp9_active_v_edge()
Dvp9_encoder.h563 TWO_PASS twopass; member
Dvp9_rd.c171 const GF_GROUP *const gf_group = &cpi->twopass.gf_group; in vp9_compute_rd_mult()
Dvp9_encodeframe.c3010 get_motion_direction_fp(cpi->twopass.this_frame_mb_stats[mb_index]); in rd_pick_partition()
3015 cpi->twopass.this_frame_mb_stats[mb_index + 1]); in rd_pick_partition()
3022 cpi->twopass.this_frame_mb_stats[mb_index + cm->mb_cols]); in rd_pick_partition()
3098 if (!(cpi->twopass.this_frame_mb_stats[mb_index] & in rd_pick_partition()
3100 !(cpi->twopass.this_frame_mb_stats[mb_index] & in rd_pick_partition()
4545 input_fpmb_stats(&cpi->twopass.firstpass_mb_stats, cm, in encode_frame_internal()
4546 &cpi->twopass.this_frame_mb_stats); in encode_frame_internal()
Dvp9_bitstream.c913 const GF_GROUP *const gf_group = &cpi->twopass.gf_group; in vp9_get_refresh_mask()
/external/libvpx/libvpx/vp9/
Dvp9_cx_iface.c1082 TWO_PASS *const twopass = &cpi->twopass; in encoder_encode() local
1083 FIRSTPASS_STATS *stats = &twopass->total_stats; in encoder_encode()
1087 twopass->bits_left = in encoder_encode()
1092 twopass->bits_left = in encoder_encode()