easy_preset.h 921 B

123456789101112131415161718192021222324252627282930313233
  1. ///////////////////////////////////////////////////////////////////////////////
  2. //
  3. /// \file easy_preset.h
  4. /// \brief Preset handling for easy encoder and decoder
  5. //
  6. // Author: Lasse Collin
  7. //
  8. // This file has been put into the public domain.
  9. // You can do whatever you want with this file.
  10. //
  11. ///////////////////////////////////////////////////////////////////////////////
  12. #include "common.h"
  13. typedef struct {
  14. /// We need to keep the filters array available in case
  15. /// LZMA_FULL_FLUSH is used.
  16. lzma_filter filters[LZMA_FILTERS_MAX + 1];
  17. /// Options for LZMA2
  18. lzma_options_lzma opt_lzma;
  19. // Options for more filters can be added later, so this struct
  20. // is not ready to be put into the public API.
  21. } lzma_options_easy;
  22. /// Set *easy to the settings given by the preset. Returns true on error,
  23. /// false on success.
  24. extern bool lzma_easy_preset(lzma_options_easy *easy, uint32_t preset);