qthandle.html

来自「这个是java的quicktime for java 的详细使用文档」· HTML 代码 · 共 718 行 · 第 1/3 页

HTML
718
字号
</TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static&nbsp;<A HREF="../../quicktime/std/qtcomponents/TimeCodeInfo.html">TimeCodeInfo</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../quicktime/util/QTHandle.html#fromTimeCoderCurrent(quicktime.std.qtcomponents.TimeCoder)">fromTimeCoderCurrent</A></B>(<A HREF="../../quicktime/std/qtcomponents/TimeCoder.html">TimeCoder</A>&nbsp;tc)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Determines the time code from the time code handler at the current time value.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static&nbsp;<A HREF="../../quicktime/util/QTHandle.html">QTHandle</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../quicktime/util/QTHandle.html#fromTimeCoderSource(quicktime.std.qtcomponents.TimeCoder, quicktime.std.qtcomponents.TimeCodeDescription)">fromTimeCoderSource</A></B>(<A HREF="../../quicktime/std/qtcomponents/TimeCoder.html">TimeCoder</A>&nbsp;tc,                    <A HREF="../../quicktime/std/qtcomponents/TimeCodeDescription.html">TimeCodeDescription</A>&nbsp;tcd)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Allows you to retrieve the source information from the time code media sample.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static&nbsp;<A HREF="../../quicktime/std/qtcomponents/TimeCodeInfo.html">TimeCodeInfo</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../quicktime/util/QTHandle.html#fromTimeCoderTime(quicktime.std.qtcomponents.TimeCoder, int)">fromTimeCoderTime</A></B>(<A HREF="../../quicktime/std/qtcomponents/TimeCoder.html">TimeCoder</A>&nbsp;tc,                  int&nbsp;mediaTime)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Determines the time code from the time code handler.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static&nbsp;<A HREF="../../quicktime/util/QTHandle.html">QTHandle</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../quicktime/util/QTHandle.html#fromTrack(quicktime.std.movies.Track)">fromTrack</A></B>(<A HREF="../../quicktime/std/movies/Track.html">Track</A>&nbsp;t)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;This method returns the sound localization settings for the track.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static&nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="../../quicktime/util/QTHandle.html#reserveMemory(int)">reserveMemory</A></B>(int&nbsp;size)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Use reserve memory before you allocate a handle that you intend to keep locked for long periods of time.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="../../quicktime/util/QTHandle.html#setSize(int)">setSize</A></B>(int&nbsp;size)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Resizes the handle to the specified size.</TD></TR></TABLE>&nbsp;<A NAME="methods_inherited_from_class_quicktime.util.QTHandleRef"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"><TD><B>Methods inherited from class quicktime.util.<A HREF="../../quicktime/util/QTHandleRef.html">QTHandleRef</A></B></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><A HREF="../../quicktime/util/QTHandleRef.html#copyFromArray(int, byte[], int, int)">copyFromArray</A>, <A HREF="../../quicktime/util/QTHandleRef.html#copyFromArray(int, char[], int, int)">copyFromArray</A>, <A HREF="../../quicktime/util/QTHandleRef.html#copyFromArray(int, double[], int, int)">copyFromArray</A>, <A HREF="../../quicktime/util/QTHandleRef.html#copyFromArray(int, float[], int, int)">copyFromArray</A>, <A HREF="../../quicktime/util/QTHandleRef.html#copyFromArray(int, int[], int, int)">copyFromArray</A>, <A HREF="../../quicktime/util/QTHandleRef.html#copyFromArray(int, long[], int, int)">copyFromArray</A>, <A HREF="../../quicktime/util/QTHandleRef.html#copyFromArray(int, short[], int, int)">copyFromArray</A>, <A HREF="../../quicktime/util/QTHandleRef.html#copyToArray(int, byte[], int, int)">copyToArray</A>, <A HREF="../../quicktime/util/QTHandleRef.html#copyToArray(int, char[], int, int)">copyToArray</A>, <A HREF="../../quicktime/util/QTHandleRef.html#copyToArray(int, double[], int, int)">copyToArray</A>, <A HREF="../../quicktime/util/QTHandleRef.html#copyToArray(int, float[], int, int)">copyToArray</A>, <A HREF="../../quicktime/util/QTHandleRef.html#copyToArray(int, int[], int, int)">copyToArray</A>, <A HREF="../../quicktime/util/QTHandleRef.html#copyToArray(int, long[], int, int)">copyToArray</A>, <A HREF="../../quicktime/util/QTHandleRef.html#copyToArray(int, short[], int, int)">copyToArray</A>, <A HREF="../../quicktime/util/QTHandleRef.html#fromCompressionDialogState(quicktime.std.qtcomponents.CompressionDialog)">fromCompressionDialogState</A>, <A HREF="../../quicktime/util/QTHandleRef.html#fromSCSequence(quicktime.std.qtcomponents.SCSequence, quicktime.qd.QDGraphics, quicktime.qd.QDRect)">fromSCSequence</A>, <A HREF="../../quicktime/util/QTHandleRef.html#getBytes()">getBytes</A>, <A HREF="../../quicktime/util/QTHandleRef.html#getSize()">getSize</A>, <A HREF="../../quicktime/util/QTHandleRef.html#inMemory()">inMemory</A>, <A HREF="../../quicktime/util/QTHandleRef.html#isLocked()">isLocked</A>, <A HREF="../../quicktime/util/QTHandleRef.html#lock()">lock</A>, <A HREF="../../quicktime/util/QTHandleRef.html#lockHigh()">lockHigh</A>, <A HREF="../../quicktime/util/QTHandleRef.html#moveHigh()">moveHigh</A>, <A HREF="../../quicktime/util/QTHandleRef.html#toQTPointer()">toQTPointer</A>, <A HREF="../../quicktime/util/QTHandleRef.html#toQTPointer(int, int)">toQTPointer</A>, <A HREF="../../quicktime/util/QTHandleRef.html#toString()">toString</A>, <A HREF="../../quicktime/util/QTHandleRef.html#unlock()">unlock</A></CODE></TD></TR></TABLE>&nbsp;<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>&nbsp;<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>&nbsp;<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="QTHandle()"><!-- --></A><H3>QTHandle</H3><PRE>public <B>QTHandle</B>()         throws <A HREF="../../quicktime/QTException.html">QTException</A></PRE><DL><DD>Allocate a handle of minimum size for general use.<DD><DL><DT><B>Parameters:</B><DD><CODE>size</CODE> - the size of the handle to create.<DD><CODE>clear</CODE> - clear the handle upon creation.</DL></DD></DL><HR><A NAME="QTHandle(int, boolean)"><!-- --></A><H3>QTHandle</H3><PRE>public <B>QTHandle</B>(int&nbsp;size,                boolean&nbsp;clear)         throws <A HREF="../../quicktime/QTException.html">QTException</A></PRE><DL><DD>Allocate a handle for general use.	 <BR><BR><b> <a href="http://developer.apple.com/techpubs/quicktime/qtdevdocs/INMAC/MACWIN/imIntroMemMgmt.1a.htm#pgfId=1338">QuickTime::NewHandle</a>  <a href="http://developer.apple.com/techpubs/quicktime/qtdevdocs/INMAC/MACWIN/imMemoryManager.14.htm#pgfId=1850">QuickTime::NewHandle</a> </b><BR><BR>	 <BR><BR><b> <a href="http://developer.apple.com/techpubs/quicktime/qtdevdocs/INMAC/MACWIN/imIntroMemMgmt.1a.htm#pgfId=989">QuickTime::NewHandleClear</a>  <a href="http://developer.apple.com/techpubs/quicktime/qtdevdocs/INMAC/MACWIN/imMemoryManager.14.htm#pgfId=1862">QuickTime::NewHandleClear</a> </b><BR><BR><DT><B>Parameters:</B><DD><CODE>size</CODE> - the size of the handle to create.<DD><CODE>clear</CODE> - clear the handle upon creation.</DL></DD></DL><HR><A NAME="QTHandle(byte[])"><!-- --></A><H3>QTHandle</H3><PRE>public <B>QTHandle</B>(byte[]&nbsp;byteArray)         throws <A HREF="../../quicktime/QTException.html">QTException</A></PRE><DL><DD>Construct a handle from input data.<DD><DL><DT><B>Parameters:</B><DD><CODE>byteArray</CODE> - the input data.</DL></DD></DL><HR><A NAME="QTHandle(quicktime.util.QTPointerRef, int, int)"><!-- --></A><H3>QTHandle</H3><PRE>public <B>QTHandle</B>(<A HREF="../../quicktime/util/QTPointerRef.html">QTPointerRef</A>&nbsp;ptr,                int&nbsp;offset,                int&nbsp;size)         throws <A HREF="../../quicktime/QTException.html">QTException</A></PRE><DL><DD>This constructor is used to create a QTHandle object from a QTPointer. The contents of the pointer will be copied into the handle. This will copy size bytes from the pointer + offset. It will bounds check the size to be not greater than the size of the pointer.	 <BR><BR><b> <a href="http://developer.apple.com/techpubs/quicktime/qtdevdocs/INMAC/MACWIN/imMemoryManager.19.htm#pgfId=1099">QuickTime::PtrToHand</a> </b><BR><BR><DT><B>Parameters:</B><DD><CODE>ptr</CODE> - the pointer to copy.<DD><CODE>offset</CODE> - you can specify an offset within the pointer from which to copy the data<DD><CODE>size</CODE> - the amount of bytes to copy</DL></DD></DL><HR><A NAME="QTHandle(quicktime.util.QTHandleRef, quicktime.util.QTHandleRef)"><!-- --></A><H3>QTHandle</H3><PRE>public <B>QTHandle</B>(<A HREF="../../quicktime/util/QTHandleRef.html">QTHandleRef</A>&nbsp;firstHandle,                <A HREF="../../quicktime/util/QTHandleRef.html">QTHandleRef</A>&nbsp;secondHandle)         throws <A HREF="../../quicktime/QTException.html">QTException</A></PRE><DL><DD>Construct a handle from the concatenation of the two handles supplied. The First handle will appear first in the concatentated result.<DD><DL><DT><B>Parameters:</B><DD><CODE>firstHandle</CODE> - the first Handle<DD><CODE>secondHandle</CODE> - the second Handle</DL></DD></DL><!-- ============ 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="fromGraphicsExporterText(quicktime.std.image.GraphicsExporter)"><!-- --></A><H3>fromGraphicsExporterText</H3><PRE>public static <A HREF="../../quicktime/util/QTHandle.html">QTHandle</A> <B>fromGraphicsExporterText</B>(<A HREF="../../quicktime/std/image/GraphicsExporter.html">GraphicsExporter</A>&nbsp;g)                                         throws <A HREF="../../quicktime/QTException.html">QTException</A></PRE><DL><DD>Determines the data handle that is the source for input images to graphics export component	 <BR><BR><b> <a href="http://developer.apple.com/techpubs/quicktime/qtdevdocs/REF/refExporter.1f.htm#28636">QuickTime::GraphicsExportGetSettingsAsText</a> </b><BR><BR></DL></DD><DD><DL><DT><B>Returns:</B><DD>The handle to a QuickTime data handle.<DT><B>See Also: </B><DD><A HREF="../../quicktime/std/image/GraphicsExporter.html#getInputHandle()"><CODE>GraphicsExporter.getInputHandle()</CODE></A></DL></DD></DL><HR><A NAME="fromGraphicsExporterInput(quicktime.std.image.GraphicsExporter)"><!-- --></A><H3>fromGraphicsExporterInput</H3><PRE>public static <A HREF="../../quicktime/util/QTHandle.html">QTHandle</A> <B>fromGraphicsExporterInput</B>(<A HREF="../../quicktime/std/image/GraphicsExporter.html">GraphicsExporter</A>&nbsp;g)                                          throws <A HREF="../../quicktime/QTException.html">QTException</A></PRE><DL><DD>Determines the data handle that is the source for input images to graphics export component	 <BR><BR><b> <a href="http://developer.apple.com/techpubs/quicktime/qtdevdocs/REF/refExporter.22.htm#21087">QuickTime::GraphicsExportGetInputHandle</a> </b><BR><BR></DL></DD><DD><DL><DT><B>Returns:</B><DD>The handle to a QuickTime data handle.<DT><B>See Also: </B><DD><A HREF="../../quicktime/std/image/GraphicsExporter.html#getInputHandle()"><CODE>GraphicsExporter.getInputHandle()</CODE></A></DL></DD></DL><HR><A NAME="fromGraphicsExporterOutput(quicktime.std.image.GraphicsExporter)"><!-- --></A><H3>fromGraphicsExporterOutput</H3><PRE>public static <A HREF="../../quicktime/util/QTHandle.html">QTHandle</A> <B>fromGraphicsExporterOutput</B>(<A HREF="../../quicktime/std/image/GraphicsExporter.html">GraphicsExporter</A>&nbsp;g)                                           throws <A HREF="../../quicktime/QTException.html">QTException</A></PRE><DL><DD>Determines the data handle that is the source for input images to graphics export component	 <BR><BR><b> <a href="http://developer.apple.com/techpubs/quicktime/qtdevdocs/REF/refExporter.26.htm#25918">QuickTime::GraphicsExportGetOutputHandle</a> </b><BR><BR></DL></DD><DD><DL><DT><B>Returns:</B><DD>The handle to a QuickTime data handle.<DT><B>See Also: </B><DD><A HREF="../../quicktime/std/image/GraphicsExporter.html#getOutputHandle()"><CODE>GraphicsExporter.getOutputHandle()</CODE></A></DL></DD></DL><HR><A NAME="fromSoundDescription(quicktime.std.movies.media.SoundDescription, int)"><!-- --></A><H3>fromSoundDescription</H3><PRE>public static <A HREF="../../quicktime/util/QTHandle.html">QTHandle</A> <B>fromSoundDescription</B>(<A HREF="../../quicktime/std/movies/media/SoundDescription.html">SoundDescription</A>&nbsp;sd,                                            int&nbsp;idType)                                     throws <A HREF="../../quicktime/QTException.html">QTException</A></PRE><DL><DD>Retrieve application specific info from a Sound Description object	 <BR><BR><b> <a href="http://developer.apple.com/techpubs/quicktime/qtdevdocs/REF/ref_undocfuncs.htm#pgfId=16973">QuickTime::GetSoundDescriptionExtension</a> </b><BR><BR></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>idType</CODE> - an OSType identifying the information for removal<DT><B>Returns:</B><DD>a dataref to the Extension<DT><B>See Also: </B><DD><A HREF="../../quicktime/std/movies/media/SoundDescription.html#getExtension(int)"><CODE>SoundDescription.getExtension(int)</CODE></A></DL></DD></DL><HR>

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?