Versions in this module Expand all Collapse all v0 v0.0.2 Nov 8, 2026 Changes in this version type Filter + func Box() Filter + func Kernel(support float64, k func(dx float64) float64) Filter + func Nearest() Filter + Weight func(dx, scale float64) float64 v0.0.1 Nov 4, 2026 Changes in this version + var ErrIncompatible = errors.New("arez: incompatible formats") + var ErrInvalidDescriptor = errors.New("arez: invalid descriptor") + var ErrInvalidFilter = errors.New("arez: invalid filter") + var ErrMismatch = errors.New("arez: image does not match the converter") + var ErrTooLarge = errors.New("arez: size too large") + var ErrTooSmall = errors.New("arez: size too small") + var ErrUnsupportedImage = errors.New("arez: unsupported image") + func Convert(output, input image.Image, filter Filter) error + type ChromaRatio int + const Ratio410 + const Ratio411 + const Ratio420 + const Ratio422 + const Ratio440 + const Ratio444 + func ChromaRatioOf(value image.YCbCrSubsampleRatio) (ChromaRatio, bool) + func (r ChromaRatio) String() string + type Converter interface + Convert func(dst, src image.Image) error + func NewConverter(cfg *ConverterConfig, filter Filter) (Converter, error) + type ConverterConfig struct + DisableSIMD bool + Input Descriptor + Output Descriptor + PremultiplyAlpha bool + Threads int + func Prepare(output, input image.Image) (*ConverterConfig, error) + type Descriptor struct + Depth int + Interlaced bool + Pack int + Planes int + Ratio ChromaRatio + Rect image.Rectangle + func (d Descriptor) Check() error + func (d Descriptor) Height(plane int) int + func (d Descriptor) String() string + func (d Descriptor) Width(plane int) int + type Filter interface + Get func(dx float64) float64 + Name func() string + Support func() int + func Bicubic() Filter + func Bilinear() Filter + func CustomBicubic(b, c float64) Filter + func Lanczos(alpha int) Filter + type Resizer interface + Resize func(dst, src []byte, width, height, dstPitch, srcPitch int) + func NewResizer(cfg *ResizerConfig, filter Filter) (Resizer, error) + type ResizerConfig struct + Depth int + DisableSIMD bool + Input int + Interlaced bool + Output int + Pack int + Threads int + Vertical bool