Lines Matching defs:lgwin
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;
718 lgwin = BROTLI_MAX(int, lgwin, 18);
721 EncodeWindowBits(lgwin, s->params.large_window,
726 s->params.stream_offset, BROTLI_MAX_BACKWARD_LIMIT(lgwin));
743 params->lgwin = BROTLI_DEFAULT_WINDOW;
920 (((uint64_t)1) << s->params.lgwin) - BROTLI_WINDOW_GAP;
1205 int lgwin, size_t input_size, const uint8_t* input_buffer,
1220 input_size, BROTLI_MAX_BACKWARD_LIMIT(lgwin) + BROTLI_WINDOW_GAP);
1224 const int lgmetablock = BROTLI_MIN(int, 24, lgwin + 1);
1238 params.lgwin = lgwin;
1239 if (lgwin > BROTLI_MAX_WINDOW_BITS) {
1250 EncodeWindowBits(lgwin, params.large_window, &last_bytes, &last_bytes_bits);
1472 int quality, int lgwin, BrotliEncoderMode mode, size_t input_size,
1493 BROTLI_MAX(int, 16, lgwin));
1513 BrotliEncoderSetParameter(s, BROTLI_PARAM_LGWIN, (uint32_t)lgwin);
1516 if (lgwin > BROTLI_MAX_WINDOW_BITS) {
1601 const size_t block_size_limit = (size_t)1 << s->params.lgwin;