1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
use ffi::GstGLMemoryPBO;
use glib::translate::*;
use gst::{Memory, MemoryRef};

use crate::{ffi, 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)
    }
}