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