pub struct VideoFormat {
pub width: u32,
pub height: u32,
pub time_base: Rational,
}Expand description
A complete uncompressed-video geometry/timing description.
Unlike a (width, height, time_base) tuple, this can be passed directly
from a capture source such as DxgiCaptureSource to a
downstream crate::elements::SwScaler/crate::elements::SwEncoder/
crate::elements::FileMuxer without the caller re-threading three
separate values by hand — same role crate::elements::AudioFormat
plays for uncompressed audio. Kept directly under elements rather than
under any one of those (same reasoning as crate::elements::RtspTransport’s
own placement): it crosses source/filter/sink, not owned by any single one.
Fields§
§width: u32Frame width in pixels.
height: u32Frame height in pixels.
time_base: RationalUnit used by frame presentation timestamps.
Trait Implementations§
Source§impl Clone for VideoFormat
impl Clone for VideoFormat
Source§fn clone(&self) -> VideoFormat
fn clone(&self) -> VideoFormat
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 moreimpl Copy for VideoFormat
Source§impl Debug for VideoFormat
impl Debug for VideoFormat
impl Eq for VideoFormat
Source§impl PartialEq for VideoFormat
impl PartialEq for VideoFormat
impl StructuralPartialEq for VideoFormat
Auto Trait Implementations§
impl Freeze for VideoFormat
impl RefUnwindSafe for VideoFormat
impl Send for VideoFormat
impl Sync for VideoFormat
impl Unpin for VideoFormat
impl UnsafeUnpin for VideoFormat
impl UnwindSafe for VideoFormat
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