Struct gstreamer_gl::gl_video_frame::GLVideoFrameRef
source · pub struct GLVideoFrameRef<T> {
frame: GstVideoFrame,
unmap: bool,
phantom: PhantomData<T>,
}
Fields§
§frame: GstVideoFrame
§unmap: bool
§phantom: PhantomData<T>
Implementations§
source§impl<'a> GLVideoFrameRef<&'a BufferRef>
impl<'a> GLVideoFrameRef<&'a BufferRef>
pub unsafe fn from_glib_borrow(frame: *const GstVideoFrame) -> Borrowed<Self>
pub unsafe fn from_glib_full(frame: GstVideoFrame) -> Self
pub fn from_buffer_ref_readable<'b>( buffer: &'a BufferRef, info: &'b VideoInfo, ) -> Result<GLVideoFrameRef<&'a BufferRef>, BoolError>
source§impl<'a> GLVideoFrameRef<&'a mut BufferRef>
impl<'a> GLVideoFrameRef<&'a mut BufferRef>
pub unsafe fn from_glib_borrow_mut(frame: *mut GstVideoFrame) -> Self
pub unsafe fn from_glib_full_mut(frame: GstVideoFrame) -> Self
pub fn from_buffer_ref_writable<'b>( buffer: &'a mut BufferRef, info: &'b VideoInfo, ) -> Result<GLVideoFrameRef<&'a mut BufferRef>, BoolError>
pub fn buffer_mut(&mut self) -> &mut BufferRef
pub fn as_mut_ptr(&mut self) -> *mut GstVideoFrame
pub fn memory_mut(&self, idx: u32) -> Result<&mut GLMemoryRef, BoolError>
Trait Implementations§
source§impl<T> Debug for GLVideoFrameRef<T>
impl<T> Debug for GLVideoFrameRef<T>
source§impl<'a> Deref for GLVideoFrameRef<&'a mut BufferRef>
impl<'a> Deref for GLVideoFrameRef<&'a mut BufferRef>
source§impl<T> Drop for GLVideoFrameRef<T>
impl<T> Drop for GLVideoFrameRef<T>
source§impl<T> IsVideoFrame for GLVideoFrameRef<T>
impl<T> IsVideoFrame for GLVideoFrameRef<T>
fn as_raw(&self) -> &GstVideoFrame
impl<T> IsGLVideoFrame for GLVideoFrameRef<T>
impl<T> Send for GLVideoFrameRef<T>
impl<T> Sync for GLVideoFrameRef<T>
Auto Trait Implementations§
impl<T> Freeze for GLVideoFrameRef<T>
impl<T> RefUnwindSafe for GLVideoFrameRef<T>where
T: RefUnwindSafe,
impl<T> Unpin for GLVideoFrameRef<T>where
T: Unpin,
impl<T> UnwindSafe for GLVideoFrameRef<T>where
T: UnwindSafe,
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<O> GLVideoFrameExt for Owhere
O: IsGLVideoFrame,
impl<O> GLVideoFrameExt for Owhere
O: IsGLVideoFrame,
fn memory(&self, idx: u32) -> Result<&GLMemoryRef, BoolError>
fn texture_id(&self, idx: u32) -> Result<u32, BoolError>
fn texture_format(&self, idx: u32) -> Result<GLFormat, BoolError>
fn texture_height(&self, idx: u32) -> Result<i32, BoolError>
fn texture_target(&self, idx: u32) -> Result<GLTextureTarget, BoolError>
fn texture_width(&self, idx: u32) -> Result<i32, BoolError>
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