diff options
| author | Tim Redfern <tim@eclectronics.org> | 2013-12-02 13:49:46 +0000 |
|---|---|---|
| committer | Tim Redfern <tim@eclectronics.org> | 2013-12-02 13:49:46 +0000 |
| commit | ad9715a9e69ad869eaa26fe202da4ba9a729a05d (patch) | |
| tree | df8ea7ecbb016aa226e7f61f93e6c6b277e27409 /rotord/src/rotor.h | |
| parent | 67758bc2f1ae68a38ed5ec34056aafe5f4530919 (diff) | |
fix feedback glitch 1st frame
Diffstat (limited to 'rotord/src/rotor.h')
| -rw-r--r-- | rotord/src/rotor.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/rotord/src/rotor.h b/rotord/src/rotor.h index 5e77704..e3b218d 100644 --- a/rotord/src/rotor.h +++ b/rotord/src/rotor.h @@ -459,6 +459,10 @@ namespace Rotor { return i; } virtual Image *output(const Frame_spec &frame)=0; + void clear_output(int w,int h){ + image.setup(w,h); + image.clear(); + } Image image; float get_time_used(){ float t=time_taken; @@ -467,6 +471,7 @@ namespace Rotor { for (auto i:image_inputs) t-=i->get_time_taken(); return t; } + private: float image_time; //? could be used to detect image reuse? |
