Struct gstreamer_allocators::DmaBufMemory
source · pub struct DmaBufMemory { /* private fields */ }
Implementations§
source§impl DmaBufMemory
impl DmaBufMemory
pub unsafe fn from_glib_ptr_borrow(ptr: &*mut GstMemory) -> &Self
pub unsafe fn from_glib_none(ptr: *const GstMemory) -> Self
pub unsafe fn from_glib_full(ptr: *const GstMemory) -> Self
pub unsafe fn from_glib_borrow(ptr: *const GstMemory) -> Borrowed<Self>
pub unsafe fn replace_ptr(&mut self, ptr: *mut GstMemory)
pub fn make_mut(&mut self) -> &mut DmaBufMemoryRef
pub fn get_mut(&mut self) -> Option<&mut DmaBufMemoryRef>
pub fn is_writable(&self) -> bool
pub fn upcast(self) -> MiniObject
source§impl DmaBufMemory
impl DmaBufMemory
pub fn downcast_memory<M: MemoryType>(self) -> Result<M, Self>where
<M as IsMiniObject>::RefType: AsRef<MemoryRef> + AsMut<MemoryRef> + AsRef<DmaBufMemoryRef> + AsMut<DmaBufMemoryRef>,
pub fn upcast_memory<M>(self) -> Mwhere
M: MemoryType + FromGlibPtrFull<*const <M as IsMiniObject>::FfiType>,
<M as IsMiniObject>::RefType: AsRef<MemoryRef> + AsMut<MemoryRef>,
Self: AsRef<M>,
Methods from Deref<Target = DmaBufMemoryRef>§
pub fn as_ptr(&self) -> *const GstMemory
pub fn as_mut_ptr(&self) -> *mut GstMemory
pub fn copy(&self) -> DmaBufMemory
pub fn upcast_ref(&self) -> &MiniObjectRef
pub fn upcast_memory_ref<M>(&self) -> &M::RefType
pub fn fd(&self) -> RawFd
Methods from Deref<Target = FdMemoryRef>§
pub fn as_ptr(&self) -> *const GstMemory
pub fn as_mut_ptr(&self) -> *mut GstMemory
pub fn copy(&self) -> FdMemory
pub fn upcast_ref(&self) -> &MiniObjectRef
pub fn upcast_mut(&mut self) -> &mut MiniObjectRef
pub fn upcast_memory_ref<M>(&self) -> &M::RefType
pub fn upcast_memory_mut<M>(&mut self) -> &mut M::RefType
pub fn fd(&self) -> RawFd
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_range(&self, range: impl RangeBounds<usize>) -> Memory
pub fn copy_range_maxsize(&self, range: impl RangeBounds<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, range: impl RangeBounds<usize>)
pub fn resize_maxsize(&mut self, range: impl RangeBounds<usize>)
pub fn dump(&self) -> Dump<'_>
pub fn dump_range(&self, range: impl RangeBounds<usize>) -> Dump<'_>
pub fn is_memory_type<M>(&self) -> bool
pub fn downcast_memory_ref<M>(&self) -> Option<&<M as IsMiniObject>::RefType>
pub fn downcast_memory_mut<M>( &mut self, ) -> Option<&mut <M as IsMiniObject>::RefType>
Trait Implementations§
source§impl AsRef<DmaBufMemoryRef> for DmaBufMemory
impl AsRef<DmaBufMemoryRef> for DmaBufMemory
source§fn as_ref(&self) -> &DmaBufMemoryRef
fn as_ref(&self) -> &DmaBufMemoryRef
Converts this type into a shared reference of the (usually inferred) input type.
source§impl AsRef<FdMemory> for DmaBufMemory
impl AsRef<FdMemory> for DmaBufMemory
source§impl AsRef<Memory> for DmaBufMemory
impl AsRef<Memory> for DmaBufMemory
source§impl Borrow<DmaBufMemoryRef> for DmaBufMemory
impl Borrow<DmaBufMemoryRef> for DmaBufMemory
source§fn borrow(&self) -> &DmaBufMemoryRef
fn borrow(&self) -> &DmaBufMemoryRef
Immutably borrows from an owned value. Read more
source§impl Clone for DmaBufMemory
impl Clone for DmaBufMemory
source§impl Debug for DmaBufMemory
impl Debug for DmaBufMemory
source§impl Deref for DmaBufMemory
impl Deref for DmaBufMemory
source§impl Drop for DmaBufMemory
impl Drop for DmaBufMemory
source§impl From<DmaBufMemory> for Value
impl From<DmaBufMemory> for Value
source§fn from(v: DmaBufMemory) -> Value
fn from(v: DmaBufMemory) -> Value
Converts to this type from the input type.
source§impl FromGlibPtrBorrow<*const GstMemory> for DmaBufMemory
impl FromGlibPtrBorrow<*const GstMemory> for DmaBufMemory
source§impl FromGlibPtrBorrow<*mut GstMemory> for DmaBufMemory
impl FromGlibPtrBorrow<*mut GstMemory> for DmaBufMemory
source§impl FromGlibPtrFull<*const GstMemory> for DmaBufMemory
impl FromGlibPtrFull<*const GstMemory> for DmaBufMemory
source§impl FromGlibPtrFull<*mut GstMemory> for DmaBufMemory
impl FromGlibPtrFull<*mut GstMemory> for DmaBufMemory
source§impl FromGlibPtrNone<*const GstMemory> for DmaBufMemory
impl FromGlibPtrNone<*const GstMemory> for DmaBufMemory
source§impl FromGlibPtrNone<*mut GstMemory> for DmaBufMemory
impl FromGlibPtrNone<*mut GstMemory> for DmaBufMemory
source§impl<'a> FromValue<'a> for &'a DmaBufMemory
impl<'a> FromValue<'a> for &'a DmaBufMemory
§type Checker = MemoryTypeValueTypeChecker<DmaBufMemory>
type Checker = MemoryTypeValueTypeChecker<DmaBufMemory>
Value type checker.
source§unsafe fn from_value(value: &'a Value) -> Self
unsafe fn from_value(value: &'a Value) -> Self
Get the contained value from a
Value
. Read moresource§impl<'a> FromValue<'a> for DmaBufMemory
impl<'a> FromValue<'a> for DmaBufMemory
§type Checker = MemoryTypeValueTypeChecker<DmaBufMemory>
type Checker = MemoryTypeValueTypeChecker<DmaBufMemory>
Value type checker.
source§unsafe fn from_value(value: &'a Value) -> Self
unsafe fn from_value(value: &'a Value) -> Self
Get the contained value from a
Value
. Read moresource§impl GlibPtrDefault for DmaBufMemory
impl GlibPtrDefault for DmaBufMemory
source§impl IntoGlibPtr<*mut GstMemory> for DmaBufMemory
impl IntoGlibPtr<*mut GstMemory> for DmaBufMemory
source§unsafe fn into_glib_ptr(self) -> *mut GstMemory
unsafe fn into_glib_ptr(self) -> *mut GstMemory
Transfer: full.
source§impl IsMiniObject for DmaBufMemory
impl IsMiniObject for DmaBufMemory
source§impl MemoryType for DmaBufMemory
impl MemoryType for DmaBufMemory
fn check_memory_type(mem: &MemoryRef) -> bool
source§impl StaticType for DmaBufMemory
impl StaticType for DmaBufMemory
source§fn static_type() -> Type
fn static_type() -> Type
Returns the type identifier of
Self
.source§impl<'a> ToGlibContainerFromSlice<'a, *const *mut GstMemory> for DmaBufMemory
impl<'a> ToGlibContainerFromSlice<'a, *const *mut GstMemory> for DmaBufMemory
type Storage = (PhantomData<&'a [DmaBufMemory]>, Option<Vec<*mut GstMemory>>)
fn to_glib_none_from_slice( t: &'a [DmaBufMemory], ) -> (*const *mut GstMemory, Self::Storage)
fn to_glib_container_from_slice( _: &'a [DmaBufMemory], ) -> (*const *mut GstMemory, Self::Storage)
fn to_glib_full_from_slice(_: &[DmaBufMemory]) -> *const *mut GstMemory
source§impl<'a> ToGlibContainerFromSlice<'a, *mut *mut GstMemory> for DmaBufMemory
impl<'a> ToGlibContainerFromSlice<'a, *mut *mut GstMemory> for DmaBufMemory
type Storage = (PhantomData<&'a [DmaBufMemory]>, Option<Vec<*mut GstMemory>>)
fn to_glib_none_from_slice( t: &'a [DmaBufMemory], ) -> (*mut *mut GstMemory, Self::Storage)
fn to_glib_container_from_slice( t: &'a [DmaBufMemory], ) -> (*mut *mut GstMemory, Self::Storage)
fn to_glib_full_from_slice(t: &[DmaBufMemory]) -> *mut *mut GstMemory
source§impl<'a> ToGlibPtr<'a, *const GstMemory> for DmaBufMemory
impl<'a> ToGlibPtr<'a, *const GstMemory> for DmaBufMemory
type Storage = PhantomData<&'a DmaBufMemory>
source§fn to_glib_container(&'a self) -> Stash<'a, P, Self>
fn to_glib_container(&'a self) -> Stash<'a, P, Self>
Transfer: container. Read more
source§impl<'a> ToGlibPtr<'a, *mut GstMemory> for DmaBufMemory
impl<'a> ToGlibPtr<'a, *mut GstMemory> for DmaBufMemory
type Storage = PhantomData<&'a DmaBufMemory>
source§fn to_glib_container(&'a self) -> Stash<'a, P, Self>
fn to_glib_container(&'a self) -> Stash<'a, P, Self>
Transfer: container. Read more
source§impl<'a> ToGlibPtrMut<'a, *mut GstMemory> for DmaBufMemory
impl<'a> ToGlibPtrMut<'a, *mut GstMemory> for DmaBufMemory
type Storage = PhantomData<&'a mut DmaBufMemory>
source§impl ToValue for DmaBufMemory
impl ToValue for DmaBufMemory
source§impl ToValueOptional for DmaBufMemory
impl ToValueOptional for DmaBufMemory
source§impl ValueType for DmaBufMemory
impl ValueType for DmaBufMemory
§type Type = DmaBufMemory
type Type = DmaBufMemory
Type to get the
Type
from. Read moreimpl Send for DmaBufMemory
impl Sync for DmaBufMemory
impl TransparentPtrType for DmaBufMemory
Auto Trait Implementations§
impl Freeze for DmaBufMemory
impl RefUnwindSafe for DmaBufMemory
impl Unpin for DmaBufMemory
impl UnwindSafe for DmaBufMemory
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<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *const GList> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *const GList> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
source§impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *const GPtrArray> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *const GPtrArray> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
source§impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *const GSList> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *const GSList> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
source§impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *mut GList> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *mut GList> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
source§impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *mut GPtrArray> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *mut GPtrArray> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
source§impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *mut GSList> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *mut GSList> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
source§impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *const GList> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *const GList> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
unsafe fn from_glib_none_as_vec(ptr: *const GList) -> Vec<T>
unsafe fn from_glib_container_as_vec(_: *const GList) -> Vec<T>
unsafe fn from_glib_full_as_vec(_: *const GList) -> Vec<T>
source§impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *const GPtrArray> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *const GPtrArray> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
unsafe fn from_glib_none_as_vec(ptr: *const GPtrArray) -> Vec<T>
unsafe fn from_glib_container_as_vec(_: *const GPtrArray) -> Vec<T>
unsafe fn from_glib_full_as_vec(_: *const GPtrArray) -> Vec<T>
source§impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *const GSList> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *const GSList> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
unsafe fn from_glib_none_as_vec(ptr: *const GSList) -> Vec<T>
unsafe fn from_glib_container_as_vec(_: *const GSList) -> Vec<T>
unsafe fn from_glib_full_as_vec(_: *const GSList) -> Vec<T>
source§impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *mut GList> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *mut GList> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
unsafe fn from_glib_none_as_vec(ptr: *mut GList) -> Vec<T>
unsafe fn from_glib_container_as_vec(ptr: *mut GList) -> Vec<T>
unsafe fn from_glib_full_as_vec(ptr: *mut GList) -> Vec<T>
source§impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *mut GPtrArray> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *mut GPtrArray> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
unsafe fn from_glib_none_as_vec(ptr: *mut GPtrArray) -> Vec<T>
unsafe fn from_glib_container_as_vec(ptr: *mut GPtrArray) -> Vec<T>
unsafe fn from_glib_full_as_vec(ptr: *mut GPtrArray) -> Vec<T>
source§impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *mut GSList> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *mut GSList> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
unsafe fn from_glib_none_as_vec(ptr: *mut GSList) -> Vec<T>
unsafe fn from_glib_container_as_vec(ptr: *mut GSList) -> Vec<T>
unsafe fn from_glib_full_as_vec(ptr: *mut GSList) -> Vec<T>
source§impl<T> IntoClosureReturnValue for T
impl<T> IntoClosureReturnValue for T
fn into_closure_return_value(self) -> Option<Value>
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 moresource§impl<T> StaticTypeExt for Twhere
T: StaticType,
impl<T> StaticTypeExt for Twhere
T: StaticType,
source§fn ensure_type()
fn ensure_type()
Ensures that the type has been registered with the type system.
source§impl<T> ToSendValue for T
impl<T> ToSendValue for T
source§fn to_send_value(&self) -> SendValue
fn to_send_value(&self) -> SendValue
Returns a
SendValue
clone of self
.