Aenc1
Provides a simple interface to AUDENC1 (XDM 0.9) based algorithms. Typical example below (AAC, no error checking):.
More...
Detailed Description
Provides a simple interface to AUDENC1 (XDM 0.9) based algorithms. Typical example below (AAC, no error checking):.
Typedef Documentation
Handle through which to reference an Audio Encode algorithm.
Function Documentation
Aenc1_Handle Aenc1_create |
( |
Engine_Handle |
hEngine, |
|
|
Char * |
codecName, |
|
|
AUDENC1_Params * |
params, |
|
|
AUDENC1_DynamicParams * |
dynParams | |
|
) |
| | |
Creates an Audio Encode (XDM 0.9) algorithm instance.
- Parameters:
-
[in] | hEngine | An opened engine containing the algorithm to create. |
[in] | codecName | The name of the algorithm to open. Corresponds to the string name given in the .cfg file. |
[in] | params | XDM parameters to use while creating the codec. |
[in] | dynParams | XDM dynamic parameters to use while creating the codec. |
- Return values:
-
| Handle | for use in subsequent operations (see Aenc1_Handle). |
| NULL | for failure. |
Sends XDM_FLUSH command to codec to notify it is the last frame which must be padded with zeros. after this call Aenc1_process to encode last frame.
- Parameters:
-
[in] | hAe | The Aenc1_Handle of the encoder to flush. |
[in] | hInBuf | The Buffer_Handle for the buffer containing the raw data. |
[in] | hOutBuf | The Buffer_Handle for the buffer to fill with decoded data. |
- Return values:
-
| Dmai_EOK | for success. |
| Negative value | for failure, see Dmai.h. |
Deletes an Audio Encode algorithm instance.
- Parameters:
-
- Return values:
-
| Dmai_EOK | for success. |
| Negative value | for failure, see Dmai.h. |
Get the AUDENC1 handle from the Aenc1 module instance.
- Parameters:
-
[in] | hAe | The Aenc1_Handle for which to get the AUDENC1 handle. |
- Return values:
-
| Handle | to the audio encode algorithm, see the XDM documentation for AUDENC1. |
Get the input buffer size required by the codec.
- Parameters:
-
- Return values:
-
| Size | in bytes of the input buffer required. |
Get the output buffer size required by the codec.
- Parameters:
-
- Return values:
-
| Size | in bytes of the output buffer required. |
Variable Documentation
Default XDM params for an Audio Encode algorithm.
size = sizeof(AUDENC1_Params),
sampleRate = 48000,
bitRate = 288000,
channelMode = IAUDIO_2_0,
dataEndianness = XDM_LE_16,
encMode = IAUDIO_CBR,
inputFormat = IAUDIO_INTERLEAVED,
inputBitsPerSample = 16,
maxBitRate = 192000,
dualMonoMode = IAUDIO_DUALMONO_LR,
crcFlag = XDAS_FALSE,
ancFlag = XDAS_FALSE,
lfeFlag = XDAS_FALSE
Default XDM dynamic params for an Audio Encode algorithm.
size = sizeof(AUDENC1_DynamicParams),
bitRate = 128000,
sampleRate = 48000,
channelMode = IAUDIO_2_0,
lfeFlag = XDAS_FALSE,
dualMonoMode = IAUDIO_DUALMONO_LR,
inputBitsPerSample = 16