pub struct SegmentationState {
pub enabled: bool,
pub update_data: bool,
pub update_map: bool,
pub preskip: bool,
pub last_active_segid: u8,
pub features: [[bool; 8]; 8],
pub data: [[i16; 8]; 8],
pub threshold: [DistortionScale; 7],
pub min_segment: u8,
pub max_segment: u8,
}
Fields§
§enabled: bool
§update_data: bool
§update_map: bool
§preskip: bool
§last_active_segid: u8
§features: [[bool; 8]; 8]
§data: [[i16; 8]; 8]
§threshold: [DistortionScale; 7]
§min_segment: u8
§max_segment: u8
Implementations§
Source§impl SegmentationState
impl SegmentationState
pub fn update_threshold(&mut self, base_q_idx: u8, bd: usize)
Trait Implementations§
Source§impl Clone for SegmentationState
impl Clone for SegmentationState
Source§fn clone(&self) -> SegmentationState
fn clone(&self) -> SegmentationState
Returns a duplicate 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 moreSource§impl Debug for SegmentationState
impl Debug for SegmentationState
Source§impl Default for SegmentationState
impl Default for SegmentationState
Source§fn default() -> SegmentationState
fn default() -> SegmentationState
Returns the “default value” for a type. Read more
impl Copy for SegmentationState
Auto Trait Implementations§
impl Freeze for SegmentationState
impl RefUnwindSafe for SegmentationState
impl Send for SegmentationState
impl Sync for SegmentationState
impl Unpin for SegmentationState
impl UnwindSafe for SegmentationState
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more