This struct is allocated as AVHWFramesContext.hwctx.
IDirect3DDeviceManager9 * devmgr
IDirectXVideoDecoder * decoder_to_release
Certain drivers require the decoder to be destroyed before the surfaces.
This struct is allocated as AVHWDeviceContext.hwctx.
IDirect3DSurface9 ** surfaces
The surface pool.