Searched defs:lgwin (Results 1 - 7 of 7) sorted by relevance
/external/brotli/java/org/brotli/wrapper/enc/ |
H A D | 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) { argument 53 if ((lgwin != -1) && ((lgwin < 10) || (lgwin > 24))) { 54 throw new IllegalArgumentException("lgwin should be in range [10, 24], or -1"); 56 this.lgwin [all...] |
H A D | encoder_jni.cc | 78 int lgwin = context[3]; local 79 if (lgwin >= 0) { 80 BrotliEncoderSetParameter(handle->state, BROTLI_PARAM_LGWIN, lgwin);
|
H A D | EncoderJNI.java | 31 Wrapper(int inputBufferSize, int quality, int lgwin) argument 35 this.context[3] = lgwin;
|
/external/brotli/c/enc/ |
H A D | 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 bit [all...] |
H A D | encode.c | 148 state->params.lgwin = (int)value; 254 static void EncodeWindowBits(int lgwin, uint8_t* last_byte, argument 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 1078 BrotliCompressBufferQuality10( int lgwin, size_t input_size, const uint8_t* input_buffer, size_t* encoded_size, uint8_t* encoded_buffer) argument 1338 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...] |
/external/brotli/python/ |
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 178 static const char *kwlist[] = {"mode", "quality", "lgwin", "lgblock", NULL}; 184 &lgwin_convertor, &lgwin, 195 if (lgwin ! [all...] |
/external/brotli/c/tools/ |
H A D | brotli.c | 88 int lgwin; member in struct:__anon1056 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...] |
Completed in 154 milliseconds