Searched refs:clamp (Results 1 - 25 of 46) sorted by relevance

12

/frameworks/rs/java/tests/ImageProcessing/src/com/android/rs/image/
H A 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);
H A Dcolormatrix.fs32 f = clamp(f, 0.f, 255.f);
H A Dcontrast.rs31 out->rgb = convert_uchar3(clamp(v, 0.f, 255.f));
H A Dexposure.rs30 out.rgb = convert_uchar3(clamp(convert_int3(t * bright), 0, 255));
H A Dartistic1.rs54 pdist = clamp(pdist, 0.f, 1.f);
H A Dconvolve3x3.fs53 result = clamp(result, 0.f, 255.f);
/frameworks/rs/java/tests/ImageProcessing2/src/com/android/rs/image/
H A 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);
H A Dcolormatrix.fs32 f = clamp(f, 0.f, 255.f);
H A Dcontrast.rs35 out->rgb = convert_uchar3(clamp(v, 0.f, 255.f));
H A Dip2_convolve3x3.rs61 p20 = clamp(p20, 0.f, 255.f);
/frameworks/rs/java/tests/ImageProcessing_jb/src/com/android/rs/image/
H A 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);
H A Dcolormatrix.fs32 f = clamp(f, 0.f, 255.f);
H A Dcontrast.rs35 out->rgb = convert_uchar3(clamp(v, 0.f, 255.f));
H A Dconvolve3x3.fs61 p20 = clamp(p20, 0.f, 255.f);
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/jni/
H A Dimgprocutil.h27 inline int clamp(int min, int val, int max) { function
H A Dcolorspace.cpp40 static inline uint32 clamp(int32 x) { function
48 color.channel[kRed] = clamp(y + static_cast<int>(1.402 * v));
49 color.channel[kGreen] = clamp(y - static_cast<int>(0.344 * u + 0.714 * v));
50 color.channel[kBlue] = clamp(y + static_cast<int>(1.772 * u));
/frameworks/native/services/sensorservice/
H A Dquat.h65 } clamp; local
71 q.x = sqrtf( clamp( Hx - My - Az + 1) * 0.25f );
72 q.y = sqrtf( clamp(-Hx + My - Az + 1) * 0.25f );
73 q.z = sqrtf( clamp(-Hx - My + Az + 1) * 0.25f );
74 q.w = sqrtf( clamp( Hx + My + Az + 1) * 0.25f );
/frameworks/rs/driver/runtime/arch/
H A Dclamp.c20 extern T __attribute__((overloadable)) clamp(T amount, T low, T high) { \
40 extern T##2 __attribute__((overloadable)) clamp(T##2 amount, T##2 low, T##2 high) { \
47 extern T##3 __attribute__((overloadable)) clamp(T##3 amount, T##3 low, T##3 high) { \
55 extern T##4 __attribute__((overloadable)) clamp(T##4 amount, T##4 low, T##4 high) { \
64 extern T##2 __attribute__((overloadable)) clamp(T##2 amount, T low, T high) { \
71 extern T##3 __attribute__((overloadable)) clamp(T##3 amount, T low, T high) { \
79 extern T##4 __attribute__((overloadable)) clamp(T##4 amount, T low, T high) { \
H A 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) { \
88 extern float __attribute__((overloadable)) clamp(float amount, float low, float high);
89 extern float2 __attribute__((overloadable)) clamp(float2 amount, float2 low, float2 high);
90 extern float3 __attribute__((overloadable)) clamp(float
[all...]
/frameworks/rs/cpu_ref/
H A DrsCpuIntrinsicInlines.h87 static inline int4 clamp(int4 amount, int low, int high) { function
96 static inline float4 clamp(float4 amount, float low, float high) { function
105 static inline int2 clamp(int2 amount, int low, int high) { function
112 static inline float2 clamp(float2 amount, float low, float high) { function
119 static inline int clamp(int amount, int low, int high) { function
123 static inline float clamp(float amount, float low, float high) { function
/frameworks/rs/driver/runtime/
H A DAndroid.mk43 arch/clamp.c
/frameworks/base/packages/WallpaperCropper/src/com/android/gallery3d/common/
H A DUtils.java99 public static int clamp(int x, int min, int max) { method in class:Utils
106 public static float clamp(float x, float min, float max) { method in class:Utils
113 public static long clamp(long x, long min, long max) { method in class:Utils
/frameworks/rs/scriptc/
H A Drs_cl.rsh865 _RS_RUNTIME float __attribute__((const, overloadable)) clamp(float amount, float low, float high);
866 FN_FUNC_FN_FN_FN(clamp)
867 FN_FUNC_FN_F_F(clamp)
870 extern T __attribute__((overloadable)) clamp(T amount, T low, T high); \
871 extern T##2 __attribute__((overloadable)) clamp(T##2 amount, T##2 low, T##2 high); \
872 extern T##3 __attribute__((overloadable)) clamp(T##3 amount, T##3 low, T##3 high); \
873 extern T##4 __attribute__((overloadable)) clamp(T##4 amount, T##4 low, T##4 high); \
874 extern T##2 __attribute__((overloadable)) clamp(T##2 amount, T low, T high); \
875 extern T##3 __attribute__((overloadable)) clamp(T##3 amount, T low, T high); \
876 extern T##4 __attribute__((overloadable)) clamp(
[all...]
/frameworks/native/opengl/libs/ETC1/
H A Detc1.cpp122 static inline etc1_byte clamp(int x) { function
191 *q++ = clamp(r + delta);
192 *q++ = clamp(g + delta);
193 *q++ = clamp(b + delta);
311 int decodedG = clamp(g + modifier);
316 int decodedR = clamp(r + modifier);
321 int decodedB = clamp(b + modifier);
/frameworks/av/media/libstagefright/yuv/
H A DYUVImage.cpp367 uint8_t clamp(uint8_t v, uint8_t minValue, uint8_t maxValue) { function in namespace:android
381 *r = clamp(*r, 0, 255);
382 *g = clamp(*g, 0, 255);
383 *b = clamp(*b, 0, 255);

Completed in 398 milliseconds

12