Go to the documentation of this file.
   22 #ifndef AVCODEC_MPEG12_H 
   23 #define AVCODEC_MPEG12_H 
   29 #define SEQ_END_CODE            0x000001b7 
   30 #define SEQ_START_CODE          0x000001b3 
   31 #define GOP_START_CODE          0x000001b8 
   32 #define PICTURE_START_CODE      0x00000100 
   33 #define SLICE_MIN_START_CODE    0x00000101 
   34 #define SLICE_MAX_START_CODE    0x000001af 
   35 #define EXT_START_CODE          0x000001b5 
   36 #define USER_START_CODE         0x000001b2 
   40 #define INIT_2D_VLC_RL(rl, static_size, flags)\ 
   42     static RL_VLC_ELEM rl_vlc_table[static_size];\ 
   43     rl.rl_vlc[0] = rl_vlc_table;\ 
   44     ff_init_2d_vlc_rl(&rl, static_size, flags);\ 
   68                                 const uint16_t *quant_matrix,
 
   69                                 uint8_t *
const scantable, 
int last_dc[3],
 
   73 #if FF_API_FLAG_TRUNCATED 
   79                         int motion_x, 
int motion_y);
 
   84                                     int *
code, 
int *ext_n, 
int *ext_d,
 
  
static av_always_inline int get_vlc2(GetBitContext *s, VLC_TYPE(*table)[2], int bits, int max_depth)
Parse a vlc code.
 
void ff_mpeg1_clean_buffers(MpegEncContext *s)
 
void ff_mpeg1_init_uni_ac_vlc(const RLTable *rl, uint8_t *uni_ac_vlc_len)
 
void ff_mpeg12_find_best_frame_rate(AVRational frame_rate, int *code, int *ext_n, int *ext_d, int nonstandard)
 
void ff_mpeg1_encode_picture_header(MpegEncContext *s, int picture_number)
 
void ff_init_2d_vlc_rl(RLTable *rl, unsigned static_size, int flags)
 
Rational number (pair of numerator and denominator).
 
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_encode_slice_header(MpegEncContext *s)
 
void ff_mpeg1_encode_mb(MpegEncContext *s, int16_t block[8][64], int motion_x, int motion_y)
 
void ff_mpeg12_common_init(MpegEncContext *s)
 
static int get_xbits(GetBitContext *s, int n)
Read MPEG-1 dc-style VLC (sign bit + mantissa with no MSB).
 
and forward the test the status of outputs and forward it to the corresponding return FFERROR_NOT_READY If the filters stores internally one or a few frame for some it can consider them to be part of the FIFO and delay acknowledging a status change accordingly Example code
 
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.
 
static int decode_dc(GetBitContext *gb, int component)
 
void ff_mpeg1_encode_init(MpegEncContext *s)
 
static av_always_inline int diff(const uint32_t a, const uint32_t b)
 
#define flags(name, subs,...)
 
The exact code depends on how similar the blocks are and how related they are to the block
 
VLC_TYPE(* table)[2]
code, bits