Struct gstreamer_gl::GLMemory [−][src]
pub struct GLMemory { /* fields omitted */ }
Implementations
impl GLMemory
[src]
impl GLMemory
[src]pub unsafe fn from_glib_none(ptr: *const GstGLMemory) -> Self
[src]
pub unsafe fn from_glib_full(ptr: *const GstGLMemory) -> Self
[src]
pub unsafe fn from_glib_borrow(ptr: *const GstGLMemory) -> Borrowed<Self>
[src]
pub unsafe fn replace_ptr(&mut self, ptr: *mut GstGLMemory)
[src]
pub fn make_mut(&mut self) -> &mut GLMemoryRef
[src]
pub fn get_mut(&mut self) -> Option<&mut GLMemoryRef>
[src]
pub fn is_writable(&self) -> bool
[src]
pub unsafe fn into_ptr(self) -> *mut GstGLMemory
[src]
Methods from Deref<Target = GLMemoryRef>
pub unsafe fn as_ptr(&self) -> *const GstGLMemory
[src]
pub unsafe fn as_mut_ptr(&self) -> *mut GstGLMemory
[src]
pub fn copy(&self) -> GLMemory
[src]
pub unsafe fn copy_into(
&self,
tex_id: u32,
target: GLTextureTarget,
tex_format: GLFormat,
width: i32,
height: i32
) -> Result<(), LoggableError>
[src]
pub unsafe fn copy_into(
&self,
tex_id: u32,
target: GLTextureTarget,
tex_format: GLFormat,
width: i32,
height: i32
) -> Result<(), LoggableError>
[src]Safety
tex_id
is not validated to be a valid GL texture, which may lead to undefined behaviour.
pub unsafe fn copy_teximage(
&self,
tex_id: u32,
out_target: GLTextureTarget,
out_tex_format: GLFormat,
out_width: i32,
out_height: i32
) -> Result<(), LoggableError>
[src]
pub unsafe fn copy_teximage(
&self,
tex_id: u32,
out_target: GLTextureTarget,
out_tex_format: GLFormat,
out_width: i32,
out_height: i32
) -> Result<(), LoggableError>
[src]Safety
tex_id
is not validated to be a valid GL texture, which may lead to undefined behaviour.
pub fn texture_format(&self) -> GLFormat
[src]
pub fn texture_height(&self) -> i32
[src]
pub fn texture_id(&self) -> u32
[src]
pub fn texture_target(&self) -> GLTextureTarget
[src]
pub fn texture_width(&self) -> i32
[src]
Methods from Deref<Target = GLBaseMemoryRef>
pub unsafe fn as_ptr(&self) -> *const GstGLBaseMemory
[src]
pub unsafe fn as_mut_ptr(&self) -> *mut GstGLBaseMemory
[src]
pub fn copy(&self) -> GLBaseMemory
[src]
pub unsafe fn memcpy(
&self,
dest: &mut GLBaseMemory,
offset: isize,
size: isize
) -> Result<(), LoggableError>
[src]
&self,
dest: &mut GLBaseMemory,
offset: isize,
size: isize
) -> Result<(), LoggableError>
Methods from Deref<Target = MemoryRef>
pub fn allocator(&self) -> Option<Allocator>
[src]
pub fn parent(&self) -> Option<&MemoryRef>
[src]
pub fn maxsize(&self) -> usize
[src]
pub fn align(&self) -> usize
[src]
pub fn offset(&self) -> usize
[src]
pub fn size(&self) -> usize
[src]
pub fn flags(&self) -> MemoryFlags
[src]
pub fn copy_part(&self, offset: isize, size: Option<usize>) -> Memory
[src]
pub fn is_span(&self, mem2: &MemoryRef) -> Option<usize>
[src]
pub fn is_type(&self, mem_type: &str) -> bool
[src]
pub fn map_readable(&self) -> Result<MemoryMap<'_, Readable>, BoolError>
[src]
pub fn map_writable(&mut self) -> Result<MemoryMap<'_, Writable>, BoolError>
[src]
pub fn share(&self, offset: isize, size: Option<usize>) -> Memory
[src]
pub fn resize(&mut self, offset: isize, size: usize)
[src]
pub fn dump(&self, size: Option<usize>) -> Dump<'_>
[src]
pub unsafe fn as_ptr(&self) -> *const GstMemory
[src]
pub unsafe fn as_mut_ptr(&self) -> *mut GstMemory
[src]
pub fn copy(&self) -> Memory
[src]
Trait Implementations
impl AsRef<GLMemoryRef> for GLMemory
[src]
impl AsRef<GLMemoryRef> for GLMemory
[src]fn as_ref(&self) -> &GLMemoryRef
[src]
fn as_ref(&self) -> &GLMemoryRef
[src]Performs the conversion.
impl Borrow<GLMemoryRef> for GLMemory
[src]
impl Borrow<GLMemoryRef> for GLMemory
[src]fn borrow(&self) -> &GLMemoryRef
[src]
fn borrow(&self) -> &GLMemoryRef
[src]Immutably borrows from an owned value. Read more
impl Deref for GLMemory
[src]
impl Deref for GLMemory
[src]type Target = GLMemoryRef
type Target = GLMemoryRef
The resulting type after dereferencing.
impl FromGlibPtrArrayContainerAsVec<*mut GstGLMemory, *const *mut GstGLMemory> for GLMemory
[src]
impl FromGlibPtrArrayContainerAsVec<*mut GstGLMemory, *const *mut GstGLMemory> for GLMemory
[src]unsafe fn from_glib_none_as_vec(ptr: *const *mut GstGLMemory) -> Vec<Self>
[src]
unsafe fn from_glib_container_as_vec(_: *const *mut GstGLMemory) -> Vec<Self>
[src]
unsafe fn from_glib_full_as_vec(_: *const *mut GstGLMemory) -> Vec<Self>
[src]
impl FromGlibPtrArrayContainerAsVec<*mut GstGLMemory, *mut *mut GstGLMemory> for GLMemory
[src]
impl FromGlibPtrArrayContainerAsVec<*mut GstGLMemory, *mut *mut GstGLMemory> for GLMemory
[src]unsafe fn from_glib_none_as_vec(ptr: *mut *mut GstGLMemory) -> Vec<Self>
[src]
unsafe fn from_glib_container_as_vec(ptr: *mut *mut GstGLMemory) -> Vec<Self>
[src]
unsafe fn from_glib_full_as_vec(ptr: *mut *mut GstGLMemory) -> Vec<Self>
[src]
impl FromGlibPtrBorrow<*const GstGLMemory> for GLMemory
[src]
impl FromGlibPtrBorrow<*const GstGLMemory> for GLMemory
[src]unsafe fn from_glib_borrow(ptr: *const GstGLMemory) -> Borrowed<Self>
[src]
unsafe fn from_glib_borrow(ptr: *const GstGLMemory) -> Borrowed<Self>
[src]Safety Read more
impl FromGlibPtrBorrow<*mut GstGLMemory> for GLMemory
[src]
impl FromGlibPtrBorrow<*mut GstGLMemory> for GLMemory
[src]unsafe fn from_glib_borrow(ptr: *mut GstGLMemory) -> Borrowed<Self>
[src]
unsafe fn from_glib_borrow(ptr: *mut GstGLMemory) -> Borrowed<Self>
[src]Safety Read more
impl FromGlibPtrFull<*const GstGLMemory> for GLMemory
[src]
impl FromGlibPtrFull<*const GstGLMemory> for GLMemory
[src]unsafe fn from_glib_full(ptr: *const GstGLMemory) -> Self
[src]
unsafe fn from_glib_full(ptr: *const GstGLMemory) -> Self
[src]Safety Read more
impl FromGlibPtrFull<*mut GstGLMemory> for GLMemory
[src]
impl FromGlibPtrFull<*mut GstGLMemory> for GLMemory
[src]unsafe fn from_glib_full(ptr: *mut GstGLMemory) -> Self
[src]
unsafe fn from_glib_full(ptr: *mut GstGLMemory) -> Self
[src]Safety Read more
impl FromGlibPtrNone<*const GstGLMemory> for GLMemory
[src]
impl FromGlibPtrNone<*const GstGLMemory> for GLMemory
[src]unsafe fn from_glib_none(ptr: *const GstGLMemory) -> Self
[src]
unsafe fn from_glib_none(ptr: *const GstGLMemory) -> Self
[src]Safety Read more
impl FromGlibPtrNone<*mut GstGLMemory> for GLMemory
[src]
impl FromGlibPtrNone<*mut GstGLMemory> for GLMemory
[src]unsafe fn from_glib_none(ptr: *mut GstGLMemory) -> Self
[src]
unsafe fn from_glib_none(ptr: *mut GstGLMemory) -> Self
[src]Safety Read more
impl GlibPtrDefault for GLMemory
[src]
impl GlibPtrDefault for GLMemory
[src]impl<'a> ToGlibContainerFromSlice<'a, *const *mut GstGLMemory> for GLMemory
[src]
impl<'a> ToGlibContainerFromSlice<'a, *const *mut GstGLMemory> for GLMemory
[src]type Storage = (Vec<Stash<'a, *mut GstGLMemory, GLMemory>>, Option<Vec<*mut GstGLMemory>>)
fn to_glib_none_from_slice(
t: &'a [GLMemory]
) -> (*const *mut GstGLMemory, Self::Storage)
[src]
t: &'a [GLMemory]
) -> (*const *mut GstGLMemory, Self::Storage)
fn to_glib_container_from_slice(
_: &'a [GLMemory]
) -> (*const *mut GstGLMemory, Self::Storage)
[src]
_: &'a [GLMemory]
) -> (*const *mut GstGLMemory, Self::Storage)
fn to_glib_full_from_slice(_: &[GLMemory]) -> *const *mut GstGLMemory
[src]
impl<'a> ToGlibContainerFromSlice<'a, *mut *mut GstGLMemory> for GLMemory
[src]
impl<'a> ToGlibContainerFromSlice<'a, *mut *mut GstGLMemory> for GLMemory
[src]type Storage = (Vec<Stash<'a, *mut GstGLMemory, Self>>, Option<Vec<*mut GstGLMemory>>)
fn to_glib_none_from_slice(
t: &'a [GLMemory]
) -> (*mut *mut GstGLMemory, Self::Storage)
[src]
t: &'a [GLMemory]
) -> (*mut *mut GstGLMemory, Self::Storage)
fn to_glib_container_from_slice(
t: &'a [GLMemory]
) -> (*mut *mut GstGLMemory, Self::Storage)
[src]
t: &'a [GLMemory]
) -> (*mut *mut GstGLMemory, Self::Storage)
fn to_glib_full_from_slice(t: &[GLMemory]) -> *mut *mut GstGLMemory
[src]
impl<'a> ToGlibPtr<'a, *const GstGLMemory> for GLMemory
[src]
impl<'a> ToGlibPtr<'a, *const GstGLMemory> for GLMemory
[src]type Storage = &'a Self
fn to_glib_none(&'a self) -> Stash<'a, *const GstGLMemory, Self>
[src]
fn to_glib_none(&'a self) -> Stash<'a, *const GstGLMemory, Self>
[src]Transfer: none. Read more
fn to_glib_full(&self) -> *const GstGLMemory
[src]
fn to_glib_full(&self) -> *const GstGLMemory
[src]Transfer: full. Read more
fn to_glib_container(&'a self) -> Stash<'a, P, Self>
[src]
fn to_glib_container(&'a self) -> Stash<'a, P, Self>
[src]Transfer: container. Read more
impl<'a> ToGlibPtr<'a, *mut GstGLMemory> for GLMemory
[src]
impl<'a> ToGlibPtr<'a, *mut GstGLMemory> for GLMemory
[src]type Storage = &'a Self
fn to_glib_none(&'a self) -> Stash<'a, *mut GstGLMemory, Self>
[src]
fn to_glib_none(&'a self) -> Stash<'a, *mut GstGLMemory, Self>
[src]Transfer: none. Read more
fn to_glib_full(&self) -> *mut GstGLMemory
[src]
fn to_glib_full(&self) -> *mut GstGLMemory
[src]Transfer: full. Read more
fn to_glib_container(&'a self) -> Stash<'a, P, Self>
[src]
fn to_glib_container(&'a self) -> Stash<'a, P, Self>
[src]Transfer: container. Read more
impl<'a> ToGlibPtrMut<'a, *mut GstGLMemory> for GLMemory
[src]
impl<'a> ToGlibPtrMut<'a, *mut GstGLMemory> for GLMemory
[src]impl Send for GLMemory
[src]
impl Sync for GLMemory
[src]
Auto Trait Implementations
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
[src]type Owned = T
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn to_owned(&self) -> T
[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)
[src]
pub fn clone_into(&self, target: &mut T)
[src]🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more