Blender  V2.93
COM_ColorCurveOperation.h
Go to the documentation of this file.
1 /*
2  * This program is free software; you can redistribute it and/or
3  * modify it under the terms of the GNU General Public License
4  * as published by the Free Software Foundation; either version 2
5  * of the License, or (at your option) any later version.
6  *
7  * This program is distributed in the hope that it will be useful,
8  * but WITHOUT ANY WARRANTY; without even the implied warranty of
9  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
10  * GNU General Public License for more details.
11  *
12  * You should have received a copy of the GNU General Public License
13  * along with this program; if not, write to the Free Software Foundation,
14  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
15  *
16  * Copyright 2011, Blender Foundation.
17  */
18 
19 #pragma once
20 
21 #include "COM_CurveBaseOperation.h"
22 #include "COM_NodeOperation.h"
23 #include "DNA_color_types.h"
24 
25 namespace blender::compositor {
26 
28  private:
32  SocketReader *m_inputFacProgram;
33  SocketReader *m_inputImageProgram;
34  SocketReader *m_inputBlackProgram;
35  SocketReader *m_inputWhiteProgram;
36 
37  public:
39 
43  void executePixelSampled(float output[4], float x, float y, PixelSampler sampler) override;
44 
48  void initExecution() override;
49 
53  void deinitExecution() override;
54 };
55 
57  private:
61  SocketReader *m_inputFacProgram;
62  SocketReader *m_inputImageProgram;
63  float m_black[3];
64  float m_white[3];
65 
66  public:
68 
72  void executePixelSampled(float output[4], float x, float y, PixelSampler sampler) override;
73 
77  void initExecution() override;
78 
82  void deinitExecution() override;
83 
84  void setBlackLevel(float black[3])
85  {
86  copy_v3_v3(this->m_black, black);
87  }
88  void setWhiteLevel(float white[3])
89  {
90  copy_v3_v3(this->m_white, white);
91  }
92 };
93 
94 } // namespace blender::compositor
MINLINE void copy_v3_v3(float r[3], const float a[3])
_GL_VOID GLfloat value _GL_VOID_RET _GL_VOID const GLuint GLboolean *residences _GL_BOOL_RET _GL_VOID GLsizei GLfloat GLfloat GLfloat GLfloat const GLubyte *bitmap _GL_VOID_RET _GL_VOID GLenum const void *lists _GL_VOID_RET _GL_VOID const GLdouble *equation _GL_VOID_RET _GL_VOID GLdouble GLdouble blue _GL_VOID_RET _GL_VOID GLfloat GLfloat blue _GL_VOID_RET _GL_VOID GLint GLint blue _GL_VOID_RET _GL_VOID GLshort GLshort blue _GL_VOID_RET _GL_VOID GLubyte GLubyte blue _GL_VOID_RET _GL_VOID GLuint GLuint blue _GL_VOID_RET _GL_VOID GLushort GLushort blue _GL_VOID_RET _GL_VOID GLbyte GLbyte GLbyte alpha _GL_VOID_RET _GL_VOID GLdouble GLdouble GLdouble alpha _GL_VOID_RET _GL_VOID GLfloat GLfloat GLfloat alpha _GL_VOID_RET _GL_VOID GLint GLint GLint alpha _GL_VOID_RET _GL_VOID GLshort GLshort GLshort alpha _GL_VOID_RET _GL_VOID GLubyte GLubyte GLubyte alpha _GL_VOID_RET _GL_VOID GLuint GLuint GLuint alpha _GL_VOID_RET _GL_VOID GLushort GLushort GLushort alpha _GL_VOID_RET _GL_VOID GLenum mode _GL_VOID_RET _GL_VOID GLint y
#define output
void executePixelSampled(float output[4], float x, float y, PixelSampler sampler) override
void executePixelSampled(float output[4], float x, float y, PixelSampler sampler) override
NodeOperation contains calculation logic.