pub struct Segmentation {
pub enabled: bool,
pub update_map: bool,
pub abs_delta: bool,
pub quantizer: [i8; 4],
pub filter_strength: [i8; 4],
pub tree_probs: [u8; 3],
}Expand description
Per-segment adjustment state (RFC 6386 §9.3, §10). Still images usually leave this disabled.
Fields§
§enabled: boolWhether segmentation is enabled for the frame.
update_map: boolWhether the per-macroblock segment map is (re)transmitted this frame.
abs_delta: boolFeature-data mode: true = absolute values, false = deltas from the frame base
(segment_feature_mode).
quantizer: [i8; 4]Per-segment quantizer adjustment (absolute or delta, per abs_delta).
filter_strength: [i8; 4]Per-segment loop-filter-level adjustment.
tree_probs: [u8; 3]Branch probabilities for the segment-id tree (default 255 each).
Trait Implementations§
Source§impl Clone for Segmentation
impl Clone for Segmentation
Source§fn clone(&self) -> Segmentation
fn clone(&self) -> Segmentation
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for Segmentation
Source§impl Debug for Segmentation
impl Debug for Segmentation
Source§impl Default for Segmentation
impl Default for Segmentation
Source§fn default() -> Segmentation
fn default() -> Segmentation
Returns the “default value” for a type. Read more
impl Eq for Segmentation
Source§impl PartialEq for Segmentation
impl PartialEq for Segmentation
Source§fn eq(&self, other: &Segmentation) -> bool
fn eq(&self, other: &Segmentation) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for Segmentation
Auto Trait Implementations§
impl Freeze for Segmentation
impl RefUnwindSafe for Segmentation
impl Send for Segmentation
impl Sync for Segmentation
impl Unpin for Segmentation
impl UnsafeUnpin for Segmentation
impl UnwindSafe for Segmentation
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