Displaying 7 results from an estimated 7 matches for "silk_lshift_sat32".
2017 Nov 20
4
Reg an issue with smoothing factor in VAD implementation
...> /* Power scaling */
> if( speech_nrg <= 0 ) { // step2: update speech probability based on
> speech energy : comment by me
> SA_Q15 = silk_RSHIFT( SA_Q15, 1 );
> } else if( speech_nrg < 32768 ) {
> if( psEncC->frame_length == 10 * psEncC->fs_kHz ) {
> speech_nrg = silk_LSHIFT_SAT32( speech_nrg, 16 ); // Energy is doubled
> here : comment by me
> } else {
> speech_nrg = silk_LSHIFT_SAT32( speech_nrg, 15 );
> }
>
> /* square-root */
> speech_nrg = silk_SQRT_APPROX( speech_nrg );
> SA_Q15 = silk_SMULWB( 32768 + speech_nrg, SA_Q15 );
> }
>
> /* Sm...
2017 Nov 27
3
Reg an issue with smoothing factor in VAD implementation
...probability : comment by me
/* Power scaling */
if( speech_nrg <= 0 ) { // step2: update speech probability based on speech energy : comment by me
SA_Q15 = silk_RSHIFT( SA_Q15, 1 );
} else if( speech_nrg < 32768 ) {
if( psEncC->frame_length == 10 * psEncC->fs_kHz ) {
speech_nrg = silk_LSHIFT_SAT32( speech_nrg, 16 ); // Energy is doubled here : comment by me
} else {
speech_nrg = silk_LSHIFT_SAT32( speech_nrg, 15 );
}
/* square-root */
speech_nrg = silk_SQRT_APPROX( speech_nrg );
SA_Q15 = silk_SMULWB( 32768 + speech_nrg, SA_Q15 );
}
/* Smoothing coefficient */
smooth_coef_Q16 = sil...
2018 Feb 16
1
Reg an issue with smoothing factor in VAD implementation
...step2: update speech probability
> based on speech energy : comment by me
> SA_Q15 = silk_RSHIFT( SA_Q15, 1 );
> } else if( speech_nrg < 32768 ) {
> if( psEncC->frame_length == 10 * psEncC->fs_kHz ) {
> speech_nrg = silk_LSHIFT_SAT32( speech_nrg, 16 ); // Energy
> is doubled here : comment by me
> } else {
> speech_nrg = silk_LSHIFT_SAT32( speech_nrg, 15 );
> }
>
> /* square-root */
> speech_nrg = silk_SQRT_APPROX( speech_nrg );
>...
2013 Jun 10
0
BUG report
Hi OPUS,
The macro Silk_LSHIFT_SAT32( ) doesn?t generate the correct saturated 32 bit results, at least in some cases e.g:
Silk_LSHIFT_SAT32( 0x4000, 17) = 0x7ffe000;
Cliff
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.xiph.org/pipermail/opus/attachments/20130610/be3f808f/attachment.htm
2017 Nov 20
0
Reg an issue with smoothing factor in VAD implementation
...probability : comment by me
/* Power scaling */
if( speech_nrg <= 0 ) { // step2: update speech probability based on speech energy : comment by me
SA_Q15 = silk_RSHIFT( SA_Q15, 1 );
} else if( speech_nrg < 32768 ) {
if( psEncC->frame_length == 10 * psEncC->fs_kHz ) {
speech_nrg = silk_LSHIFT_SAT32( speech_nrg, 16 ); // Energy is doubled here : comment by me
} else {
speech_nrg = silk_LSHIFT_SAT32( speech_nrg, 15 );
}
/* square-root */
speech_nrg = silk_SQRT_APPROX( speech_nrg );
SA_Q15 = silk_SMULWB( 32768 + speech_nrg, SA_Q15 );
}
/* Smoothing coefficient */
smooth_coef_Q16 = sil...
2017 Nov 22
0
Reg an issue with smoothing factor in VAD implementation
...>> if( speech_nrg <= 0 ) { // step2: update speech probability based on
>> speech energy : comment by me
>> SA_Q15 = silk_RSHIFT( SA_Q15, 1 );
>> } else if( speech_nrg < 32768 ) {
>> if( psEncC->frame_length == 10 * psEncC->fs_kHz ) {
>> speech_nrg = silk_LSHIFT_SAT32( speech_nrg, 16 ); // Energy is doubled
>> here : comment by me
>> } else {
>> speech_nrg = silk_LSHIFT_SAT32( speech_nrg, 15 );
>> }
>>
>> /* square-root */
>> speech_nrg = silk_SQRT_APPROX( speech_nrg );
>> SA_Q15 = silk_SMULWB( 32768 + speech_nrg,...
2017 Nov 27
0
Reg an issue with smoothing factor in VAD implementation
..._nrg <= 0 ) { // step2: update speech probability based on
>>> speech energy : comment by me
>>> SA_Q15 = silk_RSHIFT( SA_Q15, 1 );
>>> } else if( speech_nrg < 32768 ) {
>>> if( psEncC->frame_length == 10 * psEncC->fs_kHz ) {
>>> speech_nrg = silk_LSHIFT_SAT32( speech_nrg, 16 ); // Energy is doubled
>>> here : comment by me
>>> } else {
>>> speech_nrg = silk_LSHIFT_SAT32( speech_nrg, 15 );
>>> }
>>>
>>> /* square-root */
>>> speech_nrg = silk_SQRT_APPROX( speech_nrg );
>>> SA_Q15 = s...