/external/brotli/c/enc/ |
D | quality.h | 65 if (params->lgwin < BROTLI_MIN_WINDOW_BITS) { in SanitizeParams() 66 params->lgwin = BROTLI_MIN_WINDOW_BITS; in SanitizeParams() 70 if (params->lgwin > max_lgwin) params->lgwin = max_lgwin; in SanitizeParams() 79 lgblock = params->lgwin; in ComputeLgBlock() 84 if (params->quality >= 9 && params->lgwin > lgblock) { in ComputeLgBlock() 85 lgblock = BROTLI_MIN(int, 18, params->lgwin); in ComputeLgBlock() 100 return 1 + BROTLI_MAX(int, params->lgwin, params->lgblock); in ComputeRbBits() 129 } else if (params->lgwin <= 16) { in ChooseHasher() 131 } else if (params->size_hint >= (1 << 20) && params->lgwin >= 19) { in ChooseHasher() 146 if (params->lgwin > 24) { in ChooseHasher()
|
D | encode.c | 161 state->params.lgwin = (int)value; in BrotliEncoderSetParameter() 264 static void EncodeWindowBits(int lgwin, BROTLI_BOOL large_window, in EncodeWindowBits() argument 267 *last_bytes = (uint16_t)(((lgwin & 0x3F) << 8) | 0x11); in EncodeWindowBits() 270 if (lgwin == 16) { in EncodeWindowBits() 273 } else if (lgwin == 17) { in EncodeWindowBits() 276 } else if (lgwin > 17) { in EncodeWindowBits() 277 *last_bytes = (uint16_t)(((lgwin - 17) << 1) | 0x01); in EncodeWindowBits() 280 *last_bytes = (uint16_t)(((lgwin - 8) << 4) | 0x01); in EncodeWindowBits() 715 int lgwin = s->params.lgwin; in EnsureInitialized() local 718 lgwin = BROTLI_MAX(int, lgwin, 18); in EnsureInitialized() [all …]
|
D | params.h | 35 int lgwin; member
|
D | hash_to_binary_tree_inc.h | 63 self->window_mask_ = (1u << params->lgwin) - 1u; in FN() 84 size_t num_nodes = (size_t)1 << params->lgwin; in FN()
|
D | backward_references_hq.c | 576 const size_t max_backward_limit = BROTLI_MAX_BACKWARD_LIMIT(params->lgwin); in BrotliZopfliCreateCommands() 622 const size_t max_backward_limit = BROTLI_MAX_BACKWARD_LIMIT(params->lgwin); in ZopfliIterate() 662 const size_t max_backward_limit = BROTLI_MAX_BACKWARD_LIMIT(params->lgwin); in BrotliZopfliComputeShortestPath() 745 const size_t max_backward_limit = BROTLI_MAX_BACKWARD_LIMIT(params->lgwin); in BrotliCreateHqZopfliBackwardReferences()
|
D | backward_references_inc.h | 18 const size_t max_backward_limit = BROTLI_MAX_BACKWARD_LIMIT(params->lgwin); in EXPORT_FN()
|
/external/brotli/java/org/brotli/wrapper/enc/ |
D | Encoder.java | 30 private int lgwin = -1; field in Encoder.Parameters 36 this.lgwin = other.lgwin; in Parameters() 53 public Parameters setWindow(int lgwin) { in setWindow() argument 54 if ((lgwin != -1) && ((lgwin < 10) || (lgwin > 24))) { in setWindow() 57 this.lgwin = lgwin; in setWindow() 78 this.encoder = new EncoderJNI.Wrapper(inputBufferSize, params.quality, params.lgwin); in Encoder() 166 EncoderJNI.Wrapper encoder = new EncoderJNI.Wrapper(data.length, params.quality, params.lgwin); in compress()
|
D | EncoderJNI.java | 32 Wrapper(int inputBufferSize, int quality, int lgwin) in Wrapper() argument 39 this.context[3] = lgwin; in Wrapper()
|
D | encoder_jni.cc | 78 int lgwin = context[3]; in Java_org_brotli_wrapper_enc_EncoderJNI_nativeCreate() local 79 if (lgwin >= 0) { in Java_org_brotli_wrapper_enc_EncoderJNI_nativeCreate() 80 BrotliEncoderSetParameter(handle->state, BROTLI_PARAM_LGWIN, lgwin); in Java_org_brotli_wrapper_enc_EncoderJNI_nativeCreate()
|
/external/brotli/c/tools/ |
D | brotli.c | 93 int lgwin; member 349 BROTLI_MAX_WINDOW_BITS, ¶ms->lgwin); in ParseParams() 354 if (params->lgwin != 0 && params->lgwin < BROTLI_MIN_WINDOW_BITS) { in ParseParams() 357 params->lgwin, BROTLI_MIN_WINDOW_BITS); in ParseParams() 453 BROTLI_MAX_WINDOW_BITS, ¶ms->lgwin); in ParseParams() 458 if (params->lgwin != 0 && params->lgwin < BROTLI_MIN_WINDOW_BITS) { in ParseParams() 461 params->lgwin, BROTLI_MIN_WINDOW_BITS); in ParseParams() 471 BROTLI_LARGE_MAX_WINDOW_BITS, ¶ms->lgwin); in ParseParams() 476 if (params->lgwin != 0 && params->lgwin < BROTLI_MIN_WINDOW_BITS) { in ParseParams() 479 params->lgwin, BROTLI_MIN_WINDOW_BITS); in ParseParams() [all …]
|
D | brotli.md | 82 * `-w NUM`, `--lgwin=NUM`:
|
/external/brotli/python/ |
D | brotli.py | 26 def compress(string, mode=MODE_GENERIC, quality=11, lgwin=22, lgblock=0): argument 48 compressor = Compressor(mode=mode, quality=quality, lgwin=lgwin,
|
D | _brotli.cc | 62 static int lgwin_convertor(PyObject *o, int *lgwin) { in lgwin_convertor() argument 68 if (!as_bounded_int(o, lgwin, 10, 24)) { in lgwin_convertor() 174 int lgwin = -1; in brotli_Compressor_init() local 184 &lgwin_convertor, &lgwin, in brotli_Compressor_init() 195 if (lgwin != -1) in brotli_Compressor_init() 196 BrotliEncoderSetParameter(self->enc, BROTLI_PARAM_LGWIN, (uint32_t)lgwin); in brotli_Compressor_init()
|
D | bro.py | 149 lgwin=options.lgwin,
|
/external/brotli/c/include/brotli/ |
D | encode.h | 313 int quality, int lgwin, BrotliEncoderMode mode, size_t input_size,
|