00001 /* 00002 * PROPRIETARY INFORMATION. This software is proprietary to 00003 * Side Effects Software Inc., and is not to be reproduced, 00004 * transmitted, or disclosed in any way without written permission. 00005 * 00006 * Produced by: 00007 * George ElKoura 00008 * Side Effects Software Inc 00009 * 477 Richmond Street West 00010 * Toronto, Ontario 00011 * Canada M5V 3E7 00012 * 416-504-9876 00013 * 00014 * NAME: UT_TimeUtils.h ( UT Library, C++) 00015 * 00016 * COMMENTS: 00017 * 00018 * This is a collection of utilities useful for dealing with times and time 00019 * ranges. 00020 * 00021 */ 00022 #ifndef __UT_TimeUtils_h__ 00023 #define __UT_TimeUtils_h__ 00024 00025 #include "UT_API.h" 00026 #include <SYS/SYS_Types.h> 00027 00028 // Given a start frame, an end frame and a step, this method will return 00029 // the number of frames involved. Be careful not to pass a zero step size. 00030 // Optionally, this method can also compute the ending frame of the sequence. 00031 UT_API int UTgetNumberOfFrames(fpreal64 start_frame, fpreal64 end_frame, 00032 fpreal64 step, fpreal64 *new_end_frame=0); 00033 00034 #endif
1.5.9