pub struct VideoStream {
pub pix_fmt: String,
pub width: u32,
pub height: u32,
pub fps: f32,
}
Expand description
Represents metadata that is specific to video streams.
Fields§
§pix_fmt: String
Corresponds to stream -pix_fmt
parameter, e.g. rgb24
width: u32
Width in pixels
height: u32
Height in pixels
fps: f32
Framerate in frames per second
Trait Implementations§
Source§impl Clone for VideoStream
impl Clone for VideoStream
Source§fn clone(&self) -> VideoStream
fn clone(&self) -> VideoStream
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for VideoStream
impl Debug for VideoStream
Source§impl PartialEq for VideoStream
impl PartialEq for VideoStream
impl StructuralPartialEq for VideoStream
Auto Trait Implementations§
impl Freeze for VideoStream
impl RefUnwindSafe for VideoStream
impl Send for VideoStream
impl Sync for VideoStream
impl Unpin for VideoStream
impl UnwindSafe for VideoStream
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)