| /xsrc/external/mit/brotli/dist/python/ |
| H A D | 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,
|
| H A D | bro.py | 16 'lgwin': 22, 103 '--lgwin', 149 lgwin=options.lgwin,
|
| H A D | _brotli.cc | 62 static int lgwin_convertor(PyObject *o, int *lgwin) { argument 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 in function:brotli_Compressor_init 178 static const char *kwlist[] = {"mode", "quality", "lgwin", "lgblock", NULL}; 184 &lgwin_convertor, &lgwin, 195 if (lgwin ! [all...] |
| /xsrc/external/mit/brotli/dist/c/enc/ |
| H A D | quality.h | 65 if (params->lgwin < BROTLI_MIN_WINDOW_BITS) { 66 params->lgwin = BROTLI_MIN_WINDOW_BITS; 70 if (params->lgwin > max_lgwin) params->lgwin = max_lgwin; 79 lgblock = params->lgwin; 84 if (params->quality >= 9 && params->lgwin > lgblock) { 85 lgblock = BROTLI_MIN(int, 18, params->lgwin); 95 Allocate at least lgwin + 1 bits for the ring buffer so that the newly 96 added block fits there completely and we still get lgwin bits and at least 100 return 1 + BROTLI_MAX(int, params->lgwin, param [all...] |
| H A D | params.h | 35 int lgwin; member in struct:BrotliEncoderParams
|
| H A D | encode.c | 161 state->params.lgwin = (int)value; 264 static void EncodeWindowBits(int lgwin, BROTLI_BOOL large_window, argument 267 *last_bytes = (uint16_t)(((lgwin & 0x3F) << 8) | 0x11); 270 if (lgwin == 16) { 273 } else if (lgwin == 17) { 276 } else if (lgwin > 17) { 277 *last_bytes = (uint16_t)(((lgwin - 17) << 1) | 0x01); 280 *last_bytes = (uint16_t)(((lgwin - 8) << 4) | 0x01); 715 int lgwin = s->params.lgwin; local in function:EnsureInitialized 1204 BrotliCompressBufferQuality10(int lgwin,size_t input_size,const uint8_t * input_buffer,size_t * encoded_size,uint8_t * encoded_buffer) argument 1471 BrotliEncoderCompress(int quality,int lgwin,BrotliEncoderMode mode,size_t input_size,const uint8_t * input_buffer,size_t * encoded_size,uint8_t * encoded_buffer) argument [all...] |
| H A D | hash_to_binary_tree_inc.h | 63 self->window_mask_ = (1u << params->lgwin) - 1u; 84 size_t num_nodes = (size_t)1 << params->lgwin;
|
| H A D | backward_references_hq.c | 576 const size_t max_backward_limit = BROTLI_MAX_BACKWARD_LIMIT(params->lgwin); 622 const size_t max_backward_limit = BROTLI_MAX_BACKWARD_LIMIT(params->lgwin); 662 const size_t max_backward_limit = BROTLI_MAX_BACKWARD_LIMIT(params->lgwin); 745 const size_t max_backward_limit = BROTLI_MAX_BACKWARD_LIMIT(params->lgwin);
|
| H A D | backward_references_inc.h | 18 const size_t max_backward_limit = BROTLI_MAX_BACKWARD_LIMIT(params->lgwin);
|
| /xsrc/external/mit/brotli/dist/c/tools/ |
| H A D | brotli.c | 93 int lgwin; member in struct:__anon23d34ec30208 345 fprintf(stderr, "lgwin parameter already set\n"); 349 BROTLI_MAX_WINDOW_BITS, ¶ms->lgwin); 351 fprintf(stderr, "error parsing lgwin value [%s]\n", argv[i]); 354 if (params->lgwin != 0 && params->lgwin < BROTLI_MIN_WINDOW_BITS) { 356 "lgwin parameter (%d) smaller than the minimum (%d)\n", 357 params->lgwin, BROTLI_MIN_WINDOW_BITS); 447 if (strncmp("lgwin", arg, key_len) == 0) { 449 fprintf(stderr, "lgwin paramete 998 uint32_t lgwin = DEFAULT_LGWIN; local in function:CompressFiles [all...] |
| H A D | brotli.md | 82 * `-w NUM`, `--lgwin=NUM`:
|
| /xsrc/external/mit/brotli/dist/c/include/brotli/ |
| H A D | encode.h | 293 * @note If @p lgwin is greater than ::BROTLI_MAX_WINDOW_BITS then resulting 299 * @param lgwin lgwin parameter value, e.g. ::BROTLI_DEFAULT_WINDOW 313 int quality, int lgwin, BrotliEncoderMode mode, size_t input_size,
|