/usr/lib/x86_64-linux-gnu/beignet/include/ocl_image.h is in beignet-opencl-icd 1.1.1-2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 | /*
* Copyright © 2012 - 2014 Intel Corporation
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library. If not, see <http://www.gnu.org/licenses/>.
*
*/
#ifndef __OCL_IMAGE_H__
#define __OCL_IMAGE_H__
#include "ocl_types.h"
OVERLOADABLE int4 read_imagei(image1d_t cl_image, const sampler_t sampler, int coord);
OVERLOADABLE int4 read_imagei(image1d_t cl_image, const sampler_t sampler, float coord);
OVERLOADABLE int4 read_imagei(image1d_t cl_image, int coord);
OVERLOADABLE void write_imagei(image1d_t cl_image, int coord, int4 color);
OVERLOADABLE void write_imagei(image1d_t cl_image, float coord, int4 color);
OVERLOADABLE uint4 read_imageui(image1d_t cl_image, const sampler_t sampler, int coord);
OVERLOADABLE uint4 read_imageui(image1d_t cl_image, const sampler_t sampler, float coord);
OVERLOADABLE uint4 read_imageui(image1d_t cl_image, int coord);
OVERLOADABLE void write_imageui(image1d_t cl_image, int coord, uint4 color);
OVERLOADABLE void write_imageui(image1d_t cl_image, float coord, uint4 color);
OVERLOADABLE float4 read_imagef(image1d_t cl_image, const sampler_t sampler, int coord);
OVERLOADABLE float4 read_imagef(image1d_t cl_image, const sampler_t sampler, float coord);
OVERLOADABLE float4 read_imagef(image1d_t cl_image, int coord);
OVERLOADABLE void write_imagef(image1d_t cl_image, int coord, float4 color);
OVERLOADABLE void write_imagef(image1d_t cl_image, float coord, float4 color);
OVERLOADABLE int4 read_imagei(image1d_buffer_t cl_image, int coord);
OVERLOADABLE void write_imagei(image1d_buffer_t cl_image, int coord, int4 color);
OVERLOADABLE uint4 read_imageui(image1d_buffer_t cl_image, int coord);
OVERLOADABLE void write_imageui(image1d_buffer_t cl_image, int coord, uint4 color);
OVERLOADABLE void write_imageui(image1d_buffer_t cl_image, float coord, uint4 color);
OVERLOADABLE float4 read_imagef(image1d_buffer_t cl_image, int coord);
OVERLOADABLE void write_imagef(image1d_buffer_t cl_image, int coord, float4 color);
OVERLOADABLE int get_image_channel_data_type(image1d_t image);
OVERLOADABLE int get_image_channel_order(image1d_t image);
OVERLOADABLE int get_image_width(image1d_t image);
OVERLOADABLE int get_image_channel_data_type(image1d_buffer_t image);
OVERLOADABLE int get_image_channel_order(image1d_buffer_t image);
OVERLOADABLE int get_image_width(image1d_buffer_t image);
OVERLOADABLE int4 read_imagei(image2d_t cl_image, const sampler_t sampler, int2 coord);
OVERLOADABLE int4 read_imagei(image2d_t cl_image, const sampler_t sampler, float2 coord);
OVERLOADABLE int4 read_imagei(image2d_t cl_image, int2 coord);
OVERLOADABLE void write_imagei(image2d_t cl_image, int2 coord, int4 color);
OVERLOADABLE void write_imagei(image2d_t cl_image, float2 coord, int4 color);
OVERLOADABLE uint4 read_imageui(image2d_t cl_image, const sampler_t sampler, int2 coord);
OVERLOADABLE uint4 read_imageui(image2d_t cl_image, const sampler_t sampler, float2 coord);
OVERLOADABLE uint4 read_imageui(image2d_t cl_image, int2 coord);
OVERLOADABLE void write_imageui(image2d_t cl_image, int2 coord, uint4 color);
OVERLOADABLE void write_imageui(image2d_t cl_image, float2 coord, uint4 color);
OVERLOADABLE float4 read_imagef(image2d_t cl_image, const sampler_t sampler, int2 coord);
OVERLOADABLE float4 read_imagef(image2d_t cl_image, const sampler_t sampler, float2 coord);
OVERLOADABLE float4 read_imagef(image2d_t cl_image, int2 coord);
OVERLOADABLE void write_imagef(image2d_t cl_image, int2 coord, float4 color);
OVERLOADABLE void write_imagef(image2d_t cl_image, float2 coord, float4 color);
OVERLOADABLE int4 read_imagei(image1d_array_t cl_image, const sampler_t sampler, int2 coord);
OVERLOADABLE int4 read_imagei(image1d_array_t cl_image, const sampler_t sampler, float2 coord);
OVERLOADABLE int4 read_imagei(image1d_array_t cl_image, int2 coord);
OVERLOADABLE void write_imagei(image1d_array_t cl_image, int2 coord, int4 color);
OVERLOADABLE void write_imagei(image1d_array_t cl_image, float2 coord, int4 color);
OVERLOADABLE uint4 read_imageui(image1d_array_t cl_image, const sampler_t sampler, int2 coord);
OVERLOADABLE uint4 read_imageui(image1d_array_t cl_image, const sampler_t sampler, float2 coord);
OVERLOADABLE uint4 read_imageui(image1d_array_t cl_image, int2 coord);
OVERLOADABLE void write_imageui(image1d_array_t cl_image, int2 coord, uint4 color);
OVERLOADABLE void write_imageui(image1d_array_t cl_image, float2 coord, uint4 color);
OVERLOADABLE float4 read_imagef(image1d_array_t cl_image, const sampler_t sampler, int2 coord);
OVERLOADABLE float4 read_imagef(image1d_array_t cl_image, const sampler_t sampler, float2 coord);
OVERLOADABLE float4 read_imagef(image1d_array_t cl_image, int2 coord);
OVERLOADABLE void write_imagef(image1d_array_t cl_image, int2 coord, float4 color);
OVERLOADABLE void write_imagef(image1d_array_t cl_image, float2 coord, float4 color);
OVERLOADABLE int get_image_channel_data_type(image2d_t image);
OVERLOADABLE int get_image_channel_order(image2d_t image);
OVERLOADABLE int get_image_width(image2d_t image);
OVERLOADABLE int get_image_height(image2d_t image);
OVERLOADABLE int2 get_image_dim(image2d_t image);
OVERLOADABLE int get_image_channel_data_type(image1d_array_t image);
OVERLOADABLE int get_image_channel_order(image1d_array_t image);
OVERLOADABLE int get_image_width(image1d_array_t image);
OVERLOADABLE size_t get_image_array_size(image1d_array_t image);
OVERLOADABLE int4 read_imagei(image3d_t cl_image, const sampler_t sampler, int4 coord);
OVERLOADABLE int4 read_imagei(image3d_t cl_image, const sampler_t sampler, float4 coord);
OVERLOADABLE int4 read_imagei(image3d_t cl_image, int4 coord);
OVERLOADABLE void write_imagei(image3d_t cl_image, int4 coord, int4 color);
OVERLOADABLE void write_imagei(image3d_t cl_image, float4 coord, int4 color);
OVERLOADABLE uint4 read_imageui(image3d_t cl_image, const sampler_t sampler, int4 coord);
OVERLOADABLE uint4 read_imageui(image3d_t cl_image, const sampler_t sampler, float4 coord);
OVERLOADABLE uint4 read_imageui(image3d_t cl_image, int4 coord);
OVERLOADABLE void write_imageui(image3d_t cl_image, int4 coord, uint4 color);
OVERLOADABLE void write_imageui(image3d_t cl_image, float4 coord, uint4 color);
OVERLOADABLE float4 read_imagef(image3d_t cl_image, const sampler_t sampler, int4 coord);
OVERLOADABLE float4 read_imagef(image3d_t cl_image, const sampler_t sampler, float4 coord);
OVERLOADABLE float4 read_imagef(image3d_t cl_image, int4 coord);
OVERLOADABLE void write_imagef(image3d_t cl_image, int4 coord, float4 color);
OVERLOADABLE void write_imagef(image3d_t cl_image, float4 coord, float4 color);
OVERLOADABLE int4 read_imagei(image3d_t cl_image, const sampler_t sampler, int3 coord);
OVERLOADABLE int4 read_imagei(image3d_t cl_image, const sampler_t sampler, float3 coord);
OVERLOADABLE int4 read_imagei(image3d_t cl_image, int3 coord);
OVERLOADABLE void write_imagei(image3d_t cl_image, int3 coord, int4 color);
OVERLOADABLE void write_imagei(image3d_t cl_image, float3 coord, int4 color);
OVERLOADABLE uint4 read_imageui(image3d_t cl_image, const sampler_t sampler, int3 coord);
OVERLOADABLE uint4 read_imageui(image3d_t cl_image, const sampler_t sampler, float3 coord);
OVERLOADABLE uint4 read_imageui(image3d_t cl_image, int3 coord);
OVERLOADABLE void write_imageui(image3d_t cl_image, int3 coord, uint4 color);
OVERLOADABLE void write_imageui(image3d_t cl_image, float3 coord, uint4 color);
OVERLOADABLE float4 read_imagef(image3d_t cl_image, const sampler_t sampler, int3 coord);
OVERLOADABLE float4 read_imagef(image3d_t cl_image, const sampler_t sampler, float3 coord);
OVERLOADABLE float4 read_imagef(image3d_t cl_image, int3 coord);
OVERLOADABLE void write_imagef(image3d_t cl_image, int3 coord, float4 color);
OVERLOADABLE void write_imagef(image3d_t cl_image, float3 coord, float4 color);
OVERLOADABLE int4 read_imagei(image2d_array_t cl_image, const sampler_t sampler, int4 coord);
OVERLOADABLE int4 read_imagei(image2d_array_t cl_image, const sampler_t sampler, float4 coord);
OVERLOADABLE int4 read_imagei(image2d_array_t cl_image, int4 coord);
OVERLOADABLE void write_imagei(image2d_array_t cl_image, int4 coord, int4 color);
OVERLOADABLE void write_imagei(image2d_array_t cl_image, float4 coord, int4 color);
OVERLOADABLE uint4 read_imageui(image2d_array_t cl_image, const sampler_t sampler, int4 coord);
OVERLOADABLE uint4 read_imageui(image2d_array_t cl_image, const sampler_t sampler, float4 coord);
OVERLOADABLE uint4 read_imageui(image2d_array_t cl_image, int4 coord);
OVERLOADABLE void write_imageui(image2d_array_t cl_image, int4 coord, uint4 color);
OVERLOADABLE void write_imageui(image2d_array_t cl_image, float4 coord, uint4 color);
OVERLOADABLE float4 read_imagef(image2d_array_t cl_image, const sampler_t sampler, int4 coord);
OVERLOADABLE float4 read_imagef(image2d_array_t cl_image, const sampler_t sampler, float4 coord);
OVERLOADABLE float4 read_imagef(image2d_array_t cl_image, int4 coord);
OVERLOADABLE void write_imagef(image2d_array_t cl_image, int4 coord, float4 color);
OVERLOADABLE void write_imagef(image2d_array_t cl_image, float4 coord, float4 color);
OVERLOADABLE int4 read_imagei(image2d_array_t cl_image, const sampler_t sampler, int3 coord);
OVERLOADABLE int4 read_imagei(image2d_array_t cl_image, const sampler_t sampler, float3 coord);
OVERLOADABLE int4 read_imagei(image2d_array_t cl_image, int3 coord);
OVERLOADABLE void write_imagei(image2d_array_t cl_image, int3 coord, int4 color);
OVERLOADABLE void write_imagei(image2d_array_t cl_image, float3 coord, int4 color);
OVERLOADABLE uint4 read_imageui(image2d_array_t cl_image, const sampler_t sampler, int3 coord);
OVERLOADABLE uint4 read_imageui(image2d_array_t cl_image, const sampler_t sampler, float3 coord);
OVERLOADABLE uint4 read_imageui(image2d_array_t cl_image, int3 coord);
OVERLOADABLE void write_imageui(image2d_array_t cl_image, int3 coord, uint4 color);
OVERLOADABLE void write_imageui(image2d_array_t cl_image, float3 coord, uint4 color);
OVERLOADABLE float4 read_imagef(image2d_array_t cl_image, const sampler_t sampler, int3 coord);
OVERLOADABLE float4 read_imagef(image2d_array_t cl_image, const sampler_t sampler, float3 coord);
OVERLOADABLE float4 read_imagef(image2d_array_t cl_image, int3 coord);
OVERLOADABLE void write_imagef(image2d_array_t cl_image, int3 coord, float4 color);
OVERLOADABLE void write_imagef(image2d_array_t cl_image, float3 coord, float4 color);
OVERLOADABLE int get_image_channel_data_type(image3d_t image);
OVERLOADABLE int get_image_channel_order(image3d_t image);
OVERLOADABLE int get_image_width(image3d_t image);
OVERLOADABLE int get_image_height(image3d_t image);
OVERLOADABLE int get_image_depth(image3d_t image);
OVERLOADABLE int4 get_image_dim(image3d_t image);
OVERLOADABLE int get_image_channel_data_type(image2d_array_t image);
OVERLOADABLE int get_image_channel_order(image2d_array_t image);
OVERLOADABLE int get_image_width(image2d_array_t image);
OVERLOADABLE int get_image_height(image2d_array_t image);
OVERLOADABLE int2 get_image_dim(image2d_array_t image);
OVERLOADABLE size_t get_image_array_size(image2d_array_t image);
#endif
|