pub struct PgsWdsSegment {
pub header: PgsSegmentHeader,
pub number_of_windows: u8,
pub windows: Vec<PgsWdsSegmentWindowDefinition>,
}
Expand description
Represents a Window Definition Segment (WDS) in a Presentation Graphic Stream (PGS).
The PgsWdsSegment
structure contains information about multiple windows used for displaying subtitles.
Each window is defined by its ID, position, and size.
Fields§
§header: PgsSegmentHeader
§number_of_windows: u8
§windows: Vec<PgsWdsSegmentWindowDefinition>
Implementations§
Source§impl PgsWdsSegment
impl PgsWdsSegment
Sourcepub fn from_data(
header: PgsSegmentHeader,
data: &[u8],
) -> Result<Rc<PgsWdsSegment>>
pub fn from_data( header: PgsSegmentHeader, data: &[u8], ) -> Result<Rc<PgsWdsSegment>>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for PgsWdsSegment
impl RefUnwindSafe for PgsWdsSegment
impl Send for PgsWdsSegment
impl Sync for PgsWdsSegment
impl Unpin for PgsWdsSegment
impl UnwindSafe for PgsWdsSegment
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