/aosp12/frameworks/rs/tests/java_api/ImageProcessing_jb/src/com/android/rs/image/ |
H A D | resize.rscript | 27 float xf = clamp(x * scale, 0.f, (float)gWidthIn - 1.f); 28 float yf = clamp(y * scale, 0.f, (float)gHeightIn - 1.f); 54 uint32_t xs0 = (uint32_t) clamp(startx + 0, 0, maxx); 55 uint32_t xs1 = (uint32_t) clamp(startx + 1, 0, maxx); 56 uint32_t xs2 = (uint32_t) clamp(startx + 2, 0, maxx); 57 uint32_t xs3 = (uint32_t) clamp(startx + 3, 0, maxx); 59 uint32_t ys0 = (uint32_t) clamp(starty + 0, 0 , maxy); 60 uint32_t ys1 = (uint32_t) clamp(starty + 1, 0 , maxy); 61 uint32_t ys2 = (uint32_t) clamp(starty + 2, 0 , maxy); 62 uint32_t ys3 = (uint32_t) clamp(starty + 3, 0 , maxy); [all …]
|
H A D | levels.rsh | 28 pixel = clamp(pixel, 0.f, 255.f); 31 pixel = clamp(pixel, 0.f, 255.f); 40 pixel = clamp(pixel, 0.f, 255.f); 43 pixel = clamp(pixel, 0.f, 255.f);
|
/aosp12/frameworks/av/services/camera/libcameraservice/device3/ |
H A D | DistortionMapper.h | 92 DistortionMapperInfo *mapperInfo, bool clamp, bool simple = true); 104 DistortionMapperInfo *mapperInfo, bool clamp, bool simple = true); 116 const DistortionMapperInfo *mapperInfo, bool clamp, bool simple = true) const; 128 const DistortionMapperInfo *mapperInfo, bool clamp, bool simple = true) const; 199 const DistortionMapperInfo *mapperInfo, bool clamp, bool simple) const; 204 const DistortionMapperInfo *mapperInfo, bool clamp) const; 207 const DistortionMapperInfo *mapperInfo, bool clamp) const;
|
H A D | DistortionMapper.cpp | 270 DistortionMapperInfo *mapperInfo, bool clamp, bool simple) { in mapRawToCorrected() argument 316 if (clamp) { in mapRawToCorrected() 329 const DistortionMapperInfo *mapperInfo, bool clamp) const { in mapRawToCorrectedSimple() 339 if (clamp) { in mapRawToCorrectedSimple() 351 DistortionMapperInfo *mapperInfo, bool clamp, bool simple) { in mapRawRectToCorrected() argument 362 mapRawToCorrected(coords, 2, mapperInfo, clamp, simple); in mapRawRectToCorrected() 375 const DistortionMapperInfo *mapperInfo, bool clamp, bool simple) const { in mapCorrectedToRaw() argument 402 if (clamp) { in mapCorrectedToRawImpl() 415 const DistortionMapperInfo *mapperInfo, bool clamp) const { in mapCorrectedToRawImplSimple() 425 if (clamp) { in mapCorrectedToRawImplSimple() [all …]
|
/aosp12/packages/apps/Gallery2/jni/filters/ |
H A D | contrast.c | 20 unsigned char clamp(int c) in clamp() function 50 rgb[RED] = clamp((int)(m*rgb[RED]+c)); in JNIFUNCF() 51 rgb[GREEN] = clamp((int)(m*rgb[GREEN]+c)); in JNIFUNCF() 52 rgb[BLUE] = clamp((int)(m*rgb[BLUE]+c)); in JNIFUNCF()
|
H A D | exposure.c | 31 rgb[RED] = clamp((255*(rgb[RED]))/m); in JNIFUNCF() 32 rgb[GREEN] = clamp((255*(rgb[GREEN]))/m); in JNIFUNCF() 33 rgb[BLUE] = clamp((255*(rgb[BLUE]))/m); in JNIFUNCF()
|
H A D | hue.c | 38 rgb[RED] = clamp((int)rf); in JNIFUNCF() 39 rgb[GREEN] = clamp((int)gf); in JNIFUNCF() 40 rgb[BLUE] = clamp((int)bf); in JNIFUNCF()
|
/aosp12/system/media/audio_utils/include/audio_utils/ |
H A D | ChannelMix.h | 227 static inline float clamp(float value) { in clamp() function 288 dst[0] = clamp(ch[0]); in matrixProcess() 289 dst[1] = clamp(ch[1]); in matrixProcess() 353 dst[0] = clamp(dst[0] + ch[0]); in specificProcess() 354 dst[1] = clamp(dst[1] + ch[1]); in specificProcess() 356 dst[0] = clamp(ch[0]); in specificProcess() 357 dst[1] = clamp(ch[1]); in specificProcess()
|
/aosp12/frameworks/rs/driver/runtime/arch/ |
H A D | clamp.c | 25 extern T __attribute__((overloadable)) clamp(T amount, T low, T high) { \ 46 extern T##2 __attribute__((overloadable)) clamp(T##2 amount, T##2 low, T##2 high) { \ 53 extern T##3 __attribute__((overloadable)) clamp(T##3 amount, T##3 low, T##3 high) { \ 61 extern T##4 __attribute__((overloadable)) clamp(T##4 amount, T##4 low, T##4 high) { \ 70 extern T##2 __attribute__((overloadable)) clamp(T##2 amount, T low, T high) { \ 77 extern T##3 __attribute__((overloadable)) clamp(T##3 amount, T low, T high) { \ 85 extern T##4 __attribute__((overloadable)) clamp(T##4 amount, T low, T high) { \
|
H A D | generic.c | 30 extern T __attribute__((overloadable)) clamp(T amount, T low, T high) { \ 34 extern T##2 __attribute__((overloadable)) clamp(T##2 amount, T##2 low, T##2 high) { \ 757 c.x = (uchar)clamp((r * 255.f + 0.5f), 0.f, 255.f); in rsPackColorTo8888() 758 c.y = (uchar)clamp((g * 255.f + 0.5f), 0.f, 255.f); in rsPackColorTo8888() 759 c.z = (uchar)clamp((b * 255.f + 0.5f), 0.f, 255.f); in rsPackColorTo8888() 767 c.x = (uchar)clamp((r * 255.f + 0.5f), 0.f, 255.f); in rsPackColorTo8888() 768 c.y = (uchar)clamp((g * 255.f + 0.5f), 0.f, 255.f); in rsPackColorTo8888() 769 c.z = (uchar)clamp((b * 255.f + 0.5f), 0.f, 255.f); in rsPackColorTo8888() 770 c.w = (uchar)clamp((a * 255.f + 0.5f), 0.f, 255.f); in rsPackColorTo8888() 778 color = clamp(color, 0.f, 255.f); in rsPackColorTo8888() [all …]
|
/aosp12/frameworks/native/services/sensorservice/ |
H A D | quat.h | 65 } clamp; in matrixToQuat() local 71 q.x = sqrtf( clamp( Hx - My - Az + 1) * 0.25f ); in matrixToQuat() 72 q.y = sqrtf( clamp(-Hx + My - Az + 1) * 0.25f ); in matrixToQuat() 73 q.z = sqrtf( clamp(-Hx - My + Az + 1) * 0.25f ); in matrixToQuat() 74 q.w = sqrtf( clamp( Hx + My + Az + 1) * 0.25f ); in matrixToQuat()
|
/aosp12/packages/apps/Camera2/src/com/android/camera/one/v2/autofocus/ |
H A D | PointMeteringParameters.java | 115 meteringRegion.left = clamp(meteringRegion.left, cropRegion.left, in regionForNormalizedCoord() 117 meteringRegion.top = clamp(meteringRegion.top, cropRegion.top, cropRegion.bottom); in regionForNormalizedCoord() 118 meteringRegion.right = clamp(meteringRegion.right, cropRegion.left, in regionForNormalizedCoord() 120 meteringRegion.bottom = clamp(meteringRegion.bottom, cropRegion.top, in regionForNormalizedCoord() 148 private int clamp(int value, int min, int max) { in clamp() method in PointMeteringParameters
|
/aosp12/packages/apps/Contacts/src/com/android/contacts/util/ |
H A D | MoreMath.java | 27 public static int clamp(int input, int lowerBound, int upperBound) { in clamp() method in MoreMath 37 public static float clamp(float input, float lowerBound, float upperBound) { in clamp() method in MoreMath 47 public static double clamp(double input, double lowerBound, double upperBound) { in clamp() method in MoreMath
|
/aosp12/frameworks/rs/cpu_ref/ |
H A D | rsCpuIntrinsicInlines.h | 85 static inline int4 clamp(int4 amount, int low, int high) { in CVT_FUNC() 94 static inline float4 clamp(float4 amount, float low, float high) { in clamp() function 103 static inline int2 clamp(int2 amount, int low, int high) { in clamp() function 110 static inline float2 clamp(float2 amount, float low, float high) { in clamp() function 117 static inline int clamp(int amount, int low, int high) { in clamp() function 121 static inline float clamp(float amount, float low, float high) { in clamp() function
|
/aosp12/frameworks/rs/tests/java_api/ImageProcessing/src/com/android/rs/image/ |
H A D | levels.rsh | 28 pixel = clamp(pixel, 0.f, 255.f); 31 pixel = clamp(pixel, 0.f, 255.f); 40 pixel = clamp(pixel, 0.f, 255.f); 43 pixel = clamp(pixel, 0.f, 255.f);
|
/aosp12/frameworks/rs/tests/java_api/ImageProcessing2/src/com/android/rs/image/ |
H A D | levels.rsh | 28 pixel = clamp(pixel, 0.f, 255.f); 31 pixel = clamp(pixel, 0.f, 255.f); 40 pixel = clamp(pixel, 0.f, 255.f); 43 pixel = clamp(pixel, 0.f, 255.f);
|
/aosp12/frameworks/native/libs/ui/include/ui/ |
H A D | Size.h | 51 : width(Size::clamp<int32_t, T>(std::forward<T>(w))), in Size() 52 height(Size::clamp<int32_t, T>(std::forward<T>(h))) {} in Size() 63 width = Size::clamp<int32_t, T>(std::forward<T>(v)); in setWidth() 67 height = Size::clamp<int32_t, T>(std::forward<T>(v)); in setHeight() 113 clamp(typename std::enable_if< in clamp() function
|
/aosp12/frameworks/native/libs/ui/include_vndk/ui/ |
H A D | Size.h | 51 : width(Size::clamp<int32_t, T>(std::forward<T>(w))), in Size() 52 height(Size::clamp<int32_t, T>(std::forward<T>(h))) {} in Size() 63 width = Size::clamp<int32_t, T>(std::forward<T>(v)); in setWidth() 67 height = Size::clamp<int32_t, T>(std::forward<T>(v)); in setHeight() 113 clamp(typename std::enable_if< in clamp() function
|
/aosp12/frameworks/native/include/ui/ |
H A D | Size.h | 51 : width(Size::clamp<int32_t, T>(std::forward<T>(w))), in Size() 52 height(Size::clamp<int32_t, T>(std::forward<T>(h))) {} in Size() 63 width = Size::clamp<int32_t, T>(std::forward<T>(v)); in setWidth() 67 height = Size::clamp<int32_t, T>(std::forward<T>(v)); in setHeight() 113 clamp(typename std::enable_if< in clamp() function
|
/aosp12/hardware/google/camera/common/hal/utils/ |
H A D | utils.h | 93 *x = std::clamp(*x, static_cast<T>(0), 95 *y = std::clamp(*y, static_cast<T>(0), 99 *width = std::clamp(*width, static_cast<T>(1), 103 *height = std::clamp(*height, static_cast<T>(1),
|
/aosp12/frameworks/rs/tests/java_api/RSTest_CompatLibLegacy/src/com/android/rs/test/ |
H A D | clamp.rscript | 10 float2 res2 = clamp(src2, min2, max2); 19 float3 res3 = clamp(src3, min3, max3); 29 float4 res4 = clamp(src4, min4, max4);
|
/aosp12/packages/services/Car/cpp/evs/support_library/ |
H A D | FormatConvert.cpp | 36 static inline float clamp(float v, float min, float max) { in clamp() function 53 unsigned char R = (unsigned char)clamp(Rf, 0.0f, 255.0f); in yuvToRgbx() 54 unsigned char G = (unsigned char)clamp(Gf, 0.0f, 255.0f); in yuvToRgbx() 55 unsigned char B = (unsigned char)clamp(Bf, 0.0f, 255.0f); in yuvToRgbx()
|
/aosp12/frameworks/base/libs/hwui/utils/ |
H A D | Color.cpp | 269 static constexpr T clamp(T x, T min, T max) { in clamp() function 296 v[0] = clamp(v[0], 0.0f, 100.0f); in toXyz() 297 v[1] = clamp(v[1], -128.0f, 128.0f); in toXyz() 298 v[2] = clamp(v[2], -128.0f, 128.0f); in toXyz() 328 clamp(L, 0.0f, 100.0f), in fromXyz() 329 clamp(a, -128.0f, 128.0f), in fromXyz() 330 clamp(b, -128.0f, 128.0f) in fromXyz()
|
/aosp12/frameworks/rs/driver/runtime/ |
H A D | rs_core.c | 23 return clamp(v, l, h); in rsClamp() 26 return clamp(v, l, h); in rsClamp() 29 return clamp(v, l, h); in rsClamp() 32 return clamp(v, l, h); in rsClamp() 35 return clamp(v, l, h); in rsClamp() 38 return clamp(v, l, h); in rsClamp() 41 return clamp(v, l, h); in rsClamp()
|
/aosp12/packages/services/Car/cpp/evs/apps/default/ |
H A D | FormatConvert.cpp | 33 static inline float clamp(float v, float min, float max) { in clamp() function 50 unsigned char R = (unsigned char)clamp(Rf, 0.0f, 255.0f); in yuvToRgbx() 51 unsigned char G = (unsigned char)clamp(Gf, 0.0f, 255.0f); in yuvToRgbx() 52 unsigned char B = (unsigned char)clamp(Bf, 0.0f, 255.0f); in yuvToRgbx()
|