Lines Matching refs:preset
196 uint32_t preset = LZMA_PRESET_DEFAULT; in INT_TYPE_CONVERTER_FUNC() local
209 int ok = uint32_converter(preset_obj, &preset); in INT_TYPE_CONVERTER_FUNC()
220 if (lzma_lzma_preset(options, preset)) { in INT_TYPE_CONVERTER_FUNC()
222 PyErr_Format(Error, "Invalid compression preset: %d", preset); in INT_TYPE_CONVERTER_FUNC()
603 Compressor_init_xz(lzma_stream *lzs, int check, uint32_t preset, in Compressor_init_xz() argument
609 lzret = lzma_easy_encoder(lzs, preset, check); in Compressor_init_xz()
625 Compressor_init_alone(lzma_stream *lzs, uint32_t preset, PyObject *filterspecs) in Compressor_init_alone() argument
632 if (lzma_lzma_preset(&options, preset)) { in Compressor_init_alone()
633 PyErr_Format(Error, "Invalid compression preset: %d", preset); in Compressor_init_alone()
718 uint32_t preset = LZMA_PRESET_DEFAULT; in Compressor_init() local
741 if (!uint32_converter(preset_obj, &preset)) in Compressor_init()
760 if (Compressor_init_xz(&self->lzs, check, preset, filterspecs) != 0) in Compressor_init()
765 if (Compressor_init_alone(&self->lzs, preset, filterspecs) != 0) in Compressor_init()