Home
last modified time | relevance | path

Searched refs:z (Results 1 – 25 of 271) sorted by relevance

1234567891011

/device/generic/vulkan-cereal/third-party/stb/include/stb/
Dstb_image.h430 …m_memory(stbi_uc const *buffer, int len, int **delays, int *x, int *y, int *z, int *comp, int req_…
952 static void *stbi__load_gif_main(stbi__context *s, int **delays, int *x, int *y, int *z, int *co…
1227 static void stbi__vertical_flip_slices(void *image, int w, int h, int z, int bytes_per_pixel) in stbi__vertical_flip_slices() argument
1233 for (slice = 0; slice < z; ++slice) { in stbi__vertical_flip_slices()
1424 …m_memory(stbi_uc const *buffer, int len, int **delays, int *x, int *y, int *z, int *comp, int req_… in stbi_load_gif_from_memory() argument
1430 result = (unsigned char*) stbi__load_gif_main(&s, delays, x, y, z, comp, req_comp); in stbi_load_gif_from_memory()
1432 stbi__vertical_flip_slices( result, *x, *y, *z, *comp ); in stbi_load_gif_from_memory()
1676 int z = stbi__get8(s); in stbi__get16be() local
1677 return (z << 8) + stbi__get8(s); in stbi__get16be()
1686 stbi__uint32 z = stbi__get16be(s); in stbi__get32be() local
[all …]
/device/generic/vulkan-cereal/third-party/astc-encoder/Source/
Dstb_image.h430 …m_memory(stbi_uc const *buffer, int len, int **delays, int *x, int *y, int *z, int *comp, int req_…
952 static void *stbi__load_gif_main(stbi__context *s, int **delays, int *x, int *y, int *z, int *co…
1227 static void stbi__vertical_flip_slices(void *image, int w, int h, int z, int bytes_per_pixel) in stbi__vertical_flip_slices() argument
1233 for (slice = 0; slice < z; ++slice) { in stbi__vertical_flip_slices()
1424 …m_memory(stbi_uc const *buffer, int len, int **delays, int *x, int *y, int *z, int *comp, int req_… in stbi_load_gif_from_memory() argument
1430 result = (unsigned char*) stbi__load_gif_main(&s, delays, x, y, z, comp, req_comp); in stbi_load_gif_from_memory()
1432 stbi__vertical_flip_slices( result, *x, *y, *z, *comp ); in stbi_load_gif_from_memory()
1676 int z = stbi__get8(s); in stbi__get16be() local
1677 return (z << 8) + stbi__get8(s); in stbi__get16be()
1686 stbi__uint32 z = stbi__get16be(s); in stbi__get32be() local
[all …]
Dastcenccli_image_load_store.cpp699 unsigned int z; member
776 unsigned int z, in get_format() argument
781 if ((it.x == x) && (it.y == y) && (it.z == z) && (it.is_srgb == is_srgb)) in get_format()
1142 for (unsigned int z = 0; z < dim_z; z++) in load_ktx_uncompressed_image() local
1152 uint8_t* data8 = static_cast<uint8_t*>(astc_img->data[z]); in load_ktx_uncompressed_image()
1158 uint16_t* data16 = static_cast<uint16_t*>(astc_img->data[z]); in load_ktx_uncompressed_image()
1162 uint8_t *src = buf + (z * ystride) + (y * xstride); in load_ktx_uncompressed_image()
1272 img.block_z = fmt->z == 0 ? 1 : fmt->z; in load_ktx_compressed_image()
1407 for (unsigned int z = 1; z < dim_z; z++) in store_ktx_uncompressed_image() local
1409 row_pointers8[z] = row_pointers8[0] + dim_y * z; in store_ktx_uncompressed_image()
[all …]
Dastcenc_compute_variance.cpp150 #define VARBUF1(z, y, x) varbuf1[z * zst + y * yst + x] in compute_pixel_region_variance() argument
151 #define VARBUF2(z, y, x) varbuf2[z * zst + y * yst + x] in compute_pixel_region_variance() argument
161 for (int z = zd_start; z < padsize_z; z++) in compute_pixel_region_variance() local
163 int z_src = (z - zd_start) + offset_z - kernel_radius_z; in compute_pixel_region_variance()
192 VARBUF1(z, y, x) = d; in compute_pixel_region_variance()
193 VARBUF2(z, y, x) = d * d; in compute_pixel_region_variance()
205 for (int z = zd_start; z < padsize_z; z++) in compute_pixel_region_variance() local
207 int z_src = (z - zd_start) + offset_z - kernel_radius_z; in compute_pixel_region_variance()
229 VARBUF1(z, y, x) = d; in compute_pixel_region_variance()
230 VARBUF2(z, y, x) = d * d; in compute_pixel_region_variance()
[all …]
Dastcenccli_image.cpp45 for (unsigned int z = 0; z < dim_z; z++) in alloc_image() local
47 data[z] = new uint8_t[dim_x * dim_y * 4]; in alloc_image()
53 for (unsigned int z = 0; z < dim_z; z++) in alloc_image() local
55 data[z] = new uint16_t[dim_x * dim_y * 4]; in alloc_image()
62 for (unsigned int z = 0; z < dim_z; z++) in alloc_image() local
64 data[z] = new float[dim_x * dim_y * 4]; in alloc_image()
79 for (unsigned int z = 0; z < img->dim_z; z++) in free_image() local
81 delete[] reinterpret_cast<char*>(img->data[z]); in free_image()
101 for (unsigned int z = 0; z < dim_z; z++) in determine_image_components() local
103 uint8_t* data8 = static_cast<uint8_t*>(img->data[z]); in determine_image_components()
[all …]
/device/generic/vulkan-cereal/third-party/glm/include/glm/detail/
Dtype_vec3.inl38 : x(0), y(0), z(0)
46 : x(v.x), y(v.y), z(v.z)
53 : x(v.x), y(v.y), z(v.z)
64 : x(scalar), y(scalar), z(scalar)
69 : x(a), y(b), z(c)
79 z(static_cast<T>(c))
87 z(static_cast<T>(c))
97 z(static_cast<T>(b))
105 z(static_cast<T>(b.x))
113 z(static_cast<T>(b.y))
[all …]
/device/google/contexthub/firmware/os/algos/common/math/
Dvec.h50 float x, y, z; member
54 float x, y, z, w; member
58 static inline void initVec3(struct Vec3 *v, float x, float y, float z) { in initVec3() argument
62 v->z = z; in initVec3()
71 v->z += w->z; in vec3Add()
82 u->z = v->z + w->z; in vec3AddVecs()
91 v->z -= w->z; in vec3Sub()
102 u->z = v->z - w->z; in vec3SubVecs()
110 v->z *= c; in vec3ScalarMul()
117 return v->x * w->x + v->y * w->y + v->z * w->z; in vec3Dot()
[all …]
Dkasa.c19 void kasaAccumulate(struct KasaFit *kasa, float x, float y, float z) { in kasaAccumulate() argument
27 kasa->acc_mean_z = z; in kasaAccumulate()
32 z = z - kasa->acc_mean_z; in kasaAccumulate()
35 float w = x * x + y * y + z * z; in kasaAccumulate()
39 kasa->acc_z += z; in kasaAccumulate()
44 kasa->acc_xz += x * z; in kasaAccumulate()
48 kasa->acc_yz += y * z; in kasaAccumulate()
51 kasa->acc_zz += z * z; in kasaAccumulate()
52 kasa->acc_zw += z * w; in kasaAccumulate()
121 initVec3(&v, out.x, out.y, out.z); in kasaFit()
[all …]
/device/generic/vulkan-cereal/third-party/glm/include/glm/gtc/
Dnoise.inl30 tvec4<T, P> ix(Pi.x, Pi.z, Pi.x, Pi.z);
32 tvec4<T, P> fx(Pf.x, Pf.z, Pf.x, Pf.z);
44 tvec2<T, P> g01(gx.z, gy.z);
50 g10 *= norm.z;
55 T n01 = dot(g01, tvec2<T, P>(fx.z, fy.z));
76 tvec4<T, P> iz0(Pi0.z);
77 tvec4<T, P> iz1(Pi1.z);
101 tvec3<T, P> g010(gx0.z, gy0.z, gz0.z);
105 tvec3<T, P> g011(gx1.z, gy1.z, gz1.z);
111 g100 *= norm0.z;
[all …]
Dquaternion.inl17 tvec4<T, P> tmp(x.x * y.x, x.y * y.y, x.z * y.z, x.w * y.w);
18 return (tmp.x + tmp.y) + (tmp.z + tmp.w);
27 return tquat<T, P>(q.w + p.w, q.x + p.x, q.y + p.y, q.z + p.z);
36 return tquat<T, P>(q.w - p.w, q.x - p.x, q.y - p.y, q.z - p.z);
45 return tquat<T, P>(q.w * s, q.x * s, q.y * s, q.z * s);
54 return tquat<T, P>(q.w / s, q.x / s, q.y / s, q.z / s);
90 : x(0), y(0), z(0), w(1)
98 : x(q.x), y(q.y), z(q.z), w(q.w)
105 : x(q.x), y(q.y), z(q.z), w(q.w)
116 : x(v.x), y(v.y), z(v.z), w(s)
[all …]
Dpacking.inl176 // GLM_FUNC_QUALIFIER glm::uint f11_f11_f10(float x, float y, float z)
178 …- 1)) << 0) | ((floatTo11bit(y) & ((1 << 11) - 1)) << 11) | ((floatTo10bit(z) & ((1 << 10) - 1)) …
187 uint z : 2; member
208 uint z : 4; member
220 uint z : 5; member
231 uint z : 5; member
243 uint z : 10; member
255 int z : 10; member
267 uint z : 9; member
320 …ec3<int16, P> const Unpack(detail::toFloat16(v.x), detail::toFloat16(v.y), detail::toFloat16(v.z));
[all …]
Dbitfield.inl13 GLM_FUNC_DECL RET bitfieldInterleave(PARAM x, PARAM y, PARAM z);
16 GLM_FUNC_DECL RET bitfieldInterleave(PARAM x, PARAM y, PARAM z, PARAM w);
82 GLM_FUNC_QUALIFIER glm::uint32 bitfieldInterleave(glm::uint8 x, glm::uint8 y, glm::uint8 z) argument
86 glm::uint32 REG3(z);
108 GLM_FUNC_QUALIFIER glm::uint64 bitfieldInterleave(glm::uint16 x, glm::uint16 y, glm::uint16 z) argument
112 glm::uint64 REG3(z);
138 GLM_FUNC_QUALIFIER glm::uint64 bitfieldInterleave(glm::uint32 x, glm::uint32 y, glm::uint32 z) argument
142 glm::uint64 REG3(z);
168 …GLM_FUNC_QUALIFIER glm::uint32 bitfieldInterleave(glm::uint8 x, glm::uint8 y, glm::uint8 z, glm::u… argument
172 glm::uint32 REG3(z);
[all …]
/device/google/contexthub/firmware/lib/libm/
Def_pow.c66 float z,ax,z_h,z_l,p_h,p_l; local
121 z = ax; /*x is +-0,+-inf,+-1*/
122 if(hy<0) z = one/z; /* z = (1/|x|) */
125 z = (z-z)/(z-z); /* (-1)**non-int is NaN */
127 z = -z; /* (x<0)**odd = -(|x|**odd) */
129 return z;
212 z = p_l+p_h;
213 GET_FLOAT_WORD(j,z);
219 if(p_l+ovt>z-p_h) return s*huge*huge; /* overflow */
224 if(p_l<=z-p_h) return s*tiny*tiny; /* underflow */
[all …]
Dkf_rem_pio2.c63 float z,fw,f[20],fq[20],q[20]; local
87 for(i=0,j=jz,z=q[jz];j>0;i++,j--) {
88 fw = (float)((__int32_t)(twon8* z));
89 iq[i] = (__int32_t)(z-two8*fw);
90 z = q[j-1]+fw;
94 z = scalbnf(z,(int)q0); /* actual value of z */
95 z -= (float)8.0*floorf(z*(float)0.125); /* trim off integer >= 8 */
96 n = (__int32_t) z;
97 z -= (float)n;
105 else if(z>=(float)0.5) ih=2;
[all …]
Def_rem_pio2.c105 float z,w,t,r,fn; local
116 z = x - pio2_1;
118 y[0] = z - pio2_1t;
119 y[1] = (z-y[0])-pio2_1t;
121 z -= pio2_2;
122 y[0] = z - pio2_2t;
123 y[1] = (z-y[0])-pio2_2t;
127 z = x + pio2_1;
129 y[0] = z + pio2_1t;
130 y[1] = (z-y[0])+pio2_1t;
[all …]
Dkf_cos.c38 float a,hz,z,r,qx; local
45 z = x*x;
46 r = z*(C1+z*(C2+z*(C3+z*(C4+z*(C5+z*C6)))));
48 return one - ((float)0.5*z - (z*r - x*y));
55 hz = (float)0.5*z-qx;
57 return a - (hz - (z*r-x*y));
Def_atan2.c38 float z; local
86 if(k > 60) z=pi_o_2+(float)0.5*pi_lo; /* |y/x| > 2**60 */
87 else if(hx<0&&k<-60) z=0.0; /* |y|/x < -2**60 */
88 else z=atanf(fabsf(y/x)); /* safe to do y/x */
90 case 0: return z ; /* atan(+,+) */
93 GET_FLOAT_WORD(zh,z);
94 SET_FLOAT_WORD(z,zh ^ 0x80000000);
96 return z ; /* atan(-,+) */
97 case 2: return pi-(z-pi_lo);/* atan(+,-) */
99 return (z-pi_lo)-pi;/* atan(-,-) */
Dkf_sin.c38 float z,r,v; local
44 z = x*x;
45 v = z*x;
46 r = S2+z*(S3+z*(S4+z*(S5+z*S6)));
47 if(iy==0) return x+v*(S1+z*r);
48 else return x-((z*(half*y-v*r)-y)-v*S1);
/device/generic/vulkan-cereal/third-party/glm/include/glm/gtx/
Dextended_min_max.inl10 T const & z) argument
12 return glm::min(glm::min(x, y), z);
20 typename C<T>::T const & z argument
23 return glm::min(glm::min(x, y), z);
31 C<T> const & z argument
34 return glm::min(glm::min(x, y), z);
42 T const & z, argument
46 return glm::min(glm::min(x, y), glm::min(z, w));
54 typename C<T>::T const & z, argument
58 return glm::min(glm::min(x, y), glm::min(z, w));
[all …]
Ddual_quaternion.inl66 T(-0.5) * ( p.x*q.x + p.y*q.y + p.z*q.z),
67 T(+0.5) * ( p.x*q.w + p.y*q.z - p.z*q.y),
68 T(+0.5) * (-p.x*q.z + p.y*q.w + p.z*q.x),
69 T(+0.5) * ( p.x*q.y - p.y*q.x + p.z*q.w))
168 tvec3<T, P> const real_v3(q.real.x,q.real.y,q.real.z);
169 tvec3<T, P> const dual_v3(q.dual.x,q.dual.y,q.dual.z);
254 return tmat2x4<T, P>( x[0].x, x[0].y, x[0].z, x[0].w, x[1].x, x[1].y, x[1].z, x[1].w );
262 tquat<T, P> const rr(r.w * x.real.w, r.x * x.real.x, r.y * x.real.y, r.z * x.real.z);
266 T const xz = r.x * x.real.z;
267 T const yz = r.y * x.real.z;
[all …]
Dassociated_min_max.inl58 T z, U c argument
61 U Result = x < y ? (x < z ? a : c) : (y < z ? b : c);
70 vecType<T, P> const & z, vecType<U, P> const & c argument
75 Result[i] = x[i] < y[i] ? (x[i] < z[i] ? a[i] : c[i]) : (y[i] < z[i] ? b[i] : c[i]);
85 T z, U c, argument
90 T Test2 = min(z, w);;
92 U Result2 = z < w ? c : d;
103 vecType<T, P> const & z, vecType<U, P> const & c, argument
111 T Test2 = min(z[i], w[i]);
113 U Result2 = z[i] < w[i] ? c[i] : d[i];
[all …]
Dmatrix_interpolation.inl24 axis.z = (T)0.0;
39 axis.z = (T)0.7071;
43 axis.z = xz / axis.x;
51 axis.z = (T)0.7071;
55 axis.z = yz / axis.y;
63 axis.z = (T)0.0;
65 axis.z = sqrt(zz);
66 axis.x = xz / axis.z;
67 axis.y = yz / axis.z;
78 axis.z = (mat[0][1] - mat[1][0]) / s;
[all …]
Dextended_min_max.hpp34 T const & z);
42 typename C<T>::T const & z);
50 C<T> const & z);
58 T const & z,
67 typename C<T>::T const & z,
76 C<T> const & z,
85 T const & z);
93 typename C<T>::T const & z);
101 C<T> const & z);
109 T const & z,
[all …]
Dcolor_space.inl14 rgbColor = tvec3<T, P>(hsv.z);
20 T o = hsv.z * (T(1) - hsv.y);
21 T p = hsv.z * (T(1) - hsv.y * frac);
22 T q = hsv.z * (T(1) - hsv.y * (T(1) - frac));
28 rgbColor.r = hsv.z;
34 rgbColor.g = hsv.z;
39 rgbColor.g = hsv.z;
45 rgbColor.b = hsv.z;
50 rgbColor.b = hsv.z;
53 rgbColor.r = hsv.z;
[all …]
/device/google/contexthub/firmware/os/algos/
Dfusion.c207 findOrthogonalVector(up.x, up.y, up.z, &east.x, &east.y, &east.z); in fusion_init_complete()
237 out->elem[1][0] = p->z; in matrixCross()
238 out->elem[0][1] = -p->z; in matrixCross()
315 O.elem[3][2] = -psi.z; in fusionPredict()
320 O.elem[2][3] = psi.z; in fusionPredict()
349 fusion->x0.z = -fusion->x0.z; in fusionPredict()
424 F[0].x = q->w; F[1].x = -q->z; F[2].x = q->y; in getF()
425 F[0].y = q->z; F[1].y = q->w; F[2].y = -q->x; in getF()
426 F[0].z = -q->y; F[1].z = q->x; F[2].z = q->w; in getF()
427 F[0].w = -q->x; F[1].w = -q->y; F[2].w = -q->z; in getF()
[all …]

1234567891011