Enum sixel_sys::Optflag [] [src]

#[repr(u8)]
pub enum Optflag { OutFile, UseSevenBitMode, UseEightBitMode, HasGRIArgLimit, NumColors, Mapfile, Monochrome, Insecure, InvertBackground, UseHighColor, UseMacro, MacroNumber, ComplexionScore, IgnoreGIFDelay, StaticGIF, Diffusion, FindLargest, SelectColor, CropRegion, Width, Height, Resampling, QualityMode, LoopMode, PaletteType, BuiltinPalette, EncodingPolicy, BackgroundColor, PenetrateScreen, PipeInput, Verbose, Version, Help, }

Flags used in the easy encoder API.

Flags are the same as the ones used in the img2sixel executable

Variants

Specify output file name

Use sixel images for 7 bit terminals or printers

Default of the 2 bit mode flags

Use sixel images for 8 bit terminals or printers

Limit the arguments of DECGRI('!') to 255

Specify the number of colors to reduce the image to

Defaults to 256

Renamed from "SIXEL_OPTFLAG_COLORS"

Give a file that specifies a set of colors

Transforms the image to match the set

Output a monochrome sixel image

Assumes the terminal background color is black

Connect to SSL sites without certs

Only applicable if libcurl is used

Assume the terminal background color is white

Only applicable when also using Optflag::Monochrome

Output a 15bpp sixel image

Use DECDMAC and DEVINVM sequences to optimize GIF animation rendering

Specify a macro register number

Specify the number of arguments for the score of complexion correction

Must be 1 or more

Ignore delay when rendering GIF animations

Render an animated GIF as a static image

Choose a diffusion method to be used with the NumColors option

Should be a DiffusionMethod

Choose a method for finding the largest dimension of median cut boxes for splitting

Should be a MethodForLargest

Choose the method for selecting the representative color from each median-cut box.

Only makes sense when the Optflag::NumColors is used

Should be a MethodForRepColor

Crop a source image to fit some geometry

String format representation is "%dx%d+%d+%d", which is width, height, x, y

Resize an image to a specified width

Uses the following syntax:

  • auto

  • <number>% scale with a percentage

  • <number> scale a number of pixel counts

  • <number>px scale a number of pixel counts

Resize an image to a specified height

Uses the following syntax:

  • auto

  • <number>% scale with a percentage

  • <number> scale a number of pixel counts

  • <number>px scale a number of pixel counts

Choose a filter for resampling when scaling the image due to Optflag::Width or Optflag::Height

Should be a ResamplingMethod

Selects quality of color quanlization

Should be a QualityMode

Select loop behavior for animated GIFs

Should be a LoopMode

Select a palette color space

Should be a PaletteType

Choose a built-in palette type

Should be a BuiltinDither

Choose an encoding policy

Should be a EncodePolicy

Specify a background color

Represented by the following syntax:

#rgb
#rrggbb
#rrrgggbbb
#rrrrggggbbbb
rgb:r/g/b
rgb:rr/gg/bb
rgb:rrr/ggg/bbb
rgb:rrrr/gggg/bbbb

Penetrate GNU Screen using DCS pass-through sequence

Read source images from stdin continuously

Print debugging info

Print version and license info

Print a help message

Trait Implementations

impl Debug for Optflag
[src]

Formats the value using the given formatter.

impl Copy for Optflag
[src]

impl Clone for Optflag
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl PartialEq for Optflag
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Eq for Optflag
[src]

impl Hash for Optflag
[src]

Feeds this value into the given [Hasher]. Read more

Feeds a slice of this type into the given [Hasher]. Read more