pub struct VideoTrackParams<E: DemuxAdapter> { /* private fields */ }Expand description
Payload for TrackParams::Video.
Implementations§
Source§impl<E: DemuxAdapter> VideoTrackParams<E>
impl<E: DemuxAdapter> VideoTrackParams<E>
Sourcepub const fn new(
codec: E::CodecId,
width: u32,
height: u32,
pixel_format: <E::Video as VideoAdapter>::PixelFormat,
frame_rate: Option<Timebase>,
) -> Self
pub const fn new( codec: E::CodecId, width: u32, height: u32, pixel_format: <E::Video as VideoAdapter>::PixelFormat, frame_rate: Option<Timebase>, ) -> Self
Constructs a VideoTrackParams.
Sourcepub const fn pixel_format(&self) -> &<E::Video as VideoAdapter>::PixelFormat
pub const fn pixel_format(&self) -> &<E::Video as VideoAdapter>::PixelFormat
Returns the pixel format the track declares, in the backend’s vocabulary.
Sourcepub const fn frame_rate(&self) -> Option<Timebase>
pub const fn frame_rate(&self) -> Option<Timebase>
Returns the average frame rate, as a rate-shaped Timebase
(30000/1001 for 29.97 fps), or None when the container does
not say.
Trait Implementations§
Auto Trait Implementations§
impl<E> Freeze for VideoTrackParams<E>where
<E as DemuxAdapter>::CodecId: Freeze,
<<E as DemuxAdapter>::Video as VideoAdapter>::PixelFormat: Freeze,
impl<E> RefUnwindSafe for VideoTrackParams<E>where
<E as DemuxAdapter>::CodecId: RefUnwindSafe,
<<E as DemuxAdapter>::Video as VideoAdapter>::PixelFormat: RefUnwindSafe,
impl<E> Send for VideoTrackParams<E>where
<E as DemuxAdapter>::CodecId: Send,
<<E as DemuxAdapter>::Video as VideoAdapter>::PixelFormat: Send,
impl<E> Sync for VideoTrackParams<E>where
<E as DemuxAdapter>::CodecId: Sync,
<<E as DemuxAdapter>::Video as VideoAdapter>::PixelFormat: Sync,
impl<E> Unpin for VideoTrackParams<E>where
<E as DemuxAdapter>::CodecId: Unpin,
<<E as DemuxAdapter>::Video as VideoAdapter>::PixelFormat: Unpin,
impl<E> UnsafeUnpin for VideoTrackParams<E>where
<E as DemuxAdapter>::CodecId: UnsafeUnpin,
<<E as DemuxAdapter>::Video as VideoAdapter>::PixelFormat: UnsafeUnpin,
impl<E> UnwindSafe for VideoTrackParams<E>where
<E as DemuxAdapter>::CodecId: UnwindSafe,
<<E as DemuxAdapter>::Video as VideoAdapter>::PixelFormat: UnwindSafe,
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