Struct libheif_rs::DecodingOptions
source · pub struct DecodingOptions { /* private fields */ }
Implementations§
source§impl DecodingOptions
impl DecodingOptions
pub fn version(&self) -> u8
pub fn ignore_transformations(&self) -> bool
pub fn set_ignore_transformations(&mut self, enable: bool)
pub fn convert_hdr_to_8bit(&self) -> bool
pub fn set_convert_hdr_to_8bit(&mut self, enable: bool)
sourcepub fn strict_decoding(&self) -> bool
pub fn strict_decoding(&self) -> bool
When strict decoding is enabled, an error is returned for invalid input.
Otherwise, it will try its best and add decoding warnings to
the decoded Image
. Default is non-strict.
pub fn set_strict_decoding(&mut self, enable: bool)
sourcepub fn decoder_id(&self) -> Option<&str>
pub fn decoder_id(&self) -> Option<&str>
ID of the decoder to use for the decoding.
If set to None
(default), the highest priority decoder is chosen.
The priority is defined in the plugin.
pub fn set_decoder_id( &mut self, decoder_id: Option<&str> ) -> Result<(), HeifError>
pub fn color_conversion_options(&self) -> ColorConversionOptions
pub fn set_color_conversion_options(&mut self, options: ColorConversionOptions)
Trait Implementations§
source§impl Debug for DecodingOptions
impl Debug for DecodingOptions
Auto Trait Implementations§
impl Freeze for DecodingOptions
impl RefUnwindSafe for DecodingOptions
impl !Send for DecodingOptions
impl !Sync for DecodingOptions
impl Unpin for DecodingOptions
impl UnwindSafe for DecodingOptions
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