Skip to main content

super_resolve_image

Function super_resolve_image 

Source
pub fn super_resolve_image(
    bytes: &[u8],
    scale: u8,
    kernel: &str,
    prefer_gpu: bool,
) -> Result<SrResultDto, String>
Expand description

Decode arbitrary image bytes, classically super-resolve (Enhance), and return before/after PNG data URLs plus device/honesty metadata.

Mirrors the Listen/audio_capabilities composition: decode → engine op → PNG-encode both frames → DTO. Classical SR is non-generative (Sharpen).