Struct ctru_sys::Y2RU_ConversionParams
source · #[repr(C)]pub struct Y2RU_ConversionParams {
pub _bitfield_align_1: [u8; 0],
pub _bitfield_1: __BindgenBitfieldUnit<[u8; 4]>,
pub input_line_width: s16,
pub input_lines: s16,
pub _bitfield_align_2: [u8; 0],
pub _bitfield_2: __BindgenBitfieldUnit<[u8; 1]>,
pub unused: u8_,
pub alpha: u16_,
}
Expand description
Structure used to configure all parameters at once.
You can send a batch of configuration parameters using this structure and Y2RU_SetConversionParams.
Fields§
§_bitfield_align_1: [u8; 0]
§_bitfield_1: __BindgenBitfieldUnit<[u8; 4]>
§input_line_width: s16
< Value passed to Y2RU_SetInputLineWidth
input_lines: s16
< Value passed to Y2RU_SetInputLines
_bitfield_align_2: [u8; 0]
§_bitfield_2: __BindgenBitfieldUnit<[u8; 1]>
§unused: u8_
< Unused.
alpha: u16_
< Value passed to Y2RU_SetAlpha
Implementations§
source§impl Y2RU_ConversionParams
impl Y2RU_ConversionParams
pub fn input_format(&self) -> Y2RU_InputFormat
pub fn set_input_format(&mut self, val: Y2RU_InputFormat)
pub fn output_format(&self) -> Y2RU_OutputFormat
pub fn set_output_format(&mut self, val: Y2RU_OutputFormat)
pub fn rotation(&self) -> Y2RU_Rotation
pub fn set_rotation(&mut self, val: Y2RU_Rotation)
pub fn block_alignment(&self) -> Y2RU_BlockAlignment
pub fn set_block_alignment(&mut self, val: Y2RU_BlockAlignment)
pub fn new_bitfield_1( input_format: Y2RU_InputFormat, output_format: Y2RU_OutputFormat, rotation: Y2RU_Rotation, block_alignment: Y2RU_BlockAlignment ) -> __BindgenBitfieldUnit<[u8; 4]>
pub fn standard_coefficient(&self) -> Y2RU_StandardCoefficient
pub fn set_standard_coefficient(&mut self, val: Y2RU_StandardCoefficient)
pub fn new_bitfield_2( standard_coefficient: Y2RU_StandardCoefficient ) -> __BindgenBitfieldUnit<[u8; 1]>
Trait Implementations§
source§impl Clone for Y2RU_ConversionParams
impl Clone for Y2RU_ConversionParams
source§fn clone(&self) -> Y2RU_ConversionParams
fn clone(&self) -> Y2RU_ConversionParams
Returns a copy of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read more