aom: rtc: Enable dct_only_palette_nonrd for speed >= 10

From 0e050334767c53638f0e0862648c7133bc15b626 Mon Sep 17 00:00:00 2001
From: Marco Paniconi <[EMAIL REDACTED]>
Date: Wed, 15 May 2024 03:18:56 +0000
Subject: [PATCH] rtc: Enable dct_only_palette_nonrd for speed >= 10

This change only affect the keyframe and allows for
only testing dct in palette mode for nonrd pickmode,
which gives some speedup with little loss in quality.

avg/ovr/ssim bdrate loss for CQ all-intra, speed 11 screen:
0.809/0.779/0.135
Instruction count reduction: ~23%

Change-Id: I3a0b720b70a18c4f522ec7cd33a5036847457c5a
---
 av1/encoder/speed_features.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/av1/encoder/speed_features.c b/av1/encoder/speed_features.c
index 6fd01d8fc..73836276f 100644
--- a/av1/encoder/speed_features.c
+++ b/av1/encoder/speed_features.c
@@ -1579,6 +1579,7 @@ static void set_rt_speed_feature_framesize_dependent(const AV1_COMP *const cpi,
       sf->rt_sf.nonrd_aggressive_skip = 1;
       sf->rt_sf.thresh_active_maps_skip_lf_cdef = 90;
       sf->rt_sf.hybrid_intra_pickmode = 0;
+      sf->rt_sf.dct_only_palette_nonrd = 1;
       sf->rt_sf.prune_screen_palette_search = true;
       sf->rt_sf.prune_intra_mode_using_best_sad_so_far = true;
     }