VisualOn VisualOn AAC Encoder Reference Manual
VisualOn – Proprietary & Confidential 2 / 14
Revision History
Date
Version
Changes
Author
May 21 2009
1.0.0
Initial Version
Jacky Lin
VisualOn VisualOn AAC Encoder Reference Manual
VisualOn – Proprietary & Confidential 3 / 14
Table of Contents
1 Overview ................................................................................................................................... 4
2 Files in SDK .............................................................................................................................. 6
2.1 Header Files ................................................................................................................. 6
2.2 Sample Code Files ........................................................................................................ 6
2.3 Encoder Library Files ................................................................................................... 6
3 Input & Output .......................................................................................................................... 6
3.1 Input ............................................................................................................................. 6
3.2 Output ........................................................................................................................... 6
3.2.1 Output Data .......................................................................................................... 6
3.2.2 Return Code ......................................................................................................... 6
4 Encoder Data Definition ........................................................................................................... 7
4.1 Common Audio Encoder Data Structure ...................................................................... 7
4.1.1 STRUCTURE VO_CODECBUFFER .............................................................. 7
4.1.2 STRUCTURE VO_AUDIO_OUTPUTINFO ................................................... 8
4.1.3 STRUCTURE VO_CODEC_INIT_USERDATA ............................................ 8
4.1.4 ENUM VO_AUDIO_CODINGTYPE .............................................................. 9
4.2 AAC Encoder Data Structure ....................................................................................... 9
4.3 Parameter IDs ............................................................................................................. 10
5 Supported OSs and CPUs ....................................................................................................... 10
6 How to Use the API ................................................................................................................ 11
6.1 Only One API ............................................................................................................. 11
6.2 Six Functions in VO_AUDIO_CODECAPI .............................................................. 11
7 Sample Code Details ............................................................................................................... 13
7.1 Memory ...................................................................................................................... 13
7.2 Input Mode ................................................................................................................. 14
7.3 Encoding Process ....................................................................................................... 14
8 Support .................................................................................................................................... 14
VisualOn VisualOn AAC Encoder Reference Manual
VisualOn – Proprietary & Confidential 4 / 14
1 Overview
The document details the Application Programming Interfaces (APIs) of Advance Audio
Codec (AAC) encoder. It allows you to compress PCM data to standard AAC compliant bit
streams. The AAC encoder is based on AAC LC profile. The supported output formats are ADTS
and raw AAC data with mono and stereo channels. The encoder is optimized for various ARM
instruction sets, including v5, and v7 with NEON, instructions.
Figure 1 show a sample sequence of function execution flow in the AAC audio encoder.
VisualOn VisualOn AAC Encoder Reference Manual
VisualOn – Proprietary & Confidential 5 / 14
No Yes
Figure 1. AAC Audio Encoder Diagram.
GetAPI
InitAPI
SetParam
GetParam
GetOutputData
GetParam
SetParam
UninitAPI
OK?
SetInputData
- 1
- 2
- 3
- 4
- 5
- 6
前往页