Versions in this module Expand all Collapse all v1 v1.0.1 Jun 30, 2026 v1.0.0 Jun 30, 2026 Changes in this version + type Decoder struct + func NewDecoder(huffmanDecoder HuffmanDecoder, validator Validator) *Decoder + func (d *Decoder) ExtractCoefficients(data []byte) ([]int, error) + func (d *Decoder) GetCoefficients() []int + func (d *Decoder) GetComponentCount() int + func (d *Decoder) GetImageDimensions() (width, height int) + func (d *Decoder) GetQuantizationTables() map[int][64]int + func (d *Decoder) GetSamplingFactors() (horizontal, vertical []int) + func (d *Decoder) GetSubsampling() int + type HuffmanDecoder interface + Decode func() ([]int, error) + GetQuantizationTables func() map[int][64]int + type ImageMetadata interface + GetComponentCount func() int + GetImageHeight func() int + GetImageWidth func() int + type Validator interface + ValidateComponentCount func(count int) error + ValidateData func(data []byte) error + ValidateDimensions func(width, height int) error + func NewValidator() Validator + type ValidatorImpl struct + func (v *ValidatorImpl) ValidateComponentCount(count int) error + func (v *ValidatorImpl) ValidateData(data []byte) error + func (v *ValidatorImpl) ValidateDimensions(width, height int) error