Loading lib_enc/transient_detection_fx.c +4 −1 Original line number Diff line number Diff line Loading @@ -66,6 +66,7 @@ static void UpdateSubblockEnergies_ivas_fx( Word16 const *input, const Word16 nS /* Functions that define transient detectors */ /* */ /************************************************/ /** TCX decision. * Check IF there is an attack in a subblock. Version FOR TCX Long/Short decision. * See TCheckSubblocksForAttack_fx FOR definition of parameters. Loading Loading @@ -206,7 +207,7 @@ static void GetAttackForTCXDecision_fx( move16(); bIsAttackPresent = TRUE; #ifdef HARMONIZE_2508_InitTransientDetection if ( GT_32( element_mode, EVS_MONO ) ) if ( GT_16( element_mode, EVS_MONO ) ) { attackIndex = 0; move16(); Loading Loading @@ -348,6 +349,7 @@ static void InitTCXTransientDetector( TransientDetector *pTransientDetector ) { InitTransientDetector_fx( pSubblockEnergies, nDelay, NSUBBLOCKS, GetAttackForTCXDecision, 17408 /*8.5f/(1<<ATTACKTHRESHOLD_E) Q15*/, pTransientDetector ); return; } #endif Loading Loading @@ -399,6 +401,7 @@ void InitTransientDetection_ivas_fx( /* Init the delay buffer. */ InitDelayBuffer( nFrameLength, nTCXDelay, &hTranDet->delayBuffer ); /* Init a subblock energies buffer used for the TCX Short/Long decision. */ #ifdef HARMONIZE_2508_InitTransientDetection InitSubblockEnergies_fx( nFrameLength, nTCXDelay, &hTranDet->delayBuffer, &hTranDet->subblockEnergies, element_mode ); Loading Loading
lib_enc/transient_detection_fx.c +4 −1 Original line number Diff line number Diff line Loading @@ -66,6 +66,7 @@ static void UpdateSubblockEnergies_ivas_fx( Word16 const *input, const Word16 nS /* Functions that define transient detectors */ /* */ /************************************************/ /** TCX decision. * Check IF there is an attack in a subblock. Version FOR TCX Long/Short decision. * See TCheckSubblocksForAttack_fx FOR definition of parameters. Loading Loading @@ -206,7 +207,7 @@ static void GetAttackForTCXDecision_fx( move16(); bIsAttackPresent = TRUE; #ifdef HARMONIZE_2508_InitTransientDetection if ( GT_32( element_mode, EVS_MONO ) ) if ( GT_16( element_mode, EVS_MONO ) ) { attackIndex = 0; move16(); Loading Loading @@ -348,6 +349,7 @@ static void InitTCXTransientDetector( TransientDetector *pTransientDetector ) { InitTransientDetector_fx( pSubblockEnergies, nDelay, NSUBBLOCKS, GetAttackForTCXDecision, 17408 /*8.5f/(1<<ATTACKTHRESHOLD_E) Q15*/, pTransientDetector ); return; } #endif Loading Loading @@ -399,6 +401,7 @@ void InitTransientDetection_ivas_fx( /* Init the delay buffer. */ InitDelayBuffer( nFrameLength, nTCXDelay, &hTranDet->delayBuffer ); /* Init a subblock energies buffer used for the TCX Short/Long decision. */ #ifdef HARMONIZE_2508_InitTransientDetection InitSubblockEnergies_fx( nFrameLength, nTCXDelay, &hTranDet->delayBuffer, &hTranDet->subblockEnergies, element_mode ); Loading