Lines Matching defs:preset

235     static char *optnames[] = {"id", "preset", "dict_size", "lc", "lp",
239 uint32_t preset = LZMA_PRESET_DEFAULT;
242 /* First, fill in default values for all the options using a preset.
245 preset_obj = PyMapping_GetItemString(spec, "preset");
254 int ok = uint32_converter(preset_obj, &preset);
266 if (lzma_lzma_preset(options, preset)) {
268 PyErr_Format(state->error, "Invalid compression preset: %u", preset);
653 int check, uint32_t preset, PyObject *filterspecs)
658 lzret = lzma_easy_encoder(lzs, preset, check);
676 Compressor_init_alone(_lzma_state *state, lzma_stream *lzs, uint32_t preset, PyObject *filterspecs)
683 if (lzma_lzma_preset(&options, preset)) {
684 PyErr_Format(state->error, "Invalid compression preset: %u", preset);
748 preset: object = None
760 preset compression level (with the 'preset' argument), or in detail
762 and FORMAT_ALONE, the default is to use the PRESET_DEFAULT preset
764 the raw compressor does not support preset compression levels.
771 static char *arg_names[] = {"format", "check", "preset", "filters", NULL};
774 uint32_t preset = LZMA_PRESET_DEFAULT;
794 "Cannot specify both preset and filter chain");
799 if (!uint32_converter(preset_obj, &preset)) {
821 if (Compressor_init_xz(state, &self->lzs, check, preset, filterspecs) != 0) {
827 if (Compressor_init_alone(state, &self->lzs, preset, filterspecs) != 0) {
875 "LZMACompressor(format=FORMAT_XZ, check=-1, preset=None, filters=None)\n"
887 "preset compression level (with the 'preset' argument), or in detail\n"
889 "and FORMAT_ALONE, the default is to use the PRESET_DEFAULT preset\n"
891 "the raw compressor does not support preset compression levels.\n"
893 "preset (if provided) should be an integer in the range 0-9, optionally\n"