diff options
Diffstat (limited to 'source/blender/compositor/operations/COM_GaussianYBlurOperation.cpp')
-rw-r--r-- | source/blender/compositor/operations/COM_GaussianYBlurOperation.cpp | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/source/blender/compositor/operations/COM_GaussianYBlurOperation.cpp b/source/blender/compositor/operations/COM_GaussianYBlurOperation.cpp index 3ffa797c0c1..230538ba5e6 100644 --- a/source/blender/compositor/operations/COM_GaussianYBlurOperation.cpp +++ b/source/blender/compositor/operations/COM_GaussianYBlurOperation.cpp @@ -25,9 +25,9 @@ GaussianYBlurOperation::GaussianYBlurOperation() : BlurBaseOperation(COM_DT_COLOR) { - this->m_gausstab = NULL; + this->m_gausstab = nullptr; #ifdef __SSE2__ - this->m_gausstab_sse = NULL; + this->m_gausstab_sse = nullptr; #endif this->m_filtersize = 0; } @@ -38,7 +38,7 @@ void *GaussianYBlurOperation::initializeTileData(rcti * /*rect*/) if (!this->m_sizeavailable) { updateGauss(); } - void *buffer = getInputOperation(0)->initializeTileData(NULL); + void *buffer = getInputOperation(0)->initializeTileData(nullptr); unlockMutex(); return buffer; } @@ -62,7 +62,7 @@ void GaussianYBlurOperation::initExecution() void GaussianYBlurOperation::updateGauss() { - if (this->m_gausstab == NULL) { + if (this->m_gausstab == nullptr) { updateSize(); float rad = max_ff(m_size * m_data.sizey, 0.0f); m_filtersize = min_ii(ceil(rad), MAX_GAUSSTAB_RADIUS); @@ -125,14 +125,14 @@ void GaussianYBlurOperation::executeOpenCL(OpenCLDevice *device, list<cl_kernel> * /*clKernelsToCleanUp*/) { cl_kernel gaussianYBlurOperationKernel = device->COM_clCreateKernel( - "gaussianYBlurOperationKernel", NULL); + "gaussianYBlurOperationKernel", nullptr); cl_int filter_size = this->m_filtersize; cl_mem gausstab = clCreateBuffer(device->getContext(), CL_MEM_READ_ONLY | CL_MEM_USE_HOST_PTR, sizeof(float) * (this->m_filtersize * 2 + 1), this->m_gausstab, - NULL); + nullptr); device->COM_clAttachMemoryBufferToKernelParameter(gaussianYBlurOperationKernel, 0, @@ -159,12 +159,12 @@ void GaussianYBlurOperation::deinitExecution() if (this->m_gausstab) { MEM_freeN(this->m_gausstab); - this->m_gausstab = NULL; + this->m_gausstab = nullptr; } #ifdef __SSE2__ if (this->m_gausstab_sse) { MEM_freeN(this->m_gausstab_sse); - this->m_gausstab_sse = NULL; + this->m_gausstab_sse = nullptr; } #endif @@ -189,7 +189,7 @@ bool GaussianYBlurOperation::determineDependingAreaOfInterest(rcti *input, } } { - if (this->m_sizeavailable && this->m_gausstab != NULL) { + if (this->m_sizeavailable && this->m_gausstab != nullptr) { newInput.xmax = input->xmax; newInput.xmin = input->xmin; newInput.ymax = input->ymax + this->m_filtersize + 1; |