search for: opus_decoder_ctl

Displaying 5 results from an estimated 5 matches for "opus_decoder_ctl".

2016 Jan 07
2
Issue with decoding 8-bit PCM data
...is 20 MAX_PACKET is 1500 ui8ScaleFactor = 1 for 8-bit and 2 for 16-bit data ui32BitsPerSample = 8 for 8-bit data and 16 for 16-bit data The code is as follows sOpusDec = opus_decoder_create(ui32SamplingRate, ui32Channel, &i32error); if (i32error != OPUS_OK) { return((int)i32error); } opus_decoder_ctl(sOpusDec, OPUS_SET_LSB_DEPTH(ui32BitsPerSample)); ui32SizeOfWrBuf = (ui32SamplingRate*ui32Channel*FRAME_SIZE_IN_MS*ui8ScaleFactor)/1000; opi16_out = (int16_t*)calloc(((ui32SizeOfWrBuf/ui8ScaleFactor)+1),sizeof(int16_t)); pcRdBuf = (uint8_t *)calloc(MAX_PACKET,sizeof(uint8_t)); output_samples = op...
2016 Jan 07
3
Issue with decoding 8-bit PCM data
...Two questions 1. In opusenc.c which API does the extending the 8-bit to 16-bit? 2. If that is the case then how will 24 bit PCM sample work? Regards Amit On Thu, Jan 7, 2016 at 12:21 PM, Ralph Giles <giles at thaumas.net> wrote: > On 07/01/16 10:04 AM, Amit Ashara wrote: > > > opus_decoder_ctl(sOpusDec, OPUS_SET_LSB_DEPTH(ui32BitsPerSample)); > > OPUS_SET_LSB_DEPTH only affects the encoder. If you check the return > value here you should get OPUS_UNIMPLEMENTED. > > > output_samples = opus_decode(sOpusDec, (const unsigned char > > *)&pcRdBuf[0], len, opi16_out,...
2012 Feb 22
0
TI55xx Opus Issues
I am having trouble compiling Opus for my TI55xx project. When I define CONFIG_TI_C55X, I get several compile errors regarding int vs long and int vs opus_int32. (i.e. int *value = va_arg(ap, opus_int32*); in opus_decoder_ctl). Also, shouldn't the following be included at the top of opus_types.h? #ifdef HAVE_CONFIG_H #include "config.h" #endif Thanks. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.xiph.org/pipermail/opus/attachments/20120222/40cd...
2016 Jan 07
0
Issue with decoding 8-bit PCM data
On 07/01/16 10:04 AM, Amit Ashara wrote: > opus_decoder_ctl(sOpusDec, OPUS_SET_LSB_DEPTH(ui32BitsPerSample)); OPUS_SET_LSB_DEPTH only affects the encoder. If you check the return value here you should get OPUS_UNIMPLEMENTED. > output_samples = opus_decode(sOpusDec, (const unsigned char > *)&pcRdBuf[0], len, opi16_out, (ui32SizeOfWrBuf/ui8ScaleFa...
2016 Jan 09
0
Issue with decoding 8-bit PCM data
...w will 24 bit PCM sample work? >>> >>> Regards >>> Amit >>> >>> On Thu, Jan 7, 2016 at 12:21 PM, Ralph Giles <giles at thaumas.net> wrote: >>> >>>> On 07/01/16 10:04 AM, Amit Ashara wrote: >>>> >>>> > opus_decoder_ctl(sOpusDec, OPUS_SET_LSB_DEPTH(ui32BitsPerSample)); >>>> >>>> OPUS_SET_LSB_DEPTH only affects the encoder. If you check the return >>>> value here you should get OPUS_UNIMPLEMENTED. >>>> >>>> > output_samples = opus_decode(sOpusDec, (cons...