Allow selection of AV1 or HEVC for software decoding when HDR or YUV444 are enabled

These advanced features often/always are only supported with AV1 or HEVC.
This commit is contained in:
Cameron Gutman 2024-08-19 20:57:11 -05:00
parent fddb4881fb
commit 9df65cb814

View File

@ -712,7 +712,7 @@ bool Session::initialize()
m_Preferences->enableHdr ? VIDEO_FORMAT_AV1_MAIN10 : VIDEO_FORMAT_AV1_MAIN8,
m_StreamConfig.width,
m_StreamConfig.height,
m_StreamConfig.fps)) {
m_StreamConfig.fps) && !m_Preferences->enableHdr && !m_Preferences->enableYUV444) {
m_SupportedVideoFormats.removeByMask(VIDEO_FORMAT_MASK_AV1);
}
#else
@ -725,7 +725,7 @@ bool Session::initialize()
m_Preferences->enableHdr ? VIDEO_FORMAT_H265_MAIN10 : VIDEO_FORMAT_H265,
m_StreamConfig.width,
m_StreamConfig.height,
m_StreamConfig.fps)) {
m_StreamConfig.fps) && !m_Preferences->enableHdr && !m_Preferences->enableYUV444) {
m_SupportedVideoFormats.removeByMask(VIDEO_FORMAT_MASK_H265);
}