7 #include "pluginvclient.h"
8 #include "timeavgwindow.h"
15 void copy_from(TimeAvgConfig
*src
);
16 int equivalent(TimeAvgConfig
*src
);
31 class TimeAvgMain
: public PluginVClient
34 TimeAvgMain(PluginServer
*server
);
37 // required for all realtime plugins
38 int process_buffer(VFrame
*frame
,
39 int64_t start_position
,
45 int load_configuration();
49 void save_data(KeyFrame
*keyframe
);
50 void read_data(KeyFrame
*keyframe
);
53 void clear_accum(int w
, int h
, int color_model
);
54 void subtract_accum(VFrame
*frame
);
55 void add_accum(VFrame
*frame
);
56 void transfer_accum(VFrame
*frame
);
60 // Frame of history in requested samplerate
61 int64_t *history_frame
;
63 unsigned char *accumulation
;
65 // a thread for the GUI
66 TimeAvgThread
*thread
;
69 // Starting frame of history in requested framerate
70 int64_t history_start
;
71 // When subtraction is disabled, this detects no change for paranoid mode.