X-Git-Url: http://git.cinelerra-gg.org/git/?p=goodguy%2Fhistory.git;a=blobdiff_plain;f=cinelerra-5.1%2Fplugins%2Fcrikey%2Fcrikey.C;h=3ec93f7bfe952c06025ec6e05bebdd94fff807d2;hp=92b7495849e13de91f429d031aa10434291ecef3;hb=36bd2d2bbbe534bf04307149bf6162a70c088656;hpb=20002b54e92573aafc97cbc3a85ec529b35bb191 diff --git a/cinelerra-5.1/plugins/crikey/crikey.C b/cinelerra-5.1/plugins/crikey/crikey.C index 92b74958..3ec93f7b 100644 --- a/cinelerra-5.1/plugins/crikey/crikey.C +++ b/cinelerra-5.1/plugins/crikey/crikey.C @@ -116,14 +116,15 @@ void CriKeyConfig::interpolate(CriKeyConfig &prev, CriKeyConfig &next, int prev_sz = prev.points.size(), next_sz = next.points.size(); for( int i=0; ix, y = pt->y; + float x = pt->x, y = pt->y, t = pt->t; int k = next_sz; // associated by tag id in next while( --k >= 0 && pt->tag != (nt=next.points[k])->tag ); if( k >= 0 ) { x = x * prev_scale + nt->x * next_scale; y = y * prev_scale + nt->y * next_scale; + t = t * prev_scale + nt->t * next_scale; } - add_point(pt->tag, pt->e, x, y, pt->t); + add_point(pt->tag, pt->e, x, y, t); } }