Available on
doc
or test
only.Expand description
§icy_sixel
modifications
(↑) This is derived work from the
icy_sixel
crate,
(a Rust port of libsixel
)
including the following modifications:
- make it work with
no_std
. - make it work without
unsafe
. - make several functions
const
. - rename
sixel_dither
toDitherConf
. - rename
MethodForRep
toSixelMean
. - rename
DiffusionMethod
toDither
. - rename
MethodForLargest
toSixelSplit
. - rename
BuiltinDither
toSixelPalette
, and associate the palettes. - rename
PaletteType
toSixelColorModel
and itsColorBox
variant toColors
. - add new methods to
PixelFormat
:bits_per_pixel
,bytes_per_pixel
,required_bytes
. - make private:
SixelPalette
,SixelNode
,SixelOutput
,SixelEncodePolicy
,SixelColorModel
,FormatType
, many functions. - new
Sixel
builder struct and make thesixel_string
function private. - derive
Default
andConstDefault
, when possible. - rename many items according to rust guidelines.
- simplify lints, comments and attributes.
- improve docs, also for private items.
- improve and simplify error types.
- remove commented-out code.
- big refactor, modularize.