search for: test_data_size

Displaying 2 results from an estimated 2 matches for "test_data_size".

2018 Jun 29
1
OPUS on cortex M4
...to make a simple example of opus_encode followed by and immediate opus_decode I do not get reasonable values compared to the input. I'm wondering if I'm somehow misunderstanding how the codec works. Could somebody tell me if my approach could work? int frame_size = 160; opus_int16 test_data_size = frame_size*channels*sizeof(opus_int16); opus_int32 max_data_bytes = 100; opus_int16 test_data[test_data_size]; opus_int16 *p_test_data = test_data; unsigned char encoded_buffer[max_data_bytes]; unsigned char *p_encoded_buffer = encoded_buffer; opus_int16 decoded_buffer[te...
2018 Jul 01
1
OPUS on cortex M4 (Nicolas Ehrenberg)
...h>, "opus at xiph.org" <opus at xiph.org> Subject: Re: [opus] OPUS on cortex M4 Message-ID: <4ad369bd-a04a-de38-67fe-855565891973 at xiph.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Ehrenberg Nicolas wrote: > for(uint16_t i = 0; i < test_data_size; i++) > { > test_data[i] = 100; > } > > [snip] > > The decoded values start out at 0, go to -16 up, then up to 135 and then > slowly down to the 17 (see attached file). > Furthermore, I do not see much of a change if I increase the complexity. You're e...