Lines Matching refs:quality
48 static int quality_convertor(PyObject *o, int *quality) {
50 PyErr_SetString(BrotliError, "Invalid quality");
54 if (!as_bounded_int(o, quality, 0, 11)) {
55 PyErr_SetString(BrotliError, "Invalid quality. Range is 0 to 11.");
129 " Compressor(mode=MODE_GENERIC, quality=11, lgwin=22, lgblock=0)\n"
134 " quality (int, optional): Controls the compression-speed vs compression-\n"
135 " density tradeoff. The higher the quality, the slower the compression.\n"
141 " quality. Defaults to 0.\n"
173 int quality = -1;
178 static const char *kwlist[] = {"mode", "quality", "lgwin", "lgblock", NULL};
183 &quality_convertor, &quality,
193 if (quality != -1)
194 BrotliEncoderSetParameter(self->enc, BROTLI_PARAM_QUALITY, (uint32_t)quality);