easy_preset.h 915 B

123456789101112131415161718192021222324252627282930313233343536
  1. // SPDX-License-Identifier: 0BSD
  2. ///////////////////////////////////////////////////////////////////////////////
  3. //
  4. /// \file easy_preset.h
  5. /// \brief Preset handling for easy encoder and decoder
  6. //
  7. // Author: Lasse Collin
  8. //
  9. ///////////////////////////////////////////////////////////////////////////////
  10. #ifndef LZMA_EASY_PRESET_H
  11. #define LZMA_EASY_PRESET_H
  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);
  25. #endif