search for: speex_bits_unpack_unsigned

Displaying 20 results from an estimated 23 matches for "speex_bits_unpack_unsigned".

2007 Feb 26
3
probably heap corruption detection
Hi, So I see in: split_cb_shape_sign_unquant this call is going wrong: ind[i] = speex_bits_unpack_unsigned(bits, params->shape_bits); ind as a way negative number- basically this should return bet. 0-255 or somesuch right? So seems like I need to reset speex at this point if if (ind[i] > 256) like the note says. So I guess my question is is this range still valid? also what is the most innocu...
2008 Mar 29
0
GCC/ELF Visibility patch
..., int data, int nbBits) +EXPORT void speex_bits_pack(SpeexBits *bits, int data, int nbBits) { unsigned int d=data; @@ -269,7 +269,7 @@ } } -int speex_bits_unpack_signed(SpeexBits *bits, int nbBits) +EXPORT int speex_bits_unpack_signed(SpeexBits *bits, int nbBits) { unsigned int d=speex_bits_unpack_unsigned(bits,nbBits); /* If number is negative */ @@ -280,7 +280,7 @@ return d; } -unsigned int speex_bits_unpack_unsigned(SpeexBits *bits, int nbBits) +EXPORT unsigned int speex_bits_unpack_unsigned(SpeexBits *bits, int nbBits) { unsigned int d=0; if ((bits->charPtr<<LOG2_BITS...
2008 Mar 29
2
GCC/ELF Visibility patch (fwd)
..., int data, int nbBits) +EXPORT void speex_bits_pack(SpeexBits *bits, int data, int nbBits) { unsigned int d=data; @@ -269,7 +269,7 @@ } } -int speex_bits_unpack_signed(SpeexBits *bits, int nbBits) +EXPORT int speex_bits_unpack_signed(SpeexBits *bits, int nbBits) { unsigned int d=speex_bits_unpack_unsigned(bits,nbBits); /* If number is negative */ @@ -280,7 +280,7 @@ return d; } -unsigned int speex_bits_unpack_unsigned(SpeexBits *bits, int nbBits) +EXPORT unsigned int speex_bits_unpack_unsigned(SpeexBits *bits, int nbBits) { unsigned int d=0; if ((bits->charPtr<<LOG2_BITS...
2006 Mar 21
2
Who is using the jitter buffer?
Oh, I forgot to mention one thing. I currently append a few bits of custom information to each speex packet which I fetch out with things like speex_bits_unpack_unsigned(&sjJitter.current_packet, 1); It would be very usefull if the jitter buffer didn't actually decode the packet, but instead returned a pointer to it (or NULL if you should play silence and -1 if you should repeat the last packet again). If you're making a more generic API, it would a...
2004 Aug 06
2
SPEEX_SET_USER_HANDLER once again
...***********/ /************************************* decoder *********************************************/ int CSpeexDecoderThread::SpeexUserCallback(SpeexBits *bits, void *state, void *data){ ... // read the array index of the corresponding sync structure int index = speex_bits_unpack_unsigned(bits, 8); SendNotifyMessage(l_sdthread->m_hWnd, USER_PLAYBACK_MESSAGE, SYNC_DATA, LPARAM(index)); return 0; } inline int speex_bits_init_buffer_ex(SpeexBits *bits, void *buff, int buf_size){ if (buff == NULL || buf_size == 0) retu...
2007 Jul 24
0
Shoehorning speex is confusing a newbie
...rrowed down where the problem is coming from but I have no idea why it is happening. my problem is that when I go to decode my data the decoder doesn't do anything a lot of the time because it goes here: if (speex_bits_remaining(bits)<5) return -1; wideband = speex_bits_unpack_unsigned(bits, 1); if (wideband) /* Skip wideband block (for compatibility) */ { //int submode; int advance; advance = /*submode =*/ speex_bits_unpack_unsigned(bits, SB_SUBMODE_BITS); speex_mode_query(&speex_wb_mode, SPEEX_SUBMODE_BITS_PE...
2005 Sep 03
2
Library export file for Win32 (patch)
...ode_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 -speex_bits_read_whole_bytes -speex_bits_write -speex_bits_write_whole_bytes -speex_bits_pack -speex_bits_unpack_signed -speex_bits_unpack_unsigned -speex_bits_nbytes -speex_bits_peek_unsigned -speex_bits_peek -speex_bits_advance -speex_bits_remaining -speex_bits_insert_terminator -speex_inband_handler -speex_std_mode_request_handler -speex_std_high_mode_request_handler -speex_std_char_handler -speex_default_user_handler -speex_std...
2007 Jul 24
0
Shoehorning speex is confusing a newbie
...down where the problem is coming from but I have no idea why it is happening. my problem is that when I go to decode my data the decoder doesn't do anything a lot of the time because it goes here: if (speex_bits_remaining(bits)<5) return -1; wideband = speex_bits_unpack_unsigned(bits, 1); if (wideband) /* Skip wideband block (for compatibility) */ { //int submode; int advance; advance = /*submode =*/ speex_bits_unpack_unsigned(bits, SB_SUBMODE_BITS); speex_mode_query(&speex_wb_mode, SPEEX_SUB...
2009 Jun 14
1
Resampler saturation, blackfin performance
...7% iir_mem16 2.75% qmf_synth 2.32% lsp_to_lpc 2.32% open_loop_nbest_pitch 1.41% compute_impulse_response 1.37% qmf_decomp 1.28% lpc_to_lsp 1.26% fir_mem16 1.16% speex_bits_pack 1.07% speex_bits_unpack_unsigned 0.86% compute_rms16 0.79% 4. I'm using the echo-canceller + preprocessor, I'd really like to improve performance here: - I would like to use ADI's FFT, but it's limited to powers of 2, is it safe to enable "Round ps_size down to the nearest power of two" in...
2009 Feb 13
1
"More than two wideband layers found. The stream is corrupted." problem
...udden, the STDOUT window appears and a huge list of the error messages "More than two wideband layers found. The stream is corrupted." flood the screen of the phone (btw: pretty scary sight :-) I found the message in the file nb_celp.c, in this section of code: wideband = speex_bits_unpack_unsigned(bits, 1); if (wideband) { speex_notify("More than two wideband layers found. The stream is corrupted."); return -2; } Does this error look familiar to any of you? How did I manage to corrupt the Speex state...
2011 Jul 26
3
More frames in one packet
After searching the mailing list archive (I forgot to do that before posting, sorry!) I found the solutions: 1) The documentation has a mistake: The bit terminator is NOT set automatically! (I'm using the latest speex version!) It has to be set manually using speex_bits_insert_terminator(&bits); 2) speex_decoder_int() has to be called as long, as it returns -1. After that, all frames
2005 May 25
3
Speex on TI C6x, Problem with TI C5x Patch
...d we do anyway) */ if (!bits) { nb_decode_lost(st, out, stack); return 0; } /* Search for next narrowband block (handle requests, skip wideband blocks) */ do { if (speex_bits_remaining(bits)<5) return -1; wideband = speex_bits_unpack_unsigned(bits, 1); if (wideband) /* Skip wideband block (for compatibility) */ { int submode; int advance; advance = submode = speex_bits_unpack_unsigned(bits, SB_SUBMODE_BITS); speex_mode_query(&speex_wb_mode, SPEEX_SUBMODE_BITS_PER_FRA...
2004 Aug 06
2
AW: SPEEX_SET_USER_HANDLER once again
...&bits, cbits, MAX_FRAME_BYTES); ... // write the encoded data into the end buffer ... speex_bits_reset(&bits); ... } int CSpeexDecoderThread::SpeexUserCallback(SpeexBits *bits, void *state, void *data){ int length = speex_bits_unpack_unsigned(bits, 4); int inedx = speex_bits_unpack_unsigned(bits, length * 8); <p> SendNotifyMessage(l_sdthread->m_hWnd, USER_PLAYBACK_MESSAGE, SYNC_DATA, LPARAM(index)); return 0; } <p><p><p><p><p><p><p><p>--- >8 ---- List ar...
2007 Jul 24
0
Shoehorning speex is confusing a newbie
...rrowed down where the problem is coming from but I have no idea why it is happening. my problem is that when I go to decode my data the decoder doesn't do anything a lot of the time because it goes here: if (speex_bits_remaining(bits)<5) return -1; wideband = speex_bits_unpack_unsigned(bits, 1); if (wideband) /* Skip wideband block (for compatibility) */ { //int submode; int advance; advance = /*submode =*/ speex_bits_unpack_unsigned(bits, SB_SUBMODE_BITS); speex_mode_query(&speex_wb_mode, SPEEX_SUBMODE_BITS_PE...
2004 Aug 06
1
[PATCH] Re: Decoding .spx with 1.0 on ppc produces noise!
...l need to map everything to bigendian before > decoding ... > I have spent some time looking into this now... The file only has 'endianness' in the header, as that is the only place it stores multi-byte quantities directly. All other numerical quantities are un-packed bit-by-bit by speex_bits_unpack_unsigned, which will be guaranteed to work OK on any host platform. Thus the input to the decoder is OK. However, what happens to the output is another problem. The speexdec decoder tells the OSS output driver that the data format is Little Endian. It also converts the data from native endian to little end...
2007 Aug 06
2
11kbps narrowband on a 24bit DSP
...8] exc_8_128_table[1024] Have I missed any? 3. I would like to estimate the code space and duty cycle requirements using fix point 11kbps narrowband decode. I think I have identified most of the routines that use most of the duty cycle but I am not sure if I have found them all. speex_bits_unpack_unsigned() peex_bits_unpack_signed() split_cb_shape_sign_unquant() pitch_unquant_3tap() lsp_unquant_lbr() I will be porting there routines to assembly and would like to know that I have a chance of fitting them in the 2K I have free. Is there a minimal list of decode routines...
2007 Jul 23
2
Shoehorning speex is confusing a newbie
...if (st->voc_offset>=0) exc[st->voc_offset]=sqrt(1.0*ol_pitch); st->voc_offset+=ol_pitch; } because both voc_offset and ol_pitch is = 0 because this code is never entered: if (SUBMODE(lbr_pitch)!=-1) { ol_pitch = st->min_pitch+speex_bits_unpack_unsigned(bits, 7); } This is how I set up the decoder: dec = speex_decoder_init(&speex_nb_mode); speex_bits_set_bit_buffer(&bits, &Speex_enc_buffer[0 + COMPRESS_LENGTH*Speex_player_frame], COMPRESS_LENGTH); tmp=0; speex_decoder_ctl(dec, SPEEX_SET_ENH, &tmp); speex_decod...
2004 Aug 06
4
Decoding .spx with 1.0 on ppc produces noise!
Hi, I got my hands on the LCA 2003 CD today and I tried to listen to it on my powerbook running Linux. Instead of getting speech, I got an earfull of noise! Attempting the same experiment on an i386 with the same CD produced understandable speech. It seems that the output routine in speexdec converts the output data to little endian short format, which is incorrect on the ppc architecture. The
2006 Mar 21
0
Who is using the jitter buffer?
...those algo/papers would help to understand better. -- Shantanu --- Thorvald Natvig <speex@natvig.com> wrote: > > Oh, I forgot to mention one thing. I currently > append a few bits of custom > information to each speex packet which I fetch out > with > things like > speex_bits_unpack_unsigned(&sjJitter.current_packet, > 1); > > It would be very usefull if the jitter buffer didn't > actually decode the > packet, but instead returned a pointer to it (or > NULL if you should play > silence and -1 if you should repeat the last packet > again). > > I...
2007 Aug 06
0
11kbps narrowband on a 24bit DSP
...missed any? > > > > 3. I would like to estimate the code space and duty cycle > requirements using fix point 11kbps narrowband decode. I think I have > identified most of the routines that use most of the duty cycle but I am > not sure if I have found them all. > > speex_bits_unpack_unsigned() > > peex_bits_unpack_signed() > > split_cb_shape_sign_unquant() > > pitch_unquant_3tap() > > lsp_unquant_lbr() > > I will be porting there routines to assembly and would like > to know that I have a chance of fitting them in the 2K I have free....