From: Dennis S. <sy...@yo...> - 2004-09-09 19:42:29
|
Heya, Thanks to the start of Duilio I finished timed morph. I actually overhauled the whole morphing a bit and automatic morphing is now handled within the VisMorph sub system itself! New API: int visual_morph_set_time (VisMorph *morph, VisTime *time); int visual_morph_set_rate (VisMorph *morph, float rate); int visual_morph_set_steps (VisMorph *morph, int steps); int visual_morph_set_mode (VisMorph *morph, VisMorphMode mode); int visual_morph_is_done (VisMorph *morph); Example usage: VisTime tmptime; visual_time_set (&tmptime, 4, 0); visual_morph_set_mode (morph, VISUAL_MORPH_MODE_TIME); visual_morph_set_time (morph, &tmptime); visual_morph_run (morph, audio, vid1, vid2); if (visual_morph_is_done (morph) == TRUE) { .... } __ to use steps simply pass VISUAL_MORPH_TIME_STEPS and set visual_morph_set_steps (morph, 100); for example. You can also still use 'set rate' by doing VISUAL_MORPH_MODE_SET. I hope you guys are happy with it! (I'm going to check it in right away). Cheers, Dennis |