Struct SegmentationParams

Source
pub struct SegmentationParams {
    pub segmentation_enabled: bool,
    pub segmentation_update_map: bool,
    pub segmentation_temporal_update: bool,
    pub segmentation_update_data: bool,
    pub feature_enabled: [[bool; 8]; 8],
    pub feature_data: [[i16; 8]; 8],
    pub seg_id_pre_skip: bool,
    pub last_active_seg_id: u8,
}

Fields§

§segmentation_enabled: bool

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

§segmentation_update_map: bool

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

§segmentation_temporal_update: bool

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

§segmentation_update_data: bool

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

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

If not set, indicates that the corresponding feature is unused and has value equal to 0. If set, indicates that the feature value is coded.

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

Specifies the feature data for a segment feature.

§seg_id_pre_skip: bool

Same as SegIdPreSkip

§last_active_seg_id: u8

Same as LastActiveSegId

Trait Implementations§

Source§

impl Clone for SegmentationParams

Source§

fn clone(&self) -> SegmentationParams

Returns a copy 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.