22 #ifndef AVCODEC_MPEG12_H 23 #define AVCODEC_MPEG12_H 54 const uint16_t *quant_matrix,
55 uint8_t *
const scantable,
int last_dc[3],
63 int motion_x,
int motion_y);
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_init(MpegEncContext *s)
av_log(ac->avr, AV_LOG_TRACE, "%d samples - audio_convert: %s to %s (%s)\, len, av_get_sample_fmt_name(ac->in_fmt), av_get_sample_fmt_name(ac->out_fmt), use_generic ? ac->func_descr_generic :ac->func_descr)
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 MPEG-1 dc-style VLC (sign bit + mantisse with no MSB).
void ff_mpeg1_clean_buffers(MpegEncContext *s)
void ff_mpeg1_encode_picture_header(MpegEncContext *s, int picture_number)
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.