Andreas Rheinhardt
5e8ea2bbc6
avcodec/opus_rc: Don't duplicate define
...
Reviewed-by: Lynne <dev@lynne.ee>
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
2022-10-08 10:19:36 +02:00
Carl Eugen Hoyos
6a87729e9d
lavc/opus_rc: Cast a const pointer to uint8_t *.
...
Silences a warning with clang on arm:
libavcodec/opus_rc.c:170:17: warning: passing 'const uint8_t *' (aka 'const unsigned char *') to parameter of type 'void *' discards qualifiers
2018-12-22 00:15:16 +01:00
Rostislav Pehlivanov
3aca16e857
opus_rc: fix CDF encoding of zeroes
...
0th CDF value is where probabilities are.
Signed-off-by: Rostislav Pehlivanov <atomnuker@gmail.com>
2017-07-20 08:24:46 +01:00
Rostislav Pehlivanov
e7d977b446
opus_rc: fix encoder desyncs on very low bitrates
...
Signed-off-by: Rostislav Pehlivanov <atomnuker@gmail.com>
2017-07-10 23:49:44 +01:00
Rostislav Pehlivanov
373ee2c618
opus_rc: add entropy encoding functions
...
Mostly used the RFC document, the decoding functions and
the reference encoder's implmenentation as a reference.
Signed-off-by: Rostislav Pehlivanov <atomnuker@gmail.com>
2017-02-14 06:15:36 +00:00
Rostislav Pehlivanov
084f3addda
opus_rc: rename total_bits_used to total_bits and #define some constants
...
Signed-off-by: Rostislav Pehlivanov <atomnuker@gmail.com>
2017-02-04 12:07:52 +00:00
Rostislav Pehlivanov
317be31eaf
opus: move the entropy decoding functions to opus_rc.c
...
The intention is to have both encoding and decoding functions
in opus_rc.c.
Signed-off-by: Rostislav Pehlivanov <atomnuker@gmail.com>
2016-11-08 14:18:59 +00:00