Home
last modified time | relevance | path

Searched refs:clamp (Results 1 – 25 of 98) sorted by relevance

1234

/device/google/contexthub/firmware/os/algos/common/math/
Dquat.c19 static float clamp(float x) { return x < 0.0f ? 0.0f : x; } in clamp() function
26 q->x = sqrtf(clamp(Hx - My - Az + 1.0f) * 0.25f); in initQuat()
27 q->y = sqrtf(clamp(-Hx + My - Az + 1.0f) * 0.25f); in initQuat()
28 q->z = sqrtf(clamp(-Hx - My + Az + 1.0f) * 0.25f); in initQuat()
29 q->w = sqrtf(clamp(Hx + My + Az + 1.0f) * 0.25f); in initQuat()
/device/generic/goldfish/camera/
DConverters.h133 clamp(int x) in clamp() function
192 #define YUV2RO(C, D, E) clamp((298 * (C) + 409 * (E) + 128) >> 8)
193 #define YUV2GO(C, D, E) clamp((298 * (C) - 100 * (D) - 208 * (E) + 128) >> 8)
194 #define YUV2BO(C, D, E) clamp((298 * (C) + 516 * (D) + 128) >> 8)
199 #define YUV2R(y, u, v) clamp((298 * ((y)-16) + 409 * ((v)-128) + 128) >> 8)
200 #define YUV2G(y, u, v) clamp((298 * ((y)-16) - 100 * ((u)-128) - 208 * ((v)-128) + 128) >> 8)
201 #define YUV2B(y, u, v) clamp((298 * ((y)-16) + 516 * ((u)-128) + 128) >> 8)
DEmulatedCameraDevice.h397 return static_cast<uint8_t>(clamp(static_cast<float>(inputY) * in changeExposure()
/device/google/cuttlefish_common/guest/hals/camera/
DConverters.h148 static __inline__ int clamp(int x) { in clamp() function
206 #define YUV2RO(C, D, E) clamp((298 * (C) + 409 * (E) + 128) >> 8)
207 #define YUV2GO(C, D, E) clamp((298 * (C)-100 * (D)-208 * (E) + 128) >> 8)
208 #define YUV2BO(C, D, E) clamp((298 * (C) + 516 * (D) + 128) >> 8)
213 #define YUV2R(y, u, v) clamp((298 * ((y)-16) + 409 * ((v)-128) + 128) >> 8)
215 clamp((298 * ((y)-16) - 100 * ((u)-128) - 208 * ((v)-128) + 128) >> 8)
216 #define YUV2B(y, u, v) clamp((298 * ((y)-16) + 516 * ((u)-128) + 128) >> 8)
DEmulatedCameraDevice.h317 clamp(static_cast<float>(inputY) * mExposureCompensation)); in changeExposure()
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/test/decimaltestdata/
Dclamp.decTest2 -- clamp.decTest -- clamped exponent tests (format-independent) --
31 clamp: 1
207 clamp: 0
210 clamp: 1
Dclass.decTest28 clamp: 1
82 clamp: 1
Dtestall.decTest28 dectest: clamp
DdqClass.decTest25 clamp: 1
DddCopyNegate.decTest27 clamp: 1
DddCopy.decTest27 clamp: 1
DddClass.decTest27 clamp: 1
DdqCopy.decTest24 clamp: 1
DdqCopyNegate.decTest24 clamp: 1
DdqMinus.decTest24 clamp: 1
DddMinus.decTest27 clamp: 1
DdqPlus.decTest24 clamp: 1
DddPlus.decTest27 clamp: 1
DdqCopyAbs.decTest24 clamp: 1
DddCopyAbs.decTest27 clamp: 1
DddAbs.decTest26 clamp: 1
DdqAbs.decTest23 clamp: 1
DddNextMinus.decTest27 clamp: 1
DdqNextMinus.decTest24 clamp: 1
DdqNextPlus.decTest24 clamp: 1

1234