Home
last modified time | relevance | path

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

12

/external/libvpx/libvpx/vp9/encoder/
Dvp9_speed_features.c53 if (VPXMIN(cm->width, cm->height) >= 720) { in set_good_speed_feature_framesize_dependent()
64 if (VPXMIN(cm->width, cm->height) >= 720) { in set_good_speed_feature_framesize_dependent()
79 if (VPXMIN(cm->width, cm->height) >= 720) { in set_good_speed_feature_framesize_dependent()
103 if (VPXMIN(cm->width, cm->height) >= 720) { in set_good_speed_feature_framesize_dependent()
223 if (VPXMIN(cm->width, cm->height) >= 720) { in set_rt_speed_feature_framesize_dependent()
232 if (VPXMIN(cm->width, cm->height) >= 720) { in set_rt_speed_feature_framesize_dependent()
241 if (VPXMIN(cm->width, cm->height) >= 720) { in set_rt_speed_feature_framesize_dependent()
249 sf->encode_breakout_thresh = (VPXMIN(cm->width, cm->height) >= 720) ? in set_rt_speed_feature_framesize_dependent()
Dvp9_aq_cyclicrefresh.c199 const int xmis = VPXMIN(cm->mi_cols - mi_col, bw); in vp9_cyclic_refresh_update_segment()
200 const int ymis = VPXMIN(cm->mi_rows - mi_row, bh); in vp9_cyclic_refresh_update_segment()
253 const int xmis = VPXMIN(cm->mi_cols - mi_col, bw); in vp9_cyclic_refresh_update_sb_postencode()
254 const int ymis = VPXMIN(cm->mi_rows - mi_row, bh); in vp9_cyclic_refresh_update_sb_postencode()
270 cr->last_coded_q_map[map_offset] = VPXMIN( in vp9_cyclic_refresh_update_sb_postencode()
433 VPXMIN(cm->mi_cols - mi_col, num_8x8_blocks_wide_lookup[BLOCK_64X64]); in cyclic_refresh_update_map()
435 VPXMIN(cm->mi_rows - mi_row, num_8x8_blocks_high_lookup[BLOCK_64X64]); in cyclic_refresh_update_map()
582 VPXMIN(CR_MAX_RATE_TARGET_RATIO, in vp9_cyclic_refresh_setup()
Dvp9_ratectrl.c110 const double minqtarget = VPXMIN(((x3 * maxq + x2) * maxq + x1) * maxq, in get_minq_index()
220 target = VPXMIN(target, max_rate); in vp9_rc_clamp_pframe_target_size()
231 target = VPXMIN(target, max_rate); in vp9_rc_clamp_iframe_target_size()
255 VPXMIN(lrc->bits_off_target, lrc->maximum_buffer_size); in update_layer_buffer_level()
273 rc->bits_off_target = VPXMIN(rc->bits_off_target, rc->maximum_buffer_size); in update_buffer_level()
308 int interval = VPXMIN(MAX_GF_INTERVAL, (int)(framerate * 0.75)); in vp9_rc_get_default_max_gf_interval()
490 0.5 * VPXMIN(1, fabs(log10(0.01 * correction_factor))); in vp9_rc_update_rate_correction_factors()
569 q = clamp(q, VPXMIN(cpi->rc.q_1_frame, cpi->rc.q_2_frame), in vp9_rc_regulate_q()
628 return VPXMIN(active_worst_quality, rc->worst_quality); in calc_active_worst_quality_one_pass_vbr()
655 VPXMIN(rc->avg_frame_qindex[INTER_FRAME], in calc_active_worst_quality_one_pass_cbr()
[all …]
Dvp9_aq_complexity.c121 const int xmis = VPXMIN(cm->mi_cols - mi_col, num_8x8_blocks_wide_lookup[bs]); in vp9_caq_select_segment()
122 const int ymis = VPXMIN(cm->mi_rows - mi_row, num_8x8_blocks_high_lookup[bs]); in vp9_caq_select_segment()
Dvp9_firstpass.c385 const int dim = VPXMIN(cpi->initial_width, cpi->initial_height); in get_search_range()
1165 VPXMIN(vp9_convert_qindex_to_q(q, bit_depth) * 0.01 + pt_low, pt_high); in calc_correction_factor()
1371 sr_diff = VPXMIN(sr_diff, SR_DIFF_MAX); in get_sr_decay_rate()
1376 return VPXMAX(sr_decay, VPXMIN(DEFAULT_DECAY_LIMIT, modified_pct_inter)); in get_sr_decay_rate()
1386 return VPXMIN(sr_decay, zero_motion_pct); in get_zero_motion_factor()
1490 const double boost_q_correction = VPXMIN((0.5 + (lq * 0.015)), 1.5); in calc_frame_boost()
1511 return VPXMIN(frame_boost, max_boost * boost_q_correction); in calc_frame_boost()
1811 VPXMIN(max_bits, (int)total_group_bits)); in allocate_gf_group_bits()
1932 active_min_gf_interval = rc->min_gf_interval + VPXMIN(2, int_max_q / 200); in define_gf_group()
1943 active_max_gf_interval = 12 + VPXMIN(4, (int_lbq / 6)); in define_gf_group()
[all …]
Dvp9_ethread.c71 const int num_workers = VPXMIN(cpi->oxcf.max_threads, tile_cols); in vp9_encode_tiles_mt()
84 allocated_workers = VPXMIN(cpi->oxcf.max_threads, max_tile_cols); in vp9_encode_tiles_mt()
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()
557 rd = VPXMIN(rd1, rd2); in block_rd_txfm()
623 mbmi->tx_size = VPXMIN(max_tx_size, largest_tx_size); in choose_largest_tx_size()
663 TX_SIZE chosen_tx_size = VPXMIN(max_tx_size, in choose_tx_size_from_rd()
700 rd[n][0] = VPXMIN(rd[n][0], RDCOST(x->rdmult, x->rddiv, s1, sse[n])); in choose_tx_size_from_rd()
701 rd[n][1] = VPXMIN(rd[n][1], RDCOST(x->rdmult, x->rddiv, s1, sse[n])); in choose_tx_size_from_rd()
1423 rd = VPXMIN(rd1, rd2); in encode_inter_mb_segment()
2280 VPXMIN(b_height_log2_lookup[bsize], b_width_log2_lookup[bsize])); in single_motion_search()
2538 *rate2 += VPXMIN(cost_mv_ref(cpi, this_mode, in handle_inter_mode()
[all …]
Dvp9_rd.c176 const int boost_index = VPXMIN(15, (cpi->rc.gfu_boost / 100)); in vp9_compute_rd_mult()
408 const int xsq_q10 = (int)VPXMIN(xsq_q10_64, MAX_XSQ_Q10); in vp9_model_rd_from_var_lapndz()
634 const BLOCK_SIZE max_size = VPXMIN(bsize + 2, BLOCK_64X64); in vp9_update_rd_thresh_fact()
641 *fact = VPXMIN(*fact + RD_THRESH_INC, rd_thresh * RD_THRESH_MAX_FACT); in vp9_update_rd_thresh_fact()
Dvp9_mcomp.c43 col_max = VPXMIN(col_max, (MV_UPP >> 3) - 1); in vp9_set_mv_search_range()
44 row_max = VPXMIN(row_max, (MV_UPP >> 3) - 1); in vp9_set_mv_search_range()
66 sr = VPXMIN(sr, MAX_MVSEARCH_STEPS - 2); in vp9_init_search_range()
302 const int maxc = VPXMIN(x->mv_col_max * 8, ref_mv->col + MV_MAX); \
304 const int maxr = VPXMIN(x->mv_row_max * 8, ref_mv->row + MV_MAX); \
673 const int maxc = VPXMIN(x->mv_col_max * 8, ref_mv->col + MV_MAX); in vp9_find_best_sub_pixel_tree()
675 const int maxr = VPXMIN(x->mv_row_max * 8, ref_mv->row + MV_MAX); in vp9_find_best_sub_pixel_tree()
1553 end_row = VPXMIN(range, x->mv_row_max - ref_mv->row); in vp9_full_range_search_c()
1554 end_col = VPXMIN(range, x->mv_col_max - ref_mv->col); in vp9_full_range_search_c()
2027 const int row_max = VPXMIN(ref_mv->row + distance, x->mv_row_max); in vp9_full_search_sad_c()
[all …]
Dvp9_pickmode.c297 tx_size = VPXMIN(max_txsize_lookup[bsize], in model_rd_for_sb_y_large()
308 tx_size = VPXMIN(max_txsize_lookup[bsize], in model_rd_for_sb_y_large()
479 VPXMIN(max_txsize_lookup[bsize], in model_rd_for_sb_y()
491 VPXMIN(max_txsize_lookup[bsize], in model_rd_for_sb_y()
796 VPXMIN(((unsigned int)x->encode_breakout << 4), max_thresh); in encode_breakout_test()
915 bsize_tx, VPXMIN(tx_size, TX_16X16)); in estimate_block_intra()
971 *freq_fact = VPXMIN(*freq_fact + RD_THRESH_INC, in update_thresh_freq_fact()
983 VPXMIN(max_txsize_lookup[bsize], in vp9_pick_intra_mode()
1170 mbmi->tx_size = VPXMIN(max_txsize_lookup[bsize], in vp9_pick_inter_mode()
1426 &this_sse, 0, bsize, VPXMIN(mbmi->tx_size, TX_16X16)); in vp9_pick_inter_mode()
[all …]
Dvp9_svc_layercontext.c167 VPXMIN(lrc->bits_off_target, lrc->maximum_buffer_size); in vp9_update_layer_context_change_config()
168 lrc->buffer_level = VPXMIN(lrc->buffer_level, lrc->maximum_buffer_size); in vp9_update_layer_context_change_config()
199 lrc->bits_off_target = VPXMIN(lrc->bits_off_target, in vp9_update_layer_context_change_config()
201 lrc->buffer_level = VPXMIN(lrc->buffer_level, lrc->maximum_buffer_size); in vp9_update_layer_context_change_config()
Dvp9_picklpf.c97 const int filt_high = VPXMIN(filt_mid + filter_step, max_filter_level); in search_filter_level()
Dvp9_encodeframe.c983 const int x_mis = VPXMIN(bw, cm->mi_cols - mi_col); in update_state()
984 const int y_mis = VPXMIN(bh, cm->mi_rows - mi_row); in update_state()
1137 VPXMIN(max_txsize_lookup[bsize], tx_mode_to_biggest_tx_size[tx_mode]); in set_mode_info_seg_skip()
1500 return VPXMIN(bsize, BLOCK_8X8); in find_partition_size()
1676 const int x_mis = VPXMIN(bw, cm->mi_cols - mi_col); in update_state_rt()
1677 const int y_mis = VPXMIN(bh, cm->mi_rows - mi_row); in update_state_rt()
2139 *min_block_size = VPXMIN(*min_block_size, sb_type); in get_sb_partition_size_range()
2218 VPXMIN(cpi->sf.rd_auto_partition_min_limit, VPXMIN(min_size, max_size)); in rd_auto_partition_range()
2254 min_size = VPXMIN(min_size, bs); in set_partition_range()
2264 min_size = VPXMIN(min_size, bs); in set_partition_range()
[all …]
Dvp9_denoiser.c122 avg[c] = VPXMIN(UINT8_MAX, sig[c] + adj); in vp9_denoiser_filter_c()
168 avg[c] = VPXMIN(UINT8_MAX, avg[c] + adj); in vp9_denoiser_filter_c()
Dvp9_encoder.c1500 rc->bits_off_target = VPXMIN(rc->bits_off_target, rc->maximum_buffer_size); in vp9_change_config()
1501 rc->buffer_level = VPXMIN(rc->buffer_level, rc->maximum_buffer_size); in vp9_change_config()
3025 const unsigned int max_mv_def = VPXMIN(cm->width, cm->height);
3041 VPXMIN(max_mv_def, 2 * cpi->max_mv_magnitude));
3478 q = VPXMIN(q, (q_high + q_low) >> 1);
3487 q = VPXMIN(q, (q_high + q_low + 1) >> 1);
4105 const double interval = VPXMIN(
4170 s->worst = VPXMIN(s->worst, all);
4501 cpi->worst_ssim = VPXMIN(cpi->worst_ssim, frame_ssim2);
4560 VPXMIN(cpi->worst_consistency, consistency);
/external/libvpx/libvpx/vp8/decoder/
Derror_concealment.c102 const int int_right = VPXMIN(b1_col + (4<<3), b2_col + (4<<3)); // right in block_overlap()
103 const int int_bottom = VPXMIN(b1_row + (4<<3), b2_row + (4<<3)); // bottom in block_overlap()
136 int end_row = VPXMIN(4 + mb_row * 4 - first_blk_row, 2); in calculate_overlaps_mb()
137 int end_col = VPXMIN(4 + mb_col * 4 - first_blk_col, 2); in calculate_overlaps_mb()
212 end_row = VPXMIN(mb_rows - overlap_mb_row, 2); in vp8_calculate_overlaps()
213 end_col = VPXMIN(mb_cols - overlap_mb_col, 2); in vp8_calculate_overlaps()
Ddboolhuff.c52 size_t n = VPXMIN(sizeof(decrypted), bytes_left); in vp8dx_bool_decoder_fill()
/external/libvpx/libvpx/vpx_dsp/
Dprob.h68 const unsigned int count = VPXMIN(ct[0] + ct[1], count_sat); in merge_probs()
85 const unsigned int count = VPXMIN(den, MODE_MV_COUNT_SAT); in mode_mv_merge_probs()
Dvpx_dsp_common.h23 #define VPXMIN(x, y) (((x) < (y)) ? (x) : (y)) macro
Dbitreader.c52 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()
Dvp9_blockd.h241 return VPXMIN(y_tx_size, max_txsize_lookup[plane_bsize]); in get_uv_tx_size_impl()
/external/libvpx/libvpx/vp9/decoder/
Dvp9_decodemv.c92 return VPXMIN(max_tx_size, tx_mode_to_biggest_tx_size[tx_mode]); in read_tx_size()
102 VPXMIN(segment_id, segment_ids[mi_offset + y * cm->mi_cols + x]); in dec_get_segment_id()
161 const int x_mis = VPXMIN(cm->mi_cols - mi_col, bw); in read_inter_segment_id()
162 const int y_mis = VPXMIN(cm->mi_rows - mi_row, bh); in read_inter_segment_id()
217 const int x_mis = VPXMIN(cm->mi_cols - mi_col, bw); in read_intra_frame_mode_info()
218 const int y_mis = VPXMIN(cm->mi_rows - mi_row, bh); in read_intra_frame_mode_info()
Dvp9_decodeframe.c761 const int x = VPXMIN(n4_wl, n4_hl); in dec_get_uv_tx_size()
762 return VPXMIN(mbmi->tx_size, x); in dec_get_uv_tx_size()
823 const int x_mis = VPXMIN(bw, cm->mi_cols - mi_col); in decode_block()
824 const int y_mis = VPXMIN(bh, cm->mi_rows - mi_row); in decode_block()
1637 const int num_workers = VPXMIN(pbi->max_threads, tile_cols); in decode_tiles_mt()
2132 const int n = (int)VPXMIN(MAX_VP9_HEADER_SIZE, data_end - data); in init_read_bit_buffer()

12