|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--quicktime.QTObject | +--quicktime.std.clocks.TimeBase
The TimeBase defines the QuickTime time coordinate system of a movie.
May be used for general timing purposes.
refer to TimeBaseRecord in QuickTime
Fields inherited from interface quicktime.jdirect.QuickTimeLib |
JDirect_MacOSX, libraryInstance, name |
Fields inherited from interface quicktime.jdirect.QTStreamingLib |
JDirect_MacOSX, libraryInstance |
Constructor Summary | |
TimeBase()
This allows your application to obtain a new time base. |
Method Summary | |
static TimeBase |
fromICMFrameTime(ICMFrameTime ft)
|
static TimeBase |
fromMovie(Movie m)
This method allows you to get movie's TimeBase. |
static TimeBase |
fromPresentation(Presentation p)
Returns the Presentation's current time Base. |
static TimeBase |
fromQTCallBack(QTCallBack cb)
Retrieve the time base of a callback event. |
static TimeBase |
fromSequenceGrabber(SequenceGrabber sg)
Returns the SequenceGrabber's current time Base. |
static TimeBase |
fromTimeRecord(TimeRecord tr)
Return the TimeBase that is associated with this record. |
static TimeBase |
fromTunePlayer(TunePlayer tp)
Returns the TunePlayer's current time Base. |
float |
getEffectiveRate()
Useful when needed to make scheduling decisions based on the rate of a time base. |
int |
getFlags()
This allows your application to obtain the contents of the control flags of a time base. |
Clock |
getMasterClock()
Determines the clock component that is assigned to a time base. |
TimeBase |
getMasterTimeBase()
This allows your application to determine the master time base that is assigned to a time base. |
float |
getRate()
This allows your application to retrieve the rate of a time base. |
int |
getStartTime()
This allows you to determine the start time of a time base in the preferred scale of the time base QuickTime::GetTimeBaseStartTime |
int |
getStartTime(int scale)
This allows you to determine the start time of a time base. |
int |
getStatus(TimeRecord unpinnedTime)
This allows your application to retrieve status information from a time base. |
int |
getStopTime()
This allows you to determine the stop time of a time base in the preferred time scale of the TimeBase QuickTime::GetTimeBaseStopTime |
int |
getStopTime(int scale)
This allows you to determine the stop time of a time base in the default scale of the time base. |
int |
getTime()
This allows your application to obtain the current time value from a time base in its preferred time scale. |
int |
getTime(int scale)
This allows your application to obtain the current time value from a time base. |
TimeRecord |
getTRStartTime()
This allows you to determine the start time of a time base in the default scale of the time base. |
TimeRecord |
getTRStartTime(int scale)
This allows you to determine the start time of a time base. |
TimeRecord |
getTRStopTime()
This allows you to determine the stop time of a time base in the default scale of the time base. |
TimeRecord |
getTRStopTime(int scale)
This allows you to determine the stop time of a time base in the default scale of the time base. |
TimeRecord |
getTRTime()
This allows your application to obtain the current time value from a time base in the default scale of the time base. |
TimeRecord |
getTRTime(int scale)
This allows your application to obtain the current time value from a time base. |
void |
setFlags(int timeBaseFlags)
This allows your application to set the contents of the control flags of a time base. |
void |
setMasterClock(Clock clockMeister,
TimeRecord slaveZero)
Specifies the clock component that is assigned to a time base. |
void |
setMasterTimeBase(TimeBase master,
TimeRecord slaveZero)
This allows your application to assign a master time base to a time base. |
void |
setRate(float rate)
This allows your application to set the rate of a time base. |
void |
setStartTime(TimeRecord tr)
This allows you to set the start time of a time base and defines the time base's the minimum time value. |
void |
setStopTime(TimeRecord tr)
This allows you to set the stop time of a time base and defines the time base's the maximum time value. |
void |
setTime(TimeRecord tr)
This allows your application to set the current time of a time base. |
void |
setValue(int time,
int scale)
This allows your application to set the current time of a time base. |
void |
setZero(TimeRecord zero)
This allows your application to change the offset from a time base to either its master time base or its clock component. |
java.lang.String |
toString()
Print information about this TimeBase object. |
Methods inherited from class quicktime.QTObject |
disposeQTObject, equals, ID |
Methods inherited from class java.lang.Object |
getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public TimeBase() throws QTException
Method Detail |
public static TimeBase fromTimeRecord(TimeRecord tr)
TimeRecord.getTimeBase()
public static TimeBase fromQTCallBack(QTCallBack cb)
QTCallBack.getTimeBase()
public static TimeBase fromICMFrameTime(ICMFrameTime ft)
ICMFrameTime.getBase()
public static TimeBase fromMovie(Movie m) throws StdQTException
Movie.getTimeBase()
public static TimeBase fromTunePlayer(TunePlayer tp) throws StdQTException
TunePlayer.getTimeBase()
public static TimeBase fromPresentation(Presentation p) throws StdQTException
Presentation.getTimeBase()
public static TimeBase fromSequenceGrabber(SequenceGrabber sg) throws StdQTException
quicktime.std.music.SequenceGrabber#getTimeBase
public int getTime()
public int getTime(int scale)
scale
- Specifies the time scale in which to return the current time valuepublic TimeRecord getTRTime() throws QTException
public TimeRecord getTRTime(int scale) throws QTException
scale
- Specifies the time scale in which to return the current time valuepublic void setTime(TimeRecord tr)
tr
- The time structure that contains the current timepublic void setValue(int time, int scale)
time
- Specifies the new time valuescale
- Specifies the time scale of the new time valuepublic float getRate()
public void setRate(float rate)
rate
- Specifies the time rate of the time basepublic float getEffectiveRate()
public int getStartTime()
public int getStartTime(int scale)
scale
- Specifies the time scale in which to return the start timepublic TimeRecord getTRStartTime() throws QTException
public TimeRecord getTRStartTime(int scale) throws QTException
scale
- Specifies the time scale in which to return the start timepublic void setStartTime(TimeRecord tr)
tr
- The time object that contains the start time valuepublic int getStopTime()
public int getStopTime(int scale)
scale
- Specifies the time scale in which to return the stop timepublic TimeRecord getTRStopTime() throws QTException
public TimeRecord getTRStopTime(int scale) throws QTException
public void setStopTime(TimeRecord tr)
tr
- The time structure that contains the stop time valuepublic int getFlags()
public void setFlags(int timeBaseFlags)
timeBaseFlags
- Specifies the control flags for the time base.public int getStatus(TimeRecord unpinnedTime)
unpinnedTime
- The time structure that will receive the current time of the time basepublic void setZero(TimeRecord zero)
zero
- The time structure that corresponds to a 0 time value for the slave time scalepublic void setMasterTimeBase(TimeBase master, TimeRecord slaveZero)
master
- Specifies the master time base to be assigned to this slaved time baseslaveZero
- Specifies the time, in the master time base time scale, that corresponds to a 0 time value for this slaved time basepublic TimeBase getMasterTimeBase()
getMasterClock
public void setMasterClock(Clock clockMeister, TimeRecord slaveZero)
clockMeister
- The specified clock.slaveZero
- The specified time record used in offsetting the time value of the time base and specified clock.public Clock getMasterClock()
tb
- The specified time base.getMasterTimeBase
public java.lang.String toString()
toString
in class QTObject
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |