MCPcopy Create free account
hub / github.com/KhronosGroup/OpenCL-CTS / GetChannelOrderName

Function GetChannelOrderName

test_common/harness/errorHelpers.cpp:119–154  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

117}
118
119const char *GetChannelOrderName(cl_channel_order order)
120{
121 switch (order)
122 {
123 case CL_R: return "CL_R";
124 case CL_A: return "CL_A";
125 case CL_Rx: return "CL_Rx";
126 case CL_RG: return "CL_RG";
127 case CL_RA: return "CL_RA";
128 case CL_RGx: return "CL_RGx";
129 case CL_RGB: return "CL_RGB";
130 case CL_RGBx: return "CL_RGBx";
131 case CL_RGBA: return "CL_RGBA";
132 case CL_ARGB: return "CL_ARGB";
133 case CL_BGRA: return "CL_BGRA";
134 case CL_INTENSITY: return "CL_INTENSITY";
135 case CL_LUMINANCE: return "CL_LUMINANCE";
136#if defined CL_1RGB_APPLE
137 case CL_1RGB_APPLE: return "CL_1RGB_APPLE";
138#endif
139#if defined CL_BGR1_APPLE
140 case CL_BGR1_APPLE: return "CL_BGR1_APPLE";
141#endif
142#if defined CL_ABGR_APPLE
143 case CL_ABGR_APPLE: return "CL_ABGR_APPLE";
144#endif
145 case CL_DEPTH: return "CL_DEPTH";
146 case CL_DEPTH_STENCIL: return "CL_DEPTH_STENCIL";
147 case CL_sRGB: return "CL_sRGB";
148 case CL_sRGBA: return "CL_sRGBA";
149 case CL_sRGBx: return "CL_sRGBx";
150 case CL_sBGRA: return "CL_sBGRA";
151 case CL_ABGR: return "CL_ABGR";
152 default: return NULL;
153 }
154}
155
156int IsChannelOrderSupported(cl_channel_order order)
157{

Callers 15

test_image_format_readFunction · 0.85
test_image_format_writeFunction · 0.85
test_writeimageFunction · 0.85
validate_resultsFunction · 0.85
REGISTER_TESTFunction · 0.85
test_readimageFunction · 0.85

Calls

no outgoing calls

Tested by 15

test_image_format_readFunction · 0.68
test_image_format_writeFunction · 0.68
test_writeimageFunction · 0.68
validate_resultsFunction · 0.68
REGISTER_TESTFunction · 0.68
test_readimageFunction · 0.68