Miam-Player  0.8.0
A nice music player
vda_context Struct Reference

#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
 

Detailed Description

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.

Member Data Documentation

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.

  • encoding: unused
  • decoding: Set/Unset by user.
VDADecoder vda_context::decoder

VDA decoder object.

  • encoding: unused
  • decoding: Set/Unset by libavcodec.
int vda_context::format

The frame format.

  • encoding: unused
  • decoding: Set/Unset by user.
int vda_context::height

The frame height.

  • encoding: unused
  • decoding: Set/Unset by user.
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.

  • encoding: unused
  • decoding: Set/Unset by user.

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