#[repr(C)]pub struct heif_decoding_options {
pub version: u8,
pub ignore_transformations: u8,
pub start_progress: Option<unsafe extern "C" fn(step: heif_progress_step, max_progress: c_int, progress_user_data: *mut c_void)>,
pub on_progress: Option<unsafe extern "C" fn(step: heif_progress_step, progress: c_int, progress_user_data: *mut c_void)>,
pub end_progress: Option<unsafe extern "C" fn(step: heif_progress_step, progress_user_data: *mut c_void)>,
pub progress_user_data: *mut c_void,
pub convert_hdr_to_8bit: u8,
pub strict_decoding: u8,
pub decoder_id: *const c_char,
pub color_conversion_options: heif_color_conversion_options,
pub cancel_decoding: Option<unsafe extern "C" fn(progress_user_data: *mut c_void) -> c_int>,
pub color_conversion_options_ext: *mut heif_color_conversion_options_ext,
}
Fields§
§version: u8
§ignore_transformations: u8
Ignore geometric transformations like cropping, rotation, mirroring. Default: false (do not ignore).
start_progress: Option<unsafe extern "C" fn(step: heif_progress_step, max_progress: c_int, progress_user_data: *mut c_void)>
Any of the progress functions may be called from background threads.
on_progress: Option<unsafe extern "C" fn(step: heif_progress_step, progress: c_int, progress_user_data: *mut c_void)>
§end_progress: Option<unsafe extern "C" fn(step: heif_progress_step, progress_user_data: *mut c_void)>
§progress_user_data: *mut c_void
§convert_hdr_to_8bit: u8
version 2 options
strict_decoding: u8
When enabled, an error is returned for invalid input. Otherwise, it will try its best and add decoding warnings to the decoded heif_image. Default is non-strict.
decoder_id: *const c_char
name_id of the decoder to use for the decoding. If set to NULL (default), the highest priority decoder is chosen. The priority is defined in the plugin.
color_conversion_options: heif_color_conversion_options
version 5 options
cancel_decoding: Option<unsafe extern "C" fn(progress_user_data: *mut c_void) -> c_int>
version 6 options
color_conversion_options_ext: *mut heif_color_conversion_options_ext
When set to NULL, default options will be used
Trait Implementations§
Auto Trait Implementations§
impl Freeze for heif_decoding_options
impl RefUnwindSafe for heif_decoding_options
impl !Send for heif_decoding_options
impl !Sync for heif_decoding_options
impl Unpin for heif_decoding_options
impl UnwindSafe for heif_decoding_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