Displaying 5 results from an estimated 5 matches for "ec_enc_uint".
Did you mean:
ec_dec_uint
2008 Dec 21
0
[PATCH] Fix ectest to not check a case which isn't guaranteed to work, and which we don't use.
...0d082dcdfa8addb3dde337543bc0f0ebae44, it broke ec_dec_uint() with _ft=1
(which should encode the value 0 using 0 bits).
This feature was tested by ectest.c, but not actually used by libcelt.
An assert has been added to ec_dec_uint() to ensure that we don't try to use
this feature by accident.
ec_enc_uint() was actually correct, but support for this feature has been
removed and the assert put in its place.
---
libcelt/entdec.c | 3 +++
libcelt/entenc.c | 4 +++-
tests/ectest.c | 4 ++--
3 files changed, 8 insertions(+), 3 deletions(-)
diff --git a/libcelt/entdec.c b/libcelt/entdec.c
in...
2011 Mar 03
0
[PATCH] Eliminate the ec_int32 and ec_uint32 typedefs.
...icdf,unsigned _ftb){
- ec_uint32 r;
+ celt_uint32 r;
r=_this->rng>>_ftb;
if(_s>0){
_this->val+=_this->rng-IMUL32(r,_icdf[_s-1]);
@@ -177,7 +177,7 @@ void ec_enc_icdf(ec_enc *_this,int _s,const unsigned char *_icdf,unsigned _ftb){
ec_enc_normalize(_this);
}
-void ec_enc_uint(ec_enc *_this,ec_uint32 _fl,ec_uint32 _ft){
+void ec_enc_uint(ec_enc *_this,celt_uint32 _fl,celt_uint32 _ft){
unsigned ft;
unsigned fl;
int ftb;
@@ -190,12 +190,12 @@ void ec_enc_uint(ec_enc *_this,ec_uint32 _fl,ec_uint32 _ft){
ft=(_ft>>ftb)+1;
fl=(unsigned)(_fl>...
2017 Jun 27
0
[Windows]Issue with opus 1.2 : lnk2001
...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 me ? Thanks in...
2009 Jan 14
0
[PATCH] Pitch now quantised at the band level, got rid of all the VQ code.
...enc_bits(&enc, 0, 1); //Pitch off
- ec_enc_bits(&enc, 1, 1); //Transient on
+ ec_enc_bits(&enc, 0, 1); /*Pitch off */
+ ec_enc_bits(&enc, 1, 1); /*Transient on */
ec_enc_bits(&enc, transient_shift, 2);
if (transient_shift)
ec_enc_uint(&enc, transient_time, N+st->overlap);
@@ -557,23 +556,19 @@ int celt_encode_float(CELTEncoder * restrict st, const celt_sig_t * pcm, celt_si
pitch_power = bandEp[0]+bandEp[1]+bandEp[2];
/* Check if we can safely use the pitch (i.e. effective gain isn't too high) */
c...
2009 Jan 14
0
[PATCH] Moved the application of the pitch gain to (un)quant_bands(). This doesn't change anything to the codec, but will make the next changes easier.
...t.c b/libcelt/celt.c
index 9ebd8df..61aa1fb 100644
--- a/libcelt/celt.c
+++ b/libcelt/celt.c
@@ -575,7 +575,6 @@ int celt_encode_float(CELTEncoder * restrict st, const celt_sig_t * pcm, celt_si
ec_enc_bits(&enc, has_fold, 1); /* Folding flag */
ec_enc_bits(&enc, id, 7);
ec_enc_uint(&enc, pitch_index, MAX_PERIOD-(2*N-2*N4));
- pitch_quant_bands(st->mode, P, gains);
} else {
if (!shortBlocks)
{
@@ -626,7 +625,7 @@ int celt_encode_float(CELTEncoder * restrict st, const celt_sig_t * pcm, celt_si
quant_fine_energy(st->mode, bandE, st->oldBan...