pub struct PgsPcsSegment {
pub header: PgsSegmentHeader,
pub width: u16,
pub height: u16,
pub frame_rate: u8,
pub composition_number: u16,
pub composition_state: PgsPcsCompositionState,
pub palette_update_flag: u8,
pub palette_id: u8,
pub number_of_composition_objects: u8,
pub composition_objects: Vec<PgsPcsSegmentCompositionObjects>,
}
Fields§
§header: PgsSegmentHeader
§width: u16
§height: u16
§frame_rate: u8
§composition_number: u16
§composition_state: PgsPcsCompositionState
§palette_update_flag: u8
§palette_id: u8
§number_of_composition_objects: u8
§composition_objects: Vec<PgsPcsSegmentCompositionObjects>
Implementations§
Source§impl PgsPcsSegment
Struct representing a Presentation Composition Segment (PCS) in a PGS file.
The PCS defines how individual graphic objects (subtitles, etc.) are displayed on the screen, their position, and composition state.
impl PgsPcsSegment
Struct representing a Presentation Composition Segment (PCS) in a PGS file. The PCS defines how individual graphic objects (subtitles, etc.) are displayed on the screen, their position, and composition state.
Sourcepub fn from_data(
header: PgsSegmentHeader,
data: &[u8],
) -> Result<Rc<PgsPcsSegment>>
pub fn from_data( header: PgsSegmentHeader, data: &[u8], ) -> Result<Rc<PgsPcsSegment>>
Trait Implementations§
Source§impl Debug for PgsPcsSegment
impl Debug for PgsPcsSegment
Auto Trait Implementations§
impl Freeze for PgsPcsSegment
impl RefUnwindSafe for PgsPcsSegment
impl Send for PgsPcsSegment
impl Sync for PgsPcsSegment
impl Unpin for PgsPcsSegment
impl UnwindSafe for PgsPcsSegment
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