Searched refs:CLIP (Results 1 - 3 of 3) sorted by relevance

/haiku/src/system/libroot/posix/sys/
H A Dpriority.c39 #ifdef CLIP
40 #undef CLIP macro
42 #define CLIP(n, max, min) MAX(MIN((n), (max)), (min)) macro
50 #define CLIP_TO_UNIX(n) CLIP(n, NMIN, NMAX)
55 #define CLIP_TO_BEOS(n) CLIP(n, BMAX, BMIN)
/haiku/src/add-ons/media/plugins/ffmpeg/
H A Dgfx_conv_c.cpp138 #define CLIP(a) if (0xffffff00 & (uint32)a) { if (a < 0) a = 0; else a = 255; } macro
151 CLIP(r);
152 CLIP(g);
153 CLIP(b);
206 CLIP(r);
207 CLIP(g);
208 CLIP(b);
/haiku/src/add-ons/translators/raw/
H A DRAW.cpp32 #define CLIP(x) LIM(x,0,65535) macro
1064 fImageData[row * fOutputWidth + col][c] = CLIP(val);
1182 = (uint16)CLIP(fimg[(row << dim) + col] + 0.5);
1221 _Bayer(col, row) = (uint16)CLIP(avg + diff + 0.5);
1304 xyz[0] = cbrt[CLIP((int) xyz[0])];
1305 xyz[1] = cbrt[CLIP((int) xyz[1])];
1306 xyz[2] = cbrt[CLIP((int) xyz[2])];
1787 rix[0][2-c] = CLIP(val);
1799 rix[0][c] = CLIP(val);
2063 img[c] = CLIP((in
[all...]

Completed in 44 milliseconds