pub struct Video { /* private fields */ }Expand description
Decoded RGB8 video and portable sampling policy.
Implementations§
Source§impl Video
impl Video
Sourcepub fn new(
frames: Vec<RgbImage>,
source_fps: Option<f64>,
sampling: VideoSampling,
) -> Result<Self, MediaRequestError>
pub fn new( frames: Vec<RgbImage>, source_fps: Option<f64>, sampling: VideoSampling, ) -> Result<Self, MediaRequestError>
Validates and owns decoded video frames.
Sourcepub const fn source_fps(&self) -> Option<f64>
pub const fn source_fps(&self) -> Option<f64>
Source frame rate when known.
Sourcepub const fn sampling(&self) -> VideoSampling
pub const fn sampling(&self) -> VideoSampling
Requested frame-selection policy.
Trait Implementations§
impl StructuralPartialEq for Video
Auto Trait Implementations§
impl Freeze for Video
impl RefUnwindSafe for Video
impl Send for Video
impl Sync for Video
impl Unpin for Video
impl UnsafeUnpin for Video
impl UnwindSafe for Video
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