43#include <kaydaradef.h>
49 #define FBSDK_DLL K_DLLIMPORT
54#ifdef FBSDKUseNamespace
55 namespace FBSDKNamespace {
104 FBTime( kLongLong pTime=0);
158 const kLongLong&
Get()
const;
163 void Set( kLongLong pTime );
228 FBTime& operator+= (
double pConstant);
229 FBTime& operator-= (
double pConstant);
230 FBTime& operator*= (
double pConstant);
231 FBTime& operator/= (
double pConstant);
251 FBTime operator+ (
double pConstant);
252 FBTime operator/ (
double pConstant);
253 FBTime operator* (
double pConstant);
262 bool operator!= (
const FBTime& pTime);
263 bool operator>= (
const FBTime& pTime);
264 bool operator<= (
const FBTime& pTime);
265 bool operator> (
const FBTime& pTime);
266 bool operator< (
const FBTime& pTime);
326 void SetTimeCode(
int pHour,
int pMinute=0,
int pSecond=0,
float pFrame=0);
427 const FBTime& GetStart()
const;
428 const FBTime& GetStop()
const;
467#ifdef FBSDKUseNamespace
FBTime GetTime() const
Return a Time corresponding to the timecode.
static const float PAL_25
-25.0f
double GetFrame() const
Return a frame number corresponding to the timecode.
bool operator==(const FBTimeCode &pTimeCode) const
Equality operator.
void SetFrame(double pFrame)
Set Frame according to the given time.
static const float FILM_23976
-23.976f
void SetTimeCodeString(const char *pTime, FBTime::ETimeFormats pFormat=FBTime::eDefaultFormat)
Set time from string.
static const float NTSC_DROP
Rates.
double GetRawSecond() const
Get the raw value for the second.
FBTimeCode(float pRate=FRAMES_30)
Constructor.
void SetTimeCode(int pHour, int pMinute=0, int pSecond=0, float pFrame=0)
Set timecode.
static const float MPAL_30
-29.971f Currently not supported : "1" is added just to differentiate from NTSC_FULL(-29....
static const float FILM_24
-24.0f
float GetFrameRate() const
Return the rate of the timecode.
double GetRawRate() const
Get the raw value for the rate.
static const float NTSC_FULL
-29.97f
static const float FRAMES_30
-30.0f
static const float FRAMES_5994
-59.94f
FBString GetTimeCodeString(FBTime::ETimeFormats pFormat=FBTime::eDefaultFormat)
Get time as a string.
void SetTime(FBTime pTime)
Set TimeCode according to the given time.
bool operator!=(const FBTimeCode &pTimeCode) const
Inequality operator.
double GetRawFrame() const
Get the raw value for the frame.
static const float FRAMES_11988
-119.88f
static const FBTime Infinity
Time constant: Infinity, the largest time value.
void SetTimeString(const char *pTime)
Set time from string.
ETimeFormats
Different time format available.
@ eDefaultFormat
Default Time format.
@ eFrame
format as numeric frame
double GetSecondDouble()
Get seconds as double.
static const FBTime OneHour
Time constant: One Hour.
kLongLong GetMilliSeconds()
Get milliseconds for time.
const kLongLong & Get() const
Get time value (long)
kLongLong GetFrame(FBTimeMode pTimeMode=kFBTimeModeDefault)
Get the frame count.
static const FBTime OneMinute
Time constant: One Minute.
bool GetTime(int &pHour, int &pMinute, int &pSecond, int &pFrame, int &pField, int &pMilliSecond, FBTimeMode pTimeMode=kFBTimeModeDefault)
Get time (filling separate values)
void SetFrame(kLongLong pFrames, FBTimeMode pTimeMode=kFBTimeModeDefault)
Set time in frame format.
static const FBTime Epsilon
Time constant: Epsilon, the smallest time increment.
void SetMilliSeconds(kLongLong pMilliSeconds)
Set milliseconds time.
static const FBTime MinusInfinity
Time constant: Minus Infinity, the lowest negative time value.
void Set(kLongLong pTime)
Set time value from a long.
static const FBTime Zero
Time constant: Zero.
FBTime(int pHour, int pMinute, int pSecond=0, int pFrame=0, int pField=0, FBTimeMode pTimeMode=kFBTimeModeDefault)
Constructor.
kLongLong & Get()
Get time value (long)
void SetSecondDouble(double pTime)
Set seconds from double.
bool IsExactlyOnFrame(FBTimeMode pTimeMode=kFBTimeModeDefault)
Is the time falling exactly on a frame?
FBString GetTimeString(FBTimeMode pMode=kFBTimeModeDefault, ETimeFormats pFormat=eDefaultFormat)
Get time as a string.
static const FBTime OneSecond
Time constant: One Second.
void SetTime(int pHour, int pMinute=0, int pSecond=0, int pFrame=0, int pField=0, FBTimeMode pTimeMode=kFBTimeModeDefault)
Set time (from separate values)
void Set(FBTime pStart, FBTime pStop)
Set the TimeSpan.
FBTimeSpan(FBTime pStart=0, FBTime pStop=0)
Constructor.
FBTime GetSignedDuration()
Get the signed duration value of a timespan.
FBTime GetDuration()
Get the unsigned duration value of a timespan.
int GetDirection()
Get the direction of the timespan.
FBTime & GetStart()
Get the start/stop time.
#define FBSDK_DLL
Be sure that FBSDK_DLL is defined only once...
FBTimeMode
Different time modes available.
@ kFBTimeMode2997Frames_Drop
~29.97 drop
@ kFBTimeMode11988Frames
~119.88
@ kFBTimeMode100Frames
100
@ kFBTimeModeCustom
Custom framerate.
@ kFBTimeMode1000Frames
1000 : 1 millisecond
@ kFBTimeMode5994Frames
~59.94
@ kFBTimeMode2997Frames
~29.97 full
@ kFBTimeMode23976Frames
~23.976
@ kFBTimeModeDefault
Default Time Mode.
@ kFBTimeMode120Frames
120
#define FB_FORWARD(ClassName)
Forwarding of class and typedef declaration.