Libav
Data Fields
vda_context Struct Reference

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_tpriv_bitstream
 unused More...
 
int priv_bitstream_size
 unused More...
 
int priv_allocated_size
 unused More...
 

Detailed Description

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.

Definition at line 58 of file vda.h.

Field Documentation

VDADecoder vda_context::decoder

VDA decoder object.

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

Definition at line 65 of file vda.h.

Referenced by ff_vda_create_decoder(), ff_vda_destroy_decoder(), vda_old_h264_decode_slice(), vda_old_h264_end_frame(), vda_old_h264_start_frame(), and vda_sync_decode().

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 73 of file vda.h.

Referenced by vda_decoder_callback(), and vda_old_h264_end_frame().

int vda_context::use_sync_decoding

Use the hardware decoder in synchronous mode.

encoding: unused decoding: Set by user.

Definition at line 81 of file vda.h.

int vda_context::width

The frame width.

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

Definition at line 89 of file vda.h.

Referenced by ff_vda_create_decoder().

int vda_context::height

The frame height.

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

Definition at line 97 of file vda.h.

Referenced by ff_vda_create_decoder().

int vda_context::format

The frame format.

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

Definition at line 105 of file vda.h.

Referenced by ff_vda_create_decoder(), and ff_vda_default_init().

OSType vda_context::cv_pix_fmt_type

The pixel format for output image buffers.

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

Definition at line 113 of file vda.h.

Referenced by ff_vda_create_decoder(), and vda_decoder_callback().

uint8_t* vda_context::priv_bitstream

unused

Definition at line 118 of file vda.h.

int vda_context::priv_bitstream_size

unused

Definition at line 123 of file vda.h.

int vda_context::priv_allocated_size

unused

Definition at line 128 of file vda.h.


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