diff options
author | Eugene Kliuchnikov <eustas@google.com> | 2018-03-20 17:37:41 +0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-03-20 17:37:41 +0600 |
commit | 631fe194a196f2c8e35510c72fe6a61548cd41c9 (patch) | |
tree | 9f527d4a365f10c930e1b9ec4dba1aab786c6b07 /c/include | |
parent | 533843e3546cd24c8344eaa899c6b0b681c8d222 (diff) | |
download | brotli-631fe194a196f2c8e35510c72fe6a61548cd41c9.zip brotli-631fe194a196f2c8e35510c72fe6a61548cd41c9.tar.gz brotli-631fe194a196f2c8e35510c72fe6a61548cd41c9.tar.bz2 |
Update (#651)
* fix `bazel` build (ignore switch case fall-through)
* add `NPOSTFIX` / `NDIRECT` encoder parameters
* fix source file lists (add `params.h`)
* fix bug in `durchschlag`
* print clarifying messages wheb CLI argument parsing fails
Diffstat (limited to 'c/include')
-rw-r--r-- | c/include/brotli/encode.h | 18 |
1 files changed, 17 insertions, 1 deletions
diff --git a/c/include/brotli/encode.h b/c/include/brotli/encode.h index 0b5c8c7..0ced7e5 100644 --- a/c/include/brotli/encode.h +++ b/c/include/brotli/encode.h @@ -185,7 +185,23 @@ typedef enum BrotliEncoderParameter { /** * Flag that determines if "Large Window Brotli" is used. */ - BROTLI_PARAM_LARGE_WINDOW = 6 + BROTLI_PARAM_LARGE_WINDOW = 6, + /** + * Recommended number of postfix bits (NPOSTFIX). + * + * Encoder may change this value. + * + * Range is from 0 to ::BROTLI_MAX_NPOSTFIX. + */ + BROTLI_PARAM_NPOSTFIX = 7, + /** + * Recommended number of direct distance codes (NDIRECT). + * + * Encoder may change this value. + * + * Range is from 0 to (15 << NPOSTFIX) in steps of (1 << NPOSTFIX). + */ + BROTLI_PARAM_NDIRECT = 8 } BrotliEncoderParameter; /** |