#include <fbtime.h>
Class Description
TimeCode data structure.
Definition at line 280 of file fbtime.h.
Constructor & Destructor Documentation
FBTimeCode::FBTimeCode |
( |
float |
pRate = NTSC_DROP |
) |
|
Member Function Documentation
void FBTimeCode::SetTimeCode |
( |
int |
pHour, |
|
|
int |
pMinute = 0 , |
|
|
int |
pSecond = 0 , |
|
|
float |
pFrame = 0 |
|
) |
|
|
Set timecode.
- Parameters:
-
pHour |
Hour value. |
pMinute |
Minute value. |
pSecond |
Second value. |
pFrame |
Frame value. |
Get time as a string.
- Parameters:
-
pFormat |
Format to use for the returned
string(default=FBTime::eDefaultFormat). |
- Returns:
- String value of time.
void FBTimeCode::SetTimeCodeString |
( |
const char * |
pTime |
) |
|
Set time from string.
- Parameters:
-
pTime |
String to set time from. |
FBTime FBTimeCode::GetTime |
( |
|
) |
const |
Return a Time corresponding to the timecode.
void FBTimeCode::SetTime |
( |
FBTime |
pTime |
) |
|
Set TimeCode according to the given time.
- Parameters:
-
double FBTimeCode::GetFrame |
( |
|
) |
const |
Return a frame number corresponding to the timecode.
void FBTimeCode::SetFrame |
( |
double |
pFrame |
) |
|
Set Frame according to the given time.
- Parameters:
-
pFrame |
Frame value to set. |
float FBTimeCode::GetFrameRate |
( |
|
) |
const |
Return the rate of the timecode.
double FBTimeCode::GetRawSecond |
( |
|
) |
const |
Get the raw value for the second.
- Returns:
- raw value for the second.
double FBTimeCode::GetRawFrame |
( |
|
) |
const |
Get the raw value for the frame.
- Returns:
- raw value for the frame.
double FBTimeCode::GetRawRate |
( |
|
) |
const |
Get the raw value for the rate.
- Returns:
- raw value for the rate.
bool FBTimeCode::operator== |
( |
const FBTimeCode & |
pTimeCode |
) |
const |
Equality operator.
- Parameters:
-
pTimeCode |
time code to compare with. |
- Returns:
- true if time codes are equal.
bool FBTimeCode::operator!= |
( |
const FBTimeCode & |
pTimeCode |
) |
const |
Inequality operator.
- Parameters:
-
pTimeCode |
time code to compare with. |
- Returns:
- true if time codes are not equal.
Member Data Documentation
-29.971f Currently not supported : "1" is added just to
differentiate from NTSC_FULL(-29.97f)
Definition at line 366 of file fbtime.h.
The documentation for this class was generated from the following
file: