/* ------------------------------------------------------------------ * Copyright (C) 1998-2009 PacketVideo * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. * See the License for the specific language governing permissions * and limitations under the License. * ------------------------------------------------------------------- */ /* Pathname: s_tDec_Int_File.h ------------------------------------------------------------------------------ REVISION HISTORY Description: Remove unneeded structure elements, clean up. Description: Remove block.h, not needed, chains in other not needed files. Description: Added declaration of scratch memory, scratchTnsDecCoefMem, which will be utilized by tns_decode_coef(). Description: (1) Modified to include the lines... #ifdef __cplusplus extern "C" { #endif #ifdef __cplusplus } #endif (2) Updated the copyright header. Description: Per review comments... (1) Removed declaration of unused variable, savedMCInfo (2) Commented out ADTS related variables. (3) Slight re-wording of comment for clarity. Description: (1) Moved scratch_prog_config into the scratch union. Description: (1) Added ltp state variable. Description: Make tDec_Int_perChan an array of structures. In the user applications, the malloc command will allocate a continuous chunk of memory. Description: (1) Added the array data_stream_bytes[] to structure tDec_Int_File. This to support Data Streaming Elements (DSE). (2) Updated the copyright header. Who: Date: Description: ------------------------------------------------------------------------------ INCLUDE DESCRIPTION This include file defines the structure, tDec_Int_Chan ------------------------------------------------------------------------------ */ /*---------------------------------------------------------------------------- ; CONTINUE ONLY IF NOT ALREADY DEFINED ----------------------------------------------------------------------------*/ #ifndef S_TDEC_INT_FILE_H #define S_TDEC_INT_FILE_H #ifdef __cplusplus extern "C" { #endif /*---------------------------------------------------------------------------- ; INCLUDES ----------------------------------------------------------------------------*/ #include "pv_audio_type_defs.h" #include "s_progconfig.h" #include "s_frameinfo.h" #include "s_mc_info.h" #include "s_adif_header.h" #include "s_tdec_int_chan.h" #include "s_pulseinfo.h" #include "s_bits.h" #include "s_hcb.h" #include "e_infoinitconst.h" #include "s_sbr_channel.h" #include "s_sbr_dec.h" #include "s_sbrbitstream.h" /*---------------------------------------------------------------------------- ; MACROS ; Define module specific macros here ----------------------------------------------------------------------------*/ /*---------------------------------------------------------------------------- ; DEFINES ; Include all pre-processor statements here. ----------------------------------------------------------------------------*/ /*---------------------------------------------------------------------------- ; EXTERNAL VARIABLES REFERENCES ; Declare variables used in this module but defined elsewhere ----------------------------------------------------------------------------*/ /*---------------------------------------------------------------------------- ; SIMPLE TYPEDEF'S ----------------------------------------------------------------------------*/ /*---------------------------------------------------------------------------- ; ENUMERATED TYPEDEF'S ----------------------------------------------------------------------------*/ /*---------------------------------------------------------------------------- ; STRUCTURES TYPEDEF'S ----------------------------------------------------------------------------*/ /* * Note: most of the names of the variables put into this structure were kept * the same because the name is also used in called functions. * * bno - block number * */ typedef struct { UInt32 bno; Int status; /* save the status */ bool aacPlusEnabled; bool aacConfigUtilityEnabled; Int current_program; Int frameLength; Int adif_test; BITS inputStream; ProgConfig prog_config; Int SFBWidth128[(1<