13 #ifndef mitkOclImageFormats_h
14 #define mitkOclImageFormats_h
21 #include <itkLightObject.h>
22 #include <itkObjectFactory.h>
26 #include <MitkOpenCLExports.h>
28 #define MAX_FORMATS 10
29 #define MAX_DATA_TYPES 12
44 itkFactorylessNewMacro(Self);
51 bool IsFormatSupported(cl_image_format* format);
62 bool GetNearestSupported(cl_image_format* inputformat, cl_image_format* outputformat);
68 void SetGPUContext( cl_context context );
75 void CollectAvailableFormats();
96 void SortFormats( cl_image_format* formats, cl_uint count,
int val=1 ,
int dims = 2);
100 unsigned int GetOffset( cl_image_format format );
102 using itk::LightObject::PrintSelf;
107 unsigned char* m_Image2DSupport;
110 unsigned char* m_Image3DSupport;
113 cl_context m_GpuContext;