Struct gstreamer_gl::GLMemoryRef
source · #[repr(transparent)]pub struct GLMemoryRef(_);Implementations
sourceimpl GLMemoryRef
impl GLMemoryRef
pub fn as_ptr(&self) -> *const GstGLMemory
pub fn as_mut_ptr(&self) -> *mut GstGLMemory
pub unsafe fn from_ptr<'a>(ptr: *const GstGLMemory) -> &'a Self
pub unsafe fn from_mut_ptr<'a>(ptr: *mut GstGLMemory) -> &'a mut Self
pub fn copy(&self) -> GLMemory
pub fn upcast_ref(&self) -> &MiniObjectRef
pub fn upcast_mut(&mut self) -> &mut MiniObjectRef
pub fn ptr_eq(this: &GLMemoryRef, other: &GLMemoryRef) -> bool
sourceimpl GLMemoryRef
impl GLMemoryRef
pub fn upcast_memory_ref<M>(&self) -> &M::RefTypewhere
M: MemoryType,
<M as IsMiniObject>::RefType: AsRef<MemoryRef> + AsMut<MemoryRef>,
Self: AsRef<M::RefType> + AsMut<M::RefType>,
pub fn upcast_memory_mut<M>(&mut self) -> &mut M::RefTypewhere
M: MemoryType,
<M as IsMiniObject>::RefType: AsRef<MemoryRef> + AsMut<MemoryRef>,
Self: AsRef<M::RefType> + AsMut<M::RefType>,
sourceimpl GLMemoryRef
impl GLMemoryRef
sourcepub unsafe fn copy_into(
&self,
tex_id: u32,
target: GLTextureTarget,
tex_format: GLFormat,
width: i32,
height: i32
) -> Result<(), LoggableError>
pub unsafe fn copy_into(
&self,
tex_id: u32,
target: GLTextureTarget,
tex_format: GLFormat,
width: i32,
height: i32
) -> Result<(), LoggableError>
Safety
tex_id is not validated to be a valid GL texture, which may lead to undefined behaviour.
sourcepub unsafe fn copy_teximage(
&self,
tex_id: u32,
out_target: GLTextureTarget,
out_tex_format: GLFormat,
out_width: i32,
out_height: i32
) -> Result<(), LoggableError>
pub unsafe fn copy_teximage(
&self,
tex_id: u32,
out_target: GLTextureTarget,
out_tex_format: GLFormat,
out_width: i32,
out_height: i32
) -> Result<(), LoggableError>
Safety
tex_id is not validated to be a valid GL texture, which may lead to undefined behaviour.
pub fn texture_format(&self) -> GLFormat
pub fn texture_height(&self) -> i32
pub fn texture_id(&self) -> u32
pub fn texture_target(&self) -> GLTextureTarget
pub fn texture_width(&self) -> i32
Methods from Deref<Target = GLBaseMemoryRef>
pub fn as_ptr(&self) -> *const GstGLBaseMemory
pub fn as_mut_ptr(&self) -> *mut GstGLBaseMemory
pub fn copy(&self) -> GLBaseMemory
pub fn upcast_ref(&self) -> &MiniObjectRef
pub fn upcast_mut(&mut self) -> &mut MiniObjectRef
pub fn upcast_memory_ref<M>(&self) -> &M::RefTypewhere
M: MemoryType,
<M as IsMiniObject>::RefType: AsRef<MemoryRef> + AsMut<MemoryRef>,
Self: AsRef<M::RefType> + AsMut<M::RefType>,
pub fn upcast_memory_mut<M>(&mut self) -> &mut M::RefTypewhere
M: MemoryType,
<M as IsMiniObject>::RefType: AsRef<MemoryRef> + AsMut<MemoryRef>,
Self: AsRef<M::RefType> + AsMut<M::RefType>,
Methods from Deref<Target = MemoryRef>
pub fn as_ptr(&self) -> *const GstMemory
pub fn as_mut_ptr(&self) -> *mut GstMemory
pub fn copy(&self) -> Memory
pub fn upcast_ref(&self) -> &MiniObjectRef
pub fn upcast_mut(&mut self) -> &mut MiniObjectRef
pub fn allocator(&self) -> Option<Allocator>
pub fn parent(&self) -> Option<&MemoryRef>
pub fn maxsize(&self) -> usize
pub fn align(&self) -> usize
pub fn offset(&self) -> usize
pub fn size(&self) -> usize
pub fn flags(&self) -> MemoryFlags
pub fn copy_part(&self, offset: isize, size: Option<usize>) -> Memory
pub fn is_span(&self, mem2: &MemoryRef) -> Option<usize>
pub fn is_type(&self, mem_type: &str) -> bool
pub fn map_readable(&self) -> Result<MemoryMap<'_, Readable>, BoolError>
pub fn map_writable(&mut self) -> Result<MemoryMap<'_, Writable>, BoolError>
pub fn resize(&mut self, offset: isize, size: usize)
pub fn dump(&self, size: Option<usize>) -> Dump<'_>
pub fn is_memory_type<M>(&self) -> boolwhere
M: MemoryType,
<M as IsMiniObject>::RefType: AsRef<MemoryRef> + AsMut<MemoryRef>,
pub fn downcast_memory_ref<M>(&self) -> Option<&<M as IsMiniObject>::RefType>where
M: MemoryType,
<M as IsMiniObject>::RefType: AsRef<MemoryRef> + AsMut<MemoryRef>,
pub fn downcast_memory_mut<M>(
&mut self
) -> Option<&mut <M as IsMiniObject>::RefType>where
M: MemoryType,
<M as IsMiniObject>::RefType: AsRef<MemoryRef> + AsMut<MemoryRef>,
Trait Implementations
sourceimpl AsMut<GLBaseMemoryRef> for GLMemoryRef
impl AsMut<GLBaseMemoryRef> for GLMemoryRef
sourcefn as_mut(&mut self) -> &mut GLBaseMemoryRef
fn as_mut(&mut self) -> &mut GLBaseMemoryRef
Converts this type into a mutable reference of the (usually inferred) input type.
sourceimpl AsMut<GLMemoryRef> for GLMemoryPBORef
impl AsMut<GLMemoryRef> for GLMemoryPBORef
sourcefn as_mut(&mut self) -> &mut GLMemoryRef
fn as_mut(&mut self) -> &mut GLMemoryRef
Converts this type into a mutable reference of the (usually inferred) input type.
sourceimpl AsMut<MemoryRef> for GLMemoryRef
impl AsMut<MemoryRef> for GLMemoryRef
sourceimpl AsRef<GLBaseMemoryRef> for GLMemoryRef
impl AsRef<GLBaseMemoryRef> for GLMemoryRef
sourcefn as_ref(&self) -> &GLBaseMemoryRef
fn as_ref(&self) -> &GLBaseMemoryRef
Converts this type into a shared reference of the (usually inferred) input type.
sourceimpl AsRef<GLMemoryRef> for GLMemory
impl AsRef<GLMemoryRef> for GLMemory
sourcefn as_ref(&self) -> &GLMemoryRef
fn as_ref(&self) -> &GLMemoryRef
Converts this type into a shared reference of the (usually inferred) input type.
sourceimpl AsRef<GLMemoryRef> for GLMemoryPBORef
impl AsRef<GLMemoryRef> for GLMemoryPBORef
sourcefn as_ref(&self) -> &GLMemoryRef
fn as_ref(&self) -> &GLMemoryRef
Converts this type into a shared reference of the (usually inferred) input type.
sourceimpl AsRef<MemoryRef> for GLMemoryRef
impl AsRef<MemoryRef> for GLMemoryRef
sourceimpl Borrow<GLMemoryRef> for GLMemory
impl Borrow<GLMemoryRef> for GLMemory
sourcefn borrow(&self) -> &GLMemoryRef
fn borrow(&self) -> &GLMemoryRef
Immutably borrows from an owned value. Read more
sourceimpl Debug for GLMemoryRef
impl Debug for GLMemoryRef
sourceimpl Deref for GLMemoryRef
impl Deref for GLMemoryRef
type Target = GLBaseMemoryRef
type Target = GLBaseMemoryRef
The resulting type after dereferencing.
sourceimpl DerefMut for GLMemoryRef
impl DerefMut for GLMemoryRef
sourceimpl<'a> FromValue<'a> for &'a GLMemoryRef
impl<'a> FromValue<'a> for &'a GLMemoryRef
type Checker = MemoryTypeValueTypeChecker<GLMemory>
type Checker = MemoryTypeValueTypeChecker<GLMemory>
Value type checker.
sourceunsafe fn from_value(value: &'a Value) -> Self
unsafe fn from_value(value: &'a Value) -> Self
Get the contained value from a
Value. Read moresourceimpl GlibPtrDefault for GLMemoryRef
impl GlibPtrDefault for GLMemoryRef
type GlibType = *mut GstGLMemory
sourceimpl StaticType for GLMemoryRef
impl StaticType for GLMemoryRef
sourcefn static_type() -> Type
fn static_type() -> Type
Returns the type identifier of
Self.sourceimpl ToOwned for GLMemoryRef
impl ToOwned for GLMemoryRef
impl Send for GLMemoryRef
impl Sync for GLMemoryRef
Auto Trait Implementations
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> StaticTypeExt for Twhere
T: StaticType,
impl<T> StaticTypeExt for Twhere
T: StaticType,
sourcefn ensure_type()
fn ensure_type()
Ensures that the type has been registered with the type system.