/frameworks/rs/tests/java_api/ImageProcessing_jb/src/com/android/rs/image/ |
D | resize.rs | 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 …]
|
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);
|
D | vibrance.rs | 48 o.r = clamp((int) Rc, 0, 255); 49 o.g = clamp((int) Gc, 0, 255); 50 o.b = clamp((int) Bc, 0, 255);
|
D | threshold.rs | 88 int validH = clamp((int)y + r, (int)0, (int)(height - 1)); 94 out.xyz = convert_uchar3(clamp(blurredPixel, 0.f, 255.f)); 110 int validX = clamp((int)x + r, (int)0, (int)(width - 1));
|
/frameworks/av/services/camera/libcameraservice/device3/ |
D | DistortionMapper.h | 79 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;
|
D | DistortionMapper.cpp | 227 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/native/services/sensorservice/ |
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()
|
/frameworks/base/libs/hwui/utils/ |
D | Color.cpp | 118 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/rs/driver/runtime/arch/ |
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) { \
|
/frameworks/native/libs/ui/include_vndk/ui/ |
D | Size.h | 50 : 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/ |
D | Size.h | 50 : 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/av/media/libstagefright/filters/ |
D | saturation.rs | 37 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);
|
D | saturationARGB.rs | 37 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);
|
/frameworks/av/cmds/stagefright/filters/ |
D | nightvision.rs | 35 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);
|
D | saturation.rs | 37 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);
|
/frameworks/rs/cpu_ref/ |
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
|
/frameworks/rs/tests/java_api/ImageProcessing/src/com/android/rs/image/ |
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);
|
D | vibrance.rs | 48 o.r = clamp((int) Rc, 0, 255); 49 o.g = clamp((int) Gc, 0, 255); 50 o.b = clamp((int) Bc, 0, 255);
|
D | threshold.rs | 88 int validH = clamp((int)y + r, (int)0, (int)(height - 1)); 94 out.xyz = convert_uchar3(clamp(blurredPixel, 0.f, 255.f)); 110 int validX = clamp((int)x + r, (int)0, (int)(width - 1));
|
/frameworks/rs/tests/java_api/ImageProcessing2/src/com/android/rs/image/ |
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);
|
/frameworks/rs/tests/java_api/RSUnitTests/supportlibsrc_gen/com/android/rs/unittest/ |
D | clamp.rs | 28 float2 res2 = clamp(src2, min2, max2); 37 float3 res3 = clamp(src3, min3, max3); 47 float4 res4 = clamp(src4, min4, max4);
|
/frameworks/rs/tests/java_api/RSUnitTests/src/com/android/rs/unittest/ |
D | clamp.rs | 26 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/RSTest_CompatLibLegacy/src/com/android/rs/test/ |
D | clamp.rs | 10 float2 res2 = clamp(src2, min2, max2); 19 float3 res3 = clamp(src3, min3, max3); 29 float4 res4 = clamp(src4, min4, max4);
|
/frameworks/rs/tests/java_api/ScriptGroupTest/src/com/android/rs/sgtest/ |
D | levels_f.rsh | 28 pixel = clamp(pixel, 0.f, 255.f); 31 pixel = clamp(pixel, 0.f, 255.f); 51 pixel = clamp(pixel, 0.f, 255.f);
|
/frameworks/rs/driver/runtime/ |
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()
|