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
OutFile
Specify output file name
UseSevenBitMode
Use sixel images for 7 bit terminals or printers
Default of the 2 bit mode flags
UseEightBitMode
Use sixel images for 8 bit terminals or printers
HasGRIArgLimit
Limit the arguments of DECGRI('!') to 255
NumColors
Specify the number of colors to reduce the image to
Defaults to 256
Renamed from "SIXEL_OPTFLAG_COLORS"
Mapfile
Give a file that specifies a set of colors
Transforms the image to match the set
Monochrome
Output a monochrome sixel image
Assumes the terminal background color is black
Insecure
Connect to SSL sites without certs
Only applicable if libcurl is used
InvertBackground
Assume the terminal background color is white
Only applicable when also using Optflag::Monochrome
UseHighColor
Output a 15bpp sixel image
UseMacro
Use DECDMAC and DEVINVM sequences to optimize GIF animation rendering
MacroNumber
Specify a macro register number
ComplexionScore
Specify the number of arguments for the score of complexion correction
Must be 1 or more
IgnoreGIFDelay
Ignore delay when rendering GIF animations
StaticGIF
Render an animated GIF as a static image
Diffusion
Choose a diffusion method to be used with the NumColors option
Should be a DiffusionMethod
FindLargest
Choose a method for finding the largest dimension of median cut boxes for splitting
Should be a MethodForLargest
SelectColor
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
CropRegion
Crop a source image to fit some geometry
String format representation is "%dx%d+%d+%d", which is width, height, x, y
Width
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
Height
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
Resampling
Choose a filter for resampling when scaling the image due to
Optflag::Width
or Optflag::Height
Should be a ResamplingMethod
QualityMode
Selects quality of color quanlization
Should be a QualityMode
LoopMode
Select loop behavior for animated GIFs
Should be a LoopMode
PaletteType
Select a palette color space
Should be a PaletteType
BuiltinPalette
Choose a built-in palette type
Should be a BuiltinDither
EncodingPolicy
Choose an encoding policy
Should be a EncodePolicy
BackgroundColor
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
PenetrateScreen
Penetrate GNU Screen using DCS pass-through sequence
PipeInput
Read source images from stdin continuously
Verbose
Print debugging info
Version
Print version and license info
Help
Print a help message
Trait Implementations
impl Debug for Optflag
[src]
impl Copy for Optflag
[src]
impl Clone for Optflag
[src]
fn clone(&self) -> Optflag
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl PartialEq for Optflag
[src]
fn eq(&self, __arg_0: &Optflag) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Rhs) -> bool
1.0.0
This method tests for !=
.