📄 multiplexer.html
字号:
<TD><B>Methods inherited from interface javax.media.<A HREF="../../javax/media/Controls.html">Controls</A></B></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><A HREF="../../javax/media/Controls.html#getControl(java.lang.String)">getControl</A>, <A HREF="../../javax/media/Controls.html#getControls()">getControls</A></CODE></TD></TR></TABLE> <P><!-- ============ FIELD DETAIL =========== --><!-- ========= CONSTRUCTOR DETAIL ======== --><!-- ============ 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="getSupportedOutputContentDescriptors(javax.media.Format[])"><!-- --></A><H3>getSupportedOutputContentDescriptors</H3><PRE>public <A HREF="../../javax/media/protocol/ContentDescriptor.html">ContentDescriptor</A>[] <B>getSupportedOutputContentDescriptors</B>(<A HREF="../../javax/media/Format.html">Format</A>[] inputs)</PRE><DL><DD>Lists the output content-descriptors that this <CODE>Multiplexer</CODE> supports.<DD><DL></DL></DD></DL><HR><A NAME="getSupportedInputFormats()"><!-- --></A><H3>getSupportedInputFormats</H3><PRE>public <A HREF="../../javax/media/Format.html">Format</A>[] <B>getSupportedInputFormats</B>()</PRE><DL><DD>Returns the input formats that this <CODE>Multiplexer</CODE> supports. The <CODE>Format</CODE> objects that are returned might be loosely defined. In this case, <code>setInputFormat</code> should be called with a more specific <CODE>Format</CODE> to make sure that the desired <CODE>Format</CODE> is supported by this <CODE>Multiplexer</CODE>.<DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>An array of <CODE>Format</CODE> objects. If no formats are supported, then an array of size zero is returned.</DL></DD></DL><HR><A NAME="setNumTracks(int)"><!-- --></A><H3>setNumTracks</H3><PRE>public int <B>setNumTracks</B>(int numTracks)</PRE><DL><DD>Sets the number of input tracks that the <CODE>Multiplexer</CODE> can expect to find in the input stream.<DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>numTracks</CODE> - The number of input tracks that the input stream contains.<DT><B>Returns:</B><DD>The number of input tracks actually set. This might be less than the number of tracks specified. If the number specified exceeds the number of tracks that the <CODE>Multiplexer</CODE> can handle, this method returns the maximum number of tracks supported by the <CODE>Multiplexer</CODE>.</DL></DD></DL><HR><A NAME="setInputFormat(javax.media.Format, int)"><!-- --></A><H3>setInputFormat</H3><PRE>public <A HREF="../../javax/media/Format.html">Format</A> <B>setInputFormat</B>(<A HREF="../../javax/media/Format.html">Format</A> format, int trackID)</PRE><DL><DD>Sets the input <CODE>Format</CODE> for the specified track.<DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>format</CODE> - The input <CODE>Format</CODE> of the specified track.<DD><CODE>trackID</CODE> - The index number of the track for which the <CODE>Format</CODE> is being set.<DT><B>Returns:</B><DD>The <CODE>Format</CODE> preferred by the <CODE>Multiplexer</CODE>. This might the same as the specified <CODE>Format</CODE>, a more well-defined <CODE>Format</CODE> than was specified, or null if the specified <CODE>Format</CODE> is not supported by the <CODE>Multiplexer</CODE> at all.</DL></DD></DL><HR><A NAME="process(javax.media.Buffer, int)"><!-- --></A><H3>process</H3><PRE>public int <B>process</B>(<A HREF="../../javax/media/Buffer.html">Buffer</A> buffer, int trackID)</PRE><DL><DD>Processes the input <CODE>Buffer</CODE> and multiplexes it with data from other tracks. The multiplexed output is sent to an output <code>DataSource</code>.<DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>buffer</CODE> - The <CODE>Buffer</CODE> of data to process.<DD><CODE>trackID</CODE> - The index number of the track to which the input <CODE>Buffer</CODE> belongs.<DT><B>Returns:</B><DD><CODE>BUFFER_PROCESSED_OK</CODE> If the processing is successful. Other possible return codes are defined in <CODE>PlugIn</CODE>.<DT><B>See Also: </B><DD><A HREF="../../javax/media/PlugIn.html"><CODE>PlugIn</CODE></A></DL></DD></DL><HR><A NAME="getDataOutput()"><!-- --></A><H3>getDataOutput</H3><PRE>public <A HREF="../../javax/media/protocol/DataSource.html">DataSource</A> <B>getDataOutput</B>()</PRE><DL><DD>Gets the output <code>DataSource</code> from this <CODE>Multiplexer</CODE>. The <CODE>DataSource</CODE> is returned in the connected state. The returned <CODE>DataSource</CODE> can be a push or pull <CODE>DataSource</CODE>--<code>Push[Pull]DataSource</code> or <code>Push[Pull]BufferDataSource</code>.<DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>The output <code>DataSource</code> for this <CODE>Multiplexer</CODE>.</DL></DD></DL><HR><A NAME="setContentDescriptor(javax.media.protocol.ContentDescriptor)"><!-- --></A><H3>setContentDescriptor</H3><PRE>public <A HREF="../../javax/media/protocol/ContentDescriptor.html">ContentDescriptor</A> <B>setContentDescriptor</B>(<A HREF="../../javax/media/protocol/ContentDescriptor.html">ContentDescriptor</A> outputContentDescriptor)</PRE><DL><DD>Sets the output content-type for this <CODE>Multiplexer</CODE>.<DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>outputContentDescriptor</CODE> - A <CODE>ContentDescriptor</CODE> that describes the content-type of the data to be output by the <CODE>Multiplexer</CODE>.<DT><B>Returns:</B><DD>The content descriptor that most closely matches the specified content descriptor or null if the specified content descriptor cannot be set.</DL></DD></DL><!-- ========= END OF CLASS DATA ========= --><HR><!-- ========== START OF NAVBAR ========== --><A NAME="navbar_bottom"><!-- --></A><TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0"><TR><TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"><A NAME="navbar_bottom_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 ID="NavBarFont1"><B>Overview</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT ID="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="package-tree.html"><FONT ID="NavBarFont1"><B>Tree</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../deprecated-list.html"><FONT ID="NavBarFont1"><B>Deprecated</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../index-all.html"><FONT ID="NavBarFont1"><B>Index</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../help-doc.html"><FONT ID="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="../../javax/media/MediaProxy.html"><B>PREV CLASS</B></A> <A HREF="../../javax/media/Owned.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="Multiplexer.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><font size="-1"> <a href="mailto:jmf-bugs@sun.com">Submit a bug or feature</a> <br>Copyright 1999-2000 Sun Microsystems, Inc. 901 San Antonio Road, Palo Alto, California, 94303, U.S.A. All Rights Reserved. See the <a href="spec-license.html">Specification License</a> for more details. <br>Sun, Sun Microsystems, and Java are trademarks or registered trademarks of Sun Microsystems, Inc. in the US and other countries.</font></BODY></HTML>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -