/external/brotli/python/ |
brotli.py | 26 def compress(string, mode=MODE_GENERIC, quality=11, lgwin=22, lgblock=0): 36 lgwin (int, optional): Base 2 logarithm of the sliding window size. Range 48 compressor = Compressor(mode=mode, quality=quality, lgwin=lgwin,
|
bro.py | 16 'lgwin': 22, 103 '--lgwin', 104 metavar='LGWIN', 149 lgwin=options.lgwin,
|
_brotli.cc | 62 static int lgwin_convertor(PyObject *o, int *lgwin) { 64 PyErr_SetString(BrotliError, "Invalid lgwin"); 68 if (!as_bounded_int(o, lgwin, 10, 24)) { 69 PyErr_SetString(BrotliError, "Invalid lgwin. Range is 10 to 24."); 129 " Compressor(mode=MODE_GENERIC, quality=11, lgwin=22, lgblock=0)\n" 137 " lgwin (int, optional): Base 2 logarithm of the sliding window size. Range\n" 174 int lgwin = -1; local 178 static const char *kwlist[] = {"mode", "quality", "lgwin", "lgblock", NULL}; 184 &lgwin_convertor, &lgwin, 195 if (lgwin != -1 [all...] |
/external/brotli/c/enc/ |
quality.h | 46 int lgwin; member in struct:BrotliEncoderParams 80 if (params->lgwin < BROTLI_MIN_WINDOW_BITS) { 81 params->lgwin = BROTLI_MIN_WINDOW_BITS; 82 } else if (params->lgwin > BROTLI_MAX_WINDOW_BITS) { 83 params->lgwin = BROTLI_MAX_WINDOW_BITS; 92 lgblock = params->lgwin; 97 if (params->quality >= 9 && params->lgwin > lgblock) { 98 lgblock = BROTLI_MIN(int, 18, params->lgwin); 108 Allocate at least lgwin + 1 bits for the ring buffer so that the newly 109 added block fits there completely and we still get lgwin bits and at leas [all...] |
encode.c | 148 state->params.lgwin = (int)value; 254 static void EncodeWindowBits(int lgwin, uint8_t* last_byte, 256 if (lgwin == 16) { 259 } else if (lgwin == 17) { 262 } else if (lgwin > 17) { 263 *last_byte = (uint8_t)(((lgwin - 17) << 1) | 1); 266 *last_byte = (uint8_t)(((lgwin - 8) << 4) | 1); 655 int lgwin = s->params.lgwin; local 658 lgwin = BROTLI_MAX(int, lgwin, 18) [all...] |
backward_references_inc.h | 18 const size_t max_backward_limit = BROTLI_MAX_BACKWARD_LIMIT(params->lgwin);
|
hash_to_binary_tree_inc.h | 68 self->window_mask_ = (1u << params->lgwin) - 1u; 88 size_t num_nodes = (size_t)1 << params->lgwin;
|
backward_references_hq.c | 696 const size_t max_backward_limit = BROTLI_MAX_BACKWARD_LIMIT(params->lgwin); 716 const size_t max_backward_limit = BROTLI_MAX_BACKWARD_LIMIT(params->lgwin);
|
/external/brotli/java/org/brotli/wrapper/enc/ |
Encoder.java | 29 private int lgwin = -1; field in class:Encoder.Parameters 35 this.lgwin = other.lgwin; 50 * @param lgwin log2(LZ window size), or -1 for default 52 public Parameters setWindow(int lgwin) { 53 if ((lgwin != -1) && ((lgwin < 10) || (lgwin > 24))) { 54 throw new IllegalArgumentException("lgwin should be in range [10, 24], or -1"); 56 this.lgwin = lgwin [all...] |
EncoderJNI.java | 31 Wrapper(int inputBufferSize, int quality, int lgwin) 35 this.context[3] = lgwin;
|
encoder_jni.cc | 78 int lgwin = context[3]; local 79 if (lgwin >= 0) { 80 BrotliEncoderSetParameter(handle->state, BROTLI_PARAM_LGWIN, lgwin);
|
/external/brotli/c/include/brotli/ |
encode.h | 253 * @param lgwin lgwin parameter value, e.g. ::BROTLI_DEFAULT_WINDOW 267 int quality, int lgwin, BrotliEncoderMode mode, size_t input_size,
|
/external/brotli/c/tools/ |
brotli.c | 88 int lgwin; member in struct:__anon14421 283 BROTLI_MAX_WINDOW_BITS, ¶ms->lgwin); 285 if (params->lgwin != 0 && params->lgwin < BROTLI_MIN_WINDOW_BITS) { 342 if (strncmp("lgwin", arg, key_len) == 0) { 345 BROTLI_MAX_WINDOW_BITS, ¶ms->lgwin); 347 if (params->lgwin != 0 && params->lgwin < BROTLI_MIN_WINDOW_BITS) { 417 " -w NUM, --lgwin=NUM set LZ77 window size (0, %d-%d) (default:%d)\n", 760 BROTLI_PARAM_LGWIN, (uint32_t)context->lgwin); [all...] |