Struct gstreamer_gl::gl_video_frame::GLVideoFrame
source · pub struct GLVideoFrame<T> { /* private fields */ }
Implementations§
source§impl<T> GLVideoFrame<T>
impl<T> GLVideoFrame<T>
pub fn into_buffer(self) -> Buffer
pub unsafe fn from_glib_full(frame: GstVideoFrame) -> Self
pub fn into_raw(self) -> GstVideoFrame
pub fn as_video_frame_gl_ref(&self) -> GLVideoFrameRef<&BufferRef>
source§impl GLVideoFrame<Readable>
impl GLVideoFrame<Readable>
source§impl GLVideoFrame<Writable>
impl GLVideoFrame<Writable>
pub fn from_buffer_writable( buffer: Buffer, info: &VideoInfo, ) -> Result<Self, Buffer>
pub fn memory_mut(&self, idx: u32) -> Result<&mut GLMemoryRef, BoolError>
pub fn buffer_mut(&mut self) -> &mut BufferRef
Trait Implementations§
source§impl<T> Debug for GLVideoFrame<T>
impl<T> Debug for GLVideoFrame<T>
source§impl<T> Drop for GLVideoFrame<T>
impl<T> Drop for GLVideoFrame<T>
source§impl<T> IsVideoFrame for GLVideoFrame<T>
impl<T> IsVideoFrame for GLVideoFrame<T>
fn as_raw(&self) -> &GstVideoFrame
impl<T> IsGLVideoFrame for GLVideoFrame<T>
impl<T> Send for GLVideoFrame<T>
impl<T> Sync for GLVideoFrame<T>
Auto Trait Implementations§
impl<T> Freeze for GLVideoFrame<T>
impl<T> RefUnwindSafe for GLVideoFrame<T>where
T: RefUnwindSafe,
impl<T> Unpin for GLVideoFrame<T>where
T: Unpin,
impl<T> UnwindSafe for GLVideoFrame<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