1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
//! Trellis and hybrid quantization for optimal rate-distortion.
//!
//! This module consolidates all trellis/mozjpeg-style quantization code:
//!
//! - **`ac`**: AC coefficient trellis (Viterbi DP) - the core mozjpeg innovation
//! - **`dc`**: DC coefficient trellis optimization
//! - **`rate`**: Huffman rate estimation tables
//! - **`compat`**: mozjpeg-compatible [`TrellisConfig`] and [`TrellisSpeedMode`] types
//! - **`hybrid`**: Combined jpegli AQ + mozjpeg trellis ([`HybridConfig`], [`HybridQuantContext`])
//!
//! # Deletability
//!
//! This entire module can be removed (behind a feature flag) without affecting
//! the core jpegli encoder. When disabled, the encoder falls back to standard
//! zero-bias quantization.
// Re-export main trellis types
pub use trellis_quantize_block;
pub use RateTable;
pub use ;
// Re-export compat types
pub use ;
// Re-export hybrid types
pub use HybridConfig;
// Re-export hybrid core functions
// Encoder integration helpers (pub(crate) only)
pub use HybridQuantContext;