vda_context Struct Reference

This structure is used to provide the necessary configurations and data to the VDA FFmpeg HWAccel implementation. More...

#include <vda.h>


Data Fields

VDADecoder decoder
 VDA decoder object.
vda_framequeue
 VDA frames queue ordered by presentation timestamp.
pthread_mutex_t queue_mutex
 Mutex for locking queue operations.
int width
 The frame width.
int height
 The frame height.
int format
 The frame format.
OSType cv_pix_fmt_type
 The pixel format for output image buffers.
uint8_t * bitstream
 The current bitstream buffer.
int bitstream_size
 The current size of the bitstream.
int ref_size
 The reference size used for fast reallocation.


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.

Definition at line 72 of file vda.h.


Field Documentation

The current bitstream buffer.

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

Definition at line 135 of file vda.h.

Referenced by decode_slice(), end_frame(), ff_vda_create_decoder(), and ff_vda_destroy_decoder().

The current size of the bitstream.

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

Definition at line 143 of file vda.h.

Referenced by decode_slice(), end_frame(), and start_frame().

The pixel format for output image buffers.

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

Definition at line 127 of file vda.h.

Referenced by ff_vda_create_decoder(), and vda_decoder_callback().

VDA decoder object.

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

Definition at line 79 of file vda.h.

Referenced by decode_slice(), end_frame(), ff_vda_create_decoder(), ff_vda_decoder_decode(), ff_vda_destroy_decoder(), and start_frame().

The frame format.

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

Definition at line 119 of file vda.h.

Referenced by ff_vda_create_decoder().

The frame height.

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

Definition at line 111 of file vda.h.

Referenced by ff_vda_create_decoder().

VDA frames queue ordered by presentation timestamp.

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

Definition at line 87 of file vda.h.

Referenced by ff_vda_queue_pop(), vda_clear_queue(), and vda_decoder_callback().

Mutex for locking queue operations.

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

Definition at line 95 of file vda.h.

Referenced by ff_vda_create_decoder(), ff_vda_destroy_decoder(), ff_vda_queue_pop(), vda_clear_queue(), and vda_decoder_callback().

The reference size used for fast reallocation.

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

Definition at line 151 of file vda.h.

Referenced by decode_slice(), and ff_vda_create_decoder().

The frame width.

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

Definition at line 103 of file vda.h.

Referenced by ff_vda_create_decoder().


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

Generated on Fri Oct 26 02:46:18 2012 for FFmpeg by  doxygen 1.5.8