diff options
Diffstat (limited to 'source/blender/compositor/operations/COM_ConvertColorProfileOperation.h')
-rw-r--r-- | source/blender/compositor/operations/COM_ConvertColorProfileOperation.h | 85 |
1 files changed, 47 insertions, 38 deletions
diff --git a/source/blender/compositor/operations/COM_ConvertColorProfileOperation.h b/source/blender/compositor/operations/COM_ConvertColorProfileOperation.h index 86e6971c528..7cc39a47dd0 100644 --- a/source/blender/compositor/operations/COM_ConvertColorProfileOperation.h +++ b/source/blender/compositor/operations/COM_ConvertColorProfileOperation.h @@ -20,55 +20,64 @@ #define __COM_CONVERTCOLORPROFILEOPERATION_H__ #include "COM_NodeOperation.h" - /** * this program converts an input color to an output value. * it assumes we are in sRGB color space. */ class ConvertColorProfileOperation : public NodeOperation { -private: - /** - * Cached reference to the inputProgram - */ - SocketReader *m_inputOperation; + private: + /** + * Cached reference to the inputProgram + */ + SocketReader *m_inputOperation; + + /** + * \brief color profile where to convert from + */ + int m_fromProfile; - /** - * \brief color profile where to convert from - */ - int m_fromProfile; + /** + * \brief color profile where to convert to + */ + int m_toProfile; - /** - * \brief color profile where to convert to - */ - int m_toProfile; + /** + * \brief is color predivided + */ + bool m_predivided; - /** - * \brief is color predivided - */ - bool m_predivided; -public: - /** - * Default constructor - */ - ConvertColorProfileOperation(); + public: + /** + * Default constructor + */ + ConvertColorProfileOperation(); - /** - * the inner loop of this program - */ - void executePixelSampled(float output[4], float x, float y, PixelSampler sampler); + /** + * the inner loop of this program + */ + void executePixelSampled(float output[4], float x, float y, PixelSampler sampler); - /** - * Initialize the execution - */ - void initExecution(); + /** + * Initialize the execution + */ + void initExecution(); - /** - * Deinitialize the execution - */ - void deinitExecution(); + /** + * Deinitialize the execution + */ + void deinitExecution(); - void setFromColorProfile(int colorProfile) { this->m_fromProfile = colorProfile; } - void setToColorProfile(int colorProfile) { this->m_toProfile = colorProfile; } - void setPredivided(bool predivided) { this->m_predivided = predivided; } + void setFromColorProfile(int colorProfile) + { + this->m_fromProfile = colorProfile; + } + void setToColorProfile(int colorProfile) + { + this->m_toProfile = colorProfile; + } + void setPredivided(bool predivided) + { + this->m_predivided = predivided; + } }; #endif |