Add support for VDPAU video out, including hardware decoding.
[mplayer/glamo.git] / libmpcodecs / ad.c
blob11d6f350fe37cb6034d1d1feb4adb67eafedda47
1 /*
2 ad.c - audio decoder interface
3 */
5 #include <stdio.h>
6 #include <stdlib.h>
7 #include <string.h>
9 #include "config.h"
11 #include "stream/stream.h"
12 #include "libmpdemux/demuxer.h"
13 #include "libmpdemux/stheader.h"
14 #include "ad.h"
16 /* Missed vorbis, mad, dshow */
18 //extern ad_functions_t mpcodecs_ad_null;
19 extern ad_functions_t mpcodecs_ad_mp3lib;
20 extern ad_functions_t mpcodecs_ad_ffmpeg;
21 extern ad_functions_t mpcodecs_ad_liba52;
22 extern ad_functions_t mpcodecs_ad_hwac3;
23 extern ad_functions_t mpcodecs_ad_hwmpa;
24 extern ad_functions_t mpcodecs_ad_pcm;
25 extern ad_functions_t mpcodecs_ad_dvdpcm;
26 extern ad_functions_t mpcodecs_ad_alaw;
27 extern ad_functions_t mpcodecs_ad_imaadpcm;
28 extern ad_functions_t mpcodecs_ad_msadpcm;
29 extern ad_functions_t mpcodecs_ad_dk3adpcm;
30 extern ad_functions_t mpcodecs_ad_dk4adpcm;
31 extern ad_functions_t mpcodecs_ad_dshow;
32 extern ad_functions_t mpcodecs_ad_dmo;
33 extern ad_functions_t mpcodecs_ad_acm;
34 extern ad_functions_t mpcodecs_ad_msgsm;
35 extern ad_functions_t mpcodecs_ad_faad;
36 extern ad_functions_t mpcodecs_ad_libvorbis;
37 extern ad_functions_t mpcodecs_ad_speex;
38 extern ad_functions_t mpcodecs_ad_libmad;
39 extern ad_functions_t mpcodecs_ad_realaud;
40 extern ad_functions_t mpcodecs_ad_libdv;
41 extern ad_functions_t mpcodecs_ad_qtaudio;
42 extern ad_functions_t mpcodecs_ad_twin;
43 extern ad_functions_t mpcodecs_ad_libmusepack;
44 extern ad_functions_t mpcodecs_ad_libdca;
46 ad_functions_t* mpcodecs_ad_drivers[] =
48 // &mpcodecs_ad_null,
49 #ifdef CONFIG_MP3LIB
50 &mpcodecs_ad_mp3lib,
51 #endif
52 #ifdef CONFIG_LIBA52
53 &mpcodecs_ad_liba52,
54 &mpcodecs_ad_hwac3,
55 #endif
56 &mpcodecs_ad_hwmpa,
57 #ifdef CONFIG_LIBAVCODEC
58 &mpcodecs_ad_ffmpeg,
59 #endif
60 &mpcodecs_ad_pcm,
61 &mpcodecs_ad_dvdpcm,
62 &mpcodecs_ad_alaw,
63 &mpcodecs_ad_imaadpcm,
64 &mpcodecs_ad_msadpcm,
65 &mpcodecs_ad_dk3adpcm,
66 &mpcodecs_ad_msgsm,
67 #ifdef CONFIG_WIN32DLL
68 &mpcodecs_ad_dshow,
69 &mpcodecs_ad_dmo,
70 &mpcodecs_ad_acm,
71 &mpcodecs_ad_twin,
72 #endif
73 #ifdef CONFIG_QTX_CODECS
74 &mpcodecs_ad_qtaudio,
75 #endif
76 #ifdef CONFIG_FAAD
77 &mpcodecs_ad_faad,
78 #endif
79 #ifdef CONFIG_OGGVORBIS
80 &mpcodecs_ad_libvorbis,
81 #endif
82 #ifdef CONFIG_SPEEX
83 &mpcodecs_ad_speex,
84 #endif
85 #ifdef CONFIG_LIBMAD
86 &mpcodecs_ad_libmad,
87 #endif
88 #ifdef CONFIG_REALCODECS
89 &mpcodecs_ad_realaud,
90 #endif
91 #ifdef CONFIG_LIBDV095
92 &mpcodecs_ad_libdv,
93 #endif
94 #ifdef CONFIG_MUSEPACK
95 &mpcodecs_ad_libmusepack,
96 #endif
97 #ifdef CONFIG_LIBDCA
98 &mpcodecs_ad_libdca,
99 #endif
100 NULL