summaryrefslogtreecommitdiff
path: root/dw/fltkimgbuf.hh
diff options
context:
space:
mode:
authorSebastian Geerken <devnull@localhost>2013-06-17 10:56:43 +0200
committerSebastian Geerken <devnull@localhost>2013-06-17 10:56:43 +0200
commit126ae913efb3829c980a2151db5bbcfd68c5b39c (patch)
tree8eb0e38bfc1fa28577a5cfabfb7ae93209a5b2f4 /dw/fltkimgbuf.hh
parent4e96d8f79ecb97994cf446386ce0dd1a1368da44 (diff)
Added gamma correction value to dw::core::ImgBuf.
Diffstat (limited to 'dw/fltkimgbuf.hh')
-rw-r--r--dw/fltkimgbuf.hh8
1 files changed, 5 insertions, 3 deletions
diff --git a/dw/fltkimgbuf.hh b/dw/fltkimgbuf.hh
index d862eece..f7455807 100644
--- a/dw/fltkimgbuf.hh
+++ b/dw/fltkimgbuf.hh
@@ -18,6 +18,7 @@ private:
int width, height;
Type type;
+ double gamma;
//{
int bpp;
@@ -28,8 +29,9 @@ private:
// the image buffer.
lout::misc::BitSet *copiedRows;
- FltkImgbuf (Type type, int width, int height, FltkImgbuf *root);
- void init (Type type, int width, int height, FltkImgbuf *root);
+ FltkImgbuf (Type type, int width, int height, double gamma,
+ FltkImgbuf *root);
+ void init (Type type, int width, int height, double gamma, FltkImgbuf *root);
int scaledY(int ySrc);
int backscaledY(int yScaled);
int isRoot() { return (root == NULL); }
@@ -39,7 +41,7 @@ protected:
~FltkImgbuf ();
public:
- FltkImgbuf (Type type, int width, int height);
+ FltkImgbuf (Type type, int width, int height, double gamma);
void setCMap (int *colors, int num_colors);
inline void scaleRow (int row, const core::byte *data);