vo_corevideo: Simplify update_screen_info
[mplayer/glamo.git] / libmpcodecs / ad.c
blobd6c4756d51941f6fea9c8f6b68834ad79a2aff5e
1 /*
2 * audio decoder interface
4 * This file is part of MPlayer.
6 * MPlayer is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; either version 2 of the License, or
9 * (at your option) any later version.
11 * MPlayer is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
16 * You should have received a copy of the GNU General Public License along
17 * with MPlayer; if not, write to the Free Software Foundation, Inc.,
18 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
21 #include <stdio.h>
22 #include <stdlib.h>
23 #include <string.h>
25 #include "config.h"
27 #include "stream/stream.h"
28 #include "libmpdemux/demuxer.h"
29 #include "libmpdemux/stheader.h"
30 #include "ad.h"
32 /* Missed vorbis, mad, dshow */
34 //extern ad_functions_t mpcodecs_ad_null;
35 extern const ad_functions_t mpcodecs_ad_mpg123;
36 extern const ad_functions_t mpcodecs_ad_mp3lib;
37 extern const ad_functions_t mpcodecs_ad_ffmpeg;
38 extern const ad_functions_t mpcodecs_ad_liba52;
39 extern const ad_functions_t mpcodecs_ad_hwac3;
40 extern const ad_functions_t mpcodecs_ad_hwmpa;
41 extern const ad_functions_t mpcodecs_ad_pcm;
42 extern const ad_functions_t mpcodecs_ad_dvdpcm;
43 extern const ad_functions_t mpcodecs_ad_alaw;
44 extern const ad_functions_t mpcodecs_ad_imaadpcm;
45 extern const ad_functions_t mpcodecs_ad_msadpcm;
46 extern const ad_functions_t mpcodecs_ad_dk3adpcm;
47 extern const ad_functions_t mpcodecs_ad_dk4adpcm;
48 extern const ad_functions_t mpcodecs_ad_dshow;
49 extern const ad_functions_t mpcodecs_ad_dmo;
50 extern const ad_functions_t mpcodecs_ad_acm;
51 extern const ad_functions_t mpcodecs_ad_faad;
52 extern const ad_functions_t mpcodecs_ad_libvorbis;
53 extern const ad_functions_t mpcodecs_ad_speex;
54 extern const ad_functions_t mpcodecs_ad_libmad;
55 extern const ad_functions_t mpcodecs_ad_realaud;
56 extern const ad_functions_t mpcodecs_ad_libdv;
57 extern const ad_functions_t mpcodecs_ad_qtaudio;
58 extern const ad_functions_t mpcodecs_ad_twin;
59 extern const ad_functions_t mpcodecs_ad_libmusepack;
60 extern const ad_functions_t mpcodecs_ad_libdca;
62 const ad_functions_t * const mpcodecs_ad_drivers[] =
64 // &mpcodecs_ad_null,
65 #ifdef CONFIG_MPG123
66 &mpcodecs_ad_mpg123,
67 #endif
68 #ifdef CONFIG_MP3LIB
69 &mpcodecs_ad_mp3lib,
70 #endif
71 #ifdef CONFIG_LIBA52
72 &mpcodecs_ad_liba52,
73 #endif
74 &mpcodecs_ad_hwac3,
75 &mpcodecs_ad_hwmpa,
76 #ifdef CONFIG_LIBAVCODEC
77 &mpcodecs_ad_ffmpeg,
78 #endif
79 &mpcodecs_ad_pcm,
80 &mpcodecs_ad_dvdpcm,
81 &mpcodecs_ad_alaw,
82 &mpcodecs_ad_imaadpcm,
83 &mpcodecs_ad_msadpcm,
84 &mpcodecs_ad_dk3adpcm,
85 #ifdef CONFIG_WIN32DLL
86 &mpcodecs_ad_dshow,
87 &mpcodecs_ad_dmo,
88 &mpcodecs_ad_acm,
89 &mpcodecs_ad_twin,
90 #endif
91 #ifdef CONFIG_QTX_CODECS
92 &mpcodecs_ad_qtaudio,
93 #endif
94 #ifdef CONFIG_FAAD
95 &mpcodecs_ad_faad,
96 #endif
97 #ifdef CONFIG_OGGVORBIS
98 &mpcodecs_ad_libvorbis,
99 #endif
100 #ifdef CONFIG_SPEEX
101 &mpcodecs_ad_speex,
102 #endif
103 #ifdef CONFIG_LIBMAD
104 &mpcodecs_ad_libmad,
105 #endif
106 #ifdef CONFIG_REALCODECS
107 &mpcodecs_ad_realaud,
108 #endif
109 #ifdef CONFIG_LIBDV095
110 &mpcodecs_ad_libdv,
111 #endif
112 #ifdef CONFIG_MUSEPACK
113 &mpcodecs_ad_libmusepack,
114 #endif
115 #ifdef CONFIG_LIBDCA
116 &mpcodecs_ad_libdca,
117 #endif
118 NULL