![]() |
Miam-Player
0.8.0
A nice music player
|
#include <vda.h>
Public Attributes | |
VDADecoder | decoder |
CVPixelBufferRef | cv_buffer |
int | use_sync_decoding |
int | width |
int | height |
int | format |
OSType | cv_pix_fmt_type |
uint8_t * | priv_bitstream |
int | priv_bitstream_size |
int | priv_allocated_size |
int | use_ref_buffer |
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.
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.
OSType vda_context::cv_pix_fmt_type |
The pixel format for output image buffers.
VDADecoder vda_context::decoder |
VDA decoder object.
int vda_context::format |
The frame format.
int vda_context::height |
The frame height.
int vda_context::priv_allocated_size |
unused
uint8_t* vda_context::priv_bitstream |
unused
int vda_context::priv_bitstream_size |
unused
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.
int vda_context::use_sync_decoding |
Use the hardware decoder in synchronous mode.
encoding: unused decoding: Set by user.
int vda_context::width |
The frame width.