Module surf_n_term::image[][src]

Handling everything to do with images.

Provides:

  • Protocol handling
  • Image object
  • Quantization and dithering

Structs

ColorPalette

Color palette which implements fast NNS with euclidian distance.

DummyImageHandler

Image handler which ignores requests

Image

Arc wrapped RGBA surface with precomputed hash

ItermImageHandler

Image handler for iTerm2 graphic protocol

KDTree

3-dimentional KDTree which is used to quickly find nearest (euclidian distance) color from the palette.

KittyImageHandler

Image handler for kitty graphic protocol

OcTree

Oc(tet)Tree used for color quantization

SixelImageHandler

Image handler for sixel graphic protocol

Traits

ImageHandler

Image rendering/handling interface

Functions

image_handler_detect

Detect appropriate image handler for provided termainl