fbsdk/fbtime.h Source File
Go to the documentation of this file.
49 #define FBSDK_DLL K_DLLIMPORT
54 #ifdef FBSDKUseNamespace
103 FBTime( kLongLong pTime=0);
125 void SetTimeString(
const char *pTime);
137 bool GetTime(
int &pHour,
int &pMinute,
int &pSecond,
int &pFrame,
int &pField,
int &pMilliSecond,
FBTimeMode pTimeMode=
kFBTimeModeDefault );
141 kLongLong GetMilliSeconds();
146 void SetMilliSeconds(kLongLong pMilliSeconds);
156 const kLongLong& Get()
const;
161 void Set( kLongLong pTime );
166 double GetSecondDouble();
171 void SetSecondDouble(
double pTime);
200 FBTime& operator= (
double pConstant);
201 FBTime& operator+= (
double pConstant);
202 FBTime& operator-= (
double pConstant);
203 FBTime& operator*= (
double pConstant);
204 FBTime& operator/= (
double pConstant);
223 FBTime operator- (
double pConstant);
225 FBTime operator/ (
double pConstant);
226 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);
299 void SetTimeCode(
int pHour,
int pMinute=0,
int pSecond=0,
float pFrame=0);
311 void SetTimeCodeString(
const char *pTime,
FBTime::ETimeFormats pFormat = FBTime::eDefaultFormat);
320 void SetTime(
FBTime pTime);
324 double GetFrame()
const;
329 void SetFrame(
double pFrame);
333 float GetFrameRate()
const;
338 double GetRawSecond()
const;
343 double GetRawFrame()
const;
348 double GetRawRate()
const;
360 bool operator!=(
const FBTimeCode& pTimeCode)
const;
399 const FBTime& GetStart()
const;
400 const FBTime& GetStop()
const;
417 FBTime GetSignedDuration();
429 bool operator& (
FBTime &pTime);
439 #ifdef FBSDKUseNamespace
static const float FRAMES_5994
-59.94f
#define Set(a0, a1, a2, a3)
FBTimeMode
Different time modes available.
static const float PAL_25
-25.0f
static const FBTime MinusInfinity
Time constant: Minus Infinity, the lowest negative time value.
static const float MPAL_30
-29.971f Currently not supported : "1" is added just to differentiate from NTSC_FULL(-29.97f)
static const FBTime Epsilon
Time constant: Epsilon, the smallest time increment.
static const FBTime Zero
Time constant: Zero.
static const float FILM_23976
-23.976f
static const FBTime OneMinute
Time constant: One Minute.
static const FBTime Infinity
Time constant: Infinity, the largest time value.
FBString operator+(const FBString &p1Str, const char *p2Str)
#define FBSDKNamespace
FBSDKNamespace define.
ETimeFormats
Different time format available.
static const float FILM_24
-24.0f
#define FB_FORWARD(ClassName)
Forwarding of class and typedef declaration.
bool operator==(const FBPickInfos &pLhs, const FBPickInfos &pRhs)
static const FBTime OneHour
Time constant: One Hour.
static const float NTSC_FULL
-29.97f
static const float FRAMES_30
-30.0f
static const FBTime OneSecond
Time constant: One Second.
#define FBSDK_DLL
Be sure that FBSDK_DLL is defined only once...
static const float NTSC_DROP
Rates.