Lines Matching refs:best_rd

73   int64_t best_rd;
524 if (args->this_rd + rd > args->best_rd) {
544 if (args->this_rd > args->best_rd) {
563 args.best_rd = ref_best_rd;
627 int64_t best_rd = INT64_MAX;
682 if (rd[n][1] < best_rd) {
684 best_rd = rd[n][1];
745 int64_t best_rd = rd_thresh;
811 if (RDCOST(x->rdmult, x->rddiv, ratey, distortion) >= best_rd)
831 if (RDCOST(x->rdmult, x->rddiv, ratey, distortion) >= best_rd)
842 if (this_rd < best_rd) {
846 best_rd = this_rd;
859 if (best_rd >= rd_thresh || x->skip_encode)
860 return best_rd;
868 return best_rd;
913 if (RDCOST(x->rdmult, x->rddiv, ratey, distortion) >= best_rd)
928 if (RDCOST(x->rdmult, x->rddiv, ratey, distortion) >= best_rd)
939 if (this_rd < best_rd) {
943 best_rd = this_rd;
955 if (best_rd >= rd_thresh || x->skip_encode)
956 return best_rd;
962 return best_rd;
968 int64_t best_rd) {
1004 &r, &ry, &d, bsize, best_rd - total_rd);
1005 if (this_rd >= best_rd - total_rd)
1019 if (total_rd >= best_rd)
1037 int64_t best_rd) {
1067 &s, NULL, bsize, best_rd);
1075 if (this_rd < best_rd) {
1077 best_rd = this_rd;
1089 return best_rd;
1153 int64_t best_rd = INT64_MAX, this_rd;
1165 &this_distortion, &s, &this_sse, bsize, best_rd))
1171 if (this_rd < best_rd) {
1173 best_rd = this_rd;
1184 return best_rd;
1690 int64_t best_rd, int *returntotrate,
1725 bsi->segment_rd = best_rd;
1751 int64_t best_rd = INT64_MAX;
1797 if (best_rd < label_mv_thresh)
1967 if (bsi->rdstat[i][mode_idx].brdcost < best_rd) {
1969 best_rd = bsi->rdstat[i][mode_idx].brdcost;
1995 if (bsi->rdstat[i][mode_idx].brdcost < best_rd) {
1997 best_rd = bsi->rdstat[i][mode_idx].brdcost;
2001 if (best_rd == INT64_MAX) {
2045 if (bsi->segment_rd > best_rd)
2385 int64_t rd, tmp_rd, best_rd = INT64_MAX;
2600 newbest = i == 0 || rd < best_rd;
2603 best_rd = rd;
2613 tmp_rd = best_rd;
2730 PICK_MODE_CONTEXT *ctx, int64_t best_rd) {
2746 best_rd) >= best_rd) {
2753 &dist_y, best_rd) >= best_rd) {
2936 int64_t best_rd = best_rd_so_far;
3148 if (best_rd < mode_threshold[mode_index])
3282 NULL, bsize, best_rd);
3310 single_skippable, &total_sse, best_rd,
3379 if (this_rd < best_rd || x->skip) {
3396 best_rd = this_rd;
3508 if (best_mode_index < 0 || best_rd >= best_rd_so_far) {
3546 best_pred_diff[i] = best_rd - best_pred_rd[i];
3554 best_filter_diff[i] = best_rd - best_filter_rd[i];
3711 int64_t best_rd = best_rd_so_far;
3822 rd_less_than_thresh(best_rd,
3896 &distortion_y, best_rd) >= best_rd)
4001 best_rd < INT64_MAX) {
4002 if (tmp_best_rdu / 2 > best_rd) {
4054 tmp_best_rdu = best_rd -
4122 if (this_rd < best_rd || x->skip) {
4137 best_rd = this_rd;
4138 best_yrd = best_rd -
4228 if (best_rd >= best_rd_so_far) {
4247 if (best_rd == INT64_MAX) {
4279 best_pred_diff[i] = best_rd - best_pred_rd[i];
4287 best_filter_diff[i] = best_rd - best_filter_rd[i];