Home | History | Annotate | Download | only in Modules

Lines Matching defs:preset

203     static char *optnames[] = {"id", "preset", "dict_size", "lc", "lp",
207 uint32_t preset = LZMA_PRESET_DEFAULT;
210 /* First, fill in default values for all the options using a preset.
213 preset_obj = PyMapping_GetItemString(spec, "preset");
220 int ok = uint32_converter(preset_obj, &preset);
231 if (lzma_lzma_preset(options, preset)) {
233 PyErr_Format(Error, "Invalid compression preset: %d", preset);
614 Compressor_init_xz(lzma_stream *lzs, int check, uint32_t preset,
620 lzret = lzma_easy_encoder(lzs, preset, check);
636 Compressor_init_alone(lzma_stream *lzs, uint32_t preset, PyObject *filterspecs)
643 if (lzma_lzma_preset(&options, preset)) {
644 PyErr_Format(Error, "Invalid compression preset: %d", preset);
703 preset: object = None
715 preset compression level (with the 'preset' argument), or in detail
717 and FORMAT_ALONE, the default is to use the PRESET_DEFAULT preset
719 the raw compressor does not support preset compression levels.
726 static char *arg_names[] = {"format", "check", "preset", "filters", NULL};
729 uint32_t preset = LZMA_PRESET_DEFAULT;
747 "Cannot specify both preset and filter chain");
752 if (!uint32_converter(preset_obj, &preset))
773 if (Compressor_init_xz(&self->lzs, check, preset, filterspecs) != 0)
778 if (Compressor_init_alone(&self->lzs, preset, filterspecs) != 0)
819 "LZMACompressor(format=FORMAT_XZ, check=-1, preset=None, filters=None)\n"
831 "preset compression level (with the 'preset' argument), or in detail\n"
833 "and FORMAT_ALONE, the default is to use the PRESET_DEFAULT preset\n"
835 "the raw compressor does not support preset compression levels.\n"
837 "preset (if provided) should be an integer in the range 0-9, optionally\n"