Struct libav_ng::AVFrame

source ·
#[repr(C)]
pub struct AVFrame {
Show 54 fields pub data: [*mut u8; 8], pub linesize: [i32; 8], pub extended_data: *mut *mut u8, pub width: i32, pub height: i32, pub nb_samples: i32, pub format: i32, pub key_frame: i32, pub pict_type: u32, pub sample_aspect_ratio: AVRational, pub pts: i64, pub pkt_pts: i64, pub pkt_dts: i64, pub coded_picture_number: i32, pub display_picture_number: i32, pub quality: i32, pub opaque: *mut c_void, pub error: [u64; 8], pub repeat_pict: i32, pub interlaced_frame: i32, pub top_field_first: i32, pub palette_has_changed: i32, pub reordered_opaque: i64, pub sample_rate: i32, pub channel_layout: u64, pub buf: [*mut AVBufferRef; 8], pub extended_buf: *mut *mut AVBufferRef, pub nb_extended_buf: i32, pub side_data: *mut *mut AVFrameSideData, pub nb_side_data: i32, pub flags: i32, pub color_range: u32, pub color_primaries: u32, pub color_trc: u32, pub colorspace: u32, pub chroma_location: u32, pub best_effort_timestamp: i64, pub pkt_pos: i64, pub pkt_duration: i64, pub metadata: *mut AVDictionary, pub decode_error_flags: i32, pub channels: i32, pub pkt_size: i32, pub qscale_table: *mut i8, pub qstride: i32, pub qscale_type: i32, pub qp_table_buf: *mut AVBufferRef, pub hw_frames_ctx: *mut AVBufferRef, pub opaque_ref: *mut AVBufferRef, pub crop_top: usize, pub crop_bottom: usize, pub crop_left: usize, pub crop_right: usize, pub private_ref: *mut AVBufferRef,
}

Fields§

§data: [*mut u8; 8]§linesize: [i32; 8]§extended_data: *mut *mut u8§width: i32§height: i32§nb_samples: i32§format: i32§key_frame: i32§pict_type: u32§sample_aspect_ratio: AVRational§pts: i64§pkt_pts: i64§pkt_dts: i64§coded_picture_number: i32§display_picture_number: i32§quality: i32§opaque: *mut c_void§error: [u64; 8]§repeat_pict: i32§interlaced_frame: i32§top_field_first: i32§palette_has_changed: i32§reordered_opaque: i64§sample_rate: i32§channel_layout: u64§buf: [*mut AVBufferRef; 8]§extended_buf: *mut *mut AVBufferRef§nb_extended_buf: i32§side_data: *mut *mut AVFrameSideData§nb_side_data: i32§flags: i32§color_range: u32§color_primaries: u32§color_trc: u32§colorspace: u32§chroma_location: u32§best_effort_timestamp: i64§pkt_pos: i64§pkt_duration: i64§metadata: *mut AVDictionary§decode_error_flags: i32§channels: i32§pkt_size: i32§qscale_table: *mut i8§qstride: i32§qscale_type: i32§qp_table_buf: *mut AVBufferRef§hw_frames_ctx: *mut AVBufferRef§opaque_ref: *mut AVBufferRef§crop_top: usize§crop_bottom: usize§crop_left: usize§crop_right: usize§private_ref: *mut AVBufferRef

Trait Implementations§

source§

impl Clone for AVFrame

source§

fn clone(&self) -> AVFrame

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for AVFrame

source§

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

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

impl Copy for AVFrame

Auto Trait Implementations§

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> CloneToUninit for T
where T: Clone,

source§

default unsafe fn clone_to_uninit(&self, dst: *mut T)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
source§

impl<T> CloneToUninit for T
where T: Copy,

source§

unsafe fn clone_to_uninit(&self, dst: *mut T)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. 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> ToOwned for T
where T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

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

§

type Error = Infallible

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

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

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

§

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.