Try all available GPUs in D3D11VA decoder

This commit is contained in:
Cameron Gutman 2022-04-26 22:49:46 -05:00
commit d3a542bac4
2 changed files with 109 additions and 41 deletions

View file

@ -33,6 +33,7 @@ private:
void bindColorConversion(AVFrame* frame);
void renderVideo(AVFrame* frame);
bool checkDecoderSupport(IDXGIAdapter* adapter);
bool createDeviceByAdapterIndex(int adapterIndex, bool* indexWasInvalid = nullptr);
IDXGIFactory5* m_Factory;
ID3D11Device* m_Device;