Home
last modified time | relevance | path

Searched refs:v (Results 1 – 25 of 304) sorted by relevance

12345678910>>...13

/device/google/contexthub/firmware/os/algos/common/math/
Dvec.h58 static inline void initVec3(struct Vec3 *v, float x, float y, float z) { in initVec3() argument
59 CHRE_ASSERT_NOT_NULL(v); in initVec3()
60 v->x = x; in initVec3()
61 v->y = y; in initVec3()
62 v->z = z; in initVec3()
66 static inline void vec3Add(struct Vec3 *v, const struct Vec3 *w) { in vec3Add() argument
67 CHRE_ASSERT_NOT_NULL(v); in vec3Add()
69 v->x += w->x; in vec3Add()
70 v->y += w->y; in vec3Add()
71 v->z += w->z; in vec3Add()
[all …]
Dvec.c55 void vecAdd(float *u, const float *v, const float *w, size_t dim) { in vecAdd() argument
57 CHRE_ASSERT_NOT_NULL(v); in vecAdd()
61 u[i] = v[i] + w[i]; in vecAdd()
65 void vecAddInPlace(float *v, const float *w, size_t dim) { in vecAddInPlace() argument
66 CHRE_ASSERT_NOT_NULL(v); in vecAddInPlace()
70 v[i] += w[i]; in vecAddInPlace()
74 void vecSub(float *u, const float *v, const float *w, size_t dim) { in vecSub() argument
76 CHRE_ASSERT_NOT_NULL(v); in vecSub()
80 u[i] = v[i] - w[i]; in vecSub()
84 void vecScalarMul(float *u, const float *v, float c, size_t dim) { in vecScalarMul() argument
[all …]
Dmat.c82 void mat33Apply(struct Vec3 *out, const struct Mat33 *A, const struct Vec3 *v) { in mat33Apply() argument
85 CHRE_ASSERT_NOT_NULL(v); in mat33Apply()
86 out->x = A->elem[0][0] * v->x + A->elem[0][1] * v->y + A->elem[0][2] * v->z; in mat33Apply()
87 out->y = A->elem[1][0] * v->x + A->elem[1][1] * v->y + A->elem[1][2] * v->z; in mat33Apply()
88 out->z = A->elem[2][0] * v->x + A->elem[2][1] * v->y + A->elem[2][2] * v->z; in mat33Apply()
447 void mat44Apply(struct Vec4 *out, const struct Mat44 *A, const struct Vec4 *v) { in mat44Apply() argument
450 CHRE_ASSERT_NOT_NULL(v); in mat44Apply()
452 out->x = A->elem[0][0] * v->x + A->elem[0][1] * v->y + A->elem[0][2] * v->z + in mat44Apply()
453 A->elem[0][3] * v->w; in mat44Apply()
455 out->y = A->elem[1][0] * v->x + A->elem[1][1] * v->y + A->elem[1][2] * v->z + in mat44Apply()
[all …]
/device/generic/opengl-transport/host/commands/emugen/
DEntryPoint.cpp110 const VarType *v = TypeFactory::instance()->getVarTypeByName(vartype); in parse() local
111 if (v->id() == 0) { in parse()
115 !(v->name() == "void" && !v->isPointer())) { in parse()
121 m_vars.push_back(Var(varname, v, std::string(""), Var::POINTER_IN, "", "", "")); in parse()
152 Var *v = NULL; in var() local
155 v = &m_vars[i]; in var()
159 return v; in var()
164 const Var *v = NULL; in var() local
167 v = &m_vars[i]; in var()
171 return v; in var()
[all …]
DApiGen.cpp1036 Var *v = &e->vars()[i]; in genDecoderImpl() local
1037 … if (!v->isVoid()) printString += (v->isPointer() ? "%p(%u)" : v->type()->printFormat()) + " "; in genDecoderImpl()
1101 Var *v = & evars[j]; in genDecoderImpl() local
1102 if (v->isVoid()) { in genDecoderImpl()
1105 const char* var_name = v->name().c_str(); in genDecoderImpl()
1106 const char* var_type_name = v->type()->name().c_str(); in genDecoderImpl()
1107 const unsigned var_type_bytes = v->type()->bytes(); in genDecoderImpl()
1117 if (v->isPointer() && v->isDMA()) { in genDecoderImpl()
1135 if (!v->isPointer()) { in genDecoderImpl()
1161 if (!v->isDMA()) { in genDecoderImpl()
[all …]
/device/generic/goldfish/camera/
Dexif.cpp132 std::tuple<uint32_t, uint32_t, uint32_t> convertDegToDegMmSs(double v) { in convertDegToDegMmSs() argument
133 const uint32_t ideg = floor(v); in convertDegToDegMmSs()
134 v = (v - ideg) * 60; in convertDegToDegMmSs()
135 const uint32_t minutes = floor(v); in convertDegToDegMmSs()
136 v = (v - minutes) * 60; in convertDegToDegMmSs()
137 const uint32_t secondsM = round(v * 1000000); in convertDegToDegMmSs()
165 const std::string v = base::GetProperty("ro.product.manufacturer", ""); in createExifData() local
167 v.c_str(), v.size() + 1, EXIF_FORMAT_ASCII); in createExifData()
170 const std::string v = base::GetProperty("ro.product.model", ""); in createExifData() local
172 v.c_str(), v.size() + 1, EXIF_FORMAT_ASCII); in createExifData()
[all …]
/device/generic/goldfish-opengl/system/codecs/c2/decoders/vpxdec/
DC2GoldfishVpxDec.cpp287 DDD("calling sizesetter old w %d", oldMe.v.width); in SizeSetter()
288 DDD("calling sizesetter old h %d", oldMe.v.height); in SizeSetter()
289 DDD("calling sizesetter change to w %d", me.v.width); in SizeSetter()
290 DDD("calling sizesetter change to h %d", me.v.height); in SizeSetter()
292 auto mewidth = me.F(me.v.width); in SizeSetter()
293 auto meheight = me.F(me.v.height); in SizeSetter()
295 if (!mewidth.supportsAtAll(me.v.width)) { in SizeSetter()
296 res = res.plus(C2SettingResultBuilder::BadValue(me.F(me.v.width))); in SizeSetter()
298 me.set().width = oldMe.v.width; in SizeSetter()
301 if (!meheight.supportsAtAll(me.v.height)) { in SizeSetter()
[all …]
/device/generic/goldfish-opengl/system/codecs/c2/decoders/avcdec/
DC2GoldfishAvcDec.cpp278 DDD("calling sizesetter now %d", oldMe.v.height); in SizeSetter()
279 DDD("new calling sizesetter now %d", me.v.height); in SizeSetter()
282 if (!me.F(me.v.width).supportsAtAll(me.v.width)) { in SizeSetter()
283 ALOGW("w %d is not supported, using old one %d", me.v.width, oldMe.v.width); in SizeSetter()
284 res = res.plus(C2SettingResultBuilder::BadValue(me.F(me.v.width))); in SizeSetter()
285 me.set().width = oldMe.v.width; in SizeSetter()
287 if (!me.F(me.v.height).supportsAtAll(me.v.height)) { in SizeSetter()
288 ALOGW("h %d is not supported, using old one %d", me.v.height, oldMe.v.height); in SizeSetter()
289 res = res.plus(C2SettingResultBuilder::BadValue(me.F(me.v.height))); in SizeSetter()
290 me.set().height = oldMe.v.height; in SizeSetter()
[all …]
/device/google/contexthub/firmware/external/freebsd/lib/msun/src/
Dmath_private.h147 #define SET_HIGH_WORD(d,v) \ argument
151 sh_u.parts.msw = (v); \
157 #define SET_LOW_WORD(d,v) \ argument
161 sl_u.parts.lsw = (v); \
260 #define SET_LDBL_EXPSIGN(d,v) \ argument
264 se_u.xbits.expsign = (v); \
270 #define LD80C(m, ex, v) { \ argument
272 .xbits.expsign = (0x3fff + (ex)) | ((v) < 0 ? 0x8000 : 0), \
276 #define LD80C(m, ex, v) { .e = (v), } argument
319 #define RETURNF(v) return (v) argument
[all …]
/device/generic/goldfish-opengl/system/codecs/c2/decoders/hevcdec/
DC2GoldfishHevcDec.cpp237 DDD("calling sizesetter now %d", oldMe.v.height); in SizeSetter()
238 DDD("new calling sizesetter now %d", me.v.height); in SizeSetter()
241 if (!me.F(me.v.width).supportsAtAll(me.v.width)) { in SizeSetter()
242 res = res.plus(C2SettingResultBuilder::BadValue(me.F(me.v.width))); in SizeSetter()
243 me.set().width = oldMe.v.width; in SizeSetter()
245 if (!me.F(me.v.height).supportsAtAll(me.v.height)) { in SizeSetter()
246 res = res.plus(C2SettingResultBuilder::BadValue(me.F(me.v.height))); in SizeSetter()
247 me.set().height = oldMe.v.height; in SizeSetter()
259 me.set().width = c2_min(c2_max(me.v.width, size.v.width), 4096u); in MaxPictureSizeSetter()
260 me.set().height = c2_min(c2_max(me.v.height, size.v.height), 4096u); in MaxPictureSizeSetter()
[all …]
/device/google/contexthub/firmware/lib/libm/
Def_pow.c67 float y1,t1,t2,r,s,t,u,v,w; local
145 v = t*ivln2_l-w*ivln2;
146 t1 = u+v;
149 t2 = v-(t1-u);
167 v = one/(ax+bp[k]);
168 s = u*v;
175 s_l = v*((u-s_h*t_h)-s_h*t_l);
187 v = s_l*t_h+t_l*s;
189 p_h = u+v;
192 p_l = v-(p_h-u);
[all …]
/device/google/trout/hal/vehicle/2.0/
DDefaultVehicleHalServer.cpp122 const auto& v = request.value; in handleGenerateFakeDataRequest() local
123 if (!v.int32Values.size()) { in handleGenerateFakeDataRequest()
128 FakeDataCommand command = static_cast<FakeDataCommand>(v.int32Values[0]); in handleGenerateFakeDataRequest()
133 if (v.int32Values.size() < 2) { in handleGenerateFakeDataRequest()
137 if (!v.int64Values.size()) { in handleGenerateFakeDataRequest()
141 if (v.floatValues.size() < 3) { in handleGenerateFakeDataRequest()
143 << v.floatValues.size(); in handleGenerateFakeDataRequest()
146 int32_t cookie = v.int32Values[1]; in handleGenerateFakeDataRequest()
153 if (v.stringValue.empty()) { in handleGenerateFakeDataRequest()
157 int32_t cookie = std::hash<std::string>()(v.stringValue); in handleGenerateFakeDataRequest()
[all …]
/device/google/redbull-kernel/sm7250/original-kernel-headers/drm/
Ddrm_fourcc.h409 #define DRM_FORMAT_MOD_NVIDIA_16BX2_BLOCK(v) \ argument
410 fourcc_mod_code(NVIDIA, 0x10 | ((v) & 0xf))
487 #define DRM_FORMAT_MOD_BROADCOM_SAND32_COL_HEIGHT(v) \ argument
488 fourcc_mod_broadcom_code(2, v)
489 #define DRM_FORMAT_MOD_BROADCOM_SAND64_COL_HEIGHT(v) \ argument
490 fourcc_mod_broadcom_code(3, v)
491 #define DRM_FORMAT_MOD_BROADCOM_SAND128_COL_HEIGHT(v) \ argument
492 fourcc_mod_broadcom_code(4, v)
493 #define DRM_FORMAT_MOD_BROADCOM_SAND256_COL_HEIGHT(v) \ argument
494 fourcc_mod_broadcom_code(5, v)
/device/google/redbull-kernel/sm7250/kernel-headers/drm/
Ddrm_fourcc.h118 #define DRM_FORMAT_MOD_NVIDIA_16BX2_BLOCK(v) fourcc_mod_code(NVIDIA, 0x10 | ((v) & 0xf)) argument
131 #define DRM_FORMAT_MOD_BROADCOM_SAND32_COL_HEIGHT(v) fourcc_mod_broadcom_code(2, v) argument
132 #define DRM_FORMAT_MOD_BROADCOM_SAND64_COL_HEIGHT(v) fourcc_mod_broadcom_code(3, v) argument
133 #define DRM_FORMAT_MOD_BROADCOM_SAND128_COL_HEIGHT(v) fourcc_mod_broadcom_code(4, v) argument
134 #define DRM_FORMAT_MOD_BROADCOM_SAND256_COL_HEIGHT(v) fourcc_mod_broadcom_code(5, v) argument
/device/google/contexthub/firmware/os/core/
DfloatRt.c126 float floatFromUint64(uint64_t v) in floatFromUint64() argument
128 uint32_t hi = v >> 32, lo = v; in floatFromUint64()
137 float floatFromInt64(int64_t v) in floatFromInt64() argument
139 uint32_t hi = ((uint64_t)v) >> 32, lo = v; in floatFromInt64()
144 return -floatFromUint64(-v); in floatFromInt64()
146 return floatFromUint64(v); in floatFromInt64()
/device/google/trout/hal/vehicle/2.0/agl_build/prebuilt/include/android/hardware/automotive/vehicle/2.0/
Dtypes.h5161 constexpr int32_t &operator|=(int32_t& v, const ::android::hardware::automotive::vehicle::V2_0::Veh…
5162 v |= static_cast<int32_t>(e);
5163 return v;
5165 constexpr int32_t &operator&=(int32_t& v, const ::android::hardware::automotive::vehicle::V2_0::Veh…
5166 v &= static_cast<int32_t>(e);
5167 return v;
5192 constexpr int32_t &operator|=(int32_t& v, const ::android::hardware::automotive::vehicle::V2_0::Veh…
5193 v |= static_cast<int32_t>(e);
5194 return v;
5196 constexpr int32_t &operator&=(int32_t& v, const ::android::hardware::automotive::vehicle::V2_0::Veh…
[all …]
/device/google/tangorpro-kernels/5.10/24Q3-12318583/kernel-headers/drm/
Ddrm_fourcc.h180 #define DRM_FORMAT_MOD_NVIDIA_16BX2_BLOCK(v) DRM_FORMAT_MOD_NVIDIA_BLOCK_LINEAR_2D(0, 0, 0, 0, (v)) argument
193 #define DRM_FORMAT_MOD_BROADCOM_SAND32_COL_HEIGHT(v) fourcc_mod_broadcom_code(2, v) argument
194 #define DRM_FORMAT_MOD_BROADCOM_SAND64_COL_HEIGHT(v) fourcc_mod_broadcom_code(3, v) argument
195 #define DRM_FORMAT_MOD_BROADCOM_SAND128_COL_HEIGHT(v) fourcc_mod_broadcom_code(4, v) argument
196 #define DRM_FORMAT_MOD_BROADCOM_SAND256_COL_HEIGHT(v) fourcc_mod_broadcom_code(5, v) argument
/device/google/pantah-kernels/5.10/24Q3-12318583/kernel-headers/drm/
Ddrm_fourcc.h180 #define DRM_FORMAT_MOD_NVIDIA_16BX2_BLOCK(v) DRM_FORMAT_MOD_NVIDIA_BLOCK_LINEAR_2D(0, 0, 0, 0, (v)) argument
193 #define DRM_FORMAT_MOD_BROADCOM_SAND32_COL_HEIGHT(v) fourcc_mod_broadcom_code(2, v) argument
194 #define DRM_FORMAT_MOD_BROADCOM_SAND64_COL_HEIGHT(v) fourcc_mod_broadcom_code(3, v) argument
195 #define DRM_FORMAT_MOD_BROADCOM_SAND128_COL_HEIGHT(v) fourcc_mod_broadcom_code(4, v) argument
196 #define DRM_FORMAT_MOD_BROADCOM_SAND256_COL_HEIGHT(v) fourcc_mod_broadcom_code(5, v) argument
/device/google/felix-kernels/5.10/24Q3-12318583/kernel-headers/drm/
Ddrm_fourcc.h180 #define DRM_FORMAT_MOD_NVIDIA_16BX2_BLOCK(v) DRM_FORMAT_MOD_NVIDIA_BLOCK_LINEAR_2D(0, 0, 0, 0, (v)) argument
193 #define DRM_FORMAT_MOD_BROADCOM_SAND32_COL_HEIGHT(v) fourcc_mod_broadcom_code(2, v) argument
194 #define DRM_FORMAT_MOD_BROADCOM_SAND64_COL_HEIGHT(v) fourcc_mod_broadcom_code(3, v) argument
195 #define DRM_FORMAT_MOD_BROADCOM_SAND128_COL_HEIGHT(v) fourcc_mod_broadcom_code(4, v) argument
196 #define DRM_FORMAT_MOD_BROADCOM_SAND256_COL_HEIGHT(v) fourcc_mod_broadcom_code(5, v) argument
/device/google/raviole-kernels/5.10/24Q3-12115410/kernel-headers/drm/
Ddrm_fourcc.h180 #define DRM_FORMAT_MOD_NVIDIA_16BX2_BLOCK(v) DRM_FORMAT_MOD_NVIDIA_BLOCK_LINEAR_2D(0, 0, 0, 0, (v)) argument
193 #define DRM_FORMAT_MOD_BROADCOM_SAND32_COL_HEIGHT(v) fourcc_mod_broadcom_code(2, v) argument
194 #define DRM_FORMAT_MOD_BROADCOM_SAND64_COL_HEIGHT(v) fourcc_mod_broadcom_code(3, v) argument
195 #define DRM_FORMAT_MOD_BROADCOM_SAND128_COL_HEIGHT(v) fourcc_mod_broadcom_code(4, v) argument
196 #define DRM_FORMAT_MOD_BROADCOM_SAND256_COL_HEIGHT(v) fourcc_mod_broadcom_code(5, v) argument
/device/google/lynx-kernels/5.10/24Q3-12318583/kernel-headers/drm/
Ddrm_fourcc.h180 #define DRM_FORMAT_MOD_NVIDIA_16BX2_BLOCK(v) DRM_FORMAT_MOD_NVIDIA_BLOCK_LINEAR_2D(0, 0, 0, 0, (v)) argument
193 #define DRM_FORMAT_MOD_BROADCOM_SAND32_COL_HEIGHT(v) fourcc_mod_broadcom_code(2, v) argument
194 #define DRM_FORMAT_MOD_BROADCOM_SAND64_COL_HEIGHT(v) fourcc_mod_broadcom_code(3, v) argument
195 #define DRM_FORMAT_MOD_BROADCOM_SAND128_COL_HEIGHT(v) fourcc_mod_broadcom_code(4, v) argument
196 #define DRM_FORMAT_MOD_BROADCOM_SAND256_COL_HEIGHT(v) fourcc_mod_broadcom_code(5, v) argument
/device/google/bluejay-kernels/5.10/24Q3-12115410/kernel-headers/drm/
Ddrm_fourcc.h180 #define DRM_FORMAT_MOD_NVIDIA_16BX2_BLOCK(v) DRM_FORMAT_MOD_NVIDIA_BLOCK_LINEAR_2D(0, 0, 0, 0, (v)) argument
193 #define DRM_FORMAT_MOD_BROADCOM_SAND32_COL_HEIGHT(v) fourcc_mod_broadcom_code(2, v) argument
194 #define DRM_FORMAT_MOD_BROADCOM_SAND64_COL_HEIGHT(v) fourcc_mod_broadcom_code(3, v) argument
195 #define DRM_FORMAT_MOD_BROADCOM_SAND128_COL_HEIGHT(v) fourcc_mod_broadcom_code(4, v) argument
196 #define DRM_FORMAT_MOD_BROADCOM_SAND256_COL_HEIGHT(v) fourcc_mod_broadcom_code(5, v) argument
/device/google/lynx-kernels/5.10/24Q3-12318583/original-kernel-headers/drm/
Ddrm_fourcc.h774 #define DRM_FORMAT_MOD_NVIDIA_16BX2_BLOCK(v) \ argument
775 DRM_FORMAT_MOD_NVIDIA_BLOCK_LINEAR_2D(0, 0, 0, 0, (v))
856 #define DRM_FORMAT_MOD_BROADCOM_SAND32_COL_HEIGHT(v) \ argument
857 fourcc_mod_broadcom_code(2, v)
858 #define DRM_FORMAT_MOD_BROADCOM_SAND64_COL_HEIGHT(v) \ argument
859 fourcc_mod_broadcom_code(3, v)
860 #define DRM_FORMAT_MOD_BROADCOM_SAND128_COL_HEIGHT(v) \ argument
861 fourcc_mod_broadcom_code(4, v)
862 #define DRM_FORMAT_MOD_BROADCOM_SAND256_COL_HEIGHT(v) \ argument
863 fourcc_mod_broadcom_code(5, v)
/device/google/raviole-kernels/5.10/24Q3-12115410/original-kernel-headers/drm/
Ddrm_fourcc.h774 #define DRM_FORMAT_MOD_NVIDIA_16BX2_BLOCK(v) \ argument
775 DRM_FORMAT_MOD_NVIDIA_BLOCK_LINEAR_2D(0, 0, 0, 0, (v))
856 #define DRM_FORMAT_MOD_BROADCOM_SAND32_COL_HEIGHT(v) \ argument
857 fourcc_mod_broadcom_code(2, v)
858 #define DRM_FORMAT_MOD_BROADCOM_SAND64_COL_HEIGHT(v) \ argument
859 fourcc_mod_broadcom_code(3, v)
860 #define DRM_FORMAT_MOD_BROADCOM_SAND128_COL_HEIGHT(v) \ argument
861 fourcc_mod_broadcom_code(4, v)
862 #define DRM_FORMAT_MOD_BROADCOM_SAND256_COL_HEIGHT(v) \ argument
863 fourcc_mod_broadcom_code(5, v)
/device/google/bluejay-kernels/5.10/24Q3-12115410/original-kernel-headers/drm/
Ddrm_fourcc.h774 #define DRM_FORMAT_MOD_NVIDIA_16BX2_BLOCK(v) \ argument
775 DRM_FORMAT_MOD_NVIDIA_BLOCK_LINEAR_2D(0, 0, 0, 0, (v))
856 #define DRM_FORMAT_MOD_BROADCOM_SAND32_COL_HEIGHT(v) \ argument
857 fourcc_mod_broadcom_code(2, v)
858 #define DRM_FORMAT_MOD_BROADCOM_SAND64_COL_HEIGHT(v) \ argument
859 fourcc_mod_broadcom_code(3, v)
860 #define DRM_FORMAT_MOD_BROADCOM_SAND128_COL_HEIGHT(v) \ argument
861 fourcc_mod_broadcom_code(4, v)
862 #define DRM_FORMAT_MOD_BROADCOM_SAND256_COL_HEIGHT(v) \ argument
863 fourcc_mod_broadcom_code(5, v)

12345678910>>...13