if(overlayer) delete overlayer;
}
-const char* TimeFrontMain::plugin_title() { return _("TimeFront"); }
+const char* TimeFrontMain::plugin_title() { return N_("TimeFront"); }
int TimeFrontMain::is_realtime() { return 1; }
int TimeFrontMain::is_multichannel() { return 1; }
{ \
unsigned int choice = invertion gradient_row[j]; \
{ \
- out_row[0] = framelist[choice]->get_rows()[i][j * components + 0]; \
- out_row[1] = framelist[choice]->get_rows()[i][j * components + 1]; \
- out_row[2] = framelist[choice]->get_rows()[i][j * components + 2]; \
+ type *in_row = (type *)framelist[choice]->get_rows()[i]; \
+ out_row[0] = in_row[j * components + 0]; \
+ out_row[1] = in_row[j * components + 1]; \
+ out_row[2] = in_row[j * components + 2]; \
if (components == 4) \
- out_row[3] = framelist[choice]->get_rows()[i][j * components + 3]; \
+ out_row[3] = in_row[j * components + 3]; \
} \
out_row += components; \
} \
{
VFrame **outframes = frame;
VFrame *(framelist[1024]);
- framelist[0] = new VFrame (
- outframes[0]->get_w(),
- outframes[0]->get_h(),
- outframes[0]->get_color_model());
+ framelist[0] = new VFrame (outframes[0]->get_w(), outframes[0]->get_h(),
+ outframes[0]->get_color_model(), 0);
read_frame(framelist[0],
0,
start_position,
{
need_reconfigure = 0;
- if(!gradient) gradient = new VFrame(
- outframes[0]->get_w(),
- outframes[0]->get_h(),
- BC_A8);
-
+ if(!gradient)
+ gradient = new VFrame( outframes[0]->get_w(), outframes[0]->get_h(), BC_A8, 0);
if (config.shape != TimeFrontConfig::OTHERTRACK &&
config.shape != TimeFrontConfig::ALPHA)
}
if (config.shape == TimeFrontConfig::ALPHA)
{
- if(!gradient) gradient = new VFrame(
- outframes[0]->get_w(),
- outframes[0]->get_h(),
- BC_A8);
+ if(!gradient)
+ gradient = new VFrame(outframes[0]->get_w(), outframes[0]->get_h(), BC_A8, 0);
VFrame *tfframe = framelist[0];
switch (tfframe->get_color_model())
{
} else
if (config.shape == TimeFrontConfig::OTHERTRACK)
{
- if(!gradient) gradient = new VFrame(
- outframes[0]->get_w(),
- outframes[0]->get_h(),
- BC_A8);
+ if(!gradient)
+ gradient = new VFrame(outframes[0]->get_w(), outframes[0]->get_h(), BC_A8, 0);
VFrame *tfframe = outframes[1];
read_frame(tfframe,
1,
{
for (int i = 1; i <= config.frame_range; i++)
{
- framelist[i] = new VFrame (
- outframes[0]->get_w(),
- outframes[0]->get_h(),
- outframes[0]->get_color_model());
+ framelist[i] = new VFrame (outframes[0]->get_w(), outframes[0]->get_h(),
+ outframes[0]->get_color_model(), 0);
read_frame(framelist[i],
0,