pub struct Frame<'a> {
pub pts: u64,
pub duration: u64,
pub flags: vpx_codec_frame_flags_t,
pub partition_id: i32,
/* private fields */
}Fields§
§pts: u64§duration: u64§flags: vpx_codec_frame_flags_t§partition_id: i32Implementations§
Source§impl<'a> Frame<'a>
impl<'a> Frame<'a>
pub fn data(&self) -> &'a [u8] ⓘ
pub fn is_keyframe(&self) -> bool
pub fn is_droppable(&self) -> bool
pub fn is_invisible(&self) -> bool
pub fn is_fragment(&self) -> bool
Trait Implementations§
Source§impl<'a> From<&'a vpx_codec_cx_pkt__bindgen_ty_1__bindgen_ty_1> for Frame<'a>
impl<'a> From<&'a vpx_codec_cx_pkt__bindgen_ty_1__bindgen_ty_1> for Frame<'a>
Source§fn from(v: &'a vpx_codec_cx_pkt__bindgen_ty_1__bindgen_ty_1) -> Self
fn from(v: &'a vpx_codec_cx_pkt__bindgen_ty_1__bindgen_ty_1) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl<'a> Freeze for Frame<'a>
impl<'a> RefUnwindSafe for Frame<'a>
impl<'a> Send for Frame<'a>
impl<'a> Sync for Frame<'a>
impl<'a> Unpin for Frame<'a>
impl<'a> UnsafeUnpin for Frame<'a>
impl<'a> UnwindSafe for Frame<'a>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more