/external/libaom/libaom/av1/encoder/ |
D | level.c | 568 AOMMAX(decoder_model->max_decode_rate, this_decode_rate); in av1_decoder_model_process_frame() 577 AOMMAX(decoder_model->last_bit_arrival_time, latest_arrival_time); in av1_decoder_model_process_frame() 685 AOMMAX(decoder_model->max_display_rate, this_display_rate); in av1_decoder_model_process_frame() 737 return AOMMAX(min_cr_basis * speed_adj, 0.8); in get_min_cr() 933 *max_tile_size = AOMMAX(*max_tile_size, tile_size); in get_tile_stats() 938 AOMMAX(*max_superres_tile_width, supperres_tile_width); in get_tile_stats() 994 const int64_t time_limit = AOMMAX(current_time - duration, 0); in count_frames() 1035 AOMMAX(level_spec->max_header_rate, frame_headers); in scan_past_frames() 1040 AOMMAX(level_spec->max_display_rate, display_samples); in scan_past_frames() 1042 AOMMAX(level_spec->max_decode_rate, decoded_samples); in scan_past_frames() [all …]
|
D | ratectrl.c | 176 return AOMMAX(FRAME_OVERHEAD_BITS, in av1_estimate_bits_at_q() 185 AOMMAX(rc->min_frame_bandwidth, rc->avg_frame_bandwidth >> 5); in av1_rc_clamp_pframe_target_size() 268 return AOMMAX(default_interval, in av1_rc_get_default_min_gf_interval() 279 interval = AOMMAX(MAX_GF_INTERVAL, interval); in av1_rc_get_default_max_gf_interval() 280 return AOMMAX(interval, min_gf_interval); in av1_rc_get_default_max_gf_interval() 398 AOMMAX(rc->q_1_frame, rc->q_2_frame)); in adjust_q_cbr() 409 return AOMMAX(AOMMIN(q, cpi->rc.worst_quality), cpi->rc.best_quality); in adjust_q_cbr() 772 active_best_quality = AOMMAX(qindex + delta_qindex, rc->best_quality); in rc_pick_q_and_bounds_one_pass_cbr() 837 *top_index = AOMMAX(*top_index, *bottom_index); in rc_pick_q_and_bounds_one_pass_cbr() 886 active_cq_level = AOMMAX( in get_active_cq_level() [all …]
|
D | mcomp.h | 176 mv_limits->row_min = AOMMAX(min1, min2); in av1_set_mv_row_limits() 189 mv_limits->col_min = AOMMAX(min1, min2); in av1_set_mv_col_limits() 305 AOMMAX(GET_MV_SUBPEL(mv_limits->col_min), ref_mv->col - max_mv); in av1_set_subpel_mv_search_range() 309 AOMMAX(GET_MV_SUBPEL(mv_limits->row_min), ref_mv->row - max_mv); in av1_set_subpel_mv_search_range() 313 subpel_limits->col_min = AOMMAX(MV_LOW + 1, minc); in av1_set_subpel_mv_search_range() 315 subpel_limits->row_min = AOMMAX(MV_LOW + 1, minr); in av1_set_subpel_mv_search_range()
|
D | ml.c | 76 layer->output[i] = AOMMAX(input[i], 0.0f); in nn_relu() 86 const float tmp = AOMMIN(AOMMAX(input[i], -10.0f), 10.0f); in nn_sigmoid() 147 for (int i = 1; i < n; i++) max_inp = AOMMAX(max_inp, input[i]); in av1_nn_softmax() 151 const float normalized_input = AOMMAX(input[i] - max_inp, -10.0f); in av1_nn_softmax()
|
D | pass2_strategy.c | 178 last_group_rate_err = AOMMAX(0.25, AOMMIN(4.0, last_group_rate_err)); in twopass_update_bpm_factor() 180 twopass->bpm_factor = AOMMAX(0.25, AOMMIN(4.0, twopass->bpm_factor)); in twopass_update_bpm_factor() 184 return 1350000 + ((300000 * AOMMIN(75, AOMMAX(rate_err_tol - 25, 0))) / 75); in qbpm_enumerator() 229 const int active_mbs = AOMMAX(1, num_mbs - (int)(num_mbs * inactive_zone)); in get_twopass_worst_quality() 246 if (cpi->oxcf.rc_mode == AOM_CQ) q = AOMMAX(q, oxcf->cq_level); in get_twopass_worst_quality() 282 return AOMMAX(sr_decay, AOMMIN(DEFAULT_DECAY_LIMIT, modified_pct_inter)); in get_sr_decay_rate() 303 return AOMMAX(zero_motion_factor, in get_prediction_decay_rate() 510 num_mbs = (int)AOMMAX(1, num_mbs * active_area); in calc_frame_boost() 513 frame_boost = AOMMAX(baseline_err_per_mb(frame_info) * num_mbs, in calc_frame_boost() 542 num_mbs = (int)AOMMAX(1, num_mbs * active_area); in calc_kf_frame_boost() [all …]
|
D | tpl_model.c | 50 *recon_error = AOMMAX(*recon_error, 1); in get_quantize_error() 53 *sse = AOMMAX(*sse, 1); in get_quantize_error() 378 tpl_stats->pred_error[rf_idx] = AOMMAX(1, inter_cost); in mode_estimation() 403 best_intra_cost = AOMMAX(best_intra_cost, 1); in mode_estimation() 447 tpl_stats->recrf_dist = AOMMAX(tpl_stats->srcrf_dist, tpl_stats->recrf_dist); in mode_estimation() 448 tpl_stats->recrf_rate = AOMMAX(tpl_stats->srcrf_rate, tpl_stats->recrf_rate); in mode_estimation() 642 intra_cost = AOMMAX(1, intra_cost); in tpl_model_store() 643 inter_cost = AOMMAX(1, inter_cost); in tpl_model_store() 644 srcrf_dist = AOMMAX(1, srcrf_dist); in tpl_model_store() 645 recrf_dist = AOMMAX(1, recrf_dist); in tpl_model_store() [all …]
|
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 | model_rd.h | 130 const int qstep = AOMMAX(p->dequant_QTX[1] >> dequant_shift, 1); in model_rd_with_curvfit() 146 int rate_i = (int)(AOMMAX(0.0, rate_f * num_samples) + 0.5); in model_rd_with_curvfit() 147 int64_t dist_i = (int64_t)(AOMMAX(0.0, dist_f * num_samples) + 0.5); in model_rd_with_curvfit()
|
D | cnn.c | 399 const int channel_step = AOMMAX(step, 1); in av1_cnn_convolve_c() 437 AOMMAX(output[i][u * out_stride + v], a); in av1_cnn_convolve_c() 478 AOMMAX(output[i][u * out_stride + v], a); in av1_cnn_convolve_c() 519 AOMMAX(output[i][u * out_stride + v], a); in av1_cnn_convolve_c() 537 const int out_w_step = AOMMAX(step, 1); in av1_cnn_convolve_c() 580 AOMMAX(0, top_filter_margin - h * layer_config->filter_width) * in av1_cnn_convolve_c() 583 const int start_ii = AOMMAX(0, h - ii_shift); in av1_cnn_convolve_c() 587 const int left_cstep = AOMMAX(0, jj_shift - w) * cstep; in av1_cnn_convolve_c() 589 AOMMAX(0, right_filter_margin + w) * cstep; in av1_cnn_convolve_c() 590 const int start_jj = AOMMAX(0, w - jj_shift); in av1_cnn_convolve_c() [all …]
|
D | extend.c | 109 AOMMAX(src->y_width + dst->border, ALIGN_POWER_OF_TWO(src->y_width, 6)) - in av1_copy_and_extend_frame() 111 const int eb_y = AOMMAX(src->y_height + dst->border, 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 | 195 int maxv = AOMMAX(abs(mv->row), abs(mv->col)) >> 3; in av1_encode_mv() 197 AOMMAX(maxv, cpi->mv_search_params.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 | 48 tiles->min_log2 = AOMMAX(tiles->min_log2, tiles->min_log2_cols); in av1_get_tile_limits() 75 tiles->min_log2_rows = AOMMAX(tiles->min_log2 - tiles->log2_cols, 0); in av1_calculate_tile_cols() 90 widest_tile_sb = AOMMAX(widest_tile_sb, size_sb); in av1_calculate_tile_cols() 98 tiles->max_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() 806 sum += filter[k] * input[AOMMAX(AOMMIN(pk, in_length - 1), 0)]; in highbd_interpolate_core() 818 sum += filter[k] * input[AOMMAX(int_pel - interp_taps / 2 + 1 + k, 0)]; in highbd_interpolate_core() 871 (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() 167 len = AOMMAX(width_16x16, len); in scan_row_mbmi() 169 len = AOMMAX(len, width_8x8); in scan_row_mbmi() 176 weight = AOMMAX(weight, inc); in scan_row_mbmi() 214 len = AOMMAX(n8_h_16, len); in scan_col_mbmi() 216 len = AOMMAX(len, n8_h_8); in scan_col_mbmi() 223 weight = AOMMAX(weight, inc); in scan_col_mbmi() 479 const int bs = AOMMAX(xd->width, xd->height); in setup_ref_mv_list() 542 const int voffset = AOMMAX(mi_size_high[BLOCK_8X8], xd->height); in setup_ref_mv_list() 543 const int hoffset = AOMMAX(mi_size_wide[BLOCK_8X8], xd->width); 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/aom_dsp/ |
D | noise_util.c | 99 const float c0 = AOMMAX((float)fabs(c[0]), 1e-8f); in aom_noise_tx_filter() 100 const float c1 = AOMMAX((float)fabs(c[1]), 1e-8f); in aom_noise_tx_filter() 103 noise_tx->tx_block[2 * i + 0] *= (p - psd[i]) / AOMMAX(p, kEps); in aom_noise_tx_filter() 104 noise_tx->tx_block[2 * i + 1] *= (p - psd[i]) / AOMMAX(p, kEps); in aom_noise_tx_filter()
|
D | noise_model.c | 298 const int i_lo = AOMMAX(0, i - 1); in aom_noise_strength_solver_solve() 350 for (int i = AOMMAX(start, 1); i < AOMMIN(end, lut->num_points - 1); ++i) { in update_piecewise_linear_residual() 351 const int lower = AOMMAX(0, (int)floor(noise_strength_solver_get_bin_index( in update_piecewise_linear_residual() 627 const double ratio = (e1 / AOMMAX(e2, 1e-6)); in aom_flat_block_finder_run() 913 AOMMAX(noise_var / 16, noise_var - pow(corr * luma_strength, 2))); in add_noise_std_observations() 998 const double noise_var = AOMMAX(var - sum_covar, 1e-6); in ar_equation_system_solve() 999 state->ar_gain = AOMMAX(1, sqrt(AOMMAX(var / noise_var, 1e-6))); in ar_equation_system_solve() 1174 AOMMAX(scaling_points[c].points[i][1], max_scaling_value); in aom_noise_model_get_grain_parameters() 1212 max_coeff = AOMMAX(max_coeff, eqns->x[i]); in aom_noise_model_get_grain_parameters() 1238 max_coeff = AOMMAX(max_coeff, y_corr[c - 1]); in aom_noise_model_get_grain_parameters() [all …]
|
D | aom_dsp_common.h | 29 #define AOMMAX(x, y) (((x) > (y)) ? (x) : (y)) macro
|
/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/decoder/ |
D | detokenize.c | 41 for (int j = AOMMIN(i, cols - 1); j >= AOMMAX(0, i - rows + 1); --j) { in decode_color_map_tokens()
|
/external/libaom/libaom/test/ |
D | edge_detect_test.cc | 37 int offset = AOMMAX(AOMMIN(i, w - 1), 0) + w * AOMMAX(AOMMIN(j, h - 1), 0); in get_nearest_pix()
|