Documentation
¶
Overview ¶
Package assocdecode is a thin shared helper for decoding image-codec associated images through the decoder registry, so each format's AssociatedImage.Decode doesn't duplicate the registry plumbing.
Strip-based (LZW / Deflate / uncompressed) associated images do NOT go through here — they use internal/tiffstrip, which owns the predictor + sample-interpretation knowledge.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ViaCodec ¶
func ViaCodec(comp opentile.Compression, data []byte, opts decoder.DecodeOptions) (*decoder.Image, error)
ViaCodec decodes faithful, standalone image-codec bytes (JPEG, JPEG 2000, HTJ2K, WebP, AVIF, JPEG XL) through the registered decoder for comp, honoring opts. Returns a wrapped decoder.ErrCodecUnavailable when no decoder is registered for the codec (e.g. a jp2k image under a nojp2k build), matching the region-decode path's behavior.
Types ¶
This section is empty.