Searched refs:rsClamp (Results 1 - 15 of 15) sorted by relevance

/frameworks/rs/java/tests/ImageProcessing2/src/com/android/rs/image/
H A Dexposure.rs27 out->r = rsClamp((int)(bright * in->r), 0, 255);
28 out->g = rsClamp((int)(bright * in->g), 0, 255);
29 out->b = rsClamp((int)(bright * in->b), 0, 255);
H A Dcontrast.rs30 out->r = rsClamp((int)(brightM * in->r + brightC), 0, 255);
31 out->g = rsClamp((int)(brightM * in->g + brightC), 0, 255);
32 out->b = rsClamp((int)(brightM * in->b + brightC), 0, 255);
H A Dvibrance.rs55 out->r = rsClamp(Rc, 0, 255);
56 out->g = rsClamp(Gc, 0, 255);
57 out->b = rsClamp(Bc, 0, 255);
H A Dbwfilter.rs51 out->r = out->g = out->b = rsClamp(avg, 0, 255);
H A Dthreshold.fs88 int validH = rsClamp((int)y + r, (int)0, (int)(height - 1));
110 int validX = rsClamp((int)x + r, (int)0, (int)(width - 1));
/frameworks/rs/java/tests/ImageProcessing_jb/src/com/android/rs/image/
H A Dexposure.rs29 out.r = rsClamp((int)(bright * in.r), 0, 255);
30 out.g = rsClamp((int)(bright * in.g), 0, 255);
31 out.b = rsClamp((int)(bright * in.b), 0, 255);
H A Dvibrance.rs49 o.r = rsClamp(Rc, 0, 255);
50 o.g = rsClamp(Gc, 0, 255);
51 o.b = rsClamp(Bc, 0, 255);
H A Dbwfilter.rs51 out->r = out->g = out->b = rsClamp(avg, 0, 255);
H A Dthreshold.rs88 int validH = rsClamp((int)y + r, (int)0, (int)(height - 1));
110 int validX = rsClamp((int)x + r, (int)0, (int)(width - 1));
/frameworks/rs/java/tests/ImageProcessing/src/com/android/rs/image/
H A Dvibrance.rs49 o.r = rsClamp(Rc, 0, 255);
50 o.g = rsClamp(Gc, 0, 255);
51 o.b = rsClamp(Bc, 0, 255);
H A Dbwfilter.rs51 out->r = out->g = out->b = rsClamp(avg, 0, 255);
H A Dthreshold.rs88 int validH = rsClamp((int)y + r, (int)0, (int)(height - 1));
110 int validX = rsClamp((int)x + r, (int)0, (int)(width - 1));
/frameworks/rs/driver/runtime/
H A Drs_core.c15 extern float __attribute__((overloadable)) rsClamp(float v, float l, float h) { function
18 extern char __attribute__((overloadable)) rsClamp(char v, char l, char h) { function
21 extern uchar __attribute__((overloadable)) rsClamp(uchar v, uchar l, uchar h) { function
24 extern short __attribute__((overloadable)) rsClamp(short v, short l, short h) { function
27 extern ushort __attribute__((overloadable)) rsClamp(ushort v, ushort l, ushort h) { function
30 extern int __attribute__((overloadable)) rsClamp(int v, int l, int h) { function
33 extern uint __attribute__((overloadable)) rsClamp(uint v, uint l, uint h) { function
/frameworks/rs/scriptc/
H A Drs_math.rsh67 _RS_RUNTIME uint __attribute__((const, overloadable, always_inline)) rsClamp(uint amount, uint low, uint high);
72 _RS_RUNTIME int __attribute__((const, overloadable, always_inline)) rsClamp(int amount, int low, int high);
76 _RS_RUNTIME ushort __attribute__((const, overloadable, always_inline)) rsClamp(ushort amount, ushort low, ushort high);
80 _RS_RUNTIME short __attribute__((const, overloadable, always_inline)) rsClamp(short amount, short low, short high);
84 _RS_RUNTIME uchar __attribute__((const, overloadable, always_inline)) rsClamp(uchar amount, uchar low, uchar high);
88 _RS_RUNTIME char __attribute__((const, overloadable, always_inline)) rsClamp(char amount, char low, char high);
/frameworks/rs/driver/runtime/arch/
H A Dgeneric.c20 extern short __attribute__((overloadable, always_inline)) rsClamp(short amount, short low, short high);
638 p.r = rsClamp(p.r, (short)0, (short)255);
639 p.g = rsClamp(p.g, (short)0, (short)255);
640 p.b = rsClamp(p.b, (short)0, (short)255);

Completed in 688 milliseconds