Struct gstreamer_gl::GLMemory
source · [−]pub struct GLMemory { /* private fields */ }
Implementations
Methods from Deref<Target = GLMemoryRef>
pub 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.
pub 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.
Methods from Deref<Target = GLBaseMemoryRef>
pub unsafe fn memcpy(
&self,
dest: &mut GLBaseMemory,
offset: isize,
size: isize
) -> Result<(), LoggableError>
Methods from Deref<Target = MemoryRef>
Trait Implementations
Performs the conversion.
Immutably borrows from an owned value. Read more
type Target = GLMemoryRef
type Target = GLMemoryRef
The resulting type after dereferencing.
unsafe fn from_glib_none_num_as_vec(
ptr: *const *mut GstGLMemory,
num: usize
) -> Vec<Self>ⓘ
unsafe fn from_glib_container_num_as_vec(
_: *const *mut GstGLMemory,
_: usize
) -> Vec<Self>ⓘ
unsafe fn from_glib_none_num_as_vec(
ptr: *mut *mut GstGLMemory,
num: usize
) -> Vec<Self>ⓘ
unsafe fn from_glib_container_num_as_vec(
ptr: *mut *mut GstGLMemory,
num: usize
) -> Vec<Self>ⓘ
unsafe fn from_glib_none_as_vec(ptr: *const *mut GstGLMemory) -> Vec<Self>ⓘ
unsafe fn from_glib_container_as_vec(_: *const *mut GstGLMemory) -> Vec<Self>ⓘ
unsafe fn from_glib_none_as_vec(ptr: *mut *mut GstGLMemory) -> Vec<Self>ⓘ
unsafe fn from_glib_container_as_vec(ptr: *mut *mut GstGLMemory) -> Vec<Self>ⓘ
Safety Read more
Safety Read more
Safety Read more
Safety Read more
Safety Read more
Safety Read more
type Checker = GenericValueTypeOrNoneChecker<Self>
type Checker = GenericValueTypeOrNoneChecker<Self>
Value type checker.
Get the contained value from a Value
. Read more
type GlibType = *mut GstGLMemory
type RefType = GLMemoryRef
type FfiType = GstGLMemory
Returns the type identifier of Self
.
fn to_glib_container_from_slice(
_: &'a [GLMemory]
) -> (*const *mut GstGLMemory, Self::Storage)
Transfer: none. Read more
Convert an Option
to a Value
.
Auto Trait Implementations
Blanket Implementations
Mutably borrows from an owned value. Read more
Returns a SendValue
clone of self
.