assocdecode

package
v0.43.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 16, 2026 License: Apache-2.0 Imports: 3 Imported by: 0

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL