FFmpeg
[フレーム]
Data Structures | Functions
VAAPI_Decoding

Data Structures

struct   FFVAContext
 

Functions

static void  destroy_buffers (VADisplay display, VABufferID *buffers, unsigned int n_buffers)
 
  Common AVHWAccel.init() implementation. More...
 
  Common AVHWAccel.uninit() implementation. More...
 
int  ff_vaapi_render_picture (FFVAContext *vactx, VASurfaceID surface)
 
 
static voidalloc_buffer (FFVAContext *vactx, int type, unsigned int size, uint32_t *buf_id)
 
voidff_vaapi_alloc_pic_param (FFVAContext *vactx, unsigned int size)
  Allocate a new picture parameter buffer. More...
 
voidff_vaapi_alloc_iq_matrix (FFVAContext *vactx, unsigned int size)
  Allocate a new IQ matrix buffer. More...
 
  Allocate a new bit-plane buffer. More...
 
VASliceParameterBufferBase *  ff_vaapi_alloc_slice (FFVAContext *vactx, const uint8_t *buffer, uint32_t size)
  Allocate a new slice descriptor for the input slice. More...
 
  Common AVHWAccel.end_frame() implementation. More...
 
  Extract vaapi_context from an AVCodecContext. More...
 
static VASurfaceID  ff_vaapi_get_surface_id (AVFrame *pic)
  Extract VASurfaceID from an AVFrame. More...
 
 

Detailed Description

Function Documentation

static void destroy_buffers ( VADisplay  display,
VABufferID *  buffers,
unsigned int  n_buffers 
)
static

Definition at line 34 of file vaapi.c.

Referenced by ff_vaapi_common_end_frame().

int ff_vaapi_context_init ( AVCodecContextavctx )

Common AVHWAccel.init() implementation.

Definition at line 45 of file vaapi.c.

int ff_vaapi_context_fini ( AVCodecContextavctx )

Common AVHWAccel.uninit() implementation.

Definition at line 66 of file vaapi.c.

int ff_vaapi_render_picture ( FFVAContextvactx,
VASurfaceID  surface 
)

Definition at line 71 of file vaapi.c.

Referenced by vaapi_h264_end_frame(), vaapi_hevc_end_frame(), and vaapi_vp9_end_frame().

int ff_vaapi_commit_slices ( FFVAContextvactx )

Definition at line 111 of file vaapi.c.

Referenced by ff_vaapi_alloc_slice(), vaapi_h264_end_frame(), vaapi_hevc_end_frame(), and vaapi_vp9_end_frame().

static void* alloc_buffer ( FFVAContextvactx,
int  type,
unsigned int  size,
uint32_t *  buf_id 
)
static

Definition at line 151 of file vaapi.c.

Referenced by ff_vaapi_alloc_bitplane(), ff_vaapi_alloc_iq_matrix(), and ff_vaapi_alloc_pic_param().

void * ff_vaapi_alloc_pic_param ( FFVAContextvactx,
unsigned int  size 
)

Allocate a new picture parameter buffer.

Definition at line 163 of file vaapi.c.

Referenced by vaapi_h264_start_frame(), vaapi_hevc_start_frame(), vaapi_mpeg2_start_frame(), vaapi_mpeg4_start_frame(), vaapi_vc1_start_frame(), and vaapi_vp9_start_frame().

void * ff_vaapi_alloc_iq_matrix ( FFVAContextvactx,
unsigned int  size 
)

Allocate a new IQ matrix buffer.

Definition at line 168 of file vaapi.c.

Referenced by vaapi_h264_start_frame(), vaapi_hevc_start_frame(), vaapi_mpeg2_start_frame(), and vaapi_mpeg4_start_frame().

uint8_t * ff_vaapi_alloc_bitplane ( FFVAContextvactx,
uint32_t  size 
)

Allocate a new bit-plane buffer.

Definition at line 173 of file vaapi.c.

Referenced by vaapi_vc1_start_frame().

VASliceParameterBufferBase * ff_vaapi_alloc_slice ( FFVAContextvactx,
const uint8_tbuffer,
uint32_t  size 
)

Allocate a new slice descriptor for the input slice.

Parameters
vactx the VA API context
buffer the slice data buffer base
size the size of the slice in bytes
Returns
the newly allocated slice parameter

Definition at line 178 of file vaapi.c.

Referenced by vaapi_h264_decode_slice(), vaapi_hevc_decode_slice(), vaapi_mpeg2_decode_slice(), vaapi_mpeg4_decode_slice(), vaapi_vc1_decode_slice(), and vaapi_vp9_decode_slice().

void ff_vaapi_common_end_frame ( AVCodecContextavctx )

Common AVHWAccel.end_frame() implementation.

Definition at line 209 of file vaapi.c.

Referenced by vaapi_h264_end_frame(), vaapi_hevc_end_frame(), and vaapi_vp9_end_frame().

static FFVAContext* ff_vaapi_get_context ( AVCodecContextavctx )
inlinestatic

Extract vaapi_context from an AVCodecContext.

Definition at line 57 of file vaapi_internal.h.

Referenced by ff_vaapi_common_end_frame(), ff_vaapi_context_init(), vaapi_h264_decode_slice(), vaapi_h264_end_frame(), vaapi_h264_start_frame(), vaapi_hevc_decode_slice(), vaapi_hevc_end_frame(), vaapi_hevc_start_frame(), vaapi_mpeg2_decode_slice(), vaapi_mpeg2_start_frame(), vaapi_mpeg4_decode_slice(), vaapi_mpeg4_start_frame(), vaapi_vc1_decode_slice(), vaapi_vc1_start_frame(), vaapi_vp9_decode_slice(), vaapi_vp9_end_frame(), and vaapi_vp9_start_frame().

static VASurfaceID ff_vaapi_get_surface_id ( AVFramepic )
inlinestatic

Extract VASurfaceID from an AVFrame.

Definition at line 63 of file vaapi_internal.h.

Referenced by dpb_add(), fill_picture_parameters(), fill_vaapi_pic(), find_frame_rps_type(), get_ref_pic_index(), vaapi_h264_end_frame(), vaapi_hevc_end_frame(), vaapi_mpeg2_start_frame(), vaapi_mpeg4_start_frame(), vaapi_vc1_start_frame(), and vaapi_vp9_end_frame().

int ff_vaapi_mpeg_end_frame ( AVCodecContextavctx )

Generated on Thu Oct 27 2016 19:33:57 for FFmpeg by   doxygen 1.8.6

AltStyle によって変換されたページ (->オリジナル) /