28 #define UNCHECKED_BITSTREAM_READER 1
71 #define INIT_2D_VLC_RL(rl, static_size)\
73 static RL_VLC_ELEM rl_vlc_table[static_size];\
74 rl.rl_vlc[0] = rl_vlc_table;\
75 init_2d_vlc_rl(&rl, static_size);\
87 int code = vlc.
table[i][0];
101 }
else if (code == rl->
n+1) {
203 for (i = 0; i < buf_size; i++) {
209 if ((buf[i] & 3) == 3)
#define SLICE_MAX_START_CODE
const uint8_t * y_dc_scale_table
qscale -> y_dc_scale table
int last_mv[2][2][2]
last MV, used for MV prediction in MPEG1 & B-frame MPEG4
av_cold void ff_mpeg12_init_vlcs(void)
const unsigned char ff_mpeg12_vlc_dc_lum_bits[12]
void ff_mpeg1_clean_buffers(MpegEncContext *s)
#define FF_ARRAY_ELEMS(a)
const uint16_t ff_mpeg12_vlc_dc_lum_code[12]
const int8_t * table_level
#define SLICE_MIN_START_CODE
Macro definitions for various function/variable attributes.
#define INIT_2D_VLC_RL(rl, static_size)
#define av_assert0(cond)
assert() equivalent, that is always enabled.
#define INIT_VLC_STATIC(vlc, bits, a, b, c, d, e, f, g, static_size)
Multithreading support functions.
static const uint8_t table_mb_ptype[7][2]
const uint8_t * avpriv_find_start_code(const uint8_t *p, const uint8_t *end, uint32_t *state)
int last_dc[3]
last DC values for MPEG1
static const struct endianess table[]
const uint16_t ff_mpeg12_vlc_dc_chroma_code[12]
simple assert() macros that are a bit more flexible than ISO C assert().
Libavcodec external API header.
static const uint8_t table_mb_btype[11][2]
#define MB_PTYPE_VLC_BITS
const uint8_t *const ff_mpeg2_dc_scale_table[4]
int n
number of entries of table_vlc minus 1
#define av_assert1(cond)
assert() equivalent, that does not lie in speed critical code.
#define MB_BTYPE_VLC_BITS
const uint16_t(* table_vlc)[2]
const unsigned char ff_mpeg12_vlc_dc_chroma_bits[12]
#define INIT_VLC_USE_NEW_STATIC
RL_VLC_ELEM * rl_vlc[32]
decoding only
static av_cold void init_2d_vlc_rl(RLTable *rl, unsigned static_size)
#define init_vlc(vlc, nb_bits, nb_codes,bits, bits_wrap, bits_size,codes, codes_wrap, codes_size,flags)
av_cold int ff_rl_init(RLTable *rl, uint8_t static_store[2][2 *MAX_RUN+MAX_LEVEL+3])
uint32_t state
contains the last few bytes in MSB order
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.
av_cold void ff_mpeg12_common_init(MpegEncContext *s)
const uint8_t * c_dc_scale_table
qscale -> c_dc_scale table
common internal api header.
uint8_t ff_mpeg12_static_rl_table_store[2][2][2 *MAX_RUN+MAX_LEVEL+3]
const uint8_t ff_mpeg12_mbPatTable[64][2]
const uint8_t ff_mpeg12_mbAddrIncrTable[36][2]
VLC_TYPE(* table)[2]
code, bits
const uint8_t ff_mpeg12_mbMotionVectorTable[17][2]
#define PICTURE_START_CODE
void ff_fetch_timestamp(AVCodecParserContext *s, int off, int remove, int fuzzy)
Fetch timestamps for a specific byte within the current access unit.