Home
last modified time | relevance | path

Searched refs:VPXMIN (Results 1 – 25 of 39) 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_aq_cyclicrefresh.c167 const int xmis = VPXMIN(cm->mi_cols - mi_col, bw); in vp9_cyclic_refresh_update_segment()
168 const int ymis = VPXMIN(cm->mi_rows - mi_row, bh); in vp9_cyclic_refresh_update_segment()
230 const int xmis = VPXMIN(cm->mi_cols - mi_col, bw); in vp9_cyclic_refresh_update_sb_postencode()
231 const int ymis = VPXMIN(cm->mi_rows - mi_row, bh); in vp9_cyclic_refresh_update_sb_postencode()
247 cr->last_coded_q_map[map_offset] = VPXMIN( in vp9_cyclic_refresh_update_sb_postencode()
324 rc->baseline_gf_interval = VPXMIN(4 * (100 / cr->percent_refresh), 40); in vp9_cyclic_refresh_set_golden_update()
418 VPXMIN(cm->mi_cols - mi_col, num_8x8_blocks_wide_lookup[BLOCK_64X64]); in cyclic_refresh_update_map()
420 VPXMIN(cm->mi_rows - mi_row, num_8x8_blocks_high_lookup[BLOCK_64X64]); in cyclic_refresh_update_map()
482 int qp_thresh = VPXMIN(20, rc->best_quality << 1); in vp9_cyclic_refresh_update_parameters()
650 VPXMIN(CR_MAX_RATE_TARGET_RATIO, in vp9_cyclic_refresh_setup()
Dvp9_ratectrl.c112 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()
255 rc->bits_off_target = VPXMIN(rc->bits_off_target, rc->maximum_buffer_size); in update_buffer_level_preencode()
288 VPXMIN(lrc->bits_off_target, lrc->maximum_buffer_size); in update_buffer_level_svc_preencode()
311 VPXMIN(lrc->bits_off_target, lrc->maximum_buffer_size); in update_layer_buffer_level_postencode()
322 rc->bits_off_target = VPXMIN(rc->bits_off_target, rc->maximum_buffer_size); in update_buffer_level_postencode()
356 int interval = VPXMIN(MAX_GF_INTERVAL, (int)(framerate * 0.75)); in vp9_rc_get_default_max_gf_interval()
656 int qclamp = clamp(q, VPXMIN(cpi->rc.q_1_frame, cpi->rc.q_2_frame), in adjust_q_cbr()
760 0.25 + 0.5 * VPXMIN(1, fabs(log10(0.01 * correction_factor))); in vp9_rc_update_rate_correction_factors()
[all …]
Dvp9_firstpass.c385 const int dim = VPXMIN(cpi->initial_width, cpi->initial_height); in get_search_range()
804 VPXMIN(this_tile->fp_data.image_data_start_row, in accumulate_fp_mb_row_stat()
808 : VPXMIN(this_tile->fp_data.image_data_start_row, in accumulate_fp_mb_row_stat()
1552 last_group_rate_err = VPXMAX(0.25, VPXMIN(4.0, last_group_rate_err)); in get_twopass_worst_quality()
1554 twopass->bpm_factor = VPXMAX(0.25, VPXMIN(4.0, twopass->bpm_factor)); in get_twopass_worst_quality()
1578 last_group_rate_err = VPXMAX(0.25, VPXMIN(4.0, last_group_rate_err)); in get_twopass_worst_quality()
1580 twopass->bpm_factor = VPXMAX(0.25, VPXMIN(4.0, twopass->bpm_factor)); in get_twopass_worst_quality()
1772 sr_diff = VPXMIN(sr_diff, SR_DIFF_MAX); in get_sr_decay_rate()
1785 return VPXMIN(sr_decay, zero_motion_pct); in get_zero_motion_factor()
1886 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_aq_variance.c203 const int xmis = VPXMIN(cm->mi_cols - mi_col, bw); in vp9_get_sub_block_energy()
204 const int ymis = VPXMIN(cm->mi_rows - mi_row, bh); in vp9_get_sub_block_energy()
220 *min_e = VPXMIN(*min_e, energy); in vp9_get_sub_block_energy()
Dvp9_noise_estimate.c205 VPXMIN(cpi->consec_zero_mv[bl_index], in vp9_update_noise_estimate()
206 VPXMIN(cpi->consec_zero_mv[bl_index1], in vp9_update_noise_estimate()
207 VPXMIN(cpi->consec_zero_mv[bl_index2], in vp9_update_noise_estimate()
Dvp9_rd.c216 const int boost_index = VPXMIN(15, (gfu_boost / 100)); in modulate_rdmult()
469 const int xsq_q10 = (int)VPXMIN(xsq_q10_64, MAX_XSQ_Q10); in vp9_model_rd_from_var_lapndz()
488 xsq_q10[i] = (int)VPXMIN(xsq_q10_64, MAX_XSQ_Q10); in vp9_model_rd_from_var_lapndz_vec()
714 const BLOCK_SIZE max_size = VPXMIN(bsize + 2, BLOCK_64X64); in vp9_update_rd_thresh_fact()
721 *fact = VPXMIN(*fact + RD_THRESH_INC, rd_thresh * RD_THRESH_MAX_FACT); in vp9_update_rd_thresh_fact()
Dvp9_rdopt.c196 const int64_t low_dc_thr = VPXMIN(50, dc_thr >> 2); in model_rd_for_sb()
197 const int64_t low_ac_thr = VPXMIN(80, ac_thr >> 2); in model_rd_for_sb()
486 int max_r = VPXMIN(b4x4s_to_bottom_edge, tx_4x4_h); in pixel_sse()
487 int max_c = VPXMIN(b4x4s_to_right_edge, tx_4x4_w); in pixel_sse()
524 int max_r = VPXMIN(b4x4s_to_bottom_edge, tx_4x4_h); in sum_squares_visible()
525 int max_c = VPXMIN(b4x4s_to_right_edge, tx_4x4_w); in sum_squares_visible()
757 rd = VPXMIN(rd1, rd2); in block_rd_txfm()
822 mi->tx_size = VPXMIN(max_tx_size, largest_tx_size); in choose_largest_tx_size()
856 if (bs > BLOCK_32X32) end_tx = VPXMIN(end_tx + 1, start_tx); in choose_tx_size_from_rd()
859 VPXMIN(max_tx_size, tx_mode_to_biggest_tx_size[cm->tx_mode]); in choose_tx_size_from_rd()
[all …]
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()
381 const int xmis = VPXMIN(cm->mi_cols - mi_col, bw); in vp9_denoiser_denoise()
382 const int ymis = VPXMIN(cm->mi_rows - mi_row, bh); in vp9_denoiser_denoise()
388 consec_zeromv = VPXMIN(cpi->consec_zero_mv[bl_index], consec_zeromv); in vp9_denoiser_denoise()
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_speed_features.c64 const int min_frame_size = VPXMIN(cm->width, cm->height); in set_good_speed_feature_framesize_dependent()
392 if (VPXMIN(cm->width, cm->height) >= 720) { in set_rt_speed_feature_framesize_dependent()
401 if (VPXMIN(cm->width, cm->height) >= 720) { in set_rt_speed_feature_framesize_dependent()
411 if (VPXMIN(cm->width, cm->height) >= 720) { in set_rt_speed_feature_framesize_dependent()
420 (VPXMIN(cm->width, cm->height) >= 720) ? 800 : 300; in set_rt_speed_feature_framesize_dependent()
Dvp9_pickmode.c189 x->mv_limits.col_max = VPXMIN(x->mv_limits.col_max, 10); in combined_motion_search()
190 x->mv_limits.row_max = VPXMIN(x->mv_limits.row_max, 10); in combined_motion_search()
355 tx_size = VPXMIN(max_txsize_lookup[bsize], in calculate_tx_size()
371 tx_size = VPXMIN(max_txsize_lookup[bsize], in calculate_tx_size()
913 VPXMIN(((unsigned int)x->encode_breakout << 4), max_thresh); in encode_breakout_test()
1030 VPXMIN(tx_size, TX_16X16), 0); in estimate_block_intra()
1087 *freq_fact = VPXMIN(*freq_fact + RD_THRESH_INC, 32); in update_thresh_freq_fact_row_mt()
1089 *freq_fact = VPXMIN(*freq_fact + RD_THRESH_INC, in update_thresh_freq_fact_row_mt()
1104 *freq_fact = VPXMIN(*freq_fact + RD_THRESH_INC, 32); in update_thresh_freq_fact()
1106 *freq_fact = VPXMIN(*freq_fact + RD_THRESH_INC, in update_thresh_freq_fact()
[all …]
Dvp9_encodeframe.c296 VPXMIN(num_8x8_blocks_wide_lookup[bsize], cm->mi_cols - mi_col); in duplicate_mode_info_in_sb()
298 VPXMIN(num_8x8_blocks_high_lookup[bsize], cm->mi_rows - mi_row); in duplicate_mode_info_in_sb()
776 const int xmis = VPXMIN(cm->mi_cols - mi_col, bw); in skin_sb_split()
777 const int ymis = VPXMIN(cm->mi_rows - mi_row, bh); in skin_sb_split()
1620 min_var_32x32 = VPXMIN(var_32x32, min_var_32x32); in choose_partitioning()
1740 const int x_mis = VPXMIN(bw, cm->mi_cols - mi_col); in update_state()
1741 const int y_mis = VPXMIN(bh, cm->mi_rows - mi_row); in update_state()
1880 VPXMIN(max_txsize_lookup[bsize], tx_mode_to_biggest_tx_size[tx_mode]); in set_mode_info_seg_skip()
2246 return VPXMIN(bsize, BLOCK_8X8); in find_partition_size()
2437 const int x_mis = VPXMIN(bw, cm->mi_cols - mi_col); in update_state_rt()
[all …]
Dvp9_temporal_filter.c191 mod = VPXMIN(16, mod); in mod_index()
530 step_param = VPXMIN(step_param, MAX_MVSEARCH_STEPS - 2); in temporal_filter_find_matching_mb_c()
735 case 1: blk_fw[k] = VPXMIN(blk_fw[k], 2); break; in vp9_temporal_filter_iterate_row_c()
737 case 3: blk_fw[k] = VPXMIN(blk_fw[k], 1); break; in vp9_temporal_filter_iterate_row_c()
987 base_strength = VPXMIN(6, VPXMAX(0, base_strength)); in adjust_arnr_filter()
Dvp9_picklpf.c96 const int filt_high = VPXMIN(filt_mid + filter_step, max_filter_level); in search_filter_level()
Dvp9_encoder.c1945 rc->bits_off_target = VPXMIN(rc->bits_off_target, rc->maximum_buffer_size); in vp9_change_config()
1946 rc->buffer_level = VPXMIN(rc->buffer_level, rc->maximum_buffer_size); in vp9_change_config()
3429 const unsigned int max_mv_def = VPXMIN(cm->width, cm->height);
3445 VPXMIN(max_mv_def, 2 * cpi->max_mv_magnitude));
3990 return VPXMIN(qstep, MAX_QSTEP_ADJ);
4038 top_index = VPXMIN(oxcf->worst_allowed_q, top_index + qrange_adj / 2);
4169 q = VPXMIN(q, (q_high + q_low) >> 1);
4178 q = VPXMIN(q, (q_high + q_low + 1) >> 1);
4219 int max_rate = VPXMAX(1, VPXMIN(rc->max_frame_bandwidth,
4232 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()
1673 end_row = VPXMIN(range, x->mv_limits.row_max - fcenter_mv.row); in exhuastive_mesh_search()
1674 end_col = VPXMIN(range, x->mv_limits.col_max - fcenter_mv.col); in exhuastive_mesh_search()
2426 range = VPXMIN(range, MAX_RANGE); in full_pixel_exhaustive()
/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 calculate_overlaps()
187 end_col = VPXMIN(mb_cols - overlap_mb_col, 2); in 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