Lines Matching refs:lgwin

161       state->params.lgwin = (int)value;  in BrotliEncoderSetParameter()
264 static void EncodeWindowBits(int lgwin, BROTLI_BOOL large_window, in EncodeWindowBits() argument
267 *last_bytes = (uint16_t)(((lgwin & 0x3F) << 8) | 0x11); in EncodeWindowBits()
270 if (lgwin == 16) { in EncodeWindowBits()
273 } else if (lgwin == 17) { in EncodeWindowBits()
276 } else if (lgwin > 17) { in EncodeWindowBits()
277 *last_bytes = (uint16_t)(((lgwin - 17) << 1) | 0x01); in EncodeWindowBits()
280 *last_bytes = (uint16_t)(((lgwin - 8) << 4) | 0x01); in EncodeWindowBits()
715 int lgwin = s->params.lgwin; in EnsureInitialized() local
718 lgwin = BROTLI_MAX(int, lgwin, 18); in EnsureInitialized()
721 EncodeWindowBits(lgwin, s->params.large_window, in EnsureInitialized()
726 s->params.stream_offset, BROTLI_MAX_BACKWARD_LIMIT(lgwin)); in EnsureInitialized()
743 params->lgwin = BROTLI_DEFAULT_WINDOW; in BrotliEncoderInitParams()
920 (((uint64_t)1) << s->params.lgwin) - BROTLI_WINDOW_GAP; in ExtendLastCommand()
1205 int lgwin, size_t input_size, const uint8_t* input_buffer, in BrotliCompressBufferQuality10() argument
1220 input_size, BROTLI_MAX_BACKWARD_LIMIT(lgwin) + BROTLI_WINDOW_GAP); in BrotliCompressBufferQuality10()
1224 const int lgmetablock = BROTLI_MIN(int, 24, lgwin + 1); in BrotliCompressBufferQuality10()
1238 params.lgwin = lgwin; in BrotliCompressBufferQuality10()
1239 if (lgwin > BROTLI_MAX_WINDOW_BITS) { in BrotliCompressBufferQuality10()
1250 EncodeWindowBits(lgwin, params.large_window, &last_bytes, &last_bytes_bits); in BrotliCompressBufferQuality10()
1472 int quality, int lgwin, BrotliEncoderMode mode, size_t input_size, in BrotliEncoderCompress() argument
1493 BROTLI_MAX(int, 16, lgwin)); in BrotliEncoderCompress()
1513 BrotliEncoderSetParameter(s, BROTLI_PARAM_LGWIN, (uint32_t)lgwin); in BrotliEncoderCompress()
1516 if (lgwin > BROTLI_MAX_WINDOW_BITS) { in BrotliEncoderCompress()
1601 const size_t block_size_limit = (size_t)1 << s->params.lgwin; in BrotliEncoderCompressStreamFast()