#[repr(C)]pub struct heif_color_conversion_options {
pub version: u8,
pub preferred_chroma_downsampling_algorithm: heif_chroma_downsampling_algorithm,
pub preferred_chroma_upsampling_algorithm: heif_chroma_upsampling_algorithm,
pub only_use_preferred_chroma_algorithm: u8,
}
Fields§
§version: u8
§preferred_chroma_downsampling_algorithm: heif_chroma_downsampling_algorithm
— version 1 options
preferred_chroma_upsampling_algorithm: heif_chroma_upsampling_algorithm
§only_use_preferred_chroma_algorithm: u8
When set to ‘false’ libheif may also use a different algorithm if the preferred one is not available or using a different algorithm is computationally less complex. Note that currently (v1.17.0) this means that for RGB input it will usually choose nearest-neighbor sampling because this is computationally the simplest. Set this field to ‘true’ if you want to make sure that the specified algorithm is used even at the cost of slightly higher computation times.
Trait Implementations§
source§impl Clone for heif_color_conversion_options
impl Clone for heif_color_conversion_options
source§fn clone(&self) -> heif_color_conversion_options
fn clone(&self) -> heif_color_conversion_options
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreimpl Copy for heif_color_conversion_options
Auto Trait Implementations§
impl Freeze for heif_color_conversion_options
impl RefUnwindSafe for heif_color_conversion_options
impl Send for heif_color_conversion_options
impl Sync for heif_color_conversion_options
impl Unpin for heif_color_conversion_options
impl UnwindSafe for heif_color_conversion_options
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more