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: f64
) -> FramerBuilder
pub fn time_parameters( self, tps: DeltaT, ref_interval: DeltaT, delta_t_max: DeltaT, output_fps: f64 ) -> FramerBuilder
Set the time parameters.
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.
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 RefUnwindSafe for FramerBuilder
impl Send for FramerBuilder
impl Sync for FramerBuilder
impl Unpin for FramerBuilder
impl UnwindSafe for FramerBuilder
Blanket Implementations§
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>
§impl<T> Pointable for T
impl<T> Pointable for T
§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere SS: SubsetOf<SP>,
§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self
from the equivalent element of its
superset. Read more§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self
is actually part of its subset T
(and can be converted to it).§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset
but without any property checks. Always succeeds.§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self
to the equivalent element of its superset.