#[repr(C)]
pub struct jpeg_memory_mgr {
Show 13 fields pub alloc_small: Option<unsafe extern "C" fn(cinfo: &mut jpeg_common_struct, pool_id: c_int, sizeofobject: usize) -> *mut c_void>, pub alloc_large: Option<unsafe extern "C" fn(cinfo: &mut jpeg_common_struct, pool_id: c_int, sizeofobject: usize) -> *mut c_void>, pub alloc_sarray: Option<unsafe extern "C" fn(cinfo: &mut jpeg_common_struct, pool_id: c_int, samplesperrow: JDIMENSION, numrows: JDIMENSION) -> JSAMPARRAY_MUT>, pub alloc_barray: Option<unsafe extern "C" fn(cinfo: &mut jpeg_common_struct, pool_id: c_int, blocksperrow: JDIMENSION, numrows: JDIMENSION) -> JBLOCKARRAY>, pub request_virt_sarray: Option<unsafe extern "C" 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" 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" fn(cinfo: &mut jpeg_common_struct)>, pub access_virt_sarray: Option<unsafe extern "C" 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" 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" fn(cinfo: &mut jpeg_common_struct, pool_id: c_int)>, pub self_destruct: Option<unsafe extern "C" 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" fn(cinfo: &mut jpeg_common_struct, pool_id: c_int, sizeofobject: usize) -> *mut c_void>alloc_large: Option<unsafe extern "C" fn(cinfo: &mut jpeg_common_struct, pool_id: c_int, sizeofobject: usize) -> *mut c_void>alloc_sarray: Option<unsafe extern "C" fn(cinfo: &mut jpeg_common_struct, pool_id: c_int, samplesperrow: JDIMENSION, numrows: JDIMENSION) -> JSAMPARRAY_MUT>alloc_barray: Option<unsafe extern "C" fn(cinfo: &mut jpeg_common_struct, pool_id: c_int, blocksperrow: JDIMENSION, numrows: JDIMENSION) -> JBLOCKARRAY>request_virt_sarray: Option<unsafe extern "C" 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" 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" fn(cinfo: &mut jpeg_common_struct)>access_virt_sarray: Option<unsafe extern "C" 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" 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" fn(cinfo: &mut jpeg_common_struct, pool_id: c_int)>self_destruct: Option<unsafe extern "C" fn(cinfo: &mut jpeg_common_struct)>max_memory_to_use: c_longmax_alloc_chunk: c_long

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.