/external/libaom/libaom/av1/common/ |
D | txb_common.h | 153 int mag = AOMMIN(levels[pos + 1], MAX_BASE_BR_RANGE) + in get_br_ctx_2d() 154 AOMMIN(levels[pos + stride], MAX_BASE_BR_RANGE) + in get_br_ctx_2d() 155 AOMMIN(levels[pos + 1 + stride], MAX_BASE_BR_RANGE); in get_br_ctx_2d() 156 mag = AOMMIN((mag + 1) >> 1, 6); in get_br_ctx_2d() 187 mag = AOMMIN((mag + 1) >> 1, 6); in get_br_ctx() 193 mag = AOMMIN((mag + 1) >> 1, 6); in get_br_ctx() 199 mag = AOMMIN((mag + 1) >> 1, 6); in get_br_ctx() 268 ctx = AOMMIN(ctx, 4); in get_nz_map_ctx_from_stats() 314 mag = AOMMIN(levels[1], 3); // { 0, 1 } in get_lower_levels_ctx_2d() 315 mag += AOMMIN(levels[(1 << bwl) + TX_PAD_HOR], 3); // { 1, 0 } in get_lower_levels_ctx_2d() [all …]
|
D | obmc.h | 33 const int end_col = AOMMIN(mi_col + xd->n4_w, cm->mi_cols); in foreach_overlappable_nb_above() 39 AOMMIN(mi_size_wide[above_mi[0]->sb_type], mi_size_wide[BLOCK_64X64]); in foreach_overlappable_nb_above() 52 fun(xd, above_mi_col - mi_col, AOMMIN(xd->n4_w, mi_step), *above_mi, in foreach_overlappable_nb_above() 71 const int end_row = AOMMIN(mi_row + xd->n4_h, cm->mi_rows); in foreach_overlappable_nb_left() 77 AOMMIN(mi_size_high[left_mi[0]->sb_type], mi_size_high[BLOCK_64X64]); in foreach_overlappable_nb_left() 85 fun(xd, left_mi_row - mi_row, AOMMIN(xd->n4_h, mi_step), *left_mi, in foreach_overlappable_nb_left()
|
D | tile_common.c | 41 cm->max_log2_tile_cols = tile_log2(1, AOMMIN(sb_cols, MAX_TILE_COLS)); in av1_get_tile_limits() 42 cm->max_log2_tile_rows = tile_log2(1, AOMMIN(sb_rows, MAX_TILE_ROWS)); in av1_get_tile_limits() 73 cm->tile_width = AOMMIN(cm->tile_width, cm->mi_cols); in av1_calculate_tile_cols() 87 narrowest_inner_tile_sb = AOMMIN(narrowest_inner_tile_sb, size_sb); in av1_calculate_tile_cols() 117 cm->tile_height = AOMMIN(cm->tile_height, cm->mi_rows); in av1_calculate_tile_rows() 130 tile->mi_row_end = AOMMIN(mi_row_end, cm->mi_rows); in av1_tile_set_row() 141 tile->mi_col_end = AOMMIN(mi_col_end, cm->mi_cols); in av1_tile_set_col() 185 r.right = AOMMIN(r.right, frame_w); in av1_get_tile_rect() 186 r.bottom = AOMMIN(r.bottom, frame_h); in av1_get_tile_rect()
|
D | mvref_common.c | 27 den = AOMMIN(den, MAX_FRAME_DISTANCE); in get_mv_projection() 28 num = num > 0 ? AOMMIN(num, MAX_FRAME_DISTANCE) in get_mv_projection() 147 int end_mi = AOMMIN(xd->n4_w, cm->mi_cols - mi_col); in scan_row_mbmi() 148 end_mi = AOMMIN(end_mi, mi_size_wide[BLOCK_64X64]); in scan_row_mbmi() 166 int len = AOMMIN(xd->n4_w, n4_w); in scan_row_mbmi() 174 int inc = AOMMIN(-max_row_offset + row_offset + 1, in scan_row_mbmi() 197 int end_mi = AOMMIN(xd->n4_h, cm->mi_rows - mi_row); in scan_col_mbmi() 198 end_mi = AOMMIN(end_mi, mi_size_high[BLOCK_64X64]); in scan_col_mbmi() 215 int len = AOMMIN(xd->n4_h, n4_h); in scan_col_mbmi() 223 int inc = AOMMIN(-max_col_offset + col_offset + 1, in scan_col_mbmi() [all …]
|
D | cdef_block.c | 136 min = AOMMIN(p0, min); in cdef_filter_block_c() 137 min = AOMMIN(p1, min); in cdef_filter_block_c() 146 min = AOMMIN(s0, min); in cdef_filter_block_c() 147 min = AOMMIN(s1, min); in cdef_filter_block_c() 148 min = AOMMIN(s2, min); in cdef_filter_block_c() 149 min = AOMMIN(s3, min); in cdef_filter_block_c() 171 const int i = var >> 6 ? AOMMIN(get_msb(var >> 6), 12) : 0; in adjust_strength()
|
D | cdef.c | 30 maxr = AOMMIN(maxr, MI_SIZE_64X64); in sb_all_skip() 31 maxc = AOMMIN(maxc, MI_SIZE_64X64); in sb_all_skip() 60 maxc = AOMMIN(maxc, MI_SIZE_128X128); in sb_compute_cdef_list() 62 maxc = AOMMIN(maxc, MI_SIZE_64X64); in sb_compute_cdef_list() 64 maxr = AOMMIN(maxr, MI_SIZE_128X128); in sb_compute_cdef_list() 66 maxr = AOMMIN(maxr, MI_SIZE_64X64); in sb_compute_cdef_list() 202 nhb = AOMMIN(MI_SIZE_64X64, cm->mi_cols - MI_SIZE_64X64 * fbc); in av1_cdef_frame() 203 nvb = AOMMIN(MI_SIZE_64X64, cm->mi_rows - MI_SIZE_64X64 * fbr); in av1_cdef_frame()
|
D | warped_motion.c | 465 for (int k = -4; k < AOMMIN(4, p_row + p_height - i - 4); ++k) { in av1_highbd_warp_affine_c() 467 for (int l = -4; l < AOMMIN(4, p_col + p_width - j - 4); ++l) { in av1_highbd_warp_affine_c() 561 const int error_bsize_w = AOMMIN(p_width, WARP_ERROR_BLOCK); in highbd_warp_error() 562 const int error_bsize_h = AOMMIN(p_height, WARP_ERROR_BLOCK); in highbd_warp_error() 571 const int warp_w = AOMMIN(error_bsize_w, p_col + p_width - j); in highbd_warp_error() 572 const int warp_h = AOMMIN(error_bsize_h, p_row + p_height - i); in highbd_warp_error() 752 for (int k = -4; k < AOMMIN(4, p_row + p_height - i - 4); ++k) { in av1_warp_affine_c() 754 for (int l = -4; l < AOMMIN(4, p_col + p_width - j - 4); ++l) { in av1_warp_affine_c() 845 int error_bsize_w = AOMMIN(p_width, WARP_ERROR_BLOCK); in warp_error() 846 int error_bsize_h = AOMMIN(p_height, WARP_ERROR_BLOCK); in warp_error() [all …]
|
D | resize.c | 277 sum += filter[k] * input[AOMMAX(AOMMIN(pk, in_length - 1), 0)]; in interpolate_core() 310 input[AOMMIN(int_pel - interp_taps / 2 + 1 + k, in_length - 1)]; in interpolate_core() 362 sum += filter[k] * input[AOMMAX(AOMMIN(pk, in_length - 1), 0)]; in interpolate_core_double_prec() 395 input[AOMMIN(int_pel - interp_taps / 2 + 1 + k, in_length - 1)]; in interpolate_core_double_prec() 451 (input[AOMMAX(i - j, 0)] + input[AOMMIN(i + 1 + j, length - 1)]) * in down2_symeven() 481 (input[i - j] + input[AOMMIN(i + 1 + j, length - 1)]) * filter[j]; in down2_symeven() 805 sum += filter[k] * input[AOMMAX(AOMMIN(pk, in_length - 1), 0)]; in highbd_interpolate_core() 838 input[AOMMIN(int_pel - interp_taps / 2 + 1 + k, in_length - 1)]; in highbd_interpolate_core() 870 (input[AOMMAX(0, i - j)] + input[AOMMIN(i + 1 + j, length - 1)]) * in highbd_down2_symeven() 900 (input[i - j] + input[AOMMIN(i + 1 + j, length - 1)]) * filter[j]; in highbd_down2_symeven() [all …]
|
D | pred_common.h | 30 const int xmis = AOMMIN(cm->mi_cols - mi_col, bw); in get_segment_id() 31 const int ymis = AOMMIN(cm->mi_rows - mi_row, bh); in get_segment_id() 37 AOMMIN(segment_id, segment_ids[mi_offset + y * cm->mi_cols + x]); in get_segment_id() 151 return AOMMIN(5, above_ctx + left_ctx); in get_comp_group_idx_context()
|
D | blockd.c | 42 const int above_contexts = AOMMIN(txs_wide, blocks_wide - aoff); in av1_set_contexts() 52 const int left_contexts = AOMMIN(txs_high, blocks_high - loff); in av1_set_contexts()
|
/external/libaom/libaom/test/ |
D | selfguided_filter_test.cc | 87 int w = AOMMIN(pu_width, width - j); in RunSpeedTest() 88 int h = AOMMIN(pu_height, height - k); in RunSpeedTest() 103 int w = AOMMIN(pu_width, width - j); in RunSpeedTest() 104 int h = AOMMIN(pu_height, height - k); in RunSpeedTest() 171 int w = AOMMIN(pu_width, test_w - j); in RunCorrectnessTest() 172 int h = AOMMIN(pu_height, test_h - k); in RunCorrectnessTest() 268 int w = AOMMIN(pu_width, width - j); in RunSpeedTest() 269 int h = AOMMIN(pu_height, height - k); in RunSpeedTest() 285 int w = AOMMIN(pu_width, width - j); in RunSpeedTest() 286 int h = AOMMIN(pu_height, height - k); in RunSpeedTest() [all …]
|
/external/libaom/libaom/aom_dsp/ |
D | grain_synthesis.c | 1140 AOMMIN(luma_subblock_size_y + 2, height - (y << 1))); in av1_add_film_grain_run() 1148 AOMMIN(chroma_subblock_size_y + (2 >> chroma_subsamp_y), in av1_add_film_grain_run() 1157 AOMMIN(chroma_subblock_size_y + (2 >> chroma_subsamp_y), in av1_add_film_grain_run() 1176 AOMMIN(luma_subblock_size_y >> 1, height / 2 - y) - i, 1, in av1_add_film_grain_run() 1189 AOMMIN(luma_subblock_size_y >> 1, height / 2 - y) - i, 1, in av1_add_film_grain_run() 1217 AOMMIN(luma_subblock_size_x - ((x ? 1 : 0) << 1), in av1_add_film_grain_run() 1229 AOMMIN(chroma_subblock_size_x - in av1_add_film_grain_run() 1242 AOMMIN(chroma_subblock_size_x - in av1_add_film_grain_run() 1258 AOMMIN(luma_subblock_size_x >> 1, width / 2 - x), bit_depth, in av1_add_film_grain_run() 1271 AOMMIN(luma_subblock_size_x >> 1, width / 2 - x), bit_depth, in av1_add_film_grain_run() [all …]
|
D | noise_model.c | 34 const int max_h = AOMMIN(h - y_o, block_size); \ 35 const int max_w = AOMMIN(w - x_o, block_size); \ 63 const int max_h = AOMMIN(h - y_o, block_size_y); \ 64 const int max_w = AOMMIN(w - x_o, block_size_x); \ 258 const int bin_i1 = AOMMIN(solver->num_bins - 1, bin_i0 + 1); in noise_strength_solver_get_value() 267 const int bin_i1 = AOMMIN(solver->num_bins - 1, bin_i0 + 1); in aom_noise_strength_solver_add_measurement() 298 const int i_hi = AOMMIN(n - 1, i + 1); in aom_noise_strength_solver_solve() 349 for (int i = AOMMAX(start, 1); i < AOMMIN(end, lut->num_points - 1); ++i) { in update_piecewise_linear_residual() 352 const int upper = AOMMIN(solver->num_bins - 1, in update_piecewise_linear_residual() 816 int y_end = AOMMIN((h >> sub_log2[1]) - by * (block_size >> sub_log2[1]), in add_block_observations() [all …]
|
/external/libaom/libaom/av1/encoder/ |
D | level.c | 416 AOMMIN(*min_cropped_tile_width, cropped_tile_width); in get_tile_stats() 418 AOMMIN(*min_cropped_tile_height, cropped_tile_height); in get_tile_stats() 486 for (int i = 0; i < AOMMIN(num_frames_in_buffer, num_frames_to_scan); ++i) { in scan_past_frames() 573 AOMMIN(level_stats->min_cropped_tile_width, min_cropped_tile_width); in av1_update_level_info() 575 AOMMIN(level_stats->min_cropped_tile_height, min_cropped_tile_height); in av1_update_level_info() 577 level_stats->min_frame_width = AOMMIN(level_stats->min_frame_width, width); in av1_update_level_info() 579 AOMMIN(level_stats->min_frame_height, height); in av1_update_level_info() 582 level_stats->min_cr = AOMMIN(level_stats->min_cr, compression_ratio); in av1_update_level_info()
|
D | encodetxb.c | 150 const int e = AOMMIN((eob - 1) >> 5, 16); in get_eob_pos_token() 300 const int base_range = AOMMIN(level - 1 - NUM_BASE_LEVELS, COEFF_BASE_RANGE); 320 const int base_range = AOMMIN(level - 1 - NUM_BASE_LEVELS, COEFF_BASE_RANGE); 336 cost += txb_costs->base_eob_cost[coeff_ctx][AOMMIN(abs_qc, 3) - 1]; 338 cost += txb_costs->base_cost[coeff_ctx][AOMMIN(abs_qc, 3)]; 456 stats->nz_rd = AOMMIN(stats->rd_low, stats->rd) - rd_eob; 591 w, AOMMIN(level, 3) - 1, 594 aom_write_symbol(w, AOMMIN(level, 3), 603 ec_ctx->coeff_br_cdf[AOMMIN(txs_ctx, TX_32X32)][plane_type][br_ctx]; 605 const int k = AOMMIN(base_range - idx, BR_CDF_SIZE - 1); [all …]
|
D | tokenize.c | 48 for (int j = AOMMIN(k, cols - 1); j >= AOMMAX(0, k - rows + 1); --j) { in cost_and_tokenize_map() 234 mu_blocks_wide = AOMMIN(mi_width, mu_blocks_wide); in av1_tokenize_sb_vartx() 235 mu_blocks_high = AOMMIN(mi_height, mu_blocks_high); in av1_tokenize_sb_vartx() 240 const int unit_height = AOMMIN(mu_blocks_high + idy, mi_height); in av1_tokenize_sb_vartx() 241 const int unit_width = AOMMIN(mu_blocks_wide + idx, mi_width); in av1_tokenize_sb_vartx()
|
D | ratectrl.c | 101 const double minqtarget = AOMMIN(((x3 * maxq + x2) * maxq + x1) * maxq, maxq); in get_minq_index() 197 target = AOMMIN(target, max_rate); in av1_rc_clamp_pframe_target_size() 209 target = AOMMIN(target, max_rate); in av1_rc_clamp_iframe_target_size() 227 rc->bits_off_target = AOMMIN(rc->bits_off_target, rc->maximum_buffer_size); in update_buffer_level() 251 int interval = AOMMIN(MAX_GF_INTERVAL, (int)(framerate * 0.75)); in av1_rc_get_default_max_gf_interval() 451 0.25 + 0.5 * AOMMIN(1, fabs(log10(0.01 * correction_factor))); in av1_rc_update_rate_correction_factors() 570 q = clamp(q, AOMMIN(cpi->rc.q_1_frame, cpi->rc.q_2_frame), in av1_rc_regulate_q() 636 return AOMMIN(active_worst_quality, rc->worst_quality); in calc_active_worst_quality_one_pass_vbr() 661 ? AOMMIN(rc->avg_frame_qindex[INTER_FRAME], in calc_active_worst_quality_one_pass_cbr() 664 active_worst_quality = AOMMIN(rc->worst_quality, ambient_qp * 5 / 4); in calc_active_worst_quality_one_pass_cbr() [all …]
|
D | palette.c | 65 bits_per_delta = AOMMIN(bits_per_delta, av1_ceil_log2(range)); in delta_encode_cost() 110 const int d = AOMMIN(v, max_val - v); in av1_get_palette_delta_bits_v() 152 total_bits += 1 + AOMMIN(bits_using_delta, bits_using_raw); in av1_palette_color_cost_uv()
|
D | pass2_strategy.c | 148 AOMMIN(av1_convert_qindex_to_q(q, bit_depth) * 0.01 + pt_low, pt_high); in calc_correction_factor() 222 AOMMAX(0.2, AOMMIN(5.0, get_linear_size_factor(cpi))); in get_twopass_worst_quality() 267 sr_diff = AOMMIN(sr_diff, SR_DIFF_MAX); in get_sr_decay_rate() 272 return AOMMAX(sr_decay, AOMMIN(DEFAULT_DECAY_LIMIT, modified_pct_inter)); in get_sr_decay_rate() 281 return AOMMIN(sr_decay, zero_motion_pct); in get_zero_motion_factor() 381 const double boost_q_correction = AOMMIN((0.5 + (lq * 0.015)), 1.5); in calc_frame_boost() 402 return AOMMIN(frame_boost, max_boost * boost_q_correction); in calc_frame_boost() 648 AOMMIN(max_bits, (int)total_group_bits)); in allocate_gf_group_bits() 811 AOMMIN(rc->max_gf_interval, get_fixed_gf_length(oxcf->gf_max_pyr_height)); in define_gf_group() 856 zero_motion_accumulator = AOMMIN( in define_gf_group() [all …]
|
D | aq_cyclicrefresh.c | 207 const int xmis = AOMMIN(cm->mi_cols - mi_col, bw); in av1_cyclic_refresh_update_segment() 208 const int ymis = AOMMIN(cm->mi_rows - mi_row, bh); in av1_cyclic_refresh_update_segment() 326 xmis = AOMMIN(cm->mi_cols - mi_col, cm->seq_params.mib_size); in cyclic_refresh_update_map() 327 ymis = AOMMIN(cm->mi_rows - mi_row, cm->seq_params.mib_size); in cyclic_refresh_update_map() 368 int qp_thresh = AOMMIN(20, rc->best_quality << 1); in av1_cyclic_refresh_update_parameters() 502 AOMMIN(CR_MAX_RATE_TARGET_RATIO, in av1_cyclic_refresh_setup()
|
D | encodemb.c | 381 mu_blocks_wide = AOMMIN(max_blocks_wide, mu_blocks_wide); in av1_foreach_transformed_block_in_plane() 382 mu_blocks_high = AOMMIN(max_blocks_high, mu_blocks_high); in av1_foreach_transformed_block_in_plane() 387 const int unit_height = AOMMIN(mu_blocks_high + r, max_blocks_high); in av1_foreach_transformed_block_in_plane() 390 const int unit_width = AOMMIN(mu_blocks_wide + c, max_blocks_wide); in av1_foreach_transformed_block_in_plane() 520 mu_blocks_wide = AOMMIN(mi_width, mu_blocks_wide); in av1_encode_sb() 521 mu_blocks_high = AOMMIN(mi_height, mu_blocks_high); in av1_encode_sb() 526 const int unit_height = AOMMIN(mu_blocks_high + idy, mi_height); in av1_encode_sb() 527 const int unit_width = AOMMIN(mu_blocks_wide + idx, mi_width); in av1_encode_sb()
|
/external/libaom/libaom/av1/common/x86/ |
D | warp_plane_sse4.c | 354 for (k = -7; k < AOMMIN(8, p_height - i); ++k) { in warp_horizontal_filter() 376 for (k = -7; k < AOMMIN(8, p_height - i); ++k) { in warp_horizontal_filter_alpha0() 403 for (k = -7; k < AOMMIN(8, p_height - i); ++k) { in warp_horizontal_filter_beta0() 428 for (k = -7; k < AOMMIN(8, p_height - i); ++k) { in warp_horizontal_filter_alpha0_beta0() 666 for (k = -4; k < AOMMIN(4, p_height - i - 4); ++k) { in warp_vertical_filter() 694 for (k = -4; k < AOMMIN(4, p_height - i - 4); ++k) { in warp_vertical_filter_gamma0() 725 for (k = -4; k < AOMMIN(4, p_height - i - 4); ++k) { in warp_vertical_filter_delta0() 752 for (k = -4; k < AOMMIN(4, p_height - i - 4); ++k) { in warp_vertical_filter_gamma0_delta0() 881 for (k = -7; k < AOMMIN(8, p_height - i); ++k) { in av1_warp_affine_sse4_1() 892 for (k = -7; k < AOMMIN(8, p_height - i); ++k) { in av1_warp_affine_sse4_1() [all …]
|
D | highbd_warp_plane_sse4.c | 170 for (k = -7; k < AOMMIN(8, p_height - i); ++k) { in highbd_warp_horizontal_filter_alpha0_beta0() 193 for (k = -7; k < AOMMIN(8, p_height - i); ++k) { in highbd_warp_horizontal_filter_alpha0() 223 for (k = -7; k < AOMMIN(8, p_height - i); ++k) { in highbd_warp_horizontal_filter_beta0() 245 for (k = -7; k < AOMMIN(8, p_height - i); ++k) { in highbd_warp_horizontal_filter() 369 for (k = -7; k < AOMMIN(8, p_height - i); ++k) { in av1_highbd_warp_affine_sse4_1() 380 for (k = -7; k < AOMMIN(8, p_height - i); ++k) { in av1_highbd_warp_affine_sse4_1() 395 for (k = -7; k < AOMMIN(8, p_height - i); ++k) { in av1_highbd_warp_affine_sse4_1() 444 for (k = -4; k < AOMMIN(4, p_height - i - 4); ++k) { in av1_highbd_warp_affine_sse4_1()
|
/external/libaom/libaom/av1/encoder/x86/ |
D | av1_fwd_txfm2d_sse4.c | 212 for (int j = 0; j < AOMMIN(4, height_div8); ++j) { in lowbd_fwd_txfm2d_64x64_sse4_1() 216 for (int i = 0; i < AOMMIN(4, height_div8); i++) { in lowbd_fwd_txfm2d_64x64_sse4_1() 258 for (int j = 0; j < AOMMIN(4, height_div8); ++j) { in lowbd_fwd_txfm2d_64x32_sse4_1() 263 for (int i = 0; i < AOMMIN(4, height_div8); i++) { in lowbd_fwd_txfm2d_64x32_sse4_1() 307 for (int j = 0; j < AOMMIN(4, height_div8); ++j) { in lowbd_fwd_txfm2d_32x64_sse4_1() 312 for (int i = 0; i < AOMMIN(4, height_div8); i++) { in lowbd_fwd_txfm2d_32x64_sse4_1()
|
/external/libaom/libaom/av1/common/arm/ |
D | av1_inv_txfm_neon.h | 138 const int eoby_max = AOMMIN(32, txfm_size_row) - 1; in get_eobx_eoby_scan_v_identity() 147 const int eobx_max = AOMMIN(32, txfm_size_col) - 1; in get_eobx_eoby_scan_h_identity()
|