Lines Matching refs:sum_rdc
2359 RD_COST this_rdc, sum_rdc, best_rdc; in rd_pick_partition() local
2397 vp9_rd_cost_init(&sum_rdc); in rd_pick_partition()
2584 rd_pick_sb_modes(cpi, tile_data, x, mi_row, mi_col, &sum_rdc, subsize, in rd_pick_partition()
2586 if (sum_rdc.rate == INT_MAX) in rd_pick_partition()
2587 sum_rdc.rdcost = INT64_MAX; in rd_pick_partition()
2589 for (i = 0; i < 4 && sum_rdc.rdcost < best_rdc.rdcost; ++i) { in rd_pick_partition()
2603 best_rdc.rdcost - sum_rdc.rdcost, pc_tree->split[i]); in rd_pick_partition()
2606 sum_rdc.rdcost = INT64_MAX; in rd_pick_partition()
2609 sum_rdc.rate += this_rdc.rate; in rd_pick_partition()
2610 sum_rdc.dist += this_rdc.dist; in rd_pick_partition()
2611 sum_rdc.rdcost += this_rdc.rdcost; in rd_pick_partition()
2616 if (sum_rdc.rdcost < best_rdc.rdcost && i == 4) { in rd_pick_partition()
2618 sum_rdc.rate += cpi->partition_cost[pl][PARTITION_SPLIT]; in rd_pick_partition()
2619 sum_rdc.rdcost = RDCOST(x->rdmult, x->rddiv, in rd_pick_partition()
2620 sum_rdc.rate, sum_rdc.dist); in rd_pick_partition()
2622 if (sum_rdc.rdcost < best_rdc.rdcost) { in rd_pick_partition()
2623 best_rdc = sum_rdc; in rd_pick_partition()
2655 rd_pick_sb_modes(cpi, tile_data, x, mi_row, mi_col, &sum_rdc, subsize, in rd_pick_partition()
2658 if (sum_rdc.rdcost < best_rdc.rdcost && mi_row + mi_step < cm->mi_rows && in rd_pick_partition()
2672 best_rdc.rdcost - sum_rdc.rdcost); in rd_pick_partition()
2674 sum_rdc.rdcost = INT64_MAX; in rd_pick_partition()
2676 sum_rdc.rate += this_rdc.rate; in rd_pick_partition()
2677 sum_rdc.dist += this_rdc.dist; in rd_pick_partition()
2678 sum_rdc.rdcost += this_rdc.rdcost; in rd_pick_partition()
2682 if (sum_rdc.rdcost < best_rdc.rdcost) { in rd_pick_partition()
2684 sum_rdc.rate += cpi->partition_cost[pl][PARTITION_HORZ]; in rd_pick_partition()
2685 sum_rdc.rdcost = RDCOST(x->rdmult, x->rddiv, sum_rdc.rate, sum_rdc.dist); in rd_pick_partition()
2686 if (sum_rdc.rdcost < best_rdc.rdcost) { in rd_pick_partition()
2687 best_rdc = sum_rdc; in rd_pick_partition()
2708 rd_pick_sb_modes(cpi, tile_data, x, mi_row, mi_col, &sum_rdc, subsize, in rd_pick_partition()
2710 if (sum_rdc.rdcost < best_rdc.rdcost && mi_col + mi_step < cm->mi_cols && in rd_pick_partition()
2724 &pc_tree->vertical[1], best_rdc.rdcost - sum_rdc.rdcost); in rd_pick_partition()
2726 sum_rdc.rdcost = INT64_MAX; in rd_pick_partition()
2728 sum_rdc.rate += this_rdc.rate; in rd_pick_partition()
2729 sum_rdc.dist += this_rdc.dist; in rd_pick_partition()
2730 sum_rdc.rdcost += this_rdc.rdcost; in rd_pick_partition()
2734 if (sum_rdc.rdcost < best_rdc.rdcost) { in rd_pick_partition()
2736 sum_rdc.rate += cpi->partition_cost[pl][PARTITION_VERT]; in rd_pick_partition()
2737 sum_rdc.rdcost = RDCOST(x->rdmult, x->rddiv, in rd_pick_partition()
2738 sum_rdc.rate, sum_rdc.dist); in rd_pick_partition()
2739 if (sum_rdc.rdcost < best_rdc.rdcost) { in rd_pick_partition()
2740 best_rdc = sum_rdc; in rd_pick_partition()
3063 RD_COST this_rdc, sum_rdc, best_rdc; in nonrd_pick_partition() local
3082 vp9_rd_cost_init(&sum_rdc); in nonrd_pick_partition()
3151 sum_rdc.rate += cpi->partition_cost[pl][PARTITION_SPLIT]; in nonrd_pick_partition()
3152 sum_rdc.rdcost = RDCOST(x->rdmult, x->rddiv, sum_rdc.rate, sum_rdc.dist); in nonrd_pick_partition()
3154 for (i = 0; i < 4 && sum_rdc.rdcost < best_rdc.rdcost; ++i) { in nonrd_pick_partition()
3164 best_rdc.rdcost - sum_rdc.rdcost, pc_tree->split[i]); in nonrd_pick_partition()
3167 vp9_rd_cost_reset(&sum_rdc); in nonrd_pick_partition()
3169 sum_rdc.rate += this_rdc.rate; in nonrd_pick_partition()
3170 sum_rdc.dist += this_rdc.dist; in nonrd_pick_partition()
3171 sum_rdc.rdcost += this_rdc.rdcost; in nonrd_pick_partition()
3175 if (sum_rdc.rdcost < best_rdc.rdcost) { in nonrd_pick_partition()
3176 best_rdc = sum_rdc; in nonrd_pick_partition()
3192 nonrd_pick_sb_modes(cpi, tile_data, x, mi_row, mi_col, &sum_rdc, subsize, in nonrd_pick_partition()
3200 if (sum_rdc.rdcost < best_rdc.rdcost && mi_row + ms < cm->mi_rows) { in nonrd_pick_partition()
3213 vp9_rd_cost_reset(&sum_rdc); in nonrd_pick_partition()
3217 sum_rdc.rate += this_rdc.rate; in nonrd_pick_partition()
3218 sum_rdc.dist += this_rdc.dist; in nonrd_pick_partition()
3219 sum_rdc.rdcost = RDCOST(x->rdmult, x->rddiv, in nonrd_pick_partition()
3220 sum_rdc.rate, sum_rdc.dist); in nonrd_pick_partition()
3224 if (sum_rdc.rdcost < best_rdc.rdcost) { in nonrd_pick_partition()
3225 best_rdc = sum_rdc; in nonrd_pick_partition()
3238 nonrd_pick_sb_modes(cpi, tile_data, x, mi_row, mi_col, &sum_rdc, subsize, in nonrd_pick_partition()
3245 if (sum_rdc.rdcost < best_rdc.rdcost && mi_col + ms < cm->mi_cols) { in nonrd_pick_partition()
3257 vp9_rd_cost_reset(&sum_rdc); in nonrd_pick_partition()
3260 sum_rdc.rate += cpi->partition_cost[pl][PARTITION_VERT]; in nonrd_pick_partition()
3261 sum_rdc.rate += this_rdc.rate; in nonrd_pick_partition()
3262 sum_rdc.dist += this_rdc.dist; in nonrd_pick_partition()
3263 sum_rdc.rdcost = RDCOST(x->rdmult, x->rddiv, in nonrd_pick_partition()
3264 sum_rdc.rate, sum_rdc.dist); in nonrd_pick_partition()
3268 if (sum_rdc.rdcost < best_rdc.rdcost) { in nonrd_pick_partition()
3269 best_rdc = sum_rdc; in nonrd_pick_partition()