📄 dataref.html
字号:
so the dataRefType is a handle DataRef ('hndl'). Hints can be given to
QuickTime (and should if at all possible) about the format of the data
that is contained within the handle. Hints can take one of three forms
<UL>
<LI>MIME Type -> kDataRefMimeTypeTag
<LI>MacOS File Type -> kDataRefQTFileTypeTag
<LI>File extension -> kDataRefFileExtensionTag
</UL>
The preferred usage is to pass in either the MacOS File Type (which will also work on non-MacOS platforms)
or the MIME type information. The File extension is a more arbitrary indicator and should be the least
referred to. If the hint information is not specified a paramErr exception is thrown<DD><DL>
<DT><B>Parameters:</B><DD><CODE>handle</CODE> - Specifies the data (a handle) that this reference should point to.<DD><CODE>hintFlag</CODE> - describes the hint data that is used<DD><CODE>hintString</CODE> - contains the hint information</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="fromGraphicsExporterInputDataRef(quicktime.std.image.GraphicsExporter)"><!-- --></A><H3>
fromGraphicsExporterInputDataRef</H3>
<PRE>
public static <A HREF="../../../../quicktime/std/movies/media/DataRef.html">DataRef</A> <B>fromGraphicsExporterInputDataRef</B>(<A HREF="../../../../quicktime/std/image/GraphicsExporter.html">GraphicsExporter</A> ge)
throws <A HREF="../../../../quicktime/QTException.html">QTException</A></PRE>
<DL>
<DD>This method returns a copy of a data reference.
<BR><BR><b> <a href="http://developer.apple.com/techpubs/quicktime/qtdevdocs/REF/refExporter.22.htm#28901">QuickTime::GraphicsExportGetInputDataReference()</a> </b><BR><BR>
</DL>
</DD>
<DD><DL>
<DT><B>Returns:</B><DD>a copy of a data reference from the graphics exporter component.<DT><B>See Also: </B><DD><CODE>quicktime.std.image.GraphicsExporter.getInputDataReference</CODE></DL>
</DD>
</DL>
<HR>
<A NAME="fromGraphicsExporterOutputDataRef(quicktime.std.image.GraphicsExporter)"><!-- --></A><H3>
fromGraphicsExporterOutputDataRef</H3>
<PRE>
public static <A HREF="../../../../quicktime/std/movies/media/DataRef.html">DataRef</A> <B>fromGraphicsExporterOutputDataRef</B>(<A HREF="../../../../quicktime/std/image/GraphicsExporter.html">GraphicsExporter</A> ge)
throws <A HREF="../../../../quicktime/QTException.html">QTException</A></PRE>
<DL>
<DD>This method returns a copy of a data reference.
<BR><BR><b> <a href="http://developer.apple.com/techpubs/quicktime/qtdevdocs/REF/refExporter.26.htm#17186">QuickTime::GraphicsExportGetOutputDataReference()</a> </b><BR><BR>
</DL>
</DD>
<DD><DL>
<DT><B>Returns:</B><DD>a copy of a data reference from the graphics exporter component.<DT><B>See Also: </B><DD><CODE>quicktime.std.image.GraphicsExporter.getOutputDataReference</CODE></DL>
</DD>
</DL>
<HR>
<A NAME="fromMovie(quicktime.std.movies.Movie)"><!-- --></A><H3>
fromMovie</H3>
<PRE>
public static <A HREF="../../../../quicktime/std/movies/media/DataRef.html">DataRef</A> <B>fromMovie</B>(<A HREF="../../../../quicktime/std/movies/Movie.html">Movie</A> m)
throws <A HREF="../../../../quicktime/QTException.html">QTException</A></PRE>
<DL>
<DD>This method allows your application to get the default data reference for the movie.
<BR><BR><b> <a href="http://developer.apple.com/techpubs/quicktime/qtdevdocs/REF/ref_undocfuncs.htm#pgfId=16961">QuickTime::GetMovieDefaultDataRef()</a> </b><BR><BR>
</DL>
</DD>
<DD><DL>
<DT><B>Returns:</B><DD>a DataRef object specifiying the default data reference for the movie.<DT><B>See Also: </B><DD><A HREF="../../../../quicktime/std/movies/Movie.html#getDefaultDataRef()"><CODE>Movie.getDefaultDataRef()</CODE></A></DL>
</DD>
</DL>
<HR>
<A NAME="fromSequenceGrabber(quicktime.std.sg.SequenceGrabber)"><!-- --></A><H3>
fromSequenceGrabber</H3>
<PRE>
public static <A HREF="../../../../quicktime/std/movies/media/DataRef.html">DataRef</A> <B>fromSequenceGrabber</B>(<A HREF="../../../../quicktime/std/sg/SequenceGrabber.html">SequenceGrabber</A> sg)
throws <A HREF="../../../../quicktime/std/StdQTException.html">StdQTException</A></PRE>
<DL>
<DD>Determines the data reference that is currently assigned to a sequence grabber component.
<BR><BR><b> <a href="http://developer.apple.com/techpubs/quicktime/qtdevdocs/REF/refSeqGrabComp.a.htm#refSeq377">QuickTime::SGGetDataRef</a> </b><BR><BR>
</DL>
</DD>
<DD><DL>
<DT><B>Returns:</B><DD>the dataRef<DT><B>See Also: </B><DD><A HREF="../../../../quicktime/std/sg/SequenceGrabber.html#getDataRef()"><CODE>SequenceGrabber.getDataRef()</CODE></A></DL>
</DD>
</DL>
<HR>
<A NAME="fromMedia(quicktime.std.movies.media.Media, int)"><!-- --></A><H3>
fromMedia</H3>
<PRE>
public static <A HREF="../../../../quicktime/std/movies/media/DataRef.html">DataRef</A> <B>fromMedia</B>(<A HREF="../../../../quicktime/std/movies/media/Media.html">Media</A> m,
int index)
throws <A HREF="../../../../quicktime/QTException.html">QTException</A></PRE>
<DL>
<DD>This method returns a copy of a specified data reference.
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -