Changeset View
Changeset View
Standalone View
Standalone View
source/blender/compositor/operations/COM_PixelateOperation.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_PIXELATEOPERATION_H__ | #pragma once | ||||
| #define __COM_PIXELATEOPERATION_H__ | |||||
| #include "COM_NodeOperation.h" | #include "COM_NodeOperation.h" | ||||
| /** | /** | ||||
| * \brief Pixelate operation | * \brief Pixelate operation | ||||
| * | * | ||||
| * The Tile compositor is by default sub-pixel accurate. | * The Tile compositor is by default sub-pixel accurate. | ||||
| * For some setups you don want this. | * For some setups you don want this. | ||||
| Show All 27 Lines | public: | ||||
| * \brief executePixel | * \brief executePixel | ||||
| * \param output: result | * \param output: result | ||||
| * \param x: x-coordinate | * \param x: x-coordinate | ||||
| * \param y: y-coordinate | * \param y: y-coordinate | ||||
| * \param sampler: sampler | * \param sampler: sampler | ||||
| */ | */ | ||||
| void executePixelSampled(float output[4], float x, float y, PixelSampler sampler); | void executePixelSampled(float output[4], float x, float y, PixelSampler sampler); | ||||
| }; | }; | ||||
| #endif | |||||