#[repr(C)]pub struct heif_decoding_options {Show 16 fields
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,
pub ignore_sequence_editlist: c_int,
pub output_image_nclx_profile: *mut heif_color_profile_nclx,
pub num_library_threads: c_int,
pub num_codec_threads: c_int,
}Fields§
§version: u8§ignore_transformations: u8Ignore 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§strict_decoding: u8When 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_charname_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§cancel_decoding: Option<unsafe extern "C" fn(progress_user_data: *mut c_void) -> c_int>§color_conversion_options_ext: *mut heif_color_conversion_options_extWhen set to NULL, default options will be used
ignore_sequence_editlist: c_intIf enabled, it will decode the media timeline, ignoring the sequence tracks edit-list.
In must be used as bool type.
output_image_nclx_profile: *mut heif_color_profile_nclx§num_library_threads: c_int0 = let libheif decide (TODO, currently ignored)
num_codec_threads: c_int0 = use decoder default
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