Struct gstreamer_video::VideoCodecFrame
source · pub struct VideoCodecFrame<'a> {
frame: *mut GstVideoCodecFrame,
element: &'a dyn HasStreamLock,
}
Fields§
§frame: *mut GstVideoCodecFrame
§element: &'a dyn HasStreamLock
Implementations§
source§impl<'a> VideoCodecFrame<'a>
impl<'a> VideoCodecFrame<'a>
pub(crate) unsafe fn new<T: HasStreamLock>( frame: *mut GstVideoCodecFrame, element: &'a T, ) -> Self
pub fn flags(&self) -> VideoCodecFrameFlags
pub fn set_flags(&mut self, flags: VideoCodecFrameFlags)
pub fn unset_flags(&mut self, flags: VideoCodecFrameFlags)
pub fn system_frame_number(&self) -> u32
pub fn decode_frame_number(&self) -> u32
pub fn presentation_frame_number(&self) -> u32
pub fn dts(&self) -> Option<ClockTime>
pub fn set_dts(&mut self, dts: impl Into<Option<ClockTime>>)
pub fn pts(&self) -> Option<ClockTime>
pub fn set_pts(&mut self, pts: impl Into<Option<ClockTime>>)
pub fn duration(&self) -> Option<ClockTime>
pub fn set_duration(&mut self, duration: impl Into<Option<ClockTime>>)
pub fn distance_from_sync(&self) -> i32
pub fn input_buffer(&self) -> Option<&BufferRef>
pub fn input_buffer_owned(&self) -> Option<Buffer>
pub fn output_buffer(&self) -> Option<&BufferRef>
pub fn output_buffer_mut(&mut self) -> Option<&mut BufferRef>
pub fn set_output_buffer(&mut self, output_buffer: Buffer)
pub fn deadline(&self) -> Option<ClockTime>
Trait Implementations§
source§impl<'a> Debug for VideoCodecFrame<'a>
impl<'a> Debug for VideoCodecFrame<'a>
source§impl<'a> Drop for VideoCodecFrame<'a>
impl<'a> Drop for VideoCodecFrame<'a>
source§impl<'a> IntoGlibPtr<*mut GstVideoCodecFrame> for VideoCodecFrame<'a>
impl<'a> IntoGlibPtr<*mut GstVideoCodecFrame> for VideoCodecFrame<'a>
source§unsafe fn into_glib_ptr(self) -> *mut GstVideoCodecFrame
unsafe fn into_glib_ptr(self) -> *mut GstVideoCodecFrame
Transfer: full.
Auto Trait Implementations§
impl<'a> Freeze for VideoCodecFrame<'a>
impl<'a> !RefUnwindSafe for VideoCodecFrame<'a>
impl<'a> !Send for VideoCodecFrame<'a>
impl<'a> !Sync for VideoCodecFrame<'a>
impl<'a> Unpin for VideoCodecFrame<'a>
impl<'a> !UnwindSafe for VideoCodecFrame<'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
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more