Lines Matching defs:best_rd
78 int64_t best_rd;
693 if (args->this_rd > args->best_rd) {
748 args.best_rd = ref_best_rd;
810 int64_t best_rd = INT64_MAX;
837 if (rd[n][1] < best_rd) {
839 best_rd = rd[n][1];
894 int64_t best_rd = INT64_MAX;
920 if (rd[n][1] < best_rd) {
921 best_rd = rd[n][1];
1051 int64_t best_rd = rd_thresh;
1117 if (RDCOST(x->rdmult, x->rddiv, ratey, distortion) >= best_rd)
1132 if (RDCOST(x->rdmult, x->rddiv, ratey, distortion) >= best_rd)
1143 if (this_rd < best_rd) {
1147 best_rd = this_rd;
1159 if (best_rd >= rd_thresh || x->skip_encode)
1160 return best_rd;
1166 return best_rd;
1172 int64_t best_rd) {
1208 bsize, best_rd - total_rd);
1209 if (this_rd >= best_rd - total_rd)
1223 if (total_rd >= best_rd)
1241 int64_t best_rd) {
1274 &s, NULL, bsize, local_tx_cache, best_rd);
1282 if (this_rd < best_rd) {
1284 best_rd = this_rd;
1306 return best_rd;
1363 int64_t best_rd = INT64_MAX, this_rd;
1374 &this_distortion, &s, &this_sse, bsize, best_rd);
1381 if (this_rd < best_rd) {
1383 best_rd = this_rd;
1413 return best_rd;
1758 int64_t best_rd = INT64_MAX;
1805 if (best_rd < label_mv_thresh)
2005 if (bsi->rdstat[i][mode_idx].brdcost < best_rd) {
2007 best_rd = bsi->rdstat[i][mode_idx].brdcost;
2033 if (bsi->rdstat[i][mode_idx].brdcost < best_rd) {
2035 best_rd = bsi->rdstat[i][mode_idx].brdcost;
2039 if (best_rd == INT64_MAX) {
2088 int64_t best_rd,
2107 bsi->segment_rd = best_rd;
2119 if (bsi->segment_rd > best_rd)
2717 int64_t rd, best_rd = INT64_MAX;
2867 newbest = i == 0 || rd < best_rd;
2870 best_rd = rd;
3067 PICK_MODE_CONTEXT *ctx, int64_t best_rd) {
3081 best_rd) >= best_rd) {
3091 &dist_y, best_rd) >= best_rd) {
3142 int64_t best_rd = best_rd_so_far;
3329 if (best_rd < ((int64_t)rd_threshes[mode_index] *
3418 bsize, tx_cache, best_rd);
3448 single_newmv, &total_sse, best_rd);
3543 if (this_rd < best_rd || x->skip) {
3557 best_rd = this_rd;
3659 if (best_rd >= best_rd_so_far)
3708 best_pred_diff[i] = best_rd - best_pred_rd[i];
3716 best_filter_diff[i] = best_rd - best_filter_rd[i];
3724 best_tx_diff[i] = best_rd - best_tx_rd[i];
3748 return best_rd;
3771 int64_t best_rd = best_rd_so_far;
3890 if ((best_rd <
3996 &distortion_y, best_rd) >= best_rd)
4108 best_rd < INT64_MAX) {
4109 if (tmp_best_rdu / 2 > best_rd) {
4164 tmp_best_rdu = best_rd -
4249 if (this_rd < best_rd || x->skip) {
4263 best_rd = this_rd;
4264 best_yrd = best_rd -
4372 if (best_rd >= best_rd_so_far)
4390 if (best_rd == INT64_MAX && bsize < BLOCK_8X8) {
4393 return best_rd;
4436 best_pred_diff[i] = best_rd - best_pred_rd[i];
4444 best_filter_diff[i] = best_rd - best_filter_rd[i];
4457 best_tx_diff[i] = best_rd - best_tx_rd[i];
4470 return best_rd;