📄 char.1
字号:
.PU
.TH char 1 local
.SH NAME
char \- data compression using arithmetic coding
.SH SYNOPSIS
.ll +8
.B char
[\fB\-e\fR]
[\fB\-d\fR]
[\fB\-v\fR]
[\fB\-f\fR \fIfbits\fP]
[\fIfname\fP]
.ll -8
.SH DESCRIPTION
.I Char
is a compression program that uses arithmetic
coding and an adaptive zero-order
character-based model for compressing data.
The specified uncompressed file
.I fname
is compressed to standard output if
.B \-e
is specified. Similarly,
a compressed file
.I fname
is decompressed to standard output if
.B \-d
is specified.
If no
.I fname
is given, input is read from stdin.
The level of compression obtained depends upon the size of the file, and the
amount of redundancy,
but is unlikely to be as good as that obtained
by the companion programs
.I word
and
.I bits.
(This program is supplied purely for backwards compatability
with the original CACM arithmetic coding package.)
The program uses an arithmetic coding
scheme which allows frequency counts of up to 2^30.
The number of bits used for frequency counts is specified by
.I fbits.
If no compression option is selected,
.I char
detects whether the input file is compressed. If not, it will compress
the file to standard output. A magic number is encoded in compressed
files to allow detection of compressed files.
.ll -8
.SH OPTIONS
.TP
\f4\-e\fP
Force compression.
.TP
\f4\-d\fP
Force decompression.
.TP
\f4\-v\fP
Verbose mode. Display details about compression performance.
.TP
\f4\-f\fP
Use
.I fbits
bits for frequency counts. Larger values allow
more accurate modelling of large files and
faster compression and decompression if
the SHIFT_ADD option (in the Makefile) is used.
However larger values of
.I fbits
may also reduce overall compression efficiency because of
truncation effects at the coding stage, and because the recency
effect that is a by-product of count scaling is reduced.
.I Fbits
must be between 10 and 30. Default is 27.
.ll 8
.SH REFERENCE
``Arithmetic Coding Revisited'',
Alistair Moffat, Radford Neal, Ian H. Witten,
Proc. 1995 IEEE Data Compression Conference,
Snowbird, Utah, March 1995.
Contact alistair@cs.mu.oz.au for a copy.
.SH CONDITIONS
These programs are supplied free of charge for research purposes only,
and may not sold or incorporated into any commercial product. There is
ABSOLUTELY NO WARRANTY of any sort, nor any undertaking that they are
fit for ANY PURPOSE WHATSOEVER. Use them at your own risk. If you do
happen to find a bug, or have modifications to suggest, please report
the same to Alistair Moffat, alistair@cs.mu.oz.au. The copyright
notice included in the source code
and this statement of conditions must remain an integral
part of each and every copy made of these files.
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -