pub struct Segmentation {
pub lvl_lookup: [[u8; 2]; 4],
pub luma_ac_quant_scale: i16,
pub luma_dc_quant_scale: i16,
pub chroma_ac_quant_scale: i16,
pub chroma_dc_quant_scale: i16,
pub reference_frame_enabled: bool,
pub reference_frame: i16,
pub reference_skip_enabled: bool,
}
Fields§
§lvl_lookup: [[u8; 2]; 4]
Loop filter level
luma_ac_quant_scale: i16
AC quant scale for luma component
luma_dc_quant_scale: i16
DC quant scale for luma component
chroma_ac_quant_scale: i16
AC quant scale for chroma component
chroma_dc_quant_scale: i16
DC quant scale for chroma component
reference_frame_enabled: bool
Whether the alternate reference frame segment feature is enabled (SEG_LVL_REF_FRAME)
reference_frame: i16
The feature data for the reference frame featire
reference_skip_enabled: bool
Whether the skip segment feature is enabled (SEG_LVL_SKIP)
Implementations§
Source§impl Segmentation
impl Segmentation
Sourcepub fn update_segmentation(segmentation: &mut [Segmentation; 8], hdr: &Header)
pub fn update_segmentation(segmentation: &mut [Segmentation; 8], hdr: &Header)
Update the state of the segmentation parameters after seeing a frame
Trait Implementations§
Source§impl Clone for Segmentation
impl Clone for Segmentation
Source§fn clone(&self) -> Segmentation
fn clone(&self) -> Segmentation
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for Segmentation
impl Debug for Segmentation
Source§impl Default for Segmentation
impl Default for Segmentation
Source§fn default() -> Segmentation
fn default() -> Segmentation
Returns the “default value” for a type. Read more
Source§impl PartialEq for Segmentation
impl PartialEq for Segmentation
impl Eq for Segmentation
impl StructuralPartialEq for Segmentation
Auto Trait Implementations§
impl Freeze for Segmentation
impl RefUnwindSafe for Segmentation
impl Send for Segmentation
impl Sync for Segmentation
impl Unpin for Segmentation
impl UnwindSafe for Segmentation
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more