/*
* CINELERRA
* Copyright (C) 2008 Adam Williams <broadcast at earthling dot net>
- *
+ *
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
- *
+ *
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
- *
+ *
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
- *
+ *
*/
#include "bcdisplayinfo.h"
void copy_from(YUVShiftConfig &src);
int equivalent(YUVShiftConfig &src);
- void interpolate(YUVShiftConfig &prev,
- YUVShiftConfig &next,
- long prev_frame,
- long next_frame,
+ void interpolate(YUVShiftConfig &prev,
+ YUVShiftConfig &next,
+ long prev_frame,
+ long next_frame,
long current_frame);
int y_dx, y_dy, u_dx, u_dy, v_dx, v_dy;
EQUIV(y_dy, src.y_dy) && EQUIV(u_dy, src.u_dy) && EQUIV(v_dy, src.v_dy);
}
-void YUVShiftConfig::interpolate(YUVShiftConfig &prev,
- YUVShiftConfig &next,
- long prev_frame,
- long next_frame,
+void YUVShiftConfig::interpolate(YUVShiftConfig &prev,
+ YUVShiftConfig &next,
+ long prev_frame,
+ long next_frame,
long current_frame)
{
double next_scale = (double)(current_frame - prev_frame) / (next_frame - prev_frame);
}
const char* YUVShiftEffect::plugin_title() { return _("YUVShift"); }
-int YUVShiftEffect::is_realtime() { return 1; }
+int YUVShiftEffect::is_realtime() { return 1; }
NEW_WINDOW_MACRO(YUVShiftEffect, YUVShiftWindow)