OpenCV  3.1.0
Open Source Computer Vision
Public Member Functions | Protected Attributes | List of all members
cv::ocl::Kernel Class Reference

#include "ocl.hpp"

Public Member Functions

 Kernel ()
 
 Kernel (const char *kname, const Program &prog)
 
 Kernel (const char *kname, const ProgramSource &prog, const String &buildopts=String(), String *errmsg=0)
 
 Kernel (const Kernel &k)
 
 ~Kernel ()
 
template<typename _Tp0 >
Kernelargs (const _Tp0 &a0)
 
template<typename _Tp0 , typename _Tp1 >
Kernelargs (const _Tp0 &a0, const _Tp1 &a1)
 
template<typename _Tp0 , typename _Tp1 , typename _Tp2 >
Kernelargs (const _Tp0 &a0, const _Tp1 &a1, const _Tp2 &a2)
 
template<typename _Tp0 , typename _Tp1 , typename _Tp2 , typename _Tp3 >
Kernelargs (const _Tp0 &a0, const _Tp1 &a1, const _Tp2 &a2, const _Tp3 &a3)
 
template<typename _Tp0 , typename _Tp1 , typename _Tp2 , typename _Tp3 , typename _Tp4 >
Kernelargs (const _Tp0 &a0, const _Tp1 &a1, const _Tp2 &a2, const _Tp3 &a3, const _Tp4 &a4)
 
template<typename _Tp0 , typename _Tp1 , typename _Tp2 , typename _Tp3 , typename _Tp4 , typename _Tp5 >
Kernelargs (const _Tp0 &a0, const _Tp1 &a1, const _Tp2 &a2, const _Tp3 &a3, const _Tp4 &a4, const _Tp5 &a5)
 
template<typename _Tp0 , typename _Tp1 , typename _Tp2 , typename _Tp3 , typename _Tp4 , typename _Tp5 , typename _Tp6 >
Kernelargs (const _Tp0 &a0, const _Tp1 &a1, const _Tp2 &a2, const _Tp3 &a3, const _Tp4 &a4, const _Tp5 &a5, const _Tp6 &a6)
 
template<typename _Tp0 , typename _Tp1 , typename _Tp2 , typename _Tp3 , typename _Tp4 , typename _Tp5 , typename _Tp6 , typename _Tp7 >
Kernelargs (const _Tp0 &a0, const _Tp1 &a1, const _Tp2 &a2, const _Tp3 &a3, const _Tp4 &a4, const _Tp5 &a5, const _Tp6 &a6, const _Tp7 &a7)
 
template<typename _Tp0 , typename _Tp1 , typename _Tp2 , typename _Tp3 , typename _Tp4 , typename _Tp5 , typename _Tp6 , typename _Tp7 , typename _Tp8 >
Kernelargs (const _Tp0 &a0, const _Tp1 &a1, const _Tp2 &a2, const _Tp3 &a3, const _Tp4 &a4, const _Tp5 &a5, const _Tp6 &a6, const _Tp7 &a7, const _Tp8 &a8)
 
template<typename _Tp0 , typename _Tp1 , typename _Tp2 , typename _Tp3 , typename _Tp4 , typename _Tp5 , typename _Tp6 , typename _Tp7 , typename _Tp8 , typename _Tp9 >
Kernelargs (const _Tp0 &a0, const _Tp1 &a1, const _Tp2 &a2, const _Tp3 &a3, const _Tp4 &a4, const _Tp5 &a5, const _Tp6 &a6, const _Tp7 &a7, const _Tp8 &a8, const _Tp9 &a9)
 
template<typename _Tp0 , typename _Tp1 , typename _Tp2 , typename _Tp3 , typename _Tp4 , typename _Tp5 , typename _Tp6 , typename _Tp7 , typename _Tp8 , typename _Tp9 , typename _Tp10 >
Kernelargs (const _Tp0 &a0, const _Tp1 &a1, const _Tp2 &a2, const _Tp3 &a3, const _Tp4 &a4, const _Tp5 &a5, const _Tp6 &a6, const _Tp7 &a7, const _Tp8 &a8, const _Tp9 &a9, const _Tp10 &a10)
 
template<typename _Tp0 , typename _Tp1 , typename _Tp2 , typename _Tp3 , typename _Tp4 , typename _Tp5 , typename _Tp6 , typename _Tp7 , typename _Tp8 , typename _Tp9 , typename _Tp10 , typename _Tp11 >
Kernelargs (const _Tp0 &a0, const _Tp1 &a1, const _Tp2 &a2, const _Tp3 &a3, const _Tp4 &a4, const _Tp5 &a5, const _Tp6 &a6, const _Tp7 &a7, const _Tp8 &a8, const _Tp9 &a9, const _Tp10 &a10, const _Tp11 &a11)
 
template<typename _Tp0 , typename _Tp1 , typename _Tp2 , typename _Tp3 , typename _Tp4 , typename _Tp5 , typename _Tp6 , typename _Tp7 , typename _Tp8 , typename _Tp9 , typename _Tp10 , typename _Tp11 , typename _Tp12 >
Kernelargs (const _Tp0 &a0, const _Tp1 &a1, const _Tp2 &a2, const _Tp3 &a3, const _Tp4 &a4, const _Tp5 &a5, const _Tp6 &a6, const _Tp7 &a7, const _Tp8 &a8, const _Tp9 &a9, const _Tp10 &a10, const _Tp11 &a11, const _Tp12 &a12)
 
template<typename _Tp0 , typename _Tp1 , typename _Tp2 , typename _Tp3 , typename _Tp4 , typename _Tp5 , typename _Tp6 , typename _Tp7 , typename _Tp8 , typename _Tp9 , typename _Tp10 , typename _Tp11 , typename _Tp12 , typename _Tp13 >
Kernelargs (const _Tp0 &a0, const _Tp1 &a1, const _Tp2 &a2, const _Tp3 &a3, const _Tp4 &a4, const _Tp5 &a5, const _Tp6 &a6, const _Tp7 &a7, const _Tp8 &a8, const _Tp9 &a9, const _Tp10 &a10, const _Tp11 &a11, const _Tp12 &a12, const _Tp13 &a13)
 
template<typename _Tp0 , typename _Tp1 , typename _Tp2 , typename _Tp3 , typename _Tp4 , typename _Tp5 , typename _Tp6 , typename _Tp7 , typename _Tp8 , typename _Tp9 , typename _Tp10 , typename _Tp11 , typename _Tp12 , typename _Tp13 , typename _Tp14 >
Kernelargs (const _Tp0 &a0, const _Tp1 &a1, const _Tp2 &a2, const _Tp3 &a3, const _Tp4 &a4, const _Tp5 &a5, const _Tp6 &a6, const _Tp7 &a7, const _Tp8 &a8, const _Tp9 &a9, const _Tp10 &a10, const _Tp11 &a11, const _Tp12 &a12, const _Tp13 &a13, const _Tp14 &a14)
 
template<typename _Tp0 , typename _Tp1 , typename _Tp2 , typename _Tp3 , typename _Tp4 , typename _Tp5 , typename _Tp6 , typename _Tp7 , typename _Tp8 , typename _Tp9 , typename _Tp10 , typename _Tp11 , typename _Tp12 , typename _Tp13 , typename _Tp14 , typename _Tp15 >
Kernelargs (const _Tp0 &a0, const _Tp1 &a1, const _Tp2 &a2, const _Tp3 &a3, const _Tp4 &a4, const _Tp5 &a5, const _Tp6 &a6, const _Tp7 &a7, const _Tp8 &a8, const _Tp9 &a9, const _Tp10 &a10, const _Tp11 &a11, const _Tp12 &a12, const _Tp13 &a13, const _Tp14 &a14, const _Tp15 &a15)
 
bool compileWorkGroupSize (size_t wsz[]) const
 
bool create (const char *kname, const Program &prog)
 
bool create (const char *kname, const ProgramSource &prog, const String &buildopts, String *errmsg=0)
 
bool empty () const
 
size_t localMemSize () const
 
Kerneloperator= (const Kernel &k)
 
size_t preferedWorkGroupSizeMultiple () const
 
void * ptr () const
 
bool run (int dims, size_t globalsize[], size_t localsize[], bool sync, const Queue &q=Queue())
 
bool runTask (bool sync, const Queue &q=Queue())
 
int set (int i, const void *value, size_t sz)
 
int set (int i, const Image2D &image2D)
 
int set (int i, const UMat &m)
 
int set (int i, const KernelArg &arg)
 
template<typename _Tp >
int set (int i, const _Tp &value)
 
size_t workGroupSize () const
 

Protected Attributes

Impl * p
 

Constructor & Destructor Documentation

cv::ocl::Kernel::Kernel ( )
cv::ocl::Kernel::Kernel ( const char *  kname,
const Program prog 
)
cv::ocl::Kernel::Kernel ( const char *  kname,
const ProgramSource prog,
const String buildopts = String(),
String errmsg = 0 
)
cv::ocl::Kernel::~Kernel ( )
cv::ocl::Kernel::Kernel ( const Kernel k)

Member Function Documentation

template<typename _Tp0 >
Kernel& cv::ocl::Kernel::args ( const _Tp0 &  a0)
inline
template<typename _Tp0 , typename _Tp1 >
Kernel& cv::ocl::Kernel::args ( const _Tp0 &  a0,
const _Tp1 &  a1 
)
inline
template<typename _Tp0 , typename _Tp1 , typename _Tp2 >
Kernel& cv::ocl::Kernel::args ( const _Tp0 &  a0,
const _Tp1 &  a1,
const _Tp2 &  a2 
)
inline
template<typename _Tp0 , typename _Tp1 , typename _Tp2 , typename _Tp3 >
Kernel& cv::ocl::Kernel::args ( const _Tp0 &  a0,
const _Tp1 &  a1,
const _Tp2 &  a2,
const _Tp3 &  a3 
)
inline
template<typename _Tp0 , typename _Tp1 , typename _Tp2 , typename _Tp3 , typename _Tp4 >
Kernel& cv::ocl::Kernel::args ( const _Tp0 &  a0,
const _Tp1 &  a1,
const _Tp2 &  a2,
const _Tp3 &  a3,
const _Tp4 &  a4 
)
inline
template<typename _Tp0 , typename _Tp1 , typename _Tp2 , typename _Tp3 , typename _Tp4 , typename _Tp5 >
Kernel& cv::ocl::Kernel::args ( const _Tp0 &  a0,
const _Tp1 &  a1,
const _Tp2 &  a2,
const _Tp3 &  a3,
const _Tp4 &  a4,
const _Tp5 &  a5 
)
inline
template<typename _Tp0 , typename _Tp1 , typename _Tp2 , typename _Tp3 , typename _Tp4 , typename _Tp5 , typename _Tp6 >
Kernel& cv::ocl::Kernel::args ( const _Tp0 &  a0,
const _Tp1 &  a1,
const _Tp2 &  a2,
const _Tp3 &  a3,
const _Tp4 &  a4,
const _Tp5 &  a5,
const _Tp6 &  a6 
)
inline
template<typename _Tp0 , typename _Tp1 , typename _Tp2 , typename _Tp3 , typename _Tp4 , typename _Tp5 , typename _Tp6 , typename _Tp7 >
Kernel& cv::ocl::Kernel::args ( const _Tp0 &  a0,
const _Tp1 &  a1,
const _Tp2 &  a2,
const _Tp3 &  a3,
const _Tp4 &  a4,
const _Tp5 &  a5,
const _Tp6 &  a6,
const _Tp7 &  a7 
)
inline
template<typename _Tp0 , typename _Tp1 , typename _Tp2 , typename _Tp3 , typename _Tp4 , typename _Tp5 , typename _Tp6 , typename _Tp7 , typename _Tp8 >
Kernel& cv::ocl::Kernel::args ( const _Tp0 &  a0,
const _Tp1 &  a1,
const _Tp2 &  a2,
const _Tp3 &  a3,
const _Tp4 &  a4,
const _Tp5 &  a5,
const _Tp6 &  a6,
const _Tp7 &  a7,
const _Tp8 &  a8 
)
inline
template<typename _Tp0 , typename _Tp1 , typename _Tp2 , typename _Tp3 , typename _Tp4 , typename _Tp5 , typename _Tp6 , typename _Tp7 , typename _Tp8 , typename _Tp9 >
Kernel& cv::ocl::Kernel::args ( const _Tp0 &  a0,
const _Tp1 &  a1,
const _Tp2 &  a2,
const _Tp3 &  a3,
const _Tp4 &  a4,
const _Tp5 &  a5,
const _Tp6 &  a6,
const _Tp7 &  a7,
const _Tp8 &  a8,
const _Tp9 &  a9 
)
inline
template<typename _Tp0 , typename _Tp1 , typename _Tp2 , typename _Tp3 , typename _Tp4 , typename _Tp5 , typename _Tp6 , typename _Tp7 , typename _Tp8 , typename _Tp9 , typename _Tp10 >
Kernel& cv::ocl::Kernel::args ( const _Tp0 &  a0,
const _Tp1 &  a1,
const _Tp2 &  a2,
const _Tp3 &  a3,
const _Tp4 &  a4,
const _Tp5 &  a5,
const _Tp6 &  a6,
const _Tp7 &  a7,
const _Tp8 &  a8,
const _Tp9 &  a9,
const _Tp10 &  a10 
)
inline
template<typename _Tp0 , typename _Tp1 , typename _Tp2 , typename _Tp3 , typename _Tp4 , typename _Tp5 , typename _Tp6 , typename _Tp7 , typename _Tp8 , typename _Tp9 , typename _Tp10 , typename _Tp11 >
Kernel& cv::ocl::Kernel::args ( const _Tp0 &  a0,
const _Tp1 &  a1,
const _Tp2 &  a2,
const _Tp3 &  a3,
const _Tp4 &  a4,
const _Tp5 &  a5,
const _Tp6 &  a6,
const _Tp7 &  a7,
const _Tp8 &  a8,
const _Tp9 &  a9,
const _Tp10 &  a10,
const _Tp11 &  a11 
)
inline
template<typename _Tp0 , typename _Tp1 , typename _Tp2 , typename _Tp3 , typename _Tp4 , typename _Tp5 , typename _Tp6 , typename _Tp7 , typename _Tp8 , typename _Tp9 , typename _Tp10 , typename _Tp11 , typename _Tp12 >
Kernel& cv::ocl::Kernel::args ( const _Tp0 &  a0,
const _Tp1 &  a1,
const _Tp2 &  a2,
const _Tp3 &  a3,
const _Tp4 &  a4,
const _Tp5 &  a5,
const _Tp6 &  a6,
const _Tp7 &  a7,
const _Tp8 &  a8,
const _Tp9 &  a9,
const _Tp10 &  a10,
const _Tp11 &  a11,
const _Tp12 &  a12 
)
inline
template<typename _Tp0 , typename _Tp1 , typename _Tp2 , typename _Tp3 , typename _Tp4 , typename _Tp5 , typename _Tp6 , typename _Tp7 , typename _Tp8 , typename _Tp9 , typename _Tp10 , typename _Tp11 , typename _Tp12 , typename _Tp13 >
Kernel& cv::ocl::Kernel::args ( const _Tp0 &  a0,
const _Tp1 &  a1,
const _Tp2 &  a2,
const _Tp3 &  a3,
const _Tp4 &  a4,
const _Tp5 &  a5,
const _Tp6 &  a6,
const _Tp7 &  a7,
const _Tp8 &  a8,
const _Tp9 &  a9,
const _Tp10 &  a10,
const _Tp11 &  a11,
const _Tp12 &  a12,
const _Tp13 &  a13 
)
inline
template<typename _Tp0 , typename _Tp1 , typename _Tp2 , typename _Tp3 , typename _Tp4 , typename _Tp5 , typename _Tp6 , typename _Tp7 , typename _Tp8 , typename _Tp9 , typename _Tp10 , typename _Tp11 , typename _Tp12 , typename _Tp13 , typename _Tp14 >
Kernel& cv::ocl::Kernel::args ( const _Tp0 &  a0,
const _Tp1 &  a1,
const _Tp2 &  a2,
const _Tp3 &  a3,
const _Tp4 &  a4,
const _Tp5 &  a5,
const _Tp6 &  a6,
const _Tp7 &  a7,
const _Tp8 &  a8,
const _Tp9 &  a9,
const _Tp10 &  a10,
const _Tp11 &  a11,
const _Tp12 &  a12,
const _Tp13 &  a13,
const _Tp14 &  a14 
)
inline
template<typename _Tp0 , typename _Tp1 , typename _Tp2 , typename _Tp3 , typename _Tp4 , typename _Tp5 , typename _Tp6 , typename _Tp7 , typename _Tp8 , typename _Tp9 , typename _Tp10 , typename _Tp11 , typename _Tp12 , typename _Tp13 , typename _Tp14 , typename _Tp15 >
Kernel& cv::ocl::Kernel::args ( const _Tp0 &  a0,
const _Tp1 &  a1,
const _Tp2 &  a2,
const _Tp3 &  a3,
const _Tp4 &  a4,
const _Tp5 &  a5,
const _Tp6 &  a6,
const _Tp7 &  a7,
const _Tp8 &  a8,
const _Tp9 &  a9,
const _Tp10 &  a10,
const _Tp11 &  a11,
const _Tp12 &  a12,
const _Tp13 &  a13,
const _Tp14 &  a14,
const _Tp15 &  a15 
)
inline
bool cv::ocl::Kernel::compileWorkGroupSize ( size_t  wsz[]) const
bool cv::ocl::Kernel::create ( const char *  kname,
const Program prog 
)
bool cv::ocl::Kernel::create ( const char *  kname,
const ProgramSource prog,
const String buildopts,
String errmsg = 0 
)
bool cv::ocl::Kernel::empty ( ) const
size_t cv::ocl::Kernel::localMemSize ( ) const
Kernel& cv::ocl::Kernel::operator= ( const Kernel k)
size_t cv::ocl::Kernel::preferedWorkGroupSizeMultiple ( ) const
void* cv::ocl::Kernel::ptr ( ) const
bool cv::ocl::Kernel::run ( int  dims,
size_t  globalsize[],
size_t  localsize[],
bool  sync,
const Queue q = Queue() 
)
bool cv::ocl::Kernel::runTask ( bool  sync,
const Queue q = Queue() 
)
int cv::ocl::Kernel::set ( int  i,
const void *  value,
size_t  sz 
)
int cv::ocl::Kernel::set ( int  i,
const Image2D image2D 
)
int cv::ocl::Kernel::set ( int  i,
const UMat m 
)
int cv::ocl::Kernel::set ( int  i,
const KernelArg arg 
)
template<typename _Tp >
int cv::ocl::Kernel::set ( int  i,
const _Tp &  value 
)
inline
size_t cv::ocl::Kernel::workGroupSize ( ) const

Member Data Documentation

Impl* cv::ocl::Kernel::p
protected

The documentation for this class was generated from the following file: