00001 /* === S Y N F I G ========================================================= */ 00021 /* ========================================================================= */ 00022 00023 /* === S T A R T =========================================================== */ 00024 00025 #ifndef __SYNFIG_LAYER_COLORCORRECT_H 00026 #define __SYNFIG_LAYER_COLORCORRECT_H 00027 00028 /* === H E A D E R S ======================================================= */ 00029 00030 #include <synfig/layer.h> 00031 #include <synfig/angle.h> 00032 #include <synfig/gamma.h> 00033 #include <synfig/rect.h> 00034 00035 /* === M A C R O S ========================================================= */ 00036 00037 /* === T Y P E D E F S ===================================================== */ 00038 00039 /* === C L A S S E S & S T R U C T S ======================================= */ 00040 00041 namespace synfig { 00042 00043 class Layer_ColorCorrect : public Layer 00044 { 00045 SYNFIG_LAYER_MODULE_EXT 00046 00047 private: 00048 00049 Angle hue_adjust; 00050 Real brightness; 00051 Real contrast; 00052 Real exposure; 00053 00054 Gamma gamma; 00055 00056 Color correct_color(const Color &in)const; 00057 00058 public: 00059 00060 Layer_ColorCorrect(); 00061 00062 virtual bool set_param(const String & param, const synfig::ValueBase &value); 00063 00064 virtual ValueBase get_param(const String & param)const; 00065 00066 virtual Color get_color(Context context, const Point &pos)const; 00067 00068 virtual Rect get_full_bounding_rect(Context context)const; 00069 00070 virtual bool accelerated_render(Context context,Surface *surface,int quality, const RendDesc &renddesc, ProgressCallback *cb)const; 00071 00072 virtual Vocab get_param_vocab()const; 00073 }; // END of class Layer_ColorCorrect 00074 00075 }; // END of namespace synfig 00076 00077 /* === E N D =============================================================== */ 00078 00079 #endif