Versions in this module Expand all Collapse all v0 v0.1.0 Jun 12, 2022 Changes in this version + const Extension + const SupportedVersion + var MagicSequence = [4]byte + func ChunkCount(dataWindow Box2i, compression Compression) int + func Read(in io.Reader, data any) error + func ReadAttributeName(in io.Reader, target *AttributeName) error + func ReadAttributeType(in io.Reader, target *AttributeType) error + func ReadBox2i(in io.Reader, target *Box2i) error + func ReadChannelList(in io.Reader, target *ChannelList) error + func ReadCompression(in io.Reader, target *Compression) error + func ReadHeader(in io.Reader, target *Header) error + func ReadLineOrder(in io.Reader, target *LineOrder) error + func ReadMagic(in io.Reader, target *Magic) error + func ReadNullTerminatedString(in io.Reader, target *T) error + func ReadOffsets(in io.Reader, chunkCount int) error + func ReadScanLineBlock(in io.Reader, dataWindow Box2i, compression Compression, ...) error + func ReadVersion(in io.Reader, target *Version) error + type AttributeName string + const AttributeNameChannels + const AttributeNameCompression + const AttributeNameDataWindow + const AttributeNameDisplayWindow + const AttributeNameLineOrder + const AttributeNamePixelAspectRatio + const AttributeNameScreenWindowCenter + const AttributeNameScreenWindowWidth + type AttributeType string + const AttributeTypeBox2i + const AttributeTypeChannelList + const AttributeTypeCompression + const AttributeTypeFloat + const AttributeTypeLineOrder + const AttributeTypeV2f + type Box2i struct + XMax int32 + XMin int32 + YMax int32 + YMin int32 + func (b Box2i) Contains(other Box2i) bool + func (b Box2i) Height() int32 + func (b Box2i) Width() int32 + type Channel struct + Linear bool + Name string + PixelType PixelType + XSampling int32 + YSampling int32 + type ChannelList []Channel + type Compression uint8 + const CompressionB44 + const CompressionB44A + const CompressionNone + const CompressionPIZ + const CompressionPXR24 + const CompressionRLE + const CompressionZIP + const CompressionZIPS + func (c Compression) LineCount() int + func (c Compression) String() string + type Decompressor interface + Decompress func(src *bytes.Buffer) (*bytes.Buffer, error) + func NewNopDecompressor() Decompressor + func NewZipDecompressor() Decompressor + type Flag int32 + const FlagLongName + const FlagMultipart + const FlagNonImage + const FlagSingleTile + type Header struct + Channels ChannelList + Compression Compression + DataWindow Box2i + DisplayWindow Box2i + LineOrder LineOrder + type LineOrder uint8 + const LineOrderDecreasingY + const LineOrderIncreasingY + const LineOrderRandomY + func (o LineOrder) String() string + type Magic [4]byte + func (m Magic) IsCorrect() bool + type PixelData interface + Float32 func(x, y int) float32 + LineSize func() int32 + ReadLine func(in io.Reader, y int32) error + func NewFloat16PixelData(window Box2i, xSampling, ySampling int32) PixelData + func NewFloat32PixelData(window Box2i, xSampling, ySampling int32) PixelData + func NewNopPixelData(value float32) PixelData + func NewUint32PixelData(window Box2i, xSampling, ySampling int32) PixelData + type PixelType int32 + const PixelTypeFloat + const PixelTypeHalf + const PixelTypeUint + func (t PixelType) String() string + type Version int32 + func (v Version) HasFlag(flag Flag) bool + func (v Version) Number() int