FFmpeg
Functions | Variables
vaapi_mjpeg.c File Reference
#include <va/va.h>
#include <va/va_dec_jpeg.h>
#include "hwconfig.h"
#include "vaapi_decode.h"
#include "mjpegdec.h"

Go to the source code of this file.

Functions

static int vaapi_mjpeg_start_frame (AVCodecContext *avctx, av_unused const uint8_t *buffer, av_unused uint32_t size)
 
static int vaapi_mjpeg_end_frame (AVCodecContext *avctx)
 
static int vaapi_mjpeg_decode_slice (AVCodecContext *avctx, const uint8_t *buffer, uint32_t size)
 

Variables

const AVHWAccel ff_mjpeg_vaapi_hwaccel
 

Function Documentation

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

Definition at line 26 of file vaapi_mjpeg.c.

static int vaapi_mjpeg_end_frame ( AVCodecContext avctx)
static

Definition at line 64 of file vaapi_mjpeg.c.

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

Definition at line 72 of file vaapi_mjpeg.c.

Variable Documentation

const AVHWAccel ff_mjpeg_vaapi_hwaccel
Initial value:
= {
.name = "mjpeg_vaapi",
.pix_fmt = AV_PIX_FMT_VAAPI,
.start_frame = &vaapi_mjpeg_start_frame,
.end_frame = &vaapi_mjpeg_end_frame,
.decode_slice = &vaapi_mjpeg_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_mjpeg_decode_slice(AVCodecContext *avctx, const uint8_t *buffer, uint32_t size)
Definition: vaapi_mjpeg.c:72
static int vaapi_mjpeg_start_frame(AVCodecContext *avctx, av_unused const uint8_t *buffer, av_unused uint32_t size)
Definition: vaapi_mjpeg.c:26
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:604
int ff_vaapi_decode_uninit(AVCodecContext *avctx)
Definition: vaapi_decode.c:717
static av_cold int uninit(AVCodecContext *avctx)
Definition: crystalhd.c:279
#define HWACCEL_CAP_ASYNC_SAFE
Definition: hwconfig.h:26
int ff_vaapi_decode_init(AVCodecContext *avctx)
Definition: vaapi_decode.c:628
static int vaapi_mjpeg_end_frame(AVCodecContext *avctx)
Definition: vaapi_mjpeg.c:64

Definition at line 145 of file vaapi_mjpeg.c.