Request extra frames for HW decoder

This commit is contained in:
Niellune
2026-02-28 20:32:29 +02:00
parent 971e48845e
commit 776edef942
5 changed files with 13 additions and 2 deletions
+1 -1
View File
@@ -38,7 +38,7 @@
#define BTN_SIRI 5
#define BTN_MICROPHONE 7
#define BTN_12 12
#define BTN_SCREEN_REFRESH 12
// Navigation buttons
#define BTN_LEFT 100
#define BTN_RIGHT 101
+1 -1
View File
@@ -59,8 +59,8 @@ void processKey(Protocol &protocol, SDL_Keysym key, RunParams &params)
return;
case SDLK_r:
protocol.sendKey(BTN_SCREEN_REFRESH);
params.dirty = true;
protocol.sendKey(BTN_12);
return;
case SDLK_h:
+6
View File
@@ -119,6 +119,12 @@ void Protocol::sendKey(int key)
write_uint32_le(&buf[0], key);
send(CMD_CONTROL, false, buf, 4);
if(Settings::forceRedraw)
{
write_uint32_le(&buf[0], BTN_SCREEN_REFRESH);
send(CMD_CONTROL, false, buf, 4);
}
}
void Protocol::sendFile(const char *filename, const char *value)
+1
View File
@@ -35,6 +35,7 @@ public:
static inline Setting<int> fontSize{"font-size", 30};
static inline Setting<bool> vsync{"vsync", false};
static inline Setting<bool> hwDecode{"hw-decode", true};
static inline Setting<bool> forceRedraw{"force-redraw", false};
static inline Setting<float> aspectCorrection{"aspect-correction", 1};
static inline Setting<bool> fastScale{"fast-render-scale", false};
static inline Setting<int> videoQueue{"video-buffer-size", 32};