| 254 | |
| 255 | |
| 256 | int is_format_signed(const cl_image_format *format) |
| 257 | { |
| 258 | switch (format->image_channel_data_type) |
| 259 | { |
| 260 | case CL_SNORM_INT8: |
| 261 | case CL_SIGNED_INT8: |
| 262 | case CL_SNORM_INT16: |
| 263 | case CL_SIGNED_INT16: |
| 264 | case CL_SIGNED_INT32: |
| 265 | case CL_HALF_FLOAT: |
| 266 | case CL_FLOAT: |
| 267 | #ifdef CL_SFIXED14_APPLE |
| 268 | case CL_SFIXED14_APPLE: |
| 269 | #endif |
| 270 | return 1; |
| 271 | |
| 272 | default: return 0; |
| 273 | } |
| 274 | } |
| 275 | |
| 276 | uint32_t get_pixel_size(const cl_image_format *format) |
| 277 | { |
no outgoing calls
no test coverage detected