This structure is used to provide the necessary configurations and data to the VDA FFmpeg HWAccel implementation.
More...
#include <libavcodec/vda.h>
This structure is used to provide the necessary configurations and data to the VDA FFmpeg HWAccel implementation.
The application must make it available as AVCodecContext.hwaccel_context.
Definition at line 65 of file vda.h.
◆ decoder
VDADecoder vda_context::decoder |
VDA decoder object.
- encoding: unused
- decoding: Set/Unset by libavcodec.
Definition at line 72 of file vda.h.
◆ cv_buffer
CVPixelBufferRef vda_context::cv_buffer |
The Core Video pixel buffer that contains the current image data.
encoding: unused decoding: Set by libavcodec. Unset by user.
Definition at line 80 of file vda.h.
◆ use_sync_decoding
int vda_context::use_sync_decoding |
Use the hardware decoder in synchronous mode.
encoding: unused decoding: Set by user.
Definition at line 88 of file vda.h.
◆ width
The frame width.
- encoding: unused
- decoding: Set/Unset by user.
Definition at line 96 of file vda.h.
◆ height
The frame height.
- encoding: unused
- decoding: Set/Unset by user.
Definition at line 104 of file vda.h.
◆ format
The frame format.
- encoding: unused
- decoding: Set/Unset by user.
Definition at line 112 of file vda.h.
◆ cv_pix_fmt_type
OSType vda_context::cv_pix_fmt_type |
The pixel format for output image buffers.
- encoding: unused
- decoding: Set/Unset by user.
Definition at line 120 of file vda.h.
◆ priv_bitstream
uint8_t* vda_context::priv_bitstream |
unused
Definition at line 125 of file vda.h.
◆ priv_bitstream_size
int vda_context::priv_bitstream_size |
unused
Definition at line 130 of file vda.h.
◆ priv_allocated_size
int vda_context::priv_allocated_size |
unused
Definition at line 135 of file vda.h.
◆ use_ref_buffer
int vda_context::use_ref_buffer |
Use av_buffer to manage buffer.
When the flag is set, the CVPixelBuffers returned by the decoder will be released automatically, so you have to retain them if necessary. Not setting this flag may cause memory leak.
encoding: unused decoding: Set by user.
Definition at line 146 of file vda.h.
The documentation for this struct was generated from the following file: