Documentation
¶
Index ¶
- Constants
- func Decompress(chunk_map ChunkMap) ([]byte, error)
- func Unfilter(filtered_bytes []byte, ihdr *IHDRChunk) ([][]byte, error)
- type Chunk
- type ChunkMap
- type Filter
- type GrayScaleImageBuilder
- type GrayscalePixel
- type GrayscaleReader
- type Histogram
- type IByteBuffer
- type IDatMemoryReader
- type IHDRChunk
- type IdentityFilter
- type ImageBuilder
- type ImageData
- type MemoryBuffer
- type Palette
- type PaletteImageBuilder
- type Pixel
- type PixelReader
- type PixelValue
- type RGBImageBuilder
- type RGBPixel
- type RgbReader
- type Uint
- type UndoAverageFilter
- type UndoPaethFilter
- type UndoSubFilter
- type UndoUpFilter
Constants ¶
View Source
const ( // Critical Chunks IHDR string = "IHDR" PLTE string = "PLTE" IDAT string = "IDAT" IEND string = "IEND" Byte uint32 = 1 Kibibyte = 1024 * Byte Mebibyte = 1024 * Kibibyte Gibibyte = 1024 * Mebibyte MaxChunkSize = 100 * Mebibyte Greyscale = byte(0) TrueColor = byte(2) IndexedColor = byte(3) GreyscaleWithAlpha = byte(4) TrueColorWithAlpha = byte(6) )
Variables ¶
This section is empty.
Functions ¶
func Decompress ¶
Types ¶
type Chunk ¶
type Chunk struct {
// contains filtered or unexported fields
}
func (*Chunk) Iscritical ¶
type GrayScaleImageBuilder ¶
func (*GrayScaleImageBuilder[T]) BuildPixels ¶
func (self *GrayScaleImageBuilder[T]) BuildPixels(data [][]byte) (*ImageData, error)
type GrayscalePixel ¶
type GrayscalePixel[T Uint] struct { // contains filtered or unexported fields }
func CreateGrayscalePixel ¶
func CreateGrayscalePixel[T Uint](g T) *GrayscalePixel[T]
func CreateGrayscaleWithAlphaPixel ¶
func CreateGrayscaleWithAlphaPixel[T Uint](g T, a T) *GrayscalePixel[T]
func (*GrayscalePixel[T]) Uint16 ¶
func (self *GrayscalePixel[T]) Uint16() []uint16
type GrayscaleReader ¶
func (*GrayscaleReader[T]) ReadPixels ¶
type IByteBuffer ¶
Abstract chunk data to handle big chunks in the future
type IDatMemoryReader ¶
type IDatMemoryReader struct {
// contains filtered or unexported fields
}
func (*IDatMemoryReader) Reader ¶
func (idat *IDatMemoryReader) Reader() io.Reader
type IHDRChunk ¶
type IHDRChunk struct { Width uint32 Height uint32 Bitdepth byte Colortype byte Compression byte Filter byte Interlace byte }
func (*IHDRChunk) FilterStep ¶
func (*IHDRChunk) GetBytesPerLine ¶
func (*IHDRChunk) GetSamples ¶
type IdentityFilter ¶
type IdentityFilter struct{}
type ImageBuilder ¶
type MemoryBuffer ¶
type MemoryBuffer struct {
// contains filtered or unexported fields
}
func (*MemoryBuffer) GetRawData ¶
func (memoryData *MemoryBuffer) GetRawData() []byte
func (*MemoryBuffer) GetReader ¶
func (self *MemoryBuffer) GetReader() *bytes.Reader
type PaletteImageBuilder ¶
func (*PaletteImageBuilder) BuildPixels ¶
func (self *PaletteImageBuilder) BuildPixels(data [][]byte) (*ImageData, error)
type PixelReader ¶
type PixelValue ¶
type PixelValue []uint32
type RGBImageBuilder ¶
func (*RGBImageBuilder[T]) BuildPixels ¶
func (self *RGBImageBuilder[T]) BuildPixels(data [][]byte) (*ImageData, error)
type RGBPixel ¶
type RGBPixel[T Uint] struct { // contains filtered or unexported fields }
func CreateRGBA ¶
type UndoAverageFilter ¶
type UndoAverageFilter struct {
// contains filtered or unexported fields
}
type UndoPaethFilter ¶
type UndoPaethFilter struct {
// contains filtered or unexported fields
}
func (*UndoPaethFilter) PaethPredictor ¶
func (self *UndoPaethFilter) PaethPredictor(a byte, b byte, c byte) byte
type UndoSubFilter ¶
type UndoSubFilter struct {
// contains filtered or unexported fields
}
type UndoUpFilter ¶
type UndoUpFilter struct {
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.