/external/libaom/libaom/av1/encoder/ |
D | level.c | 269 return AOMMAX(min_cr_basis * speed_adj, 0.8); in get_min_cr() 404 *max_tile_size = AOMMAX(*max_tile_size, tile_size); in get_tile_stats() 409 AOMMAX(*max_superres_tile_width, supperres_tile_width); in get_tile_stats() 462 const int64_t time_limit = AOMMAX(current_time - duration, 0); in count_frames() 500 AOMMAX(level_spec->max_header_rate, frame_headers); in scan_past_frames() 502 AOMMAX(level_spec->max_display_rate, display_samples); in scan_past_frames() 504 AOMMAX(level_spec->max_decode_rate, decoded_samples); in scan_past_frames() 505 level_spec->max_tile_rate = AOMMAX(level_spec->max_tile_rate, tiles); in scan_past_frames() 569 AOMMAX(level_stats->max_tile_size, max_tile_size); in av1_update_level_info() 571 AOMMAX(level_stats->max_superres_tile_width, max_superres_tile_width); in av1_update_level_info() [all …]
|
D | ratectrl.c | 170 return AOMMAX(FRAME_OVERHEAD_BITS, in av1_estimate_bits_at_q() 179 AOMMAX(rc->min_frame_bandwidth, rc->avg_frame_bandwidth >> 5); in av1_rc_clamp_pframe_target_size() 242 return AOMMAX(default_interval, in av1_rc_get_default_min_gf_interval() 253 interval = AOMMAX(MAX_GF_INTERVAL, interval); in av1_rc_get_default_max_gf_interval() 254 return AOMMAX(interval, min_gf_interval); in av1_rc_get_default_max_gf_interval() 571 AOMMAX(cpi->rc.q_1_frame, cpi->rc.q_2_frame)); in av1_rc_regulate_q() 718 active_best_quality = AOMMAX(qindex + delta_qindex, rc->best_quality); in rc_pick_q_and_bounds_one_pass_cbr() 782 *top_index = AOMMAX(*top_index, *bottom_index); in rc_pick_q_and_bounds_one_pass_cbr() 826 AOMMAX(active_cq_level - ((superres_denom - SCALE_NUMERATOR) * 4), 0); in get_active_cq_level() 860 active_best_quality = AOMMAX(qindex + delta_qindex, rc->best_quality); in rc_pick_q_and_bounds_one_pass_vbr() [all …]
|
D | pass2_strategy.c | 210 const int active_mbs = AOMMAX(1, num_mbs - (int)(num_mbs * inactive_zone)); in get_twopass_worst_quality() 222 AOMMAX(0.2, AOMMIN(5.0, get_linear_size_factor(cpi))); in get_twopass_worst_quality() 235 if (cpi->oxcf.rc_mode == AOM_CQ) q = AOMMAX(q, oxcf->cq_level); in get_twopass_worst_quality() 272 return AOMMAX(sr_decay, AOMMIN(DEFAULT_DECAY_LIMIT, modified_pct_inter)); in get_sr_decay_rate() 293 return AOMMAX(zero_motion_factor, in get_prediction_decay_rate() 386 num_mbs = (int)AOMMAX(1, num_mbs * calculate_active_area(cpi, this_frame)); in calc_frame_boost() 492 arf_boost = AOMMAX(arf_boost, MIN_ARF_GF_BOOST); in calc_arf_boost() 564 return AOMMAX((int)(((int64_t)boost * total_group_bits) / allocation_chunks), in calculate_boost_bits() 967 rc->gfu_boost = AOMMAX((int)boost_score, MIN_ARF_GF_BOOST); in define_gf_group() 981 AOMMAX(MIN_FWD_KF_INTERVAL, rc->min_gf_interval)) && in define_gf_group() [all …]
|
D | ml.c | 65 for (int i = 1; i < n; i++) max_inp = AOMMAX(max_inp, input[i]); in av1_nn_softmax() 69 const float normalized_input = AOMMAX(input[i] - max_inp, -10.0f); in av1_nn_softmax()
|
D | palette.c | 59 int bits_per_delta = AOMMAX(av1_ceil_log2(max_delta + 1 - min_val), min_bits); in delta_encode_cost() 114 return AOMMAX(av1_ceil_log2(max_d + 1), *min_bits); in av1_get_palette_delta_bits_v()
|
D | tpl_model.c | 46 *recon_error = AOMMAX(*recon_error, 1); in get_quantize_error() 49 *sse = AOMMAX(*sse, 1); in get_quantize_error() 234 best_intra_cost = AOMMAX(best_intra_cost, 1); in mode_estimation() 364 intra_cost = AOMMAX(1, intra_cost); in tpl_model_store() 365 inter_cost = AOMMAX(1, inter_cost); in tpl_model_store() 543 lst_index = AOMMAX(0, frame_idx - 1); in init_gop_frames()
|
D | extend.c | 113 AOMMAX(src->y_width + 16, ALIGN_POWER_OF_TWO(src->y_width, 6)) - in av1_copy_and_extend_frame() 116 AOMMAX(src->y_height + 16, ALIGN_POWER_OF_TWO(src->y_height, 6)) - in av1_copy_and_extend_frame()
|
D | av1_multi_thread.c | 43 AOMMAX(1, (av1_get_sb_cols_in_tile(cm, this_tile->tile_info) - in av1_row_mt_mem_alloc()
|
D | encodemv.c | 157 unsigned int maxv = AOMMAX(abs(mv->row), abs(mv->col)) >> 3; in av1_encode_mv() 158 cpi->max_mv_magnitude = AOMMAX(maxv, cpi->max_mv_magnitude); in av1_encode_mv()
|
/external/libaom/libaom/av1/common/ |
D | cdef_block.c | 134 if (p0 != CDEF_VERY_LARGE) max = AOMMAX(p0, max); in cdef_filter_block_c() 135 if (p1 != CDEF_VERY_LARGE) max = AOMMAX(p1, max); in cdef_filter_block_c() 142 if (s0 != CDEF_VERY_LARGE) max = AOMMAX(s0, max); in cdef_filter_block_c() 143 if (s1 != CDEF_VERY_LARGE) max = AOMMAX(s1, max); in cdef_filter_block_c() 144 if (s2 != CDEF_VERY_LARGE) max = AOMMAX(s2, max); in cdef_filter_block_c() 145 if (s3 != CDEF_VERY_LARGE) max = AOMMAX(s3, max); in cdef_filter_block_c()
|
D | cdef.h | 31 const int shift = AOMMAX(0, damping - get_msb(threshold)); in constrain() 33 AOMMIN(abs(diff), AOMMAX(0, threshold - (abs(diff) >> shift))); in constrain()
|
D | tile_common.c | 44 cm->min_log2_tiles = AOMMAX(cm->min_log2_tiles, cm->min_log2_tile_cols); in av1_get_tile_limits() 69 cm->min_log2_tile_rows = AOMMAX(cm->min_log2_tiles - cm->log2_tile_cols, 0); in av1_calculate_tile_cols() 84 widest_tile_sb = AOMMAX(widest_tile_sb, size_sb); in av1_calculate_tile_cols() 92 cm->max_tile_height_sb = AOMMAX(max_tile_area_sb / widest_tile_sb, 1); in av1_calculate_tile_cols()
|
D | resize.c | 277 sum += filter[k] * input[AOMMAX(AOMMIN(pk, in_length - 1), 0)]; in interpolate_core() 289 sum += filter[k] * input[AOMMAX(int_pel - interp_taps / 2 + 1 + k, 0)]; in interpolate_core() 362 sum += filter[k] * input[AOMMAX(AOMMIN(pk, in_length - 1), 0)]; in interpolate_core_double_prec() 374 sum += filter[k] * input[AOMMAX(int_pel - interp_taps / 2 + 1 + k, 0)]; in interpolate_core_double_prec() 451 (input[AOMMAX(i - j, 0)] + input[AOMMIN(i + 1 + j, length - 1)]) * in down2_symeven() 462 sum += (input[AOMMAX(i - j, 0)] + input[i + 1 + j]) * filter[j]; in down2_symeven() 650 (uint8_t *)aom_malloc(sizeof(uint8_t) * AOMMAX(width, height)); in av1_resize_plane() 805 sum += filter[k] * input[AOMMAX(AOMMIN(pk, in_length - 1), 0)]; in highbd_interpolate_core() 817 sum += filter[k] * input[AOMMAX(int_pel - interp_taps / 2 + 1 + k, 0)]; in highbd_interpolate_core() 870 (input[AOMMAX(0, i - j)] + input[AOMMIN(i + 1 + j, length - 1)]) * in highbd_down2_symeven() [all …]
|
D | mvref_common.c | 29 : AOMMAX(num, -MAX_FRAME_DISTANCE); in get_mv_projection() 168 len = AOMMAX(n8_w_16, len); in scan_row_mbmi() 170 len = AOMMAX(len, n8_w_8); in scan_row_mbmi() 177 weight = AOMMAX(weight, inc); in scan_row_mbmi() 217 len = AOMMAX(n8_h_16, len); in scan_col_mbmi() 219 len = AOMMAX(len, n8_h_8); in scan_col_mbmi() 226 weight = AOMMAX(weight, inc); in scan_col_mbmi() 498 const int bs = AOMMAX(xd->n4_w, xd->n4_h); in setup_ref_mv_list() 561 const int voffset = AOMMAX(mi_size_high[BLOCK_8X8], xd->n4_h); in setup_ref_mv_list() 562 const int hoffset = AOMMAX(mi_size_wide[BLOCK_8X8], xd->n4_w); in setup_ref_mv_list() [all …]
|
D | odintrin.h | 46 #define OD_MAXI AOMMAX
|
D | cdef_block_simd.h | 244 pri_damping = AOMMAX(0, pri_damping - get_msb(pri_strength)); in SIMD_FUNC() 246 sec_damping = AOMMAX(0, sec_damping - get_msb(sec_strength)); in SIMD_FUNC() 411 pri_damping = AOMMAX(0, pri_damping - get_msb(pri_strength)); in SIMD_FUNC() 413 sec_damping = AOMMAX(0, sec_damping - get_msb(sec_strength)); in SIMD_FUNC() 557 pri_damping = AOMMAX(0, pri_damping - get_msb(pri_strength)); in SIMD_FUNC() 559 sec_damping = AOMMAX(0, sec_damping - get_msb(sec_strength)); in SIMD_FUNC() 714 pri_damping = AOMMAX(0, pri_damping - get_msb(pri_strength)); in SIMD_FUNC() 716 sec_damping = AOMMAX(0, sec_damping - get_msb(sec_strength)); in SIMD_FUNC()
|
/external/libaom/libaom/common/ |
D | obudec.c | 231 if (obudec_grow_buffer(AOMMAX(*obu_buffer_capacity, OBU_MAX_HEADER_SIZE), in obudec_read_one_obu() 237 AOMMAX(*obu_buffer_capacity, OBU_MAX_HEADER_SIZE); in obudec_read_one_obu() 255 obudec_grow_buffer(AOMMAX(*obu_buffer_capacity, obu_payload_length), in obudec_read_one_obu()
|
/external/libaom/libaom/av1/common/x86/ |
D | highbd_inv_txfm_sse4.c | 320 const int log_range_out = AOMMAX(16, bd + 6); in idct32_stage9_sse4_1() 321 const __m128i clamp_lo_out = _mm_set1_epi32(AOMMAX( in idct32_stage9_sse4_1() 430 const int log_range = AOMMAX(16, bd + 6); in idct4x4_sse4_1() 499 const int log_range = AOMMAX(16, bd + 6); in iadst4x4_sse4_1() 628 const int log_range = AOMMAX(16, bd + 6); in iidentity4_sse4_1() 788 const int log_range = AOMMAX(16, bd + (do_cols ? 6 : 8)); in idct8x8_sse4_1() 883 const int log_range_out = AOMMAX(16, bd + 6); in idct8x8_sse4_1() 884 const __m128i clamp_lo_out = _mm_set1_epi32(AOMMAX( in idct8x8_sse4_1() 917 const int log_range = AOMMAX(16, bd + (do_cols ? 6 : 8)); in iadst8x8_sse4_1() 1057 const int log_range_out = AOMMAX(16, bd + 6); in iadst8x8_sse4_1() [all …]
|
D | highbd_inv_txfm_avx2.c | 422 const int log_range_out = AOMMAX(16, bd + 6); in idct32_stage9_avx2() 423 const __m256i clamp_lo_out = _mm256_set1_epi32(AOMMAX( in idct32_stage9_avx2() 468 const int log_range = AOMMAX(16, bd + (do_cols ? 6 : 8)); in idct32_low1_avx2() 490 const int log_range_out = AOMMAX(16, bd + 6); in idct32_low1_avx2() 491 const __m256i clamp_lo_out = _mm256_set1_epi32(AOMMAX( in idct32_low1_avx2() 566 const int log_range = AOMMAX(16, bd + (do_cols ? 6 : 8)); in idct32_low8_avx2() 691 const int log_range = AOMMAX(16, bd + (do_cols ? 6 : 8)); in idct32_low16_avx2() 853 const int log_range = AOMMAX(16, bd + (do_cols ? 6 : 8)); in idct32_avx2() 1171 const int log_range_out = AOMMAX(16, bd + 6); in idct32_avx2() 1172 const __m256i clamp_lo_out = _mm256_set1_epi32(AOMMAX( in idct32_avx2() [all …]
|
/external/libaom/libaom/aom_dsp/ |
D | noise_model.c | 297 const int i_lo = AOMMAX(0, 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() 350 const int lower = AOMMAX(0, (int)floor(noise_strength_solver_get_bin_index( in update_piecewise_linear_residual() 623 const double ratio = (e1 / AOMMAX(e2, 1e-6)); in aom_flat_block_finder_run() 907 AOMMAX(noise_var / 16, noise_var - pow(corr * luma_strength, 2))); in add_noise_std_observations() 992 const double noise_var = AOMMAX(var - sum_covar, 1e-6); in ar_equation_system_solve() 993 state->ar_gain = AOMMAX(1, sqrt(AOMMAX(var / noise_var, 1e-6))); in ar_equation_system_solve() 1168 AOMMAX(scaling_points[c].points[i][1], max_scaling_value); in aom_noise_model_get_grain_parameters() 1206 max_coeff = AOMMAX(max_coeff, eqns->x[i]); in aom_noise_model_get_grain_parameters() 1232 max_coeff = AOMMAX(max_coeff, y_corr[c - 1]); in aom_noise_model_get_grain_parameters() [all …]
|
D | noise_util.c | 101 noise_tx->tx_block[2 * i + 0] *= (p - psd[i]) / AOMMAX(p, kEps); in aom_noise_tx_filter() 102 noise_tx->tx_block[2 * i + 1] *= (p - psd[i]) / AOMMAX(p, kEps); in aom_noise_tx_filter()
|
D | aom_dsp_common.h | 29 #define AOMMAX(x, y) (((x) > (y)) ? (x) : (y)) macro
|
/external/libaom/libaom/test/ |
D | edge_detect_test.cc | 35 int offset = AOMMAX(AOMMIN(i, w - 1), 0) + w * AOMMAX(AOMMIN(j, h - 1), 0); in get_nearest_pix()
|
D | av1_inv_txfm2d_test.cc | 116 actual_max_error = AOMMAX(actual_max_error, this_error); in RunRoundtripCheck() 272 run_times = AOMMAX(1, run_times); in RunAV1InvTxfm2dTest()
|
/external/libaom/libaom/av1/decoder/ |
D | detokenize.c | 41 for (int j = AOMMIN(i, cols - 1); j >= AOMMAX(0, i - rows + 1); --j) { in decode_color_map_tokens()
|