Displaying 20 results from an estimated 81 matches for "speex_encoder_destroy".
2005 Jun 22
2
Deallocation bug in speex
...ted it),
a segmentation fault occurs in nb_celp.c:229:
#0 0x7c96df51 in $R000000 ()
#1 0x00c80000 in ?? ()
#2 0x7c94a5d0 in $R000000 ()
#3 0x7c9268ad in $R000000 ()
#4 0x77c2c2de in $R000000 ()
#5 0x657c380e in nb_encoder_destroy (state=0x41426b0) at nb_celp.c:229
#6 0x657bac1f in speex_encoder_destroy (state=0x41426b0) at speex.c:62
#7 0x657c0003 in sb_encoder_destroy (state=0x4156be8) at sb_celp.c:339
#8 0x657bac1f in speex_encoder_destroy (state=0x4156be8) at speex.c:62
#9 0x657c0003 in sb_encoder_destroy (state=0x4156b60) at sb_celp.c:339
#10 0x657bac1f in speex_encoder_destroy (state=...
2005 Feb 21
2
1.1.6 Manual sampledec.c mistake
Hi,
The manual 1.1.6 of sampledec.c says that
/*Destroy the decoder state*/
speex_encoder_destroy(state);
Should it be be
/*Destroy the decoder state*/
speex_decoder_destroy(state);
instead?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.xiph.org/pipermail/speex-dev/attachments/20050221/c460253b/attachment.html
2005 Jun 22
0
Deallocation bug in speex
...x7c96df51 in $R000000 ()
>
> #1 0x00c80000 in ?? ()
>
> #2 0x7c94a5d0 in $R000000 ()
>
> #3 0x7c9268ad in $R000000 ()
>
> #4 0x77c2c2de in $R000000 ()
>
> #5 0x657c380e in nb_encoder_destroy (state=0x41426b0) at
> nb_celp.c:229
>
> #6 0x657bac1f in speex_encoder_destroy (state=0x41426b0) at
> speex.c:62
>
> #7 0x657c0003 in sb_encoder_destroy (state=0x4156be8) at
> sb_celp.c:339
>
> #8 0x657bac1f in speex_encoder_destroy (state=0x4156be8) at
> speex.c:62
>
> #9 0x657c0003 in sb_encoder_destroy (state=0x4156b60) at
> sb_celp.c:33...
2007 Dec 10
1
SpeexCodec run in linux of decode
Hi , may I ask some question about the decode files?
here is my decode.c
but when the program run to speex_encoder_destroy(state);
It shows that segmentation fault ,I feel comfused, could you tell
thanks!
#define MAX_FRAME_SIZE 320
int main()
{
FILE *fout;
char *inFile;
FILE *fin;
short out[MAX_FRAME_SIZE];
char cbits[200];
int nbBytes;
void *state;
SpeexBits bits;
//int tmp;
int m_frame_size;
speex_bits_in...
2005 Feb 09
2
encoding speex, (insanity looming)
...// understand why it would segfault?
speex_decode(dec_state, &dec_bits, pcm_out);
// save the encoded data to a file
write(file, pcm_out, sizeof(short) * frame_size);
...
// clean up encoder
speex_bits_destroy(&enc_bits);
speex_encoder_destroy(&enc_state);
// clean up decoder
speex_bits_destroy(&dec_bits);
speex_encoder_destroy(&dec_state);
// close file
fsync(file);
close(file);
2007 Apr 03
2
Please help, very important (not for fun)
...rence to `speex_bits_init'
sampleenc.cc:(.text+0xea): undefined reference to `speex_bits_reset'
sampleenc.cc:(.text+0x106): undefined reference to `speex_encode'
sampleenc.cc:(.text+0x123): undefined reference to `speex_bits_write'
sampleenc.cc:(.text+0x181): undefined reference to `speex_encoder_destroy'
sampleenc.cc:(.text+0x18c): undefined reference to `speex_bits_destroy'
/tmp/ccXKa3LF.o:(.eh_frame+0x11): undefined reference to
`__gxx_personality_v0'
collect2: ld returned 1 exit status
Can anyone help me through the process, I am really lost.
Thanks a million
Suhaib
-------------...
2005 Jan 05
4
Encoding and decoding problem in speex 1.0.4
...= speexShort;
}
// Encode the sound data using the float buffer
speex_bits_reset(&mBits);
speex_encode(mEncode, speexFloat, &mBits);
encodeSize = speex_bits_write(&mBits, encodedBuffer,
RECBUFFER/2);
/*Destroy the encoder state*/
speex_encoder_destroy(mEncode);
/*Destroy the bit-stream struct*/
speex_bits_destroy(&mBits);
// Return the encoded buffer
return encodedBuffer;
}
Here i noticed that though my captured audio data is 2000 bytes the
compressed form is
always 38 bytes. In the speexFloat array above i get...
2005 Dec 06
1
problems decoding speex... please help
...in);
speex_bits_read_from(&bits, cbits, nBytes);
speex_decode_int(state, &bits, out);
fwrite(out, sizeof(short), FrameSize, fout);
BitRate++;
}
printf ("nBytes is %i.\n",nBytes);
printf ("Decoded %i frames\n",BitRate);
speex_encoder_destroy(state);
speex_bits_destroy(&bits);
fclose (fin);
fclose(fout);
return 0;
}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.xiph.org/pipermail/speex-dev/attachments/20051206/a588485a/attachment.html
2006 Oct 12
1
Problem with encoding and decoding
...e the size of the frame first. This is what sampledec
expects but
it's likely to be different in your own application*/
fwrite(&nbBytes, sizeof(int), 1, fin);
/*Write the compressed data*/
fwrite(cbits, 1, nbBytes, fin);
}
/*Destroy the encoder state*/
speex_encoder_destroy(state);
/*Destroy the bit-packing struct*/
speex_bits_destroy(&bits);
fclose(fin);
return 0;
}
and decoding
#include <speex.h>
#include <stdio.h>
#include <sys/ioctl.h>
#include <sys/soundcard.h>
#include <fcntl.h>
/*The frame size in hardcoded f...
2007 Aug 06
2
Attempting to shrink speex: Are these functions necessary?
...ero16
qmf_decomp
qmf_synth
In ltp.c:
forced_pitch_quant
forced_pitch_unquant
In math_approx.c:
spx_ilog2
_spx_cos_pi_2
spx_cos_norm
spx_exp2
spx_atan
In nb_celp.c:
nb_encoder_destroy
nb_decoder_destroy
In quant_lsp.c:
lsp_quant_nb
lsp_unquant_nb
lsp_quant_high
lsp_unquant_high
In speex.c:
speex_encoder_destroy
speex_decoder_destroy
speex_encode
speex_decode
nb_mode_query
wb_mode_query
speex_lib_ctl
In speex_callbacks.c:
speex_inband_handler
speex_std_mode_request_handler
speex_std_low_mode_request_handler
speex_std_high_mode_request_handler
speex_std_vbr_request_handler
speex_std_enh_request_handler
sp...
2005 Feb 21
2
1.1.6 Manual sampledec.c mistake
...wever, the trouble shooting part could be on a wiki.
Do you volunteer?
Jean-Marc
> Claude
>
> On Mon, 2005-02-21 at 21:35 +0800, James Oh wrote:
> > Hi,
> >
> > The manual 1.1.6 of sampledec.c says that
> >
> > /*Destroy the decoder state*/
> > speex_encoder_destroy(state);
> >
> > Should it be be
> >
> > /*Destroy the decoder state*/
> > speex_decoder_destroy(state);
> >
> > instead?
> > _______________________________________________
> > Speex-dev mailing list
> > Speex-dev@xiph.org
> >...
2005 Dec 28
2
Experimental psycho-acoustic model
Hi everyone,
For those who like to play with experimental stuff, I've got something
new to test. If you compile with --enable-vorbis-psy , Speex uses a
variant of the Vorbis psycho-acoustic model to shape the coding noise.
So far, I've obtained a slight increase in quality, but I'm interested
in feedback from others. This still needs a lot of tuning and has
received only a minimal
2006 Jun 10
1
[PATCH] bug in sample code sampledec.c
...r of the "decoder" state, this
patch should fix it:
Index: doc/sampledec.c
===================================================================
--- doc/sampledec.c (revision 11555)
+++ doc/sampledec.c (working copy)
@@ -57,7 +57,7 @@
}
/*Destroy the decoder state*/
- speex_encoder_destroy(state);
+ speex_decoder_destroy(state);
/*Destroy the bit-stream truct*/
speex_bits_destroy(&bits);
fclose(fout);
--
Alfred E. Heggestad <aeh@db.org>
Web: http://aeh.db.org/
VoIP: <sip:alfredh@symbianos.org>
Phone: +47 21 98 71 20
Mobile: +47 98 23 67 05
S...
2007 Jun 01
1
help on Blackfin
...'speex_decoder_init [_speex_decoder_init]' referenced from
'Debug\Process_data.doj'
'speex_encode_int [_speex_encode_int]' referenced from
'Debug\Process_data.doj'
'speex_encoder_ctl [_speex_encoder_ctl]' referenced from
'Debug\Process_data.doj'
'speex_encoder_destroy [_speex_encoder_destroy]' referenced from
'Debug\Process_data.doj'
'speex_encoder_init [_speex_encoder_init]' referenced from
'Debug\Process_data.doj'
'speex_nb_mode [_speex_nb_mode]' referenced from 'Debug\Process_data.doj'
Linker finished with 1 error...
2004 Aug 06
1
LIB usage
...1024);
speex_bits_reset(&bits);
speex_encode(enc_state, input_frame, &bits);
nBytesFrame = speex_bits_nbytes(&bits);
nbBytes = speex_bits_write(&bits, byte_ptr, nBytesFrame);
write_to_file(fd2, byte_ptr, nbBytes);
}
speex_bits_destroy(&bits);
speex_encoder_destroy(enc_state);
<p>Thank you
Bruno Rodrigues
--- >8 ----
List archives: http://www.xiph.org/archives/
Ogg project homepage: http://www.xiph.org/ogg/
To unsubscribe from this list, send a message to 'speex-dev-request@xiph.org'
containing only the word 'unsubscribe' in the bod...
2004 Sep 29
1
ARM w/ assembly & fixed point crash
...00; i++) {
t1 = cyg_current_time();
speex_encode(enc_state, speex_frame, &bits);
t2 = cyg_current_time();
speex_frame += (frame_size / sizeof(speex_frame));
printf("Frame: %d (%lld ticks)\n", i, (t2 - t1));
}
printf("\n");
speex_bits_destroy(&bits);
speex_encoder_destroy(enc_state);
return 0;
}
Compiling with -DFIXED_POINT, or -DFIXED_POINT/-DFIXED_ARM it works
totally fine (in ARM or Thumb mode). Compiling with either of these and
-DARM_ASM seems to cause it to crash.
(gdb) where
#0 0x0004b324 in MULT16_16 (x=0, y=1310) at fixed_arm.h:57
#1 0x00044284 in...
2005 Jun 22
1
Newbie - Encoding PCM
...>speex_mode); */
IDA->speex_mode = speex_lib_get_mode(SPEEX_MODEID_NB);
speex_bits_init(&IDA->speex_bits);
IDA->speex_state = speex_encoder_init(IDA->speex_mode);
}
int SPEEX_Close(struct _IDA_ClientSocket *IDA) {
speex_bits_destroy(&IDA->speex_bits);
speex_encoder_destroy(IDA->speex_state);
}
"IDA" struct containts:
struct _IDA_ClientSocket {
[...]
void *speex_state;
SpeexHeader speex_header;
SpeexBits speex_bits;
SpeexMode *speex_mode;
};
so i call SPEEX_Init before start encoding and SPEEX_Encode on every 16000
Bits of the PCM...
2005 Sep 03
2
Library export file for Win32 (patch)
...at one.
-------------- next part --------------
Index: speex.def
===================================================================
--- speex.def (revision 9882)
+++ speex.def (working copy)
@@ -2,49 +2,71 @@
; speex.def
;
LIBRARY
+NAME libspeex.dll
EXPORTS
;
-speex_encoder_init
-speex_encoder_destroy
-speex_encode
-speex_encoder_ctl
-speex_decoder_init
-speex_decoder_destroy
-speex_decode
-speex_decoder_ctl
-speex_mode_query
-speex_lib_ctl
-speex_lib_get_mode
-speex_bits_init
-speex_bits_init_buffer
-speex_bits_destroy
-speex_bits_reset
-speex_bits_rewind
-speex_bits_read_from
-...
2005 Dec 31
3
Experimental psycho-acoustic model
> When enabling and compiling this with mingw on Win32, my debugger
> complains about heap overruns when calling speex_encoder_destroy(). This
> could be a mingw issue though, as I also found a stackalignment bug which
> prevents me from _USING_SSE (apparantly -mpreferred-stack-size is just
> "prefered" and therefore ignored... *Sigh*).
Just so I understand, the debugger complains, but the code still runs?
W...
2005 Feb 09
0
encoding speex, (insanity looming)
...// understand why it would segfault?
speex_decode(dec_state, &dec_bits, pcm_out);
// save the encoded data to a file
write(file, pcm_out, sizeof(short) * frame_size);
...
// clean up encoder
speex_bits_destroy(&enc_bits);
speex_encoder_destroy(&enc_state);
// clean up decoder
speex_bits_destroy(&dec_bits);
speex_encoder_destroy(&dec_state);
// close file
fsync(file);
close(file);
_______________________________________________
Speex-dev mailing list
Speex-dev@xiph.org
http://lists.x...