Trait VideoBuilder

Source
pub trait VideoBuilder<W> {
    // Required methods
    fn crf(self, crf: u8) -> Self;
    fn quality_manual(
        self,
        c_thresh_baseline: u8,
        c_thresh_max: u8,
        delta_t_max_multiplier: u32,
        c_increase_velocity: u8,
        feature_c_radius_denom: f32,
    ) -> Self;
    fn chunk_rows(self, chunk_rows: usize) -> Self;
    fn time_parameters(
        self,
        tps: DeltaT,
        ref_time: DeltaT,
        delta_t_max: DeltaT,
        time_mode: Option<TimeMode>,
    ) -> Result<Self, SourceError>
       where Self: Sized;
    fn write_out(
        self,
        source_camera: SourceCamera,
        time_mode: TimeMode,
        pixel_multi_mode: PixelMultiMode,
        adu_interval: Option<usize>,
        encoder_type: EncoderType,
        encoder_options: EncoderOptions,
        write: W,
    ) -> Result<Box<Self>, SourceError>;
    fn detect_features(
        self,
        detect_features: bool,
        show_features: ShowFeatureMode,
    ) -> Self;
}
Expand description

A builder for a Video

Required Methods§

Source

fn crf(self, crf: u8) -> Self

Set the Constant Rate Factor (CRF) quality setting for the encoder. 0 is lossless, 9 is worst quality.

Source

fn quality_manual( self, c_thresh_baseline: u8, c_thresh_max: u8, delta_t_max_multiplier: u32, c_increase_velocity: u8, feature_c_radius_denom: f32, ) -> Self

Manually set the parameters dictating quality

Source

fn chunk_rows(self, chunk_rows: usize) -> Self

Set the chunk rows

Source

fn time_parameters( self, tps: DeltaT, ref_time: DeltaT, delta_t_max: DeltaT, time_mode: Option<TimeMode>, ) -> Result<Self, SourceError>
where Self: Sized,

Set the time parameters

Source

fn write_out( self, source_camera: SourceCamera, time_mode: TimeMode, pixel_multi_mode: PixelMultiMode, adu_interval: Option<usize>, encoder_type: EncoderType, encoder_options: EncoderOptions, write: W, ) -> Result<Box<Self>, SourceError>

Set the Encoder

Source

fn detect_features( self, detect_features: bool, show_features: ShowFeatureMode, ) -> Self

Set whether or not to detect features, and whether or not to display the features

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl<W: Write + 'static + Send + Sync> VideoBuilder<W> for Framed<W>

Source§

impl<W: Write + Send + Sync + 'static> VideoBuilder<W> for Prophesee<W>