Struct libcamera::stream::StreamConfigurationRef
source · pub struct StreamConfigurationRef<'d> { /* private fields */ }
Implementations§
source§impl<'d> StreamConfigurationRef<'d>
impl<'d> StreamConfigurationRef<'d>
pub fn get_pixel_format(&self) -> PixelFormat
pub fn set_pixel_format(&mut self, pixel_format: PixelFormat)
pub fn get_size(&self) -> Size
pub fn set_size(&mut self, size: Size)
pub fn get_stride(&self) -> u32
pub fn set_stride(&mut self, stride: u32)
pub fn get_frame_size(&self) -> u32
pub fn set_frame_size(&mut self, frame_size: u32)
pub fn get_buffer_count(&self) -> u32
pub fn set_buffer_count(&mut self, buffer_count: u32)
sourcepub fn stream(&self) -> Option<Stream>
pub fn stream(&self) -> Option<Stream>
Returns initialized Stream for this configuration.
Stream is only available once this configuration is applied with ActiveCamera::configure(). It is invalidated if camera is reconfigured.
sourcepub fn formats(&self) -> StreamFormatsRef<'_>
pub fn formats(&self) -> StreamFormatsRef<'_>
Returns a list of available stream formats for this configuration.
Trait Implementations§
Auto Trait Implementations§
impl<'d> Freeze for StreamConfigurationRef<'d>
impl<'d> RefUnwindSafe for StreamConfigurationRef<'d>
impl<'d> !Send for StreamConfigurationRef<'d>
impl<'d> !Sync for StreamConfigurationRef<'d>
impl<'d> Unpin for StreamConfigurationRef<'d>
impl<'d> UnwindSafe for StreamConfigurationRef<'d>
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