search for: silk_mode

Displaying 6 results from an estimated 6 matches for "silk_mode".

Did you mean: file_mode
2017 Oct 17
1
Fix DTX is always unavailable when DISABLE_FLOAT_API is not defined
...s_info.valid is alway true except NaN case and is_silence is alway true except digital zero signal case. In general, following condition will be alway true except exceptional case. (analysis_info.valid || is_silence) But in a code, there is a NOT expression in front of above condition, so st->silk_mode.useDTX will be always disable Here is the code. #ifndef DISABLE_FLOAT_API st->silk_mode.useDTX = st->use_dtx && !(analysis_info.valid || is_silence); #else st->silk_mode.useDTX = st->use_dtx; #endif Is it a bug or are there any reason for this? In my opinio...
2012 Aug 22
2
int operation
Gents, My TI C55xx complier is complaining about (in opus_encoder.c, opus_encode()): st->silk_mode.payloadSize_ms = 1000 * frame_size / st->Fs; where .payloadSize_ms is opus_int, frame_size is an int, and Fs is a long. Should one of these be cast differently? Thx, MikeH -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.xiph.org/pipermail/op...
2019 Apr 01
2
API for checking whether the encoder is in DTX (PR #107)
...OPUS_SET_ENERGY_MASK(value)); } break; + case OPUS_GET_IN_DTX_REQUEST: + { + opus_int32 *value = va_arg(ap, opus_int32*); + if (!value) + { + goto bad_arg; + } + *value = 0; + if (st->silk_mode.useDTX) { + /* DTX determined by Silk. */ + void *silk_enc = (char*)st+st->silk_enc_offset; + *value = ((silk_encoder*)silk_enc)->state_Fxx[0].sCmn.noSpeechCounter >= NB_SPEECH_FRAMES_BEFORE_DTX; + } +#ifndef DISABLE_FLOAT_API +...
2019 Apr 08
3
API for checking whether the encoder is in DTX (PR #107)
...IN_DTX_REQUEST: > > + { > > + opus_int32 *value = va_arg(ap, opus_int32*); > > + if (!value) > > + { > > + goto bad_arg; > > + } > > + *value = 0; > > + if (st->silk_mode.useDTX) { > > + /* DTX determined by Silk. */ > > + void *silk_enc = (char*)st+st->silk_enc_offset; > > + *value = > > ((silk_encoder*)silk_enc)->state_Fxx[0].sCmn.noSpeechCounter >= > > NB_SPEECH_FRAMES_BEFORE_DTX;...
2019 Apr 05
0
API for checking whether the encoder is in DTX (PR #107)
...     break; > +        case OPUS_GET_IN_DTX_REQUEST: > +        { > +            opus_int32 *value = va_arg(ap, opus_int32*); > +            if (!value) > +            { > +                goto bad_arg; > +            } > +            *value = 0; > +            if (st->silk_mode.useDTX) { > +                /* DTX determined by Silk. */ > +                void *silk_enc = (char*)st+st->silk_enc_offset; > +                *value = > ((silk_encoder*)silk_enc)->state_Fxx[0].sCmn.noSpeechCounter >= > NB_SPEECH_FRAMES_BEFORE_DTX; > +            } It...
2013 May 23
2
ASM runtime detection and optimizations
...nt arch; }; /* Transition tables for the voice and music. First column is the @@ -184,6 +186,8 @@ int opus_encoder_init(OpusEncoder* st, opus_int32 Fs, int channels, int applicat st->Fs = Fs; + st->arch = opus_select_arch(); + ret = silk_InitEncoder( silk_enc, &st->silk_mode ); if(ret)return OPUS_INTERNAL_ERROR;