📄 ccittg4encoder.html
字号:
</DL>
<HR>
<A NAME="byteTable"><!-- --></A><H3>
byteTable</H3>
<PRE>
private static byte[] <B>byteTable</B></PRE>
<DL>
<DL>
</DL>
</DL>
<HR>
<A NAME="termCodesBlack"><!-- --></A><H3>
termCodesBlack</H3>
<PRE>
private static int[] <B>termCodesBlack</B></PRE>
<DL>
<DD>Terminating codes for black runs.
<P>
<DL>
</DL>
</DL>
<HR>
<A NAME="termCodesWhite"><!-- --></A><H3>
termCodesWhite</H3>
<PRE>
private static int[] <B>termCodesWhite</B></PRE>
<DL>
<DD>Terminating codes for white runs.
<P>
<DL>
</DL>
</DL>
<HR>
<A NAME="makeupCodesBlack"><!-- --></A><H3>
makeupCodesBlack</H3>
<PRE>
private static int[] <B>makeupCodesBlack</B></PRE>
<DL>
<DD>Make-up codes for black runs.
<P>
<DL>
</DL>
</DL>
<HR>
<A NAME="makeupCodesWhite"><!-- --></A><H3>
makeupCodesWhite</H3>
<PRE>
private static int[] <B>makeupCodesWhite</B></PRE>
<DL>
<DD>Make-up codes for white runs.
<P>
<DL>
</DL>
</DL>
<HR>
<A NAME="passMode"><!-- --></A><H3>
passMode</H3>
<PRE>
private static int[] <B>passMode</B></PRE>
<DL>
<DD>Pass mode table.
<P>
<DL>
</DL>
</DL>
<HR>
<A NAME="vertMode"><!-- --></A><H3>
vertMode</H3>
<PRE>
private static int[] <B>vertMode</B></PRE>
<DL>
<DD>Vertical mode table.
<P>
<DL>
</DL>
</DL>
<HR>
<A NAME="horzMode"><!-- --></A><H3>
horzMode</H3>
<PRE>
private static int[] <B>horzMode</B></PRE>
<DL>
<DD>Horizontal mode table.
<P>
<DL>
</DL>
</DL>
<HR>
<A NAME="termCodes"><!-- --></A><H3>
termCodes</H3>
<PRE>
private static int[][] <B>termCodes</B></PRE>
<DL>
<DD>Black and white terminating code table.
<P>
<DL>
</DL>
</DL>
<HR>
<A NAME="makeupCodes"><!-- --></A><H3>
makeupCodes</H3>
<PRE>
private static int[][] <B>makeupCodes</B></PRE>
<DL>
<DD>Black and white make-up code table.
<P>
<DL>
</DL>
</DL>
<HR>
<A NAME="pass"><!-- --></A><H3>
pass</H3>
<PRE>
private static int[][] <B>pass</B></PRE>
<DL>
<DD>Black and white pass mode table.
<P>
<DL>
</DL>
</DL>
<HR>
<A NAME="vert"><!-- --></A><H3>
vert</H3>
<PRE>
private static int[][] <B>vert</B></PRE>
<DL>
<DD>Black and white vertical mode table.
<P>
<DL>
</DL>
</DL>
<HR>
<A NAME="horz"><!-- --></A><H3>
horz</H3>
<PRE>
private static int[][] <B>horz</B></PRE>
<DL>
<DD>Black and white horizontal mode table.
<P>
<DL>
</DL>
</DL>
<HR>
<A NAME="bits"><!-- --></A><H3>
bits</H3>
<PRE>
private int <B>bits</B></PRE>
<DL>
<DD>Output bit buffer.
<P>
<DL>
</DL>
</DL>
<HR>
<A NAME="ndex"><!-- --></A><H3>
ndex</H3>
<PRE>
private int <B>ndex</B></PRE>
<DL>
<DD>Number of bits in the output bit buffer.
<P>
<DL>
</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="CCITTG4Encoder()"><!-- --></A><H3>
CCITTG4Encoder</H3>
<PRE>
public <B>CCITTG4Encoder</B>()</PRE>
<DL>
<DD>Constructs a <code>TIFFFaxEncoder</code> for CCITT bilevel encoding.
<P>
</DL>
<!-- ============ 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="compress(byte[], int, int)"><!-- --></A><H3>
compress</H3>
<PRE>
public static byte[] <B>compress</B>(byte[] data, int width, int height)</PRE>
<DL>
<DD><DL>
</DL>
</DD>
</DL>
<HR>
<A NAME="nextState(byte[], int, int, int)"><!-- --></A><H3>
nextState</H3>
<PRE>
private int <B>nextState</B>(byte[] data, int base, int bitOffset, int maxOffset)</PRE>
<DL>
<DD>Return min of <code>maxOffset</code> or offset of first pixel different from pixel at <code>bitOffset</code>.
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>
<A NAME="initBitBuf()"><!-- --></A><H3>
initBitBuf</H3>
<PRE>
private void <B>initBitBuf</B>()</PRE>
<DL>
<DD>Initialize bit buffer machinery.
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>
<A NAME="add1DBits(byte[], int, int, int)"><!-- --></A><H3>
add1DBits</H3>
<PRE>
private int <B>add1DBits</B>(byte[] buf, int where, int count, int color)</PRE>
<DL>
<DD>Get code for run and add to compressed bitstream.
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>
<A NAME="add2DBits(byte[], int, int[][], int)"><!-- --></A><H3>
add2DBits</H3>
<PRE>
private int <B>add2DBits</B>(byte[] buf, int where, int[][] mode, int entry)</PRE>
<DL>
<DD>Place entry from mode table into compressed bitstream.
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>
<A NAME="addEOL(boolean, boolean, boolean, byte[], int)"><!-- --></A><H3>
addEOL</H3>
<PRE>
private int <B>addEOL</B>(boolean is1DMode, boolean addFill, boolean add1, byte[] buf, int where)</PRE>
<DL>
<DD>Add an End-of-Line (EOL == 0x001) to the compressed bitstream with optional byte alignment.
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>
<A NAME="addEOFB(byte[], int)"><!-- --></A><H3>
addEOFB</H3>
<PRE>
private int <B>addEOFB</B>(byte[] buf, int where)</PRE>
<DL>
<DD>Add an End-of-Facsimile-Block (EOFB == 0x001001) to the compressed bitstream.
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>
<A NAME="encodeT6(byte[], int, int)"><!-- --></A><H3>
encodeT6</H3>
<PRE>
public byte[] <B>encodeT6</B>(byte[] data, int width, int height)</PRE>
<DL>
<DD>Encode a buffer of data using CCITT T.6 Compression also known as Group 4 facsimile compression.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>data</CODE> - The row of data to compress.<DD><CODE>width</CODE> - Number of bits in the row.<DD><CODE>height</CODE> - Number of rows in the buffer.<DT><B>Returns:</B><DD>The number of bytes saved in the compressed data array.</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=3 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 CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="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 CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../help-doc.html"><FONT CLASS="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="../../../../com/lowagie/text/pdf/ByteBuffer.html"><B>PREV CLASS</B></A>
<A HREF="../../../../com/lowagie/text/pdf/CJKFont.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="CCITTG4Encoder.html" TARGET="_top"><B>NO FRAMES</B></A>
<SCRIPT> <!-- if(window==top) { document.writeln('<A HREF="../../../../allclasses-noframe.html" TARGET=""><B>All Classes</B></A>'); } //--></SCRIPT><NOSCRIPT><A HREF="../../../../allclasses-noframe.html" TARGET=""><B>All Classes</B></A></NOSCRIPT></FONT></TD>
</TR>
<TR>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
SUMMARY: NESTED | <A HREF="#field_summary">FIELD</A> | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
DETAIL: <A HREF="#field_detail">FIELD</A> | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD>
</TR>
</TABLE>
<!-- =========== END OF NAVBAR =========== -->
<HR>
</BODY>
</HTML>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -