Struct gstreamer_gl::GLMemory[][src]

pub struct GLMemory { /* fields omitted */ }

Implementations

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]

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]

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]

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]

fn as_ref(&self) -> &GLMemoryRef[src]

Performs the conversion.

impl Borrow<GLMemoryRef> for GLMemory[src]

fn borrow(&self) -> &GLMemoryRef[src]

Immutably borrows from an owned value. Read more

impl Clone for GLMemory[src]

fn clone(&self) -> Self[src]

Returns a copy of the value. Read more

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

impl Deref for GLMemory[src]

type Target = GLMemoryRef

The resulting type after dereferencing.

fn deref(&self) -> &Self::Target[src]

Dereferences the value.

impl Drop for GLMemory[src]

fn drop(&mut self)[src]

Executes the destructor for this type. Read more

impl FromGlibContainerAsVec<*mut GstGLMemory, *const *mut GstGLMemory> for GLMemory[src]

unsafe fn from_glib_none_num_as_vec(
    ptr: *const *mut GstGLMemory,
    num: usize
) -> Vec<Self>
[src]

unsafe fn from_glib_container_num_as_vec(
    _: *const *mut GstGLMemory,
    _: usize
) -> Vec<Self>
[src]

unsafe fn from_glib_full_num_as_vec(
    _: *const *mut GstGLMemory,
    _: usize
) -> Vec<Self>
[src]

impl FromGlibContainerAsVec<*mut GstGLMemory, *mut *mut GstGLMemory> for GLMemory[src]

unsafe fn from_glib_none_num_as_vec(
    ptr: *mut *mut GstGLMemory,
    num: usize
) -> Vec<Self>
[src]

unsafe fn from_glib_container_num_as_vec(
    ptr: *mut *mut GstGLMemory,
    num: usize
) -> Vec<Self>
[src]

unsafe fn from_glib_full_num_as_vec(
    ptr: *mut *mut GstGLMemory,
    num: usize
) -> Vec<Self>
[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]

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]

unsafe fn from_glib_borrow(ptr: *const GstGLMemory) -> Borrowed<Self>[src]

Safety Read more

impl FromGlibPtrBorrow<*mut GstGLMemory> for GLMemory[src]

unsafe fn from_glib_borrow(ptr: *mut GstGLMemory) -> Borrowed<Self>[src]

Safety Read more

impl FromGlibPtrFull<*const GstGLMemory> for GLMemory[src]

unsafe fn from_glib_full(ptr: *const GstGLMemory) -> Self[src]

Safety Read more

impl FromGlibPtrFull<*mut GstGLMemory> for GLMemory[src]

unsafe fn from_glib_full(ptr: *mut GstGLMemory) -> Self[src]

Safety Read more

impl FromGlibPtrNone<*const GstGLMemory> for GLMemory[src]

unsafe fn from_glib_none(ptr: *const GstGLMemory) -> Self[src]

Safety Read more

impl FromGlibPtrNone<*mut GstGLMemory> for GLMemory[src]

unsafe fn from_glib_none(ptr: *mut GstGLMemory) -> Self[src]

Safety Read more

impl GlibPtrDefault for GLMemory[src]

type GlibType = *mut GstGLMemory

impl<'a> ToGlibContainerFromSlice<'a, *const *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]

fn to_glib_container_from_slice(
    t: &'a [GLMemory]
) -> (*mut *mut GstGLMemory, Self::Storage)
[src]

fn to_glib_full_from_slice(t: &[GLMemory]) -> *mut *mut GstGLMemory[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]

Transfer: none. Read more

fn to_glib_full(&self) -> *const GstGLMemory[src]

Transfer: full. Read more

fn to_glib_container(&'a self) -> Stash<'a, P, Self>[src]

Transfer: container. Read more

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]

Transfer: none. Read more

fn to_glib_full(&self) -> *mut GstGLMemory[src]

Transfer: full. Read more

fn to_glib_container(&'a self) -> Stash<'a, P, Self>[src]

Transfer: container. Read more

impl<'a> ToGlibPtrMut<'a, *mut GstGLMemory> for GLMemory[src]

type Storage = &'a mut Self

fn to_glib_none_mut(&'a mut self) -> StashMut<'_, *mut GstGLMemory, Self>[src]

Transfer: none. Read more

impl Send for GLMemory[src]

impl Sync for GLMemory[src]

Auto Trait Implementations

impl RefUnwindSafe for GLMemory

impl Unpin for GLMemory

impl UnwindSafe for GLMemory

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

pub fn type_id(&self) -> TypeId[src]

Gets the TypeId of self. Read more

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

pub fn borrow(&self) -> &T[src]

Immutably borrows from an owned value. Read more

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

pub fn borrow_mut(&mut self) -> &mut T[src]

Mutably borrows from an owned value. Read more

impl<T> From<T> for T[src]

pub fn from(t: T) -> T[src]

Performs the conversion.

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

pub fn into(self) -> U[src]

Performs the conversion.

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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]

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

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

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

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

Performs the conversion.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.

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

Performs the conversion.