Skip to main content

Frame

Struct Frame 

Source
pub struct Frame { /* private fields */ }

Implementations§

Source§

impl Frame

Source

pub fn new() -> Result<Self, AvError>

§Errors

Stub; never executed on docs.rs.

Source

pub fn width(&self) -> c_int

Source

pub fn set_width(&mut self, _width: c_int)

Source

pub fn height(&self) -> c_int

Source

pub fn set_height(&mut self, _height: c_int)

Source

pub fn format(&self) -> c_int

Source

pub fn set_format(&mut self, _format: c_int)

Source

pub fn set_pict_type(&mut self, _pict_type: AVPictureType)

Source

pub fn pict_type(&self) -> AVPictureType

Source

pub fn pts(&self) -> i64

Source

pub fn set_pts(&mut self, _pts: i64)

Source

pub fn pkt_dts(&self) -> i64

Source

pub fn set_pkt_dts(&mut self, _pkt_dts: i64)

Source

pub fn duration(&self) -> i64

Source

pub fn set_duration(&mut self, _duration: i64)

Source

pub fn time_base(&self) -> AVRational

Source

pub fn set_time_base(&mut self, _time_base: AVRational)

Source

pub fn nb_samples(&self) -> c_int

Source

pub fn set_nb_samples(&mut self, _nb_samples: c_int)

Source

pub fn sample_rate(&self) -> c_int

Source

pub fn set_sample_rate(&mut self, _sample_rate: c_int)

Source

pub fn set_ch_layout( &mut self, _layout: &AVChannelLayout, ) -> Result<(), AvError>

§Errors

Stub; never executed on docs.rs.

Source

pub fn channels(&self) -> c_int

Source

pub fn video_plane(&self, _i: usize) -> Option<&[u8]>

Source

pub fn video_plane_mut(&mut self, _i: usize) -> Option<&mut [u8]>

Source

pub fn linesize(&self, _i: usize) -> c_int

Source

pub unsafe fn copy_plane_rows( &self, _i: usize, _dst: &mut [u8], _dst_stride: usize, _rows: usize, _row_bytes: usize, ) -> Option<()>

§Safety

Docs.rs stub; never called.

Source

pub fn audio_plane(&self, _i: usize) -> Option<&[u8]>

Source

pub fn audio_plane_mut(&mut self, _i: usize) -> Option<&mut [u8]>

Source

pub fn unref(&mut self)

Source

pub fn get_buffer(&mut self, _align: c_int) -> Result<(), AvError>

§Errors

Stub; never executed on docs.rs.

Source

pub fn move_ref(&mut self, _src: &mut Frame)

Source

pub fn hwframe_transfer_data( &mut self, _src: &Frame, _flags: c_int, ) -> Result<(), AvError>

§Errors

Stub; never executed on docs.rs.

Source

pub fn try_clone(&self) -> Result<Self, AvError>

§Errors

Stub; never executed on docs.rs.

Trait Implementations§

Source§

impl Debug for Frame

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Drop for Frame

Source§

fn drop(&mut self)

Executes the destructor for this type. Read more
Source§

fn pin_drop(self: Pin<&mut Self>)

🔬This is a nightly-only experimental API. (pin_ergonomics)
Execute the destructor for this type, but different to Drop::drop, it requires self to be pinned. Read more
Source§

impl Send for Frame

Auto Trait Implementations§

§

impl !Sync for Frame

§

impl Freeze for Frame

§

impl RefUnwindSafe for Frame

§

impl Unpin for Frame

§

impl UnsafeUnpin for Frame

§

impl UnwindSafe for Frame

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.