FFmpeg  4.0
Data Fields
AVD3D11FrameDescriptor Struct Reference

D3D11 frame descriptor for pool allocation. More...

#include <libavutil/hwcontext_d3d11va.h>

Data Fields

ID3D11Texture2D * texture
 The texture in which the frame is located. More...
 
intptr_t index
 The index into the array texture element representing the frame, or 0 if the texture is not an array texture. More...
 

Detailed Description

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.

Definition at line 109 of file hwcontext_d3d11va.h.

Field Documentation

◆ texture

ID3D11Texture2D* AVD3D11FrameDescriptor::texture

The texture in which the frame is located.

The reference count is managed by the AVBufferRef, and destroying the reference will release the interface.

Normally stored in AVFrame.data[0].

Definition at line 117 of file hwcontext_d3d11va.h.

Referenced by d3d11va_get_buffer(), and wrap_texture_buf().

◆ index

intptr_t AVD3D11FrameDescriptor::index

The index into the array texture element representing the frame, or 0 if the texture is not an array texture.

Normally stored in AVFrame.data[1] (cast from intptr_t).

Definition at line 125 of file hwcontext_d3d11va.h.

Referenced by d3d11va_get_buffer(), and wrap_texture_buf().


The documentation for this struct was generated from the following file: