extern "C" {
#[doc(hidden)] fn cv_PtrOfFrameSource_get(ptr: *mut c_void) -> *mut c_void;
#[doc(hidden)] fn cv_delete_PtrOfFrameSource(ptr: *mut c_void);
}
#[allow(dead_code)]
pub struct PtrOfFrameSource {
pub(crate) ptr: *mut c_void
}
impl PtrOfFrameSource {
#[doc(hidden)] pub fn as_raw_PtrOfFrameSource(&self) -> *mut c_void {
self.ptr
}
}
impl Drop for PtrOfFrameSource {
fn drop(&mut self) {
unsafe { cv_delete_PtrOfFrameSource(self.ptr) };
}
}
impl core::FrameSource for PtrOfFrameSource {
#[doc(hidden)]
fn as_raw_FrameSource(&self) -> *mut c_void {
unsafe { cv_PtrOfFrameSource_get(self.ptr) }
}
}