2 ** Copyright 2003-2010, VisualOn, Inc.
\r
4 ** Licensed under the Apache License, Version 2.0 (the "License");
\r
5 ** you may not use this file except in compliance with the License.
\r
6 ** You may obtain a copy of the License at
\r
8 ** http://www.apache.org/licenses/LICENSE-2.0
\r
10 ** Unless required by applicable law or agreed to in writing, software
\r
11 ** distributed under the License is distributed on an "AS IS" BASIS,
\r
12 ** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
\r
13 ** See the License for the specific language governing permissions and
\r
14 ** limitations under the License.
\r
16 /*******************************************************************************
\r
19 Content: AAC codec APIs & data types
\r
21 *******************************************************************************/
\r
28 #endif /* __cplusplus */
\r
30 #include "voAudio.h"
\r
33 * the frame type that the decoder supports
\r
36 VOAAC_RAWDATA = 0, /*!<contains only raw aac data in a frame*/
\r
37 VOAAC_ADTS = 1, /*!<contains ADTS header + raw AAC data in a frame*/
\r
38 VOAAC_FT_MAX = VO_MAX_ENUM_VALUE
\r
42 * the structure for AAC encoder input parameter
\r
45 int sampleRate; /*! audio file sample rate */
\r
46 int bitRate; /*! encoder bit rate in bits/sec */
\r
47 short nChannels; /*! number of channels on input (1,2) */
\r
48 short adtsUsed; /*! whether write adts header */
\r
52 #define VO_PID_AAC_Mdoule 0x42211000
\r
53 #define VO_PID_AAC_ENCPARAM VO_PID_AAC_Mdoule | 0x0040 /*!< get/set AAC encoder parameter, the parameter is a pointer to AACENC_PARAM */
\r
55 /* AAC decoder error ID */
\r
56 #define VO_ERR_AAC_Mdoule 0x82210000
\r
57 #define VO_ERR_AAC_UNSFILEFORMAT (VO_ERR_AAC_Mdoule | 0xF001)
\r
58 #define VO_ERR_AAC_UNSPROFILE (VO_ERR_AAC_Mdoule | 0xF002)
\r
61 * Get audio encoder API interface
\r
62 * \param pEncHandle [out] Return the AAC Encoder handle.
\r
63 * \retval VO_ERR_OK Succeeded.
\r
65 VO_S32 VO_API voGetAACEncAPI (VO_AUDIO_CODECAPI * pEncHandle);
\r
69 #endif /* __cplusplus */
\r
71 #endif // __voAAC_H__
\r