FFmpeg  4.0
Functions | Variables
vaapi_vp8.c File Reference
#include <va/va.h>
#include <va/va_dec_vp8.h>
#include "hwaccel.h"
#include "vaapi_decode.h"
#include "vp8.h"

Go to the source code of this file.

Functions

static VASurfaceID vaapi_vp8_surface_id (VP8Frame *vf)
 
static int vaapi_vp8_start_frame (AVCodecContext *avctx, av_unused const uint8_t *buffer, av_unused uint32_t size)
 
static int vaapi_vp8_end_frame (AVCodecContext *avctx)
 
static int vaapi_vp8_decode_slice (AVCodecContext *avctx, const uint8_t *buffer, uint32_t size)
 

Variables

const AVHWAccel ff_vp8_vaapi_hwaccel
 

Function Documentation

◆ vaapi_vp8_surface_id()

static VASurfaceID vaapi_vp8_surface_id ( VP8Frame vf)
static

Definition at line 26 of file vaapi_vp8.c.

Referenced by vaapi_vp8_start_frame().

◆ vaapi_vp8_start_frame()

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

Definition at line 34 of file vaapi_vp8.c.

◆ vaapi_vp8_end_frame()

static int vaapi_vp8_end_frame ( AVCodecContext avctx)
static

Definition at line 177 of file vaapi_vp8.c.

◆ vaapi_vp8_decode_slice()

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

Definition at line 185 of file vaapi_vp8.c.

Variable Documentation

◆ ff_vp8_vaapi_hwaccel

const AVHWAccel ff_vp8_vaapi_hwaccel
Initial value:
= {
.name = "vp8_vaapi",
.pix_fmt = AV_PIX_FMT_VAAPI,
.start_frame = &vaapi_vp8_start_frame,
.end_frame = &vaapi_vp8_end_frame,
.decode_slice = &vaapi_vp8_decode_slice,
.frame_priv_data_size = sizeof(VAAPIDecodePicture),
.frame_params = &ff_vaapi_common_frame_params,
.priv_data_size = sizeof(VAAPIDecodeContext),
.caps_internal = HWACCEL_CAP_ASYNC_SAFE,
}
static int vaapi_vp8_end_frame(AVCodecContext *avctx)
Definition: vaapi_vp8.c:177
static av_cold int init(AVCodecContext *avctx)
Definition: avrndec.c:35
int ff_vaapi_common_frame_params(AVCodecContext *avctx, AVBufferRef *hw_frames_ctx)
Definition: vaapi_decode.c:586
int ff_vaapi_decode_uninit(AVCodecContext *avctx)
Definition: vaapi_decode.c:699
static av_cold int uninit(AVCodecContext *avctx)
Definition: crystalhd.c:279
static int vaapi_vp8_decode_slice(AVCodecContext *avctx, const uint8_t *buffer, uint32_t size)
Definition: vaapi_vp8.c:185
int ff_vaapi_decode_init(AVCodecContext *avctx)
Definition: vaapi_decode.c:610
#define HWACCEL_CAP_ASYNC_SAFE
Definition: hwaccel.h:26
static int vaapi_vp8_start_frame(AVCodecContext *avctx, av_unused const uint8_t *buffer, av_unused uint32_t size)
Definition: vaapi_vp8.c:34

Definition at line 223 of file vaapi_vp8.c.