#[repr(C)]pub struct opj_cparameters {Show 60 fields
pub tile_size_on: OPJ_BOOL,
pub cp_tx0: c_int,
pub cp_ty0: c_int,
pub cp_tdx: c_int,
pub cp_tdy: c_int,
pub cp_disto_alloc: c_int,
pub cp_fixed_alloc: c_int,
pub cp_fixed_quality: c_int,
pub cp_matrice: *mut c_int,
pub cp_comment: *mut c_char,
pub csty: c_int,
pub prog_order: OPJ_PROG_ORDER,
pub POC: [opj_poc_t; 32],
pub numpocs: OPJ_UINT32,
pub tcp_numlayers: c_int,
pub tcp_rates: [c_float; 100],
pub tcp_distoratio: [c_float; 100],
pub numresolution: c_int,
pub cblockw_init: c_int,
pub cblockh_init: c_int,
pub mode: c_int,
pub irreversible: c_int,
pub roi_compno: c_int,
pub roi_shift: c_int,
pub res_spec: c_int,
pub prcw_init: [c_int; 33],
pub prch_init: [c_int; 33],
pub infile: [c_char; 4096],
pub outfile: [c_char; 4096],
pub index_on: c_int,
pub index: [c_char; 4096],
pub image_offset_x0: c_int,
pub image_offset_y0: c_int,
pub subsampling_dx: c_int,
pub subsampling_dy: c_int,
pub decod_format: c_int,
pub cod_format: c_int,
pub jpwl_epc_on: OPJ_BOOL,
pub jpwl_hprot_MH: c_int,
pub jpwl_hprot_TPH_tileno: [c_int; 16],
pub jpwl_hprot_TPH: [c_int; 16],
pub jpwl_pprot_tileno: [c_int; 16],
pub jpwl_pprot_packno: [c_int; 16],
pub jpwl_pprot: [c_int; 16],
pub jpwl_sens_size: c_int,
pub jpwl_sens_addr: c_int,
pub jpwl_sens_range: c_int,
pub jpwl_sens_MH: c_int,
pub jpwl_sens_TPH_tileno: [c_int; 16],
pub jpwl_sens_TPH: [c_int; 16],
pub cp_cinema: OPJ_CINEMA_MODE,
pub max_comp_size: c_int,
pub cp_rsiz: OPJ_RSIZ_CAPABILITIES,
pub tp_on: c_char,
pub tp_flag: c_char,
pub tcp_mct: c_char,
pub jpip_on: OPJ_BOOL,
pub mct_data: *mut c_void,
pub max_cs_size: c_int,
pub rsiz: OPJ_UINT16,
}Fields§
§tile_size_on: OPJ_BOOL§cp_tx0: c_int§cp_ty0: c_int§cp_tdx: c_int§cp_tdy: c_int§cp_disto_alloc: c_int§cp_fixed_alloc: c_int§cp_fixed_quality: c_int§cp_matrice: *mut c_int§cp_comment: *mut c_char§csty: c_int§prog_order: OPJ_PROG_ORDER§POC: [opj_poc_t; 32]§numpocs: OPJ_UINT32§tcp_numlayers: c_int§tcp_rates: [c_float; 100]§tcp_distoratio: [c_float; 100]§numresolution: c_int§cblockw_init: c_int§cblockh_init: c_int§mode: c_int§irreversible: c_int§roi_compno: c_int§roi_shift: c_int§res_spec: c_int§prcw_init: [c_int; 33]§prch_init: [c_int; 33]§infile: [c_char; 4096]§outfile: [c_char; 4096]§index_on: c_int§index: [c_char; 4096]§image_offset_x0: c_int§image_offset_y0: c_int§subsampling_dx: c_int§subsampling_dy: c_int§decod_format: c_int§cod_format: c_int§jpwl_epc_on: OPJ_BOOL§jpwl_hprot_MH: c_int§jpwl_hprot_TPH_tileno: [c_int; 16]§jpwl_hprot_TPH: [c_int; 16]§jpwl_pprot_tileno: [c_int; 16]§jpwl_pprot_packno: [c_int; 16]§jpwl_pprot: [c_int; 16]§jpwl_sens_size: c_int§jpwl_sens_addr: c_int§jpwl_sens_range: c_int§jpwl_sens_MH: c_int§jpwl_sens_TPH_tileno: [c_int; 16]§jpwl_sens_TPH: [c_int; 16]§cp_cinema: OPJ_CINEMA_MODE§max_comp_size: c_int§cp_rsiz: OPJ_RSIZ_CAPABILITIES§tp_on: c_char§tp_flag: c_char§tcp_mct: c_char§jpip_on: OPJ_BOOL§mct_data: *mut c_void§max_cs_size: c_int§rsiz: OPJ_UINT16Implementations§
Source§impl opj_cparameters
impl opj_cparameters
pub fn set_defaults(&mut self)
pub fn set_comment(&mut self, comment: &str)
pub fn set_MCT( &mut self, encoding_matrix: &[f32], dc_shift: &[i32], nb_comps: u32, ) -> bool
pub fn get_matrix_mut(&mut self, nb_comps: usize) -> &mut [f32]
pub fn get_dc_shift_mut(&mut self, nb_comps: usize) -> &mut [i32]
Trait Implementations§
Source§impl Debug for opj_cparameters
impl Debug for opj_cparameters
Source§impl Drop for opj_cparameters
impl Drop for opj_cparameters
Auto Trait Implementations§
impl !Send for opj_cparameters
impl !Sync for opj_cparameters
impl Forget for opj_cparameters
impl Freeze for opj_cparameters
impl Move for opj_cparameters
impl RefUnwindSafe for opj_cparameters
impl Unpin for opj_cparameters
impl UnsafeUnpin for opj_cparameters
impl UnwindSafe for opj_cparameters
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more