#[non_exhaustive]pub struct Pipe2Config {
pub source: InputSource,
pub virtual_channel: u8,
pub output: PixelFormat,
pub pitch_bytes: u16,
pub swap_rb: bool,
pub crop: Option<CropConfig>,
pub downsize: Option<DownsizeConfig>,
}Expand description
Pipe2 (ancillary) configuration.
Pipe2 shares Pipe1’s ISP front end and only supports coplanar output
formats. Passing a multi-planar PixelFormat to Pipe2::configure
panics.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.source: InputSourceUpstream source.
virtual_channel: u8CSI-2 virtual channel (0..=3) to latch pixels from.
output: PixelFormatOutput pixel format. Must satisfy PixelFormat::is_coplanar.
pitch_bytes: u16Line pitch in bytes. Must be a multiple of 16.
swap_rb: boolSwap R/B components (or U/V for YUV).
crop: Option<CropConfig>Crop window. Applied before downsize.
downsize: Option<DownsizeConfig>Downsize configuration.
Implementations§
Source§impl Pipe2Config
impl Pipe2Config
Sourcepub const fn new(
source: InputSource,
output: PixelFormat,
pitch_bytes: u16,
) -> Self
pub const fn new( source: InputSource, output: PixelFormat, pitch_bytes: u16, ) -> Self
Create a Pipe2 configuration with VC0, no crop, no downsize.
Auto Trait Implementations§
impl Freeze for Pipe2Config
impl RefUnwindSafe for Pipe2Config
impl Send for Pipe2Config
impl Sync for Pipe2Config
impl Unpin for Pipe2Config
impl UnwindSafe for Pipe2Config
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