Skip to main content

opj_cparameters

Struct opj_cparameters 

Source
#[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_UINT16

Implementations§

Source§

impl opj_cparameters

Source

pub fn set_defaults(&mut self)

Source

pub fn set_comment(&mut self, comment: &str)

Source

pub fn set_MCT( &mut self, encoding_matrix: &[f32], dc_shift: &[i32], nb_comps: u32, ) -> bool

Source

pub fn get_matrix_mut(&mut self, nb_comps: usize) -> &mut [f32]

Source

pub fn get_dc_shift_mut(&mut self, nb_comps: usize) -> &mut [i32]

Trait Implementations§

Source§

impl Debug for opj_cparameters

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Drop for opj_cparameters

Source§

fn drop(&mut self)

Executes the destructor for this type. Read more
Source§

fn pin_drop(self: Pin<&mut Self>)

🔬This is a nightly-only experimental API. (pin_ergonomics)
Execute the destructor for this type, but different to Drop::drop, it requires self to be pinned. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

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

Source§

impl<T> IntoEither for T

Source§

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 more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
where F: FnOnce(&Self) -> bool,

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
Source§

impl<T> Pointable for T

Source§

const ALIGN: usize

The alignment of pointer.
Source§

type Init = T

The type for initializers.
Source§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
Source§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
Source§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
Source§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.