/external/libvpx/libvpx/vp9/encoder/ |
D | vp9_rdopt.c | 744 rd = RDCOST(x->rdmult, x->rddiv, 0, dist); in block_rd_txfm() 753 rd1 = RDCOST(x->rdmult, x->rddiv, rate, dist); in block_rd_txfm() 754 rd2 = RDCOST(x->rdmult, x->rddiv, 0, sse); in block_rd_txfm() 876 rd[n][0] = rd[n][1] = RDCOST(x->rdmult, x->rddiv, s1, sse[n]); in choose_tx_size_from_rd() 879 rd[n][0] = RDCOST(x->rdmult, x->rddiv, s1, sse[n]); in choose_tx_size_from_rd() 880 rd[n][1] = RDCOST(x->rdmult, x->rddiv, s1 + r_tx_size, sse[n]); in choose_tx_size_from_rd() 883 rd[n][0] = RDCOST(x->rdmult, x->rddiv, r[n][0] + s0, d[n]); in choose_tx_size_from_rd() 884 rd[n][1] = RDCOST(x->rdmult, x->rddiv, r[n][1] + s0, d[n]); in choose_tx_size_from_rd() 888 rd[n][0] = VPXMIN(rd[n][0], RDCOST(x->rdmult, x->rddiv, s1, sse[n])); in choose_tx_size_from_rd() 889 rd[n][1] = VPXMIN(rd[n][1], RDCOST(x->rdmult, x->rddiv, s1, sse[n])); in choose_tx_size_from_rd() [all …]
|
D | vp9_rd.h | 29 #define RDCOST(RM, DM, R, D) \ macro
|
D | vp9_encodemb.c | 124 best_block_rd_cost = RDCOST(rdmult, rddiv, rate0, accu_error); in vp9_optimize_b() 232 rd_cost0 = RDCOST(rdmult, rddiv, (rate0 + next_bits0), distortion0); in vp9_optimize_b() 233 rd_cost1 = RDCOST(rdmult, rddiv, (rate1 + next_bits1), distortion1); in vp9_optimize_b() 235 eob_cost0 = RDCOST(rdmult, rddiv, (accu_rate + rate0 + next_eob_bits0), in vp9_optimize_b() 240 RDCOST(rdmult, rddiv, (accu_rate + rate1 + next_eob_bits1), in vp9_optimize_b()
|
D | vp9_pickmode.c | 228 !(RDCOST(x->rdmult, x->rddiv, (*rate_mv + rate_mode), 0) > best_rd_sofar); in combined_motion_search() 1160 this_rdc.rdcost = RDCOST(x->rdmult, x->rddiv, this_rdc.rate, this_rdc.dist); in vp9_pick_intra_mode() 1364 this_rdc.rdcost = RDCOST(x->rdmult, x->rddiv, rate, dist); in recheck_zeromv_after_denoising() 1470 cost = RDCOST(x->rdmult, x->rddiv, pf_rate[filter], pf_dist[filter]); in search_filter_ref() 1641 RDCOST(x->rdmult, x->rddiv, intra_cost_penalty, 0); in vp9_pick_inter_mode() 2251 if (RDCOST(x->rdmult, x->rddiv, this_rdc.rate, this_rdc.dist) < in vp9_pick_inter_mode() 2252 RDCOST(x->rdmult, x->rddiv, 0, this_sse)) { in vp9_pick_inter_mode() 2294 this_rdc.rdcost = RDCOST(x->rdmult, x->rddiv, this_rdc.rate, this_rdc.dist); in vp9_pick_inter_mode() 2316 RDCOST(x->rdmult, x->rddiv, this_rdc.rate, this_rdc.dist); in vp9_pick_inter_mode() 2488 RDCOST(x->rdmult, x->rddiv, this_rdc.rate, this_rdc.dist); in vp9_pick_inter_mode() [all …]
|
D | vp9_encodeframe.c | 2025 rd_cost->rdcost = RDCOST(x->rdmult, x->rddiv, rd_cost->rate, rd_cost->dist); in rd_pick_sb_modes() 2652 RDCOST(x->rdmult, x->rddiv, none_rdc.rate, none_rdc.dist); in rd_use_partition() 2750 RDCOST(x->rdmult, x->rddiv, last_part_rdc.rate, last_part_rdc.dist); in rd_use_partition() 2805 RDCOST(x->rdmult, x->rddiv, chosen_rdc.rate, chosen_rdc.dist); in rd_use_partition() 3847 this_rdc.rdcost += RDCOST(partition_mul, x->rddiv, in rd_pick_partition() 4028 sum_rdc.rdcost += RDCOST(partition_mul, x->rddiv, in rd_pick_partition() 4089 RDCOST(partition_mul, x->rddiv, part_mode_rate, 0); in rd_pick_partition() 4139 RDCOST(partition_mul, x->rddiv, part_mode_rate, 0); in rd_pick_partition() 4717 RDCOST(x->rdmult, x->rddiv, this_rdc.rate, this_rdc.dist); in nonrd_pick_partition() 4748 sum_rdc.rdcost = RDCOST(x->rdmult, x->rddiv, sum_rdc.rate, sum_rdc.dist); in nonrd_pick_partition() [all …]
|
/external/libvpx/libvpx/vp8/encoder/ |
D | encodemb.c | 225 rd_cost0 = RDCOST(rdmult, rddiv, rate0, error0); in optimize_b() 226 rd_cost1 = RDCOST(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() 336 rd_cost0 = RDCOST(rdmult, rddiv, rate0, error0); in optimize_b() 337 rd_cost1 = RDCOST(rdmult, rddiv, rate1, error1); in optimize_b()
|
D | rdopt.c | 566 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 …]
|
D | pickinter.c | 199 this_rd = RDCOST(x->rdmult, x->rddiv, rate, distortion); in pick_intra4x4block() 257 error = RDCOST(mb->rdmult, mb->rddiv, cost, distortion); in pick_intra4x4mby_modes() 486 this_rd = RDCOST(x->rdmult, x->rddiv, rate2, *distortion2); in evaluate_inter_mode() 868 this_rd = RDCOST(x->rdmult, x->rddiv, rate2, distortion2); in vp8_pick_inter_mode() 894 this_rd = RDCOST(x->rdmult, x->rddiv, rate2, distortion2); in vp8_pick_inter_mode() 1326 this_rd = RDCOST(x->rdmult, x->rddiv, rate_, distortion); in vp8_pick_intra_mode()
|
D | rdopt.h | 20 #define RDCOST(RM, DM, R, D) (((128 + (R) * (RM)) >> 8) + (DM) * (D)) macro
|
/external/libaom/libaom/av1/encoder/ |
D | rdopt.c | 2607 (double)RDCOST(x->rdmult, rd_stats->rate, rd_stats->dist) / num_samples; in PrintPredictionUnitStats() 2658 (double)RDCOST(x->rdmult, model_rate, model_dist) / num_samples; in PrintPredictionUnitStats() 2694 (double)RDCOST(x->rdmult, est_residue_cost, est_dist) / num_samples; in PrintPredictionUnitStats() 2793 } else if (RDCOST(x->rdmult, rate_i, dist_i) >= in model_rd_with_dnn() 2794 RDCOST(x->rdmult, 0, sse << 4)) { in model_rd_with_dnn() 2898 } else if (RDCOST(x->rdmult, rate_i, dist_i) >= in model_rd_with_surffit() 2899 RDCOST(x->rdmult, 0, sse << 4)) { in model_rd_with_surffit() 3003 } else if (RDCOST(x->rdmult, rate_i, dist_i) >= in model_rd_with_curvfit() 3004 RDCOST(x->rdmult, 0, sse << 4)) { in model_rd_with_curvfit() 3136 best_rd = RDCOST(x->rdmult, best_rd_stats->rate, best_rd_stats->dist); in search_txk_type() [all …]
|
D | encodetxb.c | 407 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); 915 cur_eob_rd_cost = RDCOST(txb_info->rdmult, cur_eob_rate, 0); 917 RDCOST(txb_info->rdmult, accu_rate, accu_dist) + stats.nz_rd; 1001 RDCOST(txb_info->rdmult, accu_rate + non_zero_blk_rate, accu_dist); 1005 int64_t zero_blk_rd_cost = RDCOST(txb_info->rdmult, zero_blk_rate, 0); 1408 const int64_t rd = RDCOST(rdmult, rate, dist); 1427 rd_low = RDCOST(rdmult, rate_low, dist_low); [all …]
|
D | encodeframe.c | 1765 none_rdc.rdcost = RDCOST(x->rdmult, none_rdc.rate, none_rdc.dist); in rd_use_partition() 1865 RDCOST(x->rdmult, last_part_rdc.rate, last_part_rdc.dist); in rd_use_partition() 1912 chosen_rdc.rdcost = RDCOST(x->rdmult, chosen_rdc.rate, chosen_rdc.dist); in rd_use_partition() 2091 RDCOST(x->rdmult, last_part_rdc.rate, last_part_rdc.dist); in nonrd_use_partition() 2246 sum_rdc.rdcost = RDCOST(x->rdmult, sum_rdc.rate, 0); in rd_test_partition3() 2271 sum_rdc.rdcost = RDCOST(x->rdmult, sum_rdc.rate, sum_rdc.dist); in rd_test_partition3() 2418 const int64_t partition_rd_cost = RDCOST(x->rdmult, pt_cost, 0); in rd_pick_sqr_partition() 2432 this_rdc.rdcost = RDCOST(x->rdmult, this_rdc.rate, this_rdc.dist); in rd_pick_sqr_partition() 2505 sum_rdc.rdcost = RDCOST(x->rdmult, sum_rdc.rate, 0); in rd_pick_sqr_partition() 2541 sum_rdc.rdcost = RDCOST(x->rdmult, sum_rdc.rate, sum_rdc.dist); in rd_pick_sqr_partition() [all …]
|
D | rd.h | 30 #define RDCOST(RM, R, D) \ macro
|