Home
last modified time | relevance | path

Searched refs:VPXMIN (Results 1 – 25 of 37) sorted by relevance

12

/external/libvpx/libvpx/vp9/encoder/
Dvp9_skin_detection.c56 const int mi_row_limit = VPXMIN(mi_row + 8, cm->mi_rows - 2); in vp9_compute_skin_sb()
57 const int mi_col_limit = VPXMIN(mi_col + 8, cm->mi_cols - 2); in vp9_compute_skin_sb()
75 consec_zeromv = VPXMIN(cpi->consec_zero_mv[bl_index], in vp9_compute_skin_sb()
76 VPXMIN(cpi->consec_zero_mv[bl_index1], in vp9_compute_skin_sb()
77 VPXMIN(cpi->consec_zero_mv[bl_index2], in vp9_compute_skin_sb()
Dvp9_ratectrl.c111 const double minqtarget = VPXMIN(((x3 * maxq + x2) * maxq + x1) * maxq, maxq); in get_minq_index()
233 target = VPXMIN(target, max_rate); in vp9_rc_clamp_pframe_target_size()
244 target = VPXMIN(target, max_rate); in vp9_rc_clamp_iframe_target_size()
266 VPXMIN(lrc->bits_off_target, lrc->maximum_buffer_size); in update_layer_buffer_level()
284 rc->bits_off_target = VPXMIN(rc->bits_off_target, rc->maximum_buffer_size); in update_buffer_level()
319 int interval = VPXMIN(MAX_GF_INTERVAL, (int)(framerate * 0.75)); in vp9_rc_get_default_max_gf_interval()
509 0.25 + 0.5 * VPXMIN(1, fabs(log10(0.01 * correction_factor))); in vp9_rc_update_rate_correction_factors()
595 q = clamp(q, VPXMIN(cpi->rc.q_1_frame, cpi->rc.q_2_frame), in vp9_rc_regulate_q()
658 return VPXMIN(active_worst_quality, rc->worst_quality); in calc_active_worst_quality_one_pass_vbr()
685 ? VPXMIN(rc->avg_frame_qindex[INTER_FRAME], in calc_active_worst_quality_one_pass_cbr()
[all …]
Dvp9_aq_cyclicrefresh.c156 const int xmis = VPXMIN(cm->mi_cols - mi_col, bw); in vp9_cyclic_refresh_update_segment()
157 const int ymis = VPXMIN(cm->mi_rows - mi_row, bh); in vp9_cyclic_refresh_update_segment()
219 const int xmis = VPXMIN(cm->mi_cols - mi_col, bw); in vp9_cyclic_refresh_update_sb_postencode()
220 const int ymis = VPXMIN(cm->mi_rows - mi_row, bh); in vp9_cyclic_refresh_update_sb_postencode()
236 cr->last_coded_q_map[map_offset] = VPXMIN( in vp9_cyclic_refresh_update_sb_postencode()
313 rc->baseline_gf_interval = VPXMIN(4 * (100 / cr->percent_refresh), 40); in vp9_cyclic_refresh_set_golden_update()
376 VPXMIN(cm->mi_cols - mi_col, num_8x8_blocks_wide_lookup[BLOCK_64X64]); in cyclic_refresh_update_map()
378 VPXMIN(cm->mi_rows - mi_row, num_8x8_blocks_high_lookup[BLOCK_64X64]); in cyclic_refresh_update_map()
565 VPXMIN(CR_MAX_RATE_TARGET_RATIO, in vp9_cyclic_refresh_setup()
Dvp9_speed_features.c71 if (VPXMIN(cm->width, cm->height) >= 480) { in set_good_speed_feature_framesize_dependent()
78 if (VPXMIN(cm->width, cm->height) >= 720) { in set_good_speed_feature_framesize_dependent()
89 if (VPXMIN(cm->width, cm->height) >= 720) { in set_good_speed_feature_framesize_dependent()
103 if (VPXMIN(cm->width, cm->height) >= 2160) { in set_good_speed_feature_framesize_dependent()
115 if (VPXMIN(cm->width, cm->height) >= 720) { in set_good_speed_feature_framesize_dependent()
140 if (VPXMIN(cm->width, cm->height) >= 720) { in set_good_speed_feature_framesize_dependent()
326 if (VPXMIN(cm->width, cm->height) >= 720) { in set_rt_speed_feature_framesize_dependent()
335 if (VPXMIN(cm->width, cm->height) >= 720) { in set_rt_speed_feature_framesize_dependent()
345 if (VPXMIN(cm->width, cm->height) >= 720) { in set_rt_speed_feature_framesize_dependent()
354 (VPXMIN(cm->width, cm->height) >= 720) ? 800 : 300; in set_rt_speed_feature_framesize_dependent()
Dvp9_firstpass.c397 const int dim = VPXMIN(cpi->initial_width, cpi->initial_height); in get_search_range()
820 VPXMIN(this_tile->fp_data.image_data_start_row, in accumulate_fp_mb_row_stat()
824 : VPXMIN(this_tile->fp_data.image_data_start_row, in accumulate_fp_mb_row_stat()
1611 last_group_rate_err = VPXMAX(0.25, VPXMIN(4.0, last_group_rate_err)); in get_twopass_worst_quality()
1613 twopass->bpm_factor = VPXMAX(0.25, VPXMIN(4.0, twopass->bpm_factor)); in get_twopass_worst_quality()
1637 last_group_rate_err = VPXMAX(0.25, VPXMIN(4.0, last_group_rate_err)); in get_twopass_worst_quality()
1639 twopass->bpm_factor = VPXMAX(0.25, VPXMIN(4.0, twopass->bpm_factor)); in get_twopass_worst_quality()
1845 sr_diff = VPXMIN(sr_diff, SR_DIFF_MAX); in get_sr_decay_rate()
1858 return VPXMIN(sr_decay, zero_motion_pct); in get_zero_motion_factor()
1957 const double boost_q_correction = VPXMIN((0.5 + (lq * 0.015)), 1.5); in calc_frame_boost()
[all …]
Dvp9_aq_complexity.c117 const int xmis = VPXMIN(cm->mi_cols - mi_col, num_8x8_blocks_wide_lookup[bs]); in vp9_caq_select_segment()
118 const int ymis = VPXMIN(cm->mi_rows - mi_row, num_8x8_blocks_high_lookup[bs]); in vp9_caq_select_segment()
Dvp9_noise_estimate.c203 VPXMIN(cpi->consec_zero_mv[bl_index], in vp9_update_noise_estimate()
204 VPXMIN(cpi->consec_zero_mv[bl_index1], in vp9_update_noise_estimate()
205 VPXMIN(cpi->consec_zero_mv[bl_index2], in vp9_update_noise_estimate()
Dvp9_rd.c173 const int boost_index = VPXMIN(15, (cpi->rc.gfu_boost / 100)); in vp9_compute_rd_mult()
415 const int xsq_q10 = (int)VPXMIN(xsq_q10_64, MAX_XSQ_Q10); in vp9_model_rd_from_var_lapndz()
434 xsq_q10[i] = (int)VPXMIN(xsq_q10_64, MAX_XSQ_Q10); in vp9_model_rd_from_var_lapndz_vec()
659 const BLOCK_SIZE max_size = VPXMIN(bsize + 2, BLOCK_64X64); in vp9_update_rd_thresh_fact()
666 *fact = VPXMIN(*fact + RD_THRESH_INC, rd_thresh * RD_THRESH_MAX_FACT); in vp9_update_rd_thresh_fact()
Dvp9_denoiser.c119 avg[c] = VPXMIN(UINT8_MAX, sig[c] + adj); in vp9_denoiser_filter_c()
166 avg[c] = VPXMIN(UINT8_MAX, avg[c] + adj); in vp9_denoiser_filter_c()
369 const int xmis = VPXMIN(cm->mi_cols - mi_col, bw); in vp9_denoiser_denoise()
370 const int ymis = VPXMIN(cm->mi_rows - mi_row, bh); in vp9_denoiser_denoise()
376 consec_zeromv = VPXMIN(cpi->consec_zero_mv[bl_index], consec_zeromv); in vp9_denoiser_denoise()
Dvp9_rdopt.c194 const int64_t low_dc_thr = VPXMIN(50, dc_thr >> 2); in model_rd_for_sb()
195 const int64_t low_ac_thr = VPXMIN(80, ac_thr >> 2); in model_rd_for_sb()
484 int max_r = VPXMIN(b4x4s_to_bottom_edge, tx_4x4_h); in pixel_sse()
485 int max_c = VPXMIN(b4x4s_to_right_edge, tx_4x4_w); in pixel_sse()
522 int max_r = VPXMIN(b4x4s_to_bottom_edge, tx_4x4_h); in sum_squares_visible()
523 int max_c = VPXMIN(b4x4s_to_right_edge, tx_4x4_w); in sum_squares_visible()
761 rd = VPXMIN(rd1, rd2); in block_rd_txfm()
825 mi->tx_size = VPXMIN(max_tx_size, largest_tx_size); in choose_largest_tx_size()
862 VPXMIN(max_tx_size, tx_mode_to_biggest_tx_size[cm->tx_mode]); in choose_tx_size_from_rd()
897 rd[n][0] = VPXMIN(rd[n][0], RDCOST(x->rdmult, x->rddiv, s1, sse[n])); in choose_tx_size_from_rd()
[all …]
Dvp9_pickmode.c178 x->mv_limits.col_max = VPXMIN(x->mv_limits.col_max, 10); in combined_motion_search()
179 x->mv_limits.row_max = VPXMIN(x->mv_limits.row_max, 10); in combined_motion_search()
391 tx_size = VPXMIN(max_txsize_lookup[bsize], in model_rd_for_sb_y_large()
402 tx_size = VPXMIN(max_txsize_lookup[bsize], in model_rd_for_sb_y_large()
569 VPXMIN(max_txsize_lookup[bsize], in model_rd_for_sb_y()
581 VPXMIN(max_txsize_lookup[bsize], in model_rd_for_sb_y()
890 VPXMIN(((unsigned int)x->encode_breakout << 4), max_thresh); in encode_breakout_test()
1007 VPXMIN(tx_size, TX_16X16), 0); in estimate_block_intra()
1064 *freq_fact = VPXMIN(*freq_fact + RD_THRESH_INC, 32); in update_thresh_freq_fact_row_mt()
1066 *freq_fact = VPXMIN(*freq_fact + RD_THRESH_INC, in update_thresh_freq_fact_row_mt()
[all …]
Dvp9_ethread.c92 allocated_workers = VPXMIN(cpi->oxcf.max_threads, max_tile_cols); in create_enc_workers()
175 const int num_workers = VPXMIN(cpi->oxcf.max_threads, tile_cols); in vp9_encode_tiles_mt()
256 VPXMIN(tile_data->fp_data.image_data_start_row, in accumulate_fp_tile_stat()
260 : VPXMIN(tile_data->fp_data.image_data_start_row, in accumulate_fp_tile_stat()
Dvp9_encodeframe.c283 VPXMIN(num_8x8_blocks_wide_lookup[bsize], cm->mi_cols - mi_col); in duplicate_mode_info_in_sb()
285 VPXMIN(num_8x8_blocks_high_lookup[bsize], cm->mi_rows - mi_row); in duplicate_mode_info_in_sb()
759 const int xmis = VPXMIN(cm->mi_cols - mi_col, bw); in skin_sb_split()
760 const int ymis = VPXMIN(cm->mi_rows - mi_row, bh); in skin_sb_split()
1565 min_var_32x32 = VPXMIN(var_32x32, min_var_32x32); in choose_partitioning()
1685 const int x_mis = VPXMIN(bw, cm->mi_cols - mi_col); in update_state()
1686 const int y_mis = VPXMIN(bh, cm->mi_rows - mi_row); in update_state()
1825 VPXMIN(max_txsize_lookup[bsize], tx_mode_to_biggest_tx_size[tx_mode]); in set_mode_info_seg_skip()
2199 return VPXMIN(bsize, BLOCK_8X8); in find_partition_size()
2390 const int x_mis = VPXMIN(bw, cm->mi_cols - mi_col); in update_state_rt()
[all …]
Dvp9_encoder.c1806 rc->bits_off_target = VPXMIN(rc->bits_off_target, rc->maximum_buffer_size); in vp9_change_config()
1807 rc->buffer_level = VPXMIN(rc->buffer_level, rc->maximum_buffer_size); in vp9_change_config()
3271 const unsigned int max_mv_def = VPXMIN(cm->width, cm->height);
3287 VPXMIN(max_mv_def, 2 * cpi->max_mv_magnitude));
3684 return VPXMIN(qstep, MAX_QSTEP_ADJ);
3727 top_index = VPXMIN(oxcf->worst_allowed_q, top_index + qrange_adj / 2);
3856 q = VPXMIN(q, (q_high + q_low) >> 1);
3865 q = VPXMIN(q, (q_high + q_low + 1) >> 1);
3905 int max_rate = VPXMAX(1, VPXMIN(rc->max_frame_bandwidth,
3918 q_low = VPXMIN(q + qstep, q_high);
[all …]
Dvp9_mcomp.c45 col_max = VPXMIN(col_max, (MV_UPP >> 3) - 1); in vp9_set_mv_search_range()
46 row_max = VPXMIN(row_max, (MV_UPP >> 3) - 1); in vp9_set_mv_search_range()
61 subpel_mv_limits->col_max = VPXMIN(umv_window_limits->col_max * 8, in vp9_set_subpel_mv_search_range()
65 subpel_mv_limits->row_max = VPXMIN(umv_window_limits->row_max * 8, in vp9_set_subpel_mv_search_range()
69 subpel_mv_limits->col_max = VPXMIN(MV_UPP - 1, subpel_mv_limits->col_max); in vp9_set_subpel_mv_search_range()
71 subpel_mv_limits->row_max = VPXMIN(MV_UPP - 1, subpel_mv_limits->row_max); in vp9_set_subpel_mv_search_range()
81 sr = VPXMIN(sr, MAX_MVSEARCH_STEPS - 2); in vp9_init_search_range()
1517 end_row = VPXMIN(range, x->mv_limits.row_max - fcenter_mv.row); in exhuastive_mesh_search()
1518 end_col = VPXMIN(range, x->mv_limits.col_max - fcenter_mv.col); in exhuastive_mesh_search()
2014 range = VPXMIN(range, MAX_RANGE); in full_pixel_exhaustive()
Dvp9_svc_layercontext.c186 VPXMIN(lrc->bits_off_target, lrc->maximum_buffer_size); in vp9_update_layer_context_change_config()
187 lrc->buffer_level = VPXMIN(lrc->buffer_level, lrc->maximum_buffer_size); in vp9_update_layer_context_change_config()
219 VPXMIN(lrc->bits_off_target, lrc->maximum_buffer_size); in vp9_update_layer_context_change_config()
220 lrc->buffer_level = VPXMIN(lrc->buffer_level, lrc->maximum_buffer_size); in vp9_update_layer_context_change_config()
Dvp9_picklpf.c96 const int filt_high = VPXMIN(filt_mid + filter_step, max_filter_level); in search_filter_level()
Dvp9_temporal_filter.c259 step_param = VPXMIN(step_param, MAX_MVSEARCH_STEPS - 2); in temporal_filter_find_matching_mb_c()
656 base_strength = VPXMIN(6, VPXMAX(0, base_strength)); in adjust_arnr_filter()
/external/libvpx/libvpx/vp8/decoder/
Derror_concealment.c89 const int int_right = VPXMIN(b1_col + (4 << 3), b2_col + (4 << 3)); // right in block_overlap()
91 VPXMIN(b1_row + (4 << 3), b2_row + (4 << 3)); // bottom in block_overlap()
123 int end_row = VPXMIN(4 + mb_row * 4 - first_blk_row, 2); in calculate_overlaps_mb()
124 int end_col = VPXMIN(4 + mb_col * 4 - first_blk_col, 2); in calculate_overlaps_mb()
186 end_row = VPXMIN(mb_rows - overlap_mb_row, 2); in vp8_calculate_overlaps()
187 end_col = VPXMIN(mb_cols - overlap_mb_col, 2); in vp8_calculate_overlaps()
Ddboolhuff.c46 size_t n = VPXMIN(sizeof(decrypted), bytes_left); in vp8dx_bool_decoder_fill()
/external/libvpx/libvpx/vpx_dsp/
Dprob.h73 const unsigned int count = VPXMIN(ct[0] + ct[1], count_sat); in merge_probs()
90 const unsigned int count = VPXMIN(den, MODE_MV_COUNT_SAT); in mode_mv_merge_probs()
Dvpx_dsp_common.h22 #define VPXMIN(x, y) (((x) < (y)) ? (x) : (y)) macro
Dbitreader.c49 size_t n = VPXMIN(sizeof(r->clear_buffer), bytes_left); in vpx_reader_fill()
/external/libvpx/libvpx/vp9/common/
Dvp9_pred_common.h28 const int xmis = VPXMIN(cm->mi_cols - mi_col, bw); in get_segment_id()
29 const int ymis = VPXMIN(cm->mi_rows - mi_row, bh); in get_segment_id()
35 VPXMIN(segment_id, segment_ids[mi_offset + y * cm->mi_cols + x]); in get_segment_id()
Dvp9_tile_common.c21 return VPXMIN(offset, mis); in get_tile_offset()

12