Struct ctru::services::cam::OutwardRightCam
source · pub struct OutwardRightCam { /* private fields */ }
Expand description
Right-side outward camera representation.
Trait Implementations§
source§impl Camera for OutwardRightCam
impl Camera for OutwardRightCam
source§fn camera_as_raw(&self) -> u32_
fn camera_as_raw(&self) -> u32_
Returns the raw value of the selected camera.
source§fn port_as_raw(&self) -> u32_
fn port_as_raw(&self) -> u32_
Returns the raw port of the selected camera.
source§fn is_busy(&self) -> Result<bool>
fn is_busy(&self) -> Result<bool>
Returns
true
if the camera is busy (receiving data). Read moresource§fn final_byte_length(&self) -> usize
fn final_byte_length(&self) -> usize
Returns the maximum amount of bytes the final image will occupy in memory based on the view size, trimming, pixel depth and other
modifications set to the camera. Read more
source§fn final_view_size(&self) -> (i16, i16)
fn final_view_size(&self) -> (i16, i16)
Returns the dimensions of the final image based on the view size, trimming and other
modifications set to the camera. Read more
source§fn set_trimming(&mut self, trimming: Trimming) -> Result<()>
fn set_trimming(&mut self, trimming: Trimming) -> Result<()>
Set trimming bounds to trim the camera photo. Read more
source§fn is_trimming(&self) -> bool
fn is_trimming(&self) -> bool
Returns whether or not trimming is currently enabled for the camera.
source§fn set_exposure(&mut self, exposure: i8) -> Result<()>
fn set_exposure(&mut self, exposure: i8) -> Result<()>
Set the exposure level of the camera.
source§fn set_white_balance(&mut self, white_balance: WhiteBalance) -> Result<()>
fn set_white_balance(&mut self, white_balance: WhiteBalance) -> Result<()>
Set the white balance of the camera.
source§fn set_sharpness(&mut self, sharpness: i8) -> Result<()>
fn set_sharpness(&mut self, sharpness: i8) -> Result<()>
Set the sharpness of the camera.
source§fn set_auto_exposure(&mut self, enabled: bool) -> Result<()>
fn set_auto_exposure(&mut self, enabled: bool) -> Result<()>
Set whether auto exposure is enabled or disabled for the camera.
source§fn is_auto_exposure_enabled(&self) -> Result<bool>
fn is_auto_exposure_enabled(&self) -> Result<bool>
Returns
true
if auto exposure is enabled for the camera.source§fn flip_image(&mut self, flip: FlipMode) -> Result<()>
fn flip_image(&mut self, flip: FlipMode) -> Result<()>
Set the flip mode of the camera’s image.
source§fn set_view_size(&mut self, size: ViewSize) -> Result<()>
fn set_view_size(&mut self, size: ViewSize) -> Result<()>
Set the view size of the camera. Read more
source§fn set_frame_rate(&mut self, frame_rate: FrameRate) -> Result<()>
fn set_frame_rate(&mut self, frame_rate: FrameRate) -> Result<()>
Set the frame rate of the camera.
source§fn set_photo_mode(&mut self, photo_mode: PhotoMode) -> Result<()>
fn set_photo_mode(&mut self, photo_mode: PhotoMode) -> Result<()>
Set the photo mode of the camera.
source§fn set_effect(&mut self, effect: Effect) -> Result<()>
fn set_effect(&mut self, effect: Effect) -> Result<()>
Set the effect of the camera. Read more
source§fn set_contrast(&mut self, contrast: Contrast) -> Result<()>
fn set_contrast(&mut self, contrast: Contrast) -> Result<()>
Set the contrast of the camera.
source§fn set_lens_correction(&mut self, lens_correction: LensCorrection) -> Result<()>
fn set_lens_correction(&mut self, lens_correction: LensCorrection) -> Result<()>
Set the lens correction of the camera.
source§fn set_output_format(&mut self, format: OutputFormat) -> Result<()>
fn set_output_format(&mut self, format: OutputFormat) -> Result<()>
Set the output format of the camera.
source§fn set_auto_exposure_window(
&mut self,
x: i16,
y: i16,
width: i16,
height: i16
) -> Result<()>
fn set_auto_exposure_window( &mut self, x: i16, y: i16, width: i16, height: i16 ) -> Result<()>
Set the region in which auto exposure should be based on. Read more
source§fn set_auto_white_balance_window(
&mut self,
x: i16,
y: i16,
width: i16,
height: i16
) -> Result<()>
fn set_auto_white_balance_window( &mut self, x: i16, y: i16, width: i16, height: i16 ) -> Result<()>
Set the region in which auto white balance should be based on. Read more
source§fn set_noise_filter(&mut self, enabled: bool) -> Result<()>
fn set_noise_filter(&mut self, enabled: bool) -> Result<()>
Set whether the noise filter should be enabled or disabled for the camera.
source§fn set_image_quality_calibration(
&mut self,
data: ImageQualityCalibration
) -> Result<()>
fn set_image_quality_calibration( &mut self, data: ImageQualityCalibration ) -> Result<()>
Set the
ImageQualityCalibration
for the camera.source§fn image_quality_calibration(&self) -> Result<ImageQualityCalibration>
fn image_quality_calibration(&self) -> Result<ImageQualityCalibration>
Returns the current
ImageQualityCalibration
for the camera.source§fn take_picture(&mut self, buffer: &mut [u8], timeout: Duration) -> Result<()>
fn take_picture(&mut self, buffer: &mut [u8], timeout: Duration) -> Result<()>
Request the camera to take a picture and write it in a buffer. Read more