Expand description
Pixel-domain conversion for the Y (luminance) channel.
Provides IDCT (coefficient → pixel) and forward DCT (pixel → coefficient) transforms for geometry-resilient steganography. Only operates on the Y channel — no RGB conversion needed since the DFT template is embedded in luminance.
Functions§
- dct_
block - 8×8 forward DCT + quantize → 64 DCT coefficients.
- dct_
block_ unquantized - 8×8 forward DCT + divide by QT, but do NOT round.
- idct_
block - Dequantize + 8×8 IDCT → 64 spatial-domain pixel values.
- jpeg_
to_ luma_ f64 - Convert entire Y-channel DctGrid → row-major f64 pixel array.
- luma_
f64_ to_ jpeg - Write f64 pixel array back into Y-channel DctGrid.
- rgb_
to_ luma_ blocks - Convert RGB pixel buffer to Y (luminance) 8×8 blocks.