Probe for a HDR-compatible software renderer
This commit is contained in:
parent
876375f7e9
commit
d2b3bc962f
1 changed files with 11 additions and 3 deletions
|
|
@ -402,9 +402,17 @@ void Session::getDecoderInfo(SDL_Window* window,
|
||||||
delete decoder;
|
delete decoder;
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
// HDR can only be supported by a hardware codec that can handle 10-bit video.
|
// If we found no hardware decoders with HDR, check for a renderer
|
||||||
// If we made it this far, we don't have one, so HDR will not be available.
|
// that supports HDR rendering with software decoded frames.
|
||||||
isHdrSupported = false;
|
if (chooseDecoder(StreamingPreferences::VDS_FORCE_SOFTWARE,
|
||||||
|
window, VIDEO_FORMAT_H265_MAIN10, 1920, 1080, 60,
|
||||||
|
false, false, true, decoder) ||
|
||||||
|
chooseDecoder(StreamingPreferences::VDS_FORCE_SOFTWARE,
|
||||||
|
window, VIDEO_FORMAT_AV1_MAIN10, 1920, 1080, 60,
|
||||||
|
false, false, true, decoder)) {
|
||||||
|
isHdrSupported = decoder->isHdrSupported();
|
||||||
|
delete decoder;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Try a regular hardware accelerated HEVC decoder now
|
// Try a regular hardware accelerated HEVC decoder now
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue