Home
last modified time | relevance | path

Searched refs:rdmult (Results 1 – 25 of 46) sorted by relevance

12

/external/libvpx/libvpx/vp9/encoder/
Dvp9_rd.c203 uint32_t rdmult = q * q; in vp9_compute_rd_mult_based_on_qindex() local
207 rdmult = rdmult * 4; in vp9_compute_rd_mult_based_on_qindex()
209 rdmult = rdmult * 4 + rdmult / 2; in vp9_compute_rd_mult_based_on_qindex()
211 rdmult = rdmult * 3; in vp9_compute_rd_mult_based_on_qindex()
214 rdmult = rdmult * 4; in vp9_compute_rd_mult_based_on_qindex()
216 rdmult = rdmult * 3 + rdmult / 2; in vp9_compute_rd_mult_based_on_qindex()
218 rdmult = rdmult * 4 + rdmult / 2; in vp9_compute_rd_mult_based_on_qindex()
220 rdmult = rdmult * 7 + rdmult / 2; in vp9_compute_rd_mult_based_on_qindex()
224 case VPX_BITS_10: rdmult = ROUND_POWER_OF_TWO(rdmult, 4); break; in vp9_compute_rd_mult_based_on_qindex()
225 case VPX_BITS_12: rdmult = ROUND_POWER_OF_TWO(rdmult, 8); break; in vp9_compute_rd_mult_based_on_qindex()
[all …]
Dvp9_rdopt.c844 rd = RDCOST(x->rdmult, x->rddiv, 0, dist); in block_rd_txfm()
853 rd1 = RDCOST(x->rdmult, x->rddiv, rate, dist); in block_rd_txfm()
854 rd2 = RDCOST(x->rdmult, x->rddiv, 0, sse); in block_rd_txfm()
1001 rd[n][0] = rd[n][1] = RDCOST(x->rdmult, x->rddiv, s1, sse[n]); in choose_tx_size_from_rd()
1004 rd[n][0] = RDCOST(x->rdmult, x->rddiv, s1, sse[n]); in choose_tx_size_from_rd()
1005 rd[n][1] = RDCOST(x->rdmult, x->rddiv, s1 + r_tx_size, sse[n]); in choose_tx_size_from_rd()
1008 rd[n][0] = RDCOST(x->rdmult, x->rddiv, r[n][0] + s0, d[n]); in choose_tx_size_from_rd()
1009 rd[n][1] = RDCOST(x->rdmult, x->rddiv, r[n][1] + s0, d[n]); in choose_tx_size_from_rd()
1013 rd[n][0] = VPXMIN(rd[n][0], RDCOST(x->rdmult, x->rddiv, s1, sse[n])); in choose_tx_size_from_rd()
1014 rd[n][1] = VPXMIN(rd[n][1], RDCOST(x->rdmult, x->rddiv, s1, sse[n])); in choose_tx_size_from_rd()
[all …]
Dvp9_rd.h196 static INLINE void set_error_per_bit(MACROBLOCK *x, int rdmult) { in set_error_per_bit() argument
197 x->errorperbit = rdmult >> RD_EPB_SHIFT; in set_error_per_bit()
Dvp9_aq_cyclicrefresh.h50 int rdmult; member
Dvp9_encodemb.c86 const int64_t rdadj = (int64_t)mb->rdmult * plane_rd_mult[ref][plane_type]; in vp9_optimize_b()
87 const int64_t rdmult = in vp9_optimize_b() local
128 best_block_rd_cost = RDCOST(rdmult, rddiv, rate0, accu_error); in vp9_optimize_b()
236 rd_cost0 = RDCOST(rdmult, rddiv, (rate0 + next_bits0), distortion0); in vp9_optimize_b()
237 rd_cost1 = RDCOST(rdmult, rddiv, (rate1 + next_bits1), distortion1); in vp9_optimize_b()
239 eob_cost0 = RDCOST(rdmult, rddiv, (accu_rate + rate0 + next_eob_bits0), in vp9_optimize_b()
244 RDCOST(rdmult, rddiv, (accu_rate + rate1 + next_eob_bits1), in vp9_optimize_b()
Dvp9_block.h94 int rdmult; member
/external/libvpx/libvpx/vp8/encoder/
Dencodemb.c159 int rdmult; in optimize_b() local
187 rdmult = mb->rdmult * err_mult; in optimize_b()
189 rdmult = (rdmult * 9) >> 4; in optimize_b()
225 rd_cost0 = RDCOST(rdmult, rddiv, rate0, error0); in optimize_b()
226 rd_cost1 = RDCOST(rdmult, rddiv, rate1, error1); in optimize_b()
228 rd_cost0 = RDTRUNC(rdmult, rddiv, rate0, error0); in optimize_b()
229 rd_cost1 = RDTRUNC(rdmult, rddiv, rate1, error1); in optimize_b()
282 rd_cost0 = RDCOST(rdmult, rddiv, rate0, error0); in optimize_b()
283 rd_cost1 = RDCOST(rdmult, rddiv, rate1, error1); in optimize_b()
285 rd_cost0 = RDTRUNC(rdmult, rddiv, rate0, error0); in optimize_b()
[all …]
Dencodeframe.c304 x->rdmult += *(x->mb_activity_ptr) * (x->rdmult >> 2); in vp8_activity_masking()
305 x->errorperbit = x->rdmult * 100 / (110 * x->rddiv); in vp8_activity_masking()
316 x->rdmult = (unsigned int)(((int64_t)x->rdmult * b + (a >> 1)) / a); in vp8_activity_masking()
317 x->errorperbit = x->rdmult * 100 / (110 * x->rddiv); in vp8_activity_masking()
412 x->rdmult = cpi->RDMULT; in encode_mb_row()
Dblock.h88 int rdmult; member
Drdopt.c566 this_rd = RDCOST(x->rdmult, x->rddiv, rate, distortion); in rd_pick_intra4x4block()
643 return RDCOST(mb->rdmult, mb->rddiv, cost, distortion); in rd_pick_intra4x4mby_modes()
668 this_rd = RDCOST(x->rdmult, x->rddiv, rate, distortion); in rd_pick_intra16x16mby_mode()
722 return RDCOST(x->rdmult, x->rddiv, *rate, *distortion); in rd_inter16x16_uv()
741 return RDCOST(x->rdmult, x->rddiv, *rate, *distortion); in rd_inter4x4_uv()
779 this_rd = RDCOST(x->rdmult, x->rddiv, this_rate, this_distortion); in rd_pick_intra_mbuv_mode()
988 this_segment_rd += RDCOST(x->rdmult, x->rddiv, rate, 0); in rd_check_segment()
1140 this_rd = RDCOST(x->rdmult, x->rddiv, rate, distortion); in rd_check_segment()
1624 return RDCOST(x->rdmult, x->rddiv, rd->rate2, rd->distortion2); in evaluate_inter_mode_rd()
1704 this_rd = RDCOST(x->rdmult, x->rddiv, rd->rate2, rd->distortion2); in calculate_final_rd_costs()
[all …]
/external/libaom/libaom/av1/encoder/
Drd.c345 int rdmult = q * q; in av1_compute_rd_mult_based_on_qindex() local
346 rdmult = rdmult * 3 + (rdmult * 2 / 3); in av1_compute_rd_mult_based_on_qindex()
349 case AOM_BITS_10: rdmult = ROUND_POWER_OF_TWO(rdmult, 4); break; in av1_compute_rd_mult_based_on_qindex()
350 case AOM_BITS_12: rdmult = ROUND_POWER_OF_TWO(rdmult, 8); break; in av1_compute_rd_mult_based_on_qindex()
355 return rdmult > 0 ? rdmult : 1; in av1_compute_rd_mult_based_on_qindex()
359 int64_t rdmult = av1_compute_rd_mult_based_on_qindex(cpi, qindex); in av1_compute_rd_mult() local
366 rdmult = (rdmult * rd_frame_type_factor[frame_type]) >> 7; in av1_compute_rd_mult()
367 rdmult += ((rdmult * rd_boost_factor[boost_index]) >> 7); in av1_compute_rd_mult()
369 return (int)rdmult; in av1_compute_rd_mult()
396 int64_t rdmult = 0; in av1_get_adaptive_rdmult() local
[all …]
Dcompound_type.c245 rd = RDCOST(x->rdmult, rate, dist); in pick_wedge()
256 RDCOST(x->rdmult, x->wedge_idx_cost[bsize][*best_wedge_index], 0); in pick_wedge()
288 rd = RDCOST(x->rdmult, rate, dist); in pick_wedge_fixed_sign()
297 RDCOST(x->rdmult, x->wedge_idx_cost[bsize][*best_wedge_index], 0); in pick_wedge_fixed_sign()
369 const int64_t rd0 = RDCOST(x->rdmult, rate, dist); in pick_interinter_seg()
470 int64_t rd = RDCOST(x->rdmult, rate + rmode, dist); in compute_best_interintra_mode()
510 const int64_t mode_rd = RDCOST(x->rdmult, total_mode_rate, 0); in compute_rd_thresh()
533 const int64_t total_rd = rd + RDCOST(x->rdmult, rate_overhead, 0); in compute_best_wedge_interintra()
626 rd = RDCOST(x->rdmult, total_mode_rate + rd_stats.rate, rd_stats.dist); in av1_handle_inter_intra_mode()
701 best_interintra_rd_wedge += RDCOST(x->rdmult, rate_overhead + *rate_mv, 0); in av1_handle_inter_intra_mode()
[all …]
Dencodetxb.c407 stats->rd = RDCOST(txb_info->rdmult, stats->rate, stats->dist);
427 stats->rd_low = RDCOST(txb_info->rdmult, stats->rate_low, stats->dist_low);
446 int64_t rd_eob = RDCOST(txb_info->rdmult, qc_eob_cost, stats->dist);
452 RDCOST(txb_info->rdmult, low_qc_eob_cost, stats->dist_low);
1029 cur_eob_rd_cost = RDCOST(txb_info->rdmult, cur_eob_rate, 0);
1031 RDCOST(txb_info->rdmult, accu_rate, accu_dist) + stats.nz_rd;
1115 RDCOST(txb_info->rdmult, accu_rate + non_zero_blk_rate, accu_dist);
1119 int64_t zero_blk_rd_cost = RDCOST(txb_info->rdmult, zero_blk_rate, 0);
1375 chunk = txb_info->rdmult & 0xff;
1502 TX_CLASS tx_class, int bwl, int height, int64_t rdmult, int shift, argument
[all …]
Dtx_search.c836 fprintf(fout, " %d %" PRId64, x->rdmult, rd); in PrintTransformUnitStats()
970 (double)RDCOST(x->rdmult, rd_stats->rate, rd_stats->dist) / num_samples; in PrintPredictionUnitStats()
1005 fprintf(fout, " %d %d %d %d", q_step, x->rdmult, bw, bh); in PrintPredictionUnitStats()
1012 (double)RDCOST(x->rdmult, model_rate, model_dist) / num_samples; in PrintPredictionUnitStats()
1048 (double)RDCOST(x->rdmult, est_residue_cost, est_dist) / num_samples; in PrintPredictionUnitStats()
1400 rds_h[idx] = RDCOST(x->rdmult, rate_cost, dist); in prune_txk_type_separ()
1430 rds_v[idx] = RDCOST(x->rdmult, rate_cost, dist); in prune_txk_type_separ()
1516 rds[num_cand] = RDCOST(x->rdmult, rate_cost, dist); in prune_txk_type()
2245 RDCOST(x->rdmult, 0, AOMMIN(this_rd_stats.dist, this_rd_stats.sse)); in search_tx_type()
2258 if (RDCOST(x->rdmult, rate_cost, 0) > best_rd) continue; in search_tx_type()
[all …]
Dencodeframe.c251 const int mi_col, int *const rdmult) { in set_ssim_rdmult() argument
279 *rdmult = (int)((double)(*rdmult) * geom_mean_of_scale + 0.5); in set_ssim_rdmult()
280 *rdmult = AOMMAX(*rdmult, 0); in set_ssim_rdmult()
281 set_error_per_bit(x, *rdmult); in set_ssim_rdmult()
322 int rdmult = (int)((double)orig_rdmult * geom_mean_of_scale + 0.5); in get_hier_tpl_rdmult() local
323 rdmult = AOMMAX(rdmult, 0); in get_hier_tpl_rdmult()
324 set_error_per_bit(x, rdmult); in get_hier_tpl_rdmult()
328 assert(rdmult_sb == rdmult); in get_hier_tpl_rdmult()
331 return rdmult; in get_hier_tpl_rdmult()
349 x->rdmult = cpi->rd.RDMULT; in setup_block_rdmult()
[all …]
Dtune_vmaf.h25 int mi_row, int mi_col, int *rdmult);
Dintra_mode_search.c237 RDCOST(x->rdmult, this_rd_stats.rate + mode_cost, this_rd_stats.dist); in intra_model_yrd()
284 this_rd = RDCOST(x->rdmult, this_rate, tokenonly_rd_stats.dist); in calc_rd_given_intra_angle()
443 this_rd = RDCOST(x->rdmult, this_rate, tokenonly_rd_stats.dist); in rd_pick_filter_intra_sby()
610 int64_t this_rd = RDCOST(x->rdmult, this_rate, tokenonly_rd_stats.dist); in palette_rd_y()
1134 this_rd = RDCOST(x->rdmult, this_rate, tokenonly_rd_stats.dist); in rd_pick_palette_intra_sbuv()
1247 this_rd = RDCOST(x->rdmult, this_rate, tokenonly_rd_stats.dist); in pick_intra_angle_routine_sbuv()
1335 RDCOST(x->rdmult, in cfl_rd_pick_alpha()
1366 RDCOST(x->rdmult, rd_stats.rate + alpha_rate, rd_stats.dist); in cfl_rd_pick_alpha()
1395 RDCOST(x->rdmult, rd_stats.rate + alpha_rate, rd_stats.dist); in cfl_rd_pick_alpha()
1498 this_rd = RDCOST(x->rdmult, this_rate, tokenonly_rd_stats.dist); in av1_rd_pick_intra_sbuv_mode()
[all …]
Daq_cyclicrefresh.h48 int rdmult; member
Dpicklpf.c196 if (best_cost_ret) *best_cost_ret = RDCOST_DBL(x->rdmult, 0, best_err); in search_filter_level()
208 cpi->td.mb.rdmult = cpi->rd.RDMULT; in av1_pick_filter_level()
Dtune_vmaf.c596 const int mi_col, int *const rdmult) { in av1_set_vmaf_rdmult() argument
622 *rdmult = (int)((double)(*rdmult) * geom_mean_of_scale + 0.5); in av1_set_vmaf_rdmult()
623 *rdmult = AOMMAX(*rdmult, 0); in av1_set_vmaf_rdmult()
624 set_error_per_bit(x, *rdmult); in av1_set_vmaf_rdmult()
Dencodetxb.h48 int64_t rdmult; member
Drdopt.c403 void av1_inter_mode_data_fit(TileDataEnc *tile_data, int rdmult) { in av1_inter_mode_data_fit() argument
450 (void)rdmult; in av1_inter_mode_data_fit()
1491 est_rd = RDCOST(x->rdmult, rd_stats->rate + est_residue_cost, est_dist); in motion_mode_rd()
1504 ? RDCOST(x->rdmult, mode_rate, (sse_y << 4)) in motion_mode_rd()
1531 skip_rd = RDCOST(x->rdmult, rd_stats->rate, curr_sse); in motion_mode_rd()
1532 skip_rdy = RDCOST(x->rdmult, rd_stats->rate, (sse_y << 4)); in motion_mode_rd()
1550 const int64_t curr_rd = RDCOST(x->rdmult, rd_stats->rate, rd_stats->dist); in motion_mode_rd()
1573 const int64_t tmp_rd = RDCOST(x->rdmult, rd_stats->rate, rd_stats->dist); in motion_mode_rd()
1655 rd_stats->rdcost = RDCOST(x->rdmult, rd_stats->rate, rd_stats->dist); in skip_mode_rd()
1875 if (RDCOST(x->rdmult, est_rd_rate, 0) > ref_best_rd && in ref_mv_idx_early_breakout()
[all …]
Drd.h283 static INLINE void set_error_per_bit(MACROBLOCK *x, int rdmult) { in set_error_per_bit() argument
284 x->errorperbit = rdmult >> RD_EPB_SHIFT; in set_error_per_bit()
Dmodel_rd.h153 } else if (RDCOST(x->rdmult, rate_i, dist_i) >= in model_rd_with_curvfit()
154 RDCOST(x->rdmult, 0, sse << 4)) { in model_rd_with_curvfit()
/external/libaom/libaom/av1/common/
Dcdef.h47 int rdmult);

12