diff options
author | Timothy B. Terriberry <tterribe@xiph.org> | 2011-09-17 23:44:19 +0400 |
---|---|---|
committer | Jean-Marc Valin <jmvalin@jmvalin.ca> | 2011-09-28 04:28:31 +0400 |
commit | 748c960cf7ab61a92adc323fe5bbae03af9949f4 (patch) | |
tree | f35748461ac7a2906a76e3195c9af129960c989d /silk/tables.h | |
parent | 9826ed99c36504ad466feeadacf5e2ced1518c4a (diff) |
Add support for coding signs with 0 pulses.
The SILK bitstream allowed coding 0 pulses in a shell block, but a
non-zero number of LSb's, meaning some excitation coefficients
could be non-zero, but would not have a corresponding sign.
To fix this without breaking already-encoded bitstreams, this patch
adds a set of sign PDFs for the 0 pulses case.
This is occasionally more efficient than the normal encoding if
there are a large number of coefficients with positive signs,
since these cost more than 1 bit when using the > 0 pulse PDFs.
It only saves 0.33 bits per second (on average: it does better at
high rates), but that's probably enough to justify the two
redundant ways of coding things (and it's too late now to remove
the second one entirely, anyway).
This patch does not include the encoder modifications required to
check if this coding method is more efficient and switch to it.
Diffstat (limited to 'silk/tables.h')
-rw-r--r-- | silk/tables.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/silk/tables.h b/silk/tables.h index de1fd028..1b8b68fd 100644 --- a/silk/tables.h +++ b/silk/tables.h @@ -63,7 +63,7 @@ extern const opus_uint8 silk_shell_code_table_offsets[ MAX_PULSES + 1 ]; extern const opus_uint8 silk_lsb_iCDF[ 2 ]; /* 2 */ -extern const opus_uint8 silk_sign_iCDF[ 36 ]; /* 36 */ +extern const opus_uint8 silk_sign_iCDF[ 42 ]; /* 42 */ extern const opus_uint8 silk_uniform3_iCDF[ 3 ]; /* 3 */ extern const opus_uint8 silk_uniform4_iCDF[ 4 ]; /* 4 */ |