Displaying 9 results from an estimated 9 matches for "opusdecode".
Did you mean:
opus_decode
2017 Jun 05
3
Trying to use Opus in an STM32F429IIT6 embedded project
Hi everyone,
I'm trying to use Opus in an Embedded Project which I'm developing in a
STM32F429IIT6 microcontroller. Currently, I'm playing wav files in it.
I ported all the files from OpusLib 1.1.4 needed to compile the project,
but when I try to create and OpusDecode state, it returns the error -7
(OPUS_ALLOC_FAIL).
I'm compiling it with the USE_ALLOCA flag. I also tried to compile it with
the flags OVERRIDE_OPUS_ALLOC OVERRIDE_OPUS_FREE 'opus_alloc(x)=NULL' and
'opus_free(x)=NULL', but still having no success.
The code I wrote is:
in...
2016 Jun 22
0
OpusDecoder
Hi,
I am new to Opus, I want to use Opus and opus-tool for opus website. I just
have Opus payload raw stream from RTP packets.
Suppose, I have one packet, like
Raw packet = RTP Header + opus payload ( The opus payload has 20 msec,
and 1 channel only)
I removed the RTP header and now i have only
opus payload = Raw packet - RTP Header
The opus payload is now (1 byte TOC) and rest of N-1 bytes
2017 Jun 05
0
Trying to use Opus in an STM32F429IIT6 embedded project
On 05/06/17 08:28 AM, Ulisses Piassa wrote:
> I ported all the files from OpusLib 1.1.4 needed to compile the project,
> but when I try to create and OpusDecode state, it returns the error -7
> (OPUS_ALLOC_FAIL).
Are you getting OPUS_ALLOC_FAIL on the opus_decoder_init() too or just
on opus_decoder_create()?
> I'm compiling it with the USE_ALLOCA flag. I also tried to compile it
> with the flags OVERRIDE_OPUS_ALLOC OVERRIDE_OPUS_FREE
> ...
2014 Apr 30
0
1276 Bytes returned by opus_encode
Maybe i found the source of the problem.
The basestation is running several threads. One per sending client and
one per receiving client. In each thread there is either an
opus_encode() or an opus_decode() but there is in total only one
OpusEncoder and one OpusDecoder defined which where used in every
thread. Now every thread has it own OpusEncoder or OpusDecoder.
After 20minutes of audiostreaming there is not even one occurance of the
previous described problem.
Kind regards, Jan
2012 Nov 13
1
Integer overflow in opus_packet_parse_impl
...of-bounds read. It would be good to add a check for the
overflow even if most cases won't allow that much data to be fed to the decoder.
Here is a reproducer:
#include <string.h>
#include "opus.h"
unsigned char in_buf[16909318];
unsigned short out_buf[11520];
int main() {
OpusDecoder *decoder;
int result;
int error;
in_buf[0] = 0xff;
in_buf[1] = 0x41;
memset(in_buf + 2, 0xff, 16909315);
in_buf[16909317] = 0x0b;
decoder = opus_decoder_create(48000, 2, &error);
result = opus_decode(decoder, in_buf, 16909318, out_buf, 5760, 0);
}
Here is the patch I'm...
2015 Aug 04
1
[PATCH] Simplify and generalize implementation of align(). Should be very efficient on sensible platforms, and correct everywhere.
...bbd7dc 100644
--- a/src/opus_private.h
+++ b/src/opus_private.h
@@ -33,6 +33,8 @@
#include "opus.h"
#include "celt.h"
+#include <stddef.h> /* offsetof */
+
struct OpusRepacketizer {
unsigned char toc;
int nb_frames;
@@ -110,15 +112,13 @@ int opus_decode_native(OpusDecoder *st, const unsigned char *data, opus_int32 le
/* Make sure everything is properly aligned. */
static OPUS_INLINE int align(int i)
{
- int size;
- /* Alignment is determined by the max size of void*, opus_int32 and opus_val32,
- rounded up to the nearest power of two. */
- int tmp...
2016 Jan 27
1
opus-tools: fix PIE configure test
...LAGS="$LDFLAGS -pie -Wl,-z,relro -Wl,-z,now"
LIBS="$LIBS $OPUS_LIBS"
AC_MSG_CHECKING([for PIE support])
- AC_LINK_IFELSE([AC_LANG_PROGRAM([[#include <opus/opus.h>]],
+ AC_LINK_IFELSE([AC_LANG_PROGRAM([[#include <opus.h>]],
[[OpusDecoder *dec = opus_decoder_create(48000, 2, 0L)]])],
[ AC_MSG_RESULT([yes]) ],
[ AC_MSG_RESULT([no])
--
Christian "naddy" Weisgerber naddy at mips.inka.de
2018 Jun 29
1
OPUS on cortex M4
...able to allocate enough memory for the encoder as well as decoder state and they both return with OPUS_OK.
uint32_t error;
opus_int32 Fs = 8000;
int channels = 1;
OpusEncoder *enc;
enc = opus_encoder_create(Fs, channels, OPUS_APPLICATION_RESTRICTED_LOWDELAY, &error);
OpusDecoder *dec;
dec = opus_decoder_create(Fs, channels, &error);
However, If I try 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 som...
2013 May 23
2
ASM runtime detection and optimizations
...+#endif
diff --git a/src/opus_decoder.c b/src/opus_decoder.c
index f0b2b6f..6bc7091 100644
--- a/src/opus_decoder.c
+++ b/src/opus_decoder.c
@@ -46,6 +46,7 @@
#include "structs.h"
#include "define.h"
#include "mathops.h"
+#include "cpu_support.h"
struct OpusDecoder {
int celt_dec_offset;
@@ -70,6 +71,7 @@ struct OpusDecoder {
#endif
opus_uint32 rangeFinal;
+ int arch;
};
#ifdef FIXED_POINT
@@ -119,6 +121,7 @@ int opus_decoder_init(OpusDecoder *st, opus_int32 Fs, int channels)
st->Fs = Fs;
st->DecControl.API_sampleRate...