Displaying 4 results from an estimated 4 matches for "silk_enc".
Did you mean:
silk_dec
2019 Apr 01
2
API for checking whether the encoder is in DTX (PR #107)
...UEST:
+ {
+ 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
+ else if (st->use_dtx) {
+ /* DTX determined by Opus. */
+...
2019 Apr 08
3
API for checking whether the encoder is in DTX (PR #107)
...> + 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 looks like this does not have the same behavior as the code that...
2019 Apr 05
0
API for checking whether the encoder is in DTX (PR #107)
...*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 looks like this does not have the same behavior as the code that
decides whether to produce a DTX...
2013 May 23
2
ASM runtime detection and optimizations
...32 rangeFinal;
+ int 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;