#include <opencv2/core/ocl.hpp>
◆ hash_t
◆ ProgramSource() [1/6]
| cv::ocl::ProgramSource::ProgramSource |
( |
| ) |
|
◆ ProgramSource() [2/6]
| cv::ocl::ProgramSource::ProgramSource |
( |
const String & | module, |
|
|
const String & | name, |
|
|
const String & | codeStr, |
|
|
const String & | codeHash ) |
|
显式 |
◆ ProgramSource() [3/6]
| cv::ocl::ProgramSource::ProgramSource |
( |
const String & | prog | ) |
|
|
显式 |
◆ ProgramSource() [4/6]
| cv::ocl::ProgramSource::ProgramSource |
( |
const char * | prog | ) |
|
|
显式 |
◆ ~ProgramSource()
| cv::ocl::ProgramSource::~ProgramSource |
( |
| ) |
|
◆ ProgramSource() [5/6]
| cv::ocl::ProgramSource::ProgramSource |
( |
const ProgramSource & | prog | ) |
|
◆ ProgramSource() [6/6]
◆ empty()
| bool cv::ocl::ProgramSource::empty |
( |
| ) |
const |
|
inline |
◆ fromBinary()
描述 OpenCL 程序二进制文件。不要调用 clCreateProgramWithBinary() 和/或 clBuildProgram()。
调用者应保证二进制缓冲区的生命周期大于 ProgramSource 对象(及其任何副本)。
这种二进制文件通常在平台之间不可移植 - 它特定于 OpenCL 供应商/设备/驱动程序版本。
- 参数
-
| module | 程序所有者模块的名称 |
| name | 程序的唯一名称(module+name 用作 OpenCL 程序缓存的键) |
| binary | 缓冲区地址。请参阅描述中的缓冲区生命周期要求。 |
| size | 缓冲区大小 |
| buildOptions | 传递给 clBuildProgram() 的其他程序相关构建选项 |
- 返回
- 已创建的 ProgramSource 对象
◆ fromSPIR()
描述 SPIR 格式的 OpenCL 程序。不要调用 clCreateProgramWithBinary() 和/或 clBuildProgram()。
默认情况下支持 SPIR 1.2(在 buildOptions 中传递 '-spir-std=X.Y' 以覆盖此行为)
调用者应保证二进制缓冲区的生命周期大于 ProgramSource 对象(及其任何副本)。
此格式的程序可以在具有 'khr_spir' 扩展的 OpenCL 实现之间移植:https://www.khronos.org/registry/OpenCL/sdk/2.0/docs/man/xhtml/cl_khr_spir.html(但它们在不同的平台之间不可移植:32 位/64 位)
注意:这些程序不能支持供应商特定的扩展,例如 'cl_intel_subgroups'。
- 参数
-
| module | 程序所有者模块的名称 |
| name | 程序的唯一名称(module+name 用作 OpenCL 程序缓存的键) |
| binary | 缓冲区地址。请参阅描述中的缓冲区生命周期要求。 |
| size | 缓冲区大小 |
| buildOptions | 传递给 clBuildProgram() 的其他程序相关构建选项(这些选项会自动添加:'-x spir' 和 '-spir-std=1.2') |
- 返回
- 已创建的 ProgramSource 对象。
◆ getImpl()
| Impl * cv::ocl::ProgramSource::getImpl |
( |
| ) |
const |
|
inline |
◆ hash()
| hash_t cv::ocl::ProgramSource::hash |
( |
| ) |
const |
◆ operator=() [1/2]
◆ operator=() [2/2]
◆ source()
| const String & cv::ocl::ProgramSource::source |
( |
| ) |
const |
◆ Impl
| Impl* cv::ocl::ProgramSource::p |
|
保护 |
该类的文档由以下文件生成