annotate codecs.c @ 220:5348fa1313fe

OSD functionality improved
author arpi_esp
date Tue, 27 Mar 2001 00:39:24 +0000
parents f5728d824638
children 9e9a000fe4b4
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}};
a8552ad553e0 DirectShow audio support
arpi_esp
parents: 175
diff changeset
20
1
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
21
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
22 char* get_vids_codec_name(){
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
23 // unsigned long fccHandler=avi_header.video.fccHandler;
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
24 unsigned long fccHandler=avi_header.bih.biCompression;
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
25 avi_header.yuv_supported=0;
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
26 avi_header.yuv_hack_needed=0;
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
27 avi_header.flipped=0;
175
d43c7e6412f0 added DirectShow support
arpi_esp
parents: 129
diff changeset
28 avi_header.vids_guid=NULL;
d43c7e6412f0 added DirectShow support
arpi_esp
parents: 129
diff changeset
29
1
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
30 switch(fccHandler){
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
31 case mmioFOURCC('M', 'P', 'G', '4'):
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
32 case mmioFOURCC('m', 'p', 'g', '4'):
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
33 case mmioFOURCC('M', 'P', '4', '2'):
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
34 case mmioFOURCC('m', 'p', '4', '2'):
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
35 // case mmioFOURCC('M', 'P', '4', '3'):
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
36 // case mmioFOURCC('m', 'p', '4', '3'):
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
37 printf("Video in Microsoft MPEG-4 format\n");
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
38 avi_header.yuv_supported=1;
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
39 avi_header.yuv_hack_needed=1;
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
40 #ifdef ANGELPOTION
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
41 return "APmpg4v1.dll";
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
42 #endif
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
43 return "mpg4c32.dll";
125
4e42d41dad68 DIV5+DIV6 support
arpi_esp
parents: 124
diff changeset
44
1
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
45 case mmioFOURCC('M', 'P', '4', '3'):
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
46 case mmioFOURCC('m', 'p', '4', '3'):
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
47 printf("Video in MPEG-4 v3 (really DivX) format\n");
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
48 avi_header.bih.biCompression=mmioFOURCC('d', 'i', 'v', '3'); // hack
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
49 avi_header.yuv_supported=1;
192
f5728d824638 postproces for MP43 fourcc
arpi_esp
parents: 190
diff changeset
50 #ifdef USE_DIRECTSHOW
f5728d824638 postproces for MP43 fourcc
arpi_esp
parents: 190
diff changeset
51 avi_header.vids_guid=&CLSID_DivxDecompressorCF;
f5728d824638 postproces for MP43 fourcc
arpi_esp
parents: 190
diff changeset
52 return "divx_c32.ax";
f5728d824638 postproces for MP43 fourcc
arpi_esp
parents: 190
diff changeset
53 #else
1
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
54 avi_header.yuv_hack_needed=1;
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
55 #ifdef ANGELPOTION
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
56 return "APmpg4v1.dll";
192
f5728d824638 postproces for MP43 fourcc
arpi_esp
parents: 190
diff changeset
57 #else
f5728d824638 postproces for MP43 fourcc
arpi_esp
parents: 190
diff changeset
58 return "divxc32.dll";
1
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
59 #endif
192
f5728d824638 postproces for MP43 fourcc
arpi_esp
parents: 190
diff changeset
60 #endif
1
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
61
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
62 case mmioFOURCC('D', 'I', 'V', 'X'):
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
63 case mmioFOURCC('d', 'i', 'v', 'x'):
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
64 return "DivX.dll";
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
65
125
4e42d41dad68 DIV5+DIV6 support
arpi_esp
parents: 124
diff changeset
66 case mmioFOURCC('D', 'I', 'V', '5'):
4e42d41dad68 DIV5+DIV6 support
arpi_esp
parents: 124
diff changeset
67 case mmioFOURCC('d', 'i', 'v', '5'):
4e42d41dad68 DIV5+DIV6 support
arpi_esp
parents: 124
diff changeset
68 case mmioFOURCC('D', 'I', 'V', '6'):
4e42d41dad68 DIV5+DIV6 support
arpi_esp
parents: 124
diff changeset
69 case mmioFOURCC('d', 'i', 'v', '6'):
4e42d41dad68 DIV5+DIV6 support
arpi_esp
parents: 124
diff changeset
70 avi_header.bih.biCompression-=0x02000000; // div5->div3, div6->div4
1
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
71 case mmioFOURCC('D', 'I', 'V', '3'):
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
72 case mmioFOURCC('d', 'i', 'v', '3'):
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
73 case mmioFOURCC('D', 'I', 'V', '4'):
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
74 case mmioFOURCC('d', 'i', 'v', '4'):
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
75 case mmioFOURCC('M', 'P', '4', '1'):
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
76 case mmioFOURCC('m', 'p', '4', '1'):
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
77 printf("Video in DivX ;-) format\n");
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
78 avi_header.yuv_supported=1;
175
d43c7e6412f0 added DirectShow support
arpi_esp
parents: 129
diff changeset
79 #ifdef USE_DIRECTSHOW
d43c7e6412f0 added DirectShow support
arpi_esp
parents: 129
diff changeset
80 avi_header.vids_guid=&CLSID_DivxDecompressorCF;
d43c7e6412f0 added DirectShow support
arpi_esp
parents: 129
diff changeset
81 return "divx_c32.ax";
d43c7e6412f0 added DirectShow support
arpi_esp
parents: 129
diff changeset
82 #else
1
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
83 avi_header.yuv_hack_needed=1;
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
84 #ifdef ANGELPOTION
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
85 return "APmpg4v1.dll";
175
d43c7e6412f0 added DirectShow support
arpi_esp
parents: 129
diff changeset
86 #else
d43c7e6412f0 added DirectShow support
arpi_esp
parents: 129
diff changeset
87 return "divxc32.dll";
1
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
88 #endif
175
d43c7e6412f0 added DirectShow support
arpi_esp
parents: 129
diff changeset
89 #endif
1
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
90
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
91 case mmioFOURCC('I', 'V', '5', '0'):
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
92 case mmioFOURCC('i', 'v', '5', '0'):
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
93 printf("Video in Indeo Video 5 format\n");
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
94 avi_header.yuv_supported=1; // YUV pic is upside-down :(
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
95 return "ir50_32.dll";
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
96
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
97 case mmioFOURCC('I', 'V', '4', '1'):
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
98 case mmioFOURCC('i', 'v', '4', '1'):
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
99 printf("Video in Indeo Video 4.1 format\n");
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
100 avi_header.flipped=1;
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
101 avi_header.no_32bpp_support=1;
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
102 return "ir41_32.dll";
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
103
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
104 case mmioFOURCC('I', 'V', '3', '2'):
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
105 case mmioFOURCC('i', 'v', '3', '2'):
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
106 printf("Video in Indeo Video 3.2 format\n");
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
107 avi_header.flipped=1;
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
108 avi_header.no_32bpp_support=1;
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
109 return "ir32_32.dll";
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
110
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
111 case mmioFOURCC('c', 'v', 'i', 'd'):
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
112 printf("Video in Cinepak format\n");
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
113 avi_header.yuv_supported=1;
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
114 return "iccvid.dll";
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
115
124
2df337e28820 CRAM codec support added
arpi_esp
parents: 1
diff changeset
116 case mmioFOURCC('c', 'r', 'a', 'm'):
2df337e28820 CRAM codec support added
arpi_esp
parents: 1
diff changeset
117 case mmioFOURCC('C', 'R', 'A', 'M'):
2df337e28820 CRAM codec support added
arpi_esp
parents: 1
diff changeset
118 printf("Video in CRAM format\n");
2df337e28820 CRAM codec support added
arpi_esp
parents: 1
diff changeset
119 avi_header.no_32bpp_support=1;
2df337e28820 CRAM codec support added
arpi_esp
parents: 1
diff changeset
120 //avi_header.yuv_supported=1;
2df337e28820 CRAM codec support added
arpi_esp
parents: 1
diff changeset
121 return "msvidc32.dll";
2df337e28820 CRAM codec support added
arpi_esp
parents: 1
diff changeset
122
1
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
123 //*** Only 16bit .DLL available (can't load under linux) ***
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
124 // case mmioFOURCC('V', 'C', 'R', '1'):
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
125 // printf("Video in ATI VCR1 format\n");
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
126 // return "ativcr1.dll";
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
127
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
128 case mmioFOURCC('V', 'C', 'R', '2'):
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
129 printf("Video in ATI VCR2 format\n");
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
130 avi_header.yuv_supported=1;
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
131 return "ativcr2.dll";
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
132
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
133 case mmioFOURCC('A', 'S', 'V', '1'):
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
134 printf("Asus ASV-1 format\n");
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
135 // avi_header.yuv_supported=1;
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
136 return "asusasvd.dll";
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
137
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
138 case mmioFOURCC('A', 'S', 'V', '2'):
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
139 printf("Asus ASV-2 format\n");
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
140 // avi_header.yuv_supported=1;
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
141 avi_header.flipped=1;
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
142 // avi_header.bih.biCompression=mmioFOURCC('A', 'S', 'V', '1');
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
143 // return "asusasvd.dll";
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
144 return "asusasv2.dll";
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
145
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
146 case mmioFOURCC('I', '2', '6', '3'):
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
147 case mmioFOURCC('i', '2', '6', '3'):
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
148 printf("Video in I263 format\n");
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
149 return "i263_32.drv";
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
150
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
151 case mmioFOURCC('M', 'J', 'P', 'G'):
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
152 printf("Video in MJPEG format\n");
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
153 avi_header.yuv_supported=1;
129
02d5e36e81de MJPEG support added
arpi_esp
parents: 125
diff changeset
154 // return "M3JPEG32.dll";
02d5e36e81de MJPEG support added
arpi_esp
parents: 125
diff changeset
155 return "mcmjpg32.dll";
1
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
156 // return "m3jpeg32.dll";
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
157 // return "libavi_mjpeg.so";
190
a8552ad553e0 DirectShow audio support
arpi_esp
parents: 175
diff changeset
158
a8552ad553e0 DirectShow audio support
arpi_esp
parents: 175
diff changeset
159 case mmioFOURCC('W', 'M', 'V', '1'):
a8552ad553e0 DirectShow audio support
arpi_esp
parents: 175
diff changeset
160 printf("Video in Windows Media Video 1 format\n");
a8552ad553e0 DirectShow audio support
arpi_esp
parents: 175
diff changeset
161 avi_header.yuv_supported=1;
a8552ad553e0 DirectShow audio support
arpi_esp
parents: 175
diff changeset
162 avi_header.vids_guid=&wmv1_clsid;
a8552ad553e0 DirectShow audio support
arpi_esp
parents: 175
diff changeset
163 return "wmvds32.ax";
a8552ad553e0 DirectShow audio support
arpi_esp
parents: 175
diff changeset
164
a8552ad553e0 DirectShow audio support
arpi_esp
parents: 175
diff changeset
165
1
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
166 }
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
167 printf("UNKNOWN video codec: %.4s (0x%0X)\n",&fccHandler,fccHandler);
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
168 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
169 printf("Please contact the author, send this movie to be supported by future version.\n");
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
170 return NULL;
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
171 }
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
172
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
173 char* get_auds_codec_name(){
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
174 int id=((WAVEFORMATEX*)avi_header.wf_ext)->wFormatTag;
175
d43c7e6412f0 added DirectShow support
arpi_esp
parents: 129
diff changeset
175 avi_header.auds_guid=NULL;
1
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
176 switch (id){
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
177 case 0x161://DivX audio
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
178 // ((WAVEFORMATEX*)avi_header.wf_ext)->wFormatTag=0x160; //hack
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
179 case 0x160://DivX audio
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
180 avi_header.audio_seekable=0;
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
181 return "divxa32.acm"; // tested, OK.
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
182 case 0x2://MS ADPCM
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
183 avi_header.audio_seekable=0;
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
184 return "msadp32.acm"; // tested, OK.
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
185 case 0x55://MPEG l3
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
186 avi_header.audio_seekable=1;
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
187 return "l3codeca.acm"; // tested, OK. faster than mp3lib on intel
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
188 case 0x11://IMA ADPCM
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
189 return "imaadp32.acm"; // segfault :(
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
190 case 0x31://MS GSM
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
191 case 0x32://MS GSM
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
192 return "msgsm32.acm"; // segfault :( - not req. has internal now!
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
193 case 0x75://VoxWare
190
a8552ad553e0 DirectShow audio support
arpi_esp
parents: 175
diff changeset
194 avi_header.auds_guid=&CLSID_Voxware;
a8552ad553e0 DirectShow audio support
arpi_esp
parents: 175
diff changeset
195 return "voxmsdec.ax";
1
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
196 // case 0x06://???
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
197 // return "lhacm.acm";
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
198 // return "msg711.acm";
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
199 // return "tssoft32.acm";
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
200 }
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
201 printf("UNKNOWN audio codec: 0x%0X\n",id);
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
202 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
203 printf("Please contact the author, send this movie to be supported by future version.\n");
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
204 return NULL;
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
205 }
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
206