search for: celt_encoder_ctl

Displaying 8 results from an estimated 8 matches for "celt_encoder_ctl".

2010 Jan 12
1
Seamless Looping
...e the cause of this? It seems quite strange that it would loop okay without the "trick" but not with it.<br> <br> Encode settings are set as follows:<br> <br> <tt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; error = FSBank_CELT_State.celt_encoder_ctl(celtencoder, CELT_SET_VBR_RATE(0));&nbsp;&nbsp;&nbsp; <br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; error = FSBank_CELT_State.celt_encoder_ctl(celtencoder, CELT_SET_PREDICTION(0));<br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;...
2009 Nov 16
1
CELT question
...ntation of Dr. Jean-Marc Valin, Gregory Maxwell and Dr. Timothy B. Terriberry) the CELT LC (low complexity) mode is mentionned. The LC mode should use half the memory recources and half the MIPS. My question is how to tell the CELT library to use the low complexity mode. Should I use the "celt_encoder_ctl(enc,CELT_SET_COMPLEXITY(complexity))" function and set the complexity to zero, or is there also a compile time define which I should use? I use the CELT version 0.7.0. Thanks, -- Best regards, P. Hoogervorst Engineering Spirit De Werf 4e, 3632 AE Loenen a/d Vecht The Netherlands tel:...
2010 Jan 27
1
Some additions to CELT_RESET_STATE for 0.7.1
...of CELT_RESET_STATE (since I may be the only one actually using it) I've been kind of lax lately and have only now tried to reconcile it with the state structures in the 0.7.1 drop. I think (and feel free to contradict me here) that the following lines should be added to CELT_RESET_STATE in celt_encoder_ctl: st->fold_decision = 1; st->tonal_average = QCONST16(1.,8); st->gain_prod = 0; st->vbr_reservoir = 0; st->vbr_drift = 0; st->vbr_offset = 0; st->vbr_count = 0; st->xmem = 0; CELT_MEMSET(st->...
2010 Mar 02
1
question about CELT_SET_COMPLEXITY_REQUEST
looking at the code for celt_encoder_ctl in 0.7.1 I'm confused as to why Complexity is described as a value from 0-10, but the code only appears to have one setting for 0-2 and another setting for 3-10. Is that for future use or am I missing something? case CELT_SET_COMPLEXITY_REQUEST: { int value = va_arg(ap, celt_int32); if (value...
2019 Apr 01
2
API for checking whether the encoder is in DTX (PR #107)
...DTX(x) OPUS_GET_IN_DTX_REQUEST, __opus_check_int_ptr(x) /**@}*/ diff --git a/src/opus_encoder.c b/src/opus_encoder.c index cbeb40ae..0d84737a 100644 --- a/src/opus_encoder.c +++ b/src/opus_encoder.c @@ -2725,6 +2725,27 @@ int opus_encoder_ctl(OpusEncoder *st, int request, ...) ret = celt_encoder_ctl(celt_enc, 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; +...
2011 Apr 15
4
Can I use VBR option to change byte_per_packet dynamically ?
....Can we use VBR option in CELT ??? "byte_per_packet" variable in code means constant bit rate, does not it ?In this code : bytes_per_packet is constant.len = celt_encode(enc, in_short, frame_size, data, bytes_per_packet);....."len" is equal "bte_per_packet" evey time. celt_encoder_ctl(st, CELT_SET_VBR(1);celt_encoder_ctl(st, CELT_SET_VBR_CONSTRAINT(0);May I write two lines codes to active VBR ?Selami Tastan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.xiph.org/pipermail/opus/attachments/20110415/c2070f8c/attachment-0002...
2019 Apr 08
3
API for checking whether the encoder is in DTX (PR #107)
...; > diff --git a/src/opus_encoder.c b/src/opus_encoder.c > > index cbeb40ae..0d84737a 100644 > > --- a/src/opus_encoder.c > > +++ b/src/opus_encoder.c > > @@ -2725,6 +2725,27 @@ int opus_encoder_ctl(OpusEncoder *st, int > > request, ...) > > ret = celt_encoder_ctl(celt_enc, > OPUS_SET_ENERGY_MASK(value)); > > } > > break; > > + case OPUS_GET_IN_DTX_REQUEST: > > + { > > + opus_int32 *value = va_arg(ap, opus_int32*); > > + if (!value) > > + { > >...
2019 Apr 05
0
API for checking whether the encoder is in DTX (PR #107)
...(x) >   >  /**@}*/ >   > diff --git a/src/opus_encoder.c b/src/opus_encoder.c > index cbeb40ae..0d84737a 100644 > --- a/src/opus_encoder.c > +++ b/src/opus_encoder.c > @@ -2725,6 +2725,27 @@ int opus_encoder_ctl(OpusEncoder *st, int > request, ...) >              ret = celt_encoder_ctl(celt_enc, 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; > +       ...