mpeg12.h File Reference
#include "mpegvideo.h"
Include dependency graph for mpeg12.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define DC_VLC_BITS   9
 
#define MV_VLC_BITS   9
 
#define TEX_VLC_BITS   9
 
#define MBINCR_VLC_BITS   9
 
#define MB_PAT_VLC_BITS   9
 
#define MB_PTYPE_VLC_BITS   6
 
#define MB_BTYPE_VLC_BITS   6
 

Functions

void ff_mpeg12_common_init (MpegEncContext *s)
 
void ff_mpeg12_init_vlcs (void)
 
static int decode_dc (GetBitContext *gb, int component)
 
int ff_mpeg1_decode_block_intra (MpegEncContext *s, int16_t *block, int n)
 
void ff_mpeg1_clean_buffers (MpegEncContext *s)
 
int ff_mpeg1_find_frame_end (ParseContext *pc, const uint8_t *buf, int buf_size, AVCodecParserContext *s)
 Find the end of the current frame in the bitstream. More...
 

Variables

VLC ff_dc_lum_vlc
 
VLC ff_dc_chroma_vlc
 
VLC ff_mbincr_vlc
 
VLC ff_mb_ptype_vlc
 
VLC ff_mb_btype_vlc
 
VLC ff_mb_pat_vlc
 
VLC ff_mv_vlc
 
uint8_t ff_mpeg12_static_rl_table_store [2][2][2 *MAX_RUN+MAX_LEVEL+3]
 

Macro Definition Documentation

#define DC_VLC_BITS   9

Definition at line 27 of file mpeg12.h.

Referenced by decode_dc().

#define MB_BTYPE_VLC_BITS   6

Definition at line 34 of file mpeg12.h.

Referenced by ff_mpeg12_init_vlcs(), and mpeg_decode_mb().

#define MB_PAT_VLC_BITS   9

Definition at line 32 of file mpeg12.h.

Referenced by ff_mpeg12_init_vlcs(), and mpeg_decode_mb().

#define MB_PTYPE_VLC_BITS   6

Definition at line 33 of file mpeg12.h.

Referenced by ff_mpeg12_init_vlcs(), and mpeg_decode_mb().

#define MBINCR_VLC_BITS   9

Definition at line 31 of file mpeg12.h.

Referenced by ff_mpeg12_init_vlcs(), and mpeg_decode_slice().

#define MV_VLC_BITS   9

Definition at line 28 of file mpeg12.h.

#define TEX_VLC_BITS   9

Definition at line 29 of file mpeg12.h.

Function Documentation

static int decode_dc ( GetBitContext gb,
int  component 
)
inlinestatic
void ff_mpeg12_common_init ( MpegEncContext s)

Definition at line 94 of file mpeg12.c.

Referenced by ff_mpeg1_encode_init(), and mpeg_decode_init().

void ff_mpeg12_init_vlcs ( void  )

Definition at line 124 of file mpeg12.c.

Referenced by decode_init(), mpeg_decode_init(), and tqi_decode_init().

void ff_mpeg1_clean_buffers ( MpegEncContext s)

Definition at line 102 of file mpeg12.c.

Referenced by decode_dc(), encode_thread(), and mpeg_decode_slice().

int ff_mpeg1_decode_block_intra ( MpegEncContext s,
int16_t *  block,
int  n 
)

Definition at line 158 of file mpeg12dec.c.

Referenced by decode_dc(), and tqi_decode_mb().

int ff_mpeg1_find_frame_end ( ParseContext pc,
const uint8_t buf,
int  buf_size,
AVCodecParserContext s 
)

Find the end of the current frame in the bitstream.

Returns
the position of the first byte of the next frame, or -1

Definition at line 165 of file mpeg12.c.

Referenced by decode_dc(), mpeg_decode_frame(), and mpegvideo_parse().

Variable Documentation

VLC ff_dc_chroma_vlc

Definition at line 117 of file mpeg12.c.

VLC ff_dc_lum_vlc

Definition at line 116 of file mpeg12.c.

VLC ff_mb_btype_vlc

Definition at line 121 of file mpeg12.c.

Referenced by mpeg_decode_mb().

VLC ff_mb_pat_vlc

Definition at line 122 of file mpeg12.c.

Referenced by mpeg_decode_mb().

VLC ff_mb_ptype_vlc

Definition at line 120 of file mpeg12.c.

Referenced by mpeg_decode_mb().

VLC ff_mbincr_vlc

Definition at line 119 of file mpeg12.c.

Referenced by mpeg_decode_slice().

uint8_t ff_mpeg12_static_rl_table_store[2][2][2 *MAX_RUN+MAX_LEVEL+3]

Definition at line 48 of file mpeg12.c.

Referenced by ff_mpeg12_init_vlcs(), and ff_mpeg1_encode_init().

VLC ff_mv_vlc

Definition at line 114 of file mpeg12.c.

Referenced by mpeg_decode_motion().