OpenCV  4.5.4
Open Source Computer Vision
Public Member Functions | Static Public Member Functions | Protected Attributes | Friends | List of all members
cv::ocl::Program Class Reference

#include <opencv2/core/ocl.hpp>

Public Member Functions

 Program () CV_NOEXCEPT
 
 Program (const ProgramSource &src, const String &buildflags, String &errmsg)
 
 Program (const Program &prog)
 
 Program (Program &&prog) CV_NOEXCEPT
 
 ~Program ()
 
bool create (const ProgramSource &src, const String &buildflags, String &errmsg)
 
bool empty () const
 
void getBinary (std::vector< char > &binary) const
 Query device-specific program binary. More...
 
ImplgetImpl () const
 
String getPrefix () const
 
Programoperator= (const Program &prog)
 
Programoperator= (Program &&prog) CV_NOEXCEPT
 
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/4]

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

◆ Program() [2/4]

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

◆ Program() [3/4]

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

◆ Program() [4/4]

cv::ocl::Program::Program ( Program &&  prog)

◆ ~Program()

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

Member Function Documentation

◆ create()

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

◆ empty()

bool cv::ocl::Program::empty ( ) const
inline

◆ 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=() [1/2]

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

◆ operator=() [2/2]

Program& cv::ocl::Program::operator= ( 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: