FFmpeg
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Functions | Variables
vaapi_mpeg2.c File Reference
#include "mpegutils.h"
#include "mpegvideo.h"
#include "vaapi_internal.h"
#include "internal.h"

Go to the source code of this file.

Functions

static int mpeg2_get_f_code (MpegEncContext *s)
 Reconstruct bitstream f_code. More...
 
static int mpeg2_get_is_frame_start (MpegEncContext *s)
 Determine frame start: first field for field picture or frame picture. More...
 
static int vaapi_mpeg2_start_frame (AVCodecContext *avctx, av_unused const uint8_t *buffer, av_unused uint32_t size)
 
static int vaapi_mpeg2_decode_slice (AVCodecContext *avctx, const uint8_t *buffer, uint32_t size)
 

Variables

AVHWAccel ff_mpeg2_vaapi_hwaccel
 

Function Documentation

static int mpeg2_get_f_code ( MpegEncContext s)
inlinestatic

Reconstruct bitstream f_code.

Definition at line 29 of file vaapi_mpeg2.c.

Referenced by vaapi_mpeg2_start_frame().

static int mpeg2_get_is_frame_start ( MpegEncContext s)
inlinestatic

Determine frame start: first field for field picture or frame picture.

Definition at line 36 of file vaapi_mpeg2.c.

Referenced by vaapi_mpeg2_start_frame().

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

Definition at line 41 of file vaapi_mpeg2.c.

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

Definition at line 102 of file vaapi_mpeg2.c.

Variable Documentation

AVHWAccel ff_mpeg2_vaapi_hwaccel
Initial value:
= {
.name = "mpeg2_vaapi",
.pix_fmt = AV_PIX_FMT_VAAPI,
.start_frame = vaapi_mpeg2_start_frame,
.decode_slice = vaapi_mpeg2_decode_slice,
.priv_data_size = sizeof(FFVAContext),
}
int ff_vaapi_context_fini(AVCodecContext *avctx)
Common AVHWAccel.uninit() implementation.
Definition: vaapi.c:66
int ff_vaapi_context_init(AVCodecContext *avctx)
Common AVHWAccel.init() implementation.
Definition: vaapi.c:45
static int vaapi_mpeg2_start_frame(AVCodecContext *avctx, av_unused const uint8_t *buffer, av_unused uint32_t size)
Definition: vaapi_mpeg2.c:41
preferred ID for MPEG-1/2 video decoding
Definition: avcodec.h:196
static int vaapi_mpeg2_decode_slice(AVCodecContext *avctx, const uint8_t *buffer, uint32_t size)
Definition: vaapi_mpeg2.c:102
int ff_vaapi_mpeg_end_frame(AVCodecContext *avctx)

Definition at line 135 of file vaapi_mpeg2.c.