Lines Matching defs:lgwin
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;
178 static const char *kwlist[] = {"mode", "quality", "lgwin", "lgblock", NULL};
184 &lgwin_convertor, &lgwin,
195 if (lgwin != -1)
196 BrotliEncoderSetParameter(self->enc, BROTLI_PARAM_LGWIN, (uint32_t)lgwin);