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

1234

/frameworks/rs/java/tests/ScriptGroupTest/src/com/android/rs/sgtest/
H A Df4touc4.rs21 float4 f = clamp(in, 0.f, 255.f);
H A 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/av/cmds/stagefright/filters/
H A Dnightvision.rs35 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 Dsaturation.rs37 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 DsaturationARGB.rs37 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 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 Dvibrance.rs48 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 Dcolormatrix.rs33 f = clamp(f, 0.f, 255.f);
H A Dexposure.rs30 out.rgb = convert_uchar3(clamp(convert_int3(t * bright), 0, 255));
H A Dcontrast.rs31 o.rgb = convert_uchar3(clamp(v, 0.f, 255.f));
H A Dthreshold.rs88 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 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.rs33 f = clamp(f, 0.f, 255.f);
H A Dcontrast.rs31 o.rgb = convert_uchar3(clamp(v, 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 Dvibrance.rs48 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 Dcolormatrix.rs33 f = clamp(f, 0.f, 255.f);
H A Dexposure.rs30 out.rgb = convert_uchar3(clamp(convert_int3(t * bright), 0, 255));
H A Dcontrast.rs31 o.rgb = convert_uchar3(clamp(v, 0.f, 255.f));
H A Dthreshold.rs88 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 Dimgprocutil.h27 inline int clamp(int min, int val, int max) { function
/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.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) { \
/frameworks/base/core/java/android/view/
H A DRoundScrollbarRenderer.java78 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 DrsCpuIntrinsicInlines.h85 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

Completed in 458 milliseconds

1234