FFmpeg
Data Structures | Enumerations | Functions
vaapi_decode.h File Reference
#include <va/va.h>
#include "libavutil/frame.h"
#include "libavutil/hwcontext.h"
#include "libavutil/hwcontext_vaapi.h"
#include "avcodec.h"

Go to the source code of this file.

Data Structures

struct  VAAPIDecodePicture
 
struct  VAAPIDecodeContext
 

Enumerations

enum  { MAX_PARAM_BUFFERS = 16 }
 

Functions

static VASurfaceID ff_vaapi_get_surface_id (AVFrame *pic)
 
int ff_vaapi_decode_make_param_buffer (AVCodecContext *avctx, VAAPIDecodePicture *pic, int type, const void *data, size_t size)
 
int ff_vaapi_decode_make_slice_buffer (AVCodecContext *avctx, VAAPIDecodePicture *pic, const void *params_data, int nb_params, size_t params_size, const void *slice_data, size_t slice_size)
 
int ff_vaapi_decode_issue (AVCodecContext *avctx, VAAPIDecodePicture *pic)
 
int ff_vaapi_decode_cancel (AVCodecContext *avctx, VAAPIDecodePicture *pic)
 
int ff_vaapi_decode_init (AVCodecContext *avctx)
 
int ff_vaapi_decode_uninit (AVCodecContext *avctx)
 
int ff_vaapi_common_frame_params (AVCodecContext *avctx, AVBufferRef *hw_frames_ctx)
 

Enumeration Type Documentation

◆ anonymous enum

anonymous enum
Enumerator
MAX_PARAM_BUFFERS 

Definition at line 35 of file vaapi_decode.h.

Function Documentation

◆ ff_vaapi_get_surface_id()

static VASurfaceID ff_vaapi_get_surface_id ( AVFrame pic)
inlinestatic

◆ ff_vaapi_decode_make_param_buffer()

int ff_vaapi_decode_make_param_buffer ( AVCodecContext avctx,
VAAPIDecodePicture pic,
int  type,
const void *  data,
size_t  size 
)

◆ ff_vaapi_decode_make_slice_buffer()

int ff_vaapi_decode_make_slice_buffer ( AVCodecContext avctx,
VAAPIDecodePicture pic,
const void *  params_data,
int  nb_params,
size_t  params_size,
const void *  slice_data,
size_t  slice_size 
)

◆ ff_vaapi_decode_issue()

int ff_vaapi_decode_issue ( AVCodecContext avctx,
VAAPIDecodePicture pic 
)

◆ ff_vaapi_decode_cancel()

int ff_vaapi_decode_cancel ( AVCodecContext avctx,
VAAPIDecodePicture pic 
)

◆ ff_vaapi_decode_init()

int ff_vaapi_decode_init ( AVCodecContext avctx)

Definition at line 661 of file vaapi_decode.c.

Referenced by vaapi_av1_decode_init().

◆ ff_vaapi_decode_uninit()

int ff_vaapi_decode_uninit ( AVCodecContext avctx)

Definition at line 707 of file vaapi_decode.c.

Referenced by ff_vaapi_decode_init(), and vaapi_av1_decode_uninit().

◆ ff_vaapi_common_frame_params()

int ff_vaapi_common_frame_params ( AVCodecContext avctx,
AVBufferRef hw_frames_ctx 
)

Definition at line 637 of file vaapi_decode.c.