Struct moonfire_ffmpeg::avutil::VideoFrame
source · [−]pub struct VideoFrame { /* private fields */ }
Implementations
sourceimpl VideoFrame
impl VideoFrame
sourcepub fn empty() -> Result<Self, Error>
pub fn empty() -> Result<Self, Error>
Creates a new VideoFrame
which is empty: no allocated storage (reference-counted or
otherwise). Can be filled via DecodeContext::decode_video
.
sourcepub fn owned(dims: ImageDimensions) -> Result<Self, Error>
pub fn owned(dims: ImageDimensions) -> Result<Self, Error>
Creates a new VideoFrame
with an owned (not reference-counted) buffer of the specified
dimensions.
pub fn plane(&self, plane: usize) -> Plane<'_>
pub fn dims(&self) -> ImageDimensions
pub fn pts(&self) -> i64
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for VideoFrame
impl !Send for VideoFrame
impl !Sync for VideoFrame
impl Unpin for VideoFrame
impl UnwindSafe for VideoFrame
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more