/external/clang/test/CodeGen/ |
palignr.c | 19 typedef __attribute__((vector_size(8))) int int2; typedef 22 int2 align5(int2 a, int2 b) { return _mm_alignr_pi8(a, b, 8); } 25 int2 align6(int2 a, int2 b) { return _mm_alignr_pi8(a, b, 9); } 28 int2 align7(int2 a, int2 b) { return _mm_alignr_pi8(a, b, 16); [all...] |
/external/spirv-llvm/lib/SPIRV/runtime/OpenCL/inc/ |
spirv.h | 2 __attribute__((overloadable, always_inline)) int2 __spirv_ImageQuerySize(image1d_array_t img); 3 __attribute__((overloadable, always_inline)) int2 __spirv_ImageQuerySize(image2d_t img); 4 __attribute__((overloadable, always_inline)) int2 __spirv_ImageQuerySize(image2d_depth_t img); 9 __attribute__((overloadable, always_inline)) int2 __spirv_ImageQuerySizeLod(image1d_array_t img, int lod); 10 __attribute__((overloadable, always_inline)) int2 __spirv_ImageQuerySizeLod(image2d_t img, int lod); 11 __attribute__((overloadable, always_inline)) int2 __spirv_ImageQuerySizeLod(image2d_depth_t img, int lod);
|
/external/libxcam/cl_kernel/ |
kernel_demo.cl | 14 int2 pos = (int2)(x, y);
|
kernel_image_scaler.cl | 19 float2 normCoor = convert_float2((int2)(x, y)) / (float2)(output_width, output_height); 21 write_imagef(output, (int2)(x, y), scaled_pixel);
|
kernel_wire_frame.cl | 26 write_imagef (output_y, (int2)(coord.x / 2, coord.y), (float4)(border_y)); 28 write_imagef (output_uv, (int2)(coord.x / 2, coord.y / 2), (float4)(border_u, border_v, 0.0f, 0.0f));
|
kernel_wavelet_haar.cl | 33 line[0].lo = read_imagef(input, sampler, (int2)(2 * x, 2 * y)); 34 line[0].hi = read_imagef(input, sampler, (int2)(2 * x + 1, 2 * y)); 35 line[1].lo = read_imagef(input, sampler, (int2)(2 * x, 2 * y + 1)); 36 line[1].hi = read_imagef(input, sampler, (int2)(2 * x + 1, 2 * y + 1)); 71 write_imagef(ll, (int2)(x, y), line_ll); 72 write_imagef(hl, (int2)(x, y), line_hl + 0.5f); 73 write_imagef(lh, (int2)(x, y), line_lh + 0.5f); 74 write_imagef(hh, (int2)(x, y), line_hh + 0.5f); 108 line_ll = read_imagef(ll, sampler, (int2)(x, y)); 109 line_hl = read_imagef(hl, sampler, (int2)(x, y)) - 0.5f [all...] |
kernel_csc.cl | 13 float4 pixel_in1 = read_imagef(input, sampler, (int2)(2 * x, 2 * y)); 14 float4 pixel_in2 = read_imagef(input, sampler, (int2)(2 * x + 1, 2 * y)); 15 float4 pixel_in3 = read_imagef(input, sampler, (int2)(2 * x, 2 * y + 1)); 16 float4 pixel_in4 = read_imagef(input, sampler, (int2)(2 * x + 1, 2 * y + 1)); 42 write_imagef(output_y, (int2)(2 * x, 2 * y), pixel_out_y1); 43 write_imagef(output_y, (int2)(2 * x + 1, 2 * y), pixel_out_y2); 44 write_imagef(output_y, (int2)(2 * x, 2 * y + 1), pixel_out_y3); 45 write_imagef(output_y, (int2)(2 * x + 1, 2 * y + 1), pixel_out_y4); 46 write_imagef(output_uv, (int2)(2 * x, y), pixel_out_u); 47 write_imagef(output_uv, (int2)(2 * x + 1, y), pixel_out_v) [all...] |
kernel_tonemapping.cl | 34 float4 src_data_Gr = read_imagef (input, sampler, (int2)(g_id_x, g_id_y)); 35 float4 src_data_R = read_imagef (input, sampler, (int2)(g_id_x, g_id_y + image_height)); 36 float4 src_data_B = read_imagef (input, sampler, (int2)(g_id_x, g_id_y + image_height * 2)); 37 float4 src_data_Gb = read_imagef (input, sampler, (int2)(g_id_x, g_id_y + image_height * 3)); 56 float4 data_Gr = read_imagef (input, sampler, (int2)(start_x + offset_x, start_y + offset_y)); 57 float4 data_R = read_imagef (input, sampler, (int2)(start_x + offset_x, start_y + offset_y + image_height)); 58 float4 data_B = read_imagef (input, sampler, (int2)(start_x + offset_x, start_y + offset_y + image_height * 2)); 59 float4 data_Gb = read_imagef (input, sampler, (int2)(start_x + offset_x, start_y + offset_y + image_height * 3)); 102 write_imagef(output, (int2)(g_id_x, g_id_y), src_data_Gr); 103 write_imagef(output, (int2)(g_id_x, g_id_y + image_height), src_data_R) [all...] |
kernel_defog_dcp.cl | 26 int2 pos; 28 y[0] = convert_float8(as_uchar8(convert_ushort4(read_imageui(input_y, sampler, (int2)(pos_x, pos_y * 2))))); 29 y[1] = convert_float8(as_uchar8(convert_ushort4(read_imageui(input_y, sampler, (int2)(pos_x, pos_y * 2 + 1))))); 30 float8 uv = convert_float8(as_uchar8(convert_ushort4(read_imageui(input_uv, sampler, (int2)(pos_x, pos_y))))) - 128.0f; 48 pos = (int2)(pos_x, 2 * pos_y + i); 96 in_r[0] = convert_float8(as_uchar8(convert_ushort4(read_imageui(input_r, sampler, (int2)(pos_x, pos_y))))); 97 in_r[1] = convert_float8(as_uchar8(convert_ushort4(read_imageui(input_r, sampler, (int2)(pos_x, pos_y + 1))))); 98 in_g[0] = convert_float8(as_uchar8(convert_ushort4(read_imageui(input_g, sampler, (int2)(pos_x, pos_y))))); 99 in_g[1] = convert_float8(as_uchar8(convert_ushort4(read_imageui(input_g, sampler, (int2)(pos_x, pos_y + 1))))); 100 in_b[0] = convert_float8(as_uchar8(convert_ushort4(read_imageui(input_b, sampler, (int2)(pos_x, pos_y))))) [all...] |
kernel_newtonemapping.cl | 37 float4 src_data_Gr = read_imagef (input, sampler, (int2)(g_id_x, g_id_y)); 38 float4 src_data_R = read_imagef (input, sampler, (int2)(g_id_x, g_id_y + image_height)); 39 float4 src_data_B = read_imagef (input, sampler, (int2)(g_id_x, g_id_y + image_height * 2)); 40 float4 src_data_Gb = read_imagef (input, sampler, (int2)(g_id_x, g_id_y + image_height * 3)); 97 write_imagef(output, (int2)(g_id_x, g_id_y), src_data_Gr); 98 write_imagef(output, (int2)(g_id_x, g_id_y + image_height), src_data_R); 99 write_imagef(output, (int2)(g_id_x, g_id_y + image_height * 2), src_data_B); 100 write_imagef(output, (int2)(g_id_x, g_id_y + image_height * 3), src_data_Gb);
|
kernel_tnr.cl | 21 float4 pixel_t0_Y1 = read_imagef(inputFrame0, sampler, (int2)(2 * x, 2 * y)); 22 float4 pixel_t0_Y2 = read_imagef(inputFrame0, sampler, (int2)(2 * x + 1, 2 * y)); 23 float4 pixel_t0_Y3 = read_imagef(inputFrame0, sampler, (int2)(2 * x, 2 * y + 1)); 24 float4 pixel_t0_Y4 = read_imagef(inputFrame0, sampler, (int2)(2 * x + 1, 2 * y + 1)); 26 float4 pixel_t0_U = read_imagef(inputFrame0, sampler, (int2)(2 * x, y + vertical_offset)); 27 float4 pixel_t0_V = read_imagef(inputFrame0, sampler, (int2)(2 * x + 1, y + vertical_offset)); 29 float4 pixel_Y1 = read_imagef(inputFrame, sampler, (int2)(2 * x, 2 * y)); 30 float4 pixel_Y2 = read_imagef(inputFrame, sampler, (int2)(2 * x + 1, 2 * y)); 31 float4 pixel_Y3 = read_imagef(inputFrame, sampler, (int2)(2 * x, 2 * y + 1)); 32 float4 pixel_Y4 = read_imagef(inputFrame, sampler, (int2)(2 * x + 1, 2 * y + 1)) [all...] |
kernel_bi_filter.cl | 45 float8 center_y = convert_float8(as_uchar8(convert_ushort4(read_imageui(input_y, sampler, (int2)(pos_x, pos_y))))); 47 y1 = convert_float8(as_uchar8(convert_ushort4(read_imageui(input_y, sampler, (int2)(pos_x - 1, pos_y - PATCH_RADIUS + i))))); 48 y2 = convert_float8(as_uchar8(convert_ushort4(read_imageui(input_y, sampler, (int2)(pos_x, pos_y - PATCH_RADIUS + i))))); 49 dark1 = convert_float8(as_uchar8(convert_ushort4(read_imageui(input_dark, sampler, (int2)(pos_x - 1, pos_y - PATCH_RADIUS + i))))); 50 dark2 = convert_float8(as_uchar8(convert_ushort4(read_imageui(input_dark, sampler, (int2)(pos_x, pos_y - PATCH_RADIUS + i))))); 60 y1 = convert_float8(as_uchar8(convert_ushort4(read_imageui(input_y, sampler, (int2)(pos_x + 1, pos_y - PATCH_RADIUS + i))))); 61 dark1 = convert_float8(as_uchar8(convert_ushort4(read_imageui(input_dark, sampler, (int2)(pos_x + 1, pos_y - PATCH_RADIUS + i))))); 72 write_imageui(output_dark, (int2)(pos_x, pos_y), convert_uint4(as_ushort4(convert_uchar8(out_data))));
|
kernel_fisheye.cl | 47 int2 out_pos = (int2)(get_global_id (0), get_global_id (1)); 63 int2 pos = (int2) (get_global_id (0), get_global_id (1)); 94 (convert_float2((int2)(g_x * PIXEL_PER_WI, g_y)) - dst_center) * radian_per_pixel + PI / 2.0f; 104 write_imageui (output_y, (int2)(g_x, g_y), convert_uint4(convert_uchar4(src_data * 255.0f))); 108 write_imageui (output_uv, (int2)(g_x, g_y_uv), convert_uint4(convert_uchar4(src_data * 255.0f))); 119 write_imageui (output_y, (int2)(g_x, g_y + 1), convert_uint4(convert_uchar4(src_data * 255.0f)));
|
kernel_geo_map.cl | 48 image2d_t lsc_table, int2 g_pos, float step_x, 54 float2 pos = convert_float2((int2)(g_pos.x * PIXEL_RES_STEP_X, g_pos.y)) * step_x; 86 out_map_pos = (convert_float2((int2)(g_x * PIXEL_RES_STEP_X, g_y)) - out_size / 2.0f) * table_scale_step + 0.5f; 92 get_lsc_data (lsc_table, (int2)(g_x, g_y), table_scale_step.x, gray_threshold, output_data, &lsc_data); 95 write_imageui (output_y, (int2)(g_x, g_y), convert_uint4(as_ushort4(convert_uchar8(output_data * 255.0f)))); 101 write_imageui (output_uv, (int2)(g_x, g_y_uv), convert_uint4(as_ushort4(convert_uchar8(output_data * 255.0f)))); 107 get_lsc_data (lsc_table, (int2)(g_x, g_y + 1), table_scale_step.x, gray_threshold, output_data, &lsc_data); 110 write_imageui (output_y, (int2)(g_x, g_y + 1), convert_uint4(as_ushort4(convert_uchar8(output_data * 255.0f))));
|
kernel_gauss_lap_pyramid.cl | 60 write_imageui (dump_orig, (int2)(g_x, g_y + 0), read_imageui(input, sampler, (int2)(in_x, g_y))); 61 write_imageui (dump_orig, (int2)(g_x, g_y + 1), read_imageui(input, sampler, (int2)(in_x, g_y + 1))); 62 write_imageui (dump_orig, (int2)(g_x, g_y + 2), read_imageui(input, sampler, (int2)(in_x, g_y + 2))); 63 write_imageui (dump_orig, (int2)(g_x, g_y + 3), read_imageui(input, sampler, (int2)(in_x, g_y + 3))); 79 tmp_data = convert_float8(as_uchar8(convert_ushort4(read_imageui(input, sampler, (int2)(in_x - 1, cur_g_y))))); 82 tmp_data = convert_float8(as_uchar8(convert_ushort4(read_imageui(input, sampler, (int2)(in_x, cur_g_y))))) [all...] |
kernel_bayer_pipe.cl | 68 int2 pos = (int2)(x0, y0); 73 gr = read_imagef (input, sampler, (int2)(x0, y0)); 74 r = read_imagef (input, sampler, (int2)(x0, y0 + input_height)); 75 b = read_imagef (input, sampler, (int2)(x0, y0 + input_height * 2)); 76 gb = read_imagef (input, sampler, (int2)(x0, y0 + input_height * 3)); 146 write_imagef (out, (int2)(out_x, out_y), out_data); 150 write_imagef (out, (int2)(out_x, out_y + 1), out_data); 162 write_imagef (out, (int2)(out_x, out_y + out_height * 2), out_data); 166 write_imagef (out, (int2)(out_x, out_y + 1 + out_height * 2), out_data) [all...] |
/frameworks/rs/tests/java_api/SSHealingBrush/src/rs/example/android/com/healingbrush/ |
find_region.rs | 42 int2 mImgOffset; 43 int2 mSearchOffset; // offset to the region we will search 45 rs_allocation mBorderCoords; // int2 48 int2 __attribute__((kernel)) toInt_ss(int2 in) { return in - mImgOffset; } 84 int2 size = roiBounds.zw - roiBounds.xy; 85 int2 minr = max((int2){0, 0}, roiBounds.xy - size * (1 + pad)); 86 int2 maxr = min((int2){imgWidth, imgHeight}, roiBounds.zw + size * (1 + pad)) [all...] |
/frameworks/rs/tests/java_api/HealingBrush/src/rs/example/android/com/healingbrush/ |
find_region.rs | 23 rs_allocation border_coords; //int2 30 int2 __attribute__((invoke_cpu)) findBestFit(rs_allocation poly, rs_allocation image) { 46 int2 fit_pos = gfindMin(fit, cx, cy, cwidth, cheight); 90 float3 __attribute__((kernel))extractBorder(int2 in) { 94 int2 __attribute__((kernel)) toInt(float2 in) { 95 int2 out = {(int)in.x, (int) in.y}; 100 static int2 gfindMin(rs_allocation fit, int cx, int cy, int cwidth, int cheight) { 104 int2 fit_pos = {0, 0}; 133 int2 fit_pos = gfindMin(fit, cx, cy, cwidth, cheight); 145 int2 coord = rsGetElementAt_int2(border_coords, i) [all...] |
/cts/tests/tests/renderscript/src/android/renderscript/cts/generated/ |
TestIlogb.rs | 27 int2 __attribute__((kernel)) testIlogbFloat2Int2(float2 inV) {
|
TestPown.rs | 30 int2 inExponent = rsGetElementAt_int2(gAllocInExponent, x); 50 int2 inExponent = rsGetElementAt_int2(gAllocInExponent, x);
|
TestNativeRootn.rs | 30 int2 inN = rsGetElementAt_int2(gAllocInN, x);
|
/frameworks/rs/tests/lldb/tests/harness/ |
RS_funs.py | 38 uint2 abs(int2 v); 126 int2 clamp(int2 value, int min_value, int max_value); 127 int2 clamp(int2 value, int2 min_value, int2 max_value); 180 int2 clz(int2 value); 297 float2 frexp(float2 v, int2* exponent) [all...] |
/frameworks/rs/tests/java_api/RSUnitTests/src/com/android/rs/unittest/ |
reduce_backward.rs | 71 static void fMMOutConverter(int2 *result, 100 static void fz2Init(int2 *accum) { accum->x = accum->y = -1; } 102 static void fz2Accum(int2 *accum, 112 static void fz2Combine(int2 *accum, const int2 *accum2) { 159 static void modeOutConvert(int2 *result, const Histogram *h) {
|
/external/swiftshader/src/OpenGL/compiler/ |
Initialize.cpp | 34 TType *int2 = new TType(EbtInt, 2); local 342 symbolTable.insertBuiltIn(ESSL3_BUILTINS, int2, "textureSize", gsampler2D, int1); 344 symbolTable.insertBuiltIn(ESSL3_BUILTINS, int2, "textureSize", gsamplerCube, int1); 346 symbolTable.insertBuiltIn(ESSL3_BUILTINS, int2, "textureSize", sampler2DShadow, int1); 347 symbolTable.insertBuiltIn(ESSL3_BUILTINS, int2, "textureSize", samplerCubeShadow, int1); 357 symbolTable.insertBuiltIn(ESSL3_BUILTINS, gvec4, "textureOffset", gsampler2D, float2, int2); 359 symbolTable.insertBuiltIn(ESSL3_BUILTINS, float1, "textureOffset", sampler2DShadow, float3, int2); 360 symbolTable.insertBuiltIn(ESSL3_BUILTINS, gvec4, "textureOffset", gsampler2DArray, float3, int2); 364 symbolTable.insertBuiltIn(ESSL3_BUILTINS, gvec4, "textureOffset", gsampler2D, float2, int2, float1); 366 symbolTable.insertBuiltIn(ESSL3_BUILTINS, float1, "textureOffset", sampler2DShadow, float3, int2, float1) [all...] |
/external/parameter-framework/upstream/xmlserializer/ |
XmlSerializingContext.cpp | 63 // xmlErrorPtr->int2 contains the column; see xmlerror.h 65 std::to_string(error->int2) + ": " + error->message;
|