Displaying 15 results from an estimated 15 matches for "max_chars_per_fram".
Did you mean:
max_chars_per_frame
2006 Jan 02
2
Speex decode memory usage on an Arm processor (wideband)
...ould have enough processing power and I compiled the
lib and it seems to take less then 64K so the only issue is memory usage. I
have been testing the speex decode on windows looking at the stack usage and
how much is malloc. There appear to be three defines that control much of
the memory usage: MAX_CHARS_PER_FRAME , SB_DEC_STACK and NB_DEC_STACK.
I have tested lowering these values and then running the speexdec program
and looking for errors. By trial and error it appears that I can lower
MAX_CHARS_PER_FRAME = 750, SB_DEC_STACK = 750*sizeof(spx_sig_t) and
NB_DEC_STACK = 250*sizeof(spx_sig_t)
and not g...
2006 Jan 02
0
Speex decode memory usage on an Arm processor (wideband)
...ng power
> and I compiled the lib and it seems to take less then 64K so the only
> issue is memory usage. I have been testing the speex decode on
> windows looking at the stack usage and how much is malloc. There
> appear to be three defines that control much of the memory usage:
> MAX_CHARS_PER_FRAME , SB_DEC_STACK and NB_DEC_STACK.
MAX_CHARS_PER_FRAME is different from the others. It's a sort of
shortcut to remove the need to resize the bit-packer buffer. If you know
what you're going to decode, supply your own buffer or can live with
realloc() calls, then you can ignore/reduce tha...
2005 May 25
3
Speex on TI C6x, Problem with TI C5x Patch
...;> multichannel application. There have been some good posts over the
>> last couple of months about reducing memory usage.
>
> I think 1.1.8 incorporates all memory reductions proposed. Let me know
> otherwise.
For the persistent storage, the only change that I have made is to
MAX_CHARS_PER_FRAME, which is set to 2000 in bits.c. I changed bits.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. Jam...
2005 Aug 17
2
Updated MIPs and memory requirements for TI c54x or c55DSPs
Hi,
Just a couple tips to reduce complexity. First, I think you'd get a good
speedup by enabling the PRECISION16 switch (if it's not done already).
This (very) slightly reduces quality, but means you convert a lot of
"emulated" 16x32 multiplications into 16x16. There are also several
routines that would benefit from platform-specific optimizations. There
are already
2006 Jan 03
1
Speex decode memory usage on an Arm processor (wideband)
> > I have tested lowering these values and then running the speexdec
> > program and looking for errors. By trial and error it appears that I
> > can lower MAX_CHARS_PER_FRAME = 750, SB_DEC_STACK =
> > 750*sizeof(spx_sig_t) and NB_DEC_STACK = 250*sizeof(spx_sig_t)
> > and not get any memory errors but have no idea if these are safe
> > values or not. I could not tell how much stack spaced was used but
> > would guess 4 kb would be enough....
2005 Aug 18
0
Patch, related to TI DSP C54x C55x C6x builds
...s fixed
point TI DSPs after the work that you did at the end of May (thank you for
this).
arch.h: Add switch for compilers not supporting "long long" (C55x does, C54x
and older C64x does not)
bits.c: Allow external definition for max buffer size, change
MAX_BYTES_PER_FRAME
to MAX_CHARS_PER_FRAME for consistency
misc.c: Added override switches to alloc routines, conditional include of
user file
changes to allow manual memory allocation rather than using heap
Note that none of these changes are necessary to get Speex to run on C55x.
The arch.h change allows operation with older v...
2007 Jan 22
1
Clicking noise using Speex built for TI C64+ DSP of DaVinci Processor
...using the DSP), it works fine.
I don't know where that clicking noise is coming from. Any advice/comments/suggestions?
Here's what's included in my config.h file for Speex (compiled with -DCONFIG_TI_C6X):
#define FIXED_POINT
#define FRAME_SIZE 160
#define DISABLE_WIDEBAND
#define MAX_CHARS_PER_FRAME (42/BYTES_PER_CHAR)
#define MANUAL_ALLOC
#define USER_MISC
Speex narrow band parameters I'm using:
Quality: 2 /* 5950 bps */
Enhancement: 0
Vbr: disabled
Complexity: 1
The DaVinci processor is relatively new and I can't seem to find anyone who has successfully used Spe...
2007 Jan 23
1
Re: Clicking noise using Speex built for TI C64+ DSP of DaVinci Processor
...don't know where that clicking noise is coming from. Any advice/comments/suggestions?
>
> Here's what's included in my config.h file for Speex (compiled with -DCONFIG_TI_C6X):
>
> #define FIXED_POINT
> #define FRAME_SIZE 160
> #define DISABLE_WIDEBAND
> #define MAX_CHARS_PER_FRAME (42/BYTES_PER_CHAR)
> #define MANUAL_ALLOC
> #define USER_MISC
>
> Speex narrow band parameters I'm using:
> Quality: 2 /* 5950 bps */
> Enhancement: 0
> Vbr: disabled
> Complexity: 1
>
> The DaVinci processor is relatively new and I can't...
2011 Dec 23
0
Issue with Wideband mode for qualities higher than 5
...ll reaching Quality 8 where I can hear nothing but annoying noise
- When I decode a file encoded on my PC (using speex utility with the same
config of my
encoder) it sounds great. So I suppose the issue might be on my
encoder side.
- I'm using fixed point configuration, and I updated the
MAX_CHARS_PER_FRAME value
to 80 (I guess I'd never outpass this value, right? but I checked
even with 200).
Is there something I should specially take care of for Wideband mode?
Did anyone encountered a similar issue?
Thank you in advance for any comments/hints :-)
With best regards.
-------------- next...
2005 May 25
0
Speex on TI C6x, Problem with TI C5x Patch
> For the persistent storage, the only change that I have made is to
> MAX_CHARS_PER_FRAME, which is set to 2000 in bits.c. I changed bits.c to
> set this value only if it was not already defined, and then put 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...
2005 Aug 19
1
Re: Patch, related to TI DSP C54x C55x C6x builds
...rk that you did at the end of May (thank you for
> this).
>
> arch.h: Add switch for compilers not supporting "long long" (C55x does, C54x
> and older C64x does not)
> bits.c: Allow external definition for max buffer size, change
> MAX_BYTES_PER_FRAME
> to MAX_CHARS_PER_FRAME for consistency
> misc.c: Added override switches to alloc routines, conditional include of
> user file
> changes to allow manual memory allocation rather than using heap
>
> Note that none of these changes are necessary to get Speex to run on C55x.
>
> The arch.h c...
2007 Jan 23
0
Re: Clicking noise using Speex built for TI C64+ DSP ofDaVinci Processor
...don't know where that clicking noise is coming from. Any advice/comments/suggestions?
>
> Here's what's included in my config.h file for Speex (compiled with -DCONFIG_TI_C6X):
>
> #define FIXED_POINT
> #define FRAME_SIZE 160
> #define DISABLE_WIDEBAND
> #define MAX_CHARS_PER_FRAME (42/BYTES_PER_CHAR)
> #define MANUAL_ALLOC
> #define USER_MISC
>
> Speex narrow band parameters I'm using:
> Quality: 2 /* 5950 bps */
> Enhancement: 0
> Vbr: disabled
> Complexity: 1
>
> The DaVinci processor is relatively new and I can't...
2008 Mar 29
0
GCC/ELF Visibility patch
...SpeexMode * speex_lib_get_mode (int mode)
{
if (mode < 0 || mode >= SPEEX_NB_MODES) return NULL;
Index: libspeex/bits.c
===================================================================
--- libspeex/bits.c (revision 14645)
+++ libspeex/bits.c (working copy)
@@ -45,7 +45,7 @@
#define MAX_CHARS_PER_FRAME (2000/BYTES_PER_CHAR)
#endif
-void speex_bits_init(SpeexBits *bits)
+EXPORT void speex_bits_init(SpeexBits *bits)
{
bits->chars = (char*)speex_alloc(MAX_CHARS_PER_FRAME);
if (!bits->chars)
@@ -58,7 +58,7 @@
speex_bits_reset(bits);
}
-void speex_bits_init_buffer(SpeexBits *...
2008 Mar 29
2
GCC/ELF Visibility patch (fwd)
...SpeexMode * speex_lib_get_mode (int mode)
{
if (mode < 0 || mode >= SPEEX_NB_MODES) return NULL;
Index: libspeex/bits.c
===================================================================
--- libspeex/bits.c (revision 14645)
+++ libspeex/bits.c (working copy)
@@ -45,7 +45,7 @@
#define MAX_CHARS_PER_FRAME (2000/BYTES_PER_CHAR)
#endif
-void speex_bits_init(SpeexBits *bits)
+EXPORT void speex_bits_init(SpeexBits *bits)
{
bits->chars = (char*)speex_alloc(MAX_CHARS_PER_FRAME);
if (!bits->chars)
@@ -58,7 +58,7 @@
speex_bits_reset(bits);
}
-void speex_bits_init_buffer(SpeexBits *...
2005 May 24
2
Speex on TI C6x, Problem with TI C5x Patch
Skipped content of type multipart/alternative-------------- next part --------------
A non-text attachment was scrubbed...
Name: maleout12may.wav
Type: audio/wav
Size: 95884 bytes
Desc: not available
Url : http://lists.xiph.org/pipermail/speex-dev/attachments/20050524/57112d0c/maleout12may-0001.bin