Skip to main content

Module hooks

Module hooks 

Source
Expand description

This module provides a way to register decoding hooks for image formats not directly supported by this crate.

Structsยง

GenericReader
A wrapper around a type-erased trait object that implements Read and Seek.

Staticsยง

DECODING_HOOKS ๐Ÿ”’
Stores ascii lowercase extension to hook mapping
GUESS_FORMAT_HOOKS ๐Ÿ”’

Traitsยง

ReadSeek ๐Ÿ”’

Functionsยง

decoding_hook_registered
Returns whether a decoding hook has been registered for the given format.
register_decoding_hook
Register a new decoding hook or returns false if one already exists for the given format.
register_format_detection_hook
Registers a format detection hook.

Type Aliasesยง

DecodingHook
A function to produce an ImageDecoder for a given image format.
DetectionHook ๐Ÿ”’