[−][src]Struct opencv::core::Texture2D
Smart pointer for OpenGL 2D texture memory with reference counting.
Implementations
impl Texture2D
[src]
pub fn as_raw_Texture2D(&self) -> *const c_void
[src]
pub fn as_raw_mut_Texture2D(&mut self) -> *mut c_void
[src]
impl Texture2D
[src]
pub fn default() -> Result<Texture2D>
[src]
The constructors.
Creates empty ogl::Texture2D object, allocates memory for ogl::Texture2D object or copies from host/device memory.
pub fn new(
arows: i32,
acols: i32,
aformat: Texture2D_Format,
atex_id: u32,
auto_release: bool
) -> Result<Texture2D>
[src]
arows: i32,
acols: i32,
aformat: Texture2D_Format,
atex_id: u32,
auto_release: bool
) -> Result<Texture2D>
The constructors.
Creates empty ogl::Texture2D object, allocates memory for ogl::Texture2D object or copies from host/device memory.
Overloaded parameters
C++ default parameters
- auto_release: false
pub fn new_1(
asize: Size,
aformat: Texture2D_Format,
atex_id: u32,
auto_release: bool
) -> Result<Texture2D>
[src]
asize: Size,
aformat: Texture2D_Format,
atex_id: u32,
auto_release: bool
) -> Result<Texture2D>
The constructors.
Creates empty ogl::Texture2D object, allocates memory for ogl::Texture2D object or copies from host/device memory.
Overloaded parameters
C++ default parameters
- auto_release: false
pub fn new_2(
arows: i32,
acols: i32,
aformat: Texture2D_Format,
auto_release: bool
) -> Result<Texture2D>
[src]
arows: i32,
acols: i32,
aformat: Texture2D_Format,
auto_release: bool
) -> Result<Texture2D>
The constructors.
Creates empty ogl::Texture2D object, allocates memory for ogl::Texture2D object or copies from host/device memory.
Overloaded parameters
Parameters
- arows: Number of rows.
- acols: Number of columns.
- aformat: Image format. See cv::ogl::Texture2D::Format .
- autoRelease: Auto release mode (if true, release will be called in object's destructor).
C++ default parameters
- auto_release: false
pub fn new_3(
asize: Size,
aformat: Texture2D_Format,
auto_release: bool
) -> Result<Texture2D>
[src]
asize: Size,
aformat: Texture2D_Format,
auto_release: bool
) -> Result<Texture2D>
The constructors.
Creates empty ogl::Texture2D object, allocates memory for ogl::Texture2D object or copies from host/device memory.
Overloaded parameters
Parameters
- asize: 2D array size.
- aformat: Image format. See cv::ogl::Texture2D::Format .
- autoRelease: Auto release mode (if true, release will be called in object's destructor).
C++ default parameters
- auto_release: false
pub fn new_4(arr: &dyn ToInputArray, auto_release: bool) -> Result<Texture2D>
[src]
The constructors.
Creates empty ogl::Texture2D object, allocates memory for ogl::Texture2D object or copies from host/device memory.
Overloaded parameters
Parameters
- arr: Input array (host or device memory, it can be Mat , cuda::GpuMat or ogl::Buffer ).
- autoRelease: Auto release mode (if true, release will be called in object's destructor).
C++ default parameters
- auto_release: false
Trait Implementations
impl Boxed for Texture2D
[src]
unsafe fn from_raw(ptr: *mut c_void) -> Self
[src]
fn into_raw(self) -> *mut c_void
[src]
fn as_raw(&self) -> *const c_void
[src]
fn as_raw_mut(&mut self) -> *mut c_void
[src]
impl Drop for Texture2D
[src]
impl Send for Texture2D
[src]
impl Texture2DTrait for Texture2D
[src]
fn as_raw_Texture2D(&self) -> *const c_void
[src]
fn as_raw_mut_Texture2D(&mut self) -> *mut c_void
[src]
fn create(
&mut self,
arows: i32,
acols: i32,
aformat: Texture2D_Format,
auto_release: bool
) -> Result<()>
[src]
&mut self,
arows: i32,
acols: i32,
aformat: Texture2D_Format,
auto_release: bool
) -> Result<()>
fn create_1(
&mut self,
asize: Size,
aformat: Texture2D_Format,
auto_release: bool
) -> Result<()>
[src]
&mut self,
asize: Size,
aformat: Texture2D_Format,
auto_release: bool
) -> Result<()>
fn release(&mut self) -> Result<()>
[src]
fn set_auto_release(&mut self, flag: bool) -> Result<()>
[src]
fn copy_from(
&mut self,
arr: &dyn ToInputArray,
auto_release: bool
) -> Result<()>
[src]
&mut self,
arr: &dyn ToInputArray,
auto_release: bool
) -> Result<()>
fn copy_to(
&self,
arr: &mut dyn ToOutputArray,
ddepth: i32,
auto_release: bool
) -> Result<()>
[src]
&self,
arr: &mut dyn ToOutputArray,
ddepth: i32,
auto_release: bool
) -> Result<()>
fn bind(&self) -> Result<()>
[src]
fn rows(&self) -> Result<i32>
[src]
fn cols(&self) -> Result<i32>
[src]
fn size(&self) -> Result<Size>
[src]
fn empty(&self) -> Result<bool>
[src]
fn format(&self) -> Result<Texture2D_Format>
[src]
fn tex_id(&self) -> Result<u32>
[src]
Auto Trait Implementations
impl RefUnwindSafe for Texture2D
[src]
impl !Sync for Texture2D
[src]
impl Unpin for Texture2D
[src]
impl UnwindSafe for Texture2D
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,