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 + const SOF0BaselineDCT + const SOF10ArithmeticProgressiveDCT + const SOF11ArithmeticLossless + const SOF13DiffArithmeticSequentialDCT + const SOF14DiffArithmeticProgressiveDCT + const SOF15DiffArithmeticLossless + const SOF1ExtendedSequentialDCT + const SOF2ProgressiveDCT + const SOF3LosslessSequential + const SOF5DifferentialSequentialDCT + const SOF6DifferentialProgressiveDCT + const SOF7DifferentialLossless + const SOF9ArithmeticSequentialDCT + const SOFUnknown + func SOFTypeName(sofType int) string + type ByteReader interface + ReadByte func() (byte, error) + Remaining func() int + type Decoder struct + func NewDecoder(_ []byte, reader ByteReader, validator Validator) *Decoder + func NewDecoderForSOF(sofType int, data []byte, reader ByteReader, validator Validator) (*Decoder, error) + func (d *Decoder) Decode() ([]int, error) + func (d *Decoder) GetComponentCount() int + func (d *Decoder) GetImageHeight() int + func (d *Decoder) GetImageWidth() int + func (d *Decoder) GetPrecision() int + func (d *Decoder) GetQuantTableIDs() []int + func (d *Decoder) GetQuantizationTables() map[int][64]int + func (d *Decoder) GetSOFType() int + func (d *Decoder) GetSamplingFactors() (horizontal, vertical []int) + func (d *Decoder) GetSpectralSelection() (ss, se int) + func (d *Decoder) GetSuccessiveApproximation() (ah, al int) + func (d *Decoder) IsDifferential() bool + func (d *Decoder) IsLossless() bool + func (d *Decoder) IsProgressive() bool + type Table struct + func NewTable(reader ByteReader) *Table + func (t *Table) GetHuffval() [256]int + func (t *Table) GetLength() int + func (t *Table) GetMaxcode() [18]int + func (t *Table) GetMincode() [17]int + func (t *Table) GetValptr() [17]int + type Validator interface + ValidateArrayIndex func(index int, arrayLength int) error + ValidateBitCount func(bits int) error + ValidateCoefficientIndex func(k int) error + ValidateSliceAccess func(slice []int, index int) error + ValidateTableIndex func(tableIdx int) error + type ValidatorAdapter struct + func NewValidatorAdapter(parentValidator interface{ ... }) *ValidatorAdapter + func (v *ValidatorAdapter) ValidateArrayIndex(index int, arrayLength int) error + func (v *ValidatorAdapter) ValidateBitCount(bits int) error + func (v *ValidatorAdapter) ValidateCoefficientIndex(k int) error + func (v *ValidatorAdapter) ValidateSliceAccess(slice []int, index int) error + func (v *ValidatorAdapter) ValidateTableIndex(tableIdx int) error