Struct gstreamer_gl::GLMemoryRef [−][src]
#[repr(transparent)]pub struct GLMemoryRef(_);
Implementations
impl GLMemoryRef
[src]
impl GLMemoryRef
[src]impl GLMemoryRef
[src]
impl GLMemoryRef
[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 GLMemoryRef
[src]
impl Deref for GLMemoryRef
[src]type Target = GLBaseMemoryRef
type Target = GLBaseMemoryRef
The resulting type after dereferencing.
impl DerefMut for GLMemoryRef
[src]
impl DerefMut for GLMemoryRef
[src]impl GlibPtrDefault for GLMemoryRef
[src]
impl GlibPtrDefault for GLMemoryRef
[src]impl ToOwned for GLMemoryRef
[src]
impl ToOwned for GLMemoryRef
[src]fn to_owned(&self) -> GLMemory
[src]
fn to_owned(&self) -> GLMemory
[src]Creates owned data from borrowed data, usually by cloning. Read more
fn clone_into(&self, target: &mut Self::Owned)
[src]
fn clone_into(&self, target: &mut Self::Owned)
[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