FFmpeg
|
This struct is allocated as AVHWFramesContext.hwctx. More...
#include <hwcontext_d3d11va.h>
Data Fields | |
ID3D11Texture2D * | texture |
The canonical texture used for pool allocation. More... | |
UINT | BindFlags |
D3D11_TEXTURE2D_DESC.BindFlags used for texture creation. More... | |
UINT | MiscFlags |
D3D11_TEXTURE2D_DESC.MiscFlags used for texture creation. More... | |
This struct is allocated as AVHWFramesContext.hwctx.
Definition at line 130 of file hwcontext_d3d11va.h.
ID3D11Texture2D* AVD3D11VAFramesContext::texture |
The canonical texture used for pool allocation.
If this is set to NULL on init, the hwframes implementation will allocate and set an array texture if initial_pool_size > 0.
The only situation when the API user should set this is:
Deallocating the AVHWFramesContext will always release this interface, and it does not matter whether it was user-allocated.
This is in particular used by the libavcodec D3D11VA hwaccel, which requires a single array texture. It will create ID3D11VideoDecoderOutputView objects for each array texture element on decoder initialization.
Definition at line 151 of file hwcontext_d3d11va.h.
Referenced by d3d11va_frames_init(), d3d11va_frames_uninit(), and d3d11va_pool_alloc().
UINT AVD3D11VAFramesContext::BindFlags |
D3D11_TEXTURE2D_DESC.BindFlags used for texture creation.
The user must at least set D3D11_BIND_DECODER if the frames context is to be used for video decoding. This field is ignored/invalid if a user-allocated texture is provided.
Definition at line 159 of file hwcontext_d3d11va.h.
Referenced by d3d11va_alloc_single(), d3d11va_frames_init(), and dxva_adjust_hwframes().
UINT AVD3D11VAFramesContext::MiscFlags |
D3D11_TEXTURE2D_DESC.MiscFlags used for texture creation.
This field is ignored/invalid if a user-allocated texture is provided.
Definition at line 165 of file hwcontext_d3d11va.h.
Referenced by d3d11va_alloc_single(), and d3d11va_frames_init().