/frameworks/rs/java/tests/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);
|
H A D | colormatrix.fs | 32 f = clamp(f, 0.f, 255.f);
|
H A D | contrast.rs | 31 out->rgb = convert_uchar3(clamp(v, 0.f, 255.f));
|
H A D | exposure.rs | 30 out.rgb = convert_uchar3(clamp(convert_int3(t * bright), 0, 255));
|
H A D | artistic1.rs | 54 pdist = clamp(pdist, 0.f, 1.f);
|
H A D | convolve3x3.fs | 53 result = clamp(result, 0.f, 255.f);
|
/frameworks/rs/java/tests/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);
|
H A D | colormatrix.fs | 32 f = clamp(f, 0.f, 255.f);
|
H A D | contrast.rs | 35 out->rgb = convert_uchar3(clamp(v, 0.f, 255.f));
|
H A D | ip2_convolve3x3.rs | 61 p20 = clamp(p20, 0.f, 255.f);
|
/frameworks/rs/java/tests/ImageProcessing_jb/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);
|
H A D | colormatrix.fs | 32 f = clamp(f, 0.f, 255.f);
|
H A D | contrast.rs | 35 out->rgb = convert_uchar3(clamp(v, 0.f, 255.f));
|
H A D | convolve3x3.fs | 61 p20 = clamp(p20, 0.f, 255.f);
|
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/jni/ |
H A D | imgprocutil.h | 27 inline int clamp(int min, int val, int max) { function
|
H A D | colorspace.cpp | 40 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 D | quat.h | 65 } 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 D | clamp.c | 20 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 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) { \ 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 D | rsCpuIntrinsicInlines.h | 87 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 D | Android.mk | 43 arch/clamp.c
|
/frameworks/base/packages/WallpaperCropper/src/com/android/gallery3d/common/ |
H A D | Utils.java | 99 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 D | rs_cl.rsh | 865 _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 D | etc1.cpp | 122 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 D | YUVImage.cpp | 367 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);
|