vda_context Struct Reference
[VDA]

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.
CVPixelBufferRef cv_buffer
 The Core Video pixel buffer that contains the current image data.
int use_sync_decoding
 Use the hardware decoder in synchronous mode.
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_tpriv_bitstream
 The current bitstream buffer.
int priv_bitstream_size
 The current size of the bitstream.
int priv_allocated_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 94 of file vda.h.


Field 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.

Definition at line 109 of file vda.h.

Referenced by end_frame(), release_buffer(), vda_decoder_callback(), and vdadec_decode().

The pixel format for output image buffers.

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

Definition at line 171 of file vda.h.

Referenced by ff_vda_create_decoder(), vda_decoder_callback(), and vdadec_init().

VDA decoder object.

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

Definition at line 101 of file vda.h.

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

The frame format.

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

Definition at line 163 of file vda.h.

Referenced by ff_vda_create_decoder(), and vdadec_init().

The frame height.

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

Definition at line 155 of file vda.h.

Referenced by ff_vda_create_decoder(), and vdadec_init().

The reference size used for fast reallocation.

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

Definition at line 195 of file vda.h.

Referenced by decode_slice(), and ff_vda_create_decoder().

The current bitstream buffer.

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

Definition at line 179 of file vda.h.

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

The current size of the bitstream.

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

Definition at line 187 of file vda.h.

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

VDA frames queue ordered by presentation timestamp.

Deprecated:
Use synchronous decoding mode.
- encoding: unused
  • decoding: Set/Unset by libavcodec.

Definition at line 128 of file vda.h.

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

Mutex for locking queue operations.

Deprecated:
Use synchronous decoding mode.
- encoding: unused
  • decoding: Set/Unset by libavcodec.

Definition at line 138 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().

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(), vda_decoder_callback(), and vdadec_init().

The frame width.

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

Definition at line 147 of file vda.h.

Referenced by ff_vda_create_decoder(), and vdadec_init().


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

Generated on Fri Oct 26 02:50:17 2012 for FFmpeg by  doxygen 1.5.8