Displaying 4 results from an estimated 4 matches for "celt_encoder_cr".
Did you mean:
celt_encoder_c
2011 Jan 29
2
Memory leak when specifying invalid channels count
Hi
I minor issue I noticed when I passed an invalid 'channels' parameter
to celt_encoder_create() is that celt_encoder_init() doesn't free
the CELTEncoder ('st' parameter) when 'if (channels < 0 || channels > 2)'
evaluates to true.
Seems celt_encoder_init() should do like this instead:
CELTEncoder *celt_encoder_init(CELTEncoder *st, const CELTMode *mode, int
ch...
2010 Mar 03
2
uint decode error on visual studio...
...char* encodedbuffer=(unsigned char*)malloc(bytes_per_packet);
CELTMode* mode=celt_mode_create(gSampleRate,gFrameSize,&error);
if(mode==NULL || error!=CELT_OK)
{
printf("ERROR: celt_mode_create %s\n",celt_strerror(error));
return -1;
}
int offset=0;
int res=0;
CELTEncoder* encoder=celt_encoder_create(mode,gNrChannels,&error);
if(encoder==NULL || error!=CELT_OK)
{
printf("ERROR: celt_encoder_create %s\n",celt_strerror(error));
return -1;
}
while((res=fread(pcmbuffer,sizeof(celt_int16)*gFrameSize*gNrChannels,1,inputfile))==1)
{
int ret=celt_encode(encoder,pcmbuffer,NULL,enco...
2009 May 20
2
Encoder crash in multithreading processing
Hi, I try to work with CELT encoder & decoder in 2 different threads at the
same time.
So I create/destroy encoder and encode in one thread and create/destroy
decoder and decode in other thread.
If I didn't protect celt_encoder_create, celt_encode_float and
celt_decoder_create, celt_decode_float with CRITICAL_SECTION
I get stable error in icwrs32 or ec_byte_write1 (more often) in encoder.
What does it mean ? Is CELT not thread-safe ? Any way to avoid this error
except CRITICAL_SECTION ?
Sergei
ps: I use last version from...
2010 Sep 24
1
Celt 0.7.1 High complexity VS Low complexity
Hi,
I was checking complexity modes of CELT 07.1 encoder. If i got it
correctly everything is driven by pitch_available variable set in
celt_encoder_create function. By default it's set to 1 hence high
complexity mode is used all the time. I tried to disable it and although i
couldn't hear any particular difference in the decoded audio quality, the
cycle count of the encoder dropped of average 40%.
Is there a reason why it has been set...