Struct mozjpeg_sys::jpeg_memory_mgr
source · #[repr(C)]pub struct jpeg_memory_mgr {Show 13 fields
pub alloc_small: Option<unsafe extern "C-unwind" fn(cinfo: &mut jpeg_common_struct, pool_id: c_int, sizeofobject: usize) -> *mut c_void>,
pub alloc_large: Option<unsafe extern "C-unwind" fn(cinfo: &mut jpeg_common_struct, pool_id: c_int, sizeofobject: usize) -> *mut c_void>,
pub alloc_sarray: Option<unsafe extern "C-unwind" fn(cinfo: &mut jpeg_common_struct, pool_id: c_int, samplesperrow: JDIMENSION, numrows: JDIMENSION) -> JSAMPARRAY_MUT>,
pub alloc_barray: Option<unsafe extern "C-unwind" fn(cinfo: &mut jpeg_common_struct, pool_id: c_int, blocksperrow: JDIMENSION, numrows: JDIMENSION) -> JBLOCKARRAY>,
pub request_virt_sarray: Option<unsafe extern "C-unwind" fn(cinfo: &mut jpeg_common_struct, pool_id: c_int, pre_zero: boolean, samplesperrow: JDIMENSION, numrows: JDIMENSION, maxaccess: JDIMENSION) -> *mut jvirt_sarray_control>,
pub request_virt_barray: Option<unsafe extern "C-unwind" fn(cinfo: &mut jpeg_common_struct, pool_id: c_int, pre_zero: boolean, blocksperrow: JDIMENSION, numrows: JDIMENSION, maxaccess: JDIMENSION) -> *mut jvirt_barray_control>,
pub realize_virt_arrays: Option<unsafe extern "C-unwind" fn(cinfo: &mut jpeg_common_struct)>,
pub access_virt_sarray: Option<unsafe extern "C-unwind" fn(cinfo: &mut jpeg_common_struct, ptr: *mut jvirt_sarray_control, start_row: JDIMENSION, num_rows: JDIMENSION, writable: boolean) -> JSAMPARRAY_MUT>,
pub access_virt_barray: Option<unsafe extern "C-unwind" fn(cinfo: &mut jpeg_common_struct, ptr: *mut jvirt_barray_control, start_row: JDIMENSION, num_rows: JDIMENSION, writable: boolean) -> JBLOCKARRAY>,
pub free_pool: Option<unsafe extern "C-unwind" fn(cinfo: &mut jpeg_common_struct, pool_id: c_int)>,
pub self_destruct: Option<unsafe extern "C-unwind" fn(cinfo: &mut jpeg_common_struct)>,
pub max_memory_to_use: c_long,
pub max_alloc_chunk: c_long,
}
Fields§
§alloc_small: Option<unsafe extern "C-unwind" fn(cinfo: &mut jpeg_common_struct, pool_id: c_int, sizeofobject: usize) -> *mut c_void>
§alloc_large: Option<unsafe extern "C-unwind" fn(cinfo: &mut jpeg_common_struct, pool_id: c_int, sizeofobject: usize) -> *mut c_void>
§alloc_sarray: Option<unsafe extern "C-unwind" fn(cinfo: &mut jpeg_common_struct, pool_id: c_int, samplesperrow: JDIMENSION, numrows: JDIMENSION) -> JSAMPARRAY_MUT>
§alloc_barray: Option<unsafe extern "C-unwind" fn(cinfo: &mut jpeg_common_struct, pool_id: c_int, blocksperrow: JDIMENSION, numrows: JDIMENSION) -> JBLOCKARRAY>
§request_virt_sarray: Option<unsafe extern "C-unwind" fn(cinfo: &mut jpeg_common_struct, pool_id: c_int, pre_zero: boolean, samplesperrow: JDIMENSION, numrows: JDIMENSION, maxaccess: JDIMENSION) -> *mut jvirt_sarray_control>
§request_virt_barray: Option<unsafe extern "C-unwind" fn(cinfo: &mut jpeg_common_struct, pool_id: c_int, pre_zero: boolean, blocksperrow: JDIMENSION, numrows: JDIMENSION, maxaccess: JDIMENSION) -> *mut jvirt_barray_control>
§realize_virt_arrays: Option<unsafe extern "C-unwind" fn(cinfo: &mut jpeg_common_struct)>
§access_virt_sarray: Option<unsafe extern "C-unwind" fn(cinfo: &mut jpeg_common_struct, ptr: *mut jvirt_sarray_control, start_row: JDIMENSION, num_rows: JDIMENSION, writable: boolean) -> JSAMPARRAY_MUT>
§access_virt_barray: Option<unsafe extern "C-unwind" fn(cinfo: &mut jpeg_common_struct, ptr: *mut jvirt_barray_control, start_row: JDIMENSION, num_rows: JDIMENSION, writable: boolean) -> JBLOCKARRAY>
§free_pool: Option<unsafe extern "C-unwind" fn(cinfo: &mut jpeg_common_struct, pool_id: c_int)>
§self_destruct: Option<unsafe extern "C-unwind" fn(cinfo: &mut jpeg_common_struct)>
§max_memory_to_use: c_long
§max_alloc_chunk: c_long
Auto Trait Implementations§
impl Freeze for jpeg_memory_mgr
impl RefUnwindSafe for jpeg_memory_mgr
impl Send for jpeg_memory_mgr
impl Sync for jpeg_memory_mgr
impl Unpin for jpeg_memory_mgr
impl UnwindSafe for jpeg_memory_mgr
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