Struct GLMemoryPBO
Source pub struct GLMemoryPBORef(/* private fields */);Implementations§
Source§impl GLMemoryPBORef
 
impl GLMemoryPBORef
pub fn as_ptr(&self) -> *const GstGLMemoryPBO
pub fn as_mut_ptr(&self) -> *mut GstGLMemoryPBO
pub unsafe fn from_ptr<'a>(ptr: *const GstGLMemoryPBO) -> &'a Self
pub unsafe fn from_mut_ptr<'a>(ptr: *mut GstGLMemoryPBO) -> &'a mut Self
pub fn copy(&self) -> GLMemoryPBO
pub fn upcast_ref(&self) -> &MiniObjectRef
pub fn upcast_mut(&mut self) -> &mut MiniObjectRef
pub fn ptr_eq(this: &GLMemoryPBORef, other: &GLMemoryPBORef) -> bool
Source§impl GLMemoryPBORef
 
impl GLMemoryPBORef
pub fn upcast_memory_ref<M>(&self) -> &M::RefType
pub fn upcast_memory_mut<M>(&mut self) -> &mut 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::RefType
pub fn upcast_memory_mut<M>(&mut self) -> &mut 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::RefType
pub fn upcast_memory_mut<M>(&mut self) -> &mut M::RefType
pub unsafe fn memcpy( &self, dest: &mut GLBaseMemory, offset: isize, size: isize, ) -> Result<(), 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_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 AsMut<GLBaseMemoryRef> for GLMemoryPBORef
 
impl AsMut<GLBaseMemoryRef> for GLMemoryPBORef
Source§fn 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.
Source§impl AsMut<GLMemoryRef> for GLMemoryPBORef
 
impl AsMut<GLMemoryRef> for GLMemoryPBORef
Source§fn 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.
Source§impl AsMut<MemoryRef> for GLMemoryPBORef
 
impl AsMut<MemoryRef> for GLMemoryPBORef
Source§impl AsRef<GLBaseMemoryRef> for GLMemoryPBORef
 
impl AsRef<GLBaseMemoryRef> for GLMemoryPBORef
Source§fn as_ref(&self) -> &GLBaseMemoryRef
 
fn as_ref(&self) -> &GLBaseMemoryRef
Converts this type into a shared reference of the (usually inferred) input type.
Source§impl AsRef<GLMemoryPBORef> for GLMemoryPBO
 
impl AsRef<GLMemoryPBORef> for GLMemoryPBO
Source§fn as_ref(&self) -> &GLMemoryPBORef
 
fn as_ref(&self) -> &GLMemoryPBORef
Converts this type into a shared reference of the (usually inferred) input type.
Source§impl AsRef<GLMemoryRef> for GLMemoryPBORef
 
impl AsRef<GLMemoryRef> for GLMemoryPBORef
Source§fn as_ref(&self) -> &GLMemoryRef
 
fn as_ref(&self) -> &GLMemoryRef
Converts this type into a shared reference of the (usually inferred) input type.
Source§impl AsRef<MemoryRef> for GLMemoryPBORef
 
impl AsRef<MemoryRef> for GLMemoryPBORef
Source§impl Borrow<GLMemoryPBORef> for GLMemoryPBO
 
impl Borrow<GLMemoryPBORef> for GLMemoryPBO
Source§fn borrow(&self) -> &GLMemoryPBORef
 
fn borrow(&self) -> &GLMemoryPBORef
Immutably borrows from an owned value. Read more
Source§impl Debug for GLMemoryPBORef
 
impl Debug for GLMemoryPBORef
Source§impl Deref for GLMemoryPBORef
 
impl Deref for GLMemoryPBORef
Source§impl DerefMut for GLMemoryPBORef
 
impl DerefMut for GLMemoryPBORef
Source§impl<'a> FromValue<'a> for &'a GLMemoryPBORef
 
impl<'a> FromValue<'a> for &'a GLMemoryPBORef
Source§type Checker = MemoryTypeValueTypeChecker<GLMemoryPBO>
 
type Checker = MemoryTypeValueTypeChecker<GLMemoryPBO>
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 GLMemoryPBORef
 
impl GlibPtrDefault for GLMemoryPBORef
type GlibType = *mut GstGLMemoryPBO
Source§impl StaticType for GLMemoryPBORef
 
impl StaticType for GLMemoryPBORef
Source§fn static_type() -> Type
 
fn static_type() -> Type
Returns the type identifier of 
Self.Source§impl ToOwned for GLMemoryPBORef
 
impl ToOwned for GLMemoryPBORef
Source§type Owned = GLMemoryPBO
 
type Owned = GLMemoryPBO
The resulting type after obtaining ownership.
Source§fn to_owned(&self) -> GLMemoryPBO
 
fn to_owned(&self) -> GLMemoryPBO
Creates owned data from borrowed data, usually by cloning. Read more
1.63.0 · Source§fn 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 GLMemoryPBORef
impl Sync for GLMemoryPBORef
Auto Trait Implementations§
impl Freeze for GLMemoryPBORef
impl RefUnwindSafe for GLMemoryPBORef
impl Unpin for GLMemoryPBORef
impl UnwindSafe for GLMemoryPBORef
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> 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.