unidoc: github.com/unidoc/unidoc/pdf/model/sampling Index | Files

package sampling

import "github.com/unidoc/unidoc/pdf/model/sampling"

Index

Package Files

resample.go

func ResampleBytes Uses

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

Resample the raw data which is in 8-bit (byte) format as a different bit count per sample, up to 32 bits (uint32).

func ResampleUint32 Uses

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

Resample the raw data which is in <=32-bit (uint32) format as a different bit count per sample, up to 32 bits (uint32).

bitsPerOutputSample is the number of bits for each output sample (up to 32) bitsPerInputSample is the number of bits used in each input sample (up to 32)

Package sampling is imported by 2 packages. Updated 2019-05-22. Refresh now. Tools for package owners.