"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "libs/image/kis_antialiasing_fade_maker.h" between
krita-5.1.3.tar.xz and krita-5.1.4.tar.xz

About: Krita is a painting program offering art tools for everyone (concept art, texture and matte painters, illustrations and comics).

kis_antialiasing_fade_maker.h  (krita-5.1.3.tar.xz):kis_antialiasing_fade_maker.h  (krita-5.1.4.tar.xz)
skipping to change at line 80 skipping to change at line 80
} }
if (dist > m_antialiasingFadeStart) { if (dist > m_antialiasingFadeStart) {
*value = m_fadeStartValue + (dist - m_antialiasingFadeStart) * m_ant ialiasingFadeCoeff; *value = m_fadeStartValue + (dist - m_antialiasingFadeStart) * m_ant ialiasingFadeCoeff;
return true; return true;
} }
return false; return false;
} }
#if defined HAVE_XSIMD #if defined(HAVE_XSIMD) && !defined(XSIMD_NO_SUPPORTED_ARCHITECTURE)
template<typename A> template<typename A>
xsimd::batch_bool<float, A> needFade(xsimd::batch<float, A> &dist) xsimd::batch_bool<float, A> needFade(xsimd::batch<float, A> &dist)
{ {
using float_v = xsimd::batch<float, A>; using float_v = xsimd::batch<float, A>;
using float_m = typename float_v::batch_bool_type; using float_m = typename float_v::batch_bool_type;
const float_v vOne(1); const float_v vOne(1);
const float_v vValMax(255.f); const float_v vValMax(255.f);
const float_v vRadius(m_radius); const float_v vRadius(m_radius);
skipping to change at line 204 skipping to change at line 204
if (x > m_xFadeLimitStart && *value < 255) { if (x > m_xFadeLimitStart && *value < 255) {
*value += (255.0 - *value) * (x - m_xFadeLimitStart) * m_xFadeCo eff; *value += (255.0 - *value) * (x - m_xFadeLimitStart) * m_xFadeCo eff;
} }
return true; return true;
} }
return false; return false;
} }
#if defined HAVE_XSIMD #if defined(HAVE_XSIMD) && !defined(XSIMD_NO_SUPPORTED_ARCHITECTURE)
template<typename A> template<typename A>
xsimd::batch_bool<float, A> needFade(xsimd::batch<float, A> &xr, xsimd::batc h<float, A> &yr) const xsimd::batch_bool<float, A> needFade(xsimd::batch<float, A> &xr, xsimd::batc h<float, A> &yr) const
{ {
using float_v = xsimd::batch<float, A>; using float_v = xsimd::batch<float, A>;
using float_m = typename float_v::batch_bool_type; using float_m = typename float_v::batch_bool_type;
const float_v vXLimit(m_xLimit); const float_v vXLimit(m_xLimit);
const float_v vYLimit(m_yLimit); const float_v vYLimit(m_yLimit);
const float_m outXMask = xsimd::abs(xr) > vXLimit; const float_m outXMask = xsimd::abs(xr) > vXLimit;
 End of changes. 2 change blocks. 
2 lines changed or deleted 2 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)