/dports/devel/love/love-11.3/src/modules/image/ |
H A D | wrap_ImageData.lua | 37 local function clamp01(x) function 266 r = clamp01(r) * 0xF 267 g = clamp01(g) * 0xF 268 b = clamp01(b) * 0xF 286 r = clamp01(r) * 0x1F 287 g = clamp01(g) * 0x1F 288 b = clamp01(b) * 0x1F 305 r = clamp01(r) * 0x1F 306 g = clamp01(g) * 0x3F 307 b = clamp01(b) * 0x1F [all …]
|
H A D | ImageData.cpp | 264 static float clamp01(float x) in clamp01() function 348 uint16 r = (uint16) (clamp01(c.r) * 0xF + 0.5); in setPixelRGBA4() 349 uint16 g = (uint16) (clamp01(c.g) * 0xF + 0.5); in setPixelRGBA4() 350 uint16 b = (uint16) (clamp01(c.b) * 0xF + 0.5); in setPixelRGBA4() 351 uint16 a = (uint16) (clamp01(c.a) * 0xF + 0.5); in setPixelRGBA4() 358 uint16 r = (uint16) (clamp01(c.r) * 0x1F + 0.5); in setPixelRGB5A1() 359 uint16 g = (uint16) (clamp01(c.g) * 0x1F + 0.5); in setPixelRGB5A1() 360 uint16 b = (uint16) (clamp01(c.b) * 0x1F + 0.5); in setPixelRGB5A1() 361 uint16 a = (uint16) (clamp01(c.a) * 0x1 + 0.5); in setPixelRGB5A1() 368 uint16 r = (uint16) (clamp01(c.r) * 0x1F + 0.5); in setPixelRGB565() [all …]
|
/dports/devel/love/love-11.3/src/modules/math/ |
H A D | wrap_Math.lua | 31 local function clamp01(x) function 65 r = floor(clamp01(r) * 255 + 0.5) 66 g = floor(clamp01(g) * 255 + 0.5) 67 b = floor(clamp01(b) * 255 + 0.5) 68 a = a ~= nil and floor(clamp01(a) * 255 + 0.5) or nil 76 r = clamp01(floor(r + 0.5) / 255) 77 g = clamp01(floor(g + 0.5) / 255) 78 b = clamp01(floor(b + 0.5) / 255) 79 a = a ~= nil and clamp01(floor(a + 0.5) / 255) or nil 125 return tonumber(ffifuncs.gammaToLinear(clamp01(c))) [all …]
|
/dports/devel/emscripten/emscripten-2.0.3/tests/minimal_webgl/ |
H A D | main.cpp | 10 float clamp01(float v) in clamp01() function 57 clamp01(2.f - mod_dist(c, 0.f)), in draw_frame() 58 clamp01(2.f - mod_dist(c, 2.f)), in draw_frame() 59 clamp01(2.f - mod_dist(c, 4.f)), in draw_frame()
|
/dports/audio/surge-synthesizer-lv2/surge-release_1.9.0/src/common/dsp/effect/chowdsp/ |
H A D | TapeEffect.cpp | 57 auto thd = clamp01(*f[tape_drive]); in get_effectname() 58 auto ths = clamp01(*f[tape_saturation]); in get_effectname() 59 auto thb = clamp01(*f[tape_bias]); in get_effectname() 84 auto tdd = clamp01(*f[tape_degrade_depth]); in get_effectname() 85 auto tda = clamp01(*f[tape_degrade_amount]); in get_effectname() 86 auto tdv = clamp01(*f[tape_degrade_variance]); in get_effectname() 97 mix.set_target_smoothed(clamp01(*f[tape_mix])); in get_effectname()
|
H A D | NeuronEffect.cpp | 104 auto bf_clamped = clamp01(*f[neuron_bias_bf]); in set_params() 105 auto wh_clamped = clamp01(*f[neuron_drive_wh]); in set_params() 107 Wf.setTargetValue(clamp01(*f[neuron_squash_wf]) * 20.0f); in set_params() 109 Uf.setTargetValue(clamp01(*f[neuron_stab_uf]) * 5.0f); in set_params() 110 Uh.setTargetValue(clamp01(*f[neuron_asym_uh]) * 0.9f); in set_params() 135 auto phase = clamp01((*f[neuron_lfo_rate] - rmin) / (rmax - rmin)); in set_params()
|
H A D | ExciterEffect.cpp | 74 auto cutoff = low_freq * std::pow(high_freq / low_freq, clamp01(*f[exciter_tone])); in set_params() 80 auto drive_makeup = std::pow(0.2f, 1.f - clamp01(*f[exciter_tone])); in set_params() 81 auto drive = 8.f * std::pow(clamp01(*f[exciter_drive]), 1.5f) * drive_makeup; in set_params() 96 wet_gain.set_target_smoothed(clamp01(*f[exciter_mix])); in set_params()
|
/dports/audio/surge-synthesizer-lv2/surge-release_1.9.0/src/common/dsp/effect/ |
H A D | NimbusEffect.cpp | 140 parm->position = clamp01(*f[nmb_position]); in process() 141 parm->size = clamp01(*f[nmb_size]); in process() 142 parm->density = clamp01(den_val); in process() 143 parm->texture = clamp01(tex_val); in process() 145 parm->stereo_spread = clamp01(*f[nmb_spread]); in process() 146 parm->feedback = clamp01(*f[nmb_feedback]); in process() 148 parm->reverb = clamp01(*f[nmb_reverb]); in process() 209 mix.set_target_smoothed(clamp01(*f[nmb_mix])); in process()
|
H A D | TreemonsterEffect.cpp | 114 float qs = clamp01(*f[tm_speed]); 203 rm.set_target_smoothed(clamp01(*f[tm_ring_mix])); 215 mix.set_target_smoothed(clamp01(*f[tm_mix]));
|
/dports/devel/gh/cli-2.4.0/vendor/github.com/lucasb-eyer/go-colorful/ |
H A D | hsluv.go | 29 return h, clamp01(s / 100.0), clamp01(l / 100.0) 45 return clamp01(l / 100.0), c / 100.0, h
|
/dports/devel/lazygit/lazygit-0.31.4/vendor/github.com/lucasb-eyer/go-colorful/go-colorful-1.2.0/ |
H A D | hsluv.go | 29 return h, clamp01(s / 100.0), clamp01(l / 100.0) 45 return clamp01(l / 100.0), c / 100.0, h
|
/dports/devel/lazygit/lazygit-0.31.4/vendor/github.com/lucasb-eyer/go-colorful/ |
H A D | hsluv.go | 29 return h, clamp01(s / 100.0), clamp01(l / 100.0) 45 return clamp01(l / 100.0), c / 100.0, h
|
/dports/sysutils/chezmoi/chezmoi-2.9.3/vendor/github.com/lucasb-eyer/go-colorful/ |
H A D | hsluv.go | 29 return h, clamp01(s / 100.0), clamp01(l / 100.0) 45 return clamp01(l / 100.0), c / 100.0, h
|
/dports/games/neo-cowsay/Neo-cowsay-2.0.1/vendor/github.com/lucasb-eyer/go-colorful/ |
H A D | hsluv.go | 29 return h, clamp01(s / 100.0), clamp01(l / 100.0) 45 return clamp01(l / 100.0), c / 100.0, h
|
/dports/devel/gitty/gitty-0.3.0/vendor/github.com/lucasb-eyer/go-colorful/ |
H A D | hsluv.go | 29 return h, clamp01(s / 100.0), clamp01(l / 100.0) 45 return clamp01(l / 100.0), c / 100.0, h
|
/dports/audio/visp-go/visp-2585747/vendor/github.com/lucasb-eyer/go-colorful/ |
H A D | hsluv.go | 29 return h, clamp01(s / 100.0), clamp01(l / 100.0) 45 return clamp01(l / 100.0), c / 100.0, h
|
/dports/x11-toolkits/plib/plib-1.8.5/src/pui/ |
H A D | puObject.cxx | 30 static inline float clamp01 ( float x ) in UL_RTTI_DEF1() 52 puSetColour ( col [ PUCOL_HIGHLIGHT ], clamp01(r*1.3f), clamp01(g*1.3f), in load_colour_scheme() 53 clamp01(b*1.3f), a ) ; in load_colour_scheme()
|
/dports/www/chromium-legacy/chromium-88.0.4324.182/third_party/skia/src/effects/ |
H A D | SkHighContrastFilter.cpp | 175 c.r = clamp01(c.r); in onProgram() 176 c.g = clamp01(c.g); in onProgram() 177 c.b = clamp01(c.b); in onProgram()
|
/dports/multimedia/opentoonz/opentoonz-1.5.0/toonz/sources/stdfx/ |
H A D | iwa_glarefx.cpp | 711 auto clamp01 = [](double chan) { in setFilterPreviewToResult() local 730 pix->r = (typename PIXEL::Channel)(clamp01(gl_p.x) * in setFilterPreviewToResult() 732 pix->g = (typename PIXEL::Channel)(clamp01(gl_p.y) * in setFilterPreviewToResult() 734 pix->b = (typename PIXEL::Channel)(clamp01(gl_p.z) * in setFilterPreviewToResult() 795 auto clamp01 = [](double chan) { in setChannelToResult() local 812 pix->r = (typename PIXEL::Channel)(clamp01(val) * in setChannelToResult() 815 pix->g = (typename PIXEL::Channel)(clamp01(val) * in setChannelToResult() 818 pix->b = (typename PIXEL::Channel)(clamp01(val) * in setChannelToResult()
|
/dports/converters/wkhtmltopdf/qt-5db36ec/src/3rdparty/webkit/Source/ThirdParty/ANGLE/src/libGLESv2/ |
H A D | mathutil.h | 41 inline float clamp01(float x) in clamp01() function
|
/dports/www/qt5-webengine/qtwebengine-everywhere-src-5.15.2/src/3rdparty/chromium/third_party/swiftshader/src/OpenGL/libGLES_CM/ |
H A D | mathutil.h | 51 using sw::clamp01;
|
/dports/www/chromium-legacy/chromium-88.0.4324.182/third_party/swiftshader/src/OpenGL/libGLES_CM/ |
H A D | mathutil.h | 51 using sw::clamp01;
|
/dports/www/qt5-webengine/qtwebengine-everywhere-src-5.15.2/src/3rdparty/chromium/third_party/swiftshader/src/OpenGL/libGLESv2/ |
H A D | mathutil.h | 53 using sw::clamp01;
|
/dports/www/chromium-legacy/chromium-88.0.4324.182/third_party/swiftshader/src/OpenGL/libGLESv2/ |
H A D | mathutil.h | 53 using sw::clamp01;
|
/dports/www/qt5-webengine/qtwebengine-everywhere-src-5.15.2/src/3rdparty/chromium/third_party/skia/src/effects/ |
H A D | SkHighContrastFilter.cpp | 173 c.r = clamp01(c.r); in onProgram() 174 c.g = clamp01(c.g); in onProgram() 175 c.b = clamp01(c.b); in onProgram()
|