Versions in this module Expand all Collapse all v1 v1.0.1 May 14, 2023 v1.0.0 Mar 29, 2023 Changes in this version + func Init() error — windows/amd64 + func Init(v bool) error — linux/amd64 + func Proc(ident any, src ImageResizer, maxWidth, maxHeight int, callback func(*Sixel)) + func ProcClear() + func ProcDelete(key any) + type CPUImageResizer struct + func (cir *CPUImageResizer) Release() error + func (cir *CPUImageResizer) Resize(maxWidth, maxHeight uint) (image.Image, error) + func (cir *CPUImageResizer) ResizePaletted(p, maxWidth, maxHeight uint) (*image.Paletted, error) + type Cache struct + func (cc *Cache) Load(key any) (any, bool) + func (cc *Cache) Store(key, val any) + type Capturer struct + func NewCapturer() *Capturer + func (c *Capturer) Dump() + type ImageResizer interface + Release func() error + Resize func(maxWidth, maxHeight uint) (image.Image, error) + ResizePaletted func(p, maxWidth, maxHeight uint) (*image.Paletted, error) + func NewImageResizer(i any) ImageResizer + func NewImageResizer(img image.Image) (ImageResizer, error) + func NewOpenCLImageResizer(img image.Image) (ImageResizer, error) + type ImageResizerOpenCL struct — linux/amd64 + func (ir *ImageResizerOpenCL) Release() error + func (ir *ImageResizerOpenCL) Resize(maxWidth, maxHeight uint) (image.Image, error) + func (ir *ImageResizerOpenCL) ResizePaletted(p, maxWidth, maxHeight uint) (*image.Paletted, error) + type Sixel struct + Bounds image.Rectangle + func EncodeSixel(nc int, img *image.Paletted) *Sixel + func (s *Sixel) Rows() int + type SixelScreen struct + func (ss *SixelScreen) Add(s *Sixel, x, y, from, to int) + func (ss *SixelScreen) Reset() + func (ss *SixelScreen) Write(w io.Writer)