Displaying 7 results from an estimated 7 matches for "bytes_per_packet".
2010 Mar 03
2
uint decode error on visual studio...
...pen(encodedfilename,"wb");
if(!encodedfile)
{
printf("ERROR opening %s for writing\n",encodedfilename);
return -1;
}
FILE* outputfile=fopen(outputfilename,"wb");
if(!outputfile)
{
printf("ERROR opening %s for writing\n",outputfilename);
return -1;
}
int bytes_per_packet = ((gBitRate*gFrameSize/gSampleRate+4)/8)*gNrChannels;
int error=0;
celt_int16*
pcmbuffer=(celt_int16*)malloc(sizeof(celt_int16)*gFrameSize*gNrChannels);
unsigned char* encodedbuffer=(unsigned char*)malloc(bytes_per_packet);
CELTMode* mode=celt_mode_create(gSampleRate,gFrameSize,&error);
if(...
2010 Jun 24
2
Getting CELT to work under Windows
...n changing the following line in arch.h:
#define SCALEOUT(a) ((a)*(1/CELT_SIG_SCALE)) to #define SCALEOUT(a)
((a)*(1/(2*CELT_SIG_SCALE)))
The result audio doesn't saturate anymore but it's still completely
broken.
My testvector is:
freq: 44100
channels: 1
I chose: frame_size = 256 and bytes_per_packet = 46.
Does anybody else have this problem? ?Can someone help me finding the
problem?
Regards
Riccardo
Riccardo Micci
Senior DSP Engineer, Wireless Group
Cambridge Consultants
Science Park, Milton Road
Cambridge, CB4 0DW, England
Switchboard: +44 (0)1223 420024
Direct dial: +44 (0)1223 392402...
2010 Jul 07
1
FIXED_POINT
...ted i.e. it jumps from -32768 to
+32767.
I then tried decoding an encoded in floating point mode file with a fixed
point decoder and the other way around. Both are not working.
I'm using CELT 0.7.1.
It shouldn't be relevant but the source file is
freq: 32000
channels: 1
frame_size = 256
bytes_per_packet = 64.
Has anybody had my same problem? Any suggestion?
Thanks
Regards
Riccardo
Riccardo Micci
Senior DSP Engineer, Wireless Group
Cambridge Consultants
Science Park, Milton Road
Cambridge, CB4 0DW, England
Switchboard: +44 (0)1223 420024
Direct dial: +44 (0)1223 392402
Mobile: +44 (0)
Fax: +4...
2011 Apr 15
4
Can I use VBR option to change byte_per_packet dynamically ?
...nd bitrate combinations to get a feel for how CELT behaves,too, like Andrew Lentvorski. But I want to use VBR option.I want to ask a question about VBR in CELT codec.Can we use VBR option in CELT ??? "byte_per_packet" variable in code means constant bit rate, does not it ?In this code : bytes_per_packet is constant.len = celt_encode(enc, in_short, frame_size, data, bytes_per_packet);....."len" is equal "bte_per_packet" evey time.
celt_encoder_ctl(st, CELT_SET_VBR(1);celt_encoder_ctl(st, CELT_SET_VBR_CONSTRAINT(0);May I write two lines codes to active VBR ?Selami Tastan...
2011 Dec 09
0
Porting CELT to the C5515
Jean-marc,
I am trying to port CELT to the ti dsp c5515. I counted a problem when I
try to call a function:
len = celt_encode(enc, in, frame_size, data, bytes_per_packet);
I guess that the problem in the stack allocation variable defined in the
header file stack_alloc.h.
For more info over my platform settings, see the attached files. May be
the global_stack variable is not good configured or not good defined.
Could you telling me if my configuration is OK,...
2010 Jun 07
0
No subject
...arch.h:
> #define SCALEOUT(a) ((a)*(1/CELT_SIG_SCALE)) to #define SCALEOUT(a)
> ((a)*(1/(2*CELT_SIG_SCALE)))
> The result audio doesn't saturate anymore but it's still completely broke=
n.
> My testvector is:
> freq: 44100
> channels: 1
> I chose: frame_size =3D 256 and bytes_per_packet =3D 46.
>
> Does anybody else have this problem? ?Can someone help me finding the
> problem?
>
> Regards
> Riccardo
> ------------------------------------------------------------------------
>
> Riccardo Micci
> Senior DSP Engineer, Wireless Group
>
> *Cambridge...
2011 Oct 03
2
patch: Replace many usleep and some sleep calls with nanosleep
...lazer_initups();
}
Index: b/drivers/isbmex.c
===================================================================
--- a/drivers/isbmex.c 2011-08-17 00:40:17.000000000 +0300
+++ b/drivers/isbmex.c 2011-08-17 00:40:17.000000000 +0300
@@ -180,7 +180,7 @@ static const char *getpacket(int *we_kno
if (bytes_per_packet && r < bytes_per_packet){
ssize_t rr;
D(printf("short read...\n");)
- usleep(500000);
+ struct timespec delay = {0, 500e6}; nanosleep(&delay, NULL);
tv.tv_sec = 2;
tv.tv_usec = 0;
ret=select(upsfd+1, &re...