HEAACDEC_AAC_INFO

Syntax

#include <cafe/aacdec.h>

 typedef struct {
    u16 smpFreq;        
    u16 channel;    
    u16 reserved[10];   
} HEAACDEC_AAC_INFO;

Elements

smpFreq Decoding conditions (sampling frequency of the decoding results audio data). For more information, see the Decoding Conditions table.
channel Decoding conditions (channel number of the decoding results audio data). 1:1, 2:2, or 6:5.1 channel.
reserved Reserved.

Description

Decoding Conditions

The sampling frequency for the decoding results audio data in the decoding conditions is specified using defined values.

When used with the MP4 demultiplexer, set the defined value of the sampling frequency returned by the MP4 demultiplexer.

When using this library by itself, the defined value is different depending on the bitstream data to be decoded. When the bitstream data is in HE-AAC format, set a defined value indicating half the value of the sampling frequency of the bitstream data; when the bitstream data is in AAC-LC format, set a defined value indicating the sampling frequency of the bitstream data.

The following table shows the sampling frequency definitions.

Decoding Condition Sampling Frequency Definitions

Name Value Frequency (Hz)
HEAACDEC_96000HZ 0 96000
HEAACDEC_88200HZ 1 88200
HEAACDEC_64000HZ 2 64000
HEAACDEC_48000HZ 3 48000
HEAACDEC_44100HZ 4 44100
HEAACDEC_32000HZ 5 32000
HEAACDEC_24000HZ 6 24000
HEAACDEC_22050HZ 7 22050
HEAACDEC_16000HZ 8 16000
HEAACDEC_12000HZ 9 12000
HEAACDEC_11025HZ 10 11025
HEAACDEC_08000HZ 11 8000

Error Codes

If the return values of the API functions or utility functions are anything other than 0, they include error information. The following table shows the error codes.

Return Value Definitions

Name Value Description
HEAACDEC_RET_OK 0 Normal end.
HEAACDEC_RET_BUFFER_ERR -1 Error in specifying memory to use.
HEAACDEC_RET_ERR_PARAM -2 Error in value specifying input parameters (including decoding conditions).
HEAACDEC_RET_STREAM_ERR -3 Error in input bitstream (including unsupported streams).
HEAACDEC_RET_INVALID_ERR -4 API call order error.

Data Size

The following shows the definitions related to data sizes.

Data Size Definitions

Name Value Data Item
HEAACDEC_MAX_CHANNEL NUM 6 Maximum number of channels that can be decoded.
HEAACDEC_PCM_FRAME_LENGTH 1024 Number of output samples for 1 frame (maximum number of C/L/R/LS/RS/LFE individually).
HEAACDEC_STREAM_MAX_SIZE 800 * HEAACDEC_MAX_CHANNEL_NUM Maximum size of one frame of bitstream input.

Revision History

2014/07/15 Initial version.


CONFIDENTIAL