Macros | Functions
mpeg12.h File Reference
#include "mpeg12vlc.h"
#include "mpegvideo.h"

Go to the source code of this file.


#define SEQ_END_CODE   0x000001b7
#define SEQ_START_CODE   0x000001b3
#define GOP_START_CODE   0x000001b8
#define PICTURE_START_CODE   0x00000100
#define SLICE_MIN_START_CODE   0x00000101
#define SLICE_MAX_START_CODE   0x000001af
#define EXT_START_CODE   0x000001b5
#define USER_START_CODE   0x000001b2
#define INIT_2D_VLC_RL(rl, static_size, flags)


void ff_mpeg12_common_init (MpegEncContext *s)
void ff_init_2d_vlc_rl (RLTable *rl, unsigned static_size, int flags)
void ff_mpeg1_init_uni_ac_vlc (const RLTable *rl, uint8_t *uni_ac_vlc_len)
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)

Macro Definition Documentation


#define SEQ_END_CODE   0x000001b7

Definition at line 29 of file mpeg12.h.


#define SEQ_START_CODE   0x000001b3

Definition at line 30 of file mpeg12.h.


#define GOP_START_CODE   0x000001b8

Definition at line 31 of file mpeg12.h.


#define PICTURE_START_CODE   0x00000100

Definition at line 32 of file mpeg12.h.


#define SLICE_MIN_START_CODE   0x00000101

Definition at line 33 of file mpeg12.h.


#define SLICE_MAX_START_CODE   0x000001af

Definition at line 34 of file mpeg12.h.


#define EXT_START_CODE   0x000001b5

Definition at line 35 of file mpeg12.h.


#define USER_START_CODE   0x000001b2

Definition at line 36 of file mpeg12.h.


#define INIT_2D_VLC_RL (   rl,
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);\

Definition at line 40 of file mpeg12.h.

Function Documentation

◆ ff_mpeg12_common_init()

void ff_mpeg12_common_init ( MpegEncContext s)

Definition at line 106 of file mpeg12.c.

Referenced by ipu_decode_init(), and mpeg_decode_init().

◆ ff_init_2d_vlc_rl()

void ff_init_2d_vlc_rl ( RLTable rl,
unsigned  static_size,
int  flags 

Definition at line 69 of file mpeg12.c.

◆ ff_mpeg1_init_uni_ac_vlc()

void ff_mpeg1_init_uni_ac_vlc ( const RLTable rl,
uint8_t *  uni_ac_vlc_len 

Definition at line 68 of file mpeg12enc.c.

Referenced by speedhq_init_static_data().

◆ decode_dc()

static int decode_dc ( GetBitContext gb,
int  component 

◆ ff_mpeg1_decode_block_intra()

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

Referenced by ipu_decode_frame(), mpeg_decode_mb(), and tqi_decode_mb().

◆ ff_mpeg1_clean_buffers()

void ff_mpeg1_clean_buffers ( MpegEncContext s)

Definition at line 114 of file mpeg12.c.

Referenced by encode_thread(), and mpeg_decode_slice().

◆ ff_mpeg1_find_frame_end()

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.

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

Definition at line 176 of file mpeg12.c.

Referenced by mpeg_decode_frame(), and mpegvideo_parse().

◆ ff_mpeg1_encode_picture_header()

void ff_mpeg1_encode_picture_header ( MpegEncContext s,
int  picture_number 

Referenced by encode_picture().

◆ ff_mpeg1_encode_mb()

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

Referenced by encode_mb_internal().

◆ ff_mpeg1_encode_init()

void ff_mpeg1_encode_init ( MpegEncContext s)

Referenced by ff_mpv_encode_init().

◆ ff_mpeg1_encode_slice_header()

void ff_mpeg1_encode_slice_header ( MpegEncContext s)

Referenced by encode_thread().

◆ ff_mpeg12_find_best_frame_rate()

void ff_mpeg12_find_best_frame_rate ( AVRational  frame_rate,
int code,
int ext_n,
int ext_d,
int  nonstandard 
Definition: vlc.h:32
#define flags(name, subs,...)
Definition: cbs_av1.c:561