Open Melirius opened 1 month ago
@mcroomp, unfortunately this is not working, not enough precision for all u16 range https://github.com/microsoft/lepton_jpeg_rust/blob/2f8c32420e3c67462afa459ece898b001794ce2e/src/structs/quantization_tables.rs#L88
Even 2^32 fails - first at 17215. A classical scheme from Warren should work, but it has variable shifts.
I wanted to make this, but you are faster :)
@mcroomp, unfortunately this is not working, not enough precision for all u16 range https://github.com/microsoft/lepton_jpeg_rust/blob/2f8c32420e3c67462afa459ece898b001794ce2e/src/structs/quantization_tables.rs#L88
Even 2^32 fails - first at 17215. A classical scheme from Warren should work, but it has variable shifts.