j40

package module
v0.0.0-...-ca6f4d7 Latest Latest
Warning

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

Go to latest
Published: Sep 21, 2022 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

Package j40 is independent, self-contained JPEG XL decoder.

Index

Constants

View Source
const (
	U8x4 = 0x0f33
	Rgba = 0x1755
)

Constants .

Variables

This section is empty.

Functions

func ErrorString

func ErrorString(image *Image) string

ErrorString .

func Free

func Free(image *Image)

Free .

func NextFrame

func NextFrame(image *Image) int32

NextFrame .

func Row

func Row(pixels Pixels, y int32) []byte

Row .

Types

type Err

type Err uint32

Err .

func Error

func Error(image *Image) Err

Error .

func FromFile

func FromFile(image *Image, path string) Err

FromFile .

func FromMemory

func FromMemory(image *Image, buf unsafe.Pointer, size uint32) Err

FromMemory .

func OutputFormat

func OutputFormat(image *Image, channel int32, format int32) Err

OutputFormat .

type Frame

type Frame struct {
	Magic    uint32
	Reserved uint32
	// contains filtered or unexported fields
}

Frame .

func CurrentFrame

func CurrentFrame(image *Image) *Frame

CurrentFrame .

type Image

type Image struct {
	Magic uint32
	// contains filtered or unexported fields
}

Image .

type Pixels

type Pixels struct {
	Width  int32
	Height int32
	Stride int32
	Data   unsafe.Pointer
}

Pixels .

func FramePixels

func FramePixels(frame *Frame, channel int32) Pixels

FramePixels .

Jump to

Keyboard shortcuts

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