pnglib

package
v0.0.0-...-ab30f0b Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 19, 2022 License: GPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Chunk

type Chunk struct {
	Size uint32
	Type uint32
	Data []byte
	CRC  uint32
}

Chunk represents a data byte chunk

type Header struct {
	Header uint64 //  0:8
}

Header holds the first byte (aka magic byte)

type MetaChunk

type MetaChunk struct {
	Chk    Chunk
	Offset int64
}

MetaChunk inherits a Chunk struct

func (*MetaChunk) ProcessImage

func (mc *MetaChunk) ProcessImage(b *bytes.Reader, c *models.CmdLineOpts)

ProcessImage is the wrapper to parse PNG bytes

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL