Searched refs:clamp (Results 1 – 5 of 5) sorted by relevance
/device/google/contexthub/firmware/os/algos/common/math/ |
D | quat.c | 19 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/ |
D | Converters.h | 133 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)
|
D | EmulatedCameraDevice.h | 397 return static_cast<uint8_t>(clamp(static_cast<float>(inputY) * in changeExposure()
|
/device/google/cuttlefish/guest/hals/camera/ |
D | Converters.h | 148 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)
|
D | EmulatedCameraDevice.h | 312 clamp(static_cast<float>(inputY) * mExposureCompensation)); in changeExposure()
|