OpenCV 4.11.0
开源计算机视觉
加载中…
搜索中…
无匹配项
cv::MatAllocator 类参考抽象类

自定义数组分配器。更多…

#include <opencv2/core/mat.hpp>

cv::MatAllocator 的协作图

公有成员函数

 MatAllocator ()
 
virtual ~MatAllocator ()
 
virtual UMatDataallocate (int dims, const int *sizes, int type, void *data, size_t *step, AccessFlag flags, UMatUsageFlags usageFlags) const =0
 
virtual bool allocate (UMatData *data, AccessFlag accessflags, UMatUsageFlags usageFlags) const =0
 
virtual void copy (UMatData *srcdata, UMatData *dstdata, int dims, const size_t sz[], const size_t srcofs[], const size_t srcstep[], const size_t dstofs[], const size_t dststep[], bool sync) const
 
virtual void deallocate (UMatData *data) const =0
 
virtual void download (UMatData *data, void *dst, int dims, const size_t sz[], const size_t srcofs[], const size_t srcstep[], const size_t dststep[]) const
 
virtual BufferPoolControllergetBufferPoolController (const char *id=NULL) const
 
virtual void map (UMatData *data, AccessFlag accessflags) const
 
virtual void unmap (UMatData *data) const
 
virtual void upload (UMatData *data, const void *src, int dims, const size_t sz[], const size_t dstofs[], const size_t dststep[], const size_t srcstep[]) const
 

详细描述

自定义数组分配器。

构造函数和析构函数文档

◆ MatAllocator()

cv::MatAllocator::MatAllocator ( )
inline

◆ ~MatAllocator()

virtual cv::MatAllocator::~MatAllocator ( )
inlinevirtual

成员函数文档

◆ allocate() [1/2]

virtual UMatData * cv::MatAllocator::allocate ( int dims,
const int * sizes,
int type,
void * data,
size_t * step,
AccessFlag flags,
UMatUsageFlags usageFlags ) const
纯虚函数

◆ allocate() [2/2]

virtual bool cv::MatAllocator::allocate ( UMatData * data,
AccessFlag accessflags,
UMatUsageFlags usageFlags ) const
纯虚函数

◆ copy()

virtual void cv::MatAllocator::copy ( UMatData * srcdata,
UMatData * dstdata,
int dims,
const size_t sz[],
const size_t srcofs[],
const size_t srcstep[],
const size_t dstofs[],
const size_t dststep[],
bool sync ) const
virtual

◆ deallocate()

virtual void cv::MatAllocator::deallocate ( UMatData * data) const
纯虚函数

◆ download()

virtual void cv::MatAllocator::download ( UMatData * data,
void * dst,
int dims,
const size_t sz[],
const size_t srcofs[],
const size_t srcstep[],
const size_t dststep[] ) const
virtual

◆ getBufferPoolController()

virtual BufferPoolController * cv::MatAllocator::getBufferPoolController ( const char * id = NULL) const
virtual

◆ map()

virtual void cv::MatAllocator::map ( UMatData * data,
AccessFlag accessflags ) const
virtual

◆ unmap()

virtual void cv::MatAllocator::unmap ( UMatData * data) const
virtual

◆ upload()

virtual void cv::MatAllocator::upload ( UMatData * data,
const void * src,
int dims,
const size_t sz[],
const size_t dstofs[],
const size_t dststep[],
const size_t srcstep[] ) const
virtual

此类的文档是从以下文件生成的: