pub struct SegmentationParams {
    enabled: bool,
    update_map: bool,
    tree_probs: [u8; 7],
    pred_probs: [u8; 3],
    temporal_update: bool,
    update_data: bool,
    abs_or_delta_update: bool,
    feature_enabled: [[bool; 4]; 8],
    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.

Implementations

Get a reference to the segmentation params’s enabled.

Get a reference to the segmentation params’s update map.

Get a reference to the segmentation params’s tree probs.

Get a reference to the segmentation params’s pred probs.

Get a reference to the segmentation params’s temporal update.

Get a reference to the segmentation params’s update data.

Get a reference to the segmentation params’s abs or delta update.

Get a reference to the segmentation params’s feature enabled.

Get a reference to the segmentation params’s feature data.

Trait Implementations

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Formats the value using the given formatter. Read more
Returns the “default value” for a type. Read more
This method tests for self and other values to be equal, and is used by ==. Read more
This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.