Displaying 20 results from an estimated 600 matches similar to: "Allocating all memory up front"
2010 Mar 03
2
uint decode error on visual studio...
Is this a common warning? The decoder doesn't return an error on it, but I
see it a lot in my test application on windows. It is non existent on my
linux box. I haven't tried mingw yet.
please note that I'm using visual studio 2008 w/the vcproj that Bjoern
Rasmussen made for 0.5.2 (w/some file references removed) at the moment and
it is giving a lot of C4554 warnings
2009 Oct 16
3
API Change
Hi everyone,
I've just changed the API for CELT, but at least there's a good reason
for that. It's now possible to use the same mode data for both mono and
stereo. So here's the change:
- The celt_mode_create() function has a "channels" parameter
- The celt_encode_create() and celt_decoder_create() functions now have
an additional "channels" parameter.
- I
2011 Mar 02
1
[PATCH] Fix CNG when effEBands is less than nbEBands.
We were trying to normalize bands that didn't actually exist (e.g.,
 the last band with 320-sample frames at 32kHz).
Thanks to John Ridges for the report.
---
 libcelt/celt.c |   24 +++++++++++++++++-------
 1 files changed, 17 insertions(+), 7 deletions(-)
diff --git a/libcelt/celt.c b/libcelt/celt.c
index 31d35f8..287c720 100644
--- a/libcelt/celt.c
+++ b/libcelt/celt.c
@@ -1137,6 +1137,7
2011 Jan 12
2
Crash when using odd frame size
Hi
I noticed a crash issue when I passed the following values:
celt_mode_create(96000, 258, &e);
CELTMode->mdct.kfft[0] is not initialized after calling?clt_mdct_init() and when?celt_mode_destroy() is called it tries to dereference this value in kiss_fft_free().
-- Bjoern
Here's the callstack:
!kiss_fft_free(const kiss_fft_state * cfg=0x00000000) ?Line 650 + 0x3 bytes
2009 Jul 24
1
STATIC_MODES, fft and prob members
Hi Guys,
I've just been looking into STATIC_MODES. My plan is to generate and 
store the modes as part of our sound banks when they are encoded.
I have noticed that even with STATIC_MODES turned on, celt_mode_create 
still allocs and generates the fft and prob members (via 
pitch_state_alloc and quant_prob_alloc respectively). I also notice that 
in dump_modes.c, these two members are just
2011 Mar 02
1
Crash bug in CELT plc
Hi all,
In my setup, I'm using a framesize of 320 samples at a sample rate of 
32000 Hz (10 ms frames). This gives me a mode where nbEBands is 21 and 
eBands[21] is 100 (the standard 2.5 ms short block ebands). This also 
gives me LM = 2, so what happens is eBands[nbEBands]<<LM is 400, whereas 
my framesize is only 320. This causes a stack overrun at line 1978 in 
celt.c in both calls
2016 Sep 13
4
[PATCH 12/15] Replace call of celt_inner_prod_c() (step 1)
Should call celt_inner_prod().
---
 celt/bands.c                   | 7 ++++---
 celt/bands.h                   | 2 +-
 celt/celt_encoder.c            | 6 +++---
 celt/pitch.c                   | 2 +-
 src/opus_multistream_encoder.c | 2 +-
 5 files changed, 10 insertions(+), 9 deletions(-)
diff --git a/celt/bands.c b/celt/bands.c
index bbe8a4c..1ab24aa 100644
--- a/celt/bands.c
+++ b/celt/bands.c
2010 Feb 08
1
compute_ebands
Hi All,
Is the following loop in function compute_ebands meant to work out the
nearest celt frequency bin to a bark critical band? ?If so why an
offset is required to be considered? Thanks in advance if somebody can
explain it.
Thanks,
Hamid
   /* Spacing follows critical bands */
   for (i=0;i<high;i++)
   {
      int target = bark_freq[lin+i];
      eBands[i+low] =
2009 Oct 23
1
Implications of reducing MAX_PERIOD
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
</head>
<body bgcolor="#ffffff" text="#000000">
Hi,<br>
<br>
I have been looking into reducing memory usage of the CELTDecoder and
was wondering what the implications of reducing MAX_PERIOD were?
Reducing it to 512, I haven''t noticed any
2009 Oct 15
1
multichannel
Hi All,
Would it be possible to encode n channels with the CELT api?
I can't find a negative or positive in the CELT docs; all I could find 
is c a check on the nr of channels in wav_io.c in the CELT tools. No 
clear insight on wheter or not the channels parameter in 
celt_mode_create can be > 2.
Answers on the list were (thanks!):
- Sure, You just encode each channel and then store the
2010 Jun 07
1
GLOBAL_STACK_SIZE
I am having trouble understanding the stack allocation scheme when using a
C55xx device. From what I can tell, the GLOBAL_STACK_SIZE is set in arch.h
to 100,000 bytes (when using FIXED_POINT), which is then used in the
ALLOC_STACK macro found in stack_alloc.h. This macro seems to say, if
global_stack==0, then call celt_alloc_scratch, found in os_support.h, which
in turn attempts to allocate (using
2010 Dec 03
1
memory violation in mode_create() !
?
There seems to be a memory violation when calling celt_mode_create(48000, 240).
?
The function compute_pulse_cache() calls celt_alloc (the second one,
bits=celt_alloc()) in order to allocate 343 byte, but it is using about 872
bytes at that location, which will be deleted by the following allocations.
?
In this case the following encoder call crashes at first run.
?
Sorry, my time is very
2011 Jun 07
1
Celt modes
I seem to be having trouble creating correct modes for a 44100 samplerate.  In reading the header file it says an even value from 64 to 512 I believe (going off memory) for the frame_rate but celt_mode_create returns a null mode.  I can get it all working if I use 48000 with 480 frame_rate.  
I guess in short what is the best way to calculate the optimal mode for latency.
Thanks
Mike 
-- 
Sent
2009 Dec 02
1
bug found in CELT 0.6.1, fix proposed.
Hi all I have spent the last three days evaluating CELT on our supported platforms.
I found a bug in quant_bands.c, that due to processor/compilation differences did not cause an issue on x86 platforms, but is a problem on the MIPS processor embedded devices. When decoding on the MIPS devices, there was a lot of noise added during the decoding, the noise is mainly in the 15 khz to 21 khz range. 
2009 Jan 14
0
[PATCH] Moved the application of the pitch gain to (un)quant_bands(). This doesn't change anything to the codec, but will make the next changes easier.
---
 libcelt/bands.c |   43 ++++++++++++++++++++++++-------------------
 libcelt/bands.h |    6 ++----
 libcelt/celt.c  |    6 ++----
 3 files changed, 28 insertions(+), 27 deletions(-)
diff --git a/libcelt/bands.c b/libcelt/bands.c
index d0c3498..315cce8 100644
--- a/libcelt/bands.c
+++ b/libcelt/bands.c
@@ -247,23 +247,6 @@ void compute_pitch_gain(const CELTMode *m, const celt_norm_t *X, const
2009 Jan 14
0
[PATCH] Pitch now quantised at the band level, got rid of all the VQ code.
---
 libcelt/Makefile.am   |    6 +-
 libcelt/bands.c       |   26 +++++++++-
 libcelt/bands.h       |    2 +-
 libcelt/celt.c        |   23 +++-----
 libcelt/pgain_table.h |  133 -------------------------------------------------
 libcelt/quant_pitch.c |  117 -------------------------------------------
 libcelt/quant_pitch.h |   44 ----------------
 7 files changed, 37 insertions(+), 314
2011 May 02
1
Modes?
I have been using CELT ver 8 for some time, but am now attempting to use the
latest git (ver 11+). However, I am having problems with modes. I don't
completely understand what is going on in the following code. Could you
provide some guidance on what parameters are now acceptable? I am trying to
create a stereo channel with Fs=48000 and 128 byte frames, but get NULL
returned from the
2011 Jun 15
2
[LLVMdev] LLVM interpreter does not support fmod
It seems llvm interpreter only supports a limited number of external
functions. fmod, in particular is not supported. any reason why it is not
supported ?
"lli -force-interpreter test.bc
LLVM ERROR: Tried to execute an unknown external function: double (double,
double)* fmod
"
-- 
Kind Regards
Xin Tong
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
2012 Dec 21
1
Problem compiling Samba4, Python installed in nonstandard location
Hi,I am working with a custom built (LFS-based) Linux distro and am attempting to compile Samba4.
Samba3 has always compiled without issue.
The system has its Python installed in /opt/python2. There are symlinks to put "python" in /usr/local/bin and the "python2.7" lib folder in /usr/include.
The configure command used was simply ./configure --enable-fhs --with-quotas 
The
2009 May 20
2
Encoder crash in multithreading processing
Hi, I try to work with CELT encoder & decoder in 2 different threads at the
same time.
So I create/destroy encoder and encode in one thread and create/destroy
decoder and decode in other thread.
If I didn't protect celt_encoder_create, celt_encode_float and
celt_decoder_create, celt_decode_float with CRITICAL_SECTION
I get stable error in icwrs32 or ec_byte_write1 (more often) in encoder.