blob: 69d6cb09ce36714da737718de5b5339d36e7c743
1 | #ifndef _LIBAACDEC_H_ |
2 | #define _LIBAACDEC_H_ |
3 | |
4 | //header file |
5 | #include <unistd.h> |
6 | #include <stdio.h> |
7 | #include <string.h> |
8 | #include <getopt.h> |
9 | #include <pthread.h> |
10 | |
11 | // ffmpeg headers |
12 | #include <stdlib.h> |
13 | #include "common.h" |
14 | #include "structs.h" |
15 | |
16 | |
17 | #include <fcntl.h> |
18 | #include <stdio.h> |
19 | #include <stdarg.h> |
20 | #include <stdlib.h> |
21 | #include <string.h> |
22 | #include <getopt.h> |
23 | |
24 | #include "neaacdec.h" |
25 | //#include "../../amadec/adec_write.h" |
26 | #include "../../amadec/adec-armdec-mgt.h" |
27 | |
28 | |
29 | #define ACODEC_FMT_NULL -1 |
30 | #define ACODEC_FMT_MPEG 0 |
31 | #define ACODEC_FMT_PCM_S16LE 1 |
32 | #define ACODEC_FMT_AAC 2 |
33 | #define ACODEC_FMT_AC3 3 |
34 | #define ACODEC_FMT_ALAW 4 |
35 | #define ACODEC_FMT_MULAW 5 |
36 | #define ACODEC_FMT_DTS 6 |
37 | #define ACODEC_FMT_PCM_S16BE 7 |
38 | #define ACODEC_FMT_FLAC 8 |
39 | #define ACODEC_FMT_COOK 9 |
40 | #define ACODEC_FMT_PCM_U8 10 |
41 | #define ACODEC_FMT_ADPCM 11 |
42 | #define ACODEC_FMT_AMR 12 |
43 | #define ACODEC_FMT_RAAC 13 |
44 | #define ACODEC_FMT_WMA 14 |
45 | #define ACODEC_FMT_WMAPRO 15 |
46 | #define ACODEC_FMT_PCM_BLURAY 16 |
47 | #define ACODEC_FMT_ALAC 17 |
48 | #define ACODEC_FMT_VORBIS 18 |
49 | #define ACODEC_FMT_AAC_LATM 19 |
50 | #define ACODEC_FMT_APE 20 |
51 | #define ACODEC_FMT_EAC3 21 |
52 | #define ACODEC_FMT_WIFIDISPLAY 22 |
53 | //#include <mp4ff.h> |
54 | //int main(int argc, char *argv[]); |
55 | |
56 | //extern audio_decoder_operations_t AudioAacDecoder; |
57 | int audio_dec_init(audio_decoder_operations_t *adec_ops); |
58 | int audio_dec_decode(audio_decoder_operations_t *adec_ops, char *outbuf, int *outlen, char *inbuf, int inlen); |
59 | int audio_dec_release(audio_decoder_operations_t *adec_ops); |
60 | int audio_dec_getinfo(audio_decoder_operations_t *adec_ops, void *pAudioInfo); |
61 | //void libaacdec(void); |
62 | #endif |
63 | |
64 | |
65 |