/home/steven/tmp/wz/xz-utils/xz-utils-4.999.9beta+20100131/src/liblzma/lzma/lzma_encoder_presets.c File Reference

Encoder presets. More...

#include "common.h"

Functions

lzma_bool lzma_lzma_preset (lzma_options_lzma *options, uint32_t preset)
 Set a compression preset to lzma_options_lzma structure.


Detailed Description

Encoder presets.


Function Documentation

lzma_bool lzma_lzma_preset ( lzma_options_lzma options,
uint32_t  preset 
)

Set a compression preset to lzma_options_lzma structure.

0 is the fastest and 9 is the slowest. These match the switches -0 .. -9 of the xz command line tool. In addition, it is possible to bitwise-or flags to the preset. Currently only LZMA_PRESET_EXTREME is supported. The flags are defined in container.h, because the flags are used also with lzma_easy_encoder().

The preset values are subject to changes between liblzma versions.

This function is available only if LZMA1 or LZMA2 encoder has been enabled when building liblzma.

References LZMA_MF_BT4, LZMA_MF_HC3, LZMA_MF_HC4, LZMA_MODE_FAST, LZMA_MODE_NORMAL, LZMA_PRESET_EXTREME, and LZMA_PRESET_LEVEL_MASK.

Referenced by lzma_easy_preset().


Generated on Mon Feb 15 15:28:22 2010 for XZ Utils by  doxygen 1.5.6