Struct adder_codec_rs::framer::driver::FramerBuilder
source · pub struct FramerBuilder {
pub chunk_rows: usize,
/* private fields */
}
Expand description
Builder for a Framer.
Fields§
§chunk_rows: usize
The number of rows to process in each chunk (thread).
Implementations§
source§impl FramerBuilder
impl FramerBuilder
sourcepub fn new(plane: PlaneSize, chunk_rows: usize) -> FramerBuilder
pub fn new(plane: PlaneSize, chunk_rows: usize) -> FramerBuilder
Create a new FramerBuilder.
sourcepub fn time_parameters(
self,
tps: DeltaT,
ref_interval: DeltaT,
delta_t_max: DeltaT,
output_fps: Option<f32>
) -> FramerBuilder
pub fn time_parameters( self, tps: DeltaT, ref_interval: DeltaT, delta_t_max: DeltaT, output_fps: Option<f32> ) -> FramerBuilder
Set the time parameters.
sourcepub fn buffer_limit(self, buffer_limit: Option<u32>) -> FramerBuilder
pub fn buffer_limit(self, buffer_limit: Option<u32>) -> FramerBuilder
Limit the size of the reconstruction frame buffer (for speed/latency)
sourcepub fn mode(self, mode: FramerMode) -> FramerBuilder
pub fn mode(self, mode: FramerMode) -> FramerBuilder
Set the framer mode.
sourcepub fn view_mode(self, mode: FramedViewMode) -> FramerBuilder
pub fn view_mode(self, mode: FramedViewMode) -> FramerBuilder
Set the view mode.
sourcepub fn source(
self,
source: SourceType,
source_camera: SourceCamera
) -> FramerBuilder
pub fn source( self, source: SourceType, source_camera: SourceCamera ) -> FramerBuilder
Set the source type and camera.
sourcepub fn codec_version(
self,
codec_version: u8,
time_mode: TimeMode
) -> FramerBuilder
pub fn codec_version( self, codec_version: u8, time_mode: TimeMode ) -> FramerBuilder
Set the codec version and time mode.
sourcepub fn finish<T>(self) -> FrameSequence<T>
pub fn finish<T>(self) -> FrameSequence<T>
Build a Framer
.
TODO: Make this return a result
sourcepub fn detect_features(self, detect_features: bool) -> FramerBuilder
pub fn detect_features(self, detect_features: bool) -> FramerBuilder
Set whether to detect features.
Trait Implementations§
source§impl Clone for FramerBuilder
impl Clone for FramerBuilder
source§fn clone(&self) -> FramerBuilder
fn clone(&self) -> FramerBuilder
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl Freeze for FramerBuilder
impl RefUnwindSafe for FramerBuilder
impl Send for FramerBuilder
impl Sync for FramerBuilder
impl Unpin for FramerBuilder
impl UnwindSafe for FramerBuilder
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
source§impl<T> CheckedAs for T
impl<T> CheckedAs for T
source§fn checked_as<Dst>(self) -> Option<Dst>where
T: CheckedCast<Dst>,
fn checked_as<Dst>(self) -> Option<Dst>where
T: CheckedCast<Dst>,
Casts the value.
source§impl<Src, Dst> CheckedCastFrom<Src> for Dstwhere
Src: CheckedCast<Dst>,
impl<Src, Dst> CheckedCastFrom<Src> for Dstwhere
Src: CheckedCast<Dst>,
source§fn checked_cast_from(src: Src) -> Option<Dst>
fn checked_cast_from(src: Src) -> Option<Dst>
Casts the value.
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<Src, Dst> LosslessTryInto<Dst> for Srcwhere
Dst: LosslessTryFrom<Src>,
impl<Src, Dst> LosslessTryInto<Dst> for Srcwhere
Dst: LosslessTryFrom<Src>,
source§fn lossless_try_into(self) -> Option<Dst>
fn lossless_try_into(self) -> Option<Dst>
Performs the conversion.
source§impl<Src, Dst> LossyInto<Dst> for Srcwhere
Dst: LossyFrom<Src>,
impl<Src, Dst> LossyInto<Dst> for Srcwhere
Dst: LossyFrom<Src>,
source§fn lossy_into(self) -> Dst
fn lossy_into(self) -> Dst
Performs the conversion.
source§impl<T> OverflowingAs for T
impl<T> OverflowingAs for T
source§fn overflowing_as<Dst>(self) -> (Dst, bool)where
T: OverflowingCast<Dst>,
fn overflowing_as<Dst>(self) -> (Dst, bool)where
T: OverflowingCast<Dst>,
Casts the value.
source§impl<Src, Dst> OverflowingCastFrom<Src> for Dstwhere
Src: OverflowingCast<Dst>,
impl<Src, Dst> OverflowingCastFrom<Src> for Dstwhere
Src: OverflowingCast<Dst>,
source§fn overflowing_cast_from(src: Src) -> (Dst, bool)
fn overflowing_cast_from(src: Src) -> (Dst, bool)
Casts the value.
source§impl<T> Pointable for T
impl<T> Pointable for T
source§impl<T> SaturatingAs for T
impl<T> SaturatingAs for T
source§fn saturating_as<Dst>(self) -> Dstwhere
T: SaturatingCast<Dst>,
fn saturating_as<Dst>(self) -> Dstwhere
T: SaturatingCast<Dst>,
Casts the value.
source§impl<Src, Dst> SaturatingCastFrom<Src> for Dstwhere
Src: SaturatingCast<Dst>,
impl<Src, Dst> SaturatingCastFrom<Src> for Dstwhere
Src: SaturatingCast<Dst>,
source§fn saturating_cast_from(src: Src) -> Dst
fn saturating_cast_from(src: Src) -> Dst
Casts the value.
source§impl<T> UnwrappedAs for T
impl<T> UnwrappedAs for T
source§fn unwrapped_as<Dst>(self) -> Dstwhere
T: UnwrappedCast<Dst>,
fn unwrapped_as<Dst>(self) -> Dstwhere
T: UnwrappedCast<Dst>,
Casts the value.
source§impl<Src, Dst> UnwrappedCastFrom<Src> for Dstwhere
Src: UnwrappedCast<Dst>,
impl<Src, Dst> UnwrappedCastFrom<Src> for Dstwhere
Src: UnwrappedCast<Dst>,
source§fn unwrapped_cast_from(src: Src) -> Dst
fn unwrapped_cast_from(src: Src) -> Dst
Casts the value.
source§impl<T> WithSubscriber for T
impl<T> WithSubscriber for T
source§fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
source§fn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
source§impl<T> WrappingAs for T
impl<T> WrappingAs for T
source§fn wrapping_as<Dst>(self) -> Dstwhere
T: WrappingCast<Dst>,
fn wrapping_as<Dst>(self) -> Dstwhere
T: WrappingCast<Dst>,
Casts the value.
source§impl<Src, Dst> WrappingCastFrom<Src> for Dstwhere
Src: WrappingCast<Dst>,
impl<Src, Dst> WrappingCastFrom<Src> for Dstwhere
Src: WrappingCast<Dst>,
source§fn wrapping_cast_from(src: Src) -> Dst
fn wrapping_cast_from(src: Src) -> Dst
Casts the value.