Changeset View
Changeset View
Standalone View
Standalone View
source/blender/compositor/operations/COM_GaussianYBlurOperation.cpp
| Show First 20 Lines • Show All 59 Lines • ▼ Show 20 Lines | #endif | ||||
| } | } | ||||
| } | } | ||||
| void GaussianYBlurOperation::updateGauss() | void GaussianYBlurOperation::updateGauss() | ||||
| { | { | ||||
| if (this->m_gausstab == nullptr) { | if (this->m_gausstab == nullptr) { | ||||
| updateSize(); | updateSize(); | ||||
| float rad = max_ff(m_size * m_data.sizey, 0.0f); | float rad = max_ff(m_size * m_data.sizey, 0.0f); | ||||
| rad = min_ff(rad, MAX_GAUSSTAB_RADIUS); | |||||
| m_filtersize = min_ii(ceil(rad), MAX_GAUSSTAB_RADIUS); | m_filtersize = min_ii(ceil(rad), MAX_GAUSSTAB_RADIUS); | ||||
| this->m_gausstab = BlurBaseOperation::make_gausstab(rad, m_filtersize); | this->m_gausstab = BlurBaseOperation::make_gausstab(rad, m_filtersize); | ||||
| #ifdef __SSE2__ | #ifdef __SSE2__ | ||||
| this->m_gausstab_sse = BlurBaseOperation::convert_gausstab_sse(this->m_gausstab, m_filtersize); | this->m_gausstab_sse = BlurBaseOperation::convert_gausstab_sse(this->m_gausstab, m_filtersize); | ||||
| #endif | #endif | ||||
| } | } | ||||
| } | } | ||||
| ▲ Show 20 Lines • Show All 131 Lines • Show Last 20 Lines | |||||