Struct libvips_rs::ops::Jp2KsaveBufferOptions
source · pub struct Jp2KsaveBufferOptions {
pub tile_width: i32,
pub tile_height: i32,
pub lossless: bool,
pub q: i32,
pub subsample_mode: ForeignSubsample,
pub keep: ForeignKeep,
pub background: Vec<f64>,
pub page_height: i32,
pub profile: String,
}
Expand description
Options for jp_2ksave_buffer operation
Fields§
§tile_width: i32
tile_width: i32
-> Tile width in pixels
min: 1, max: 32768, default: 512
tile_height: i32
tile_height: i32
-> Tile height in pixels
min: 1, max: 32768, default: 512
lossless: bool
lossless: bool
-> Enable lossless compression
default: false
q: i32
q: i32
-> Q factor
min: 1, max: 100, default: 48
subsample_mode: ForeignSubsample
subsample_mode: ForeignSubsample
-> Select chroma subsample operation mode
Auto
-> VIPS_FOREIGN_SUBSAMPLE_AUTO = 0
On
-> VIPS_FOREIGN_SUBSAMPLE_ON = 1
Off
-> VIPS_FOREIGN_SUBSAMPLE_OFF = 2 [DEFAULT]
Last
-> VIPS_FOREIGN_SUBSAMPLE_LAST = 3
keep: ForeignKeep
keep: ForeignKeep
-> Which metadata to retain
None
-> VIPS_FOREIGN_KEEP_NONE = 0
Exif
-> VIPS_FOREIGN_KEEP_EXIF = 1
Xmp
-> VIPS_FOREIGN_KEEP_XMP = 2
Iptc
-> VIPS_FOREIGN_KEEP_IPTC = 4
Icc
-> VIPS_FOREIGN_KEEP_ICC = 8
Other
-> VIPS_FOREIGN_KEEP_OTHER = 16
All
-> VIPS_FOREIGN_KEEP_ALL = 31 [DEFAULT]
background: Vec<f64>
background: Vec<f64>
-> Background value
page_height: i32
page_height: i32
-> Set page height for multipage save
min: 0, max: 10000000, default: 0
profile: String
profile: String
-> Filename of ICC profile to embed
Trait Implementations§
source§impl Clone for Jp2KsaveBufferOptions
impl Clone for Jp2KsaveBufferOptions
source§fn clone(&self) -> Jp2KsaveBufferOptions
fn clone(&self) -> Jp2KsaveBufferOptions
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more