43 #include <kaydaradef.h> 49 #define FBSDK_DLL K_DLLIMPORT 54 #ifdef FBSDKUseNamespace 104 FBTime( kLongLong pTime=0);
126 void SetTimeString(
const char *pTime);
138 bool GetTime(
int &pHour,
int &pMinute,
int &pSecond,
int &pFrame,
int &pField,
int &pMilliSecond,
FBTimeMode pTimeMode=
kFBTimeModeDefault );
142 kLongLong GetMilliSeconds();
147 void SetMilliSeconds(kLongLong pMilliSeconds);
157 const kLongLong& Get()
const;
162 void Set( kLongLong pTime );
167 double GetSecondDouble();
172 void SetSecondDouble(
double pTime);
201 FBTime& operator= (
double pConstant);
202 FBTime& operator+= (
double pConstant);
203 FBTime& operator-= (
double pConstant);
204 FBTime& operator*= (
double pConstant);
205 FBTime& operator/= (
double pConstant);
224 FBTime operator- (
double pConstant);
225 FBTime operator+ (
double pConstant);
226 FBTime operator/ (
double pConstant);
227 FBTime operator* (
double pConstant);
235 bool operator== (
const FBTime& pTime);
236 bool operator!= (
const FBTime& pTime);
237 bool operator>= (
const FBTime& pTime);
238 bool operator<= (
const FBTime& pTime);
239 bool operator> (
const FBTime& pTime);
240 bool operator< (
const FBTime& pTime);
300 void SetTimeCode(
int pHour,
int pMinute=0,
int pSecond=0,
float pFrame=0);
321 void SetTime(
FBTime pTime);
325 double GetFrame()
const;
330 void SetFrame(
double pFrame);
334 float GetFrameRate()
const;
339 double GetRawSecond()
const;
344 double GetRawFrame()
const;
349 double GetRawRate()
const;
355 bool operator==(
const FBTimeCode& pTimeCode)
const;
361 bool operator!=(
const FBTimeCode& pTimeCode)
const;
401 const FBTime& GetStart()
const;
402 const FBTime& GetStop()
const;
419 FBTime GetSignedDuration();
431 bool operator& (
FBTime &pTime);
441 #ifdef FBSDKUseNamespace
static const FBTime OneMinute
Time constant: One Minute.
static const float FILM_24
-24.0f
ETimeFormats
Different time format available.
static const FBTime OneSecond
Time constant: One Second.
static const FBTime Infinity
Time constant: Infinity, the largest time value.
static const float FRAMES_30
-30.0f
static const float NTSC_FULL
-29.97f
static const float PAL_25
-25.0f
static const FBTime MinusInfinity
Time constant: Minus Infinity, the lowest negative time value.
static const float FRAMES_5994
-59.94f
#define FBSDKNamespace
FBSDKNamespace define.
static const FBTime Zero
Time constant: Zero.
static const FBTime OneHour
Time constant: One Hour.
static const float MPAL_30
-29.971f Currently not supported : "1" is added just to differentiate from NTSC_FULL(-29.97f)
#define FB_FORWARD(ClassName)
Forwarding of class and typedef declaration.
FBTimeMode
Different time modes available.
static const float FRAMES_11988
-119.88f
static const FBTime Epsilon
Time constant: Epsilon, the smallest time increment.
static const float FILM_23976
-23.976f
#define FBSDK_DLL
Be sure that FBSDK_DLL is defined only once...
static const float NTSC_DROP
Rates.