screenvideopacket.html

来自「java和flash接口编程」· HTML 代码 · 共 576 行 · 第 1/2 页

HTML
576
字号

<A NAME="ScreenVideoPacket(int, int, int, int, com.anotherbigidea.flash.video.ScreenVideoImageBlock[])"><!-- --></A><H3>
ScreenVideoPacket</H3>
<PRE>
public <B>ScreenVideoPacket</B>(int&nbsp;imageWidth,
                         int&nbsp;imageHeight,
                         int&nbsp;blockWidth,
                         int&nbsp;blockHeight,
                         <A HREF="../../../../com/anotherbigidea/flash/video/ScreenVideoImageBlock.html" title="class in com.anotherbigidea.flash.video">ScreenVideoImageBlock</A>[]&nbsp;imageBlocks)</PRE>
<DL>
<DL>
<DT><B>Parameters:</B><DD><CODE>imageWidth</CODE> - in pixels<DD><CODE>imageHeight</CODE> - in pixels<DD><CODE>blockWidth</CODE> - 16 to 256 in steps of 16<DD><CODE>blockHeight</CODE> - 16 to 256 in steps of 16<DD><CODE>imageBlocks</CODE> - image data or delta data, top-left to bottom-right</DL>
</DL>
<HR>

<A NAME="ScreenVideoPacket(com.anotherbigidea.io.InStream)"><!-- --></A><H3>
ScreenVideoPacket</H3>
<PRE>
public <B>ScreenVideoPacket</B>(<A HREF="../../../../com/anotherbigidea/io/InStream.html" title="class in com.anotherbigidea.io">InStream</A>&nbsp;in)
                  throws java.io.IOException</PRE>
<DL>
<DD>Parse a packet from an input stream.
<P>
<DL>

<DT><B>Throws:</B>
<DD><CODE>java.io.IOException</CODE></DL>
</DL>

<!-- ============ METHOD DETAIL ========== -->

<A NAME="method_detail"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
<B>Method Detail</B></FONT></TH>
</TR>
</TABLE>

<A NAME="getBlockHeight()"><!-- --></A><H3>
getBlockHeight</H3>
<PRE>
public int <B>getBlockHeight</B>()</PRE>
<DL>
<DD><DL>
</DL>
</DD>
</DL>
<HR>

<A NAME="setBlockHeight(int)"><!-- --></A><H3>
setBlockHeight</H3>
<PRE>
public void <B>setBlockHeight</B>(int&nbsp;blockHeight)</PRE>
<DL>
<DD><DL>
</DL>
</DD>
</DL>
<HR>

<A NAME="getBlockWidth()"><!-- --></A><H3>
getBlockWidth</H3>
<PRE>
public int <B>getBlockWidth</B>()</PRE>
<DL>
<DD><DL>
</DL>
</DD>
</DL>
<HR>

<A NAME="setBlockWidth(int)"><!-- --></A><H3>
setBlockWidth</H3>
<PRE>
public void <B>setBlockWidth</B>(int&nbsp;blockWidth)</PRE>
<DL>
<DD><DL>
</DL>
</DD>
</DL>
<HR>

<A NAME="getImageHeight()"><!-- --></A><H3>
getImageHeight</H3>
<PRE>
public int <B>getImageHeight</B>()</PRE>
<DL>
<DD><DL>
</DL>
</DD>
</DL>
<HR>

<A NAME="setImageHeight(int)"><!-- --></A><H3>
setImageHeight</H3>
<PRE>
public void <B>setImageHeight</B>(int&nbsp;imageHeight)</PRE>
<DL>
<DD><DL>
</DL>
</DD>
</DL>
<HR>

<A NAME="getImageWidth()"><!-- --></A><H3>
getImageWidth</H3>
<PRE>
public int <B>getImageWidth</B>()</PRE>
<DL>
<DD><DL>
</DL>
</DD>
</DL>
<HR>

<A NAME="setImageWidth(int)"><!-- --></A><H3>
setImageWidth</H3>
<PRE>
public void <B>setImageWidth</B>(int&nbsp;imageWidth)</PRE>
<DL>
<DD><DL>
</DL>
</DD>
</DL>
<HR>

<A NAME="getImageBlocks()"><!-- --></A><H3>
getImageBlocks</H3>
<PRE>
public <A HREF="../../../../com/anotherbigidea/flash/video/ScreenVideoImageBlock.html" title="class in com.anotherbigidea.flash.video">ScreenVideoImageBlock</A>[] <B>getImageBlocks</B>()</PRE>
<DL>
<DD><DL>
</DL>
</DD>
</DL>
<HR>

<A NAME="setImageBlocks(com.anotherbigidea.flash.video.ScreenVideoImageBlock[])"><!-- --></A><H3>
setImageBlocks</H3>
<PRE>
public void <B>setImageBlocks</B>(<A HREF="../../../../com/anotherbigidea/flash/video/ScreenVideoImageBlock.html" title="class in com.anotherbigidea.flash.video">ScreenVideoImageBlock</A>[]&nbsp;imageBlocks)</PRE>
<DL>
<DD><DL>
</DL>
</DD>
</DL>
<HR>

<A NAME="write(com.anotherbigidea.io.OutStream)"><!-- --></A><H3>
write</H3>
<PRE>
public void <B>write</B>(<A HREF="../../../../com/anotherbigidea/io/OutStream.html" title="class in com.anotherbigidea.io">OutStream</A>&nbsp;out)
           throws java.io.IOException</PRE>
<DL>
<DD>Write the packet in SWF format
<P>
<DD><DL>

<DT><B>Throws:</B>
<DD><CODE>java.io.IOException</CODE></DL>
</DD>
</DL>
<HR>

<A NAME="toBytes()"><!-- --></A><H3>
toBytes</H3>
<PRE>
public byte[] <B>toBytes</B>()
               throws java.io.IOException</PRE>
<DL>
<DD>Get the bytes of the packet in SWF format
<P>
<DD><DL>

<DT><B>Throws:</B>
<DD><CODE>java.io.IOException</CODE></DL>
</DD>
</DL>
<HR>

<A NAME="makeTestPattern()"><!-- --></A><H3>
makeTestPattern</H3>
<PRE>
public static <A HREF="../../../../com/anotherbigidea/flash/video/ScreenVideoPacket.html" title="class in com.anotherbigidea.flash.video">ScreenVideoPacket</A> <B>makeTestPattern</B>()</PRE>
<DL>
<DD>Make a 288*256 test pattern consisting of blue and yellow blocks
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>

<A NAME="makeTestPatternDelta(int)"><!-- --></A><H3>
makeTestPatternDelta</H3>
<PRE>
public static <A HREF="../../../../com/anotherbigidea/flash/video/ScreenVideoPacket.html" title="class in com.anotherbigidea.flash.video">ScreenVideoPacket</A> <B>makeTestPatternDelta</B>(int&nbsp;index)</PRE>
<DL>
<DD>Make a 288*256 test pattern delta consisting of a green delta block at the given index
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>

<A NAME="main(java.lang.String[])"><!-- --></A><H3>
main</H3>
<PRE>
public static void <B>main</B>(java.lang.String[]&nbsp;args)
                 throws java.io.IOException</PRE>
<DL>
<DD>By way of a test and a code example.. writes a SWF movie "ScreenVideoPacketTest.swf" to the current dir containing the test pattern and a green square added each frame.
<P>
<DD><DL>

<DT><B>Throws:</B>
<DD><CODE>java.io.IOException</CODE></DL>
</DD>
</DL>
<!-- ========= END OF CLASS DATA ========= -->
<HR>


<!-- ======= START OF BOTTOM NAVBAR ====== -->
<A NAME="navbar_bottom"><!-- --></A>
<A HREF="#skip-navbar_bottom" title="Skip navigation links"></A>
<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
<TR>
<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
<A NAME="navbar_bottom_firstrow"><!-- --></A>
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
  <TR ALIGN="center" VALIGN="top">
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="class-use/ScreenVideoPacket.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
  </TR>
</TABLE>
</TD>
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
</EM>
</TD>
</TR>

<TR>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
&nbsp;<A HREF="../../../../com/anotherbigidea/flash/video/ScreenVideoImageBlock.html" title="class in com.anotherbigidea.flash.video"><B>PREV CLASS</B></A>&nbsp;
&nbsp;<A HREF="../../../../com/anotherbigidea/flash/video/ScreenVideoStream.html" title="class in com.anotherbigidea.flash.video"><B>NEXT CLASS</B></A></FONT></TD>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
  <A HREF="../../../../index.html?com/anotherbigidea/flash/video/ScreenVideoPacket.html" target="_top"><B>FRAMES</B></A>  &nbsp;
&nbsp;<A HREF="ScreenVideoPacket.html" target="_top"><B>NO FRAMES</B></A>  &nbsp;
&nbsp;<SCRIPT type="text/javascript">
  <!--
  if(window==top) {
    document.writeln('<A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>');
  }
  //-->
</SCRIPT>
<NOSCRIPT>
  <A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>
</NOSCRIPT>


</FONT></TD>
</TR>
<TR>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
  SUMMARY:&nbsp;NESTED&nbsp;|&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
DETAIL:&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
</TR>
</TABLE>
<A NAME="skip-navbar_bottom"></A>
<!-- ======== END OF BOTTOM NAVBAR ======= -->

<HR>
<i>Copyright &#169; 2000-2005 David N Main. All Rights Reserved.</i>
</BODY>
</HTML>

⌨️ 快捷键说明

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