[−][src]Struct ac_ffmpeg::codec::video::frame::VideoFrame
A video frame with immutable data.
Implementations
impl VideoFrame[src]
pub fn pixel_format(&self) -> PixelFormat[src]
Get frame pixel format.
pub fn width(&self) -> usize[src]
Get frame width.
pub fn height(&self) -> usize[src]
Get frame height.
pub fn planes(&self) -> Planes<'_>[src]
Get picture planes.
pub fn time_base(&self) -> TimeBase[src]
Get frame time base.
pub fn with_time_base(self, time_base: TimeBase) -> Self[src]
Set frame time base. (This will rescale the current timestamp into a given time base.)
pub fn pts(&self) -> Timestamp[src]
Get presentation timestamp.
pub fn with_pts(self, pts: Timestamp) -> Self[src]
Set presentation timestamp.
Trait Implementations
impl Clone for VideoFrame[src]
fn clone(&self) -> Self[src]
fn clone_from(&mut self, source: &Self)1.0.0[src]
impl Drop for VideoFrame[src]
impl<'a> From<&'a VideoFrame> for Planes<'a>[src]
fn from(frame: &'a VideoFrame) -> Self[src]
impl Send for VideoFrame[src]
impl Sync for VideoFrame[src]
Auto Trait Implementations
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T[src]
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone, [src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T[src]
fn clone_into(&self, target: &mut T)[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,