📄 track.html
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Frameset//EN""http://www.w3.org/TR/REC-html40/frameset.dtd"><!--NewPage--><HTML><HEAD><!-- Generated by javadoc on Mon Jul 15 11:50:55 PDT 2002 --><TITLE>: Class Track</TITLE><LINK REL ="stylesheet" TYPE="text/css" HREF="../../../stylesheet.css" TITLE="Style"></HEAD><BODY BGCOLOR="white"><!-- ========== START OF NAVBAR ========== --><A NAME="navbar_top"><!-- --></A><TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0"><TR><TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"><A NAME="navbar_top_firstrow"><!-- --></A><TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3"> <TR ALIGN="center" VALIGN="top"> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD> <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/Track.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD> </TR></TABLE></TD><TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM></EM></TD></TR><TR><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../../quicktime/std/movies/TimeInfo.html"><B>PREV CLASS</B></A> <A HREF="../../../quicktime/std/movies/TrackEditState.html"><B>NEXT CLASS</B></A></FONT></TD><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../../index.html" TARGET="_top"><B>FRAMES</B></A> <A HREF="Track.html" TARGET="_top"><B>NO FRAMES</B></A></FONT></TD></TR><TR><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> SUMMARY: INNER | FIELD | CONSTR | <A HREF="#method_summary">METHOD</A></FONT></TD><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">DETAIL: FIELD | CONSTR | <A HREF="#method_detail">METHOD</A></FONT></TD></TR></TABLE><!-- =========== END OF NAVBAR =========== --><HR><!-- ======== START OF CLASS DATA ======== --><H2><FONT SIZE="-1">quicktime.std.movies</FONT><BR>Class Track</H2><PRE>java.lang.Object | +--<A HREF="../../../quicktime/QTObject.html">quicktime.QTObject</A> | +--<B>quicktime.std.movies.Track</B></PRE><DL><DT><B>All Implemented Interfaces:</B> <DD><A HREF="../../../quicktime/jdirect/InterfaceLib.html">InterfaceLib</A>, <A HREF="../../../quicktime/jdirect/PrimitivesLib.html">PrimitivesLib</A>, <A HREF="../../../quicktime/jdirect/QuickTimeLib.html">QuickTimeLib</A>, <A HREF="../../../quicktime/jdirect/SharedLibrary.html">SharedLibrary</A>, com.apple.jdirect.SharedLibrary</DD></DL><HR><DL><DT>public final class <B>Track</B><DT>extends <A HREF="../../../quicktime/QTObject.html">QTObject</A><DT>implements <A HREF="../../../quicktime/jdirect/QuickTimeLib.html">QuickTimeLib</A></DL><P>The Track class implements the corresponding data structure of the Movie Toolbox. A QuickTime movie may contain several tracks. Each track refers to a media that contains references to the movie data, which may be stored as images or sound on hard disks, floppy disks, compact discs, or other devices. Specifies the track for an operation. Your application obtains a track identifier from such Movie Toolbox functions as NewMovieTrack and GetMovieTrack (described on page 2-151 of Inside Macintosh: QuickTime and page 2-204 of Inside Macintosh: QuickTime, respectively).<BR> You make a new Track object only through addTrack or getTrack methods on a movie object.<P><HR><P><!-- ======== INNER CLASS SUMMARY ======== --><!-- =========== FIELD SUMMARY =========== --><A NAME="fields_inherited_from_class_quicktime.jdirect.QuickTimeLib"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"><TD><B>Fields inherited from interface quicktime.jdirect.<A HREF="../../../quicktime/jdirect/QuickTimeLib.html">QuickTimeLib</A></B></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><A HREF="../../../quicktime/jdirect/QuickTimeLib.html#JDirect_MacOSX">JDirect_MacOSX</A>, <A HREF="../../../quicktime/jdirect/QuickTimeLib.html#libraryInstance">libraryInstance</A>, <A HREF="../../../quicktime/jdirect/QuickTimeLib.html#name">name</A></CODE></TD></TR></TABLE> <!-- ======== CONSTRUCTOR SUMMARY ======== --><!-- ========== METHOD SUMMARY =========== --><A NAME="method_summary"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=2><FONT SIZE="+2"><B>Method Summary</B></FONT></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/movies/Track.html#addReference(quicktime.std.movies.Track, int)">addReference</A></B>(<A HREF="../../../quicktime/std/movies/Track.html">Track</A> refTrack, int refType)</CODE><BR> This method allows you to add a new track reference to a track.</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/movies/Track.html#copySettings(quicktime.std.movies.Track)">copySettings</A></B>(<A HREF="../../../quicktime/std/movies/Track.html">Track</A> dstTrack)</CODE><BR> This method copies many settings from one track to another, overwriting the destination settings.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../quicktime/std/movies/Track.html#copyUserData(quicktime.std.movies.Track, quicktime.std.movies.Track, int)">copyUserData</A></B>(<A HREF="../../../quicktime/std/movies/Track.html">Track</A> srcTrack, <A HREF="../../../quicktime/std/movies/Track.html">Track</A> destTrack, int copyRule)</CODE><BR> Copies the user data from the specified track into the destination track </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/movies/Track.html#copyUserDataFromTrack(quicktime.std.movies.Track, boolean)">copyUserDataFromTrack</A></B>(<A HREF="../../../quicktime/std/movies/Track.html">Track</A> srcTrack, boolean replace)</CODE><BR> Copies the user data from the specified track into this track </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/movies/Track.html#copyUserDataToTrack(quicktime.std.movies.Track, boolean)">copyUserDataToTrack</A></B>(<A HREF="../../../quicktime/std/movies/Track.html">Track</A> destTrack, boolean replace)</CODE><BR> Copies the user data in the track to the destination track </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/movies/Track.html#deleteReference(int, int)">deleteReference</A></B>(int refType, int index)</CODE><BR> This method allows you to remove a track reference from a track.</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/movies/Track.html#deleteSegment(int, int)">deleteSegment</A></B>(int startTime, int duration)</CODE><BR> This method removes a specified segment from a track.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static <A HREF="../../../quicktime/std/movies/Track.html">Track</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../quicktime/std/movies/Track.html#fromMedia(quicktime.std.movies.media.Media)">fromMedia</A></B>(<A HREF="../../../quicktime/std/movies/media/Media.html">Media</A> m)</CODE><BR> This method allows you to determine the track that uses a specified media.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static <A HREF="../../../quicktime/std/qtcomponents/MovieImportInfo.html">MovieImportInfo</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../quicktime/std/movies/Track.html#fromMovieImporterDataRef(quicktime.std.qtcomponents.MovieImporter, quicktime.std.movies.media.DataRef, quicktime.std.movies.Movie, quicktime.std.movies.Track, int, int)">fromMovieImporterDataRef</A></B>(<A HREF="../../../quicktime/std/qtcomponents/MovieImporter.html">MovieImporter</A> mi, <A HREF="../../../quicktime/std/movies/media/DataRef.html">DataRef</A> dataRef, <A HREF="../../../quicktime/std/movies/Movie.html">Movie</A> theMovie, <A HREF="../../../quicktime/std/movies/Track.html">Track</A> targetTrack, int atTime, int inFlags)</CODE><BR> Determines information revelant to the movie import component.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static <A HREF="../../../quicktime/std/qtcomponents/MovieImportInfo.html">MovieImportInfo</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../quicktime/std/movies/Track.html#fromMovieImporterFile(quicktime.std.qtcomponents.MovieImporter, quicktime.io.QTFile, quicktime.std.movies.Movie, quicktime.std.movies.Track, int, int)">fromMovieImporterFile</A></B>(<A HREF="../../../quicktime/std/qtcomponents/MovieImporter.html">MovieImporter</A> mi, <A HREF="../../../quicktime/io/QTFile.html">QTFile</A> fileIn, <A HREF="../../../quicktime/std/movies/Movie.html">Movie</A> theMovie, <A HREF="../../../quicktime/std/movies/Track.html">Track</A> targetTrack, int atTime, int inFlags)</CODE><BR> Allows the MovieToolbox to import data from a file using the movie import component.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static <A HREF="../../../quicktime/std/qtcomponents/MovieImportInfo.html">MovieImportInfo</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../quicktime/std/movies/Track.html#fromMovieImporterHandle(quicktime.std.qtcomponents.MovieImporter, quicktime.util.QTHandleRef, quicktime.std.movies.Movie, quicktime.std.movies.Track, int, int)">fromMovieImporterHandle</A></B>(<A HREF="../../../quicktime/std/qtcomponents/MovieImporter.html">MovieImporter</A> mi, <A HREF="../../../quicktime/util/QTHandleRef.html">QTHandleRef</A> dataRef, <A HREF="../../../quicktime/std/movies/Movie.html">Movie</A> theMovie, <A HREF="../../../quicktime/std/movies/Track.html">Track</A> targetTrack, int atTime, int inFlags)</CODE><BR> Allows the MovieToolbox to import data from a handle using the movie import component.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../../quicktime/std/movies/Track.html">Track</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../quicktime/std/movies/Track.html#getAlternate()">getAlternate</A></B>()</CODE><BR> This method allows your application to determine all the tracks in an alternate group.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../../quicktime/qd/Region.html">Region</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../quicktime/std/movies/Track.html#getBoundsRgn()">getBoundsRgn</A></B>()</CODE><BR> This method allows the media to limit the size of the track boundary rectangle.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../../quicktime/qd/Region.html">Region</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../quicktime/std/movies/Track.html#getClipRgn()">getClipRgn</A></B>()</CODE><BR> This method allows your application to determine the clipping region of a track.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> int</CODE></FONT></TD>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -