annotate codecs.c @ 273:167356f35b8f

lamer_protection++
author arpi_esp
date Sun, 01 Apr 2001 23:01:37 +0000
parents 38d30f6f1423
children da98e96499bb
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
1
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
1 //#define ANGELPOTION
175
d43c7e6412f0 added DirectShow support
arpi_esp
parents: 129
diff changeset
2 //#define USE_DIRECTSHOW
d43c7e6412f0 added DirectShow support
arpi_esp
parents: 129
diff changeset
3
190
a8552ad553e0 DirectShow audio support
arpi_esp
parents: 175
diff changeset
4 static GUID wmv1_clsid={0x4facbba1, 0xffd8, 0x4cd7,
a8552ad553e0 DirectShow audio support
arpi_esp
parents: 175
diff changeset
5 {0x82, 0x28, 0x61, 0xe2, 0xf6, 0x5c, 0xb1, 0xae}};
a8552ad553e0 DirectShow audio support
arpi_esp
parents: 175
diff changeset
6 static GUID wmv2_clsid={0x521fb373, 0x7654, 0x49f2,
a8552ad553e0 DirectShow audio support
arpi_esp
parents: 175
diff changeset
7 {0xbd, 0xb1, 0x0c, 0x6e, 0x66, 0x60, 0x71, 0x4f}};
a8552ad553e0 DirectShow audio support
arpi_esp
parents: 175
diff changeset
8 static GUID CLSID_MorganMjpeg={0x6988b440, 0x8352, 0x11d3,
a8552ad553e0 DirectShow audio support
arpi_esp
parents: 175
diff changeset
9 {0x9b, 0xda, 0xca, 0x86, 0x73, 0x7c, 0x71, 0x68}};
a8552ad553e0 DirectShow audio support
arpi_esp
parents: 175
diff changeset
10 static GUID CLSID_Acelp={0x4009f700, 0xaeba, 0x11d1,
a8552ad553e0 DirectShow audio support
arpi_esp
parents: 175
diff changeset
11 {0x83, 0x44, 0x00, 0xc0, 0x4f, 0xb9, 0x2e, 0xb7}};
a8552ad553e0 DirectShow audio support
arpi_esp
parents: 175
diff changeset
12 static GUID CLSID_Voxware={0x73f7a062, 0x8829, 0x11d1,
a8552ad553e0 DirectShow audio support
arpi_esp
parents: 175
diff changeset
13 {0xb5, 0x50, 0x00, 0x60, 0x97, 0x24, 0x2d, 0x8d}};
a8552ad553e0 DirectShow audio support
arpi_esp
parents: 175
diff changeset
14 static GUID CLSID_DivxDecompressorCF={0x82CCd3E0, 0xF71A, 0x11D0,
175
d43c7e6412f0 added DirectShow support
arpi_esp
parents: 129
diff changeset
15 { 0x9f, 0xe5, 0x00, 0x60, 0x97, 0x78, 0xaa, 0xaa}};
190
a8552ad553e0 DirectShow audio support
arpi_esp
parents: 175
diff changeset
16 static GUID CLSID_IV50_Decoder={0x30355649, 0x0000, 0x0010,
a8552ad553e0 DirectShow audio support
arpi_esp
parents: 175
diff changeset
17 {0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71}};
a8552ad553e0 DirectShow audio support
arpi_esp
parents: 175
diff changeset
18 static GUID dvsd_clsid={0xB1B77C00, 0xC3E4, 0x11CF,
a8552ad553e0 DirectShow audio support
arpi_esp
parents: 175
diff changeset
19 {0xAF, 0x79, 0x00, 0xAA, 0x00, 0xB6, 0x7A, 0x42}};
255
9e9a000fe4b4 some new codecs added - not work yet
arpi_esp
parents: 192
diff changeset
20 static GUID CLSID_TM20DecompressorCF={0x4cb63e61, 0xc611, 0x11D0,
9e9a000fe4b4 some new codecs added - not work yet
arpi_esp
parents: 192
diff changeset
21 { 0x83, 0xaa, 0x00, 0x00, 0x92, 0x90, 0x01, 0x84}};
190
a8552ad553e0 DirectShow audio support
arpi_esp
parents: 175
diff changeset
22
1
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
23
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
24 char* get_vids_codec_name(){
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
25 // unsigned long fccHandler=avi_header.video.fccHandler;
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
26 unsigned long fccHandler=avi_header.bih.biCompression;
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
27 avi_header.yuv_supported=0;
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
28 avi_header.yuv_hack_needed=0;
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
29 avi_header.flipped=0;
175
d43c7e6412f0 added DirectShow support
arpi_esp
parents: 129
diff changeset
30 avi_header.vids_guid=NULL;
d43c7e6412f0 added DirectShow support
arpi_esp
parents: 129
diff changeset
31
1
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
32 switch(fccHandler){
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
33 case mmioFOURCC('M', 'P', 'G', '4'):
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
34 case mmioFOURCC('m', 'p', 'g', '4'):
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
35 case mmioFOURCC('M', 'P', '4', '2'):
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
36 case mmioFOURCC('m', 'p', '4', '2'):
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
37 // case mmioFOURCC('M', 'P', '4', '3'):
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
38 // case mmioFOURCC('m', 'p', '4', '3'):
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
39 printf("Video in Microsoft MPEG-4 format\n");
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
40 avi_header.yuv_supported=1;
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
41 avi_header.yuv_hack_needed=1;
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
42 #ifdef ANGELPOTION
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
43 return "APmpg4v1.dll";
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
44 #endif
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
45 return "mpg4c32.dll";
125
4e42d41dad68 DIV5+DIV6 support
arpi_esp
parents: 124
diff changeset
46
1
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
47 case mmioFOURCC('M', 'P', '4', '3'):
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
48 case mmioFOURCC('m', 'p', '4', '3'):
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
49 printf("Video in MPEG-4 v3 (really DivX) format\n");
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
50 avi_header.bih.biCompression=mmioFOURCC('d', 'i', 'v', '3'); // hack
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
51 avi_header.yuv_supported=1;
192
f5728d824638 postproces for MP43 fourcc
arpi_esp
parents: 190
diff changeset
52 #ifdef USE_DIRECTSHOW
f5728d824638 postproces for MP43 fourcc
arpi_esp
parents: 190
diff changeset
53 avi_header.vids_guid=&CLSID_DivxDecompressorCF;
f5728d824638 postproces for MP43 fourcc
arpi_esp
parents: 190
diff changeset
54 return "divx_c32.ax";
f5728d824638 postproces for MP43 fourcc
arpi_esp
parents: 190
diff changeset
55 #else
1
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
56 avi_header.yuv_hack_needed=1;
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
57 #ifdef ANGELPOTION
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
58 return "APmpg4v1.dll";
192
f5728d824638 postproces for MP43 fourcc
arpi_esp
parents: 190
diff changeset
59 #else
f5728d824638 postproces for MP43 fourcc
arpi_esp
parents: 190
diff changeset
60 return "divxc32.dll";
1
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
61 #endif
192
f5728d824638 postproces for MP43 fourcc
arpi_esp
parents: 190
diff changeset
62 #endif
1
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
63
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
64 case mmioFOURCC('D', 'I', 'V', 'X'):
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
65 case mmioFOURCC('d', 'i', 'v', 'x'):
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
66 return "DivX.dll";
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
67
125
4e42d41dad68 DIV5+DIV6 support
arpi_esp
parents: 124
diff changeset
68 case mmioFOURCC('D', 'I', 'V', '5'):
4e42d41dad68 DIV5+DIV6 support
arpi_esp
parents: 124
diff changeset
69 case mmioFOURCC('d', 'i', 'v', '5'):
4e42d41dad68 DIV5+DIV6 support
arpi_esp
parents: 124
diff changeset
70 case mmioFOURCC('D', 'I', 'V', '6'):
4e42d41dad68 DIV5+DIV6 support
arpi_esp
parents: 124
diff changeset
71 case mmioFOURCC('d', 'i', 'v', '6'):
4e42d41dad68 DIV5+DIV6 support
arpi_esp
parents: 124
diff changeset
72 avi_header.bih.biCompression-=0x02000000; // div5->div3, div6->div4
1
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
73 case mmioFOURCC('D', 'I', 'V', '3'):
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
74 case mmioFOURCC('d', 'i', 'v', '3'):
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
75 case mmioFOURCC('D', 'I', 'V', '4'):
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
76 case mmioFOURCC('d', 'i', 'v', '4'):
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
77 case mmioFOURCC('M', 'P', '4', '1'):
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
78 case mmioFOURCC('m', 'p', '4', '1'):
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
79 printf("Video in DivX ;-) format\n");
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
80 avi_header.yuv_supported=1;
175
d43c7e6412f0 added DirectShow support
arpi_esp
parents: 129
diff changeset
81 #ifdef USE_DIRECTSHOW
d43c7e6412f0 added DirectShow support
arpi_esp
parents: 129
diff changeset
82 avi_header.vids_guid=&CLSID_DivxDecompressorCF;
d43c7e6412f0 added DirectShow support
arpi_esp
parents: 129
diff changeset
83 return "divx_c32.ax";
d43c7e6412f0 added DirectShow support
arpi_esp
parents: 129
diff changeset
84 #else
1
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
85 avi_header.yuv_hack_needed=1;
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
86 #ifdef ANGELPOTION
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
87 return "APmpg4v1.dll";
175
d43c7e6412f0 added DirectShow support
arpi_esp
parents: 129
diff changeset
88 #else
d43c7e6412f0 added DirectShow support
arpi_esp
parents: 129
diff changeset
89 return "divxc32.dll";
1
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
90 #endif
175
d43c7e6412f0 added DirectShow support
arpi_esp
parents: 129
diff changeset
91 #endif
1
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
92
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
93 case mmioFOURCC('I', 'V', '5', '0'):
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
94 case mmioFOURCC('i', 'v', '5', '0'):
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
95 printf("Video in Indeo Video 5 format\n");
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
96 avi_header.yuv_supported=1; // YUV pic is upside-down :(
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
97 return "ir50_32.dll";
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
98
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
99 case mmioFOURCC('I', 'V', '4', '1'):
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
100 case mmioFOURCC('i', 'v', '4', '1'):
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
101 printf("Video in Indeo Video 4.1 format\n");
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
102 avi_header.flipped=1;
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
103 avi_header.no_32bpp_support=1;
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
104 return "ir41_32.dll";
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
105
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
106 case mmioFOURCC('I', 'V', '3', '2'):
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
107 case mmioFOURCC('i', 'v', '3', '2'):
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
108 printf("Video in Indeo Video 3.2 format\n");
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
109 avi_header.flipped=1;
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
110 avi_header.no_32bpp_support=1;
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
111 return "ir32_32.dll";
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
112
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
113 case mmioFOURCC('c', 'v', 'i', 'd'):
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
114 printf("Video in Cinepak format\n");
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
115 avi_header.yuv_supported=1;
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
116 return "iccvid.dll";
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
117
124
2df337e28820 CRAM codec support added
arpi_esp
parents: 1
diff changeset
118 case mmioFOURCC('c', 'r', 'a', 'm'):
2df337e28820 CRAM codec support added
arpi_esp
parents: 1
diff changeset
119 case mmioFOURCC('C', 'R', 'A', 'M'):
2df337e28820 CRAM codec support added
arpi_esp
parents: 1
diff changeset
120 printf("Video in CRAM format\n");
2df337e28820 CRAM codec support added
arpi_esp
parents: 1
diff changeset
121 avi_header.no_32bpp_support=1;
2df337e28820 CRAM codec support added
arpi_esp
parents: 1
diff changeset
122 //avi_header.yuv_supported=1;
2df337e28820 CRAM codec support added
arpi_esp
parents: 1
diff changeset
123 return "msvidc32.dll";
2df337e28820 CRAM codec support added
arpi_esp
parents: 1
diff changeset
124
1
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
125 //*** Only 16bit .DLL available (can't load under linux) ***
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
126 // case mmioFOURCC('V', 'C', 'R', '1'):
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
127 // printf("Video in ATI VCR1 format\n");
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
128 // return "ativcr1.dll";
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
129
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
130 case mmioFOURCC('V', 'C', 'R', '2'):
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
131 printf("Video in ATI VCR2 format\n");
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
132 avi_header.yuv_supported=1;
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
133 return "ativcr2.dll";
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
134
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
135 case mmioFOURCC('A', 'S', 'V', '1'):
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
136 printf("Asus ASV-1 format\n");
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
137 // avi_header.yuv_supported=1;
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
138 return "asusasvd.dll";
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
139
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
140 case mmioFOURCC('A', 'S', 'V', '2'):
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
141 printf("Asus ASV-2 format\n");
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
142 // avi_header.yuv_supported=1;
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
143 avi_header.flipped=1;
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
144 // avi_header.bih.biCompression=mmioFOURCC('A', 'S', 'V', '1');
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
145 // return "asusasvd.dll";
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
146 return "asusasv2.dll";
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
147
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
148 case mmioFOURCC('I', '2', '6', '3'):
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
149 case mmioFOURCC('i', '2', '6', '3'):
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
150 printf("Video in I263 format\n");
271
38d30f6f1423 i263 yuv support
gabucino
parents: 255
diff changeset
151 avi_header.yuv_supported=1;
1
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
152 return "i263_32.drv";
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
153
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
154 case mmioFOURCC('M', 'J', 'P', 'G'):
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
155 printf("Video in MJPEG format\n");
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
156 avi_header.yuv_supported=1;
129
02d5e36e81de MJPEG support added
arpi_esp
parents: 125
diff changeset
157 // return "M3JPEG32.dll";
02d5e36e81de MJPEG support added
arpi_esp
parents: 125
diff changeset
158 return "mcmjpg32.dll";
1
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
159 // return "m3jpeg32.dll";
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
160 // return "libavi_mjpeg.so";
190
a8552ad553e0 DirectShow audio support
arpi_esp
parents: 175
diff changeset
161
a8552ad553e0 DirectShow audio support
arpi_esp
parents: 175
diff changeset
162 case mmioFOURCC('W', 'M', 'V', '1'):
a8552ad553e0 DirectShow audio support
arpi_esp
parents: 175
diff changeset
163 printf("Video in Windows Media Video 1 format\n");
a8552ad553e0 DirectShow audio support
arpi_esp
parents: 175
diff changeset
164 avi_header.yuv_supported=1;
a8552ad553e0 DirectShow audio support
arpi_esp
parents: 175
diff changeset
165 avi_header.vids_guid=&wmv1_clsid;
a8552ad553e0 DirectShow audio support
arpi_esp
parents: 175
diff changeset
166 return "wmvds32.ax";
a8552ad553e0 DirectShow audio support
arpi_esp
parents: 175
diff changeset
167
255
9e9a000fe4b4 some new codecs added - not work yet
arpi_esp
parents: 192
diff changeset
168 case mmioFOURCC('H', 'F', 'Y', 'U'):
9e9a000fe4b4 some new codecs added - not work yet
arpi_esp
parents: 192
diff changeset
169 printf("HuffYUV\n");
9e9a000fe4b4 some new codecs added - not work yet
arpi_esp
parents: 192
diff changeset
170 avi_header.yuv_supported=1;
9e9a000fe4b4 some new codecs added - not work yet
arpi_esp
parents: 192
diff changeset
171 return "huffyuv.dll";
9e9a000fe4b4 some new codecs added - not work yet
arpi_esp
parents: 192
diff changeset
172
9e9a000fe4b4 some new codecs added - not work yet
arpi_esp
parents: 192
diff changeset
173 case mmioFOURCC('Z', 'L', 'I', 'B'):
9e9a000fe4b4 some new codecs added - not work yet
arpi_esp
parents: 192
diff changeset
174 printf("ZLIB\n");
9e9a000fe4b4 some new codecs added - not work yet
arpi_esp
parents: 192
diff changeset
175 avi_header.yuv_supported=1;
9e9a000fe4b4 some new codecs added - not work yet
arpi_esp
parents: 192
diff changeset
176 return "avizlib.dll";
9e9a000fe4b4 some new codecs added - not work yet
arpi_esp
parents: 192
diff changeset
177
9e9a000fe4b4 some new codecs added - not work yet
arpi_esp
parents: 192
diff changeset
178 case mmioFOURCC('M', 'S', 'Z', 'H'):
9e9a000fe4b4 some new codecs added - not work yet
arpi_esp
parents: 192
diff changeset
179 printf("MSZH\n");
9e9a000fe4b4 some new codecs added - not work yet
arpi_esp
parents: 192
diff changeset
180 avi_header.yuv_supported=1;
9e9a000fe4b4 some new codecs added - not work yet
arpi_esp
parents: 192
diff changeset
181 return "avimszh.dll";
9e9a000fe4b4 some new codecs added - not work yet
arpi_esp
parents: 192
diff changeset
182
9e9a000fe4b4 some new codecs added - not work yet
arpi_esp
parents: 192
diff changeset
183 #ifdef USE_DIRECTSHOW
9e9a000fe4b4 some new codecs added - not work yet
arpi_esp
parents: 192
diff changeset
184 case mmioFOURCC('T', 'M', '2', '0'):
9e9a000fe4b4 some new codecs added - not work yet
arpi_esp
parents: 192
diff changeset
185 printf("Video in TrueMotion 2.0 format\n");
9e9a000fe4b4 some new codecs added - not work yet
arpi_esp
parents: 192
diff changeset
186 avi_header.yuv_supported=1;
9e9a000fe4b4 some new codecs added - not work yet
arpi_esp
parents: 192
diff changeset
187 avi_header.vids_guid=&CLSID_TM20DecompressorCF;
9e9a000fe4b4 some new codecs added - not work yet
arpi_esp
parents: 192
diff changeset
188 return "tm20dec.ax";
9e9a000fe4b4 some new codecs added - not work yet
arpi_esp
parents: 192
diff changeset
189 #endif
190
a8552ad553e0 DirectShow audio support
arpi_esp
parents: 175
diff changeset
190
1
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
191 }
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
192 printf("UNKNOWN video codec: %.4s (0x%0X)\n",&fccHandler,fccHandler);
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
193 printf("If you know this video format and codec, you can edit codecs.c in the source!\n");
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
194 printf("Please contact the author, send this movie to be supported by future version.\n");
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
195 return NULL;
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
196 }
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
197
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
198 char* get_auds_codec_name(){
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
199 int id=((WAVEFORMATEX*)avi_header.wf_ext)->wFormatTag;
175
d43c7e6412f0 added DirectShow support
arpi_esp
parents: 129
diff changeset
200 avi_header.auds_guid=NULL;
1
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
201 switch (id){
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
202 case 0x161://DivX audio
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
203 // ((WAVEFORMATEX*)avi_header.wf_ext)->wFormatTag=0x160; //hack
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
204 case 0x160://DivX audio
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
205 avi_header.audio_seekable=0;
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
206 return "divxa32.acm"; // tested, OK.
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
207 case 0x2://MS ADPCM
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
208 avi_header.audio_seekable=0;
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
209 return "msadp32.acm"; // tested, OK.
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
210 case 0x55://MPEG l3
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
211 avi_header.audio_seekable=1;
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
212 return "l3codeca.acm"; // tested, OK. faster than mp3lib on intel
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
213 case 0x11://IMA ADPCM
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
214 return "imaadp32.acm"; // segfault :(
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
215 case 0x31://MS GSM
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
216 case 0x32://MS GSM
255
9e9a000fe4b4 some new codecs added - not work yet
arpi_esp
parents: 192
diff changeset
217 return "msgsm32.acm"; // OK after FS patch
1
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
218 case 0x75://VoxWare
190
a8552ad553e0 DirectShow audio support
arpi_esp
parents: 175
diff changeset
219 avi_header.auds_guid=&CLSID_Voxware;
255
9e9a000fe4b4 some new codecs added - not work yet
arpi_esp
parents: 192
diff changeset
220 return "voxmsdec.ax"; // OK after FS patch
1
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
221 // case 0x06://???
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
222 // return "lhacm.acm";
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
223 // return "msg711.acm";
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
224 // return "tssoft32.acm";
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
225 }
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
226 printf("UNKNOWN audio codec: 0x%0X\n",id);
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
227 printf("If you know this audio format and codec, you can edit codecs.c in the source!\n");
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
228 printf("Please contact the author, send this movie to be supported by future version.\n");
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
229 return NULL;
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
230 }
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
231