Crate sixel_sys [] [src]

Bindings to libsixel

libsixel is an encoder/decoder implementation for DEC SIXEL graphics

SIXEL is one of image formats for printer and terminal imaging introduced by Digital Equipment Corp. (DEC). Its data scheme is represented as a terminal-friendly escape sequence. So if you want to view a SIXEL image file, all you have to do is "cat" it to your terminal.

For additional information, please check its repo

Modules

status

Structs

Version

Enums

Allocator

Can be passed to API functions to control allocation

BuiltinDither
CharacterSize

Output character size

Decoder
DecoderOptflag

Flags used in the easy decoder API.

DiffusionMethod
Dither
EncodePolicy

Policy used when encoding

Encoder
FormatType

Offset value used for the values of PixelFormat

Frame
ImageFormat
LoopMode

How to treat GIF animations that loop

MethodForLargest

Method for finding the largest dimension for splitting, and sorting by that component.

MethodForRepColor

Method for choosing the a color from the box

Optflag

Flags used in the easy encoder API.

Output
PaletteType
PixelFormat

Pixel format used in input image

QualityMode

Quality of palette

ResamplingMethod

What filter to use when resampling

Constants

ABI_VERSION
OUTPUT_PACKET_SIZE
PALETTE_MAX
PALETTE_MIN
USE_DEPRECATED_SYMBOLS
VERSION

Functions

sixel_allocator_calloc
sixel_allocator_free
sixel_allocator_malloc
sixel_allocator_new

Create a new allocator

sixel_allocator_realloc
sixel_allocator_ref
sixel_allocator_unref
sixel_decode
sixel_decode_raw
sixel_decoder_create
sixel_decoder_decode
sixel_decoder_new
sixel_decoder_ref
sixel_decoder_setopt
sixel_decoder_unref
sixel_dither_create
sixel_dither_destroy
sixel_dither_get
sixel_dither_get_num_of_histgram_colors
sixel_dither_get_num_of_histogram_colors
sixel_dither_get_num_of_palette_colors
sixel_dither_get_palette
sixel_dither_initialize
sixel_dither_new
sixel_dither_ref
sixel_dither_set_body_only
sixel_dither_set_complexion_score
sixel_dither_set_diffusion_type
sixel_dither_set_optimize_palette
sixel_dither_set_palette
sixel_dither_set_pixelformat
sixel_dither_set_transparent
sixel_dither_unref
sixel_encode
sixel_encoder_create
sixel_encoder_encode
sixel_encoder_encode_bytes
sixel_encoder_new
sixel_encoder_ref
sixel_encoder_set_cancel_flag
sixel_encoder_setopt
sixel_encoder_unref
sixel_frame_clip
sixel_frame_create
sixel_frame_get_delay
sixel_frame_get_frame_no
sixel_frame_get_height
sixel_frame_get_loop_no
sixel_frame_get_multiframe
sixel_frame_get_ncolors
sixel_frame_get_palette
sixel_frame_get_pixelformat
sixel_frame_get_pixels
sixel_frame_get_transparent
sixel_frame_get_width
sixel_frame_init
sixel_frame_new
sixel_frame_ref
sixel_frame_resize
sixel_frame_strip_alpha
sixel_frame_unref
sixel_helper_compute_depth
sixel_helper_format_error
sixel_helper_get_additional_message
sixel_helper_load_image_file
sixel_helper_normalize_pixelformat
sixel_helper_scale_image
sixel_helper_set_additional_message
sixel_helper_write_image_file
sixel_output_create
sixel_output_destroy
sixel_output_get_8bit_availability
sixel_output_new
sixel_output_ref
sixel_output_set_8bit_availability
sixel_output_set_encode_policy
sixel_output_set_gri_arg_limit
sixel_output_set_palette_type
sixel_output_set_penetrate_multiplexer
sixel_output_set_skip_dcs_envelope
sixel_output_unref

Type Definitions

CallocFn
FreeFn
LoadImageFn
MallocFn
ReallocFn
WriteFn