search for: opus_encoder_init

Displaying 7 results from an estimated 7 matches for "opus_encoder_init".

2014 Feb 05
1
Documentation inconsistencies
...rst of all Thanks for such a great codec! I have noticed a few smaller inconsistencies in the documentation, which may be confusing: * Encoder related CTLs OPUS_GET_SAMPLE_RATE(x) "Gets the sampling rate the encoder or decoder was initialized with. This simply returns the Fs value passed to opus_encoder_init() or opus_decoder_init()." ---> Is it a generic CTL? OPUS_GET_LAST_PACKET_DURATION(x) "Gets the duration (in samples) of the last packet successfully decoded or concealed." ---> Is it a decoder CTL? * Generic CTLs OPUS_GET_PITCH(x) "Gets the pitch of the last decoded...
2018 Feb 23
3
[EXTERNAL] Re: Developing OPUS on TI CC3220
...up my encoder: int size = opus_encoder_get_size(1); sOpusEnc = Memory_alloc(OpusHeap,size,NULL,NULL); // // sOpusEnc = opus_encoder_create(16000, // 1, // OPUS_APPLICATION_VOIP, &i32error); i32error = opus_encoder_init(sOpusEnc, 16000, 1, OPUS_APPLICATION_RESTRICTED_LOWDELAY); opus_encoder_ctl(sOpusEnc, OPUS_SET_BITRATE(16000)); opus_encoder_ctl(sOpusEnc, OPUS_SET_VBR(1)); opus_encoder_ctl(sOpusEnc, OPUS_SET_VBR_CONSTRAINT(0)); opus_encoder_ctl(sOpusEnc, OPUS_SET_COMPLEXITY(0)); opus_...
2012 Aug 31
1
Memory Size?
In order to determine the optimum heap size requirements for my embedded C55xx design, I have used the following to get the encoder and decoder memory requirements: size = opus_encoder_get_size(config.channels); enc = malloc(size); error = opus_encoder_init(enc, config.Fs, config.channels, config.application); size = opus_decoder_get_size(config.channels); dec = malloc(size); error = opus_decoder_init(dec, config.Fs, config.channels); Both the encode decoder init function return no error. However, opus_encode crashes som...
2018 Feb 23
0
[EXTERNAL] Re: Developing OPUS on TI CC3220
...eap Opus needs is the encoder state which holds both the SILK and the CELT state. What stack allocator did you end up choosing? If you used the pseudo-stack, then that allocates a lot of heap memory. If not, then maybe you have some sort of collision between the stack and heap? >     i32error = opus_encoder_init(sOpusEnc, 16000, 1, > OPUS_APPLICATION_RESTRICTED_LOWDELAY); OPUS_APPLICATION_RESTRICTED_LOWDELAY will force CELT-only mode here, regardless of other options. >    opus_encoder_ctl(sOpusEnc, OPUS_SET_FORCE_CHANNELS(1));//Mono No need to force mono since you're only encoding one channel...
2018 Feb 26
0
opus Digest, Vol 109, Issue 8
...Opus needs is the encoder state which holds both the SILK and the CELT state. What stack allocator did you end up choosing? If you used the pseudo-stack, then that allocates a lot of heap memory. If not, then maybe you have some sort of collision between the stack and heap? > i32error = opus_encoder_init(sOpusEnc, 16000, 1, > OPUS_APPLICATION_RESTRICTED_LOWDELAY); OPUS_APPLICATION_RESTRICTED_LOWDELAY will force CELT-only mode here, regardless of other options. > opus_encoder_ctl(sOpusEnc, OPUS_SET_FORCE_CHANNELS(1));//Mono No need to force mono since you're only encoding one channe...
2018 Feb 20
2
[EXTERNAL] Re: Developing OPUS on TI CC3220
Jean-Marc, Thanks for the response and the helpful info. I am trying to get the library to build without using the pseudostack define, and use either VAR_ARRAYS or ALLOC, but it seems the global stack is not defined. Where do can I define this in my example? VR -----Original Message----- From: Jean-Marc Valin [mailto:jmvalin at jmvalin.ca] Sent: Tuesday, February 20, 2018 5:40 PM To:
2013 May 23
2
ASM runtime detection and optimizations
...#include "mathops.h" #include "tuning_parameters.h" @@ -103,6 +104,7 @@ struct OpusEncoder { int analysis_offset; #endif opus_uint32 rangeFinal; + int arch; }; /* Transition tables for the voice and music. First column is the @@ -184,6 +186,8 @@ int opus_encoder_init(OpusEncoder* st, opus_int32 Fs, int channels, int applicat st->Fs = Fs; + st->arch = opus_select_arch(); + ret = silk_InitEncoder( silk_enc, &st->silk_mode ); if(ret)return OPUS_INTERNAL_ERROR;