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

Go to the source code of this file.

Macros

#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
 

Functions

void ff_mpeg12_common_init (MpegEncContext *s)
 
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_mpeg12_find_best_frame_rate (AVRational frame_rate, int *code, int *ext_n, int *ext_d, int nonstandard)
 

Macro Definition Documentation

◆ SEQ_END_CODE

#define SEQ_END_CODE   0x000001b7

Definition at line 28 of file mpeg12.h.

◆ SEQ_START_CODE

#define SEQ_START_CODE   0x000001b3

Definition at line 29 of file mpeg12.h.

◆ GOP_START_CODE

#define GOP_START_CODE   0x000001b8

Definition at line 30 of file mpeg12.h.

◆ PICTURE_START_CODE

#define PICTURE_START_CODE   0x00000100

Definition at line 31 of file mpeg12.h.

◆ SLICE_MIN_START_CODE

#define SLICE_MIN_START_CODE   0x00000101

Definition at line 32 of file mpeg12.h.

◆ SLICE_MAX_START_CODE

#define SLICE_MAX_START_CODE   0x000001af

Definition at line 33 of file mpeg12.h.

◆ EXT_START_CODE

#define EXT_START_CODE   0x000001b5

Definition at line 34 of file mpeg12.h.

◆ USER_START_CODE

#define USER_START_CODE   0x000001b2

Definition at line 35 of file mpeg12.h.

Function Documentation

◆ ff_mpeg12_common_init()

void ff_mpeg12_common_init ( MpegEncContext s)

Definition at line 103 of file mpeg12.c.

Referenced by ipu_decode_init(), and mpeg_decode_init().

◆ ff_mpeg1_clean_buffers()

void ff_mpeg1_clean_buffers ( MpegEncContext s)

Definition at line 111 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.

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

Definition at line 173 of file mpeg12.c.

Referenced by mpeg_decode_frame(), and mpegvideo_parse().

◆ 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 
)