Index: codecs/ittiam/codecs/aaclc_enc/ieaacplusenc.h =================================================================== --- /dev/null 1970-01-01 00:00:00.000000000 +0000 +++ codecs/ittiam/codecs/aaclc_enc/ieaacplusenc.h 2010-02-04 15:20:27.414806158 -0600 @@ -0,0 +1,136 @@ +/* +//============================================================================ +// +// FILE NAME : IEAACPLUSENC.h +// +// ALGORITHM : EAACPLUSENC +// +// VENDOR : ITTIAM +// +// TARGET DSP: C64x+ +// +// PURPOSE : IEAACPLUSENC Interface Header +// +// Component Wizard for eXpressDSP Version 1.33.00 Auto-Generated Component +// +// Number of Inputs : 1 +// Number of Outputs: 1 +// +// Creation Date: Tue - 04 July 2006 +// Creation Time: 02:46 PM +// +//============================================================================ +*/ + +#ifndef IEAACPLUSENC_ +#define IEAACPLUSENC_ + +/* + * ======== ITTIAM_EAACPLUSENC_Obj ======== + */ +typedef struct ITTIAM_EAACPLUSENC_Obj { + struct ITTIAM_EAACPLUSENC_Fxns *fxns; +} ITTIAM_EAACPLUSENC_Obj; + +/* + * ======== ITTIAM_EAACPLUSENC_Handle ======== + */ +typedef struct ITTIAM_EAACPLUSENC_Obj *ITTIAM_EAACPLUSENC_Handle; + +/* + * ======== EAACPLUSENCODER_ITTIAM_PARAMS ======== + */ +typedef struct ITTIAM_EAACPLUSENC_Params +{ + IAUDENC1_Params s_iaudenc_params; + /* Extended params */ + XDAS_Int32 noChannels; /* Total number of channels to be processed. Valid values are 1 or 2 */ + XDAS_Int32 aacClassic; /* Usage of AAC Only mode. This has to be set to 1 for AAC only + encoding mode. Not applicable for AAC-LC build */ + XDAS_Int32 psEnable; /* Flag to enable ps encoding.Not applicable to AAC LC and HEAAC + builds. Valid values are 0 or */ + XDAS_Int32 dualMono; /* Flag to enable Dual mono encoding. Applicable only to + multichannel build. */ + XDAS_Int32 downmix; /* Option to enable downmix. Valid values are 0 or 1. */ + XDAS_Int32 useSpeechConfig; /* Use speech configuration flag. If this is set to 1 speech + configuration is enabled, if 0 it is disabled. Not applicable for + AAC-LC build. */ + XDAS_Int32 fNoStereoPreprocessing; /* Stereo Preprocessing flag. 1 to disable Stereo Preprocessing. + Not applicable for mono files. Only applicable when sampleRate + <24000 Hz and bitRate < 60000 */ + XDAS_Int32 invQuant; /* Inverse Quantization Level. Can be 0,1,2. 2 gives higest quality. + 0 for lowest complexity. Not applicable for AAC-LC library. */ + XDAS_Int32 useTns; /* Flag for TNS enable. 1 for enabling TNS. 0 for disabling TNS. */ + XDAS_Int32 use_ADTS; /* Flag to enable ADTS header inclusion. Valid values are 0 and 1. */ + XDAS_Int32 use_ADIF; /* Flag to enable ADIF header inclusion. Valid values are 0 and 1. */ + XDAS_Int32 full_bandwidth; /* Flag for enabling full bandwidth If set to 1 bandwidth is set to + half of sampling frequency (Full Bandwidth). 0 for adjusting + bandwidth according to bit rate. */ + XDAS_Int32 i_channels_mask; /* Channel mask value which gives the bitstream elements present in + the input data.Not valid for stereo build */ + XDAS_Int32 i_num_coupling_chan; /* Number of coupling channels present in the input files. Not valid + for stereo build. */ + XDAS_Int32 write_program_config_element; /* Flag to enable PCE writing. Valid values are 0 and 1. */ + +} ITTIAM_EAACPLUSENC_Params; + +/* + * ======== ITTIAM_EAACPLUSENC_DynamicParams ======== + */ +typedef struct ITTIAM_EAACPLUSENC_DynamicParams { + IAUDENC1_DynamicParams s_iaudenc_dynamic_params; +} ITTIAM_EAACPLUSENC_DynamicParams; + +/* + * ======== ITTIAM_EAACPLUSENC_Status ======== + */ +typedef struct ITTIAM_EAACPLUSENC_Status { + IAUDENC1_Status s_iaudenc_status; +} ITTIAM_EAACPLUSENC_Status; + +/* + * ======== ITTIAM_EAACPLUSENC_Fxns ======== + */ +typedef struct ITTIAM_EAACPLUSENC_Fxns { + IAUDENC1_Fxns s_iaudenc_fxns; +} ITTIAM_EAACPLUSENC_Fxns; + +/* + * ======== ITTIAM_EAACPLUSENC_InArgs ======== + */ +typedef struct ITTIAM_EAACPLUSENC_InArgs { + IAUDENC1_InArgs s_iaudenc_in_args; +} ITTIAM_EAACPLUSENC_InArgs; + +/* + * ======== ITTIAM_EAACPLUSENC_OutArgs ======== + */ +typedef struct ITTIAM_EAACPLUSENC_OutArgs { + IAUDENC1_OutArgs s_iaudenc_out_args; + XDAS_Int32 i_exec_done; /* Flag to indicate end of execution. */ + XDAS_Int32 i_ittiam_err_code; /* Codec specific error code. */ +} ITTIAM_EAACPLUSENC_OutArgs; + +/* Typecasting some old strcutures into new ones */ +/* For XDAIS support */ +typedef ITTIAM_EAACPLUSENC_Params IEAACPLUSENC_Params; +typedef ITTIAM_EAACPLUSENC_Status IEAACPLUSENC_Status; +typedef ITTIAM_EAACPLUSENC_Handle IEAACPLUSENC_Handle; +typedef ITTIAM_EAACPLUSENC_Fxns IEAACPLUSENC_Fxns; + +/* + * ======== EAACPLUSENCODER_ITTIAM_PARAMS ======== + * Default parameter values for EAACPLUSENC instance objects + */ + +extern ITTIAM_EAACPLUSENC_Params EAACPLUSENCODER_ITTIAM_PARAMS; +extern ITTIAM_EAACPLUSENC_DynamicParams EAACPLUSENCODER_ITTIAM_DYNAMIC_PARAMS; +extern ITTIAM_EAACPLUSENC_OutArgs ITTIAM_EAACPLUSENC_OUTARGS; +extern IAUDENC1_Params BASE_AUDENC1_PARAMS; + +#ifdef __cplusplus +} +#endif + +#endif /* IEAACPLUSENC_ */ + Index: codecs/ittiam/codecs/mp3_enc/imp3enc.h =================================================================== --- /dev/null 1970-01-01 00:00:00.000000000 +0000 +++ codecs/ittiam/codecs/mp3_enc/imp3enc.h 2010-02-04 14:38:10.597421637 -0600 @@ -0,0 +1,105 @@ +/* +//============================================================================ +// +// FILE NAME : IMP3ENC.h +// +// ALGORITHM : MP3ENC +// +// VENDOR : ITTIAM +// +// TARGET DSP: C64x+ +// +// PURPOSE : IMP3ENC Interface Header +// +// Component Wizard for eXpressDSP Version 1.33.00 Auto-Generated Component +// +// Number of Inputs : 1 +// Number of Outputs: 1 +// +// Creation Date: Tue - 04 July 2006 +// Creation Time: 02:46 PM +// +//============================================================================ +*/ + +#ifndef IMP3ENC_ +#define IMP3ENC_ + +/* + * ======== ITTIAM_MP3ENC_Obj ======== + */ +typedef struct ITTIAM_MP3ENC_Obj { + struct ITTIAM_MP3ENC_Fxns *fxns; +} ITTIAM_MP3ENC_Obj; + +/* + * ======== ITTIAM_MP3ENC_Handle ======== + */ +typedef struct ITTIAM_MP3ENC_Obj *ITTIAM_MP3ENC_Handle; + +/* + * ======== ITTIAM_MP3ENC_Params ======== + */ +typedef struct ITTIAM_MP3ENC_Params { + IAUDENC1_Params s_iaudenc_params; + XDAS_Int32 packet; +} ITTIAM_MP3ENC_Params; + +/* + * ======== ITTIAM_MP3ENC_DynamicParams ======== + */ +typedef struct ITTIAM_MP3ENC_DynamicParams { + IAUDENC1_DynamicParams s_iaudenc_dynamic_params; +} ITTIAM_MP3ENC_DynamicParams; + +/* + * ======== ITTIAM_MP3ENC_Status ======== + */ +typedef struct ITTIAM_MP3ENC_Status { + IAUDENC1_Status s_iaudenc_status; +} ITTIAM_MP3ENC_Status; + +/* + * ======== ITTIAM_MP3ENC_Fxns ======== + */ +typedef struct ITTIAM_MP3ENC_Fxns { + IAUDENC1_Fxns s_iaudenc_fxns; +} ITTIAM_MP3ENC_Fxns; + +/* + * ======== ITTIAM_MP3ENC_InArgs ======== + */ +typedef struct ITTIAM_MP3ENC_InArgs { + IAUDENC1_InArgs s_iaudenc_in_args; +} ITTIAM_MP3ENC_InArgs; + +/* + * ======== ITTIAM_MP3ENC_OutArgs ======== + */ +typedef struct ITTIAM_MP3ENC_OutArgs { + IAUDENC1_OutArgs s_iaudenc_out_args; + XDAS_Int32 i_exec_done; + XDAS_Int32 i_ittiam_err_code; +} ITTIAM_MP3ENC_OutArgs; + +/* Typecasting some old strcutures into new ones */ +/* For XDAIS support */ +typedef ITTIAM_MP3ENC_Params IMP3ENC_Params; +typedef ITTIAM_MP3ENC_Status IMP3ENC_Status; +typedef ITTIAM_MP3ENC_Handle IMP3ENC_Handle; +typedef ITTIAM_MP3ENC_Fxns IMP3ENC_Fxns; + +/* + * ======== ITTIAM_MP3ENC_PARAMS ======== + * Default parameter values for MP3ENC instance objects + */ + +extern ITTIAM_MP3ENC_Params MP3ENCODER_ITTIAM_PARAMS; +extern ITTIAM_MP3ENC_DynamicParams MP3ENCODER_ITTIAM_DYNAMIC_PARAMS; +extern IAUDENC1_Params BASE_AUDENC1_PARAMS; + +#ifdef __cplusplus +} +#endif + +#endif /* IMP3ENC_ */