📄 timebase.html
字号:
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> int</CODE></FONT></TD><TD><CODE><B><A HREF="../../../quicktime/std/clocks/TimeBase.html#getStopTime(int)">getStopTime</A></B>(int scale)</CODE><BR> This allows you to determine the stop time of a time base in the default scale of the time base.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> int</CODE></FONT></TD><TD><CODE><B><A HREF="../../../quicktime/std/clocks/TimeBase.html#getTime()">getTime</A></B>()</CODE><BR> This allows your application to obtain the current time value from a time base in its preferred time scale.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> int</CODE></FONT></TD><TD><CODE><B><A HREF="../../../quicktime/std/clocks/TimeBase.html#getTime(int)">getTime</A></B>(int scale)</CODE><BR> This allows your application to obtain the current time value from a time base.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../../quicktime/std/clocks/TimeRecord.html">TimeRecord</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../quicktime/std/clocks/TimeBase.html#getTRStartTime()">getTRStartTime</A></B>()</CODE><BR> This allows you to determine the start time of a time base in the default scale of the time base.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../../quicktime/std/clocks/TimeRecord.html">TimeRecord</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../quicktime/std/clocks/TimeBase.html#getTRStartTime(int)">getTRStartTime</A></B>(int scale)</CODE><BR> This allows you to determine the start time of a time base.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../../quicktime/std/clocks/TimeRecord.html">TimeRecord</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../quicktime/std/clocks/TimeBase.html#getTRStopTime()">getTRStopTime</A></B>()</CODE><BR> This allows you to determine the stop time of a time base in the default scale of the time base.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../../quicktime/std/clocks/TimeRecord.html">TimeRecord</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../quicktime/std/clocks/TimeBase.html#getTRStopTime(int)">getTRStopTime</A></B>(int scale)</CODE><BR> This allows you to determine the stop time of a time base in the default scale of the time base.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../../quicktime/std/clocks/TimeRecord.html">TimeRecord</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../quicktime/std/clocks/TimeBase.html#getTRTime()">getTRTime</A></B>()</CODE><BR> This allows your application to obtain the current time value from a time base in the default scale of the time base.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../../quicktime/std/clocks/TimeRecord.html">TimeRecord</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../quicktime/std/clocks/TimeBase.html#getTRTime(int)">getTRTime</A></B>(int scale)</CODE><BR> This allows your application to obtain the current time value from a time base.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../quicktime/std/clocks/TimeBase.html#setFlags(int)">setFlags</A></B>(int timeBaseFlags)</CODE><BR> This allows your application to set the contents of the control flags of a time base.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../quicktime/std/clocks/TimeBase.html#setMasterClock(quicktime.std.clocks.Clock, quicktime.std.clocks.TimeRecord)">setMasterClock</A></B>(<A HREF="../../../quicktime/std/clocks/Clock.html">Clock</A> clockMeister, <A HREF="../../../quicktime/std/clocks/TimeRecord.html">TimeRecord</A> slaveZero)</CODE><BR> Specifies the clock component that is assigned to a time base.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../quicktime/std/clocks/TimeBase.html#setMasterTimeBase(quicktime.std.clocks.TimeBase, quicktime.std.clocks.TimeRecord)">setMasterTimeBase</A></B>(<A HREF="../../../quicktime/std/clocks/TimeBase.html">TimeBase</A> master, <A HREF="../../../quicktime/std/clocks/TimeRecord.html">TimeRecord</A> slaveZero)</CODE><BR> This allows your application to assign a master time base to a time base.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../quicktime/std/clocks/TimeBase.html#setRate(float)">setRate</A></B>(float rate)</CODE><BR> This allows your application to set the rate of a time base.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../quicktime/std/clocks/TimeBase.html#setStartTime(quicktime.std.clocks.TimeRecord)">setStartTime</A></B>(<A HREF="../../../quicktime/std/clocks/TimeRecord.html">TimeRecord</A> tr)</CODE><BR> This allows you to set the start time of a time base and defines the time base's the minimum time value.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../quicktime/std/clocks/TimeBase.html#setStopTime(quicktime.std.clocks.TimeRecord)">setStopTime</A></B>(<A HREF="../../../quicktime/std/clocks/TimeRecord.html">TimeRecord</A> tr)</CODE><BR> This allows you to set the stop time of a time base and defines the time base's the maximum time value.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../quicktime/std/clocks/TimeBase.html#setTime(quicktime.std.clocks.TimeRecord)">setTime</A></B>(<A HREF="../../../quicktime/std/clocks/TimeRecord.html">TimeRecord</A> tr)</CODE><BR> This allows your application to set the current time of a time base.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../quicktime/std/clocks/TimeBase.html#setValue(int, int)">setValue</A></B>(int time, int scale)</CODE><BR> This allows your application to set the current time of a time base.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../quicktime/std/clocks/TimeBase.html#setZero(quicktime.std.clocks.TimeRecord)">setZero</A></B>(<A HREF="../../../quicktime/std/clocks/TimeRecord.html">TimeRecord</A> zero)</CODE><BR> This allows your application to change the offset from a time base to either its master time base or its clock component.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> java.lang.String</CODE></FONT></TD><TD><CODE><B><A HREF="../../../quicktime/std/clocks/TimeBase.html#toString()">toString</A></B>()</CODE><BR> Print information about this TimeBase object.</TD></TR></TABLE> <A NAME="methods_inherited_from_class_quicktime.QTObject"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"><TD><B>Methods inherited from class quicktime.<A HREF="../../../quicktime/QTObject.html">QTObject</A></B></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><A HREF="../../../quicktime/QTObject.html#disposeQTObject()">disposeQTObject</A>, <A HREF="../../../quicktime/QTObject.html#equals(java.lang.Object)">equals</A>, <A HREF="../../../quicktime/QTObject.html#ID(quicktime.QTObject)">ID</A></CODE></TD></TR></TABLE> <A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"><TD><B>Methods inherited from class java.lang.Object</B></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE>getClass, hashCode, notify, notifyAll, wait, wait, wait</CODE></TD></TR></TABLE> <P><!-- ============ FIELD DETAIL =========== --><!-- ========= CONSTRUCTOR DETAIL ======== --><A NAME="constructor_detail"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=1><FONT SIZE="+2"><B>Constructor Detail</B></FONT></TD></TR></TABLE><A NAME="TimeBase()"><!-- --></A><H3>TimeBase</H3><PRE>public <B>TimeBase</B>() throws <A HREF="../../../quicktime/QTException.html">QTException</A></PRE><DL><DD>This allows your application to obtain a new time base. <BR><BR><b> <a href="http://developer.apple.com/techpubs/quicktime/qtdevdocs/INMAC/QT/iqMovieToolbox.4d.htm#iqMovi1144">QuickTime::NewTimeBase</a> </b><BR><BR><!-- ============ METHOD DETAIL ========== --><A NAME="method_detail"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=1><FONT SIZE="+2"><B>Method Detail</B></FONT></TD></TR></TABLE><A NAME="fromTimeRecord(quicktime.std.clocks.TimeRecord)"><!-- --></A><H3>fromTimeRecord</H3><PRE>public static <A HREF="../../../quicktime/std/clocks/TimeBase.html">TimeBase</A> <B>fromTimeRecord</B>(<A HREF="../../../quicktime/std/clocks/TimeRecord.html">TimeRecord</A> tr)</PRE><DL><DD>Return the TimeBase that is associated with this record. If there is no TimeBase then returns null.<DD><DL></DL></DD><DD><DL><DT><B>See Also: </B><DD><A HREF="../../../quicktime/std/clocks/TimeRecord.html#getTimeBase()"><CODE>TimeRecord.getTimeBase()</CODE></A></DL></DD></DL><HR><A NAME="fromQTCallBack(quicktime.std.clocks.QTCallBack)"><!-- --></A><H3>fromQTCallBack</H3><PRE>public static <A HREF="../../../quicktime/std/clocks/TimeBase.html">TimeBase</A> <B>fromQTCallBack</B>(<A HREF="../../../quicktime/std/clocks/QTCallBack.html">QTCallBack</A> cb)</PRE><DL><DD>Retrieve the time base of a callback event. <BR><BR><b> <a href="http://developer.apple.com/techpubs/quicktime/qtdevdocs/INMAC/QT/iqMovieToolbox.50.htm#iqMovi1248">QuickTime::GetCallBackTimeBase()</a> </b><BR><BR></DL></DD><DD><DL><DT><B>Returns:</B><DD>the time base of the callback.<DT><B>See Also: </B><DD><A HREF="../../../quicktime/std/clocks/QTCallBack.html#getTimeBase()"><CODE>QTCallBack.getTimeBase()</CODE></A></DL></DD></DL><HR><A NAME="fromICMFrameTime(quicktime.std.image.ICMFrameTime)"><!-- --></A><H3>fromICMFrameTime</H3><PRE>public static <A HREF="../../../quicktime/std/clocks/TimeBase.html">TimeBase</A> <B>fromICMFrameTime</B>(<A HREF="../../../quicktime/std/image/ICMFrameTime.html">ICMFrameTime</A> ft)</PRE><DL><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>the current time base - can be null<DT><B>See Also: </B><DD><A HREF="../../../quicktime/std/image/ICMFrameTime.html#getBase()"><CODE>ICMFrameTime.getBase()</CODE></A></DL></DD></DL><HR><A NAME="fromMovie(quicktime.std.movies.Movie)"><!-- --></A><H3>fromMovie</H3><PRE>public static <A HREF="../../../quicktime/std/clocks/TimeBase.html">TimeBase</A> <B>fromMovie</B>(<A HREF="../../../quicktime/std/movies/Movie.html">Movie</A> m) throws <A HREF="../../../quicktime/std/StdQTException.html">StdQTException</A></PRE><DL><DD>This method allows you to get movie's TimeBase. <BR><BR><b> <a href="http://developer.apple.com/techpubs/quicktime/qtdevdocs/INMAC/QT/iqMovieToolbox.34.htm#iqMovi765">QuickTime::GetMovieTimeBase()</a> </b><BR><BR></DL></DD><DD><DL><DT><B>Returns:</B><DD>a TimeBase object for movie's timebase<DT><B>See Also: </B><DD><A HREF="../../../quicktime/std/movies/Movie.html#getTimeBase()"><CODE>Movie.getTimeBase()</CODE></A></DL></DD></DL><HR><A NAME="fromTunePlayer(quicktime.std.music.TunePlayer)"><!-- --></A><H3>fromTunePlayer</H3>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -