Changeset View
Changeset View
Standalone View
Standalone View
source/blender/compositor/operations/COM_InpaintOperation.h
| Show All 10 Lines | |||||
| * | * | ||||
| * You should have received a copy of the GNU General Public License | * You should have received a copy of the GNU General Public License | ||||
| * along with this program; if not, write to the Free Software Foundation, | * along with this program; if not, write to the Free Software Foundation, | ||||
| * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | ||||
| * | * | ||||
| * Copyright 2011, Blender Foundation. | * Copyright 2011, Blender Foundation. | ||||
| */ | */ | ||||
| #ifndef __COM_INPAINTOPERATION_H__ | #pragma once | ||||
| #define __COM_INPAINTOPERATION_H__ | |||||
| #include "COM_NodeOperation.h" | #include "COM_NodeOperation.h" | ||||
| class InpaintSimpleOperation : public NodeOperation { | class InpaintSimpleOperation : public NodeOperation { | ||||
| protected: | protected: | ||||
| /** | /** | ||||
| * Cached reference to the inputProgram | * Cached reference to the inputProgram | ||||
| */ | */ | ||||
| SocketReader *m_inputImageProgram; | SocketReader *m_inputImageProgram; | ||||
| Show All 38 Lines | |||||
| private: | private: | ||||
| void calc_manhatten_distance(); | void calc_manhatten_distance(); | ||||
| void clamp_xy(int &x, int &y); | void clamp_xy(int &x, int &y); | ||||
| float *get_pixel(int x, int y); | float *get_pixel(int x, int y); | ||||
| int mdist(int x, int y); | int mdist(int x, int y); | ||||
| bool next_pixel(int &x, int &y, int &curr, int iters); | bool next_pixel(int &x, int &y, int &curr, int iters); | ||||
| void pix_step(int x, int y); | void pix_step(int x, int y); | ||||
| }; | }; | ||||
| #endif | |||||