Macros | Functions
mpeg12.h File Reference
#include "libavutil/rational.h"
#include "version_major.h"
#include <stdint.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


int ff_mpeg1_find_frame_end (struct ParseContext *pc, const uint8_t *buf, int buf_size, struct 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


#define SEQ_END_CODE   0x000001b7

Definition at line 28 of file mpeg12.h.


#define SEQ_START_CODE   0x000001b3

Definition at line 29 of file mpeg12.h.


#define GOP_START_CODE   0x000001b8

Definition at line 30 of file mpeg12.h.


#define PICTURE_START_CODE   0x00000100

Definition at line 31 of file mpeg12.h.


#define SLICE_MIN_START_CODE   0x00000101

Definition at line 32 of file mpeg12.h.


#define SLICE_MAX_START_CODE   0x000001af

Definition at line 33 of file mpeg12.h.


#define EXT_START_CODE   0x000001b5

Definition at line 34 of file mpeg12.h.


#define USER_START_CODE   0x000001b2

Definition at line 35 of file mpeg12.h.

Function Documentation

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