From ad9715a9e69ad869eaa26fe202da4ba9a729a05d Mon Sep 17 00:00:00 2001 From: Tim Redfern Date: Mon, 2 Dec 2013 13:49:46 +0000 Subject: fix feedback glitch 1st frame --- rotord/src/rotor.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'rotord/src/rotor.h') 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? -- cgit v1.2.3