search for: ec_dec_uint

Displaying 5 results from an estimated 5 matches for "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.
When I removed the special case for EC_ILOG(0) in commit 06390d082dcdfa8addb3dde337543bc0f0ebae44, 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 f...
2011 Mar 03
0
[PATCH] Eliminate the ec_int32 and ec_uint32 typedefs.
...32 t; - int ret; + celt_uint32 r; + celt_uint32 d; + celt_uint32 s; + celt_uint32 t; + int ret; s=_this->rng; d=_this->val; r=s>>_ftb; @@ -204,7 +204,7 @@ int ec_dec_icdf(ec_dec *_this,const unsigned char *_icdf,unsigned _ftb){ return ret; } -ec_uint32 ec_dec_uint(ec_dec *_this,ec_uint32 _ft){ +celt_uint32 ec_dec_uint(ec_dec *_this,celt_uint32 _ft){ unsigned ft; unsigned s; int ftb; @@ -213,12 +213,12 @@ ec_uint32 ec_dec_uint(ec_dec *_this,ec_uint32 _ft){ _ft--; ftb=EC_ILOG(_ft); if(ftb>EC_UINT_BITS){ - ec_uint32 t; + celt_uin...
2010 Sep 02
1
Possible Bug
...function call and it's initialized with ec_dec_init function. The attribute "end_byte" is not initialized though. Decoding a file the behaviour is the following: decoding the first frame the variable "shortBlocks" is true and then transient_shift == 3 hence the function ec_dec_uint is executed. In this function the attribute "end_byte" is written first and read next. That's ok. The problem comes decoding the next frame. Since now "shortBlocks" is false, "end_byte" is not initialized anymore and next functions read it before update. Can...
2017 Jun 27
0
[Windows]Issue with opus 1.2 : lnk2001
...r_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 advance. -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.xiph.org/...
2009 Jan 14
0
[PATCH] Pitch now quantised at the band level, got rid of all the VQ code.
...10 +988,6 @@ int celt_decode_float(CELTDecoder * restrict st, unsigned char *data, int len, c if (has_pitch) { - int id; - /* Get the pitch gains and index */ - id = ec_dec_bits(&dec, 7); - unquant_pitch(id, gains, st->mode->nbPBands); pitch_index = ec_dec_uint(&dec, MAX_PERIOD-(2*N-2*N4)); st->last_pitch_index = pitch_index; } else { @@ -1016,6 +1009,8 @@ int celt_decode_float(CELTDecoder * restrict st, unsigned char *data, int len, c offsets[i] = 0; bits = len*8 - ec_dec_tell(&dec, 0) - 1; + if (has_pitch) + bit...