/frameworks/rs/java/tests/ImageProcessing2/src/com/android/rs/image/ |
H A D | exposure.rs | 27 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 D | contrast.rs | 30 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 D | vibrance.rs | 55 out->r = rsClamp(Rc, 0, 255); 56 out->g = rsClamp(Gc, 0, 255); 57 out->b = rsClamp(Bc, 0, 255);
|
H A D | bwfilter.rs | 51 out->r = out->g = out->b = rsClamp(avg, 0, 255);
|
H A D | threshold.fs | 88 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 D | exposure.rs | 29 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 D | vibrance.rs | 49 o.r = rsClamp(Rc, 0, 255); 50 o.g = rsClamp(Gc, 0, 255); 51 o.b = rsClamp(Bc, 0, 255);
|
H A D | bwfilter.rs | 51 out->r = out->g = out->b = rsClamp(avg, 0, 255);
|
H A D | threshold.rs | 88 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 D | vibrance.rs | 49 o.r = rsClamp(Rc, 0, 255); 50 o.g = rsClamp(Gc, 0, 255); 51 o.b = rsClamp(Bc, 0, 255);
|
H A D | bwfilter.rs | 51 out->r = out->g = out->b = rsClamp(avg, 0, 255);
|
H A D | threshold.rs | 88 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 D | rs_core.c | 15 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 D | rs_math.rsh | 67 _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 D | generic.c | 20 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);
|