OpenCV  4.1.1-pre
Open Source Computer Vision
Looking for a C++ dev who knows OpenCV?
I'm looking for work. Hire me!
cv::ocl::Program Class Reference

#include <opencv2/core/ocl.hpp>

Collaboration diagram for cv::ocl::Program:

Public Member Functions

 Program ()
 
 Program (const ProgramSource &src, const String &buildflags, String &errmsg)
 
 Program (const Program &prog)
 
 ~Program ()
 
bool create (const ProgramSource &src, const String &buildflags, String &errmsg)
 
void getBinary (std::vector< char > &binary) const
 Query device-specific program binary. More...
 
ImplgetImpl () const
 
String getPrefix () const
 
Programoperator= (const Program &prog)
 
void * ptr () const
 
bool read (const String &buf, const String &buildflags)
 
const ProgramSourcesource () const
 
bool write (String &buf) const
 

Static Public Member Functions

static String getPrefix (const String &buildflags)
 

Protected Attributes

Implp
 

Friends

struct Impl
 

Constructor & Destructor Documentation

◆ Program() [1/3]

cv::ocl::Program::Program ( )

◆ Program() [2/3]

cv::ocl::Program::Program ( const ProgramSource src,
const String buildflags,
String errmsg 
)

◆ Program() [3/3]

cv::ocl::Program::Program ( const Program prog)

◆ ~Program()

cv::ocl::Program::~Program ( )

Member Function Documentation

◆ create()

bool cv::ocl::Program::create ( const ProgramSource src,
const String buildflags,
String errmsg 
)

◆ getBinary()

void cv::ocl::Program::getBinary ( std::vector< char > &  binary) const

Query device-specific program binary.

Returns RAW OpenCL executable binary without additional attachments.

See also
ProgramSource::fromBinary
Parameters
[out]binaryoutput buffer

◆ getImpl()

Impl* cv::ocl::Program::getImpl ( ) const
inline

◆ getPrefix() [1/2]

String cv::ocl::Program::getPrefix ( ) const

◆ getPrefix() [2/2]

static String cv::ocl::Program::getPrefix ( const String buildflags)
static

◆ operator=()

Program& cv::ocl::Program::operator= ( const Program prog)

◆ ptr()

void* cv::ocl::Program::ptr ( ) const

◆ read()

bool cv::ocl::Program::read ( const String buf,
const String buildflags 
)

◆ source()

const ProgramSource& cv::ocl::Program::source ( ) const

◆ write()

bool cv::ocl::Program::write ( String buf) const

Friends And Related Function Documentation

◆ Impl

friend struct Impl
friend

Member Data Documentation

◆ p

Impl* cv::ocl::Program::p
protected

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