pub struct VideoState {
    pub plane: PlaneSize,
    pub chunk_rows: usize,
    pub in_interval_count: u32,
    pub c_thresh_baseline: u8,
    pub c_thresh_max: u8,
    pub c_increase_velocity: u8,
    pub delta_t_max: u32,
    pub ref_time: u32,
    pub crf_quality: u8,
    pub feature_detection: bool,
    pub feature_c_radius: u16,
    /* private fields */
}
Expand description

Running state of the video transcode

Fields§

§plane: PlaneSize

The size of the imaging plane

§chunk_rows: usize

The number of rows of pixels to process at a time (per thread)

§in_interval_count: u32

The number of input intervals (of fixed time) processed so far

§c_thresh_baseline: u8

The baseline (starting) contrast threshold for all pixels

§c_thresh_max: u8

The maximum contrast threshold for all pixels

§c_increase_velocity: u8

The velocity at which to increase the contrast threshold for all pixels (increment c by 1 for every X input intervals, if it’s stable)

§delta_t_max: u32

The maximum time difference between events of the same pixel, in ticks

§ref_time: u32

The reference time in ticks

§crf_quality: u8

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

  • The baseline (starting) c-threshold for all pixels
  • The maximum c-threshold for all pixels
  • The Dt_max multiplier
  • The c-threshold increase velocity (how often to increase C if the intensity is stable)
  • The radius for which to reset the c-threshold for neighboring pixels (if feature detection is enabled)
§feature_detection: bool

Whether or not to detect features

§feature_c_radius: u16

The radius for which to reset the c-threshold for neighboring pixels (if feature detection is enabled)

Trait Implementations§

source§

impl Debug for VideoState

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Default for VideoState

source§

fn default() -> Self

Returns the “default value” for a type. Read more

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for Twhere U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

§

impl<T, U> IntoCv<U> for Twhere U: FromCv<T>,

§

fn into_cv(self) -> U

§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> Same for T

§

type Output = T

Should always be Self
§

impl<SS, SP> SupersetOf<SS> for SPwhere SS: SubsetOf<SP>,

§

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

Checks if self is actually part of its subset T (and can be converted to it).
§

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

The inclusion map: converts self to the equivalent element of its superset.
source§

impl<T, U> TryFrom<U> for Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<T, U> TryIntoCv<U> for Twhere U: TryFromCv<T>,

§

type Error = <U as TryFromCv<T>>::Error

§

fn try_into_cv(self) -> Result<U, <T as TryIntoCv<U>>::Error>

source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more