Home
last modified time | relevance | path

Searched refs:float2 (Results 1 – 25 of 93) sorted by relevance

1234

/external/libxcam/cl_kernel/
Dkernel_fisheye.cl22 __inline float2 calculate_fisheye_pos (float2 gps_pos, const FisheyeInfo *info)
31 float2 dst;
35 float2 ret;
39 return ret + (float2)(info->center_x, info->center_y);
44 const FisheyeInfo info, const float2 fisheye_image_size,
45 __write_only image2d_t table, const float2 radian_per_pixel, const float2 table_center)
48 float2 gps_pos = (convert_float2 (out_pos) - table_center) * radian_per_pixel + PI / 2.0f;
49 float2 pos = calculate_fisheye_pos (gps_pos, &info);
50 float2 min_pos = (float2)(info.center_x - info.radius, info.center_y - info.radius);
51 float2 max_pos = (float2)(info.center_x + info.radius, info.center_y + info.radius);
[all …]
Dkernel_bayer_pipe.cl88 inline float2 delta_coff (float2 in, __local float *table)
90 float2 out;
97 inline float2 dot_denoise (float2 value, float2 in1, float2 in2, float2 in3, float2 in4, __local fl…
99 float2 coff1, coff2, coff3, coff4, coff5;
105 float2 sum1 = (mad (in1, coff1,
112 inline float2 dot_ee (float2 value, float2 in1, float2 in2, float2 in3, float2 in4, float2 out, CLE…
115 float2 ee = mad(in1 + in2 + in3 + in4, -0.25f, value);
123 inline float2 dot_denoise_ee (float2 value, float2 in1, float2 in2, float2 in3, float2 in4, __local…
125 float2 out = dot_denoise(value, in1, in2, in3, in4, table, coff0);
135 float2 value;
[all …]
Dkernel_geo_map.cl18 #define CONST_DATA_UV (float2)(0.5f, 0.5f)
25 __read_only image2d_t geo_table, float2 table_pos, float step_x,
26 bool *out_of_bound, float2 *input_pos, float8 *out_y)
49 float2 gray_threshold, float8 output, float8 *lsc_data)
54 float2 pos = convert_float2((int2)(g_pos.x * PIXEL_RES_STEP_X, g_pos.y)) * step_x;
68 __read_only image2d_t geo_table, float2 table_scale_size,
70 __read_only image2d_t lsc_table, float2 gray_threshold,
72 __write_only image2d_t output_y, __write_only image2d_t output_uv, float2 out_size)
78 float2 from_pos;
80 float2 input_pos[8];
[all …]
Dkernel_retinex.cl84 float2 pos_ga = (float2)(x * 4.0f * ga_x_step, y / re_config.height);
130 float2 avg_y_out, avg_y_in, gain_y;
133 avg_y_in = (float2)((y_in.x + y_in.y) * 0.5f, (y_in.z + y_in.w) * 0.5f);
134 avg_y_out = (float2)((y_out.x + y_out.y) * 0.5f, (y_out.z + y_out.w) * 0.5f);
142 float2 v_coef = 1.01f / (1.13f * uv_in.xz + 0.01f);
143 float2 v_gain_1 = v_coef - avg_y_in * v_coef;
144 float2 v_gain_2 = -v_coef;
145 float2 v_gain_min = (v_gain_1 < v_gain_2) ? v_gain_1 : v_gain_2;
146 float2 v_gain_max = (v_gain_1 < v_gain_2) ? v_gain_2 : v_gain_1;
151 float2 u_coef = 1.01f / (2.03f * uv_in.yw + 0.01f);
[all …]
/external/skqp/src/sksl/
Dsksl.inc109 uint packUnorm2x16(float2 v);
110 uint packSnorm2x16(float2 v);
113 float2 unpackUnorm2x16(uint p);
114 float2 unpackSnorm2x16(uint p);
119 uint packHalf2x16(float2 v);
120 float2 unpackHalf2x16(uint v);
147 float2x2 outerProduct(float2 c, float2 r);
150 float2x3 outerProduct(float3 c, float2 r);
151 float3x2 outerProduct(float2 c, float3 r);
152 float2x4 outerProduct(float4 c, float2 r);
[all …]
/external/skia/src/sksl/
Dsksl.inc109 uint packUnorm2x16(float2 v);
110 uint packSnorm2x16(float2 v);
113 float2 unpackUnorm2x16(uint p);
114 float2 unpackSnorm2x16(uint p);
119 uint packHalf2x16(float2 v);
120 float2 unpackHalf2x16(uint v);
147 float2x2 outerProduct(float2 c, float2 r);
150 float2x3 outerProduct(float3 c, float2 r);
151 float3x2 outerProduct(float2 c, float3 r);
152 float2x4 outerProduct(float4 c, float2 r);
[all …]
/external/swiftshader/src/OpenGL/compiler/
DInitialize.cpp28 TType *float2 = new TType(EbtFloat, 2); in InsertBuiltInFunctions() local
118 symbolTable.insertBuiltIn(ESSL3_BUILTINS, EOpModf, float2, "modf", float2, outFloat2); in InsertBuiltInFunctions()
129 symbolTable.insertBuiltIn(ESSL3_BUILTINS, EOpPackSnorm2x16, uint1, "packSnorm2x16", float2); in InsertBuiltInFunctions()
130 symbolTable.insertBuiltIn(ESSL3_BUILTINS, EOpPackUnorm2x16, uint1, "packUnorm2x16", float2); in InsertBuiltInFunctions()
131 symbolTable.insertBuiltIn(ESSL3_BUILTINS, EOpPackHalf2x16, uint1, "packHalf2x16", float2); in InsertBuiltInFunctions()
132 symbolTable.insertBuiltIn(ESSL3_BUILTINS, EOpUnpackSnorm2x16, float2, "unpackSnorm2x16", uint1); in InsertBuiltInFunctions()
133 symbolTable.insertBuiltIn(ESSL3_BUILTINS, EOpUnpackUnorm2x16, float2, "unpackUnorm2x16", uint1); in InsertBuiltInFunctions()
134 symbolTable.insertBuiltIn(ESSL3_BUILTINS, EOpUnpackHalf2x16, float2, "unpackHalf2x16", uint1); in InsertBuiltInFunctions()
171 symbolTable.insertBuiltIn(ESSL3_BUILTINS, EOpOuterProduct, mat2, "outerProduct", float2, float2); in InsertBuiltInFunctions()
174 symbolTable.insertBuiltIn(ESSL3_BUILTINS, EOpOuterProduct, mat2x3, "outerProduct", float3, float2); in InsertBuiltInFunctions()
[all …]
/external/clang/test/SemaOpenCL/
Dcond.cl11 typedef float float2 __attribute__((ext_vector_type(2)));
45 float2 ptest06(int2 C, float X, float Y)
51 float2 ptest07(int2 C, int X, float Y)
57 float2 ptest08(int2 C, int X, float2 Y)
63 float2 ptest09(float2 A, float2 B, float2 C, float2 D)
85 float2 ntest04(int2 C, int2 X, float2 Y)
87 …conversions between vector types ('int2' (vector of 2 'int' values) and 'float2' (vector of 2 'flo…
90 float2 ntest05(int2 C, int2 X, float Y)
105 float2 ntest08(float2 C, float2 X, float2 Y)
107 …return C ? X : Y; // expected-error {{used type 'float2' (vector of 2 'float' values) where floati…
Dvector_literals_const.cl16 typedef float float2 __attribute((ext_vector_type(2)));
21 __constant float4 f_2_1_1 = (float4)((float2)(1,2),3,4);
22 __constant float4 f_1_2_1 = (float4)(1,(float2)(2,3),4);
23 __constant float4 f_1_1_2 = (float4)(1,2,(float2)(3,4));
24 __constant float4 f_2_2 = (float4)((float2)(1,2),(float2)(3,4));
Dshifts.cl10 typedef __attribute__((ext_vector_type(2))) float float2;
55 float2 ntest03(float2 c, char s) {
56 …return c << s; // expected-error {{used type 'float2' (vector of 2 'float' values) where integer i…
/external/llvm/test/ExecutionEngine/
Dtest-interp-vec-setcond-fp.ll7 %float2 = fadd <3 x float> <float 0.0, float 0.0, float 0.0>, <float 0.0, float 0.0, float 0.0>
8 %test49 = fcmp oeq <3 x float> %float1, %float2
9 %test50 = fcmp oge <3 x float> %float1, %float2
10 %test51 = fcmp ogt <3 x float> %float1, %float2
11 %test52 = fcmp ole <3 x float> %float1, %float2
12 %test53 = fcmp olt <3 x float> %float1, %float2
13 %test54 = fcmp une <3 x float> %float1, %float2
/external/swiftshader/third_party/LLVM/test/ExecutionEngine/
Dtest-setcond-fp.ll8 %float2 = fadd float 0.000000e+00, 0.000000e+00 ; <float> [#uses=6]
9 %test49 = fcmp oeq float %float1, %float2 ; <i1> [#uses=0]
10 %test50 = fcmp oge float %float1, %float2 ; <i1> [#uses=0]
11 %test51 = fcmp ogt float %float1, %float2 ; <i1> [#uses=0]
12 %test52 = fcmp ole float %float1, %float2 ; <i1> [#uses=0]
13 %test53 = fcmp olt float %float1, %float2 ; <i1> [#uses=0]
14 %test54 = fcmp une float %float1, %float2 ; <i1> [#uses=0]
/external/llvm/test/ExecutionEngine/MCJIT/
Dtest-setcond-fp.ll8 %float2 = fadd float 0.000000e+00, 0.000000e+00 ; <float> [#uses=6]
9 %test49 = fcmp oeq float %float1, %float2 ; <i1> [#uses=0]
10 %test50 = fcmp oge float %float1, %float2 ; <i1> [#uses=0]
11 %test51 = fcmp ogt float %float1, %float2 ; <i1> [#uses=0]
12 %test52 = fcmp ole float %float1, %float2 ; <i1> [#uses=0]
13 %test53 = fcmp olt float %float1, %float2 ; <i1> [#uses=0]
14 %test54 = fcmp une float %float1, %float2 ; <i1> [#uses=0]
/external/llvm/test/ExecutionEngine/OrcMCJIT/
Dtest-setcond-fp.ll8 %float2 = fadd float 0.000000e+00, 0.000000e+00 ; <float> [#uses=6]
9 %test49 = fcmp oeq float %float1, %float2 ; <i1> [#uses=0]
10 %test50 = fcmp oge float %float1, %float2 ; <i1> [#uses=0]
11 %test51 = fcmp ogt float %float1, %float2 ; <i1> [#uses=0]
12 %test52 = fcmp ole float %float1, %float2 ; <i1> [#uses=0]
13 %test53 = fcmp olt float %float1, %float2 ; <i1> [#uses=0]
14 %test54 = fcmp une float %float1, %float2 ; <i1> [#uses=0]
/external/clang/test/Sema/
Dext_vector_components.c3 typedef __attribute__(( ext_vector_type(2) )) float float2; typedef
11 float2 vec2, vec2_2; in test()
71 float2 lo(float3 x) { return x.lo; } in lo()
72 float2 hi(float3 x) { return x.hi; } in hi()
73 float2 ev(float3 x) { return x.even; } in ev()
74 float2 od(float3 x) { return x.odd; } in od()
Dext_vector_casts.c5 typedef __attribute__(( ext_vector_type(2) )) float float2; typedef
16 float2 vec2; in test()
56 typedef __attribute__(( ext_vector_type(2) )) float2 vecfloat2; // expected-error{{invalid vector e…
58 void inc(float2 f2) { in inc()
101 float2 vf = f; in splats()
/external/skqp/src/gpu/effects/
DGrRectBlurEffect.fp101 float2 translatedPos = sk_FragCoord.xy - rect.xy;
104 float2 smallDims = float2(width - profileSize, height - profileSize);
106 float2 wh = smallDims - float2(center, center);
108 half hlookup = texture(blurProfile, float2(hcoord, 0.5)).a;
110 half vlookup = texture(blurProfile, float2(vcoord, 0.5)).a;
118 half2 wh = smallDims - float2(center, center);
120 half hlookup = texture(blurProfile, float2(hcoord, 0.5)).a;
122 half vlookup = texture(blurProfile, float2(vcoord, 0.5)).a;
DGrEllipseEffect.fp13 in float2 center;
14 in float2 radii;
16 float2 prevCenter;
17 float2 prevRadii = float2(-1);
23 layout(when=useScale) uniform float2 scale;
68 float2 d = sk_FragCoord.xy - ellipse.xy;
76 float2 Z = d * ellipse.zw;
/external/skia/src/gpu/effects/
DGrRectBlurEffect.fp109 float2 translatedPos = sk_FragCoord.xy - rect.xy;
112 float2 smallDims = float2(width - profileSize, height - profileSize);
114 float2 wh = smallDims - float2(center, center);
116 half hlookup = texture(blurProfile, float2(hcoord, 0.5)).a;
118 half vlookup = texture(blurProfile, float2(vcoord, 0.5)).a;
126 half2 wh = smallDims - float2(center, center);
128 half hlookup = texture(blurProfile, float2(hcoord, 0.5)).a;
130 half vlookup = texture(blurProfile, float2(vcoord, 0.5)).a;
DGrEllipseEffect.fp13 in float2 center;
14 in float2 radii;
16 float2 prevCenter;
17 float2 prevRadii = float2(-1);
23 layout(when=useScale) uniform float2 scale;
68 float2 d = sk_FragCoord.xy - ellipse.xy;
76 float2 Z = d * ellipse.zw;
/external/spirv-llvm/test/SPIRV/transcoding/
DOpImageSampleExplicitLod_arg.ll5 ;; float2 coord,
6 ;; float2 dx,
7 ;; float2 dy)
79 !3 = !{!"kernel_arg_type", !"float4*", !"image2d_t", !"sampler_t", !"float2", !"float2", !"float2"}
80 …!{!"kernel_arg_base_type", !"float4*", !"image2d_t", !"sampler_t", !"float2", !"float2", !"float2"}
/external/llvm/test/CodeGen/SystemZ/
Dframe-15.ll45 %float2 = load float , float *%ptr2
47 %double2 = fpext float %float2 to double
72 %float2 = load float , float *%ptr2
74 %double2 = fpext float %float2 to double
99 %float2 = load float , float *%ptr2
101 %double2 = fpext float %float2 to double
126 %float2 = load float , float *%ptr2
128 %double2 = fpext float %float2 to double
153 %float2 = load float , float *%ptr2
155 %double2 = fpext float %float2 to double
[all …]
/external/clang/test/SemaCXX/
Derr_init_conversion_failed.cpp39 typedef float float2 __attribute__((ext_vector_type(2))); typedef
42 void test14(const float2 in, const float2 out) { in test14()
/external/clang/lib/Headers/
Dopencl-c.h118 typedef float float2 __attribute__((ext_vector_type(2))); typedef
1123 char2 __ovld __cnfn convert_char2_rte(float2);
1124 char2 __ovld __cnfn convert_char2_sat_rte(float2);
1125 char2 __ovld __cnfn convert_char2_rtz(float2);
1126 char2 __ovld __cnfn convert_char2_sat_rtz(float2);
1127 char2 __ovld __cnfn convert_char2_rtp(float2);
1128 char2 __ovld __cnfn convert_char2_sat_rtp(float2);
1129 char2 __ovld __cnfn convert_char2_rtn(float2);
1130 char2 __ovld __cnfn convert_char2_sat_rtn(float2);
1131 char2 __ovld __cnfn convert_char2(float2);
[all …]
/external/clang/test/CodeGenOpenCL/
Dext-vector-shuffle.cl5 typedef __attribute__(( ext_vector_type(2) )) float float2;
8 float2 test1(float4 V) {
13 float2 W = V.ww;

1234