pub struct VideoContainerInfo { /* private fields */ }Implementations§
Source§impl VideoContainerInfo
impl VideoContainerInfo
Sourcepub const fn kind(self) -> VideoContainerKind
pub const fn kind(self) -> VideoContainerKind
Return the container kind.
Sourcepub const fn codec(self) -> VideoCodec
pub const fn codec(self) -> VideoCodec
Return the selected video codec.
Sourcepub const fn time_base(self) -> VideoTimeBase
pub const fn time_base(self) -> VideoTimeBase
Return the selected track time base.
Sourcepub const fn duration(self) -> u64
pub const fn duration(self) -> u64
Return the track duration in time-base ticks, or zero when unknown.
Sourcepub const fn sample_count(self) -> u32
pub const fn sample_count(self) -> u32
Return the selected track sample count, or zero for streaming MPEG-TS.
Sourcepub const fn track_count(self) -> u32
pub const fn track_count(self) -> u32
Return the number of tracks declared by the movie box.
Sourcepub const fn decode_profile(self) -> Option<VideoDecodeProfile>
pub const fn decode_profile(self) -> Option<VideoDecodeProfile>
Return the exact Vulkan-queryable stream profile when representable.
Codec profiles outside the current Vulkan standard-video binding return
None; this does not mean the container or bitstream is invalid.
Sourcepub fn frame_rate(self) -> f64
pub fn frame_rate(self) -> f64
Return the average frame rate derived from samples and track duration.
Trait Implementations§
Source§impl Clone for VideoContainerInfo
impl Clone for VideoContainerInfo
impl Copy for VideoContainerInfo
Source§impl Debug for VideoContainerInfo
impl Debug for VideoContainerInfo
impl Eq for VideoContainerInfo
Source§impl PartialEq for VideoContainerInfo
impl PartialEq for VideoContainerInfo
impl StructuralPartialEq for VideoContainerInfo
Auto Trait Implementations§
impl Forget for VideoContainerInfo
impl Freeze for VideoContainerInfo
impl Move for VideoContainerInfo
impl RefUnwindSafe for VideoContainerInfo
impl Send for VideoContainerInfo
impl Sync for VideoContainerInfo
impl Unpin for VideoContainerInfo
impl UnsafeUnpin for VideoContainerInfo
impl UnwindSafe for VideoContainerInfo
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