28924
|
1 /* audio decoder interface */
|
5344
|
2
|
|
3 #include <stdio.h>
|
|
4 #include <stdlib.h>
|
|
5 #include <string.h>
|
|
6
|
|
7 #include "config.h"
|
|
8
|
22599
|
9 #include "stream/stream.h"
|
22601
|
10 #include "libmpdemux/demuxer.h"
|
|
11 #include "libmpdemux/stheader.h"
|
5344
|
12 #include "ad.h"
|
|
13
|
|
14 /* Missed vorbis, mad, dshow */
|
|
15
|
|
16 //extern ad_functions_t mpcodecs_ad_null;
|
|
17 extern ad_functions_t mpcodecs_ad_mp3lib;
|
|
18 extern ad_functions_t mpcodecs_ad_ffmpeg;
|
|
19 extern ad_functions_t mpcodecs_ad_liba52;
|
|
20 extern ad_functions_t mpcodecs_ad_hwac3;
|
17397
|
21 extern ad_functions_t mpcodecs_ad_hwmpa;
|
5344
|
22 extern ad_functions_t mpcodecs_ad_pcm;
|
|
23 extern ad_functions_t mpcodecs_ad_dvdpcm;
|
|
24 extern ad_functions_t mpcodecs_ad_alaw;
|
|
25 extern ad_functions_t mpcodecs_ad_imaadpcm;
|
|
26 extern ad_functions_t mpcodecs_ad_msadpcm;
|
|
27 extern ad_functions_t mpcodecs_ad_dk3adpcm;
|
5519
|
28 extern ad_functions_t mpcodecs_ad_dk4adpcm;
|
5344
|
29 extern ad_functions_t mpcodecs_ad_dshow;
|
8326
|
30 extern ad_functions_t mpcodecs_ad_dmo;
|
5344
|
31 extern ad_functions_t mpcodecs_ad_acm;
|
5345
|
32 extern ad_functions_t mpcodecs_ad_msgsm;
|
5356
739cad21c32c
Port dec_audio.c faad aac decoder to libmpcodecs, cleaned up code, improved buffering scheme.
atmos4
diff
changeset
|
33 extern ad_functions_t mpcodecs_ad_faad;
|
7174
|
34 extern ad_functions_t mpcodecs_ad_libvorbis;
|
16915
|
35 extern ad_functions_t mpcodecs_ad_speex;
|
5479
|
36 extern ad_functions_t mpcodecs_ad_libmad;
|
7174
|
37 extern ad_functions_t mpcodecs_ad_realaud;
|
6927
|
38 extern ad_functions_t mpcodecs_ad_libdv;
|
8008
|
39 extern ad_functions_t mpcodecs_ad_qtaudio;
|
14276
|
40 extern ad_functions_t mpcodecs_ad_twin;
|
15958
|
41 extern ad_functions_t mpcodecs_ad_libmusepack;
|
23821
|
42 extern ad_functions_t mpcodecs_ad_libdca;
|
5344
|
43
|
|
44 ad_functions_t* mpcodecs_ad_drivers[] =
|
|
45 {
|
|
46 // &mpcodecs_ad_null,
|
27341
|
47 #ifdef CONFIG_MP3LIB
|
5344
|
48 &mpcodecs_ad_mp3lib,
|
8026
|
49 #endif
|
27341
|
50 #ifdef CONFIG_LIBA52
|
5344
|
51 &mpcodecs_ad_liba52,
|
|
52 &mpcodecs_ad_hwac3,
|
8026
|
53 #endif
|
17397
|
54 &mpcodecs_ad_hwmpa,
|
27341
|
55 #ifdef CONFIG_LIBAVCODEC
|
5344
|
56 &mpcodecs_ad_ffmpeg,
|
|
57 #endif
|
|
58 &mpcodecs_ad_pcm,
|
|
59 &mpcodecs_ad_dvdpcm,
|
|
60 &mpcodecs_ad_alaw,
|
|
61 &mpcodecs_ad_imaadpcm,
|
|
62 &mpcodecs_ad_msadpcm,
|
|
63 &mpcodecs_ad_dk3adpcm,
|
5345
|
64 &mpcodecs_ad_msgsm,
|
27341
|
65 #ifdef CONFIG_WIN32DLL
|
5344
|
66 &mpcodecs_ad_dshow,
|
8326
|
67 &mpcodecs_ad_dmo,
|
5344
|
68 &mpcodecs_ad_acm,
|
14276
|
69 &mpcodecs_ad_twin,
|
8160
|
70 #endif
|
27341
|
71 #ifdef CONFIG_QTX_CODECS
|
8008
|
72 &mpcodecs_ad_qtaudio,
|
5344
|
73 #endif
|
27363
|
74 #ifdef CONFIG_FAAD
|
5454
|
75 &mpcodecs_ad_faad,
|
|
76 #endif
|
27363
|
77 #ifdef CONFIG_OGGVORBIS
|
7174
|
78 &mpcodecs_ad_libvorbis,
|
5356
739cad21c32c
Port dec_audio.c faad aac decoder to libmpcodecs, cleaned up code, improved buffering scheme.
atmos4
diff
changeset
|
79 #endif
|
27363
|
80 #ifdef CONFIG_SPEEX
|
16915
|
81 &mpcodecs_ad_speex,
|
|
82 #endif
|
27341
|
83 #ifdef CONFIG_LIBMAD
|
5479
|
84 &mpcodecs_ad_libmad,
|
|
85 #endif
|
27341
|
86 #ifdef CONFIG_REALCODECS
|
7174
|
87 &mpcodecs_ad_realaud,
|
6367
|
88 #endif
|
27363
|
89 #ifdef CONFIG_LIBDV095
|
6927
|
90 &mpcodecs_ad_libdv,
|
|
91 #endif
|
27363
|
92 #ifdef CONFIG_MUSEPACK
|
15958
|
93 &mpcodecs_ad_libmusepack,
|
|
94 #endif
|
27341
|
95 #ifdef CONFIG_LIBDCA
|
23821
|
96 &mpcodecs_ad_libdca,
|
|
97 #endif
|
5344
|
98 NULL
|
|
99 };
|