Loading lib_com/options.h +1 −0 Original line number Diff line number Diff line Loading @@ -116,6 +116,7 @@ #define NONBE_FIX_BASOP_2233_RTPDUMP_DIFFERING_BITSTREAMS /* Nokia: fix basop issue 2233: Fix differing rtpdump streams */ #define NONBE_FIX_2237_ZERO_CURR_NOISE_PROBLEM /* FhG: Modify sum of hTonalMDCTConc->curr_noise_nrg to avoid inaccurate zero */ #define FIX_1872_REMOVE_UNUSED_PSNOISEGEN_ISAR /* Dolby: Remove unused psNoiseGen from ISAR */ /* ################### End FIXES switches ########################### */ Loading lib_isar/isar_NoiseGen.cdeleted 100644 → 0 +0 −55 Original line number Diff line number Diff line /****************************************************************************************************** (C) 2022-2025 IVAS codec Public Collaboration with portions copyright Dolby International AB, Ericsson AB, Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e.V., Huawei Technologies Co. LTD., Koninklijke Philips N.V., Nippon Telegraph and Telephone Corporation, Nokia Technologies Oy, Orange, Panasonic Holdings Corporation, Qualcomm Technologies, Inc., VoiceAge Corporation, and other contributors to this repository. All Rights Reserved. This software is protected by copyright law and by international treaties. The IVAS codec Public Collaboration consisting of Dolby International AB, Ericsson AB, Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e.V., Huawei Technologies Co. LTD., Koninklijke Philips N.V., Nippon Telegraph and Telephone Corporation, Nokia Technologies Oy, Orange, Panasonic Holdings Corporation, Qualcomm Technologies, Inc., VoiceAge Corporation, and other contributors to this repository retain full ownership rights in their respective contributions in the software. This notice grants no license of any kind, including but not limited to patent license, nor is any license granted by implication, estoppel or otherwise. Contributors are required to enter into the IVAS codec Public Collaboration agreement before making contributions. This software is provided "AS IS", without any express or implied warranties. The software is in the development stage. It is intended exclusively for experts who have experience with such software and solely for the purpose of inspection. All implied warranties of non-infringement, merchantability and fitness for a particular purpose are hereby disclaimed and excluded. Any dispute, controversy or claim arising under or in relation to providing this software shall be submitted to and settled by the final, binding jurisdiction of the courts of Munich, Germany in accordance with the laws of the Federal Republic of Germany excluding its conflict of law rules and the United Nations Convention on Contracts on the International Sales of Goods. *******************************************************************************************************/ #include <stdint.h> #include "options.h" #include <math.h> #include "prot_fx.h" #include "isar_lcld_prot.h" #include "wmc_auto.h" /*------------------------------------------------------------------------------------------* * Function DeleteNoiseGen() * * *------------------------------------------------------------------------------------------*/ void DeleteNoiseGen( NoiseGen *psNoiseGen ) { free( psNoiseGen->pfNoiseBuffer ); free( psNoiseGen ); return; } extern Word32 GetNoise_fx( NoiseGen *psNoiseGen ); lib_isar/isar_lcld_decoder.c +22 −6 Original line number Diff line number Diff line Loading @@ -106,8 +106,9 @@ struct LCLD_DECODER PredictionDecoder *psPredictionDecoder; #ifndef FIX_1872_REMOVE_UNUSED_PSNOISEGEN_ISAR NoiseGen *psNoiseGen; #endif }; static void CreateDecodeTable( LCLDDecoder *psLCLDDecoder, Word32 num, const UWord16 ( *ppuiEncTable )[2], Word32 iSize, Word32 iReadLength, UWord32 *iTables ); Loading Loading @@ -604,7 +605,9 @@ ivas_error CreateLCLDDecoder( { return error; } #ifndef FIX_1872_REMOVE_UNUSED_PSNOISEGEN_ISAR psLCLDDecoder->psNoiseGen = NULL; /* CreateNoiseGen(); No noise fill for now*/ #endif *psLCLDDecoder_out = psLCLDDecoder; return IVAS_ERR_OK; Loading Loading @@ -766,10 +769,12 @@ void DeleteLCLDDecoder( psLCLDDecoder->psPredictionDecoder = NULL; } #ifndef FIX_1872_REMOVE_UNUSED_PSNOISEGEN_ISAR IF( psLCLDDecoder->psNoiseGen != NULL ) { DeleteNoiseGen( psLCLDDecoder->psNoiseGen ); } #endif free( psLCLDDecoder ); } Loading @@ -788,7 +793,11 @@ static void ApplyRMSEnvelope_fx( const Word32 iNumBands, const Word32 *piBandwid static void ReplaceSign_fx( const Word32 iNumBlocks, const Word32 iNumLCLDBands, Word32 **ppiSignReal, Word32 **ppiSignImag, Word32 **ppfReal, Word32 **ppfImag, const Word32 *piBandwidths ); static void InvQuantizeSpectrum_fx( const Word32 iNumGroups, const Word32 *piGroupLengths, const Word32 iNumBands, const Word32 *piBandwidths, Word32 **ppiAlloc, Word32 **ppiQReal, Word32 **ppiQImag, Word32 **ppfReal, Word32 **ppfImag, NoiseGen *psNoiseGen ); static void InvQuantizeSpectrum_fx( const Word32 iNumGroups, const Word32 *piGroupLengths, const Word32 iNumBands, const Word32 *piBandwidths, Word32 **ppiAlloc, Word32 **ppiQReal, Word32 **ppiQImag, Word32 **ppfReal, Word32 **ppfImag #ifndef FIX_1872_REMOVE_UNUSED_PSNOISEGEN_ISAR , NoiseGen *psNoiseGen #endif ); static void InvMSCoding_fx( const Word32 iNumBlocks, const Word32 iNumBands, const Word32 *piBandwidths, const Word32 iMSMode, const Word32 *piMSFlags, const Word32 *piLRPhaseDiffs, const Word32 *piMSPredCoefs, Word32 ***pppfReal, Word32 ***pppfImag ); Loading Loading @@ -1010,8 +1019,11 @@ Word32 DecodeLCLDFrame( psLCLDDecoder->pppiAlloc[n], psLCLDDecoder->pppiQLCLDReal[n], psLCLDDecoder->pppiQLCLDImag[n], pppfLCLDReal_fx[n], pppfLCLDImag_fx[n], psLCLDDecoder->psNoiseGen ); pppfLCLDReal_fx[n], pppfLCLDImag_fx[n] #ifndef FIX_1872_REMOVE_UNUSED_PSNOISEGEN_ISAR ,psLCLDDecoder->psNoiseGen #endif ); ReplaceSign_fx( psLCLDDecoder->iNumBlocks, psLCLDDecoder->iNumBands, psLCLDDecoder->pppiLCLDSignReal[n], Loading Loading @@ -1281,8 +1293,10 @@ static void InvQuantizeSpectrum_fx( Word32 **ppiQReal, Word32 **ppiQImag, Word32 **ppfReal, Word32 **ppfImag, NoiseGen *psNoiseGen /* Pass in NULL to switch off noise gen */ Word32 **ppfImag #ifndef FIX_1872_REMOVE_UNUSED_PSNOISEGEN_ISAR ,NoiseGen *psNoiseGen /* Pass in NULL to switch off noise gen */ #endif ) { Word32 b, k, n; Loading Loading @@ -1322,6 +1336,7 @@ static void InvQuantizeSpectrum_fx( iFBOffset++; } } #ifndef FIX_1872_REMOVE_UNUSED_PSNOISEGEN_ISAR ELSE IF( psNoiseGen != NULL ) { FOR( m = 0; m < piBandwidths[b]; m++ ) Loading @@ -1333,6 +1348,7 @@ static void InvQuantizeSpectrum_fx( iFBOffset++; } } #endif ELSE { iFBOffset = L_add( iFBOffset, piBandwidths[b] ); Loading lib_isar/isar_lcld_prot.h +4 −2 Original line number Diff line number Diff line Loading @@ -170,6 +170,8 @@ Word32 CountMSBits( ); #ifndef FIX_1872_REMOVE_UNUSED_PSNOISEGEN_ISAR /*----------------------------------------------------------------------------------* * NoiseGen prototypes *----------------------------------------------------------------------------------*/ Loading @@ -196,7 +198,7 @@ inline Word32 GetNoise_fx( NoiseGen *psNoiseGen ) return fNoiseSample; } #endif /*----------------------------------------------------------------------------------* * PereptualModel prototypes Loading Loading
lib_com/options.h +1 −0 Original line number Diff line number Diff line Loading @@ -116,6 +116,7 @@ #define NONBE_FIX_BASOP_2233_RTPDUMP_DIFFERING_BITSTREAMS /* Nokia: fix basop issue 2233: Fix differing rtpdump streams */ #define NONBE_FIX_2237_ZERO_CURR_NOISE_PROBLEM /* FhG: Modify sum of hTonalMDCTConc->curr_noise_nrg to avoid inaccurate zero */ #define FIX_1872_REMOVE_UNUSED_PSNOISEGEN_ISAR /* Dolby: Remove unused psNoiseGen from ISAR */ /* ################### End FIXES switches ########################### */ Loading
lib_isar/isar_NoiseGen.cdeleted 100644 → 0 +0 −55 Original line number Diff line number Diff line /****************************************************************************************************** (C) 2022-2025 IVAS codec Public Collaboration with portions copyright Dolby International AB, Ericsson AB, Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e.V., Huawei Technologies Co. LTD., Koninklijke Philips N.V., Nippon Telegraph and Telephone Corporation, Nokia Technologies Oy, Orange, Panasonic Holdings Corporation, Qualcomm Technologies, Inc., VoiceAge Corporation, and other contributors to this repository. All Rights Reserved. This software is protected by copyright law and by international treaties. The IVAS codec Public Collaboration consisting of Dolby International AB, Ericsson AB, Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e.V., Huawei Technologies Co. LTD., Koninklijke Philips N.V., Nippon Telegraph and Telephone Corporation, Nokia Technologies Oy, Orange, Panasonic Holdings Corporation, Qualcomm Technologies, Inc., VoiceAge Corporation, and other contributors to this repository retain full ownership rights in their respective contributions in the software. This notice grants no license of any kind, including but not limited to patent license, nor is any license granted by implication, estoppel or otherwise. Contributors are required to enter into the IVAS codec Public Collaboration agreement before making contributions. This software is provided "AS IS", without any express or implied warranties. The software is in the development stage. It is intended exclusively for experts who have experience with such software and solely for the purpose of inspection. All implied warranties of non-infringement, merchantability and fitness for a particular purpose are hereby disclaimed and excluded. Any dispute, controversy or claim arising under or in relation to providing this software shall be submitted to and settled by the final, binding jurisdiction of the courts of Munich, Germany in accordance with the laws of the Federal Republic of Germany excluding its conflict of law rules and the United Nations Convention on Contracts on the International Sales of Goods. *******************************************************************************************************/ #include <stdint.h> #include "options.h" #include <math.h> #include "prot_fx.h" #include "isar_lcld_prot.h" #include "wmc_auto.h" /*------------------------------------------------------------------------------------------* * Function DeleteNoiseGen() * * *------------------------------------------------------------------------------------------*/ void DeleteNoiseGen( NoiseGen *psNoiseGen ) { free( psNoiseGen->pfNoiseBuffer ); free( psNoiseGen ); return; } extern Word32 GetNoise_fx( NoiseGen *psNoiseGen );
lib_isar/isar_lcld_decoder.c +22 −6 Original line number Diff line number Diff line Loading @@ -106,8 +106,9 @@ struct LCLD_DECODER PredictionDecoder *psPredictionDecoder; #ifndef FIX_1872_REMOVE_UNUSED_PSNOISEGEN_ISAR NoiseGen *psNoiseGen; #endif }; static void CreateDecodeTable( LCLDDecoder *psLCLDDecoder, Word32 num, const UWord16 ( *ppuiEncTable )[2], Word32 iSize, Word32 iReadLength, UWord32 *iTables ); Loading Loading @@ -604,7 +605,9 @@ ivas_error CreateLCLDDecoder( { return error; } #ifndef FIX_1872_REMOVE_UNUSED_PSNOISEGEN_ISAR psLCLDDecoder->psNoiseGen = NULL; /* CreateNoiseGen(); No noise fill for now*/ #endif *psLCLDDecoder_out = psLCLDDecoder; return IVAS_ERR_OK; Loading Loading @@ -766,10 +769,12 @@ void DeleteLCLDDecoder( psLCLDDecoder->psPredictionDecoder = NULL; } #ifndef FIX_1872_REMOVE_UNUSED_PSNOISEGEN_ISAR IF( psLCLDDecoder->psNoiseGen != NULL ) { DeleteNoiseGen( psLCLDDecoder->psNoiseGen ); } #endif free( psLCLDDecoder ); } Loading @@ -788,7 +793,11 @@ static void ApplyRMSEnvelope_fx( const Word32 iNumBands, const Word32 *piBandwid static void ReplaceSign_fx( const Word32 iNumBlocks, const Word32 iNumLCLDBands, Word32 **ppiSignReal, Word32 **ppiSignImag, Word32 **ppfReal, Word32 **ppfImag, const Word32 *piBandwidths ); static void InvQuantizeSpectrum_fx( const Word32 iNumGroups, const Word32 *piGroupLengths, const Word32 iNumBands, const Word32 *piBandwidths, Word32 **ppiAlloc, Word32 **ppiQReal, Word32 **ppiQImag, Word32 **ppfReal, Word32 **ppfImag, NoiseGen *psNoiseGen ); static void InvQuantizeSpectrum_fx( const Word32 iNumGroups, const Word32 *piGroupLengths, const Word32 iNumBands, const Word32 *piBandwidths, Word32 **ppiAlloc, Word32 **ppiQReal, Word32 **ppiQImag, Word32 **ppfReal, Word32 **ppfImag #ifndef FIX_1872_REMOVE_UNUSED_PSNOISEGEN_ISAR , NoiseGen *psNoiseGen #endif ); static void InvMSCoding_fx( const Word32 iNumBlocks, const Word32 iNumBands, const Word32 *piBandwidths, const Word32 iMSMode, const Word32 *piMSFlags, const Word32 *piLRPhaseDiffs, const Word32 *piMSPredCoefs, Word32 ***pppfReal, Word32 ***pppfImag ); Loading Loading @@ -1010,8 +1019,11 @@ Word32 DecodeLCLDFrame( psLCLDDecoder->pppiAlloc[n], psLCLDDecoder->pppiQLCLDReal[n], psLCLDDecoder->pppiQLCLDImag[n], pppfLCLDReal_fx[n], pppfLCLDImag_fx[n], psLCLDDecoder->psNoiseGen ); pppfLCLDReal_fx[n], pppfLCLDImag_fx[n] #ifndef FIX_1872_REMOVE_UNUSED_PSNOISEGEN_ISAR ,psLCLDDecoder->psNoiseGen #endif ); ReplaceSign_fx( psLCLDDecoder->iNumBlocks, psLCLDDecoder->iNumBands, psLCLDDecoder->pppiLCLDSignReal[n], Loading Loading @@ -1281,8 +1293,10 @@ static void InvQuantizeSpectrum_fx( Word32 **ppiQReal, Word32 **ppiQImag, Word32 **ppfReal, Word32 **ppfImag, NoiseGen *psNoiseGen /* Pass in NULL to switch off noise gen */ Word32 **ppfImag #ifndef FIX_1872_REMOVE_UNUSED_PSNOISEGEN_ISAR ,NoiseGen *psNoiseGen /* Pass in NULL to switch off noise gen */ #endif ) { Word32 b, k, n; Loading Loading @@ -1322,6 +1336,7 @@ static void InvQuantizeSpectrum_fx( iFBOffset++; } } #ifndef FIX_1872_REMOVE_UNUSED_PSNOISEGEN_ISAR ELSE IF( psNoiseGen != NULL ) { FOR( m = 0; m < piBandwidths[b]; m++ ) Loading @@ -1333,6 +1348,7 @@ static void InvQuantizeSpectrum_fx( iFBOffset++; } } #endif ELSE { iFBOffset = L_add( iFBOffset, piBandwidths[b] ); Loading
lib_isar/isar_lcld_prot.h +4 −2 Original line number Diff line number Diff line Loading @@ -170,6 +170,8 @@ Word32 CountMSBits( ); #ifndef FIX_1872_REMOVE_UNUSED_PSNOISEGEN_ISAR /*----------------------------------------------------------------------------------* * NoiseGen prototypes *----------------------------------------------------------------------------------*/ Loading @@ -196,7 +198,7 @@ inline Word32 GetNoise_fx( NoiseGen *psNoiseGen ) return fNoiseSample; } #endif /*----------------------------------------------------------------------------------* * PereptualModel prototypes Loading