27 #include <OpenCLFramework/clfContext.hh>
28 #include <Utils/Param.hh>
29 #include <Utils/IOUtils.hh>
35 int main(
int argc,
char* argv[]) {
38 bool *printimgformats = par.
AddParamBool(
"imageformats",
"print available image formats",
false,
'i');
40 if (IOUtils::ParseCommandLineEvalHelp(par, argc, argv) == 0) {
54 if (*printimgformats) {
57 cout <<
"Available Image Formats for Device 0:" << endl;
58 for (
unsigned int i=0;i<formats.size();i++) {
59 cout << formats[i] << endl;
69 clfContext context(
false, clfContext::clfContextTypeCPU);
77 if (*printimgformats) {
80 cout <<
"Available Image Formats for Device 0:" << endl;
81 for (
unsigned int i=0;i<formats.size();i++) {
82 cout << formats[i] << endl;
std::vector< std::string > GetSupportedImageFormats(bool readonly=false, bool writeonly=false)
void PrintPlatformsInfo(std::ostream &out=std::cout)
print info on available platforms
void PrintDeviceInfo(unsigned int device=0, bool verbose=false, std::ostream &out=std::cout)
print info on computing device
bool * AddParamBool(const std::string &name, const std::string &help, bool deflt=false, char cmdshort=0, int Group=GRP_NOSHOW)
unsigned int GetNumDevices()
const std::string & GetDetailedString() const
detailed combination of all info available
void Usage(std::ostream &os=std::cout)
print Help-Information to stdout
clf Exception wrapper, is thrown in case of most clf errors
This class Param provides generic support for parameters.
clfImage2D * CreateImage2D()
create buffer object