comparison msmpeg4.c @ 10803:4605bd2fdb7f libavcodec

Split the mpeg4 encoder and decoder off h263.c
author michael
date Thu, 07 Jan 2010 23:53:49 +0000
parents f108c5d10793
children 9abebeca7d1b
comparison
equal deleted inserted replaced
10802:4f614b69b4e5 10803:4605bd2fdb7f
30 #include "avcodec.h" 30 #include "avcodec.h"
31 #include "dsputil.h" 31 #include "dsputil.h"
32 #include "mpegvideo.h" 32 #include "mpegvideo.h"
33 #include "msmpeg4.h" 33 #include "msmpeg4.h"
34 #include "libavutil/x86_cpu.h" 34 #include "libavutil/x86_cpu.h"
35 #include "h263.h"
36 #include "mpeg4video.h"
35 37
36 /* 38 /*
37 * You can also call this codec : MPEG4 with a twist ! 39 * You can also call this codec : MPEG4 with a twist !
38 * 40 *
39 * TODO: 41 * TODO:
41 * - (encoding) select best vlc/dc table 43 * - (encoding) select best vlc/dc table
42 */ 44 */
43 //#define DEBUG 45 //#define DEBUG
44 46
45 #define DC_VLC_BITS 9 47 #define DC_VLC_BITS 9
46 #define CBPY_VLC_BITS 6
47 #define V1_INTRA_CBPC_VLC_BITS 6 48 #define V1_INTRA_CBPC_VLC_BITS 6
48 #define V1_INTER_CBPC_VLC_BITS 6 49 #define V1_INTER_CBPC_VLC_BITS 6
49 #define V2_INTRA_CBPC_VLC_BITS 3 50 #define V2_INTRA_CBPC_VLC_BITS 3
50 #define V2_MB_TYPE_VLC_BITS 7 51 #define V2_MB_TYPE_VLC_BITS 7
51 #define MV_VLC_BITS 9 52 #define MV_VLC_BITS 9
1057 /* decoding stuff */ 1058 /* decoding stuff */
1058 1059
1059 VLC ff_mb_non_intra_vlc[4]; 1060 VLC ff_mb_non_intra_vlc[4];
1060 static VLC v2_dc_lum_vlc; 1061 static VLC v2_dc_lum_vlc;
1061 static VLC v2_dc_chroma_vlc; 1062 static VLC v2_dc_chroma_vlc;
1062 static VLC cbpy_vlc;
1063 static VLC v2_intra_cbpc_vlc; 1063 static VLC v2_intra_cbpc_vlc;
1064 static VLC v2_mb_type_vlc; 1064 static VLC v2_mb_type_vlc;
1065 static VLC v2_mv_vlc; 1065 static VLC v2_mv_vlc;
1066 static VLC v1_intra_cbpc_vlc; 1066 static VLC v1_intra_cbpc_vlc;
1067 static VLC v1_inter_cbpc_vlc; 1067 static VLC v1_inter_cbpc_vlc;