#[repr(C)]
pub struct AVFrame {Show 51 fields
pub data: [*mut u8; 8],
pub linesize: [c_int; 8],
pub extended_data: *mut *mut u8,
pub width: c_int,
pub height: c_int,
pub nb_samples: c_int,
pub format: c_int,
pub key_frame: c_int,
pub pict_type: c_uint,
pub sample_aspect_ratio: AVRational,
pub pts: i64,
pub pkt_dts: i64,
pub time_base: AVRational,
pub coded_picture_number: c_int,
pub display_picture_number: c_int,
pub quality: c_int,
pub opaque: *mut c_void,
pub repeat_pict: c_int,
pub interlaced_frame: c_int,
pub top_field_first: c_int,
pub palette_has_changed: c_int,
pub reordered_opaque: i64,
pub sample_rate: c_int,
pub channel_layout: u64,
pub buf: [*mut AVBufferRef; 8],
pub extended_buf: *mut *mut AVBufferRef,
pub nb_extended_buf: c_int,
pub side_data: *mut *mut AVFrameSideData,
pub nb_side_data: c_int,
pub flags: c_int,
pub color_range: c_uint,
pub color_primaries: c_uint,
pub color_trc: c_uint,
pub colorspace: c_uint,
pub chroma_location: c_uint,
pub best_effort_timestamp: i64,
pub pkt_pos: i64,
pub pkt_duration: i64,
pub metadata: *mut AVDictionary,
pub decode_error_flags: c_int,
pub channels: c_int,
pub pkt_size: c_int,
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,
pub ch_layout: AVChannelLayout,
pub duration: i64,
}
Converts this type into a shared reference of the (usually inferred) input type.
Performs copy-assignment from
source
.
Read more
Returns the “default value” for a type.
Read more
Immutably borrows from an owned value.
Read more
Mutably borrows from an owned value.
Read more
Returns the argument unchanged.
Calls U::from(self)
.
That is, this conversion is whatever the implementation of
From<T> for U
chooses to do.
The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning.
Read more
Uses borrowed data to replace owned data, usually by cloning.
Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.