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.
pub fn buffer_limit(self, buffer_limit: Option<u32>) -> FramerBuilder
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 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