Mercurial > audlegacy
comparison Plugins/Input/aac/libfaad2/decoder.h @ 1010:29feaace84d0 trunk
[svn] - synchronize audacious-faad with FAAD2 CVS.
author | nenolod |
---|---|
date | Mon, 08 May 2006 06:56:47 -0700 |
parents | 0a2ad94e8607 |
children | 1e6c0a3f2d15 |
comparison
equal
deleted
inserted
replaced
1009:1008da26c12d | 1010:29feaace84d0 |
---|---|
20 ** forbidden. | 20 ** forbidden. |
21 ** | 21 ** |
22 ** Commercial non-GPL licensing of this software is possible. | 22 ** Commercial non-GPL licensing of this software is possible. |
23 ** For more info contact Ahead Software through Mpeg4AAClicense@nero.com. | 23 ** For more info contact Ahead Software through Mpeg4AAClicense@nero.com. |
24 ** | 24 ** |
25 ** $Id: decoder.h,v 1.44 2004/09/04 14:56:28 menno Exp $ | 25 ** $Id: decoder.h,v 1.35 2004/01/05 14:05:11 menno Exp $ |
26 **/ | 26 **/ |
27 | 27 |
28 #ifndef __DECODER_H__ | 28 #ifndef __DECODER_H__ |
29 #define __DECODER_H__ | 29 #define __DECODER_H__ |
30 | 30 |
32 extern "C" { | 32 extern "C" { |
33 #endif | 33 #endif |
34 | 34 |
35 #ifdef _WIN32 | 35 #ifdef _WIN32 |
36 #pragma pack(push, 8) | 36 #pragma pack(push, 8) |
37 #ifndef NEAACDECAPI | 37 #ifndef FAADAPI |
38 #define NEAACDECAPI __cdecl | 38 #define FAADAPI __cdecl |
39 #endif | 39 #endif |
40 #else | 40 #else |
41 #ifndef NEAACDECAPI | 41 #ifndef FAADAPI |
42 #define NEAACDECAPI | 42 #define FAADAPI |
43 #endif | 43 #endif |
44 #endif | 44 #endif |
45 | |
46 #include "bits.h" | |
47 #include "syntax.h" | |
48 #include "drc.h" | |
49 #include "specrec.h" | |
50 #include "filtbank.h" | |
51 #include "ic_predict.h" | |
45 | 52 |
46 | 53 |
47 /* library output formats */ | 54 /* library output formats */ |
48 #define FAAD_FMT_16BIT 1 | 55 #define FAAD_FMT_16BIT 1 |
49 #define FAAD_FMT_24BIT 2 | 56 #define FAAD_FMT_24BIT 2 |
50 #define FAAD_FMT_32BIT 3 | 57 #define FAAD_FMT_32BIT 3 |
51 #define FAAD_FMT_FLOAT 4 | 58 #define FAAD_FMT_FLOAT 4 |
52 #define FAAD_FMT_FIXED FAAD_FMT_FLOAT | |
53 #define FAAD_FMT_DOUBLE 5 | 59 #define FAAD_FMT_DOUBLE 5 |
54 | 60 |
55 #define LC_DEC_CAP (1<<0) | 61 #define LC_DEC_CAP (1<<0) |
56 #define MAIN_DEC_CAP (1<<1) | 62 #define MAIN_DEC_CAP (1<<1) |
57 #define LTP_DEC_CAP (1<<2) | 63 #define LTP_DEC_CAP (1<<2) |
68 #define BACK_CHANNEL_RIGHT (7) | 74 #define BACK_CHANNEL_RIGHT (7) |
69 #define BACK_CHANNEL_CENTER (8) | 75 #define BACK_CHANNEL_CENTER (8) |
70 #define LFE_CHANNEL (9) | 76 #define LFE_CHANNEL (9) |
71 #define UNKNOWN_CHANNEL (0) | 77 #define UNKNOWN_CHANNEL (0) |
72 | 78 |
73 char* NEAACDECAPI NeAACDecGetErrorMessage(uint8_t errcode); | 79 int8_t* FAADAPI faacDecGetErrorMessage(uint8_t errcode); |
74 | 80 |
75 uint32_t NEAACDECAPI NeAACDecGetCapabilities(void); | 81 uint32_t FAADAPI faacDecGetCapabilities(void); |
76 | 82 |
77 NeAACDecHandle NEAACDECAPI NeAACDecOpen(void); | 83 faacDecHandle FAADAPI faacDecOpen(void); |
78 | 84 |
79 NeAACDecConfigurationPtr NEAACDECAPI NeAACDecGetCurrentConfiguration(NeAACDecHandle hDecoder); | 85 faacDecConfigurationPtr FAADAPI faacDecGetCurrentConfiguration(faacDecHandle hDecoder); |
80 | 86 |
81 uint8_t NEAACDECAPI NeAACDecSetConfiguration(NeAACDecHandle hDecoder, | 87 uint8_t FAADAPI faacDecSetConfiguration(faacDecHandle hDecoder, |
82 NeAACDecConfigurationPtr config); | 88 faacDecConfigurationPtr config); |
83 | 89 |
84 /* Init the library based on info from the AAC file (ADTS/ADIF) */ | 90 /* Init the library based on info from the AAC file (ADTS/ADIF) */ |
85 int32_t NEAACDECAPI NeAACDecInit(NeAACDecHandle hDecoder, | 91 int32_t FAADAPI faacDecInit(faacDecHandle hDecoder, |
86 uint8_t *buffer, | 92 uint8_t *buffer, |
87 uint32_t buffer_size, | 93 uint32_t buffer_size, |
88 uint32_t *samplerate, | 94 uint32_t *samplerate, |
89 uint8_t *channels); | 95 uint8_t *channels); |
90 | 96 |
91 /* Init the library using a DecoderSpecificInfo */ | 97 /* Init the library using a DecoderSpecificInfo */ |
92 int8_t NEAACDECAPI NeAACDecInit2(NeAACDecHandle hDecoder, uint8_t *pBuffer, | 98 int8_t FAADAPI faacDecInit2(faacDecHandle hDecoder, uint8_t *pBuffer, |
93 uint32_t SizeOfDecoderSpecificInfo, | 99 uint32_t SizeOfDecoderSpecificInfo, |
94 uint32_t *samplerate, uint8_t *channels); | 100 uint32_t *samplerate, uint8_t *channels); |
95 | 101 |
96 /* Init the library for DRM */ | 102 /* Init the library for DRM */ |
97 int8_t NEAACDECAPI NeAACDecInitDRM(NeAACDecHandle *hDecoder, uint32_t samplerate, | 103 int8_t FAADAPI faacDecInitDRM(faacDecHandle hDecoder, uint32_t samplerate, |
98 uint8_t channels); | 104 uint8_t channels); |
99 | 105 |
100 void NEAACDECAPI NeAACDecClose(NeAACDecHandle hDecoder); | 106 void FAADAPI faacDecClose(faacDecHandle hDecoder); |
101 | 107 |
102 void NEAACDECAPI NeAACDecPostSeekReset(NeAACDecHandle hDecoder, int32_t frame); | 108 void FAADAPI faacDecPostSeekReset(faacDecHandle hDecoder, int32_t frame); |
103 | 109 |
104 void* NEAACDECAPI NeAACDecDecode(NeAACDecHandle hDecoder, | 110 void* FAADAPI faacDecDecode(faacDecHandle hDecoder, |
105 NeAACDecFrameInfo *hInfo, | 111 faacDecFrameInfo *hInfo, |
106 uint8_t *buffer, | 112 uint8_t *buffer, |
107 uint32_t buffer_size); | 113 uint32_t buffer_size); |
108 | |
109 void* NEAACDECAPI NeAACDecDecode2(NeAACDecHandle hDecoder, | |
110 NeAACDecFrameInfo *hInfo, | |
111 uint8_t *buffer, uint32_t buffer_size, | |
112 void **sample_buffer, uint32_t sample_buffer_size); | |
113 | 114 |
114 #ifdef _WIN32 | 115 #ifdef _WIN32 |
115 #pragma pack(pop) | 116 #pragma pack(pop) |
116 #endif | 117 #endif |
117 | 118 |