FFmpeg
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Functions | Variables
vaapi_hevc.c File Reference
#include <va/va.h>
#include <va/va_dec_hevc.h>
#include "avcodec.h"
#include "hevcdec.h"
#include "hwaccel.h"
#include "vaapi_decode.h"

Go to the source code of this file.

Data Structures

struct  VAAPIDecodePictureHEVC
 

Functions

static void init_vaapi_pic (VAPictureHEVC *va_pic)
 
static void fill_vaapi_pic (VAPictureHEVC *va_pic, const HEVCFrame *pic, int rps_type)
 
static int find_frame_rps_type (const HEVCContext *h, const HEVCFrame *pic)
 
static void fill_vaapi_reference_frames (const HEVCContext *h, VAPictureParameterBufferHEVC *pp)
 
static int vaapi_hevc_start_frame (AVCodecContext *avctx, av_unused const uint8_t *buffer, av_unused uint32_t size)
 
static int vaapi_hevc_end_frame (AVCodecContext *avctx)
 
static void fill_pred_weight_table (const HEVCContext *h, const SliceHeader *sh, VASliceParameterBufferHEVC *slice_param)
 
static uint8_t get_ref_pic_index (const HEVCContext *h, const HEVCFrame *frame)
 
static int vaapi_hevc_decode_slice (AVCodecContext *avctx, const uint8_t *buffer, uint32_t size)
 

Variables

AVHWAccel ff_hevc_vaapi_hwaccel
 

Function Documentation

static void init_vaapi_pic ( VAPictureHEVC *  va_pic)
static

Definition at line 40 of file vaapi_hevc.c.

Referenced by fill_vaapi_reference_frames().

static void fill_vaapi_pic ( VAPictureHEVC *  va_pic,
const HEVCFrame pic,
int  rps_type 
)
static

Definition at line 47 of file vaapi_hevc.c.

Referenced by fill_vaapi_reference_frames(), and vaapi_hevc_start_frame().

static int find_frame_rps_type ( const HEVCContext h,
const HEVCFrame pic 
)
static

Definition at line 64 of file vaapi_hevc.c.

Referenced by fill_vaapi_reference_frames().

static void fill_vaapi_reference_frames ( const HEVCContext h,
VAPictureParameterBufferHEVC *  pp 
)
static

Definition at line 87 of file vaapi_hevc.c.

Referenced by vaapi_hevc_start_frame().

static int vaapi_hevc_start_frame ( AVCodecContext avctx,
av_unused const uint8_t buffer,
av_unused uint32_t  size 
)
static

Definition at line 110 of file vaapi_hevc.c.

static int vaapi_hevc_end_frame ( AVCodecContext avctx)
static

Definition at line 256 of file vaapi_hevc.c.

static void fill_pred_weight_table ( const HEVCContext h,
const SliceHeader sh,
VASliceParameterBufferHEVC *  slice_param 
)
static

Definition at line 282 of file vaapi_hevc.c.

static uint8_t get_ref_pic_index ( const HEVCContext h,
const HEVCFrame frame 
)
static

Definition at line 332 of file vaapi_hevc.c.

static int vaapi_hevc_decode_slice ( AVCodecContext avctx,
const uint8_t buffer,
uint32_t  size 
)
static

Definition at line 351 of file vaapi_hevc.c.

Variable Documentation

AVHWAccel ff_hevc_vaapi_hwaccel
Initial value:
= {
.name = "hevc_vaapi",
.pix_fmt = AV_PIX_FMT_VAAPI,
.start_frame = vaapi_hevc_start_frame,
.end_frame = vaapi_hevc_end_frame,
.decode_slice = vaapi_hevc_decode_slice,
.frame_priv_data_size = sizeof(VAAPIDecodePictureHEVC),
.priv_data_size = sizeof(VAAPIDecodeContext),
.caps_internal = HWACCEL_CAP_ASYNC_SAFE,
}
static int vaapi_hevc_start_frame(AVCodecContext *avctx, av_unused const uint8_t *buffer, av_unused uint32_t size)
Definition: vaapi_hevc.c:110
static av_cold int init(AVCodecContext *avctx)
Definition: avrndec.c:35
int ff_vaapi_decode_uninit(AVCodecContext *avctx)
Definition: vaapi_decode.c:610
static av_cold int uninit(AVCodecContext *avctx)
Definition: crystalhd.c:287
static int vaapi_hevc_decode_slice(AVCodecContext *avctx, const uint8_t *buffer, uint32_t size)
Definition: vaapi_hevc.c:351
static int vaapi_hevc_end_frame(AVCodecContext *avctx)
Definition: vaapi_hevc.c:256
int ff_vaapi_decode_init(AVCodecContext *avctx)
Definition: vaapi_decode.c:478
#define HWACCEL_CAP_ASYNC_SAFE
Definition: hwaccel.h:22

Definition at line 426 of file vaapi_hevc.c.