⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 rgbformat.html

📁 JMF原版英文说明文档
💻 HTML
📖 第 1 页 / 共 3 页
字号:
<TD><CODE><B><A HREF="../../../javax/media/format/RGBFormat.html#clone()">clone</A></B>()</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Creates a clone of this <CODE>RGBFormat</CODE>.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>protected &nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../javax/media/format/RGBFormat.html#copy(javax.media.Format)">copy</A></B>(<A HREF="../../../javax/media/Format.html">Format</A>&nbsp;f)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Copies  the attributes from the specified <CODE>Format</CODE> into  this <CODE>RGBFormat</CODE>.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;boolean</CODE></FONT></TD><TD><CODE><B><A HREF="../../../javax/media/format/RGBFormat.html#equals(java.lang.Object)">equals</A></B>(java.lang.Object&nbsp;format)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Compares the specified <CODE>Format</CODE> with this <code>RGBFormat</code>.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;int</CODE></FONT></TD><TD><CODE><B><A HREF="../../../javax/media/format/RGBFormat.html#getBitsPerPixel()">getBitsPerPixel</A></B>()</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Gets the number of bits required per pixel of data.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;int</CODE></FONT></TD><TD><CODE><B><A HREF="../../../javax/media/format/RGBFormat.html#getBlueMask()">getBlueMask</A></B>()</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Gets the mask for the blue component.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;int</CODE></FONT></TD><TD><CODE><B><A HREF="../../../javax/media/format/RGBFormat.html#getEndian()">getEndian</A></B>()</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Gets the endian ordering of the data for unpacked 16-bit data.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;int</CODE></FONT></TD><TD><CODE><B><A HREF="../../../javax/media/format/RGBFormat.html#getFlipped()">getFlipped</A></B>()</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Checks whether or not the video image is vertically flipped.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;int</CODE></FONT></TD><TD><CODE><B><A HREF="../../../javax/media/format/RGBFormat.html#getGreenMask()">getGreenMask</A></B>()</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Gets the mask for the green component.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;int</CODE></FONT></TD><TD><CODE><B><A HREF="../../../javax/media/format/RGBFormat.html#getLineStride()">getLineStride</A></B>()</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Gets the line stride--the number of array elements between adjacent rows of pixels.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;int</CODE></FONT></TD><TD><CODE><B><A HREF="../../../javax/media/format/RGBFormat.html#getPixelStride()">getPixelStride</A></B>()</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Gets the pixel stride--the number of array elements between adjacent pixels.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;int</CODE></FONT></TD><TD><CODE><B><A HREF="../../../javax/media/format/RGBFormat.html#getRedMask()">getRedMask</A></B>()</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Gets the mask for the red component.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;<A HREF="../../../javax/media/Format.html">Format</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../javax/media/format/RGBFormat.html#intersects(javax.media.Format)">intersects</A></B>(<A HREF="../../../javax/media/Format.html">Format</A>&nbsp;format)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Finds the attributes shared by two matching <CODE>Format</CODE> objects.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;boolean</CODE></FONT></TD><TD><CODE><B><A HREF="../../../javax/media/format/RGBFormat.html#matches(javax.media.Format)">matches</A></B>(<A HREF="../../../javax/media/Format.html">Format</A>&nbsp;format)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Checks whether or not the specified <CODE>Format</CODE> <EM>matches</EM>  this <CODE>RGBFormat</CODE>.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;<A HREF="../../../javax/media/Format.html">Format</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../javax/media/format/RGBFormat.html#relax()">relax</A></B>()</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Generate a format that's less restrictive than this format but contains the basic attributes that will make this resulting format  useful for format matching.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;java.lang.String</CODE></FONT></TD><TD><CODE><B><A HREF="../../../javax/media/format/RGBFormat.html#toString()">toString</A></B>()</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Gets a <CODE>String</CODE> representation of the attributes of this  <CODE>RGBFormat</CODE>.</TD></TR></TABLE>&nbsp;<A NAME="methods_inherited_from_class_javax.media.format.VideoFormat"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"><TD><B>Methods inherited from class javax.media.format.<A HREF="../../../javax/media/format/VideoFormat.html">VideoFormat</A></B></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><A HREF="../../../javax/media/format/VideoFormat.html#getFrameRate()">getFrameRate</A>, <A HREF="../../../javax/media/format/VideoFormat.html#getMaxDataLength()">getMaxDataLength</A>, <A HREF="../../../javax/media/format/VideoFormat.html#getSize()">getSize</A></CODE></TD></TR></TABLE>&nbsp;<A NAME="methods_inherited_from_class_javax.media.Format"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"><TD><B>Methods inherited from class javax.media.<A HREF="../../../javax/media/Format.html">Format</A></B></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><A HREF="../../../javax/media/Format.html#getDataType()">getDataType</A>, <A HREF="../../../javax/media/Format.html#getEncoding()">getEncoding</A></CODE></TD></TR></TABLE>&nbsp;<A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"><TD><B>Methods inherited from class java.lang.Object</B></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE>finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait</CODE></TD></TR></TABLE>&nbsp;<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="redMask"><!-- --></A><H3>redMask</H3><PRE>protected int <B>redMask</B></PRE><DL><DD>Mask value for the Red component.</DL><HR><A NAME="greenMask"><!-- --></A><H3>greenMask</H3><PRE>protected int <B>greenMask</B></PRE><DL><DD>Mask value for the Green component.</DL><HR><A NAME="blueMask"><!-- --></A><H3>blueMask</H3><PRE>protected int <B>blueMask</B></PRE><DL><DD>Mask value for the Blue component.</DL><HR><A NAME="bitsPerPixel"><!-- --></A><H3>bitsPerPixel</H3><PRE>protected int <B>bitsPerPixel</B></PRE><DL><DD>The number of bits required to represent a pixel, including all three color components.</DL><HR><A NAME="pixelStride"><!-- --></A><H3>pixelStride</H3><PRE>protected int <B>pixelStride</B></PRE><DL><DD>Increment value of the array index from one pixel to the next.</DL><HR><A NAME="lineStride"><!-- --></A><H3>lineStride</H3><PRE>protected int <B>lineStride</B></PRE><DL><DD>Increment value of the array index from the first pixel on line n to the first pixel on line n+1.</DL><HR><A NAME="flipped"><!-- --></A><H3>flipped</H3><PRE>protected int <B>flipped</B></PRE><DL><DD>Indicates whether or not the lines in the video frame are flipped vertically  (upside down).</DL><HR><A NAME="endian"><!-- --></A><H3>endian</H3><PRE>protected int <B>endian</B></PRE><DL><DD>Endian ordering of the data where applicable</DL><HR><A NAME="BIG_ENDIAN"><!-- --></A><H3>BIG_ENDIAN</H3><PRE>public static final int <B>BIG_ENDIAN</B></PRE><DL></DL><HR><A NAME="LITTLE_ENDIAN"><!-- --></A><H3>LITTLE_ENDIAN</H3><PRE>public static final int <B>LITTLE_ENDIAN</B></PRE><DL></DL><!-- ========= CONSTRUCTOR DETAIL ======== --><A NAME="constructor_detail"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=1><FONT SIZE="+2"><B>Constructor Detail</B></FONT></TD></TR></TABLE><A NAME="RGBFormat()"><!-- --></A><H3>RGBFormat</H3><PRE>public <B>RGBFormat</B>()</PRE><DL><DD>Constructs a default <CODE>RGBFormat</CODE>.</DL><HR><A NAME="RGBFormat(java.awt.Dimension, int, java.lang.Class, float, int, int, int, int)"><!-- --></A><H3>RGBFormat</H3><PRE>public <B>RGBFormat</B>(java.awt.Dimension&nbsp;size,                 int&nbsp;maxDataLength,                 java.lang.Class&nbsp;dataType,                 float&nbsp;frameRate,                 int&nbsp;bitsPerPixel,                 int&nbsp;red,                 int&nbsp;green,                 int&nbsp;blue)</PRE><DL><DD>Constructs an <CODE>RGBFormat</CODE> object with the specified properties.  The pixel stride is initialized to the default for the specified data type and bits per pixel. The line stride is initialized using the default pixel stride and specified frame width.  The image is not flipped and the endian is LITTLE_ENDIAN.<DD><DL><DT><B>Parameters:</B><DD><CODE>size</CODE> - A <CODE>Dimension</CODE> that specifies the frame size.<DD><CODE>maxDataLength</CODE> - The maximum length of a data chunk.<DD><CODE>dataType</CODE> - The type of the data. For example, byte array.<DD><CODE>frameRate</CODE> - The frame rate.<DD><CODE>bitsPerPixel</CODE> - The number of bits representing a pixel.<DD><CODE>red</CODE> - The mask for the red color component.<DD><CODE>green</CODE> - The mask for the green color component.<DD><CODE>blue</CODE> - The mask for the blue color component.</DL></DD></DL><HR>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -