/dports/games/libretro-scummvm/scummvm-7b1e929/graphics/ |
H A D | conversion.h | 34 r = CLIP<int>(y + ((1357 * (v - 128)) >> 10), 0, 255); in YUV2RGB() 35 g = CLIP<int>(y - (( 691 * (v - 128)) >> 10) - ((333 * (u - 128)) >> 10), 0, 255); in YUV2RGB() 36 b = CLIP<int>(y + ((1715 * (u - 128)) >> 10), 0, 255); in YUV2RGB() 41 y = CLIP<int>( ((r * 306) >> 10) + ((g * 601) >> 10) + ((b * 117) >> 10) , 0, 255); in RGB2YUV() 42 u = CLIP<int>(-((r * 172) >> 10) - ((g * 340) >> 10) + ((b * 512) >> 10) + 128, 0, 255); in RGB2YUV() 43 v = CLIP<int>( ((r * 512) >> 10) - ((g * 429) >> 10) - ((b * 83) >> 10) + 128, 0, 255); in RGB2YUV()
|
/dports/games/residualvm/residualvm-0.3.1/graphics/ |
H A D | conversion.h | 34 r = CLIP<int>(y + ((1357 * (v - 128)) >> 10), 0, 255); in YUV2RGB() 35 g = CLIP<int>(y - (( 691 * (v - 128)) >> 10) - ((333 * (u - 128)) >> 10), 0, 255); in YUV2RGB() 36 b = CLIP<int>(y + ((1715 * (u - 128)) >> 10), 0, 255); in YUV2RGB() 41 y = CLIP<int>( ((r * 306) >> 10) + ((g * 601) >> 10) + ((b * 117) >> 10) , 0, 255); in RGB2YUV() 42 u = CLIP<int>(-((r * 172) >> 10) - ((g * 340) >> 10) + ((b * 512) >> 10) + 128, 0, 255); in RGB2YUV() 43 v = CLIP<int>( ((r * 512) >> 10) - ((g * 429) >> 10) - ((b * 83) >> 10) + 128, 0, 255); in RGB2YUV()
|
/dports/games/libretro-scummvm/scummvm-7b1e929/engines/bladerunner/ |
H A D | shape.cpp | 65 int src_x = CLIP(-x, 0, _width); in draw() 66 int src_y = CLIP(-y, 0, _height); in draw() 68 int dst_x = CLIP<int>(x, 0, surface.w); in draw() 69 int dst_y = CLIP<int>(y, 0, surface.h); in draw() 71 int rect_w = MIN(CLIP(_width + x, 0, _width), surface.w - x); in draw() 72 int rect_h = MIN(CLIP(_height + y, 0, _height), surface.h - y); in draw() 90 …void *dstPtr = surface.getBasePtr(CLIP(dst_x + xi, 0, surface.w - 1), CLIP(dst_y + yi, 0, surface.… in draw()
|
/dports/games/scummvm/scummvm-2.5.1/engines/bladerunner/ |
H A D | shape.cpp | 65 int src_x = CLIP(-x, 0, _width); in draw() 66 int src_y = CLIP(-y, 0, _height); in draw() 68 int dst_x = CLIP<int>(x, 0, surface.w); in draw() 69 int dst_y = CLIP<int>(y, 0, surface.h); in draw() 71 int rect_w = MIN(CLIP(_width + x, 0, _width), surface.w - x); in draw() 72 int rect_h = MIN(CLIP(_height + y, 0, _height), surface.h - y); in draw() 90 …void *dstPtr = surface.getBasePtr(CLIP(dst_x + xi, 0, surface.w - 1), CLIP(dst_y + yi, 0, surface.… in draw()
|
/dports/games/libretro-fbneo/FBNeo-bbe3c05/src/burn/drv/cave/ |
H A D | cave_sprite_render.h | 90 #define CLIP(a,b) if (nColumn >= (XSIZE - a)) { continue; } \ macro 99 CLIP(OFFSET((x + 0)), PLOTPIXEL(OFFSET((x + 0)), nColour & 0x0F)); \ 101 CLIP(OFFSET((x + 1)), PLOTPIXEL(OFFSET((x + 1)), nColour & 0x0F)); \ 104 CLIP(OFFSET((x + 2)), PLOTPIXEL(OFFSET((x + 2)), nColour & 0x0F)); \ 106 CLIP(OFFSET((x + 3)), PLOTPIXEL(OFFSET((x + 3)), nColour & 0x0F)); \ 109 CLIP(OFFSET((x + 4)), PLOTPIXEL(OFFSET((x + 4)), nColour & 0x0F)); \ 111 CLIP(OFFSET((x + 5)), PLOTPIXEL(OFFSET((x + 5)), nColour & 0x0F)); \ 114 CLIP(OFFSET((x + 6)), PLOTPIXEL(OFFSET((x + 6)), nColour & 0x0F)); \ 116 CLIP(OFFSET((x + 7)), PLOTPIXEL(OFFSET((x + 7)), nColour & 0x0F)); 146 CLIP(OFFSET((x + 3)), PLOTPIXEL(OFFSET((x + 3)), nColour & 0xFF)); [all …]
|
/dports/games/libretro-fbalpha/fbalpha-84eb9d9/src/burn/drv/cave/ |
H A D | cave_sprite_render.h | 90 #define CLIP(a,b) if (nColumn >= (XSIZE - a)) { continue; } \ macro 99 CLIP(OFFSET((x + 0)), PLOTPIXEL(OFFSET((x + 0)), nColour & 0x0F)); \ 101 CLIP(OFFSET((x + 1)), PLOTPIXEL(OFFSET((x + 1)), nColour & 0x0F)); \ 104 CLIP(OFFSET((x + 2)), PLOTPIXEL(OFFSET((x + 2)), nColour & 0x0F)); \ 106 CLIP(OFFSET((x + 3)), PLOTPIXEL(OFFSET((x + 3)), nColour & 0x0F)); \ 109 CLIP(OFFSET((x + 4)), PLOTPIXEL(OFFSET((x + 4)), nColour & 0x0F)); \ 111 CLIP(OFFSET((x + 5)), PLOTPIXEL(OFFSET((x + 5)), nColour & 0x0F)); \ 114 CLIP(OFFSET((x + 6)), PLOTPIXEL(OFFSET((x + 6)), nColour & 0x0F)); \ 116 CLIP(OFFSET((x + 7)), PLOTPIXEL(OFFSET((x + 7)), nColour & 0x0F)); 146 CLIP(OFFSET((x + 3)), PLOTPIXEL(OFFSET((x + 3)), nColour & 0xFF)); [all …]
|
/dports/multimedia/libmpeg3/libmpeg3-1.8/video/ |
H A D | slice.c | 132 rfp[0] = CLIP(bp[0] + rfp[0]); in mpeg3video_addblock() 133 rfp[1] = CLIP(bp[1] + rfp[1]); in mpeg3video_addblock() 134 rfp[2] = CLIP(bp[2] + rfp[2]); in mpeg3video_addblock() 148 rfp[0] = CLIP(bp[0] + 128); in mpeg3video_addblock() 149 rfp[1] = CLIP(bp[1] + 128); in mpeg3video_addblock() 150 rfp[2] = CLIP(bp[2] + 128); in mpeg3video_addblock() 151 rfp[3] = CLIP(bp[3] + 128); in mpeg3video_addblock() 152 rfp[4] = CLIP(bp[4] + 128); in mpeg3video_addblock() 153 rfp[5] = CLIP(bp[5] + 128); in mpeg3video_addblock() 154 rfp[6] = CLIP(bp[6] + 128); in mpeg3video_addblock() [all …]
|
/dports/multimedia/camserv/camserv-0.5.1/camserv/ |
H A D | yuv2rgb.h | 7 #define CLIP 320 macro 28 static unsigned int ng_clip[256 + 2 * CLIP]; 32 #define RED(gray,red) ng_clip[ CLIP + gray + ng_yuv_red[red] ] 33 #define GREEN(gray,red,blue) ng_clip[ CLIP + gray + ng_yuv_g1[red] + \ 35 #define BLUE(gray,blue) ng_clip[ CLIP + gray + ng_yuv_blue[blue] ]
|
/dports/multimedia/xvid/xvidcore/src/image/ |
H A D | reduced.c | 42 #define ADD(dst,src) (dst) = CLIP((dst)+(src), 0, 255) 50 Dst1[0] = CLIP(a, 0, 255); in Filter_31() 51 Dst2[0] = CLIP(b, 0, 255); in Filter_31() 62 Dst1[0] = CLIP(a, 0, 255); in Filter_9331() 63 Dst1[1] = CLIP(b, 0, 255); in Filter_9331() 64 Dst2[0] = CLIP(c, 0, 255); in Filter_9331() 65 Dst2[1] = CLIP(d, 0, 255); in Filter_9331() 72 Dst[0] = CLIP(Src[0], 0, 255); in xvid_Copy_Upsampled_8x8_16To8_C() 74 Dst[15] = CLIP(Src[7], 0, 255); in xvid_Copy_Upsampled_8x8_16To8_C() 85 Dst[0] = CLIP(Src[0], 0, 255); in xvid_Copy_Upsampled_8x8_16To8_C() [all …]
|
/dports/games/scummvm/scummvm-2.5.1/engines/gob/minigames/geisha/ |
H A D | meter.cpp | 54 value = CLIP<int32>(value, 0, _maxValue); in setValue() 72 int32 value = CLIP<int32>(_value + n, 0, _maxValue); in increase() 88 int32 value = CLIP<int32>(_value - n, 0, _maxValue); in decrease() 106 left = CLIP<int16>(_x , 0, dest.getWidth () - 1); in draw() 107 top = CLIP<int16>(_y , 0, dest.getHeight() - 1); in draw() 108 right = CLIP<int16>(_x + _width - 1, 0, dest.getWidth () - 1); in draw() 109 bottom = CLIP<int16>(_y + _height - 1, 0, dest.getHeight() - 1); in draw()
|
/dports/games/libretro-scummvm/scummvm-7b1e929/engines/gob/minigames/geisha/ |
H A D | meter.cpp | 54 value = CLIP<int32>(value, 0, _maxValue); in setValue() 72 int32 value = CLIP<int32>(_value + n, 0, _maxValue); in increase() 88 int32 value = CLIP<int32>(_value - n, 0, _maxValue); in decrease() 106 left = CLIP<int16>(_x , 0, dest.getWidth () - 1); in draw() 107 top = CLIP<int16>(_y , 0, dest.getHeight() - 1); in draw() 108 right = CLIP<int16>(_x + _width - 1, 0, dest.getWidth () - 1); in draw() 109 bottom = CLIP<int16>(_y + _height - 1, 0, dest.getHeight() - 1); in draw()
|
/dports/print/hplip/hplip-3.20.6/ip/ |
H A D | xcolrspc.c | 525 sR = CLIP(sR); in YCCToCIELab() 528 sG = CLIP(sG); in YCCToCIELab() 531 sB = CLIP(sB); in YCCToCIELab() 541 x = CLIP(XYZ50val[0]); in YCCToCIELab() 542 y = CLIP(XYZ50val[1]); in YCCToCIELab() 543 z = CLIP(XYZ50val[2]); in YCCToCIELab() 591 psRGB[0] = (BYTE)CLIP(sR); in YCCTosRGB() 594 psRGB[1] = (BYTE)CLIP(sG); in YCCTosRGB() 597 psRGB[2] = (BYTE)CLIP(sB); in YCCTosRGB() 674 iy = CLIP(iy); in CIELabToYCC() [all …]
|
/dports/lang/squeak/Squeak-4.10.2.2614-src/Cross/plugins/Mpeg3Plugin/libmpeg/video/ |
H A D | slice.c | 228 rfp[0] = CLIP(bp[0] + rfp[0]); in mpeg3video_addblock() 229 rfp[1] = CLIP(bp[1] + rfp[1]); in mpeg3video_addblock() 230 rfp[2] = CLIP(bp[2] + rfp[2]); in mpeg3video_addblock() 307 rfp[0] = CLIP(bp[0] + 128); in mpeg3video_addblock() 308 rfp[1] = CLIP(bp[1] + 128); in mpeg3video_addblock() 309 rfp[2] = CLIP(bp[2] + 128); in mpeg3video_addblock() 310 rfp[3] = CLIP(bp[3] + 128); in mpeg3video_addblock() 311 rfp[4] = CLIP(bp[4] + 128); in mpeg3video_addblock() 312 rfp[5] = CLIP(bp[5] + 128); in mpeg3video_addblock() 313 rfp[6] = CLIP(bp[6] + 128); in mpeg3video_addblock() [all …]
|
/dports/games/searchandrescue/searchandrescue_1.4.0/sar/ |
H A D | horizon.c | 25 #define CLIP(a,l,h) (MIN(MAX((a),(l)),(h))) macro 87 r = (u_int8_t)CLIP( in SARCreateHorizonTexture() 91 g = (u_int8_t)CLIP( in SARCreateHorizonTexture() 95 b = (u_int8_t)CLIP( in SARCreateHorizonTexture() 108 r = (u_int8_t)CLIP( in SARCreateHorizonTexture() 112 g = (u_int8_t)CLIP( in SARCreateHorizonTexture() 116 b = (u_int8_t)CLIP( in SARCreateHorizonTexture()
|
/dports/java/openjdk15/jdk15u-jdk-15.0.6-1-1/src/java.desktop/share/native/libmlib_image/ |
H A D | mlib_ImageAffine_NN.c | 56 CLIP(1); in mlib_ImageAffine_s32_1ch_nn() 82 CLIP(1); in mlib_ImageAffine_s32_1ch_nn() 128 CLIP(2); in mlib_ImageAffine_s32_2ch_nn() 152 CLIP(3); in mlib_ImageAffine_s32_3ch_nn() 177 CLIP(4); in mlib_ImageAffine_s32_4ch_nn() 206 CLIP(1); in mlib_ImageAffine_d64_1ch_nn() 229 CLIP(2); in mlib_ImageAffine_d64_2ch_nn() 253 CLIP(3); in mlib_ImageAffine_d64_3ch_nn() 278 CLIP(4); in mlib_ImageAffine_d64_4ch_nn()
|
/dports/java/openjdk16/jdk16u-jdk-16.0.2-7-1/src/java.desktop/share/native/libmlib_image/ |
H A D | mlib_ImageAffine_NN.c | 56 CLIP(1); in mlib_ImageAffine_s32_1ch_nn() 82 CLIP(1); in mlib_ImageAffine_s32_1ch_nn() 128 CLIP(2); in mlib_ImageAffine_s32_2ch_nn() 152 CLIP(3); in mlib_ImageAffine_s32_3ch_nn() 177 CLIP(4); in mlib_ImageAffine_s32_4ch_nn() 206 CLIP(1); in mlib_ImageAffine_d64_1ch_nn() 229 CLIP(2); in mlib_ImageAffine_d64_2ch_nn() 253 CLIP(3); in mlib_ImageAffine_d64_3ch_nn() 278 CLIP(4); in mlib_ImageAffine_d64_4ch_nn()
|
/dports/java/openjdk17/jdk17u-jdk-17.0.1-12-1/src/java.desktop/share/native/libmlib_image/ |
H A D | mlib_ImageAffine_NN.c | 56 CLIP(1); in mlib_ImageAffine_s32_1ch_nn() 82 CLIP(1); in mlib_ImageAffine_s32_1ch_nn() 128 CLIP(2); in mlib_ImageAffine_s32_2ch_nn() 152 CLIP(3); in mlib_ImageAffine_s32_3ch_nn() 177 CLIP(4); in mlib_ImageAffine_s32_4ch_nn() 206 CLIP(1); in mlib_ImageAffine_d64_1ch_nn() 229 CLIP(2); in mlib_ImageAffine_d64_2ch_nn() 253 CLIP(3); in mlib_ImageAffine_d64_3ch_nn() 278 CLIP(4); in mlib_ImageAffine_d64_4ch_nn()
|
/dports/multimedia/blind/blind-1.1/src/ |
H A D | blind-to-video.c | 34 *pixels++ = htole16((uint16_t)CLIP(0, y, 0xFFFFL)); in process_xyza() 35 *pixels++ = htole16((uint16_t)CLIP(0, u, 0xFFFFL)); in process_xyza() 36 *pixels++ = htole16((uint16_t)CLIP(0, v, 0xFFFFL)); in process_xyza() 52 *pixels++ = htole16((uint16_t)CLIP(0, a, 0xFFFFL)); in process_xyza() 53 *pixels++ = htole16((uint16_t)CLIP(0, y, 0xFFFFL)); in process_xyza() 54 *pixels++ = htole16((uint16_t)CLIP(0, u, 0xFFFFL)); in process_xyza() 55 *pixels++ = htole16((uint16_t)CLIP(0, v, 0xFFFFL)); in process_xyza()
|
/dports/graphics/osg/OpenSceneGraph-OpenSceneGraph-3.6.5/src/osgPlugins/lwo/ |
H A D | Clip.cpp | 12 Clip::Clip(const lwo2::FORM::CLIP *clip) in Clip() 19 void Clip::compile(const lwo2::FORM::CLIP *clip) in compile() 22 const lwo2::FORM::CLIP::STIL *stil = dynamic_cast<const lwo2::FORM::CLIP::STIL *>(*j); in compile()
|
/dports/graphics/osg34/OpenSceneGraph-OpenSceneGraph-3.4.1/src/osgPlugins/lwo/ |
H A D | Clip.cpp | 12 Clip::Clip(const lwo2::FORM::CLIP *clip) in Clip() 19 void Clip::compile(const lwo2::FORM::CLIP *clip) in compile() 22 const lwo2::FORM::CLIP::STIL *stil = dynamic_cast<const lwo2::FORM::CLIP::STIL *>(*j); in compile()
|
/dports/games/libretro-scummvm/scummvm-7b1e929/backends/platform/libretro/deps/libfaad/libfaad/ |
H A D | output.c | 64 #define CLIP(sample, max, min) \ macro 76 #define CLIP(sample, max, min) \ macro 104 CLIP(inp, 32767.0f, -32768.0f); in to_PCM_16bit() 117 CLIP(inp0, 32767.0f, -32768.0f); in to_PCM_16bit() 130 CLIP(inp0, 32767.0f, -32768.0f); in to_PCM_16bit() 131 CLIP(inp1, 32767.0f, -32768.0f); in to_PCM_16bit() 145 CLIP(inp, 32767.0f, -32768.0f); in to_PCM_16bit() 170 CLIP(inp, 8388607.0f, -8388608.0f); in to_PCM_24bit() 184 CLIP(inp0, 8388607.0f, -8388608.0f); in to_PCM_24bit() 199 CLIP(inp0, 8388607.0f, -8388608.0f); in to_PCM_24bit() [all …]
|
/dports/audio/faad/faad2-c626366/libfaad/ |
H A D | output.c | 64 #define CLIP(sample, max, min) \ macro 76 #define CLIP(sample, max, min) \ macro 104 CLIP(inp, 32767.0f, -32768.0f); in to_PCM_16bit() 117 CLIP(inp0, 32767.0f, -32768.0f); in to_PCM_16bit() 130 CLIP(inp0, 32767.0f, -32768.0f); in to_PCM_16bit() 131 CLIP(inp1, 32767.0f, -32768.0f); in to_PCM_16bit() 145 CLIP(inp, 32767.0f, -32768.0f); in to_PCM_16bit() 170 CLIP(inp, 8388607.0f, -8388608.0f); in to_PCM_24bit() 184 CLIP(inp0, 8388607.0f, -8388608.0f); in to_PCM_24bit() 199 CLIP(inp0, 8388607.0f, -8388608.0f); in to_PCM_24bit() [all …]
|
/dports/multimedia/libxine/xine-lib-1.2.11/contrib/libfaad/ |
H A D | output.c | 64 #define CLIP(sample, max, min) \ macro 76 #define CLIP(sample, max, min) \ macro 104 CLIP(inp, 32767.0f, -32768.0f); in to_PCM_16bit() 117 CLIP(inp0, 32767.0f, -32768.0f); in to_PCM_16bit() 130 CLIP(inp0, 32767.0f, -32768.0f); in to_PCM_16bit() 131 CLIP(inp1, 32767.0f, -32768.0f); in to_PCM_16bit() 145 CLIP(inp, 32767.0f, -32768.0f); in to_PCM_16bit() 170 CLIP(inp, 8388607.0f, -8388608.0f); in to_PCM_24bit() 184 CLIP(inp0, 8388607.0f, -8388608.0f); in to_PCM_24bit() 199 CLIP(inp0, 8388607.0f, -8388608.0f); in to_PCM_24bit() [all …]
|
/dports/audio/aacgain/aacgain-1.8/faad2/libfaad/ |
H A D | output.c | 62 #define CLIP(sample, max, min) \ macro 74 #define CLIP(sample, max, min) \ macro 102 CLIP(inp, 32767.0f, -32768.0f); in to_PCM_16bit() 115 CLIP(inp0, 32767.0f, -32768.0f); in to_PCM_16bit() 128 CLIP(inp0, 32767.0f, -32768.0f); in to_PCM_16bit() 129 CLIP(inp1, 32767.0f, -32768.0f); in to_PCM_16bit() 143 CLIP(inp, 32767.0f, -32768.0f); in to_PCM_16bit() 168 CLIP(inp, 8388607.0f, -8388608.0f); in to_PCM_24bit() 182 CLIP(inp0, 8388607.0f, -8388608.0f); in to_PCM_24bit() 197 CLIP(inp0, 8388607.0f, -8388608.0f); in to_PCM_24bit() [all …]
|
/dports/audio/welle.io/welle.io-66675c9a4160c644a5ade5bf7a0cd0647647f33c/src/libs/faad2/libfaad/ |
H A D | output.c | 64 #define CLIP(sample, max, min) \ macro 76 #define CLIP(sample, max, min) \ macro 104 CLIP(inp, 32767.0f, -32768.0f); in to_PCM_16bit() 117 CLIP(inp0, 32767.0f, -32768.0f); in to_PCM_16bit() 130 CLIP(inp0, 32767.0f, -32768.0f); in to_PCM_16bit() 131 CLIP(inp1, 32767.0f, -32768.0f); in to_PCM_16bit() 145 CLIP(inp, 32767.0f, -32768.0f); in to_PCM_16bit() 170 CLIP(inp, 8388607.0f, -8388608.0f); in to_PCM_24bit() 184 CLIP(inp0, 8388607.0f, -8388608.0f); in to_PCM_24bit() 199 CLIP(inp0, 8388607.0f, -8388608.0f); in to_PCM_24bit() [all …]
|