Function evalchroma::adjust_sampling[][src]

pub fn adjust_sampling<T: Copy + RGBToCbQuick>(
    img: ImgRef<T>,
    subsampling: PixelSize,
    chroma_quality: f32
) -> ChromaEvaluation

Analyze img, and recommend best subsampling for the image.

subsampling is the worst allowed subsampling. If you pass (1,1) then output will also be (1,1). If you pass (2,2), then output may be same or sharper than that.

chroma_quality is the target image quality, from 0.0 to 100.0. Worse quality allows harsher subsampling.