Struct gstreamer_gl::GLBaseMemoryRef
source · #[repr(transparent)]pub struct GLBaseMemoryRef(_);Implementations
sourceimpl GLBaseMemoryRef
impl GLBaseMemoryRef
pub fn as_ptr(&self) -> *const GstGLBaseMemory
pub fn as_mut_ptr(&self) -> *mut GstGLBaseMemory
pub unsafe fn from_ptr<'a>(ptr: *const GstGLBaseMemory) -> &'a Self
pub unsafe fn from_mut_ptr<'a>(ptr: *mut GstGLBaseMemory) -> &'a mut Self
pub fn copy(&self) -> GLBaseMemory
pub fn upcast_ref(&self) -> &MiniObjectRef
pub fn upcast_mut(&mut self) -> &mut MiniObjectRef
pub fn ptr_eq(this: &GLBaseMemoryRef, other: &GLBaseMemoryRef) -> bool
sourceimpl GLBaseMemoryRef
impl GLBaseMemoryRef
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 GLBaseMemoryRef
impl GLBaseMemoryRef
pub unsafe fn memcpy(
&self,
dest: &mut GLBaseMemory,
offset: isize,
size: isize
) -> Result<(), BoolError>
pub fn alloc<P: IsA<GLBaseMemoryAllocator>>(
allocator: &P,
params: &GLAllocationParams
) -> Result<GLBaseMemory, BoolError>
pub fn context(&self) -> &GLContext
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 GLMemoryPBORef
impl AsMut<GLBaseMemoryRef> for GLMemoryPBORef
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<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<MemoryRef> for GLBaseMemoryRef
impl AsMut<MemoryRef> for GLBaseMemoryRef
sourceimpl AsRef<GLBaseMemoryRef> for GLBaseMemory
impl AsRef<GLBaseMemoryRef> for GLBaseMemory
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<GLBaseMemoryRef> for GLMemoryPBORef
impl AsRef<GLBaseMemoryRef> for GLMemoryPBORef
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<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<MemoryRef> for GLBaseMemoryRef
impl AsRef<MemoryRef> for GLBaseMemoryRef
sourceimpl Borrow<GLBaseMemoryRef> for GLBaseMemory
impl Borrow<GLBaseMemoryRef> for GLBaseMemory
sourcefn borrow(&self) -> &GLBaseMemoryRef
fn borrow(&self) -> &GLBaseMemoryRef
Immutably borrows from an owned value. Read more
sourceimpl Debug for GLBaseMemoryRef
impl Debug for GLBaseMemoryRef
sourceimpl Deref for GLBaseMemoryRef
impl Deref for GLBaseMemoryRef
sourceimpl DerefMut for GLBaseMemoryRef
impl DerefMut for GLBaseMemoryRef
sourceimpl<'a> FromValue<'a> for &'a GLBaseMemoryRef
impl<'a> FromValue<'a> for &'a GLBaseMemoryRef
type Checker = MemoryTypeValueTypeChecker<GLBaseMemory>
type Checker = MemoryTypeValueTypeChecker<GLBaseMemory>
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 GLBaseMemoryRef
impl GlibPtrDefault for GLBaseMemoryRef
type GlibType = *mut GstGLBaseMemory
sourceimpl StaticType for GLBaseMemoryRef
impl StaticType for GLBaseMemoryRef
sourcefn static_type() -> Type
fn static_type() -> Type
Returns the type identifier of
Self.sourceimpl ToOwned for GLBaseMemoryRef
impl ToOwned for GLBaseMemoryRef
type Owned = GLBaseMemory
type Owned = GLBaseMemory
The resulting type after obtaining ownership.
sourcefn to_owned(&self) -> GLBaseMemory
fn to_owned(&self) -> GLBaseMemory
Creates owned data from borrowed data, usually by cloning. Read more
1.63.0 · sourcefn clone_into(&self, target: &mut Self::Owned)
fn clone_into(&self, target: &mut Self::Owned)
Uses borrowed data to replace owned data, usually by cloning. Read more
impl Send for GLBaseMemoryRef
impl Sync for GLBaseMemoryRef
Auto Trait Implementations
impl RefUnwindSafe for GLBaseMemoryRef
impl Unpin for GLBaseMemoryRef
impl UnwindSafe for GLBaseMemoryRef
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.