/frameworks/rs/java/tests/ScriptGroupTest/src/com/android/rs/sgtest/ |
H A D | f4touc4.rs | 21 float4 f = clamp(in, 0.f, 255.f);
|
H A 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/av/cmds/stagefright/filters/ |
H A 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);
|
H A 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/av/media/libstagefright/filters/ |
H A 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/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 | 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);
|
H A D | colormatrix.rs | 33 f = clamp(f, 0.f, 255.f);
|
H A D | exposure.rs | 30 out.rgb = convert_uchar3(clamp(convert_int3(t * bright), 0, 255));
|
H A D | contrast.rs | 31 o.rgb = convert_uchar3(clamp(v, 0.f, 255.f));
|
H A 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/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.rs | 33 f = clamp(f, 0.f, 255.f);
|
H A D | contrast.rs | 31 o.rgb = convert_uchar3(clamp(v, 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 | 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);
|
H A D | colormatrix.rs | 33 f = clamp(f, 0.f, 255.f);
|
H A D | exposure.rs | 30 out.rgb = convert_uchar3(clamp(convert_int3(t * bright), 0, 255));
|
H A D | contrast.rs | 31 o.rgb = convert_uchar3(clamp(v, 0.f, 255.f));
|
H A 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/base/tests/Camera2Tests/SmartCamera/SimpleCamera/jni/ |
H A D | imgprocutil.h | 27 inline int clamp(int min, int val, int max) { function
|
/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 | 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/base/core/java/android/view/ |
H A D | RoundScrollbarRenderer.java | 78 sweepAngle = clamp(sweepAngle, MIN_SCROLLBAR_ANGLE_SWIPE, MAX_SCROLLBAR_ANGLE_SWIPE); 82 startAngle = clamp(startAngle, -SCROLLBAR_ANGLE_RANGE / 2, 97 private static float clamp(float val, float min, float max) { method in class:RoundScrollbarRenderer
|
/frameworks/rs/cpu_ref/ |
H A D | rsCpuIntrinsicInlines.h | 85 static inline int4 clamp(int4 amount, int low, int high) { function 94 static inline float4 clamp(float4 amount, float low, float high) { function 103 static inline int2 clamp(int2 amount, int low, int high) { function 110 static inline float2 clamp(float2 amount, float low, float high) { function 117 static inline int clamp(int amount, int low, int high) { function 121 static inline float clamp(float amount, float low, float high) { function
|