Go to the documentation of this file.
22 #ifndef AVCODEC_MSMPEG4_H
23 #define AVCODEC_MSMPEG4_H
33 #define INTER_INTRA_VLC_BITS 3
34 #define MB_NON_INTRA_VLC_BITS 9
35 #define MB_INTRA_VLC_BITS 9
37 #define II_BITRATE 128*1024
38 #define MBAC_BITRATE 50*1024
57 int motion_x,
int motion_y);
64 int n,
int coded,
const uint8_t *scan_table);
66 int16_t **dc_val_ptr,
int *dir_ptr);
69 #define CONFIG_MSMPEG4_DECODER (CONFIG_MSMPEG4V1_DECODER || \
70 CONFIG_MSMPEG4V2_DECODER || \
71 CONFIG_MSMPEG4V3_DECODER || \
72 CONFIG_WMV1_DECODER || \
73 CONFIG_WMV2_DECODER || \
75 #define CONFIG_MSMPEG4_ENCODER (CONFIG_MSMPEG4V2_ENCODER || \
76 CONFIG_MSMPEG4V3_ENCODER || \
77 CONFIG_WMV1_ENCODER || \
int ff_msmpeg4_decode_init(AVCodecContext *avctx)
void ff_msmpeg4_encode_block(MpegEncContext *s, int16_t *block, int n)
int ff_msmpeg4_decode_block(MpegEncContext *s, int16_t *block, int n, int coded, const uint8_t *scan_table)
void ff_msmpeg4_encode_mb(MpegEncContext *s, int16_t block[6][64], int motion_x, int motion_y)
int ff_msmpeg4_decode_ext_header(MpegEncContext *s, int buf_size)
void ff_msmpeg4_encode_picture_header(MpegEncContext *s, int picture_number)
int ff_msmpeg4_coded_block_pred(MpegEncContext *s, int n, uint8_t **coded_block_ptr)
int ff_msmpeg4_decode_picture_header(MpegEncContext *s)
void ff_msmpeg4_common_init(MpegEncContext *s)
int ff_msmpeg4_decode_motion(MpegEncContext *s, int *mx_ptr, int *my_ptr)
int ff_msmpeg4_encode_init(MpegEncContext *s)
void ff_msmpeg4_encode_ext_header(MpegEncContext *s)
void ff_msmpeg4_handle_slices(MpegEncContext *s)
void ff_msmpeg4_encode_motion(MpegEncContext *s, int mx, int my)
main external API structure.
void ff_msmpeg4_code012(PutBitContext *pb, int n)
int ff_msmpeg4_pred_dc(MpegEncContext *s, int n, int16_t **dc_val_ptr, int *dir_ptr)
The exact code depends on how similar the blocks are and how related they are to the block
VLC ff_mb_non_intra_vlc[4]