FFmpeg
Macros | Functions
mpegvideodec.h File Reference
#include "libavutil/frame.h"
#include "libavutil/log.h"
#include "avcodec.h"
#include "get_bits.h"
#include "mpegpicture.h"
#include "mpegvideo.h"
#include "mpegvideodata.h"

Go to the source code of this file.

Macros

#define FF_MPV_QSCALE_TYPE_MPEG1   0
 
#define FF_MPV_QSCALE_TYPE_MPEG2   1
 

Functions

int ff_mpv_decode_init (MpegEncContext *s, AVCodecContext *avctx)
 Initialize the given MpegEncContext for decoding. More...
 
int ff_mpv_common_frame_size_change (MpegEncContext *s)
 
int ff_mpv_frame_start (MpegEncContext *s, AVCodecContext *avctx)
 generic function called after decoding the header and before a frame is decoded. More...
 
int ff_mpv_alloc_dummy_frames (MpegEncContext *s)
 Ensure that the dummy frames are allocated according to pict_type if necessary. More...
 
void ff_mpv_reconstruct_mb (MpegEncContext *s, int16_t block[12][64])
 
void ff_mpv_report_decode_progress (MpegEncContext *s)
 
void ff_mpv_frame_end (MpegEncContext *s)
 
int ff_mpv_export_qp_table (const MpegEncContext *s, AVFrame *f, const MPVPicture *p, int qp_type)
 
int ff_mpeg_update_thread_context (AVCodecContext *dst, const AVCodecContext *src)
 
void ff_mpeg_draw_horiz_band (MpegEncContext *s, int y, int h)
 
void ff_mpeg_flush (AVCodecContext *avctx)
 
int ff_mpv_decode_close (AVCodecContext *avctx)
 
void ff_print_debug_info (const MpegEncContext *s, const MPVPicture *p, AVFrame *pict)
 
static int mpeg_get_qscale (MpegEncContext *s)
 
static int check_marker (void *logctx, GetBitContext *s, const char *msg)
 

Detailed Description

mpegvideo decoder header.

Definition in file mpegvideodec.h.

Macro Definition Documentation

◆ FF_MPV_QSCALE_TYPE_MPEG1

#define FF_MPV_QSCALE_TYPE_MPEG1   0

Definition at line 40 of file mpegvideodec.h.

◆ FF_MPV_QSCALE_TYPE_MPEG2

#define FF_MPV_QSCALE_TYPE_MPEG2   1

Definition at line 41 of file mpegvideodec.h.

Function Documentation

◆ ff_mpv_decode_init()

int ff_mpv_decode_init ( MpegEncContext s,
AVCodecContext avctx 
)

Initialize the given MpegEncContext for decoding.

the changed fields will not depend upon the prior state of the MpegEncContext.

Also initialize the picture pool.

Definition at line 46 of file mpegvideo_dec.c.

Referenced by ff_h263_decode_init(), ff_rv34_decode_init(), ff_vc1_decode_init(), h261_decode_init(), mpeg_decode_init(), and rv10_decode_init().

◆ ff_mpv_common_frame_size_change()

int ff_mpv_common_frame_size_change ( MpegEncContext s)

◆ ff_mpv_frame_start()

int ff_mpv_frame_start ( MpegEncContext s,
AVCodecContext avctx 
)

generic function called after decoding the header and before a frame is decoded.

Definition at line 352 of file mpegvideo_dec.c.

Referenced by decode_wmv9(), ff_h263_decode_frame(), ff_rv34_decode_frame(), h261_decode_frame(), mpeg_field_start(), rv10_decode_packet(), and vc1_decode_frame().

◆ ff_mpv_alloc_dummy_frames()

int ff_mpv_alloc_dummy_frames ( MpegEncContext s)

Ensure that the dummy frames are allocated according to pict_type if necessary.

Definition at line 309 of file mpegvideo_dec.c.

Referenced by ff_mpv_frame_start(), and mpeg_field_start().

◆ ff_mpv_reconstruct_mb()

void ff_mpv_reconstruct_mb ( MpegEncContext s,
int16_t  block[12][64] 
)

◆ ff_mpv_report_decode_progress()

void ff_mpv_report_decode_progress ( MpegEncContext s)

Definition at line 485 of file mpegvideo_dec.c.

Referenced by decode_slice(), and mpeg_decode_slice().

◆ ff_mpv_frame_end()

void ff_mpv_frame_end ( MpegEncContext s)

◆ ff_mpv_export_qp_table()

int ff_mpv_export_qp_table ( const MpegEncContext s,
AVFrame f,
const MPVPicture p,
int  qp_type 
)

Definition at line 432 of file mpegvideo_dec.c.

Referenced by ff_h263_decode_frame(), finish_frame(), rv10_decode_frame(), and slice_end().

◆ ff_mpeg_update_thread_context()

int ff_mpeg_update_thread_context ( AVCodecContext dst,
const AVCodecContext src 
)

Definition at line 76 of file mpegvideo_dec.c.

Referenced by ff_rv34_decode_update_thread_context().

◆ ff_mpeg_draw_horiz_band()

void ff_mpeg_draw_horiz_band ( MpegEncContext s,
int  y,
int  h 
)

◆ ff_mpeg_flush()

void ff_mpeg_flush ( AVCodecContext avctx)

Definition at line 471 of file mpegvideo_dec.c.

Referenced by decode_wmv9(), and flush().

◆ ff_mpv_decode_close()

int ff_mpv_decode_close ( AVCodecContext avctx)

◆ ff_print_debug_info()

void ff_print_debug_info ( const MpegEncContext s,
const MPVPicture p,
AVFrame pict 
)

◆ mpeg_get_qscale()

static int mpeg_get_qscale ( MpegEncContext s)
inlinestatic

◆ check_marker()

static int check_marker ( void *  logctx,
GetBitContext s,
const char *  msg 
)
inlinestatic