|
@@ -1,10 +1,5 @@
|
|
|
#include "common_utils.h"
|
|
|
-
|
|
|
-// ATTENTION: If D3D surfaces are used, DX11_D3D must be set in project settings or hardcoded here
|
|
|
-
|
|
|
-#ifdef DX11_D3D
|
|
|
#include "common_directx11.h"
|
|
|
-#endif
|
|
|
|
|
|
#include <util/windows/device-enum.h>
|
|
|
#include <util/config-file.h>
|
|
@@ -127,9 +122,7 @@ mfxStatus Initialize(mfxVersion ver, mfxSession *pSession, mfxFrameAllocator *pm
|
|
|
|
|
|
void Release()
|
|
|
{
|
|
|
-#if defined(DX11_D3D)
|
|
|
CleanupHWDevice();
|
|
|
-#endif
|
|
|
}
|
|
|
|
|
|
void ReleaseSessionData(void *) {}
|
|
@@ -239,15 +232,11 @@ fail:
|
|
|
#if 0
|
|
|
void ClearYUVSurfaceVMem(mfxMemId memId)
|
|
|
{
|
|
|
-#if defined(DX11_D3D)
|
|
|
ClearYUVSurfaceD3D(memId);
|
|
|
-#endif
|
|
|
}
|
|
|
|
|
|
void ClearRGBSurfaceVMem(mfxMemId memId)
|
|
|
{
|
|
|
-#if defined(DX11_D3D)
|
|
|
ClearRGBSurfaceD3D(memId);
|
|
|
-#endif
|
|
|
}
|
|
|
#endif
|