Add HDR support with software decoding using libplacebo

Not supported on macOS yet.
This commit is contained in:
Cameron Gutman committed 2024-08-20 01:28:00 -05:00
1 parent 416003248b
commit 7c6954b5f6
3 files changed
+81 -96

No files matched your search

+9 -3
View File
@@ -172,10 +172,16 @@ private:
void updateOptimalWindowDisplayMode();
enum class DecoderAvailability {
None,
Software,
Hardware
};
static
bool isHardwareDecodeAvailable(SDL_Window* window,
StreamingPreferences::VideoDecoderSelection vds,
int videoFormat, int width, int height, int frameRate);
DecoderAvailability getDecoderAvailability(SDL_Window* window,
StreamingPreferences::VideoDecoderSelection vds,
int videoFormat, int width, int height, int frameRate);
static
bool chooseDecoder(StreamingPreferences::VideoDecoderSelection vds,