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