Camera

Struct Camera 

Source
pub struct Camera { /* private fields */ }
Expand description

Connected and initialized XIMEA camera.

Must be mutable to allow changing any parameters. A non-mutable Camera can be used from multiple threads or processes safely.

Implementations§

Source§

impl Camera

Source

pub fn start_acquisition(self) -> Result<AcquisitionBuffer, XI_RETURN>

Starts the image acquisition on this camera

This function creates the AcquisitionBuffer and tells the camera to start streaming data to this buffer. The camera is temporarily consumed by the AcquisitionBuffer, so you can only interact with it through the AcquisitionBuffer.

§Examples
    let cam = xiapi::open_device(None)?;
    let buffer = cam.start_acquisition()?;
    let image = buffer.next_image::<u8>(None)?;
    // Do something with the image;
    let cam = buffer.stop_acquisition()?;
Source

pub fn set_roi(&mut self, roi: &Roi) -> Result<Roi, XI_RETURN>

Set the region of interest on this camera.

Return the region of interest that was actually set to the camera.

§Examples
    let mut cam = xiapi::open_device(None)?;
    let roi = xiapi::Roi{
        offset_x: 100,
        offset_y: 100,
        width: 100,
        height: 100
    };
    let actual_roi = cam.set_roi(&roi)?;
Source

pub fn roi(&self) -> Result<Roi, XI_RETURN>

Returns the current roi from this camera

Source

pub fn counter(&mut self, counter_selector: Type) -> Result<i32, XI_RETURN>

Convenience method to read counters from the camera with a single call See also [Self.counter_selector] and [Self.counter_value]

Source

pub fn exposure(&self) -> Result<f32, XI_RETURN>

Current exposure time in microseconds.

Source

pub fn exposure_increment(&self) -> Result<f32, XI_RETURN>

Get the increment for the exposure parameter. See also Self::exposure()

Source

pub fn exposure_minimum(&self) -> Result<f32, XI_RETURN>

Get the minimum for the exposure parameter. See also Self::exposure()

Source

pub fn exposure_maximum(&self) -> Result<f32, XI_RETURN>

Get the maximum for the exposure parameter. See also Self::exposure()

Source

pub fn set_exposure(&mut self, value: f32) -> Result<(), XI_RETURN>

Set the exposure parameter. See also Self::exposure()

Source

pub fn exposure_burst_count(&self) -> Result<i32, XI_RETURN>

Sets the number of times of exposure in one frame.

Source

pub fn exposure_burst_count_increment(&self) -> Result<i32, XI_RETURN>

Get the increment for the exposure_burst_count parameter. See also Self::exposure_burst_count()

Source

pub fn exposure_burst_count_minimum(&self) -> Result<i32, XI_RETURN>

Get the minimum for the exposure_burst_count parameter. See also Self::exposure_burst_count()

Source

pub fn exposure_burst_count_maximum(&self) -> Result<i32, XI_RETURN>

Get the maximum for the exposure_burst_count parameter. See also Self::exposure_burst_count()

Source

pub fn set_exposure_burst_count(&mut self, value: i32) -> Result<(), XI_RETURN>

Set the exposure_burst_count parameter. See also Self::exposure_burst_count()

Source

pub fn gain(&self) -> Result<f32, XI_RETURN>

Set the gain in dB. If the camera has more than one type of gain, you can use Self::set_gain_selector() to select a gain.

Source

pub fn gain_increment(&self) -> Result<f32, XI_RETURN>

Get the increment for the gain parameter. See also Self::gain()

Source

pub fn gain_minimum(&self) -> Result<f32, XI_RETURN>

Get the minimum for the gain parameter. See also Self::gain()

Source

pub fn gain_maximum(&self) -> Result<f32, XI_RETURN>

Get the maximum for the gain parameter. See also Self::gain()

Source

pub fn set_gain(&mut self, value: f32) -> Result<(), XI_RETURN>

Set the gain parameter. See also Self::gain()

Source

pub fn gain_selector(&self) -> Result<Type, XI_RETURN>

The currently selected type of gain for Self::gain() and Self::set_gain()

Source

pub fn gain_selector_increment(&self) -> Result<Type, XI_RETURN>

Get the increment for the gain_selector parameter. See also Self::gain_selector()

Source

pub fn gain_selector_minimum(&self) -> Result<Type, XI_RETURN>

Get the minimum for the gain_selector parameter. See also Self::gain_selector()

Source

pub fn gain_selector_maximum(&self) -> Result<Type, XI_RETURN>

Get the maximum for the gain_selector parameter. See also Self::gain_selector()

Source

pub fn set_gain_selector(&mut self, value: Type) -> Result<(), XI_RETURN>

Set the gain_selector parameter. See also Self::gain_selector()

Source

pub fn downsampling(&self) -> Result<Type, XI_RETURN>

Changes image resolution by binning or skipping

Source

pub fn downsampling_increment(&self) -> Result<Type, XI_RETURN>

Get the increment for the downsampling parameter. See also Self::downsampling()

Source

pub fn downsampling_minimum(&self) -> Result<Type, XI_RETURN>

Get the minimum for the downsampling parameter. See also Self::downsampling()

Source

pub fn downsampling_maximum(&self) -> Result<Type, XI_RETURN>

Get the maximum for the downsampling parameter. See also Self::downsampling()

Source

pub fn set_downsampling(&mut self, value: Type) -> Result<(), XI_RETURN>

Set the downsampling parameter. See also Self::downsampling()

Source

pub fn downsampling_type(&self) -> Result<Type, XI_RETURN>

Changes the downsampling type between binning and skipping

Source

pub fn downsampling_type_increment(&self) -> Result<Type, XI_RETURN>

Get the increment for the downsampling_type parameter. See also Self::downsampling_type()

Source

pub fn downsampling_type_minimum(&self) -> Result<Type, XI_RETURN>

Get the minimum for the downsampling_type parameter. See also Self::downsampling_type()

Source

pub fn downsampling_type_maximum(&self) -> Result<Type, XI_RETURN>

Get the maximum for the downsampling_type parameter. See also Self::downsampling_type()

Source

pub fn set_downsampling_type(&mut self, value: Type) -> Result<(), XI_RETURN>

Set the downsampling_type parameter. See also Self::downsampling_type()

Source

pub fn image_data_format(&self) -> Result<Type, XI_RETURN>

Format of the image data

Source

pub fn image_data_format_increment(&self) -> Result<Type, XI_RETURN>

Get the increment for the image_data_format parameter. See also Self::image_data_format()

Source

pub fn image_data_format_minimum(&self) -> Result<Type, XI_RETURN>

Get the minimum for the image_data_format parameter. See also Self::image_data_format()

Source

pub fn image_data_format_maximum(&self) -> Result<Type, XI_RETURN>

Get the maximum for the image_data_format parameter. See also Self::image_data_format()

Source

pub fn set_image_data_format(&mut self, value: Type) -> Result<(), XI_RETURN>

Set the image_data_format parameter. See also Self::image_data_format()

Source

pub fn test_pattern_generator_selector(&self) -> Result<Type, XI_RETURN>

Selects the Test Pattern Generator Engine

Source

pub fn test_pattern_generator_selector_increment( &self, ) -> Result<Type, XI_RETURN>

Get the increment for the test_pattern_generator_selector parameter. See also Self::test_pattern_generator_selector()

Source

pub fn test_pattern_generator_selector_minimum(&self) -> Result<Type, XI_RETURN>

Get the minimum for the test_pattern_generator_selector parameter. See also Self::test_pattern_generator_selector()

Source

pub fn test_pattern_generator_selector_maximum(&self) -> Result<Type, XI_RETURN>

Get the maximum for the test_pattern_generator_selector parameter. See also Self::test_pattern_generator_selector()

Source

pub fn set_test_pattern_generator_selector( &mut self, value: Type, ) -> Result<(), XI_RETURN>

Set the test_pattern_generator_selector parameter. See also Self::test_pattern_generator_selector()

Source

pub fn test_pattern(&self) -> Result<Type, XI_RETURN>

Selects the Test Pattern to be generated by selected Generator Engine

Source

pub fn test_pattern_increment(&self) -> Result<Type, XI_RETURN>

Get the increment for the test_pattern parameter. See also Self::test_pattern()

Source

pub fn test_pattern_minimum(&self) -> Result<Type, XI_RETURN>

Get the minimum for the test_pattern parameter. See also Self::test_pattern()

Source

pub fn test_pattern_maximum(&self) -> Result<Type, XI_RETURN>

Get the maximum for the test_pattern parameter. See also Self::test_pattern()

Source

pub fn set_test_pattern(&mut self, value: Type) -> Result<(), XI_RETURN>

Set the test_pattern parameter. See also Self::test_pattern()

Source

pub fn height(&self) -> Result<u32, XI_RETURN>

Immage ROI height (number of lines)

Source

pub fn height_increment(&self) -> Result<u32, XI_RETURN>

Get the increment for the height parameter. See also Self::height()

Source

pub fn height_minimum(&self) -> Result<u32, XI_RETURN>

Get the minimum for the height parameter. See also Self::height()

Source

pub fn height_maximum(&self) -> Result<u32, XI_RETURN>

Get the maximum for the height parameter. See also Self::height()

Source

pub fn set_height(&mut self, value: u32) -> Result<(), XI_RETURN>

Set the height parameter. See also Self::height()

Source

pub fn width(&self) -> Result<u32, XI_RETURN>

Image ROI width (number of columns)

Source

pub fn width_increment(&self) -> Result<u32, XI_RETURN>

Get the increment for the width parameter. See also Self::width()

Source

pub fn width_minimum(&self) -> Result<u32, XI_RETURN>

Get the minimum for the width parameter. See also Self::width()

Source

pub fn width_maximum(&self) -> Result<u32, XI_RETURN>

Get the maximum for the width parameter. See also Self::width()

Source

pub fn set_width(&mut self, value: u32) -> Result<(), XI_RETURN>

Set the width parameter. See also Self::width()

Source

pub fn offset_x(&self) -> Result<u32, XI_RETURN>

Image ROI offset in the horizontal direction

Source

pub fn offset_x_increment(&self) -> Result<u32, XI_RETURN>

Get the increment for the offset_x parameter. See also Self::offset_x()

Source

pub fn offset_x_minimum(&self) -> Result<u32, XI_RETURN>

Get the minimum for the offset_x parameter. See also Self::offset_x()

Source

pub fn offset_x_maximum(&self) -> Result<u32, XI_RETURN>

Get the maximum for the offset_x parameter. See also Self::offset_x()

Source

pub fn set_offset_x(&mut self, value: u32) -> Result<(), XI_RETURN>

Set the offset_x parameter. See also Self::offset_x()

Source

pub fn offset_y(&self) -> Result<u32, XI_RETURN>

Image ROI offset in the vertical direction

Source

pub fn offset_y_increment(&self) -> Result<u32, XI_RETURN>

Get the increment for the offset_y parameter. See also Self::offset_y()

Source

pub fn offset_y_minimum(&self) -> Result<u32, XI_RETURN>

Get the minimum for the offset_y parameter. See also Self::offset_y()

Source

pub fn offset_y_maximum(&self) -> Result<u32, XI_RETURN>

Get the maximum for the offset_y parameter. See also Self::offset_y()

Source

pub fn set_offset_y(&mut self, value: u32) -> Result<(), XI_RETURN>

Set the offset_y parameter. See also Self::offset_y()

Source

pub fn limit_bandwidth(&self) -> Result<i32, XI_RETURN>

Camera acquisition data-rate limit on transport layer in Megabits per second.

Source

pub fn limit_bandwidth_increment(&self) -> Result<i32, XI_RETURN>

Get the increment for the limit_bandwidth parameter. See also Self::limit_bandwidth()

Source

pub fn limit_bandwidth_minimum(&self) -> Result<i32, XI_RETURN>

Get the minimum for the limit_bandwidth parameter. See also Self::limit_bandwidth()

Source

pub fn limit_bandwidth_maximum(&self) -> Result<i32, XI_RETURN>

Get the maximum for the limit_bandwidth parameter. See also Self::limit_bandwidth()

Source

pub fn set_limit_bandwidth(&mut self, value: i32) -> Result<(), XI_RETURN>

Set the limit_bandwidth parameter. See also Self::limit_bandwidth()

Source

pub fn available_bandwidth(&self) -> Result<i32, XI_RETURN>

Available interface bandwidth measured by automatic bandwidth measurement.

Source

pub fn trg_source(&self) -> Result<Type, XI_RETURN>

Defines the source of trigger

Source

pub fn trg_source_increment(&self) -> Result<Type, XI_RETURN>

Get the increment for the trg_source parameter. See also Self::trg_source()

Source

pub fn trg_source_minimum(&self) -> Result<Type, XI_RETURN>

Get the minimum for the trg_source parameter. See also Self::trg_source()

Source

pub fn trg_source_maximum(&self) -> Result<Type, XI_RETURN>

Get the maximum for the trg_source parameter. See also Self::trg_source()

Source

pub fn set_trg_source(&mut self, value: Type) -> Result<(), XI_RETURN>

Set the trg_source parameter. See also Self::trg_source()

Source

pub fn trg_selector(&self) -> Result<Type, XI_RETURN>

Selects the type of trigger

Source

pub fn trg_selector_increment(&self) -> Result<Type, XI_RETURN>

Get the increment for the trg_selector parameter. See also Self::trg_selector()

Source

pub fn trg_selector_minimum(&self) -> Result<Type, XI_RETURN>

Get the minimum for the trg_selector parameter. See also Self::trg_selector()

Source

pub fn trg_selector_maximum(&self) -> Result<Type, XI_RETURN>

Get the maximum for the trg_selector parameter. See also Self::trg_selector()

Source

pub fn set_trg_selector(&mut self, value: Type) -> Result<(), XI_RETURN>

Set the trg_selector parameter. See also Self::trg_selector()

Source

pub fn trg_overlap(&self) -> Result<Type, XI_RETURN>

Selects the type of trigger overlap

Source

pub fn trg_overlap_increment(&self) -> Result<Type, XI_RETURN>

Get the increment for the trg_overlap parameter. See also Self::trg_overlap()

Source

pub fn trg_overlap_minimum(&self) -> Result<Type, XI_RETURN>

Get the minimum for the trg_overlap parameter. See also Self::trg_overlap()

Source

pub fn trg_overlap_maximum(&self) -> Result<Type, XI_RETURN>

Get the maximum for the trg_overlap parameter. See also Self::trg_overlap()

Source

pub fn set_trg_overlap(&mut self, value: Type) -> Result<(), XI_RETURN>

Set the trg_overlap parameter. See also Self::trg_overlap()

Source

pub fn acq_frame_burst_count(&self) -> Result<u32, XI_RETURN>

Sets the number of frames to be triggered for each trigger signal. This setting is only valid if the trigger selector is set to XI_TRG_SEL_FRAME_BURST_START

Source

pub fn acq_frame_burst_count_increment(&self) -> Result<u32, XI_RETURN>

Get the increment for the acq_frame_burst_count parameter. See also Self::acq_frame_burst_count()

Source

pub fn acq_frame_burst_count_minimum(&self) -> Result<u32, XI_RETURN>

Get the minimum for the acq_frame_burst_count parameter. See also Self::acq_frame_burst_count()

Source

pub fn acq_frame_burst_count_maximum(&self) -> Result<u32, XI_RETURN>

Get the maximum for the acq_frame_burst_count parameter. See also Self::acq_frame_burst_count()

Source

pub fn set_acq_frame_burst_count(&mut self, value: u32) -> Result<(), XI_RETURN>

Set the acq_frame_burst_count parameter. See also Self::acq_frame_burst_count()

Source

pub fn gpi_selector(&self) -> Result<Type, XI_RETURN>

Selects a GPI

Source

pub fn gpi_selector_increment(&self) -> Result<Type, XI_RETURN>

Get the increment for the gpi_selector parameter. See also Self::gpi_selector()

Source

pub fn gpi_selector_minimum(&self) -> Result<Type, XI_RETURN>

Get the minimum for the gpi_selector parameter. See also Self::gpi_selector()

Source

pub fn gpi_selector_maximum(&self) -> Result<Type, XI_RETURN>

Get the maximum for the gpi_selector parameter. See also Self::gpi_selector()

Source

pub fn set_gpi_selector(&mut self, value: Type) -> Result<(), XI_RETURN>

Set the gpi_selector parameter. See also Self::gpi_selector()

Source

pub fn gpi_mode(&self) -> Result<Type, XI_RETURN>

Defines functionality for the selected GPI

Source

pub fn gpi_mode_increment(&self) -> Result<Type, XI_RETURN>

Get the increment for the gpi_mode parameter. See also Self::gpi_mode()

Source

pub fn gpi_mode_minimum(&self) -> Result<Type, XI_RETURN>

Get the minimum for the gpi_mode parameter. See also Self::gpi_mode()

Source

pub fn gpi_mode_maximum(&self) -> Result<Type, XI_RETURN>

Get the maximum for the gpi_mode parameter. See also Self::gpi_mode()

Source

pub fn set_gpi_mode(&mut self, value: Type) -> Result<(), XI_RETURN>

Set the gpi_mode parameter. See also Self::gpi_mode()

Source

pub fn gpo_selector(&self) -> Result<Type, XI_RETURN>

Selects a GPO

Source

pub fn gpo_selector_increment(&self) -> Result<Type, XI_RETURN>

Get the increment for the gpo_selector parameter. See also Self::gpo_selector()

Source

pub fn gpo_selector_minimum(&self) -> Result<Type, XI_RETURN>

Get the minimum for the gpo_selector parameter. See also Self::gpo_selector()

Source

pub fn gpo_selector_maximum(&self) -> Result<Type, XI_RETURN>

Get the maximum for the gpo_selector parameter. See also Self::gpo_selector()

Source

pub fn set_gpo_selector(&mut self, value: Type) -> Result<(), XI_RETURN>

Set the gpo_selector parameter. See also Self::gpo_selector()

Source

pub fn gpo_mode(&self) -> Result<Type, XI_RETURN>

Defines functionality for the selected GPO

Source

pub fn gpo_mode_increment(&self) -> Result<Type, XI_RETURN>

Get the increment for the gpo_mode parameter. See also Self::gpo_mode()

Source

pub fn gpo_mode_minimum(&self) -> Result<Type, XI_RETURN>

Get the minimum for the gpo_mode parameter. See also Self::gpo_mode()

Source

pub fn gpo_mode_maximum(&self) -> Result<Type, XI_RETURN>

Get the maximum for the gpo_mode parameter. See also Self::gpo_mode()

Source

pub fn set_gpo_mode(&mut self, value: Type) -> Result<(), XI_RETURN>

Set the gpo_mode parameter. See also Self::gpo_mode()

Source

pub fn led_selector(&self) -> Result<Type, XI_RETURN>

Selects a LED

Source

pub fn led_selector_increment(&self) -> Result<Type, XI_RETURN>

Get the increment for the led_selector parameter. See also Self::led_selector()

Source

pub fn led_selector_minimum(&self) -> Result<Type, XI_RETURN>

Get the minimum for the led_selector parameter. See also Self::led_selector()

Source

pub fn led_selector_maximum(&self) -> Result<Type, XI_RETURN>

Get the maximum for the led_selector parameter. See also Self::led_selector()

Source

pub fn set_led_selector(&mut self, value: Type) -> Result<(), XI_RETURN>

Set the led_selector parameter. See also Self::led_selector()

Source

pub fn led_mode(&self) -> Result<Type, XI_RETURN>

Defines functionality for the selected LED

Source

pub fn led_mode_increment(&self) -> Result<Type, XI_RETURN>

Get the increment for the led_mode parameter. See also Self::led_mode()

Source

pub fn led_mode_minimum(&self) -> Result<Type, XI_RETURN>

Get the minimum for the led_mode parameter. See also Self::led_mode()

Source

pub fn led_mode_maximum(&self) -> Result<Type, XI_RETURN>

Get the maximum for the led_mode parameter. See also Self::led_mode()

Source

pub fn set_led_mode(&mut self, value: Type) -> Result<(), XI_RETURN>

Set the led_mode parameter. See also Self::led_mode()

Source

pub fn debounce_en(&self) -> Result<Type, XI_RETURN>

Enable or disable signal debounce for selected GPI

Source

pub fn debounce_en_increment(&self) -> Result<Type, XI_RETURN>

Get the increment for the debounce_en parameter. See also Self::debounce_en()

Source

pub fn debounce_en_minimum(&self) -> Result<Type, XI_RETURN>

Get the minimum for the debounce_en parameter. See also Self::debounce_en()

Source

pub fn debounce_en_maximum(&self) -> Result<Type, XI_RETURN>

Get the maximum for the debounce_en parameter. See also Self::debounce_en()

Source

pub fn set_debounce_en(&mut self, value: Type) -> Result<(), XI_RETURN>

Set the debounce_en parameter. See also Self::debounce_en()

Source

pub fn image_user_data(&self) -> Result<u32, XI_RETURN>

Set user data to be stored in the image header

Source

pub fn image_user_data_increment(&self) -> Result<u32, XI_RETURN>

Get the increment for the image_user_data parameter. See also Self::image_user_data()

Source

pub fn image_user_data_minimum(&self) -> Result<u32, XI_RETURN>

Get the minimum for the image_user_data parameter. See also Self::image_user_data()

Source

pub fn image_user_data_maximum(&self) -> Result<u32, XI_RETURN>

Get the maximum for the image_user_data parameter. See also Self::image_user_data()

Source

pub fn set_image_user_data(&mut self, value: u32) -> Result<(), XI_RETURN>

Set the image_user_data parameter. See also Self::image_user_data()

Source

pub fn sensor_data_bit_depth(&self) -> Result<Type, XI_RETURN>

Set the bit depth for the ADCs on the sensor

§Examples
let mut cam = xiapi::open_device(None)?;
cam.set_image_data_format(XI_RAW16)?;
cam.set_sensor_data_bit_depth(XI_BPP_12)?;
cam.set_output_data_bit_depth(XI_BPP_12)?;
cam.set_image_data_bit_depth(XI_BPP_12)?;
}
Source

pub fn sensor_data_bit_depth_increment(&self) -> Result<Type, XI_RETURN>

Get the increment for the sensor_data_bit_depth parameter. See also Self::sensor_data_bit_depth()

Source

pub fn sensor_data_bit_depth_minimum(&self) -> Result<Type, XI_RETURN>

Get the minimum for the sensor_data_bit_depth parameter. See also Self::sensor_data_bit_depth()

Source

pub fn sensor_data_bit_depth_maximum(&self) -> Result<Type, XI_RETURN>

Get the maximum for the sensor_data_bit_depth parameter. See also Self::sensor_data_bit_depth()

Source

pub fn set_sensor_data_bit_depth( &mut self, value: Type, ) -> Result<(), XI_RETURN>

Set the sensor_data_bit_depth parameter. See also Self::sensor_data_bit_depth()

Source

pub fn output_data_bit_depth(&self) -> Result<Type, XI_RETURN>

Set the bit depth send from the camera to the PC

Source

pub fn output_data_bit_depth_increment(&self) -> Result<Type, XI_RETURN>

Get the increment for the output_data_bit_depth parameter. See also Self::output_data_bit_depth()

Source

pub fn output_data_bit_depth_minimum(&self) -> Result<Type, XI_RETURN>

Get the minimum for the output_data_bit_depth parameter. See also Self::output_data_bit_depth()

Source

pub fn output_data_bit_depth_maximum(&self) -> Result<Type, XI_RETURN>

Get the maximum for the output_data_bit_depth parameter. See also Self::output_data_bit_depth()

Source

pub fn set_output_data_bit_depth( &mut self, value: Type, ) -> Result<(), XI_RETURN>

Set the output_data_bit_depth parameter. See also Self::output_data_bit_depth()

Source

pub fn image_data_bit_depth(&self) -> Result<Type, XI_RETURN>

Bit depth of the image returned by [Self::next_image()]

Source

pub fn image_data_bit_depth_increment(&self) -> Result<Type, XI_RETURN>

Get the increment for the image_data_bit_depth parameter. See also Self::image_data_bit_depth()

Source

pub fn image_data_bit_depth_minimum(&self) -> Result<Type, XI_RETURN>

Get the minimum for the image_data_bit_depth parameter. See also Self::image_data_bit_depth()

Source

pub fn image_data_bit_depth_maximum(&self) -> Result<Type, XI_RETURN>

Get the maximum for the image_data_bit_depth parameter. See also Self::image_data_bit_depth()

Source

pub fn set_image_data_bit_depth(&mut self, value: Type) -> Result<(), XI_RETURN>

Set the image_data_bit_depth parameter. See also Self::image_data_bit_depth()

Source

pub fn column_fpn_correction(&self) -> Result<Type, XI_RETURN>

Enable column fpn correction in camera

Source

pub fn column_fpn_correction_increment(&self) -> Result<Type, XI_RETURN>

Get the increment for the column_fpn_correction parameter. See also Self::column_fpn_correction()

Source

pub fn column_fpn_correction_minimum(&self) -> Result<Type, XI_RETURN>

Get the minimum for the column_fpn_correction parameter. See also Self::column_fpn_correction()

Source

pub fn column_fpn_correction_maximum(&self) -> Result<Type, XI_RETURN>

Get the maximum for the column_fpn_correction parameter. See also Self::column_fpn_correction()

Source

pub fn set_column_fpn_correction( &mut self, value: Type, ) -> Result<(), XI_RETURN>

Set the column_fpn_correction parameter. See also Self::column_fpn_correction()

Source

pub fn row_fpn_correction(&self) -> Result<Type, XI_RETURN>

Enable row fpn correction in camera

Source

pub fn row_fpn_correction_increment(&self) -> Result<Type, XI_RETURN>

Get the increment for the row_fpn_correction parameter. See also Self::row_fpn_correction()

Source

pub fn row_fpn_correction_minimum(&self) -> Result<Type, XI_RETURN>

Get the minimum for the row_fpn_correction parameter. See also Self::row_fpn_correction()

Source

pub fn row_fpn_correction_maximum(&self) -> Result<Type, XI_RETURN>

Get the maximum for the row_fpn_correction parameter. See also Self::row_fpn_correction()

Source

pub fn set_row_fpn_correction(&mut self, value: Type) -> Result<(), XI_RETURN>

Set the row_fpn_correction parameter. See also Self::row_fpn_correction()

Source

pub fn column_black_offset_correction(&self) -> Result<Type, XI_RETURN>

Enable column black offset correction

Source

pub fn column_black_offset_correction_increment( &self, ) -> Result<Type, XI_RETURN>

Get the increment for the column_black_offset_correction parameter. See also Self::column_black_offset_correction()

Source

pub fn column_black_offset_correction_minimum(&self) -> Result<Type, XI_RETURN>

Get the minimum for the column_black_offset_correction parameter. See also Self::column_black_offset_correction()

Source

pub fn column_black_offset_correction_maximum(&self) -> Result<Type, XI_RETURN>

Get the maximum for the column_black_offset_correction parameter. See also Self::column_black_offset_correction()

Source

pub fn set_column_black_offset_correction( &mut self, value: Type, ) -> Result<(), XI_RETURN>

Set the column_black_offset_correction parameter. See also Self::column_black_offset_correction()

Source

pub fn row_black_offset_correction(&self) -> Result<Type, XI_RETURN>

Enable row black offset correction

Source

pub fn row_black_offset_correction_increment(&self) -> Result<Type, XI_RETURN>

Get the increment for the row_black_offset_correction parameter. See also Self::row_black_offset_correction()

Source

pub fn row_black_offset_correction_minimum(&self) -> Result<Type, XI_RETURN>

Get the minimum for the row_black_offset_correction parameter. See also Self::row_black_offset_correction()

Source

pub fn row_black_offset_correction_maximum(&self) -> Result<Type, XI_RETURN>

Get the maximum for the row_black_offset_correction parameter. See also Self::row_black_offset_correction()

Source

pub fn set_row_black_offset_correction( &mut self, value: Type, ) -> Result<(), XI_RETURN>

Set the row_black_offset_correction parameter. See also Self::row_black_offset_correction()

Source

pub fn counter_selector(&self) -> Result<Type, XI_RETURN>

Select the frame counter to read

Source

pub fn counter_selector_increment(&self) -> Result<Type, XI_RETURN>

Get the increment for the counter_selector parameter. See also Self::counter_selector()

Source

pub fn counter_selector_minimum(&self) -> Result<Type, XI_RETURN>

Get the minimum for the counter_selector parameter. See also Self::counter_selector()

Source

pub fn counter_selector_maximum(&self) -> Result<Type, XI_RETURN>

Get the maximum for the counter_selector parameter. See also Self::counter_selector()

Source

pub fn set_counter_selector(&mut self, value: Type) -> Result<(), XI_RETURN>

Set the counter_selector parameter. See also Self::counter_selector()

Source

pub fn counter_value(&self) -> Result<i32, XI_RETURN>

Read the value of a frame counter selected with Self::set_counter_selector

Source

pub fn sensor_feature_selector(&self) -> Result<Type, XI_RETURN>

Select a sensor specific feature

Source

pub fn sensor_feature_selector_increment(&self) -> Result<Type, XI_RETURN>

Get the increment for the sensor_feature_selector parameter. See also Self::sensor_feature_selector()

Source

pub fn sensor_feature_selector_minimum(&self) -> Result<Type, XI_RETURN>

Get the minimum for the sensor_feature_selector parameter. See also Self::sensor_feature_selector()

Source

pub fn sensor_feature_selector_maximum(&self) -> Result<Type, XI_RETURN>

Get the maximum for the sensor_feature_selector parameter. See also Self::sensor_feature_selector()

Source

pub fn set_sensor_feature_selector( &mut self, value: Type, ) -> Result<(), XI_RETURN>

Set the sensor_feature_selector parameter. See also Self::sensor_feature_selector()

Source

pub fn sensor_feature_value(&self) -> Result<i32, XI_RETURN>

Set a value for the feature selected with Self::set_sensor_feature_selector

Source

pub fn sensor_feature_value_increment(&self) -> Result<i32, XI_RETURN>

Get the increment for the sensor_feature_value parameter. See also Self::sensor_feature_value()

Source

pub fn sensor_feature_value_minimum(&self) -> Result<i32, XI_RETURN>

Get the minimum for the sensor_feature_value parameter. See also Self::sensor_feature_value()

Source

pub fn sensor_feature_value_maximum(&self) -> Result<i32, XI_RETURN>

Get the maximum for the sensor_feature_value parameter. See also Self::sensor_feature_value()

Source

pub fn set_sensor_feature_value(&mut self, value: i32) -> Result<(), XI_RETURN>

Set the sensor_feature_value parameter. See also Self::sensor_feature_value()

Source

pub fn sensor_clock_freq_hz(&self) -> Result<f32, XI_RETURN>

Read the sensor clock frequency in Hz

Source

pub fn buffer_policy(&self) -> Result<i32, XI_RETURN>

Data move policy

Source

pub fn buffer_policy_increment(&self) -> Result<i32, XI_RETURN>

Get the increment for the buffer_policy parameter. See also Self::buffer_policy()

Source

pub fn buffer_policy_minimum(&self) -> Result<i32, XI_RETURN>

Get the minimum for the buffer_policy parameter. See also Self::buffer_policy()

Source

pub fn buffer_policy_maximum(&self) -> Result<i32, XI_RETURN>

Get the maximum for the buffer_policy parameter. See also Self::buffer_policy()

Source

pub fn set_buffer_policy(&mut self, value: i32) -> Result<(), XI_RETURN>

Set the buffer_policy parameter. See also Self::buffer_policy()

Source

pub fn auto_wb(&self) -> Result<Type, XI_RETURN>

Auto white balance mode.

Source

pub fn auto_wb_increment(&self) -> Result<Type, XI_RETURN>

Get the increment for the auto_wb parameter. See also Self::auto_wb()

Source

pub fn auto_wb_minimum(&self) -> Result<Type, XI_RETURN>

Get the minimum for the auto_wb parameter. See also Self::auto_wb()

Source

pub fn auto_wb_maximum(&self) -> Result<Type, XI_RETURN>

Get the maximum for the auto_wb parameter. See also Self::auto_wb()

Source

pub fn set_auto_wb(&mut self, value: Type) -> Result<(), XI_RETURN>

Set the auto_wb parameter. See also Self::auto_wb()

Source

pub fn wb_kr(&self) -> Result<f32, XI_RETURN>

White balance Red coefficient.

Source

pub fn wb_kr_increment(&self) -> Result<f32, XI_RETURN>

Get the increment for the wb_kr parameter. See also Self::wb_kr()

Source

pub fn wb_kr_minimum(&self) -> Result<f32, XI_RETURN>

Get the minimum for the wb_kr parameter. See also Self::wb_kr()

Source

pub fn wb_kr_maximum(&self) -> Result<f32, XI_RETURN>

Get the maximum for the wb_kr parameter. See also Self::wb_kr()

Source

pub fn set_wb_kr(&mut self, value: f32) -> Result<(), XI_RETURN>

Set the wb_kr parameter. See also Self::wb_kr()

Source

pub fn wb_kg(&self) -> Result<f32, XI_RETURN>

White balance Green coefficient.

Source

pub fn wb_kg_increment(&self) -> Result<f32, XI_RETURN>

Get the increment for the wb_kg parameter. See also Self::wb_kg()

Source

pub fn wb_kg_minimum(&self) -> Result<f32, XI_RETURN>

Get the minimum for the wb_kg parameter. See also Self::wb_kg()

Source

pub fn wb_kg_maximum(&self) -> Result<f32, XI_RETURN>

Get the maximum for the wb_kg parameter. See also Self::wb_kg()

Source

pub fn set_wb_kg(&mut self, value: f32) -> Result<(), XI_RETURN>

Set the wb_kg parameter. See also Self::wb_kg()

Source

pub fn wb_kb(&self) -> Result<f32, XI_RETURN>

White balance Blue coefficient.

Source

pub fn wb_kb_increment(&self) -> Result<f32, XI_RETURN>

Get the increment for the wb_kb parameter. See also Self::wb_kb()

Source

pub fn wb_kb_minimum(&self) -> Result<f32, XI_RETURN>

Get the minimum for the wb_kb parameter. See also Self::wb_kb()

Source

pub fn wb_kb_maximum(&self) -> Result<f32, XI_RETURN>

Get the maximum for the wb_kb parameter. See also Self::wb_kb()

Source

pub fn set_wb_kb(&mut self, value: f32) -> Result<(), XI_RETURN>

Set the wb_kb parameter. See also Self::wb_kb()

Source

pub fn recent_frame(&self) -> Result<Type, XI_RETURN>

Recent Frame mode.

Source

pub fn recent_frame_increment(&self) -> Result<Type, XI_RETURN>

Get the increment for the recent_frame parameter. See also Self::recent_frame()

Source

pub fn recent_frame_minimum(&self) -> Result<Type, XI_RETURN>

Get the minimum for the recent_frame parameter. See also Self::recent_frame()

Source

pub fn recent_frame_maximum(&self) -> Result<Type, XI_RETURN>

Get the maximum for the recent_frame parameter. See also Self::recent_frame()

Source

pub fn set_recent_frame(&mut self, value: Type) -> Result<(), XI_RETURN>

Set the recent_frame parameter. See also Self::recent_frame()

Trait Implementations§

Source§

impl Deref for Camera

Source§

fn deref(&self) -> &Self::Target

Returns a reference to the wrapped device handle.

While getting the handle itself is safe, everything that can practically be done with it should be considered unsafe. Especially operations that change the state of the camera (e.g. setting parameters) are undefined behavior.

Source§

type Target = *mut c_void

The resulting type after dereferencing.
Source§

impl Drop for Camera

Source§

fn drop(&mut self)

Executes the destructor for this type. Read more
Source§

impl Send for Camera

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<P, T> Receiver for P
where P: Deref<Target = T> + ?Sized, T: ?Sized,

Source§

type Target = T

🔬This is a nightly-only experimental API. (arbitrary_self_types)
The target type on which the method may be called.
Source§

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

Source§

type Error = Infallible

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

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

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.