22 #ifndef AVCODEC_MPEG12_H
23 #define AVCODEC_MPEG12_H
29 #define TEX_VLC_BITS 9
31 #define MBINCR_VLC_BITS 9
32 #define MB_PAT_VLC_BITS 9
33 #define MB_PTYPE_VLC_BITS 6
34 #define MB_BTYPE_VLC_BITS 6
76 int motion_x,
int motion_y);
void ff_mpeg1_encode_init(MpegEncContext *s)
void ff_mpeg1_encode_slice_header(MpegEncContext *s)
uint8_t ff_mpeg12_static_rl_table_store[2][2][2 *MAX_RUN+MAX_LEVEL+3]
void ff_mpeg12_common_init(MpegEncContext *s)
void ff_mpeg1_encode_mb(MpegEncContext *s, int16_t block[8][64], int motion_x, int motion_y)
#define AV_LOG_ERROR
Something went wrong and cannot losslessly be recovered.
static int decode_dc(GetBitContext *gb, int component)
static av_always_inline int get_vlc2(GetBitContext *s, VLC_TYPE(*table)[2], int bits, int max_depth)
Parse a vlc code.
static int get_xbits(GetBitContext *s, int n)
read mpeg1 dc style vlc (sign bit + mantissa with no MSB).
void ff_mpeg1_clean_buffers(MpegEncContext *s)
int ff_mpeg1_decode_block_intra(MpegEncContext *s, int16_t *block, int n)
void ff_mpeg12_init_vlcs(void)
void ff_mpeg1_encode_picture_header(MpegEncContext *s, int picture_number)
static av_always_inline int diff(const uint32_t a, const uint32_t b)
VLC_TYPE(* table)[2]
code, bits
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.