Struct cros_codecs::decoders::vp9::parser::SegmentationParams
source · [−]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
sourceimpl SegmentationParams
impl SegmentationParams
sourcepub fn update_map(&self) -> bool
pub fn update_map(&self) -> bool
Get a reference to the segmentation params’s update map.
sourcepub fn tree_probs(&self) -> [u8; 7]
pub fn tree_probs(&self) -> [u8; 7]
Get a reference to the segmentation params’s tree probs.
sourcepub fn pred_probs(&self) -> [u8; 3]
pub fn pred_probs(&self) -> [u8; 3]
Get a reference to the segmentation params’s pred probs.
sourcepub fn temporal_update(&self) -> bool
pub fn temporal_update(&self) -> bool
Get a reference to the segmentation params’s temporal update.
sourcepub fn update_data(&self) -> bool
pub fn update_data(&self) -> bool
Get a reference to the segmentation params’s update data.
sourcepub fn abs_or_delta_update(&self) -> bool
pub fn abs_or_delta_update(&self) -> bool
Get a reference to the segmentation params’s abs or delta update.
Trait Implementations
sourceimpl Clone for SegmentationParams
impl Clone for SegmentationParams
sourcefn clone(&self) -> SegmentationParams
fn clone(&self) -> SegmentationParams
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more