Lines Matching refs:preset
8 /// Usage: ./01_compress_easy PRESET < INFILE > OUTFILE
27 fprintf(stderr, "Usage: %s PRESET < INFILE > OUTFILE\n"
28 "PRESET is a number 0-9 and can optionally be "
29 "followed by 'e' to indicate extreme preset\n",
43 uint32_t preset = argv[1][0] - '0';
51 preset |= LZMA_PRESET_EXTREME;
54 return preset;
59 init_encoder(lzma_stream *strm, uint32_t preset)
61 // Initialize the encoder using a preset. Set the integrity to check
65 lzma_ret ret = lzma_easy_encoder(strm, preset, LZMA_CHECK_CRC64);
82 msg = "Specified preset is not supported";
264 // Get the preset number from the command line.
265 uint32_t preset = get_preset(argc, argv);
276 bool success = init_encoder(&strm, preset);