Package is.galia.codec
Contains classes related to reading/decoding and writing/coding of images and image metadata.
Image I/O readers & writers
Decoder
and Encoder
implementations wrap ImageReader
and ImageWriter
instances to augment them with improved
functionality, including simplified reading and writing methods, improved
metadata access, and more efficient handling of multi-resolution source
images.
Instances can be obtained from DecoderFactory
and
EncoderFactory
, respectively.
Custom readers & writers
The Image I/O readers & writers work well within the bounds of their capabilities, but there are some things they can't do, or for which the API is awkward. Where going through Image I/O would be too difficult, there are also some custom classes in subpackages that access images directly.
Metadata
Metadata may be encoded in different ways in different image formats.
Metadata
is an
interface for normalized metadata that can either be returned from a reader,
or assembled pretty easily, and then passed to a writer which codes it
differently depending on the format being written.
-
ClassDescription
Decoder
implementations may subclass this to get some free functionality.Abstract class that can be extended by aDecoder
that wraps anImageReader
.Sequence of images in temporal order, to support video or slide-show image content, such as animated GIFs.Image decoder.Used for obtainingDecoder
instances.Hint provided to or returned fromDecoder.decode(int, Region, double[], ReductionFactor, double[], Set)
.Image encoder.Tries to detect a file's format by reading its signature, a.k.a. magic bytes, and consultingevery available decoder
to find out whether it caninfer a format
from those bytes.Wraps aIIOMetadata
.