pnglib

package
v0.0.0-...-7d3318a Latest Latest
Warning

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

Go to latest
Published: Mar 6, 2023 License: MIT Imports: 10 Imported by: 2

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