FFmpeg
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions | Variables
mpeg12.h File Reference
#include "mpeg12vlc.h"
#include "mpegvideo.h"

Go to the source code of this file.

Macros

#define INIT_2D_VLC_RL(rl, static_size, flags)
 

Functions

void ff_mpeg12_common_init (MpegEncContext *s)
 
void ff_init_2d_vlc_rl (RLTable *rl, unsigned static_size, int flags)
 
static int decode_dc (GetBitContext *gb, int component)
 
int ff_mpeg1_decode_block_intra (GetBitContext *gb, const uint16_t *quant_matrix, uint8_t *const scantable, int last_dc[3], int16_t *block, int index, int qscale)
 
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...
 
void ff_mpeg1_encode_picture_header (MpegEncContext *s, int picture_number)
 
void ff_mpeg1_encode_mb (MpegEncContext *s, int16_t block[8][64], int motion_x, int motion_y)
 
void ff_mpeg1_encode_init (MpegEncContext *s)
 
void ff_mpeg1_encode_slice_header (MpegEncContext *s)
 
void ff_mpeg12_find_best_frame_rate (AVRational frame_rate, int *code, int *ext_n, int *ext_d, int nonstandard)
 

Variables

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

Macro Definition Documentation

#define INIT_2D_VLC_RL (   rl,
  static_size,
  flags 
)
Value:
{\
static RL_VLC_ELEM rl_vlc_table[static_size];\
rl.rl_vlc[0] = rl_vlc_table;\
ff_init_2d_vlc_rl(&rl, static_size, flags);\
}
void ff_init_2d_vlc_rl(RLTable *rl, unsigned static_size, int flags)
Definition: mpeg12.c:70
static int flags
Definition: log.c:57

Definition at line 32 of file mpeg12.h.

Referenced by ff_mpeg12_init_vlcs(), and speedhq_static_init().

Function Documentation

void ff_mpeg12_common_init ( MpegEncContext s)

Definition at line 107 of file mpeg12.c.

Referenced by ff_mpeg1_encode_init(), and mpeg_decode_init().

void ff_init_2d_vlc_rl ( RLTable rl,
unsigned  static_size,
int  flags 
)

Definition at line 70 of file mpeg12.c.

static int decode_dc ( GetBitContext gb,
int  component 
)
inlinestatic
int ff_mpeg1_decode_block_intra ( GetBitContext gb,
const uint16_t *  quant_matrix,
uint8_t *const  scantable,
int  last_dc[3],
int16_t *  block,
int  index,
int  qscale 
)

Definition at line 240 of file mpeg12.c.

Referenced by mpeg_decode_mb(), and tqi_decode_mb().

void ff_mpeg1_clean_buffers ( MpegEncContext s)

Definition at line 115 of file mpeg12.c.

Referenced by encode_thread(), and mpeg_decode_slice().

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 178 of file mpeg12.c.

Referenced by mpeg_decode_frame(), and mpegvideo_parse().

void ff_mpeg1_encode_picture_header ( MpegEncContext s,
int  picture_number 
)

Definition at line 421 of file mpeg12enc.c.

Referenced by encode_picture().

void ff_mpeg1_encode_mb ( MpegEncContext s,
int16_t  block[8][64],
int  motion_x,
int  motion_y 
)

Definition at line 993 of file mpeg12enc.c.

Referenced by encode_mb_internal().

void ff_mpeg1_encode_init ( MpegEncContext s)

Definition at line 1002 of file mpeg12enc.c.

Referenced by ff_mpv_encode_init().

void ff_mpeg1_encode_slice_header ( MpegEncContext s)

Definition at line 407 of file mpeg12enc.c.

Referenced by encode_thread(), and ff_mpeg1_encode_picture_header().

void ff_mpeg12_find_best_frame_rate ( AVRational  frame_rate,
int code,
int ext_n,
int ext_d,
int  nonstandard 
)

Definition at line 44 of file mpeg12framerate.c.

Referenced by mpeg2_metadata_update_fragment().

Variable Documentation

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

Definition at line 44 of file mpeg12.c.

Referenced by ff_mpeg12_init_vlcs(), and ff_mpeg1_encode_init().