sampling

package
v3.0.0-...-55e877b Latest Latest
Warning

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

Go to latest
Published: Jul 29, 2023 License: GPL-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ResampleBytes

func ResampleBytes(data []byte, bitsPerSample int) []uint32

func ResampleUint32

func ResampleUint32(data []uint32, bitsPerInputSample int, bitsPerOutputSample int) []uint32

Types

type Reader

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

func NewReader

func NewReader(img _a.ImageBase) *Reader

func (*Reader) ReadSample

func (_fa *Reader) ReadSample() (uint32, error)

func (*Reader) ReadSamples

func (_ef *Reader) ReadSamples(samples []uint32) (_ga error)

type SampleReader

type SampleReader interface {
	ReadSample() (uint32, error)
	ReadSamples(_f []uint32) error
}

type SampleWriter

type SampleWriter interface {
	WriteSample(_ecb uint32) error
	WriteSamples(_c []uint32) error
}

type Writer

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

func NewWriter

func NewWriter(img _a.ImageBase) *Writer

func (*Writer) WriteSample

func (_ea *Writer) WriteSample(sample uint32) error

func (*Writer) WriteSamples

func (_eef *Writer) WriteSamples(samples []uint32) error

Jump to

Keyboard shortcuts

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