Displaying 8 results from an estimated 8 matches for "max32".
Did you mean:
max2
2007 Nov 05
2
[patch] speex_preprocess_ctl
...========================
> > --- libspeex/preprocess.c (revision 13983)
> > +++ libspeex/preprocess.c (arbetskopia)
> > @@ -1126,16 +1126,16 @@
> > break;
> >
> > case SPEEX_PREPROCESS_SET_PROB_START:
> > - *(spx_int32_t*)ptr = MIN32(Q15_ONE,MAX32(0, *(spx_int32_t*)
> > ptr));
> > - st->speech_prob_start = DIV32_16(MULT16_16(32767,*
> > (spx_int32_t*)ptr), 100);
> > + *(spx_int32_t*)ptr = MIN32(100,MAX32(0, *(spx_int32_t*)ptr));
> > + st->speech_prob_start = DIV32_16(MULT16_16(Q15ONE,*
&g...
2007 Oct 29
1
[patch] speex_preprocess_ctl
...x: libspeex/preprocess.c
===================================================================
--- libspeex/preprocess.c (revision 13983)
+++ libspeex/preprocess.c (arbetskopia)
@@ -1126,16 +1126,16 @@
break;
case SPEEX_PREPROCESS_SET_PROB_START:
- *(spx_int32_t*)ptr = MIN32(Q15_ONE,MAX32(0, *(spx_int32_t*)ptr));
- st->speech_prob_start = DIV32_16(MULT16_16(32767,*(spx_int32_t*)ptr), 100);
+ *(spx_int32_t*)ptr = MIN32(100,MAX32(0, *(spx_int32_t*)ptr));
+ st->speech_prob_start = DIV32_16(MULT16_16(Q15ONE,*(spx_int32_t*)ptr), 100);
break;
case SPEEX_PRE...
2007 Nov 05
0
[patch] speex_preprocess_ctl
...===
>>> --- libspeex/preprocess.c (revision 13983)
>>> +++ libspeex/preprocess.c (arbetskopia)
>>> @@ -1126,16 +1126,16 @@
>>> break;
>>>
>>> case SPEEX_PREPROCESS_SET_PROB_START:
>>> - *(spx_int32_t*)ptr = MIN32(Q15_ONE,MAX32(0, *(spx_int32_t*)
>>> ptr));
>>> - st->speech_prob_start = DIV32_16(MULT16_16(32767,*
>>> (spx_int32_t*)ptr), 100);
>>> + *(spx_int32_t*)ptr = MIN32(100,MAX32(0, *(spx_int32_t*)ptr));
>>> + st->speech_prob_start = DIV32_16(MULT16_16...
2013 Dec 09
1
incorrect use of MAX16
...utation.
Please consider the change below for inclusion in the opus
code base.
/* *tf_estimate = 1 + MIN16(1, sqrt(MAX16(0, tf_max-30))/20); */
- *tf_estimate = celt_sqrt(MAX16(0,
SHL32(MULT16_16(QCONST16(0.0069,14),MIN16(163,tf_max)),14)-QCONST32(0.139,28)));
+ *tf_estimate = celt_sqrt(MAX32(0,
SHL32(MULT16_16(QCONST16(0.0069,14),MIN16(163,tf_max)),14)-QCONST32(0.139,28)));
/*printf("%d %f\n", tf_max, mask_metric);*/
--
2018 Jun 29
1
Aborting on NaN in CELT - what are the conditions for crash in transient_analysis
...that crash on NaN since it could result in a worse issue later on. */
I think I'm exactly in that situation. Opus codec crashes occasionally for
me with Access violation in the transient_analysis function on the line
where it's computing the id from the floating point.
id = (int)MAX32(0,MIN32(127,floor(64*norm*(tmp[i]+EPSILON))));
Could you please provide more info about what could be the crash reason
there?
Regards,
Alex
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.xiph.org/pipermail/opus/attachments/20180629/db780dbb/attach...
2010 Mar 25
0
Blackfin inline assembly for fixed math
...e celt_int16 MIN16(celt_int16 a, celt_int16 b)
{
celt_int32 res;
__asm__ (
"%1 = %1.L (X);\n\t"
"%2 = %2.L (X);\n\t"
"%0 = MIN(%1,%2);"
: "=d" (res)
: "%d" (a), "d" (b)
);
return res;
}
#undef MAX32
static inline celt_int32 MAX32(celt_int32 a, celt_int32 b)
{
celt_int32 res;
__asm__ (
"%0 = MAX(%1,%2);"
: "=d" (res)
: "%d" (a), "d" (b)
);
return res;
}
#undef MIN32
static inline celt_int32 MIN32(celt_int32 a, celt_int32 b)
{...
2008 Feb 19
4
Patch for Analog Devices compiler & fixed-point AGC
...32(st->ps[i], 2*st->frame_shift);
- filterbank_compute_bank32(st->bank, ps, ps+N);
+ filterbank_compute_bank32(st->bnk, ps, ps+N);
}
static void update_noise_prob(SpeexPreprocessState *st)
@@ -761,7 +761,7 @@
#endif
for (i=0;i<N;i++)
st->echo_noise[i] = MAX32(MULT16_32_Q15(QCONST16(.6f,15),st->echo_noise[i]), st->residual_echo[i]);
- filterbank_compute_bank32(st->bank, st->echo_noise, st->echo_noise+N);
+ filterbank_compute_bank32(st->bnk, st->echo_noise, st->echo_noise+N);
} else {
for (i=0;i<N+M;i++)...
2016 Sep 13
4
[PATCH 12/15] Replace call of celt_inner_prod_c() (step 1)
...val16 * OPUS_RESTRICT x_lp, opus_val16 * OPUS_RESTR
for (j=0;j<len>>1;j++)
sum += SHR32(MULT16_16(x_lp[j],y[i+j]), shift);
#else
- sum = celt_inner_prod_c(x_lp, y+i, len>>1);
+ sum = celt_inner_prod(x_lp, y+i, len>>1, arch);
#endif
xcorr[i] = MAX32(-1, sum);
#ifdef FIXED_POINT
diff --git a/src/opus_multistream_encoder.c b/src/opus_multistream_encoder.c
index c07132f..6ecea5d 100644
--- a/src/opus_multistream_encoder.c
+++ b/src/opus_multistream_encoder.c
@@ -295,7 +295,7 @@ void surround_analysis(const CELTMode *celt_mode, const void *pcm, o...