gstreamer_gl

Struct GLBaseMemoryRef

Source
pub struct GLBaseMemoryRef(/* private fields */);

Implementations§

Source§

impl GLBaseMemoryRef

Source

pub fn as_ptr(&self) -> *const GstGLBaseMemory

Source

pub fn as_mut_ptr(&self) -> *mut GstGLBaseMemory

Source

pub unsafe fn from_ptr<'a>(ptr: *const GstGLBaseMemory) -> &'a Self

Source

pub unsafe fn from_mut_ptr<'a>(ptr: *mut GstGLBaseMemory) -> &'a mut Self

Source

pub fn copy(&self) -> GLBaseMemory

Source

pub fn upcast_ref(&self) -> &MiniObjectRef

Source

pub fn upcast_mut(&mut self) -> &mut MiniObjectRef

Source

pub fn ptr_eq(this: &GLBaseMemoryRef, other: &GLBaseMemoryRef) -> bool

Source§

impl GLBaseMemoryRef

Source

pub fn upcast_memory_ref<M>(&self) -> &M::RefType

Source

pub fn upcast_memory_mut<M>(&mut self) -> &mut M::RefType

Source§

impl GLBaseMemoryRef

Source

pub unsafe fn memcpy( &self, dest: &mut GLBaseMemory, offset: isize, size: isize, ) -> Result<(), BoolError>

Source

pub fn alloc<P: IsA<GLBaseMemoryAllocator>>( allocator: &P, params: &GLAllocationParams, ) -> Result<GLBaseMemory, BoolError>

Source

pub fn context(&self) -> &GLContext

Methods from Deref<Target = MemoryRef>§

Source

pub fn as_ptr(&self) -> *const GstMemory

Source

pub fn as_mut_ptr(&self) -> *mut GstMemory

Source

pub fn copy(&self) -> Memory

Source

pub fn upcast_ref(&self) -> &MiniObjectRef

Source

pub fn upcast_mut(&mut self) -> &mut MiniObjectRef

Source

pub fn allocator(&self) -> Option<&Allocator>

Source

pub fn parent(&self) -> Option<&MemoryRef>

Source

pub fn maxsize(&self) -> usize

Source

pub fn align(&self) -> usize

Source

pub fn offset(&self) -> usize

Source

pub fn size(&self) -> usize

Source

pub fn flags(&self) -> MemoryFlags

Source

pub fn copy_range(&self, range: impl RangeBounds<usize>) -> Memory

Source

pub fn copy_range_maxsize(&self, range: impl RangeBounds<usize>) -> Memory

Source

pub fn is_span(&self, mem2: &MemoryRef) -> Option<usize>

Source

pub fn is_type(&self, mem_type: &str) -> bool

Source

pub fn map_readable(&self) -> Result<MemoryMap<'_, Readable>, BoolError>

Source

pub fn map_writable(&mut self) -> Result<MemoryMap<'_, Writable>, BoolError>

Source

pub fn share(&self, range: impl RangeBounds<usize>) -> Memory

Source

pub fn share_maxsize(&self, range: impl RangeBounds<usize>) -> Memory

Source

pub fn resize(&mut self, range: impl RangeBounds<usize>)

Source

pub fn resize_maxsize(&mut self, range: impl RangeBounds<usize>)

Source

pub fn dump(&self) -> Dump<'_>

Source

pub fn dump_range(&self, range: impl RangeBounds<usize>) -> Dump<'_>

Source

pub fn is_memory_type<M>(&self) -> bool

Source

pub fn downcast_memory_ref<M>(&self) -> Option<&<M as IsMiniObject>::RefType>

Source

pub fn downcast_memory_mut<M>( &mut self, ) -> Option<&mut <M as IsMiniObject>::RefType>

Trait Implementations§

Source§

impl AsMut<GLBaseMemoryRef> for GLMemoryPBORef

Source§

fn as_mut(&mut self) -> &mut GLBaseMemoryRef

Converts this type into a mutable reference of the (usually inferred) input type.
Source§

impl AsMut<GLBaseMemoryRef> for GLMemoryRef

Source§

fn as_mut(&mut self) -> &mut GLBaseMemoryRef

Converts this type into a mutable reference of the (usually inferred) input type.
Source§

impl AsMut<MemoryRef> for GLBaseMemoryRef

Source§

fn as_mut(&mut self) -> &mut MemoryRef

Converts this type into a mutable reference of the (usually inferred) input type.
Source§

impl AsRef<GLBaseMemoryRef> for GLBaseMemory

Source§

fn as_ref(&self) -> &GLBaseMemoryRef

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<GLBaseMemoryRef> for GLMemoryPBORef

Source§

fn as_ref(&self) -> &GLBaseMemoryRef

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<GLBaseMemoryRef> for GLMemoryRef

Source§

fn as_ref(&self) -> &GLBaseMemoryRef

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<MemoryRef> for GLBaseMemoryRef

Source§

fn as_ref(&self) -> &MemoryRef

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl Borrow<GLBaseMemoryRef> for GLBaseMemory

Source§

fn borrow(&self) -> &GLBaseMemoryRef

Immutably borrows from an owned value. Read more
Source§

impl Debug for GLBaseMemoryRef

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Deref for GLBaseMemoryRef

Source§

type Target = MemoryRef

The resulting type after dereferencing.
Source§

fn deref(&self) -> &Self::Target

Dereferences the value.
Source§

impl DerefMut for GLBaseMemoryRef

Source§

fn deref_mut(&mut self) -> &mut Self::Target

Mutably dereferences the value.
Source§

impl<'a> FromValue<'a> for &'a GLBaseMemoryRef

Source§

type Checker = MemoryTypeValueTypeChecker<GLBaseMemory>

Value type checker.
Source§

unsafe fn from_value(value: &'a Value) -> Self

Get the contained value from a Value. Read more
Source§

impl GlibPtrDefault for GLBaseMemoryRef

Source§

impl StaticType for GLBaseMemoryRef

Source§

fn static_type() -> Type

Returns the type identifier of Self.
Source§

impl ToOwned for GLBaseMemoryRef

Source§

type Owned = GLBaseMemory

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> GLBaseMemory

Creates owned data from borrowed data, usually by cloning. Read more
1.63.0 · Source§

fn clone_into(&self, target: &mut Self::Owned)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl Send for GLBaseMemoryRef

Source§

impl Sync for GLBaseMemoryRef

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> IntoEither for T

Source§

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 more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

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
Source§

impl<P, T> Receiver for P
where P: Deref<Target = T> + ?Sized, T: ?Sized,

Source§

type Target = T

🔬This is a nightly-only experimental API. (arbitrary_self_types)
The target type on which the method may be called.
Source§

impl<T> StaticTypeExt for T
where T: StaticType,

Source§

fn ensure_type()

Ensures that the type has been registered with the type system.
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.