mirror of
https://github.com/moonlight-stream/moonlight-qt.git
synced 2026-06-16 21:51:17 +00:00
Initial work on AV1 support
This commit is contained in:
@@ -988,6 +988,36 @@ bool D3D11VARenderer::checkDecoderSupport(IDXGIAdapter* adapter)
|
||||
}
|
||||
break;
|
||||
|
||||
case VIDEO_FORMAT_AV1_MAIN8:
|
||||
if (FAILED(videoDevice->CheckVideoDecoderFormat(&D3D11_DECODER_PROFILE_AV1_VLD_PROFILE0, DXGI_FORMAT_NV12, &supported))) {
|
||||
SDL_LogError(SDL_LOG_CATEGORY_APPLICATION,
|
||||
"GPU doesn't support AV1 decoding");
|
||||
videoDevice->Release();
|
||||
return false;
|
||||
}
|
||||
else if (!supported) {
|
||||
SDL_LogError(SDL_LOG_CATEGORY_APPLICATION,
|
||||
"GPU doesn't support AV1 decoding to NV12 format");
|
||||
videoDevice->Release();
|
||||
return false;
|
||||
}
|
||||
break;
|
||||
|
||||
case VIDEO_FORMAT_AV1_MAIN10:
|
||||
if (FAILED(videoDevice->CheckVideoDecoderFormat(&D3D11_DECODER_PROFILE_AV1_VLD_PROFILE0, DXGI_FORMAT_P010, &supported))) {
|
||||
SDL_LogError(SDL_LOG_CATEGORY_APPLICATION,
|
||||
"GPU doesn't support AV1 Main10 decoding");
|
||||
videoDevice->Release();
|
||||
return false;
|
||||
}
|
||||
else if (!supported) {
|
||||
SDL_LogError(SDL_LOG_CATEGORY_APPLICATION,
|
||||
"GPU doesn't support AV1 Main10 decoding to P010 format");
|
||||
videoDevice->Release();
|
||||
return false;
|
||||
}
|
||||
break;
|
||||
|
||||
default:
|
||||
SDL_assert(false);
|
||||
videoDevice->Release();
|
||||
|
||||
Reference in New Issue
Block a user