Displaying 5 results from an estimated 5 matches for "opus_custom_encoder_ctl".
2019 Feb 17
2
Custom mode
...custom” as a solution but even
with a (seemingly) low complexity it does not yield the desired result.
*Setup code:*
mode = opus_custom_mode_create(15625, 64, &err);
size = opus_custom_encoder_get_size(mode, 1);
enc = malloc(size);
err = opus_custom_encoder_init(enc, mode, 1);
err = opus_custom_encoder_ctl(enc, OPUS_SET_BITRATE(16000));
err = opus_custom_encoder_ctl(enc, OPUS_SET_COMPLEXITY(0));
size = opus_custom_decoder_get_size(mode, 1);
dec = malloc(size);
err = opus_custom_decoder_init(dec, mode, 1);
*ISR code (called once every 4.096ms):*
nbBytes = opus_custom_encode(
e...
2015 Jun 24
1
24 bits samples
...opus 1.1
and used "opus_custom_demo.c". It hasn't any problem with 16 bits samples
but when I use 24 bits samples , there is no output audio.
opus_decoder will still generate 16 bits samples and these output samples
are saturated . I use following function for 16 / 24 bit depth :
opus_custom_encoder_ctl(enc, OPUS_SET_LSB_DEPTH(16/24));
How can I solve this problem ?
Thanks a lot
Kazem
----------------------------------------
From: "Timothy B. Terriberry" <tterribe at xiph.org>
Sent: Tuesday, June 23, 2015 11:22 PM
To: opus at xiph.org
Subject: Re: [opus] 24 bits samples
Jean-Ma...
2019 Feb 20
0
Fwd: Custom mode
...:*
>>
>>
>>
>> mode = opus_custom_mode_create(15625, 64, &err);
>>
>>
>>
>> size = opus_custom_encoder_get_size(mode, 1);
>>
>> enc = malloc(size);
>>
>> err = opus_custom_encoder_init(enc, mode, 1);
>>
>> err = opus_custom_encoder_ctl(enc, OPUS_SET_BITRATE(16000));
>>
>> err = opus_custom_encoder_ctl(enc, OPUS_SET_COMPLEXITY(0));
>>
>>
>>
>> size = opus_custom_decoder_get_size(mode, 1);
>>
>> dec = malloc(size);
>>
>> err = opus_custom_decoder_init(dec, mode, 1);
>&g...
2017 Jun 27
0
[Windows]Issue with opus 1.2 : lnk2001
...and the new
include files in my own solution, but when I compile, I found 28 link
errors (lnk 2001):
- silk_Encode
- ec_enc_init
- celt_inner_prod_sse
- opus_select_arch
- silk_InitEncoder
- ec_enc_shrink
- silk_log2lin
- ec_enc_bit_logp
- celt_encoder_get_size
- celt_encoder_init
- silk_lin2log
- opus_custom_encoder_ctl
- ec_enc_uint
- silk_Get_Encoder_Size
- celt_encode_with_ec
- ec_enc_done
- opus_fft_c
- silk_Decode
- ec_dec_init
- ec_dec_uint
- celt_decode_with_ec
- silk_Get_Decoder_Size
- ec_dec_bit_logp
- silk_InitDecoder
- opus_custom_decoder_ctl
- celt_decoder_get_size
- celt_decoder_init
Could you help m...
2013 May 23
2
ASM runtime detection and optimizations
...nd this point gets cleared on a reset */
#define ENCODER_RESET_START rng
@@ -196,6 +198,7 @@ OPUS_CUSTOM_NOSTATIC int opus_custom_encoder_init(CELTEncoder *st, const CELTMod
st->force_intra = 0;
st->complexity = 5;
st->lsb_depth=24;
+ st->arch = opus_select_arch();
opus_custom_encoder_ctl(st, OPUS_RESET_STATE);
@@ -1014,7 +1017,7 @@ static int run_prefilter(CELTEncoder *st, celt_sig *in, celt_sig *prefilter_mem,
VARDECL(opus_val16, pitch_buf);
ALLOC(pitch_buf, (COMBFILTER_MAXPERIOD+N)>>1, opus_val16);
- pitch_downsample(pre, pitch_buf, COMBFILTER_MAXPERI...