pub struct ConversionRequest {
pub width: u32,
pub height: u32,
pub color_override: Option<ColorInfo>,
}Expand description
Describes the RGB image a consumer actually needs.
A smaller target is produced directly from raw frames and uses TurboJPEG’s DCT scaling for MJPEG when a supported factor can reduce the decode work.
Fields§
§width: u32Frame width in pixels.
height: u32Frame height in pixels.
color_override: Option<ColorInfo>The color override value.
Implementations§
Source§impl ConversionRequest
impl ConversionRequest
Sourcepub fn new(width: u32, height: u32) -> CameraResult<Self>
pub fn new(width: u32, height: u32) -> CameraResult<Self>
Performs the new operation.
Sourcepub fn for_layout(layout: &FrameLayout) -> Self
pub fn for_layout(layout: &FrameLayout) -> Self
Performs the for_layout operation.
Sourcepub fn with_color(self, color: ColorInfo) -> Self
pub fn with_color(self, color: ColorInfo) -> Self
Performs the with_color operation.
Sourcepub fn output_len(self) -> CameraResult<usize>
pub fn output_len(self) -> CameraResult<usize>
Performs the output_len operation.
Trait Implementations§
Source§impl Clone for ConversionRequest
impl Clone for ConversionRequest
impl Copy for ConversionRequest
Source§impl Debug for ConversionRequest
impl Debug for ConversionRequest
impl Eq for ConversionRequest
Source§impl PartialEq for ConversionRequest
impl PartialEq for ConversionRequest
impl StructuralPartialEq for ConversionRequest
Auto Trait Implementations§
impl Forget for ConversionRequest
impl Freeze for ConversionRequest
impl RefUnwindSafe for ConversionRequest
impl Send for ConversionRequest
impl Sync for ConversionRequest
impl Unpin for ConversionRequest
impl UnsafeUnpin for ConversionRequest
impl UnwindSafe for ConversionRequest
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