Add HDR support with software decoding using libplacebo

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

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,