*
*/
-#include "clip.h"
+#include "bccolors.h"
#include "bchash.h"
+#include "clip.h"
#include "filexml.h"
#include "keyframe.h"
#include "language.h"
-#include "cicolors.h"
+#include "bccolors.h"
#include "timeavg.h"
#include "timeavgwindow.h"
#include "transportque.h"
if(history_valid) delete [] history_valid;
}
-const char* TimeAvgMain::plugin_title() { return _("Time Average"); }
+const char* TimeAvgMain::plugin_title() { return N_("Time Average"); }
int TimeAvgMain::is_realtime() { return 1; }
// Create new frames
for( ; i < config.frames; i++)
{
- history2[i] = new VFrame(w, h, color_model);
+ history2[i] = new VFrame(w, h, color_model, 0);
history_frame2[i] = -0x7fffffff;
history_valid2[i] = 0;
}
{
history = new VFrame*[config.frames];
for(int i = 0; i < config.frames; i++)
- history[i] = new VFrame(w, h, color_model);
+ history[i] = new VFrame(w, h, color_model, 0);
history_size = config.frames;
history_frame = new int64_t[config.frames];
bzero(history_frame, sizeof(int64_t) * config.frames);
}
}
-#define RGB_TO_VALUE(r, g, b) \
-((r) * R_TO_Y + (g) * G_TO_Y + (b) * B_TO_Y)
+#define RGB_TO_VALUE(r, g, b) YUV::yuv.rgb_to_y_f((r),(g),(b))
// Only AVERAGE and ACCUMULATE use this
#define SUBTRACT_ACCUM(type, \