Struct libcamera::stream::StreamFormatsRef
source · pub struct StreamFormatsRef<'d> { /* private fields */ }
Expand description
A list of available stream formats.
Implementations§
source§impl<'d> StreamFormatsRef<'d>
impl<'d> StreamFormatsRef<'d>
sourcepub fn pixel_formats(&self) -> Immutable<PixelFormats>
pub fn pixel_formats(&self) -> Immutable<PixelFormats>
Returns all available PixelFormats.
sourcepub fn sizes(&self, pixel_format: PixelFormat) -> Vec<Size>
pub fn sizes(&self, pixel_format: PixelFormat) -> Vec<Size>
Returns all supported stream Sizes for a given PixelFormat.
sourcepub fn range(&self, pixel_format: PixelFormat) -> SizeRange
pub fn range(&self, pixel_format: PixelFormat) -> SizeRange
Returns a SizeRange of supported stream sizes for a given PixelFormat.
Trait Implementations§
Auto Trait Implementations§
impl<'d> Freeze for StreamFormatsRef<'d>
impl<'d> RefUnwindSafe for StreamFormatsRef<'d>
impl<'d> !Send for StreamFormatsRef<'d>
impl<'d> !Sync for StreamFormatsRef<'d>
impl<'d> Unpin for StreamFormatsRef<'d>
impl<'d> UnwindSafe for StreamFormatsRef<'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