FFmpeg
4.0
|
This struct is allocated as AVHWFramesContext.hwctx. More...
#include <libavutil/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 131 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 152 of file hwcontext_d3d11va.h.
Referenced by d3d11va_frames_init(), d3d11va_frames_uninit(), d3d11va_pool_alloc(), and opencl_mem_flags_for_mapping().
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 160 of file hwcontext_d3d11va.h.
Referenced by d3d11va_alloc_single(), d3d11va_frames_init(), and ff_dxva2_common_frame_params().
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 166 of file hwcontext_d3d11va.h.
Referenced by d3d11va_alloc_single(), and d3d11va_frames_init().