opencv::imgcodecs
pub const IMWRITE_PNG_STRATEGY_HUFFMAN_ONLY: i32 = 2;
Use this value to force Huffman encoding only (no string match).