Struct adder_codec_rs::transcoder::source::video::VideoState
source · 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
impl Debug for VideoState
Auto Trait Implementations§
impl RefUnwindSafe for VideoState
impl Send for VideoState
impl Sync for VideoState
impl Unpin for VideoState
impl UnwindSafe for VideoState
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
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>
self
from the equivalent element of its
superset. Read more§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
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
self.to_subset
but without any property checks. Always succeeds.§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
self
to the equivalent element of its superset.