Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Proc ¶
func Proc( ident any, src ImageResizer, maxWidth, maxHeight int, callback func(*Sixel), )
sends a image processing request to the workers
func ProcDelete ¶
func ProcDelete(key any)
Types ¶
type CPUImageResizer ¶
type CPUImageResizer struct {
// contains filtered or unexported fields
}
func (*CPUImageResizer) Release ¶
func (cir *CPUImageResizer) Release() error
func (*CPUImageResizer) Resize ¶
func (cir *CPUImageResizer) Resize(maxWidth, maxHeight uint) (image.Image, error)
func (*CPUImageResizer) ResizePaletted ¶
func (cir *CPUImageResizer) ResizePaletted(p, maxWidth, maxHeight uint) (*image.Paletted, error)
type Capturer ¶
type Capturer struct {
// contains filtered or unexported fields
}
func NewCapturer ¶
func NewCapturer() *Capturer
starts capturing stdout of a cgo call this needs to be called before every cgo call if you want the stdout output in go's log
type ImageResizer ¶
type ImageResizer interface { Release() error Resize(maxWidth, maxHeight uint) (image.Image, error) ResizePaletted(p, maxWidth, maxHeight uint) (*image.Paletted, error) }
func NewImageResizer ¶
func NewImageResizer(i any) ImageResizer
func NewOpenCLImageResizer ¶
func NewOpenCLImageResizer(img image.Image) (ImageResizer, error)
type ImageResizerOpenCL ¶
type ImageResizerOpenCL struct {
// contains filtered or unexported fields
}
func (*ImageResizerOpenCL) Release ¶
func (ir *ImageResizerOpenCL) Release() error
func (*ImageResizerOpenCL) Resize ¶
func (ir *ImageResizerOpenCL) Resize(maxWidth, maxHeight uint) (image.Image, error)
func (*ImageResizerOpenCL) ResizePaletted ¶
func (ir *ImageResizerOpenCL) ResizePaletted(p, maxWidth, maxHeight uint) (*image.Paletted, error)
type Sixel ¶
Sixel are the bytes of a image encoded in sixel format it has the ability to draw just specified rows of the image
type SixelScreen ¶
type SixelScreen struct {
// contains filtered or unexported fields
}
SixelScreen collects sixel data and it's positions then to be printed to the screen
func (*SixelScreen) Add ¶
func (ss *SixelScreen) Add(s *Sixel, x, y, from, to int)
func (*SixelScreen) Reset ¶
func (ss *SixelScreen) Reset()
func (*SixelScreen) Write ¶
func (ss *SixelScreen) Write(w io.Writer)
Click to show internal directories.
Click to hide internal directories.