OpenCV 4.13.0
Open Source Computer Vision
読み込み中...
検索中...
見つかりません
🤖 AIによる機械翻訳(非公式) — これは OpenCV 4.13.0 公式リファレンス(英語)を AI (Claude) で自動翻訳したものです。訳に誤りを含む場合があります。正確な情報は 公式英語版(原文) を参照してください。
cv::ocl::ProgramSource クラス

#include <opencv2/core/ocl.hpp>

Collaboration diagram for cv::ocl::ProgramSource:

公開型

typedef uint64 hash_t
 

公開メンバ関数

 ProgramSource () CV_NOEXCEPT
 
 ProgramSource (const char *prog)
 
 ProgramSource (const ProgramSource &prog)
 
 ProgramSource (const String &module, const String &name, const String &codeStr, const String &codeHash)
 
 ProgramSource (const String &prog)
 
 ProgramSource (ProgramSource &&prog) CV_NOEXCEPT
 
 ~ProgramSource ()
 
bool empty () const
 
ImplgetImpl () const
 
hash_t hash () const
 
ProgramSourceoperator= (const ProgramSource &prog)
 
ProgramSourceoperator= (ProgramSource &&prog) CV_NOEXCEPT
 
const Stringsource () const
 

静的公開メンバ関数

static ProgramSource fromBinary (const String &module, const String &name, const unsigned char *binary, const size_t size, const cv::String &buildOptions=cv::String())
 OpenCLプログラムバイナリを記述する。clCreateProgramWithBinary() および/または clBuildProgram() を呼び出さない。
 
static ProgramSource fromSPIR (const String &module, const String &name, const unsigned char *binary, const size_t size, const cv::String &buildOptions=cv::String())
 SPIR形式のOpenCLプログラムを記述する。clCreateProgramWithBinary() および/または clBuildProgram() を呼び出さない。
 

限定公開変数類

Implp
 

フレンド

struct Impl
 

型定義メンバ詳解

◆ 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 )
explicit

◆ ProgramSource() [3/6]

cv::ocl::ProgramSource::ProgramSource ( const String & prog)
explicit

◆ ProgramSource() [4/6]

cv::ocl::ProgramSource::ProgramSource ( const char * prog)
explicit

◆ ~ProgramSource()

cv::ocl::ProgramSource::~ProgramSource ( )

◆ ProgramSource() [5/6]

cv::ocl::ProgramSource::ProgramSource ( const ProgramSource & prog)

◆ ProgramSource() [6/6]

cv::ocl::ProgramSource::ProgramSource ( ProgramSource && prog)

メンバ関数詳解

◆ empty()

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

◆ fromBinary()

static ProgramSource cv::ocl::ProgramSource::fromBinary ( const String & module,
const String & name,
const unsigned char * binary,
const size_t size,
const cv::String & buildOptions = cv::String() )
static

OpenCLプログラムバイナリを記述する。clCreateProgramWithBinary() および/または clBuildProgram() を呼び出さない。

呼び出し側は、バイナリバッファの生存期間が ProgramSource オブジェクト(およびそのコピー)よりも長いことを保証しなければならない。

この種のバイナリは一般にプラットフォーム間で移植性がなく、OpenCLのベンダ/デバイス/ドライババージョンに固有である。

引数
moduleプログラムを所有するモジュールの名前
nameプログラムの一意な名前(module+name がOpenCLプログラムキャッシュのキーとして使われる)
binaryバッファアドレス。説明にあるバッファ生存期間の要件を参照。
sizeバッファサイズ
buildOptionsclBuildProgram() に渡される、プログラムに関連する追加のビルドオプション
戻り値
生成された ProgramSource オブジェクト

◆ fromSPIR()

static ProgramSource cv::ocl::ProgramSource::fromSPIR ( const String & module,
const String & name,
const unsigned char * binary,
const size_t size,
const cv::String & buildOptions = cv::String() )
static

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バッファサイズ
buildOptionsclBuildProgram() に渡される、プログラムに関連する追加のビルドオプション(これらのオプションは自動的に追加される: '-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]

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

◆ operator=() [2/2]

ProgramSource & cv::ocl::ProgramSource::operator= ( ProgramSource && prog)

◆ source()

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

Friends And Related Symbol Documentation

◆ Impl

friend struct Impl
friend

メンバ変数詳解

◆ p

Impl* cv::ocl::ProgramSource::p
protected

このクラス詳解は次のファイルから抽出されました: