This repository has been archived on 2023-10-09. You can view files and clone it, but cannot push or open issues or pull requests.
Files
blender-archive/source/blender/compositor/operations/COM_GaussianAlphaYBlurOperation.h

60 lines
1.7 KiB
C++
Raw Normal View History

/*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version 2
* of the License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software Foundation,
* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*
* Copyright 2011, Blender Foundation.
*/
2018-08-08 11:49:51 +10:00
#ifndef __COM_GAUSSIANALPHAYBLUROPERATION_H__
#define __COM_GAUSSIANALPHAYBLUROPERATION_H__
#include "COM_NodeOperation.h"
#include "COM_BlurBaseOperation.h"
class GaussianAlphaYBlurOperation : public BlurBaseOperation {
private:
float *m_gausstab;
float *m_distbuf_inv;
bool m_do_subtract;
int m_falloff;
int m_filtersize;
void updateGauss();
public:
GaussianAlphaYBlurOperation();
2018-06-17 17:05:29 +02:00
/**
* the inner loop of this program
*/
void executePixel(float output[4], int x, int y, void *data);
2018-06-17 17:05:29 +02:00
/**
* \brief initialize the execution
*/
void initExecution();
/**
* Deinitialize the execution
*/
void deinitExecution();
2018-06-17 17:05:29 +02:00
void *initializeTileData(rcti *rect);
bool determineDependingAreaOfInterest(rcti *input, ReadBufferOperation *readOperation, rcti *output);
/**
* Set subtract for Dilate/Erode functionality
*/
void setSubtract(bool subtract) { this->m_do_subtract = subtract; }
void setFalloff(int falloff) { this->m_falloff = falloff; }
};
#endif