aboutsummaryrefslogtreecommitdiff
path: root/dw/fltkimgbuf.hh
diff options
context:
space:
mode:
authorSebastian Geerken <devnull@localhost>2013-06-14 19:53:18 +0200
committerSebastian Geerken <devnull@localhost>2013-06-14 19:53:18 +0200
commitc72baf1e578ac14a3d861f8f6013557a5ba2c9dc (patch)
tree18aa2bab87ba0325dfa637e90304bf7a2242614b /dw/fltkimgbuf.hh
parent53920a06a5698c20fd519b672a362a9e268d8010 (diff)
Better image scaling.
Diffstat (limited to 'dw/fltkimgbuf.hh')
-rw-r--r--dw/fltkimgbuf.hh7
1 files changed, 7 insertions, 0 deletions
diff --git a/dw/fltkimgbuf.hh b/dw/fltkimgbuf.hh
index 34c6bfd8..d862eece 100644
--- a/dw/fltkimgbuf.hh
+++ b/dw/fltkimgbuf.hh
@@ -31,6 +31,7 @@ private:
FltkImgbuf (Type type, int width, int height, FltkImgbuf *root);
void init (Type type, int width, int height, FltkImgbuf *root);
int scaledY(int ySrc);
+ int backscaledY(int yScaled);
int isRoot() { return (root == NULL); }
void detachScaledBuf (FltkImgbuf *scaledBuf);
@@ -42,6 +43,12 @@ public:
void setCMap (int *colors, int num_colors);
inline void scaleRow (int row, const core::byte *data);
+ inline void scaleRowSimple (int row, const core::byte *data);
+ inline void scaleRowBeautiful (int row, const core::byte *data);
+ inline static void scaleBuffer (const core::byte *src, int srcWidth,
+ int srcHeight, core::byte *dest,
+ int destWidth, int destHeight, int bpp);
+
void newScan ();
void copyRow (int row, const core::byte *data);
core::Imgbuf* getScaledBuf (int width, int height);