| 1 | //! LZ4_HC compression. |
| 2 | //! |
| 3 | //! LZ4_HC: High compression variant of LZ4. |
| 4 | //! |
| 5 | //! # Decompression |
| 6 | //! The `lz4_hc` module doesn't provide decompression functionality. |
| 7 | //! Use the [`lz4`] module instead. |
| 8 | //! |
| 9 | //! [`lz4`]: ../lz4/index.html |
| 10 | |
| 11 | mod binding; |
| 12 | mod block; |
| 13 | mod stream; |
| 14 | |
| 15 | pub use block::*; |
| 16 | pub use stream::*; |
| 17 | |
| 18 | /// Predefined compression level (3). |
| 19 | pub const CLEVEL_MIN: i32 = 3; |
| 20 | |
| 21 | /// Predefined compression level (9). |
| 22 | pub const CLEVEL_DEFAULT: i32 = 9; |
| 23 | |
| 24 | /// Predefined compression level (10). |
| 25 | pub const CLEVEL_OPT_MIN: i32 = 10; |
| 26 | |
| 27 | /// Predefined compression level (12). |
| 28 | pub const CLEVEL_MAX: i32 = 12; |
| 29 | |
| 30 | /// Decompression speed mode flag. |
| 31 | #[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)] |
| 32 | pub enum FavorDecSpeed { |
| 33 | Disabled, |
| 34 | Enabled, |
| 35 | } |
| 36 | |
| 37 | impl Default for FavorDecSpeed { |
| 38 | fn default() -> Self { |
| 39 | Self::Disabled |
| 40 | } |
| 41 | } |