pub struct VideoCore { /* private fields */ }Implementations§
Source§impl VideoCore
impl VideoCore
pub fn open(path: impl AsRef<Path>) -> Result<Self>
pub fn width(&self) -> u32
pub fn height(&self) -> u32
pub fn is_eof(&self) -> bool
pub fn reset(&mut self) -> Result<()>
Sourcepub fn pump(&mut self) -> Result<()>
pub fn pump(&mut self) -> Result<()>
Feed some compressed samples into the decoder and drain all available decoded frames.
This is a pure “producer” pump: it does NOT follow wall-clock or playhead. The renderer/player should decide what to present based on PTS.
Sourcepub fn pop_decoded(&mut self) -> Option<VideoFrame>
pub fn pop_decoded(&mut self) -> Option<VideoFrame>
Pop the next decoded frame in presentation order (if any).
Sourcepub fn is_finished(&self) -> bool
pub fn is_finished(&self) -> bool
Finished means: we reached EOF, flushed, and no pending input/output remains.
Auto Trait Implementations§
impl Freeze for VideoCore
impl !RefUnwindSafe for VideoCore
impl !Send for VideoCore
impl !Sync for VideoCore
impl Unpin for VideoCore
impl !UnwindSafe for VideoCore
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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more