/external/aac/libSBRenc/include/ |
D | sbr_encoder.h | 123 INT bitRate; 124 INT nChannels; 125 INT sampleFreq; 126 INT transFac; 127 INT standardBitrate; 174 INT SendHeaderDataTime; /*!< SBR header send update frequency in ms. */ 175 INT useWaveCoding; /*!< Flag: usage of wavecoding tool. */ 176 INT crcSbr; /*!< Flag: usage of SBR-CRC. */ 177 INT dynBwSupported; /*!< Flag: support for dynamic bandwidth in this 179 INT parametricCoding; /*!< Flag: usage of parametric coding tool. */ [all …]
|
/external/aac/libSBRenc/src/ |
D | sbrenc_freq_sca.cpp | 114 static INT getStartFreq(INT fsCore, const INT start_freq); 117 static INT getStopFreq(INT fsCore, const INT stop_freq); 119 static INT numberOfBands(INT b_p_o, INT start, INT stop, FIXP_DBL warp_factor); 120 static void CalcBands(INT *diff, INT start, INT stop, INT num_bands); 121 static INT modifyBands(INT max_band, INT *diff, INT length); 122 static void cumSum(INT start_value, INT *diff, INT length, UCHAR *start_adress); 134 INT FDKsbrEnc_getSbrStartFreqRAW(INT startFreq, INT fsCore) { in FDKsbrEnc_getSbrStartFreqRAW() 135 INT result; in FDKsbrEnc_getSbrStartFreqRAW() 159 INT FDKsbrEnc_getSbrStopFreqRAW(INT stopFreq, INT fsCore) { in FDKsbrEnc_getSbrStopFreqRAW() 160 INT result; in FDKsbrEnc_getSbrStopFreqRAW() [all …]
|
D | bit_sbr.h | 117 INT TotalBits; 118 INT PayloadBits; 119 INT FillBits; 120 INT HeaderActive; 121 INT HeaderActiveDelay; /**< sbr payload and its header is delayed depending on 123 INT NrSendHeaderData; /**< input from commandline */ 124 INT CountSendHeaderData; /**< modulo count. If < 0 then no counting is done 126 INT rightBorderFIX; /**< force VARFIX or FIXFIX frames */ 133 INT sbr_start_frequency; 134 INT sbr_stop_frequency; [all …]
|
D | ton_corr.h | 120 INT sourceStartBand; /*!< first band in lowbands where to take the samples 122 INT sourceStopBand; /*!< first band in lowbands which is not included in the 124 INT guardStartBand; /*!< first band in highbands to be filled with zeros in 126 INT targetStartBand; /*!< first band in highbands to be filled with whitened 128 INT targetBandOffs; /*!< difference between 'startTargetBand' and 130 INT numBandsInPatch; /*!< number of consecutive bands in this one patch */ 134 INT switchInverseFilt; /*!< Flag to enable dynamic adaption of invf. detection 136 INT noQmfChannels; 137 INT bufferLength; /*!< Length of the r and i buffers. */ 138 INT stepSize; /*!< Stride for the lpc estimate. */ [all …]
|
D | fram_gen.h | 214 INT bufferFrameStart; /*!< frame generator vs analysis buffer time alignment 216 INT numberTimeSlots; /*!< number of SBR timeslots per frame */ 220 INT bs_num_env; /*!< bs_num_env, number of envelopes for FIXFIX */ 221 INT bs_abs_bord; /*!< bs_abs_bord, absolute border for VARFIX and FIXVAR */ 222 INT n; /*!< number of relative borders for VARFIX and FIXVAR */ 223 INT p; /*!< pointer-to-transient-border */ 224 INT bs_rel_bord[MAX_NUM_REL]; /*!< bs_rel_bord, relative borders for all VAR 226 INT v_f[MAX_ENVELOPES_FIXVAR_VARFIX]; /*!< envelope frequency resolutions for 229 INT bs_abs_bord_0; /*!< bs_abs_bord_0, leading absolute border for VARVAR */ 230 INT bs_abs_bord_1; /*!< bs_abs_bord_1, trailing absolute border for VARVAR */ [all …]
|
D | ps_bitenc.h | 111 INT enablePSHeader; 112 INT enableIID; 113 INT iidMode; 114 INT enableICC; 115 INT iccMode; 116 INT enableIpdOpd; 118 INT frameClass; 119 INT nEnvelopes; 121 INT frameBorder[PS_MAX_ENVELOPES]; 125 INT iid[PS_MAX_ENVELOPES][PS_MAX_BANDS]; [all …]
|
D | ps_bitenc.cpp | 123 static const INT iidDeltaCoarse_Offset = 14; 124 static const INT iidDeltaCoarse_MaxVal = 28; 125 static const INT iidDeltaFine_Offset = 30; 126 static const INT iidDeltaFine_MaxVal = 60; 188 static const INT iccDelta_Offset = 7; 189 static const INT iccDelta_MaxVal = 14; 206 static const INT ipdDelta_Offset = 0; 207 static const INT ipdDelta_MaxVal = 7; 220 static const INT opdDelta_Offset = 0; 221 static const INT opdDelta_MaxVal = 7; [all …]
|
D | sbrenc_freq_sca.h | 116 INT FDKsbrEnc_UpdateFreqScale(UCHAR *v_k_master, INT *h_num_bands, const INT k0, 117 const INT k2, const INT freq_scale, 118 const INT alter_scale); 120 INT FDKsbrEnc_UpdateHiRes(UCHAR *h_hires, INT *num_hires, UCHAR *v_k_master, 121 INT num_master, INT *xover_band); 123 void FDKsbrEnc_UpdateLoRes(UCHAR *v_lores, INT *num_lores, UCHAR *v_hires, 124 INT num_hires); 126 INT FDKsbrEnc_FindStartAndStopBand(const INT srSbr, const INT srCore, 127 const INT noChannels, const INT startFreq, 128 const INT stop_freq, INT *k0, INT *k2); [all …]
|
D | fram_gen.cpp | 196 static void fillFramePre(INT dmax, INT *v_bord, INT *length_v_bord, INT *v_freq, 197 INT *length_v_freq, INT bmin, INT rest); 199 static void fillFramePost(INT *parts, INT *d, INT dmax, INT *v_bord, 200 INT *length_v_bord, INT *v_freq, INT *length_v_freq, 201 INT bmax, INT bufferFrameStart, INT numberTimeSlots, 202 INT fmax); 204 static void fillFrameInter(INT *nL, const int *v_tuningSegm, INT *v_bord, 205 INT *length_v_bord, INT bmin, INT *v_freq, 206 INT *length_v_freq, INT *v_bordFollow, 207 INT *length_v_bordFollow, INT *v_freqFollow, [all …]
|
D | mh_det.h | 139 INT deltaTime; /*!< maximum allowed transient distance (from frame border in 143 INT maxComp; /*!< maximum alllowed compensation factor for the envelope data. 154 INT qmfNoChannels; 155 INT nSfb; 156 INT sampleFreq; 157 INT previousTransientFlag; 158 INT previousTransientFrame; 159 INT previousTransientPos; 161 INT noVecPerFrame; 162 INT transientPosOffset; [all …]
|
D | ps_encode.h | 129 INT iidEnable; 130 INT iidEnableLast; 131 INT iidQuantMode; 132 INT iidQuantModeLast; 133 INT iidDiffMode[PS_MAX_ENVELOPES]; 134 INT iidIdx[PS_MAX_ENVELOPES][PS_MAX_BANDS]; 135 INT iidIdxLast[PS_MAX_BANDS]; 137 INT iccEnable; 138 INT iccEnableLast; 139 INT iccQuantMode; [all …]
|
D | code_env.h | 116 INT offset; 117 INT upDate; 118 INT nSfb[2]; 120 INT deltaTAcrossFrames; 123 INT dF_edge_incr_fac; 125 INT codeBookScfLavTime; 126 INT codeBookScfLavFreq; 128 INT codeBookScfLavLevelTime; 129 INT codeBookScfLavLevelFreq; 130 INT codeBookScfLavBalanceTime; [all …]
|
/external/aac/libAACenc/src/ |
D | qc_data.h | 129 INT instanceTag; 130 INT nChannelsInEl; 131 INT ChannelIndex[2]; 137 INT nChannels; 138 INT nChannelsEff; 139 INT nElements; 144 INT paddingRest; 151 INT sceCpe; /* not used yet */ 152 INT maxBits; /* maximum number of bits in reservoir */ 153 INT averageBits; /* average number of bits we should use */ [all …]
|
D | aacenc_tns.h | 134 INT filterEnabled[MAX_NUM_OF_FILTERS]; 135 INT threshOn[MAX_NUM_OF_FILTERS]; /* min. prediction gain for using tns 137 INT filterStartFreq[MAX_NUM_OF_FILTERS]; /* lowest freq for lpc TABUL*/ 138 INT tnsLimitOrder[MAX_NUM_OF_FILTERS]; /* Limit for TNS order TABUL*/ 139 INT tnsFilterDirection[MAX_NUM_OF_FILTERS]; /* Filtering direction, 0=up, 141 INT acfSplit[MAX_NUM_OF_FILTERS]; 145 INT seperateFiltersAllowed; 150 INT isLowDelay; 151 INT tnsActive; 152 INT maxOrder; /* max. order of tns filter */ [all …]
|
D | dyn_bits.h | 120 INT codeBook; 121 INT sfbStart; 122 INT sfbCnt; 123 INT sectionBits; /* huff + si ! */ 127 INT blockType; 128 INT noOfGroups; 129 INT sfbCnt; 130 INT maxSfbPerGroup; 131 INT sfbPerGroup; 132 INT noOfSections; [all …]
|
D | aacenc.h | 217 INT sampleRate; /* encoder sample rate */ 218 INT bitRate; /* encoder bit rate in bits/sec */ 219 INT ancDataBitRate; /* additional bits consumed by anc data or sbr have to be 222 INT nSubFrames; /* number of frames in super frame (not ADTS/LATM subframes !) 226 INT averageBits; /* encoder bit rate in bits/superframe */ 228 INT nChannels; /* number of channels to process */ 230 INT bandWidth; /* targeted audio bandwidth in Hz */ 232 INT framelength; /* used frame size */ 237 INT anc_Rate; /* ancillary rate, 0 (disabled), -1 (default) else desired rate 240 INT minBitsPerFrame; /* minimum number of bits in AU */ [all …]
|
D | dyn_bits.cpp | 110 typedef INT (*lookUpTable)[CODE_BOOK_ESC_NDX + 1]; 112 static INT FDKaacEnc_getSideInfoBits(const SECTION_INFO* const huffsection, in FDKaacEnc_getSideInfoBits() 114 const INT useHCR) { in FDKaacEnc_getSideInfoBits() 115 INT sideInfoBits; in FDKaacEnc_getSideInfoBits() 129 const SHORT* const quantSpectrum, const INT maxSfb, in FDKaacEnc_buildBitLookUp() 130 const INT* const sfbOffset, const UINT* const sfbMax, in FDKaacEnc_buildBitLookUp() 131 INT bitLookUp[MAX_SFB_LONG][CODE_BOOK_ESC_NDX + 1], in FDKaacEnc_buildBitLookUp() 133 INT i, sfbWidth; in FDKaacEnc_buildBitLookUp() 147 static inline INT FDKaacEnc_findBestBook(const INT* const bc, INT* const book, in FDKaacEnc_findBestBook() 148 const INT useVCB11) { in FDKaacEnc_findBestBook() [all …]
|
D | aacenc_pns.cpp | 118 PNS_CONFIG *pnsConf, PNS_DATA *pnsData, const INT sfbActive, 119 const INT *sfbOffset, INT tnsOrder, INT tnsPredictionGain, INT tnsActive, 120 FIXP_DBL *mdctSpectrum, INT *sfbMaxScaleSpec, FIXP_SGL *sfbtonality); 122 static void FDKaacEnc_CalcNoiseNrgs(const INT sfbActive, INT *pnsFlag, 123 FIXP_DBL *sfbEnergyLdData, INT *noiseNrg); 138 PNS_CONFIG *pnsConf, INT bitRate, INT sampleRate, INT usePns, INT sfbCnt, in FDKaacEnc_InitPnsConfiguration() 139 const INT *sfbOffset, const INT numChan, const INT isLC) { in FDKaacEnc_InitPnsConfiguration() 174 const INT lastWindowSequence, const INT sfbActive, in FDKaacEnc_PnsDetect() 175 const INT maxSfbPerGroup, FIXP_DBL *sfbThresholdLdData, in FDKaacEnc_PnsDetect() 176 const INT *sfbOffset, FIXP_DBL *mdctSpectrum, in FDKaacEnc_PnsDetect() [all …]
|
D | pns_func.h | 111 PNS_CONFIG *pnsConf, INT bitRate, INT sampleRate, INT usePns, INT sfbCnt, 112 const INT *sfbOffset, const INT numChan, const INT isLC); 115 const INT lastWindowSequence, const INT sfbActive, 116 const INT maxSfbPerGroup, FIXP_DBL *sfbThresholdLdData, 117 const INT *sfbOffset, FIXP_DBL *mdctSpectrum, 118 INT *sfbMaxScaleSpec, FIXP_SGL *sfbtonality, 119 int tnsOrder, INT tnsPredictionGain, INT tnsActive, 120 FIXP_DBL *sfbEnergyLdData, INT *noiseNrg); 122 void FDKaacEnc_CodePnsChannel(const INT sfbActive, PNS_CONFIG *pnsConf, 123 INT *pnsFlag, FIXP_DBL *sfbEnergy, INT *noiseNrg, [all …]
|
/external/aac/libSACenc/src/ |
D | sacenc_vectorfunctions.h | 146 FIXP_DBL sumUpCplxPow2(const FIXP_DPK *const x, const INT scaleMode, 147 const INT inScaleFactor, INT *const outScaleFactor, 148 const INT n); 184 FIXP_DBL sumUpCplxPow2Dim2(const FIXP_DPK *const *const x, const INT scaleMode, 185 const INT inScaleFactor, INT *const outScaleFactor, 186 const INT sDim1, const INT nDim1, const INT sDim2, 187 const INT nDim2); 209 void copyCplxVec(FIXP_DPK *const Z, const FIXP_DPK *const X, const INT n); 230 void setCplxVec(FIXP_DPK *const Z, const FIXP_DBL a, const INT n); 276 const FIXP_DPK *const *const Y, const INT scaleX, [all …]
|
/external/aac/libFDK/src/ |
D | scale.cpp | 131 INT len, /*!< Length */ in scaleValues() 132 INT scalefactor /*!< Scalefactor */ in scaleValues() 134 INT i; in scaleValues() 140 scalefactor = fixmin_I(scalefactor, (INT)(FRACT_BITS - 1)); in scaleValues() 151 INT negScalefactor = fixmin_I(-scalefactor, (INT)FRACT_BITS - 1); in scaleValues() 176 INT len, /*!< Length */ in scaleValues() 177 INT scalefactor /*!< Scalefactor */ in scaleValues() 179 INT i; in scaleValues() 185 scalefactor = fixmin_I(scalefactor, (INT)DFRACT_BITS - 1); in scaleValues() 196 INT negScalefactor = fixmin_I(-scalefactor, (INT)DFRACT_BITS - 1); in scaleValues() [all …]
|
D | fixpoint_math.cpp | 117 void LdDataVector(FIXP_DBL *srcVector, FIXP_DBL *destVector, INT n) { in LdDataVector() 118 INT i; in LdDataVector() 378 FIXP_DBL CalcLdInt(INT i) { in CalcLdInt() 402 FIXP_DBL schur_div(FIXP_DBL num, FIXP_DBL denum, INT count) { in schur_div() 403 INT L_num = (LONG)num >> 1; in schur_div() 404 INT L_denum = (LONG)denum >> 1; in schur_div() 405 INT div = 0; in schur_div() 406 INT k = count; in schur_div() 427 FIXP_DBL fMultNorm(FIXP_DBL f1, FIXP_DBL f2, INT *result_e) { in fMultNorm() 428 INT product = 0; in fMultNorm() [all …]
|
/external/aac/libFDK/include/ |
D | fixpoint_math.h | 173 FDK_INLINE INT fIsLessThan(FIXP_DBL a_m, INT a_e, FIXP_DBL b_m, INT b_e) { in fIsLessThan() 181 FDK_INLINE INT fIsLessThan(FIXP_SGL a_m, INT a_e, FIXP_SGL b_m, INT b_e) { in fIsLessThan() 195 void LdDataVector(FIXP_DBL *srcVector, FIXP_DBL *destVector, INT number); 232 FIXP_DBL CalcLdInt(INT i); 237 UINT y = (INT)x; in sqrtFixp_lookup() 239 INT zeros = fixnormz_D(y) & 0x1e; in sqrtFixp_lookup() 249 inline FIXP_DBL sqrtFixp_lookup(FIXP_DBL x, INT *x_e) { in sqrtFixp_lookup() 250 UINT y = (INT)x; in sqrtFixp_lookup() 251 INT e; in sqrtFixp_lookup() 294 static FDK_FORCEINLINE FIXP_DBL invSqrtNorm2(FIXP_DBL op, INT *shift) { in invSqrtNorm2() [all …]
|
D | scale.h | 120 void scaleValues(FIXP_SGL *vector, INT len, INT scalefactor); 121 void scaleValues(FIXP_DBL *vector, INT len, INT scalefactor); 122 void scaleValues(FIXP_DBL *dst, const FIXP_DBL *src, INT len, INT scalefactor); 124 void scaleValues(FIXP_PCM *dst, const FIXP_DBL *src, INT len, INT scalefactor); 126 void scaleValues(FIXP_PCM *dst, const FIXP_SGL *src, INT len, INT scalefactor); 128 const FIXP_DBL *i_src, INT len, INT scalefactor); 129 void scaleValuesWithFactor(FIXP_DBL *vector, FIXP_DBL factor, INT len, 130 INT scalefactor); 131 void scaleValuesSaturate(FIXP_DBL *vector, INT len, INT scalefactor); 132 void scaleValuesSaturate(FIXP_DBL *dst, FIXP_DBL *src, INT len, [all …]
|
/external/aac/libAACdec/src/ |
D | usacdec_acelp.h | 118 INT A_exp; 154 INT CLpd_AcelpRead(HANDLE_FDK_BITSTREAM hBs, CAcelpChannelData *acelpData, 155 INT acelp_core_mode, INT i_offset, INT coreCoderFrameLength); 171 void Acelp_PreProcessing(FIXP_DBL *synth_buf, FIXP_DBL *old_synth, INT *pitch, 172 INT *old_T_pf, FIXP_DBL *pit_gain, 173 FIXP_DBL *old_gain_pf, INT samplingRate, INT *i_offset, 174 INT coreCoderFrameLength, INT synSfd, 175 INT nbSubfrSuperfr); 189 void Acelp_PostProcessing(FIXP_DBL *synth_buf, FIXP_DBL *old_synth, INT *pitch, 190 INT *old_T_pf, INT coreCoderFrameLength, INT synSfd, [all …]
|