28 #include "libavutil/attributes.h"
64 #define INIT_2D_VLC_RL(rl, static_size)\
66 static RL_VLC_ELEM rl_vlc_table[static_size];\
67 INIT_VLC_STATIC(&rl.vlc, TEX_VLC_BITS, rl.n + 2,\
68 &rl.table_vlc[0][1], 4, 2,\
69 &rl.table_vlc[0][0], 4, 2, static_size);\
71 rl.rl_vlc[0] = rl_vlc_table;\
94 }
else if (code == rl->
n+1) {
196 for (i = 0; i < buf_size; i++) {
202 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)
const uint16_t ff_mpeg12_vlc_dc_lum_code[12]
const int8_t * table_level
#define SLICE_MIN_START_CODE
#define INIT_2D_VLC_RL(rl, static_size)
#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]
void ff_fetch_timestamp(AVCodecParserContext *s, int off, int remove)
Fetch timestamps for a specific byte within the current access unit.
int last_dc[3]
last DC values for MPEG1
const uint16_t ff_mpeg12_vlc_dc_chroma_code[12]
VLC vlc
decoding only deprecated FIXME remove
Libavcodec external API header.
static const uint8_t table_mb_btype[11][2]
#define MB_PTYPE_VLC_BITS
int n
number of entries of table_vlc minus 1
static av_cold void init_2d_vlc_rl(RLTable *rl)
#define MB_BTYPE_VLC_BITS
const unsigned char ff_mpeg12_vlc_dc_chroma_bits[12]
RL_VLC_ELEM * rl_vlc[32]
decoding only
const uint8_t *const ff_mpeg2_dc_scale_table[4]
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
const uint8_t * avpriv_find_start_code(const uint8_t *restrict p, const uint8_t *end, uint32_t *restrict state)
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]
av_cold void ff_init_rl(RLTable *rl, uint8_t static_store[2][2 *MAX_RUN+MAX_LEVEL+3])
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