--- a/include/sampler.h Thu Apr 24 10:49:11 2008 +0200
+++ b/include/sampler.h Thu Apr 24 13:55:11 2008 +0200
@@ -55,17 +55,20 @@
*/
class Sampler
{
-public:
+protected:
Float *buffer;
int w,h;
-
- Sampler(Float *abuffer, int &aw, int &ah): buffer(abuffer), w(aw), h(ah) {};
+ bool packetable;
+public:
+ Sampler(Float *abuffer, int &aw, int &ah):
+ buffer(abuffer), w(aw), h(ah), packetable(false) {};
virtual ~Sampler() {};
void resetBuffer(Float *abuffer, int &aw, int &ah) { buffer = abuffer; w = aw; h = ah; };
virtual void init() = 0;
virtual int initSampleSet() = 0;
virtual bool nextSample(Sample *s) = 0;
virtual void saveSample(Sample &samp, Colour &col) = 0;
+ bool packetableSamples() { return packetable; };
};
/**
@@ -80,7 +83,7 @@
int sx,sy,osa_samp; // current sample properties
public:
DefaultSampler(Float *abuffer, int &aw, int &ah):
- Sampler(abuffer, aw, ah), phase(-1), subsample(4), oversample(0) {};
+ Sampler(abuffer, aw, ah), phase(-1), subsample(0), oversample(0) {};
void init();
int initSampleSet();
bool nextSample(Sample *s);