pub struct PresentationCompositionSegment {
pub width: u16,
pub height: u16,
pub frame_rate: u8,
pub composition_number: u16,
pub composition_state: u8,
pub palette_update_flag: u8,
pub palette_id: u8,
pub composition_objects: Vec<CompositionObject>,
}Expand description
Presentation Composition Segment contains display parameters.
Fields§
§width: u16Video width
height: u16Video height
frame_rate: u8Frame rate (encoded value)
composition_number: u16Composition number (sequence identifier)
composition_state: u8Composition state (Normal, AcquisitionPoint, EpochStart)
palette_update_flag: u8Palette update flag (bit 7 = palette only update)
palette_id: u8Palette ID to use
composition_objects: Vec<CompositionObject>List of composition objects to render
Implementations§
Source§impl PresentationCompositionSegment
impl PresentationCompositionSegment
Sourcepub fn parse(reader: &mut BigEndianReader<'_>, _length: usize) -> Option<Self>
pub fn parse(reader: &mut BigEndianReader<'_>, _length: usize) -> Option<Self>
Parse a presentation composition segment from binary data.
Sourcepub fn get_composition_state(&self) -> Option<CompositionState>
pub fn get_composition_state(&self) -> Option<CompositionState>
Get the composition state enum.
Sourcepub fn is_epoch_start(&self) -> bool
pub fn is_epoch_start(&self) -> bool
Check if this is an epoch start (complete reset).
Sourcepub fn is_acquisition_point(&self) -> bool
pub fn is_acquisition_point(&self) -> bool
Check if this is an acquisition point (new boundary).
Sourcepub fn is_palette_update_only(&self) -> bool
pub fn is_palette_update_only(&self) -> bool
Check if this is a palette-only update.
Trait Implementations§
Source§impl Clone for PresentationCompositionSegment
impl Clone for PresentationCompositionSegment
Source§fn clone(&self) -> PresentationCompositionSegment
fn clone(&self) -> PresentationCompositionSegment
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for PresentationCompositionSegment
impl RefUnwindSafe for PresentationCompositionSegment
impl Send for PresentationCompositionSegment
impl Sync for PresentationCompositionSegment
impl Unpin for PresentationCompositionSegment
impl UnsafeUnpin for PresentationCompositionSegment
impl UnwindSafe for PresentationCompositionSegment
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