Switch DXVA2 to IDirect3D9Ex APIs for more detailed control of rendering

This commit is contained in:
Cameron Gutman
2018-08-19 21:53:39 -07:00
parent 57f2fb07f0
commit 62f765b2b4
4 changed files with 123 additions and 59 deletions
+2 -3
View File
@@ -27,6 +27,7 @@ public:
private:
bool initializeDecoder();
bool initializeRenderer();
bool initializeDevice(SDL_Window* window);
bool isDecoderBlacklisted();
static
@@ -45,8 +46,6 @@ private:
int m_DisplayWidth;
int m_DisplayHeight;
SDL_Renderer* m_SdlRenderer;
struct dxva_context m_DXVAContext;
IDirect3DSurface9* m_DecSurfaces[19];
DXVA2_ConfigPictureDecode m_Config;
@@ -55,7 +54,7 @@ private:
int m_SurfacesUsed;
AVBufferPool* m_Pool;
IDirect3DDevice9* m_Device;
IDirect3DDevice9Ex* m_Device;
IDirect3DSurface9* m_RenderTarget;
IDirectXVideoProcessorService* m_ProcService;
IDirectXVideoProcessor* m_Processor;