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>
2 years ago
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
6 years ago
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>
8 years ago
Rostislav Pehlivanov
e7d977b446
opus_rc: fix encoder desyncs on very low bitrates
...
Signed-off-by: Rostislav Pehlivanov <atomnuker@gmail.com>
8 years ago
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>
8 years ago
Rostislav Pehlivanov
084f3addda
opus_rc: rename total_bits_used to total_bits and #define some constants
...
Signed-off-by: Rostislav Pehlivanov <atomnuker@gmail.com>
8 years ago
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>
8 years ago