public class Encoder
extends java.lang.Object
| 限定符和类型 | 字段和说明 |
|---|---|
(专用程序包) int |
a_count |
(专用程序包) byte[] |
accum |
(专用程序包) static int |
BITS |
(专用程序包) boolean |
clear_flg |
(专用程序包) int |
ClearCode |
(专用程序包) int[] |
codetab |
(专用程序包) int |
cur_accum |
(专用程序包) int |
cur_bits |
private int |
curPixel |
private static int |
EOF |
(专用程序包) int |
EOFCode |
(专用程序包) int |
free_ent |
(专用程序包) int |
g_init_bits |
(专用程序包) int |
hsize |
(专用程序包) static int |
HSIZE |
(专用程序包) int[] |
htab |
private int |
imgH |
private int |
imgW |
private int |
initCodeSize |
(专用程序包) int[] |
masks |
(专用程序包) int |
maxbits |
(专用程序包) int |
maxcode |
(专用程序包) int |
maxmaxcode |
(专用程序包) int |
n_bits |
private byte[] |
pixAry |
private int |
remaining |
| 构造器和说明 |
|---|
Encoder(int width,
int height,
byte[] pixels,
int color_depth) |
| 限定符和类型 | 方法和说明 |
|---|---|
(专用程序包) void |
char_out(byte c,
java.io.OutputStream outs) |
(专用程序包) void |
cl_block(java.io.OutputStream outs) |
(专用程序包) void |
cl_hash(int hsize) |
(专用程序包) void |
compress(int init_bits,
java.io.OutputStream outs) |
(专用程序包) void |
encode(java.io.OutputStream os) |
(专用程序包) void |
flush_char(java.io.OutputStream outs) |
(专用程序包) int |
MAXCODE(int n_bits) |
private int |
nextPixel() |
(专用程序包) void |
output(int code,
java.io.OutputStream outs) |
private static final int EOF
private int imgW
private int imgH
private byte[] pixAry
private int initCodeSize
private int remaining
private int curPixel
static final int BITS
static final int HSIZE
int n_bits
int maxbits
int maxcode
int maxmaxcode
int[] htab
int[] codetab
int hsize
int free_ent
boolean clear_flg
int g_init_bits
int ClearCode
int EOFCode
int cur_accum
int cur_bits
int[] masks
int a_count
byte[] accum
Encoder(int width,
int height,
byte[] pixels,
int color_depth)
width - 宽度height - 高度pixels - 像素color_depth - 颜色void char_out(byte c,
java.io.OutputStream outs)
throws java.io.IOException
c - 字节outs - 输出流java.io.IOException - IO异常void cl_block(java.io.OutputStream outs)
throws java.io.IOException
outs - 输出流java.io.IOException - IO异常void cl_hash(int hsize)
hsize - intvoid compress(int init_bits,
java.io.OutputStream outs)
throws java.io.IOException
init_bits - intouts - 输出流java.io.IOException - IO异常void encode(java.io.OutputStream os)
throws java.io.IOException
os - 输出流java.io.IOException - IO异常void flush_char(java.io.OutputStream outs)
throws java.io.IOException
outs - 输出流java.io.IOException - IO异常final int MAXCODE(int n_bits)
n_bits - intprivate int nextPixel()
void output(int code,
java.io.OutputStream outs)
throws java.io.IOException
code - intouts - 输出流java.io.IOException - IO异常Copyright © 2023. All rights reserved.