Displaying 20 results from an estimated 36 matches for "decstate".
2005 Oct 17
6
Error Executing sampledec in VC++
...0x004010fa in SPXDEC.exe: 0xC0000005: Access
violation reading location 0x0000000c.
Unhandled exception at 0x004010fa in SPXDEC.exe: 0xC0000005: Access
violation reading location 0x0000000c.
It looks like the same error. I've attached the code below
Thanks,
Mon
Portion of the revised code:
decstate = speex_decoder_init (&speex_nb_mode);
// Set default options for decoding:
temp = 1;
speex_decoder_ctl(decstate, SPEEX_SET_ENH, &temp);
// Initialize spxbits (structure SpeexBits)
speex_bits_init (&spxbits);
while (!(feof(fo))) // this is where the problem starts
{
fread (&nbByte...
2005 Oct 17
3
Error Executing sampledec in VC++
...#include "speex/speex.h"
#include <stdio.h>
#include <iostream.h>
void main ()
{
// Definitions
#define FRAME_SIZE 160
#define FIXED_POINT
// Variable Declarations
FILE *fo, *fs;
short spx [FRAME_SIZE];
float pcm [FRAME_SIZE];
char cbits [200];
int nbBytes, n, temp;
void *decstate;
SpeexBits spxbits;
// Program starts here:
cout << "Starting spxdec...\n";
fo = fopen("samp.spx","rb");
if (fo == NULL)
cout << "Error!\n";
else
cout << "Okay!\n";
fs = fopen ("pcmfile", "wb");
if (fs == N...
2013 May 09
1
Moving from Speex to Opus (question 2)
...bit, I had the following cpp file:
#include "StdAfx.h"
#include "spxcodec.h"
#define MAX_FRAME_SIZE 2000
#define MAX_FRAME_BYTES 2000
CSpxCodec::CSpxCodec() : enh(1), rate(8000)
{
}
CSpxCodec::~CSpxCodec()
{
}
void CSpxCodec::Init()
{
speex_bits_init(&bits);
decstate = speex_decoder_init(&speex_nb_mode);
speex_decoder_ctl(decstate, SPEEX_SET_SAMPLING_RATE, &rate);
speex_decoder_ctl(decstate, SPEEX_SET_ENH, &enh);
int iFrameSize=0;
speex_decoder_ctl(decstate, SPEEX_GET_FRAME_SIZE, &iFrameSize);
}
void CSpxCodec::Free()
{...
2005 Oct 17
0
Error Executing sampledec in VC++
...4010fa in SPXDEC.exe: 0xC0000005: Access
violation reading location 0x0000000c.
Unhandled exception at 0x004010fa in SPXDEC.exe: 0xC0000005: Access
violation reading location 0x0000000c.
It looks like the same error. I've attached the code below
Thanks,
Mon
Portion of the revised code:
decstate = speex_decoder_init (&speex_nb_mode);
// Set default options for decoding:
temp = 1;
speex_decoder_ctl(decstate, SPEEX_SET_ENH, &temp);
// Initialize spxbits (structure SpeexBits)
speex_bits_init (&spxbits);
while (!(feof(fo))) // this is where the problem...
2007 Apr 11
0
Problem with speex
...please send me correct compiled DLL and example of correct using
SPEEX_MODEID_WB and SPEEX_MODEID_UWB , denoise, and other effects.
How I can set MONO mode in decode?
My Code:
smpRt:=32000;
n:=10;
encbits: TSpeexBits;
encstate: Pointer;
encframe: integer;
decbits: TSpeexBits;
decstate: Pointer;
decframe: integer;
buffEnc: array of single;
buffDec: array of single;
encstate := speex_encoder_init(speex_lib_get_mode(SPEEX_MODEID_WB));
speex_encoder_ctl(encstate,SPEEX_SET_SAMPLING_RATE,@smpRt);
speex_encoder_ctl(encstate,SPEEX_SET_QUALITY,@n);
speex_encoder_ctl(encstate...
2004 Aug 06
2
Port to uClinux
...Linux-derivate
for mmu-less systems. I'm particulary interested in the alloc()'s the
library does, and it's stack usage.
In nb_celp.c I found two lines of code doing memory allocation :
nb_celp.c: st = (EncState*)speex_alloc(sizeof(EncState)+8000*sizeof(float));
nb_celp.c: st = (DecState*)speex_alloc(sizeof(DecState)+4000*sizeof(float));
Where do these magic numbers 8000 and 4000 come from ? If I decrease those
to 4000 and 2000, my test app still works (just lucky ?). Is there a way to
know what the minimal size should be for a particular bitrate / quality /
etc ?
Regards,
/Ico...
2005 Oct 17
0
Error Executing sampledec in VC++
...nclude <iostream.h>
void main ()
{
// Definitions
#define FRAME_SIZE 160
#define FIXED_POINT
// Variable Declarations
FILE *fo, *fs;
short spx [FRAME_SIZE];
float pcm [FRAME_SIZE];
char cbits [200];
int nbBytes, n, temp;
void *decstate;
SpeexBits spxbits;
// Program starts here:
cout << "Starting spxdec...\n";
fo = fopen("samp.spx","rb");
if (fo == NULL)
cout << "Error!\n";
else
cout << "Okay!\n";...
2005 Feb 19
2
memory usage
...attempted to be alloced, which failed:
src/nb_celp.c:
void *nb_encoder_init(const SpeexMode *m)
{
/* snip */
st = (EncState*)speex_alloc(sizeof(EncState)+8000*sizeof(spx_sig_t));
/* snip */
}
same goes for the decoder:
void *nb_decoder_init(const SpeexMode *m)
{
/* snip */
st = (DecState *)speex_alloc(sizeof(DecState)+4000*sizeof(spx_sig_t));
/* snip */
}
I tried to reduce the stacksize from 8000/4000 to say 2000/1000,
and reduce buffer size to 160 bytes:
src/modes.c:
/* Default mode for narrowband */
static const SpeexNBMode nb_mode = {
160, /*frameSize*/
40, /...
2005 May 25
1
Deallocation of buffers
I noticed that in the narrow band and wide band destroy functions only
the main pointer is being freed. I think that it should be:
void nb_decoder_destroy(void *state)
{
DecState *st;
st=(DecState*)state;
speex_free (st->inBuf);
speex_free (st->excBuf);
speex_free (st->innov);
speex_free (st->interp_qlpc);
speex_free (st->qlsp);
speex_free (st->old_qlsp);
speex_free (st->interp_qlsp);
speex_free (st->mem_sp);...
2005 Jul 20
1
Speex Windows from 1.1.6 source
...*******/
/* Flush all the bits in the struct so we can code a new frame */
speex_bits_reset(&Decbits);
/* Copy the data into the bit-stream struct */
speex_bits_read_from(&Decbits, InputBuf, InputSize);
/* Get the Size of the Decoded Frame */
speex_decoder_ctl(decState, SPEEX_GET_FRAME_SIZE, &iDecBytes);
if(iIndex > outputSize)
return -1;
iIndex = iDecBytes/sizeof(short);
/* Allocate the Decode Frame */
memset(pfDecBuf,0,sizeof(200 * sizeof(float)));
/* Decode the data */
speex_decode(decState, &Decbits, pfDecBuf);
me...
2018 Nov 03
2
Red Hat is Planning To Deprecate KDE on RHEL By 2024
On 03/11/18 02:31, Robert Heller wrote:
<snip>
> Yeah, there are very few of us that completely skipped
> MS-DOS/MS-Windows/MacOS-Clasic and *never* used a graphical file manager or
> any of the eye-candy that people now believe is "standard" or "normal". I
> went from VMS on a VT<whatever> to a VAXStation 2000 to a VAXStation 3000, to
>
2004 Aug 06
0
Port to uClinux
...systems. I'm particulary interested in the alloc()'s the
> library does, and it's stack usage.
>
> In nb_celp.c I found two lines of code doing memory allocation :
>
> nb_celp.c: st = (EncState*)speex_alloc(sizeof(EncState)+8000*sizeof(float));
> nb_celp.c: st = (DecState*)speex_alloc(sizeof(DecState)+4000*sizeof(float));
>
> Where do these magic numbers 8000 and 4000 come from ? If I decrease those
> to 4000 and 2000, my test app still works (just lucky ?). Is there a way to
> know what the minimal size should be for a particular bitrate / quality /
&g...
2005 Feb 19
0
memory usage
...encoder_init(const SpeexMode *m)
> {
> /* snip */
> st = (EncState*)speex_alloc(sizeof(EncState)+8000*sizeof(spx_sig_t));
> /* snip */
> }
>
>
> same goes for the decoder:
>
> void *nb_decoder_init(const SpeexMode *m)
> {
> /* snip */
> st = (DecState *)speex_alloc(sizeof(DecState)+4000*sizeof(spx_sig_t));
> /* snip */
> }
>
> I tried to reduce the stacksize from 8000/4000 to say 2000/1000,
> and reduce buffer size to 160 bytes:
>
>
> src/modes.c:
>
> /* Default mode for narrowband */
> static const SpeexN...
2011 Dec 23
2
Decoding only a certain frame results in different values than when decoding the entire file
My file is 3 hours long, so decoding takes around 5 minutes on an
average computer.
That is a bit too long unfortunately...
Am 23.12.2011 20:38, schrieb Steve Checkoway:
> On Dec 23, 2011, at 10:54, Hermann Weber<hermie.weber at gmx.de> wrote:
>
>> And how many frames does Speex need to "recover"?
>> Or is that not predictable?
> No idea. My guess is not
2018 Nov 02
2
Red Hat is Planning To Deprecate KDE on RHEL By 2024
On 11/2/18 3:35 PM, Robert Heller wrote:
> At Fri, 2 Nov 2018 14:02:56 -0600 CentOS mailing list <centos at centos.org> wrote:
>
>>
>> https://www.theregister.co.uk/2018/11/02/rhel_deprecates_kde/
>>
>> That's still several years in the future, of course.
>>
>> I use Mate on all of my machines rather than Gnome or KDE and I'm sure
>>
2007 Aug 29
2
high-pass filter issues
...spx_mem_t enc_mem_sp[ENC_MEM_SP_SIZE];
spx_mem_t enc_mem_sw[ENC_MEM_SW_SIZE];
spx_mem_t enc_mem_sw_whole[ENC_SW_WHOLE_SIZE];
spx_mem_t enc_mem_exc[ENC_MEM_EXC_SIZE];
spx_mem_t enc_memexc2[ENC_MEM_EXC2_SIZE];
spx_word32_t enc_pi_gain[ENC_PI_GAIN_SIZE];
int enc_pitch[ENC_PITCH_SIZE];
DecState dec_state;
char dec_stack[NB_DEC_STACK];
spx_word16_t dec_excbuf[DEC_EXCBUF_SIZE];
spx_coef_t dec_interp_qlpc[DEC_INTERP_QLPC_SIZE];
spx_lsp_t dec_old_qlsp[DEC_OLD_QLSP_SIZE];
spx_mem_t dec_mem_sp[DEC_MEM_SP_SIZE];
spx_word32_t dec_pi_gain[DEC_PI_GAIN_SIZE];
#endif
I noticed that w...
2005 May 25
3
Speex on TI C6x, Problem with TI C5x Patch
...67;
if (sig<-32767)
sig = -32767;
in[i]=sig;
}
#endif
if (SUBMODE(innovation_quant) == noise_codebook_quant ||
st->submodeID==0)
st->bounded_pitch = 1;
else
st->bounded_pitch = 0;
return 1;
}
void *nb_decoder_init(const SpeexMode *m)
{
DecState *st;
const SpeexNBMode *mode;
int i;
mode=(const SpeexNBMode*)m->mode;
#if defined(VAR_ARRAYS) || defined (USE_ALLOCA)
st = (DecState *)speex_alloc(sizeof(DecState));
st->stack = NULL;
#else
st = (DecState *)speex_alloc(sizeof(DecState)+4000*sizeof(spx_sig_t));
st->st...
2011 Dec 21
3
Decoding only a certain frame results in different values than when decoding the entire file
...short out[MAX_FRAME_SIZE];
unsigned int i,j;
unsigned char* tout; tout = (unsigned char*)&out;
for (i=0; i<(Dinlen/62); i++)
{
for (j=0;j<62;j++) cbits[j] = DinBuf[(i*62)+j];
speex_bits_read_from(&bits, cbits, 62);
speex_decode(decstate, &bits, output);
for (j=0;j<160;j++) DoutBuf[j+(i*160)] = output[j];
}
return 43;
}
Btw, just if you wondering what I am doing... I am feeding (62 *
NumberOfFramesThatIWantToRead) bytes from VB6 and return it as a float
array.
Greetings,
Hermann
Am 21.12.2011 15...
2018 Nov 03
0
Red Hat is Planning To Deprecate KDE on RHEL By 2024
At Sat, 3 Nov 2018 14:38:03 +0000 J Martin Rushton <martinrushton56 at btinternet.com>, CentOS mailing list <centos at centos.org> wrote:
>
>
> From: J Martin Rushton <martinrushton56 at btinternet.com>
> To: centos at centos.org
> Message-ID: <8a7a2aea-33da-9f3c-00a1-c6471fa02683 at btinternet.com>
> Subject: Re: [CentOS] Red Hat is Planning To
2006 Aug 18
0
Please test upcoming release
...94 29 65 87
Skype: alfredheggestad
-------------- next part --------------
Index: libspeex/nb_celp.c
===================================================================
--- libspeex/nb_celp.c (revision 11792)
+++ libspeex/nb_celp.c (working copy)
@@ -1145,7 +1145,7 @@
static void nb_decode_lost(DecState *st, spx_word16_t *out, char *stack)
{
- int i, sub;
+ int i;
int pitch_val;
spx_word16_t pitch_gain;
spx_word16_t fact;