FFmpeg
Classes | Typedefs
hwcontext_d3d11va.h File Reference

An API-specific header for AV_HWDEVICE_TYPE_D3D11VA. More...

#include <d3d11.h>
#include <stdint.h>

Go to the source code of this file.

Classes

struct  AVD3D11VADeviceContext
 This struct is allocated as AVHWDeviceContext.hwctx. More...
 
struct  AVD3D11FrameDescriptor
 D3D11 frame descriptor for pool allocation. More...
 
struct  AVD3D11VAFramesContext
 This struct is allocated as AVHWFramesContext.hwctx. More...
 

Typedefs

typedef struct AVD3D11VADeviceContext AVD3D11VADeviceContext
 This struct is allocated as AVHWDeviceContext.hwctx.
 
typedef struct AVD3D11FrameDescriptor AVD3D11FrameDescriptor
 D3D11 frame descriptor for pool allocation. More...
 
typedef struct AVD3D11VAFramesContext AVD3D11VAFramesContext
 This struct is allocated as AVHWFramesContext.hwctx.
 

Detailed Description

An API-specific header for AV_HWDEVICE_TYPE_D3D11VA.

The default pool implementation will be fixed-size if initial_pool_size is set (and allocate elements from an array texture). Otherwise it will allocate individual textures. Be aware that decoding requires a single array texture.

Using sw_format==AV_PIX_FMT_YUV420P has special semantics, and maps to DXGI_FORMAT_420_OPAQUE. av_hwframe_transfer_data() is not supported for this format. Refer to MSDN for details.

av_hwdevice_ctx_create() for this device type supports a key named "debug" for the AVDictionary entry. If this is set to any value, the device creation code will try to load various supported D3D debugging layers.

Typedef Documentation

§ AVD3D11FrameDescriptor

D3D11 frame descriptor for pool allocation.

In user-allocated pools, AVHWFramesContext.pool must return AVBufferRefs with the data pointer pointing at an object of this type describing the planes of the frame.

This has no use outside of custom allocation, and AVFrame AVBufferRef do not necessarily point to an instance of this struct.