summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJohannes Hofmann <Johannes.Hofmann@gmx.de>2006-08-01 16:30:44 +0200
committerJohannes Hofmann <Johannes.Hofmann@gmx.de>2006-08-01 16:30:44 +0200
commit97f03d296d77284c723d9ff8485fed51dc17c32c (patch)
tree47aea0f48e573a1b0d864ece040a521861b748a8 /src
parent2a7604a5f909115a5fd633f4a058b1890b13d7ef (diff)
implement OutputImage stuff
Diffstat (limited to 'src')
-rw-r--r--src/JPEGOutputImage.H2
-rw-r--r--src/OutputImage.H13
2 files changed, 14 insertions, 1 deletions
diff --git a/src/JPEGOutputImage.H b/src/JPEGOutputImage.H
index 2a56bca..23ca25c 100644
--- a/src/JPEGOutputImage.H
+++ b/src/JPEGOutputImage.H
@@ -29,6 +29,8 @@ class JPEGOutputImage : OutputImage {
int init(int w, int h);
+ int done();
+
protected:
int set_pixel_internal(int x, char r, char g, char b);
diff --git a/src/OutputImage.H b/src/OutputImage.H
index 4ecb0e4..65aca92 100644
--- a/src/OutputImage.H
+++ b/src/OutputImage.H
@@ -22,21 +22,30 @@
class OutputImage {
+ private:
+ int w, h;
+
public:
OutputImage();
~OutputImage();
- virtual int init(int w, int h);
+ virtual int init(int w1, int h1);
int set_pixel(int x, char r, char g, char b);
int next_line();
+ int done();
+
protected:
+ virtual int init_internal(int w1, h1);
+
virtual int set_pixel_internal(int x, char r, char g, char b);
virtual int next_line_internal();
+
+ virtual int done_internal();
};
class OutputImages {
@@ -54,6 +63,8 @@ class OutputImages {
int set_pixel(int x, char r, char g, char b);
int next_line();
+
+ int done();
}
#endif