Skip to main content

register_decoding_hook

Function register_decoding_hook 

Source
pub fn register_decoding_hook() -> bool
Expand description

Registers the decoder with the image crate so that non-format-specific calls such as ImageReader::open("image.jp2")?.decode()?; work with JPEG2000 files.

Returns true on success, or false if the hook for JPEG2000 is already registered.