[Bf-committers] sequence.c
Kent Mein
mein at cs.umn.edu
Fri Sep 16 13:50:59 CEST 2005
In reply to Shaul Kedem (shaul.kedem at gmail.com):
Well looking at the code it looks like
nr = the part of the strip we want data for. (Call it frame)
se+= nr; Jumps to the part we want.
se->nr = nr; I'm guessing is to give it its "Frame" #
I'm guessing some other code uses it.
Kent
> Hi all,
> In the following code :
>
> StripElem *give_stripelem(Sequence *seq, int cfra)
> {
> Strip *strip;
> StripElem *se;
> int nr;
>
> strip= seq->strip;
> se= strip->stripdata;
>
> *if*(se==0) *return* 0;
> *if*(seq->startdisp >cfra || seq->enddisp <= cfra) *return* 0;
>
> *if*(cfra <= seq->start) nr= 0;
> *else* *if*(cfra >= seq->start+seq->len-1) nr= seq->len-1;
> *else* nr= cfra-seq->start;
>
>
> se+= nr;
> se->nr= nr;
>
> *return* se;
> }
>
> Please advise; why is there an se+= nr and se->nr = nr at the end of
> this function?
>
> Thnx,
> Shaul
> _______________________________________________
> Bf-committers mailing list
> Bf-committers at projects.blender.org
> http://projects.blender.org/mailman/listinfo/bf-committers
--
mein at cs.umn.edu
http://www.cs.umn.edu/~mein
More information about the Bf-committers
mailing list