Displaying 6 results from an estimated 6 matches for "max_nb_bytes".
2004 Aug 06
0
Speex wrapper functions for Visual Basic
...output of the encoder have to be unsigned char because in VB its an
byte array.
Here are my first steps but it don´t work and i don´t come forward. Hopefully someone can help me!
CALL int __stdcall EncodeSpeexFrame (float *input_frame, unsigned char *output_bytes, int input_size)
{
int MAX_NB_BYTES, nbBytes;
char *output_buffer;
unsigned char *temp_buffer;
float *input_buffer;
input_buffer = new float (input_size);
input_buffer = input_frame;
speex_bits_reset(&enc_bits);
speex_encode(enc_state, input_buffer, &enc_bits);...
2012 Mar 10
3
problem: The decoded frame is not as the original one
...decoding it back But The problem is that the decoded frame is totally different from the original frame(see output below).What is the possible reason for this?.thanks for any help
#include<stdio.h>
#include"intel16.h"
#include <speex/speex.h>
#define FRAME_SIZE 160
#define MAX_NB_BYTES 25
SpeexBits bits;
void *enc_state;
int quality=4;??????
int nbBytes;
int byte_ptr;
int frame_size;
short frame[FRAME_SIZE];?
char outBuffer[20];
SpeexBits decBits;
void *dec_state;
short decFrame[FRAME_SIZE];
/*===========END ===============================*/
int z=0;
int frame_size;
int ma...
2005 Jun 06
1
SpeexBits Questions
The example in the documentation demonstrates using speex_bits_reset
before encoding and decoding each frame.
"
speex_bits_reset(&bits);
speex_encode(enc_state, input_frame, &bits);
nbBytes = speex_bits_write(&bits, byte_ptr, MAX_NB_BYTES);
"
What happens if this is not done? I think I'm missing the point of
having a SpeexBits object.
2005 Jun 06
1
SpeexBits Questions
...he documentation demonstrates using speex_bits_reset
>> before encoding and decoding each frame.
>>
>> "
>> speex_bits_reset(&bits);
>>
>> speex_encode(enc_state, input_frame, &bits);
>>
>> nbBytes = speex_bits_write(&bits, byte_ptr, MAX_NB_BYTES);
>> "
>>
>> What happens if this is not done? I think I'm missing the point of
>> having a SpeexBits object.
>>
>>
>> _______________________________________________
>> Speex-dev mailing list
>> Speex-dev@xiph.org
>> http://list...
2012 Mar 11
0
problem: The decoded frame is not as the original one
...decoding it back But The problem is that the decoded frame is totally different from the original frame(see output below).What is the possible reason for this?.thanks for any help
#include<stdio.h>
#include"intel16.h"
#include <speex/speex.h>
#define FRAME_SIZE 160
#define MAX_NB_BYTES 25
SpeexBits bits;
void *enc_state;
int quality=4;??????
int nbBytes;
int byte_ptr;
int frame_size;
short frame[FRAME_SIZE];?
char outBuffer[20];
SpeexBits decBits;
void *dec_state;
short
decFrame[FRAME_SIZE];
/*===========END ===============================*/
int z=0;
int frame_size;
int m...
2007 Sep 19
1
Speex Questions <./Configure %install make [-enable-fixed-point] setting> and Encoding Times etc...
...File ) -> 1.spx (521k)
Encoding Complete!
But
dwStart = GetTickCount();
speex_bits_init(&bits);
enc_state = speex_encoder_init(&speex_nb_mode);
..
speex_bits_reset(&bits);
speex_encode_int(enc_state, input_frame, &bits);
nbBytes = speex_bits_write(&bits, byte_ptr, MAX_NB_BYTES);
..
speex_bits_destroy(&bits);
speex_encoder_destroy(enc_state);
..
dwEnd = GetTickCount();
dwTime = dwEnd - dwStart;
fprintf (stderr, "Speex Decoding TotalTime is : %d sec ",
(dwTime/1000));
--------------------------------------
| Speex Decoding TotalTime is : 900...