Struct SegmentationParams

Source
pub struct SegmentationParams {
    pub enabled: bool,
    pub update_map: bool,
    pub tree_probs: [u8; 7],
    pub pred_probs: [u8; 3],
    pub temporal_update: bool,
    pub update_data: bool,
    pub abs_or_delta_update: bool,
    pub feature_enabled: [[bool; 4]; 8],
    pub feature_data: [[i16; 4]; 8],
}

Fields§

§enabled: bool

If set, indicates that this frame makes use of the segmentation tool. If unset, indicates that the frame does not use segmentation.

§update_map: bool

If set, indicates that the segmentation map should be updated during the decoding of this frame. If unset, means that the segmentation map from the previous frame is used.

§tree_probs: [u8; 7]

Specify the probability values to be used when decoding segment_id.

§pred_probs: [u8; 3]

Specify the probability values to be used when decoding seg_id_predicted.

§temporal_update: bool

If set, indicates that the updates to the segmentation map are coded relative to the existing segmentation map. If unset, indicates that the new segmentation map is coded without reference to the existing segmentation map.

§update_data: bool

If set, indicates that new parameters are about to be specified for each segment. If unset, indicates that the segmentation parameters should keep their existing values.

§abs_or_delta_update: bool

If unset, indicates that the segmentation parameters represent adjustments relative to the standard values. If set, indicates that the segmentation parameters represent the actual values to be used.

§feature_enabled: [[bool; 4]; 8]

If unset, indicates that the corresponding feature is unused and has value equal to 0. if set, indicates that the feature value is coded in the bitstream.

§feature_data: [[i16; 4]; 8]

Specifies the magnitude of the feature data for a segment feature.

Trait Implementations§

Source§

impl Clone for SegmentationParams

Source§

fn clone(&self) -> SegmentationParams

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for SegmentationParams

Source§

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

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

impl Default for SegmentationParams

Source§

fn default() -> SegmentationParams

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

impl PartialEq for SegmentationParams

Source§

fn eq(&self, other: &SegmentationParams) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl Eq for SegmentationParams

Source§

impl StructuralPartialEq for SegmentationParams

Auto Trait Implementations§

Blanket Implementations§

Source§

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

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

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

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

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

Source§

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

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where 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.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

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

Source§

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 T
where U: TryFrom<T>,

Source§

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.