Struct gstreamer_gl::GLMemoryPBO
source · #[repr(transparent)]pub struct GLMemoryPBO { /* private fields */ }Implementations
sourceimpl GLMemoryPBO
impl GLMemoryPBO
pub unsafe fn from_glib_none(ptr: *const GstGLMemoryPBO) -> Self
pub unsafe fn from_glib_full(ptr: *const GstGLMemoryPBO) -> Self
pub unsafe fn from_glib_borrow(ptr: *const GstGLMemoryPBO) -> Borrowed<Self>
pub unsafe fn replace_ptr(&mut self, ptr: *mut GstGLMemoryPBO)
pub fn make_mut(&mut self) -> &mut GLMemoryPBORef
pub fn get_mut(&mut self) -> Option<&mut GLMemoryPBORef>
pub fn is_writable(&self) -> bool
pub fn upcast(self) -> MiniObject
sourceimpl GLMemoryPBO
impl GLMemoryPBO
pub fn downcast_memory<M: MemoryType>(self) -> Result<M, Self>where
<M as IsMiniObject>::RefType: AsRef<MemoryRef> + AsMut<MemoryRef> + AsRef<GLMemoryPBORef> + AsMut<GLMemoryPBORef>,
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 = GLMemoryPBORef>
pub fn as_ptr(&self) -> *const GstGLMemoryPBO
pub fn as_mut_ptr(&self) -> *mut GstGLMemoryPBO
pub fn copy(&self) -> GLMemoryPBO
pub fn upcast_ref(&self) -> &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>,
Methods from Deref<Target = GLMemoryRef>
pub fn as_ptr(&self) -> *const GstGLMemory
pub fn as_mut_ptr(&self) -> *mut GstGLMemory
pub fn copy(&self) -> GLMemory
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>,
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 AsRef<GLBaseMemory> for GLMemoryPBO
impl AsRef<GLBaseMemory> for GLMemoryPBO
sourcefn as_ref(&self) -> &GLBaseMemory
fn as_ref(&self) -> &GLBaseMemory
Converts this type into a shared reference of the (usually inferred) input type.
sourceimpl AsRef<GLMemory> for GLMemoryPBO
impl AsRef<GLMemory> for GLMemoryPBO
sourceimpl AsRef<GLMemoryPBORef> for GLMemoryPBO
impl AsRef<GLMemoryPBORef> for GLMemoryPBO
sourcefn as_ref(&self) -> &GLMemoryPBORef
fn as_ref(&self) -> &GLMemoryPBORef
Converts this type into a shared reference of the (usually inferred) input type.
sourceimpl AsRef<Memory> for GLMemoryPBO
impl AsRef<Memory> for GLMemoryPBO
sourceimpl Borrow<GLMemoryPBORef> for GLMemoryPBO
impl Borrow<GLMemoryPBORef> for GLMemoryPBO
sourcefn borrow(&self) -> &GLMemoryPBORef
fn borrow(&self) -> &GLMemoryPBORef
Immutably borrows from an owned value. Read more
sourceimpl Clone for GLMemoryPBO
impl Clone for GLMemoryPBO
sourceimpl Debug for GLMemoryPBO
impl Debug for GLMemoryPBO
sourceimpl Deref for GLMemoryPBO
impl Deref for GLMemoryPBO
type Target = GLMemoryPBORef
type Target = GLMemoryPBORef
The resulting type after dereferencing.
sourceimpl Drop for GLMemoryPBO
impl Drop for GLMemoryPBO
sourceimpl FromGlibContainerAsVec<*mut GstGLMemoryPBO, *const *mut GstGLMemoryPBO> for GLMemoryPBO
impl FromGlibContainerAsVec<*mut GstGLMemoryPBO, *const *mut GstGLMemoryPBO> for GLMemoryPBO
unsafe fn from_glib_none_num_as_vec(
ptr: *const *mut GstGLMemoryPBO,
num: usize
) -> Vec<Self>ⓘ
unsafe fn from_glib_container_num_as_vec(
_: *const *mut GstGLMemoryPBO,
_: usize
) -> Vec<Self>ⓘ
unsafe fn from_glib_full_num_as_vec(
_: *const *mut GstGLMemoryPBO,
_: usize
) -> Vec<Self>ⓘ
sourceimpl FromGlibContainerAsVec<*mut GstGLMemoryPBO, *mut *mut GstGLMemoryPBO> for GLMemoryPBO
impl FromGlibContainerAsVec<*mut GstGLMemoryPBO, *mut *mut GstGLMemoryPBO> for GLMemoryPBO
unsafe fn from_glib_none_num_as_vec(
ptr: *mut *mut GstGLMemoryPBO,
num: usize
) -> Vec<Self>ⓘ
unsafe fn from_glib_container_num_as_vec(
ptr: *mut *mut GstGLMemoryPBO,
num: usize
) -> Vec<Self>ⓘ
unsafe fn from_glib_full_num_as_vec(
ptr: *mut *mut GstGLMemoryPBO,
num: usize
) -> Vec<Self>ⓘ
sourceimpl FromGlibPtrArrayContainerAsVec<*mut GstGLMemoryPBO, *const *mut GstGLMemoryPBO> for GLMemoryPBO
impl FromGlibPtrArrayContainerAsVec<*mut GstGLMemoryPBO, *const *mut GstGLMemoryPBO> for GLMemoryPBO
unsafe fn from_glib_none_as_vec(ptr: *const *mut GstGLMemoryPBO) -> Vec<Self>ⓘ
unsafe fn from_glib_container_as_vec(_: *const *mut GstGLMemoryPBO) -> Vec<Self>ⓘ
unsafe fn from_glib_full_as_vec(_: *const *mut GstGLMemoryPBO) -> Vec<Self>ⓘ
sourceimpl FromGlibPtrArrayContainerAsVec<*mut GstGLMemoryPBO, *mut *mut GstGLMemoryPBO> for GLMemoryPBO
impl FromGlibPtrArrayContainerAsVec<*mut GstGLMemoryPBO, *mut *mut GstGLMemoryPBO> for GLMemoryPBO
unsafe fn from_glib_none_as_vec(ptr: *mut *mut GstGLMemoryPBO) -> Vec<Self>ⓘ
unsafe fn from_glib_container_as_vec(ptr: *mut *mut GstGLMemoryPBO) -> Vec<Self>ⓘ
unsafe fn from_glib_full_as_vec(ptr: *mut *mut GstGLMemoryPBO) -> Vec<Self>ⓘ
sourceimpl FromGlibPtrBorrow<*const GstGLMemoryPBO> for GLMemoryPBO
impl FromGlibPtrBorrow<*const GstGLMemoryPBO> for GLMemoryPBO
sourceunsafe fn from_glib_borrow(ptr: *const GstGLMemoryPBO) -> Borrowed<Self>
unsafe fn from_glib_borrow(ptr: *const GstGLMemoryPBO) -> Borrowed<Self>
Safety Read more
sourceimpl FromGlibPtrBorrow<*mut GstGLMemoryPBO> for GLMemoryPBO
impl FromGlibPtrBorrow<*mut GstGLMemoryPBO> for GLMemoryPBO
sourceunsafe fn from_glib_borrow(ptr: *mut GstGLMemoryPBO) -> Borrowed<Self>
unsafe fn from_glib_borrow(ptr: *mut GstGLMemoryPBO) -> Borrowed<Self>
Safety Read more
sourceimpl FromGlibPtrFull<*const GstGLMemoryPBO> for GLMemoryPBO
impl FromGlibPtrFull<*const GstGLMemoryPBO> for GLMemoryPBO
sourceunsafe fn from_glib_full(ptr: *const GstGLMemoryPBO) -> Self
unsafe fn from_glib_full(ptr: *const GstGLMemoryPBO) -> Self
Safety Read more
sourceimpl FromGlibPtrFull<*mut GstGLMemoryPBO> for GLMemoryPBO
impl FromGlibPtrFull<*mut GstGLMemoryPBO> for GLMemoryPBO
sourceunsafe fn from_glib_full(ptr: *mut GstGLMemoryPBO) -> Self
unsafe fn from_glib_full(ptr: *mut GstGLMemoryPBO) -> Self
Safety Read more
sourceimpl FromGlibPtrNone<*const GstGLMemoryPBO> for GLMemoryPBO
impl FromGlibPtrNone<*const GstGLMemoryPBO> for GLMemoryPBO
sourceunsafe fn from_glib_none(ptr: *const GstGLMemoryPBO) -> Self
unsafe fn from_glib_none(ptr: *const GstGLMemoryPBO) -> Self
Safety Read more
sourceimpl FromGlibPtrNone<*mut GstGLMemoryPBO> for GLMemoryPBO
impl FromGlibPtrNone<*mut GstGLMemoryPBO> for GLMemoryPBO
sourceunsafe fn from_glib_none(ptr: *mut GstGLMemoryPBO) -> Self
unsafe fn from_glib_none(ptr: *mut GstGLMemoryPBO) -> Self
Safety Read more
sourceimpl<'a> FromValue<'a> for &'a GLMemoryPBO
impl<'a> FromValue<'a> for &'a GLMemoryPBO
type Checker = MemoryTypeValueTypeChecker<GLMemoryPBO>
type Checker = MemoryTypeValueTypeChecker<GLMemoryPBO>
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<'a> FromValue<'a> for GLMemoryPBO
impl<'a> FromValue<'a> for GLMemoryPBO
type Checker = MemoryTypeValueTypeChecker<GLMemoryPBO>
type Checker = MemoryTypeValueTypeChecker<GLMemoryPBO>
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 GLMemoryPBO
impl GlibPtrDefault for GLMemoryPBO
type GlibType = *mut GstGLMemoryPBO
sourceimpl IntoGlibPtr<*mut GstGLMemoryPBO> for GLMemoryPBO
impl IntoGlibPtr<*mut GstGLMemoryPBO> for GLMemoryPBO
sourceunsafe fn into_glib_ptr(self) -> *mut GstGLMemoryPBO
unsafe fn into_glib_ptr(self) -> *mut GstGLMemoryPBO
Transfer: full.
sourceimpl IsMiniObject for GLMemoryPBO
impl IsMiniObject for GLMemoryPBO
type RefType = GLMemoryPBORef
type FfiType = GstGLMemoryPBO
sourceimpl MemoryType for GLMemoryPBO
impl MemoryType for GLMemoryPBO
fn check_memory_type(mem: &MemoryRef) -> bool
sourceimpl StaticType for GLMemoryPBO
impl StaticType for GLMemoryPBO
sourcefn static_type() -> Type
fn static_type() -> Type
Returns the type identifier of
Self.sourceimpl<'a> ToGlibContainerFromSlice<'a, *const *mut GstGLMemoryPBO> for GLMemoryPBO
impl<'a> ToGlibContainerFromSlice<'a, *const *mut GstGLMemoryPBO> for GLMemoryPBO
type Storage = (Vec<Stash<'a, *mut GstGLMemoryPBO, GLMemoryPBO>, Global>, Option<Vec<*mut GstGLMemoryPBO, Global>>)
fn to_glib_none_from_slice(
t: &'a [GLMemoryPBO]
) -> (*const *mut GstGLMemoryPBO, Self::Storage)
fn to_glib_container_from_slice(
_: &'a [GLMemoryPBO]
) -> (*const *mut GstGLMemoryPBO, Self::Storage)
fn to_glib_full_from_slice(_: &[GLMemoryPBO]) -> *const *mut GstGLMemoryPBO
sourceimpl<'a> ToGlibContainerFromSlice<'a, *mut *mut GstGLMemoryPBO> for GLMemoryPBO
impl<'a> ToGlibContainerFromSlice<'a, *mut *mut GstGLMemoryPBO> for GLMemoryPBO
type Storage = (Vec<Stash<'a, *mut GstGLMemoryPBO, GLMemoryPBO>, Global>, Option<Vec<*mut GstGLMemoryPBO, Global>>)
fn to_glib_none_from_slice(
t: &'a [GLMemoryPBO]
) -> (*mut *mut GstGLMemoryPBO, Self::Storage)
fn to_glib_container_from_slice(
t: &'a [GLMemoryPBO]
) -> (*mut *mut GstGLMemoryPBO, Self::Storage)
fn to_glib_full_from_slice(t: &[GLMemoryPBO]) -> *mut *mut GstGLMemoryPBO
sourceimpl<'a> ToGlibPtr<'a, *const GstGLMemoryPBO> for GLMemoryPBO
impl<'a> ToGlibPtr<'a, *const GstGLMemoryPBO> for GLMemoryPBO
type Storage = &'a GLMemoryPBO
sourcefn to_glib_none(&'a self) -> Stash<'a, *const GstGLMemoryPBO, Self>
fn to_glib_none(&'a self) -> Stash<'a, *const GstGLMemoryPBO, Self>
Transfer: none. Read more
sourcefn to_glib_full(&self) -> *const GstGLMemoryPBO
fn to_glib_full(&self) -> *const GstGLMemoryPBO
Transfer: full. Read more
sourcefn to_glib_container(&'a self) -> Stash<'a, P, Self>
fn to_glib_container(&'a self) -> Stash<'a, P, Self>
Transfer: container. Read more
sourceimpl<'a> ToGlibPtr<'a, *mut GstGLMemoryPBO> for GLMemoryPBO
impl<'a> ToGlibPtr<'a, *mut GstGLMemoryPBO> for GLMemoryPBO
type Storage = &'a GLMemoryPBO
sourcefn to_glib_none(&'a self) -> Stash<'a, *mut GstGLMemoryPBO, Self>
fn to_glib_none(&'a self) -> Stash<'a, *mut GstGLMemoryPBO, Self>
Transfer: none. Read more
sourcefn to_glib_full(&self) -> *mut GstGLMemoryPBO
fn to_glib_full(&self) -> *mut GstGLMemoryPBO
Transfer: full. Read more
sourcefn to_glib_container(&'a self) -> Stash<'a, P, Self>
fn to_glib_container(&'a self) -> Stash<'a, P, Self>
Transfer: container. Read more
sourceimpl<'a> ToGlibPtrMut<'a, *mut GstGLMemoryPBO> for GLMemoryPBO
impl<'a> ToGlibPtrMut<'a, *mut GstGLMemoryPBO> for GLMemoryPBO
type Storage = &'a mut GLMemoryPBO
sourcefn to_glib_none_mut(&'a mut self) -> StashMut<'_, *mut GstGLMemoryPBO, Self>
fn to_glib_none_mut(&'a mut self) -> StashMut<'_, *mut GstGLMemoryPBO, Self>
Transfer: none. Read more
sourceimpl ToValue for GLMemoryPBO
impl ToValue for GLMemoryPBO
sourceimpl ToValueOptional for GLMemoryPBO
impl ToValueOptional for GLMemoryPBO
sourcefn to_value_optional(s: Option<&Self>) -> Value
fn to_value_optional(s: Option<&Self>) -> Value
Convert an
Option to a Value.sourceimpl ValueType for GLMemoryPBO
impl ValueType for GLMemoryPBO
type Type = GLMemoryPBO
type Type = GLMemoryPBO
Type to get the
Type from. Read moreimpl Send for GLMemoryPBO
impl Sync for GLMemoryPBO
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.
sourceimpl<T> ToClosureReturnValue for Twhere
T: ToValue,
impl<T> ToClosureReturnValue for Twhere
T: ToValue,
fn to_closure_return_value(&self) -> Option<Value>
sourceimpl<T> ToSendValue for Twhere
T: Send + ToValue + ?Sized,
impl<T> ToSendValue for Twhere
T: Send + ToValue + ?Sized,
sourcefn to_send_value(&self) -> SendValue
fn to_send_value(&self) -> SendValue
Returns a
SendValue clone of self.