summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
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