Struct cros_codecs::decoders::vp9::parser::LoopFilterParams
source · [−]pub struct LoopFilterParams {
level: u8,
sharpness: u8,
delta_enabled: bool,
delta_update: bool,
update_ref_delta: [bool; 4],
ref_deltas: [i8; 4],
update_mode_delta: [bool; 2],
mode_deltas: [i8; 2],
}
Fields
level: u8
Indicates the loop filter strength.
sharpness: u8
Indicates the sharpness level. The loop filter level and loop filter_sharpness together determine when a block edge is filtered, and by how much the filtering can change the sample values.
delta_enabled: bool
If set, means that the filter level depends on the mode and reference frame used to predict a block. If unset, means that the filter level does not depend on the mode and reference frame.
delta_update: bool
If set, means that the bitstream contains additional syntax elements that specify which mode and reference frame deltas are to be updated. If unset, means that these syntax elements are not present.
update_ref_delta: [bool; 4]
If set, means that the bitstream contains additional syntax elements that specify which mode and reference frame deltas are to be updated. If unset, means that these syntax elements are not present.
ref_deltas: [i8; 4]
Contains the adjustment needed for the filter level based on the chosen reference frame. If this syntax element is not present in the bitstream, it maintains its previous value.
update_mode_delta: [bool; 2]
If set, means that the bitstream contains the syntax element loop_filter_mode_deltas. If unset, means that the bitstream does not contain this syntax element.
mode_deltas: [i8; 2]
Contains the adjustment needed for the filter level based on the chosen mode. If this syntax element is not present in the bitstream, it maintains its previous value.
Implementations
sourceimpl LoopFilterParams
impl LoopFilterParams
sourcepub fn delta_enabled(&self) -> bool
pub fn delta_enabled(&self) -> bool
Get a reference to the loop filter params’s delta enabled.
sourcepub fn delta_update(&self) -> bool
pub fn delta_update(&self) -> bool
Get a reference to the loop filter params’s delta update.
sourcepub fn update_ref_delta(&self) -> [bool; 4]
pub fn update_ref_delta(&self) -> [bool; 4]
Get a reference to the loop filter params’s update ref delta.
sourcepub fn ref_deltas(&self) -> [i8; 4]
pub fn ref_deltas(&self) -> [i8; 4]
Get a reference to the loop filter params’s ref deltas.
sourcepub fn update_mode_delta(&self) -> [bool; 2]
pub fn update_mode_delta(&self) -> [bool; 2]
Get a reference to the loop filter params’s update mode delta.
sourcepub fn mode_deltas(&self) -> [i8; 2]
pub fn mode_deltas(&self) -> [i8; 2]
Get a reference to the loop filter params’s mode deltas.
Trait Implementations
sourceimpl Clone for LoopFilterParams
impl Clone for LoopFilterParams
sourcefn clone(&self) -> LoopFilterParams
fn clone(&self) -> LoopFilterParams
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more