Displaying 20 results from an estimated 73 matches for "stack_alloc".
2017 Nov 03
1
[PATCH] Check for _WIN32 instead of WIN32 in preprocessor checks
...ing
that platform, while WIN32 only is defined automatically in some
configurations, and e.g. in MSVC only ever is defined in project files
(if at all).
Some other checks in the codebase already check for both WIN32 and
_WIN32; those are left untouched.
---
include/speex/speex.h | 2 +-
libspeex/stack_alloc.h | 2 +-
src/skeleton.h | 2 +-
tmv/config.h | 2 +-
4 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/include/speex/speex.h b/include/speex/speex.h
index 28c4b44d..34919e2f 100644
--- a/include/speex/speex.h
+++ b/include/speex/speex.h
@@ -412,7 +412,7 @@ extern con...
2004 Aug 06
2
LP64 fix
Casting a pointer to an int is a bad idea on 64-bit platforms.
--- libspeex/stack_alloc.h.orig Wed Jun 11 17:10:53 2003
+++ libspeex/stack_alloc.h Wed Jun 11 17:11:12 2003
@@ -48,7 +48,7 @@
#else
/*Aligns the stack to a 'size' boundary */
-#define ALIGN(stack, size) ((stack) += ((size) - (int)(stack)) & ((size) - 1))
+#define ALIGN(stack, size) ((stack) += ((size) - (l...
2011 Dec 09
0
Porting CELT to the C5515
Jean-marc,
I am trying to port CELT to the ti dsp c5515. I counted a problem when I
try to call a function:
len = celt_encode(enc, in, frame_size, data, bytes_per_packet);
I guess that the problem in the stack allocation variable defined in the
header file stack_alloc.h.
For more info over my platform settings, see the attached files. May be
the global_stack variable is not good configured or not good defined.
Could you telling me if my configuration is OK, please?
Regards,
Abdel
-------------- next part --------------
An HTML attachment was scru...
2009 Dec 02
1
bug found in CELT 0.6.1, fix proposed.
...its use within the CPU budget of the device.
Regards
George de Vries.
Senior Software Engineer
Open Access.
*** libcelt/quant_bands.c Wed Dec 2 10:23:42 2009
--- libcelt/orig/quant_bands.c Wed Oct 21 14:43:10 2009
***************
*** 42,52 ****
#include "mathops.h"
#include "stack_alloc.h"
- #define E_MEANS_SIZE (5)
#ifdef FIXED_POINT
! const celt_word16 eMeans[E_MEANS_SIZE] = {1920, -341, -512, -107, 43};
#else
! const celt_word16 eMeans[E_MEANS_SIZE] = {7.5f, -1.33f, -2.f, -0.42f, 0.17f};
#endif
/* FIXME: Implement for stereo */
--- 42,51 ----
#include "...
2013 May 27
2
Stack Overflow
...AYS allocates local variables as arrays so that they could go on to stack and finally when we leave the function, the stack is freed.
when I use VAR_ARRAYS, I get this error " declarations may not appear after an executable statement in the block". Is there any changes need to be done in stack_alloc.h ? Have you guys faced same trouble or any fix is already done on this issue?
My platform is TI C6424, CCS and windows.
--
Best Regards
Fezin E T
Senior Engineer - Systems Business Unit | Design And Development
TATA ELXSI
Technopark Campus Trivandrum 695 581 India
Tel +91 471 666 1117
www.tatae...
2004 Aug 06
0
LP64 fix
...izeof(int) != sizeof(void*). If it doesn't work with int,
I suspect the solution with the long could also fail on some archs.
Jean-Marc
Le mer 11/06/2003 à 11:56, Christian Weisgerber a écrit :
> Casting a pointer to an int is a bad idea on 64-bit platforms.
>
> --- libspeex/stack_alloc.h.orig Wed Jun 11 17:10:53 2003
> +++ libspeex/stack_alloc.h Wed Jun 11 17:11:12 2003
> @@ -48,7 +48,7 @@
> #else
>
> /*Aligns the stack to a 'size' boundary */
> -#define ALIGN(stack, size) ((stack) += ((size) - (int)(stack)) & ((size) - 1))
> +#define ALIGN(st...
2009 Jun 18
1
Resampler saturation, blackfin performance
...es the stack from the nb en/de-coder.
But the echo-canceller and preprocessor don't use it.
I suppose they also have some scratch buffers.
(comments in SpeexEchoState_ structure mdf.c)
But you allocate them with speex_alloc instead of using the VARDECL/ALLOC macros.
Converting the code to the stack_alloc mechanism could result in better performance with a scratch buffer in SRAM.
I think I can do it for mdf.c, but I would need information for preprocess.c.
--
St?phane LESAGE
ATEIS International
2010 Feb 25
1
Compilation for iPhone (celt 0.7.1)
Hi,
In case it is of any help, to compile a static library for the iPhone, I had to add the following 2 lines in plc.c file :
#include "arch.h"
#include "stack_alloc.h"
otherwise "celt_word16..." type are not defined and "VARDECL...." also not.
Best Regards
St?phane Letz
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 calloc) 100,000 bytes for the global
stack. However, the *celt_alloc_scratch expects an "int", which in C55x
lingo is 16bits (+/-32768). When debu...
2005 May 25
3
Speex on TI C6x, Problem with TI C5x Patch
...c to
set this value only if it was not already defined, and then put my own, much
smaller value in config.h.
For the scratch stack, I replace the fixed values in nb_encoder_init and
nb_decoder_init with constants that I defined in config.h. Jamey Hicks
original C5x patch had some test code in stack_alloc.h to detect working
stack overflow. Maybe something similar could be done to measure the peak
stack usage, enabled by a debug switch. Then, for a space critical
application, it would be easy to measure the stack requirement for a given
operating mode, and set the size (manually) accordingly....
2007 Jul 23
2
Shoehorning speex is confusing a newbie
This is going to take some explaining and I apologize in advance if any
of this is found in the manual or sample code but I couldn't find it. I
just graduated last may and this is my first experience with vocoders
and dissecting a professional's code.
I work for a company that is currently using a G729A vocoder from a 3rd
party software company and is looking into speex so they no
2015 May 15
0
[RFC V3 4/8] aarch64: Enable intrinsics for aarch64
...VE_NEON_INTR */
# endif /* FIXED_POINT */
#endif /* OPUS_HAVE_RTCD */
diff --git a/celt/arm/celt_ne10_fft.c b/celt/arm/celt_ne10_fft.c
index d354502..1901024 100644
--- a/celt/arm/celt_ne10_fft.c
+++ b/celt/arm/celt_ne10_fft.c
@@ -44,6 +44,7 @@
#include "os_support.h"
#include "stack_alloc.h"
+#if !defined(FIXED_POINT)
#ifdef CUSTOM_MODES
/* nfft lengths in NE10 that support scaled fft */
@@ -144,3 +145,4 @@ void opus_ifft_float_neon(const kiss_fft_state *st,
}
RESTORE_STACK;
}
+#endif /* !defined(FIXED_POINT) */
diff --git a/celt/arm/celt_ne10_mdct.c b/celt/arm/c...
2018 Feb 20
2
[EXTERNAL] Re: Developing OPUS on TI CC3220
Jean-Marc,
Thanks for the response and the helpful info.
I am trying to get the library to build without using the pseudostack define, and use either VAR_ARRAYS or ALLOC, but it seems the global stack is not defined.
Where do can I define this in my example?
VR
-----Original Message-----
From: Jean-Marc Valin [mailto:jmvalin at jmvalin.ca]
Sent: Tuesday, February 20, 2018 5:40 PM
To:
2013 May 08
3
Upsampling while decoding / Updating
Dear Nikos,
thanks!
But you use Opus only for resampling, not for entirely replacing Speex,
don't you?
Greetings!
Hermie
Am 07.05.2013 22:53, schrieb Nikos Chantziaras:
> The Opus resampler is actually a bugfixed version of the Speex one. Same
> interface/API, but with the bugs removed. It's why I recommended it :-)
> Otherwise I would have recommended something entirely
2009 Apr 11
1
get_required_bits32() and alloca() -> corrupted stack
HiI'm trying to run CELT on Win32 but I'm running into some corrupted stack errors when using alloca(). When get_required_bits32() (in file cwrs.c:308) is called from get_required_bits() (in file cwrs.c:328) the 'K' parameter is 1 which means that the uint32 which is allocated on the stack only has 3 bytes instead of 4. This results in a corrupted stack in the following call to
2013 May 27
0
Stack Overflow
...variables as arrays so that they could go on
> to stack and finally when we leave the function, the stack is freed.
> when I use VAR_ARRAYS, I get this error " declarations may not appear
> after an executable statement in the block". Is there any changes need
> to be done in stack_alloc.h ? Have you guys faced same trouble or any
> fix is already done on this issue?
> My platform is TI C6424, CCS and windows.
>
> --
>
> Best Regards
>
> Fezin E T
>
> Senior Engineer - Systems Business Unit | Design And Development
> TATA ELXSI
>
> Tech...
2015 Aug 07
0
[PATCH] Fix const struct to work with C++ compilation
...uire a C compiler).
---
src/analysis.c | 2 --
src/mlp.h | 2 ++
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/analysis.c b/src/analysis.c
index 2ee8533..401a43e 100644
--- a/src/analysis.c
+++ b/src/analysis.c
@@ -39,8 +39,6 @@
#include "mlp.h"
#include "stack_alloc.h"
-extern const MLP net;
-
#ifndef M_PI
#define M_PI 3.141592653
#endif
diff --git a/src/mlp.h b/src/mlp.h
index 053b23b..618e246 100644
--- a/src/mlp.h
+++ b/src/mlp.h
@@ -36,6 +36,8 @@ typedef struct {
const float *weights;
} MLP;
+extern const MLP net;
+
void mlp_process(cons...
2005 May 25
0
Speex on TI C6x, Problem with TI C5x Patch
...my own, much
> smaller value in config.h.
Yeah, I think I'll add an option like that.
> For the scratch stack, I replace the fixed values in nb_encoder_init and
> nb_decoder_init with constants that I defined in config.h. Jamey Hicks
> original C5x patch had some test code in stack_alloc.h to detect working
> stack overflow. Maybe something similar could be done to measure the peak
> stack usage, enabled by a debug switch. Then, for a space critical
> application, it would be easy to measure the stack requirement for a given
> operating mode, and set the size (man...
2018 Feb 21
0
[EXTERNAL] Re: Developing OPUS on TI CC3220
...ur compiler supports C99 VLAs, then by
all means just define VAR_ARRAYS and you're good to go. If not, the
second best option is alloca(), which you can use by defining
USE_ALLOCA. If your compiler supports alloca() and USE_ALLOCA doesn't
work, then you may need to make minor tweaks to celt/stack_alloc.h. Do
not use NONTHREADSAFE_PSEUDOSTACK unless all other options fail.
Cheers,
Jean-Marc
> -----Original Message----- From: Jean-Marc Valin
> [mailto:jmvalin at jmvalin.ca] Sent: Tuesday, February 20, 2018 5:40 PM
> To: Rodriguez, Vince; opus at xiph.org Subject: [EXTERNAL] Re: [opus]...
2013 May 08
0
Upsampling while decoding / Updating
...all. I'm just including its resampler in my own
sources. It's not even a DLL; it's directly compiled together with the
rest of my code. You need these sources from the opus-tools package
(http://www.opus-codec.org/downloads/):
arch.h resample.c resample_sse.h speex_resampler.h stack_alloc.h
In your project file, define these macros:
#define SPX_RESAMPLE_EXPORT
#define OUTSIDE_SPEEX
#define RANDOM_PREFIX NAME_OF_YOUR_SOFTWARE
If your software is actually a library itself, you might to instead:
#define SPX_RESAMPLE_EXPORT __declspec(dllexport)
or whatever else you hap...