HomeSort by: relevance | last modified time | path
    Searched refs:lgwin (Results 1 - 11 of 11) sorted by relevancy

  /xsrc/external/mit/brotli/dist/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,
_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...]
bro.py 16 'lgwin': 22,
103 '--lgwin',
104 metavar='LGWIN',
149 lgwin=options.lgwin,
  /xsrc/external/mit/brotli/dist/c/enc/
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, params->lgblock)
    [all...]
params.h 35 int lgwin; member in struct:BrotliEncoderParams
encode.c 161 state->params.lgwin = (int)value;
264 static void EncodeWindowBits(int lgwin, BROTLI_BOOL large_window,
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
    [all...]
hash_to_binary_tree_inc.h 63 self->window_mask_ = (1u << params->lgwin) - 1u;
84 size_t num_nodes = (size_t)1 << params->lgwin;
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);
backward_references_inc.h 18 const size_t max_backward_limit = BROTLI_MAX_BACKWARD_LIMIT(params->lgwin);
  /xsrc/external/mit/brotli/dist/c/tools/
brotli.c 93 int lgwin; member in struct:__anon5341
345 fprintf(stderr, "lgwin parameter already set\n");
349 BROTLI_MAX_WINDOW_BITS, &params->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 parameter already set\n")
998 uint32_t lgwin = DEFAULT_LGWIN; local
    [all...]
  /xsrc/external/mit/brotli/dist/c/include/brotli/
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,

Completed in 13 milliseconds