2022-02-26 15:36:05 +00:00
|
|
|
use ffi::GstGLMemoryPBO;
|
|
|
|
use glib::translate::*;
|
2023-01-03 18:58:25 +00:00
|
|
|
use gst::{Memory, MemoryRef};
|
2022-02-26 15:36:05 +00:00
|
|
|
|
|
|
|
use crate::{GLBaseMemory, GLBaseMemoryRef, GLMemory, GLMemoryRef};
|
|
|
|
|
|
|
|
gst::memory_object_wrapper!(
|
|
|
|
GLMemoryPBO,
|
|
|
|
GLMemoryPBORef,
|
|
|
|
GstGLMemoryPBO,
|
|
|
|
|mem: &MemoryRef| { unsafe { from_glib(ffi::gst_is_gl_memory_pbo(mem.as_mut_ptr())) } },
|
|
|
|
GLMemory,
|
|
|
|
GLMemoryRef,
|
|
|
|
GLBaseMemory,
|
|
|
|
GLBaseMemoryRef,
|
|
|
|
Memory,
|
|
|
|
MemoryRef
|
|
|
|
);
|
|
|
|
|
|
|
|
impl std::fmt::Debug for GLMemoryPBO {
|
|
|
|
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
|
|
|
GLMemoryPBORef::fmt(self, f)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
impl std::fmt::Debug for GLMemoryPBORef {
|
|
|
|
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
|
|
|
GLMemoryRef::fmt(self, f)
|
|
|
|
}
|
|
|
|
}
|