dxt

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Sep 16, 2025 License: Apache-2.0 Imports: 6 Imported by: 1

Documentation

Overview

Package dxt holds decoder for all kind DXT based dds encodings Specification: https://www.khronos.org/registry/OpenGL/extensions/EXT/EXT_texture_compression_s3tc.txt.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Decoder

type Decoder struct {
	// contains filtered or unexported fields
}

func New

func New(fourCC string, width, height int) (*Decoder, error)

func (*Decoder) Decode

func (d *Decoder) Decode(r io.Reader) (image.Image, error)

Decode decodes from r and returns a new image.Image as before.

func (*Decoder) DecodeTo added in v0.0.2

func (d *Decoder) DecodeTo(r io.Reader, dst draw.Image) error

DecodeTo decodes from r and writes the result into dst (must be at least bounds size). This allows memory reuse and avoids unnecessary allocations.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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