Home
last modified time | relevance | path

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

1234567

/frameworks/av/services/camera/libcameraservice/device3/
DDistortionMapper.h79 status_t mapRawToCorrected(int32_t *coordPairs, int coordCount, bool clamp,
91 status_t mapRawRectToCorrected(int32_t *rects, int rectCount, bool clamp,
103 status_t mapCorrectedToRaw(int32_t* coordPairs, int coordCount, bool clamp,
115 status_t mapCorrectedRectToRaw(int32_t *rects, int rectCount, bool clamp,
169 status_t mapCorrectedToRawImpl(T* coordPairs, int coordCount, bool clamp, bool simple) const;
173 status_t mapCorrectedToRawImplSimple(T* coordPairs, int coordCount, bool clamp) const;
175 status_t mapRawToCorrectedSimple(int32_t *coordPairs, int coordCount, bool clamp) const;
DDistortionMapper.cpp227 bool clamp, bool simple) { in mapRawToCorrected() argument
230 if (simple) return mapRawToCorrectedSimple(coordPairs, coordCount, clamp); in mapRawToCorrected()
273 if (clamp) { in mapRawToCorrected()
286 bool clamp) const { in mapRawToCorrectedSimple()
296 if (clamp) { in mapRawToCorrectedSimple()
307 status_t DistortionMapper::mapRawRectToCorrected(int32_t *rects, int rectCount, bool clamp, in mapRawRectToCorrected() argument
319 mapRawToCorrected(coords, 2, clamp, simple); in mapRawRectToCorrected()
331 status_t DistortionMapper::mapCorrectedToRaw(int32_t *coordPairs, int coordCount, bool clamp, in mapCorrectedToRaw() argument
333 return mapCorrectedToRawImpl(coordPairs, coordCount, clamp, simple); in mapCorrectedToRaw()
337 status_t DistortionMapper::mapCorrectedToRawImpl(T *coordPairs, int coordCount, bool clamp, in mapCorrectedToRawImpl() argument
[all …]
/frameworks/rs/tests/java_api/ImageProcessing_jb/src/com/android/rs/image/
Dresize.rscript27 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 …]
Dlevels.rsh28 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);
Dvibrance.rscript48 o.r = clamp((int) Rc, 0, 255);
49 o.g = clamp((int) Gc, 0, 255);
50 o.b = clamp((int) Bc, 0, 255);
/frameworks/native/services/sensorservice/
Dquat.h65 } 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()
/frameworks/rs/driver/runtime/arch/
Dclamp.c25 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) { \
Dgeneric.c30 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) { \
41 extern T##3 __attribute__((overloadable)) clamp(T##3 amount, T##3 low, T##3 high) { \
49 extern T##4 __attribute__((overloadable)) clamp(T##4 amount, T##4 low, T##4 high) { \
58 extern T##2 __attribute__((overloadable)) clamp(T##2 amount, T low, T high) { \
65 extern T##3 __attribute__((overloadable)) clamp(T##3 amount, T low, T high) { \
73 extern T##4 __attribute__((overloadable)) clamp(T##4 amount, T low, T high) { \
91 extern float __attribute__((overloadable)) clamp(float amount, float low, float high);
92 extern float2 __attribute__((overloadable)) clamp(float2 amount, float2 low, float2 high);
93 extern float3 __attribute__((overloadable)) clamp(float3 amount, float3 low, float3 high);
[all …]
/frameworks/base/libs/hwui/utils/
DColor.cpp118 static constexpr T clamp(T x, T min, T max) { in clamp() function
145 v[0] = clamp(v[0], 0.0f, 100.0f); in toXyz()
146 v[1] = clamp(v[1], -128.0f, 128.0f); in toXyz()
147 v[2] = clamp(v[2], -128.0f, 128.0f); in toXyz()
177 clamp(L, 0.0f, 100.0f), in fromXyz()
178 clamp(a, -128.0f, 128.0f), in fromXyz()
179 clamp(b, -128.0f, 128.0f) in fromXyz()
/frameworks/native/libs/ui/include_vndk/ui/
DSize.h50 : width(Size::clamp<int32_t, T>(std::forward<T>(w))), in Size()
51 height(Size::clamp<int32_t, T>(std::forward<T>(h))) {} in Size()
62 width = Size::clamp<int32_t, T>(std::forward<T>(v)); in setWidth()
66 height = Size::clamp<int32_t, T>(std::forward<T>(v)); in setHeight()
111 static Size::remove_cv_reference_t<ToType> clamp( in clamp() function
/frameworks/native/libs/ui/include/ui/
DSize.h50 : width(Size::clamp<int32_t, T>(std::forward<T>(w))), in Size()
51 height(Size::clamp<int32_t, T>(std::forward<T>(h))) {} in Size()
62 width = Size::clamp<int32_t, T>(std::forward<T>(v)); in setWidth()
66 height = Size::clamp<int32_t, T>(std::forward<T>(v)); in setHeight()
111 static Size::remove_cv_reference_t<ToType> clamp( in clamp() function
/frameworks/rs/cpu_ref/
DrsCpuIntrinsicInlines.h85 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
/frameworks/rs/tests/java_api/ImageProcessing2/src/com/android/rs/image/
Dlevels.rsh28 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);
/frameworks/rs/tests/java_api/ImageProcessing/src/com/android/rs/image/
Dlevels.rsh28 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);
Dvibrance.rscript48 o.r = clamp((int) Rc, 0, 255);
49 o.g = clamp((int) Gc, 0, 255);
50 o.b = clamp((int) Bc, 0, 255);
/frameworks/rs/tests/java_api/RSTest_CompatLibLegacy/src/com/android/rs/test/
Dclamp.rscript10 float2 res2 = clamp(src2, min2, max2);
19 float3 res3 = clamp(src3, min3, max3);
29 float4 res4 = clamp(src4, min4, max4);
/frameworks/av/media/libstagefright/filters/
DsaturationARGB.rscript37 v_out->y = (uchar)clamp((result.r * 255.f + 0.5f), 0.f, 255.f);
38 v_out->z = (uchar)clamp((result.g * 255.f + 0.5f), 0.f, 255.f);
39 v_out->w = (uchar)clamp((result.b * 255.f + 0.5f), 0.f, 255.f);
Dsaturation.rscript37 v_out->x = (uchar)clamp((result.r * 255.f + 0.5f), 0.f, 255.f);
38 v_out->y = (uchar)clamp((result.g * 255.f + 0.5f), 0.f, 255.f);
39 v_out->z = (uchar)clamp((result.b * 255.f + 0.5f), 0.f, 255.f);
/frameworks/av/cmds/stagefright/filters/
Dsaturation.rscript37 v_out->y = (uchar)clamp((result.r * 255.f + 0.5f), 0.f, 255.f);
38 v_out->z = (uchar)clamp((result.g * 255.f + 0.5f), 0.f, 255.f);
39 v_out->w = (uchar)clamp((result.b * 255.f + 0.5f), 0.f, 255.f);
Dnightvision.rscript35 v_out->y = (uchar)clamp((result.r * 255.f + 0.5f), 0.f, 255.f);
36 v_out->z = (uchar)clamp((result.g * 255.f + 0.5f), 0.f, 255.f);
37 v_out->w = (uchar)clamp((result.b * 255.f + 0.5f), 0.f, 255.f);
/frameworks/rs/driver/runtime/
Drs_core.c23 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()
/frameworks/rs/tests/java_api/ScriptGroupTest/src/com/android/rs/sgtest/
Dlevels_f.rsh28 pixel = clamp(pixel, 0.f, 255.f);
31 pixel = clamp(pixel, 0.f, 255.f);
51 pixel = clamp(pixel, 0.f, 255.f);
/frameworks/base/core/java/android/view/
DRoundScrollbarRenderer.java85 sweepAngle = clamp(sweepAngle, MIN_SCROLLBAR_ANGLE_SWIPE, MAX_SCROLLBAR_ANGLE_SWIPE); in drawRoundScrollbars()
89 startAngle = clamp(startAngle, -SCROLLBAR_ANGLE_RANGE / 2, in drawRoundScrollbars()
104 private static float clamp(float val, float min, float max) { in clamp() method in RoundScrollbarRenderer
/frameworks/rs/tests/java_api/RSUnitTests/src/com/android/rs/unittest/
Dclamp.rscript26 float2 res2 = clamp(src2, min2, max2);
35 float3 res3 = clamp(src3, min3, max3);
45 float4 res4 = clamp(src4, min4, max4);
/frameworks/rs/tests/java_api/RSUnitTests/supportlibsrc_gen/com/android/rs/unittest/
Dclamp.rscript28 float2 res2 = clamp(src2, min2, max2);
37 float3 res3 = clamp(src3, min3, max3);
47 float4 res4 = clamp(src4, min4, max4);

1234567