This structure is used to provide the necessary configurations and data to the VDA Libav HWAccel implementation. More...
#include <vda.h>
Data Fields | |
VDADecoder | decoder |
VDA decoder object. More... | |
CVPixelBufferRef | cv_buffer |
The Core Video pixel buffer that contains the current image data. More... | |
int | use_sync_decoding |
Use the hardware decoder in synchronous mode. More... | |
int | width |
The frame width. More... | |
int | height |
The frame height. More... | |
int | format |
The frame format. More... | |
OSType | cv_pix_fmt_type |
The pixel format for output image buffers. More... | |
uint8_t * | priv_bitstream |
The current bitstream buffer. More... | |
int | priv_bitstream_size |
The current size of the bitstream. More... | |
int | priv_allocated_size |
The reference size used for fast reallocation. More... | |
This structure is used to provide the necessary configurations and data to the VDA Libav HWAccel implementation.
The application must make it available as AVCodecContext.hwaccel_context.
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 109 of file vda.h.
Referenced by end_frame(), and vda_decoder_callback().
OSType vda_context::cv_pix_fmt_type |
The pixel format for output image buffers.
Definition at line 171 of file vda.h.
Referenced by ff_vda_create_decoder(), and vda_decoder_callback().
VDADecoder vda_context::decoder |
VDA decoder object.
Definition at line 101 of file vda.h.
Referenced by decode_slice(), end_frame(), ff_vda_create_decoder(), ff_vda_destroy_decoder(), start_frame(), and vda_sync_decode().
int vda_context::format |
The frame format.
Definition at line 163 of file vda.h.
Referenced by ff_vda_create_decoder().
int vda_context::height |
The frame height.
Definition at line 155 of file vda.h.
Referenced by ff_vda_create_decoder().
int vda_context::priv_allocated_size |
The reference size used for fast reallocation.
Definition at line 186 of file vda.h.
Referenced by decode_slice().
uint8_t* vda_context::priv_bitstream |
The current bitstream buffer.
Definition at line 176 of file vda.h.
Referenced by decode_slice(), end_frame(), ff_vda_destroy_decoder(), and vda_sync_decode().
int vda_context::priv_bitstream_size |
The current size of the bitstream.
Definition at line 181 of file vda.h.
Referenced by decode_slice(), end_frame(), start_frame(), and vda_sync_decode().
int vda_context::use_sync_decoding |
Use the hardware decoder in synchronous mode.
encoding: unused decoding: Set by user.
Definition at line 117 of file vda.h.
Referenced by end_frame(), and vda_decoder_callback().
int vda_context::width |
The frame width.
Definition at line 147 of file vda.h.
Referenced by ff_vda_create_decoder().