pub struct VideoStreamInfo {
pub stream_index: usize,
pub codec: VideoCodec,
pub width: u32,
pub height: u32,
pub pixel_format: PixelFormat,
pub time_base: Rational,
pub avg_frame_rate: Rational,
pub frame_count: Option<u64>,
pub duration_ts: Option<i64>,
}Fields§
§stream_index: usize§codec: VideoCodec§width: u32§height: u32§pixel_format: PixelFormat§time_base: Rational§avg_frame_rate: Rational§frame_count: Option<u64>§duration_ts: Option<i64>Trait Implementations§
Source§impl Clone for VideoStreamInfo
impl Clone for VideoStreamInfo
Source§fn clone(&self) -> VideoStreamInfo
fn clone(&self) -> VideoStreamInfo
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 moreSource§impl Debug for VideoStreamInfo
impl Debug for VideoStreamInfo
Source§impl PartialEq for VideoStreamInfo
impl PartialEq for VideoStreamInfo
Source§fn eq(&self, other: &VideoStreamInfo) -> bool
fn eq(&self, other: &VideoStreamInfo) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for VideoStreamInfo
Auto Trait Implementations§
impl Freeze for VideoStreamInfo
impl RefUnwindSafe for VideoStreamInfo
impl Send for VideoStreamInfo
impl Sync for VideoStreamInfo
impl Unpin for VideoStreamInfo
impl UnsafeUnpin for VideoStreamInfo
impl UnwindSafe for VideoStreamInfo
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