亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? paq8o8.cpp

?? 匯編語言寫的壓縮算法
?? CPP
?? 第 1 頁 / 共 5 頁
字號:
/* paq8o8 file compressor/archiver.  Release by KZ, Oct. 15, 2007

    Copyright (C) 2007 Matt Mahoney, Serge Osnach, Alexander Ratushnyak,
    Bill Pettis, Przemyslaw Skibinski, Matthew Fite, wowtiger, Andrew Paterson,
    Jan Ondrus, Andreas Morphis, Pavel L. Holoborodko, KZ.

    LICENSE

    This program is free software; you can redistribute it and/or
    modify it under the terms of the GNU General Public License as
    published by the Free Software Foundation; either version 2 of
    the License, or (at your option) any later version.

    This program is distributed in the hope that it will be useful, but
    WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
    General Public License for more details at
    Visit <http://www.gnu.org/copyleft/gpl.html>.

To install and use in Windows:

- To install, put paq8o8.exe or a shortcut to it on your desktop.
- To compress a file or folder, drop it on the paq8o8 icon.
- To decompress, drop a .paq8o8 file on the icon.

A .paq8o8 extension is added for compression, removed for decompression.
The output will go in the same folder as the input.

While paq8o8 is working, a command window will appear and report
progress.  When it is done you can close the window by pressing
ENTER or clicking [X]. 


COMMAND LINE INTERFACE

- To install, put paq8o8.exe somewhere in your PATH.
- To compress:      paq8o8 [-N] file1 [file2...]
- To decompress:    paq8o8 [-d] file1.paq8o8 [dir2]
- To view contents: more < file1.paq8o8

The compressed output file is named by adding ".paq8o8" extension to
the first named file (file1.paq8o8).  Each file that exists will be
added to the archive and its name will be stored without a path.
The option -N specifies a compression level ranging from -0
(fastest) to -9 (smallest).  The default is -5.  If there is
no option and only one file, then the program will pause when
finished until you press the ENTER key (to support drag and drop).
If file1.paq8o8 exists then it is overwritten.

If the first named file ends in ".paq8o8" then it is assumed to be
an archive and the files within are extracted to the same directory
as the archive unless a different directory (dir2) is specified.
The -d option forces extraction even if there is not a ".paq8o8"
extension.  If any output file already exists, then it is compared
with the archive content and the first byte that differs is reported.
No files are overwritten or deleted.  If there is only one argument
(no -d or dir2) then the program will pause when finished until
you press ENTER.

For compression, if any named file is actually a directory, then all
files and subdirectories are compressed, preserving the directory
structure, except that empty directories are not stored, and file
attributes (timestamps, permissions, etc.) are not preserved.
During extraction, directories are created as needed.  For example:

  paq8o8 -4 c:\tmp\foo bar

compresses foo and bar (if they exist) to c:\tmp\foo.paq8o8 at level 4.

  paq8o8 -d c:\tmp\foo.paq8o8 .

extracts foo and compares bar in the current directory.  If foo and bar
are directories then their contents are extracted/compared.

There are no commands to update an existing archive or to extract
part of an archive.  Files and archives larger than 2GB are not
supported (but might work on 64-bit machines, not tested).
File names with nonprintable characters are not supported (spaces
are OK).


TO COMPILE

There are 2 files: paq8o8.cpp (C++) and paq7asm.asm (NASM/YASM).
paq7asm.asm is the same as in paq7 and paq8x.  paq8o8.cpp recognizes the
following compiler options:

  -DWINDOWS           (to compile in Windows)
  -DUNIX              (to compile in Unix, Linux, Solairs, MacOS/Darwin, etc)
  -DNOASM             (to replace paq7asm.asm with equivalent C++)
  -DDEFAULT_OPTION=N  (to change the default compression level from 5 to N).

If you compile without -DWINDOWS or -DUNIX, you can still compress files,
but you cannot compress directories or create them during extraction.
You can extract directories if you manually create the empty directories
first.

Use -DEFAULT_OPTION=N to change the default compression level to support
drag and drop on machines with less than 256 MB of memory.  Use
-DDEFAULT_OPTION=4 for 128 MB, 3 for 64 MB, 2 for 32 MB, etc.

Use -DNOASM for non x86-32 machines, or older than a Pentium-MMX (about
1997), or if you don't have NASM or YASM to assemble paq7asm.asm.  The
program will still work but it will be slower.  For NASM in Windows,
use the options "--prefix _" and either "-f win32" or "-f obj" depending
on your C++ compiler.  In Linux, use "-f elf".

Recommended compiler commands and optimizations:

  MINGW g++:
    nasm paq7asm.asm -f win32 --prefix _
    g++ paq8o8.cpp -DWINDOWS -O2 -Os -s -march=pentiumpro -fomit-frame-pointer -o paq8o8.exe paq7asm.obj

  Borland:
    nasm paq7asm.asm -f obj --prefix _
    bcc32 -DWINDOWS -O -w-8027 paq8o8.cpp paq7asm.obj

  Mars:
    nasm paq7asm.asm -f obj --prefix _
    dmc -DWINDOWS -Ae -O paq8o8.cpp paq7asm.obj

  UNIX/Linux (PC):
    nasm -f elf paq7asm.asm
    g++ paq8o8.cpp -DUNIX -O2 -Os -s -march=pentiumpro -fomit-frame-pointer -o paq8o8 paq7asm.o

  Non PC (e.g. PowerPC under MacOS X)
    g++ paq8o8.cpp -O2 -DUNIX -DNOASM -s -o paq8o8

MinGW produces faster executables than Borland or Mars, but Intel 9
is about 4% faster than MinGW).


ARCHIVE FILE FORMAT

An archive has the following format.  It is intended to be both
human and machine readable.  The header ends with CTRL-Z (Windows EOF)
so that the binary compressed data is not displayed on the screen.

  paq8o8 -N CR LF
  size TAB filename CR LF
  size TAB filename CR LF
  ...
  CTRL-Z
  compressed binary data

-N is the option (-0 to -9), even if a default was used.
Plain file names are stored without a path.  Files in compressed
directories are stored with path relative to the compressed directory
(using UNIX style forward slashes "/").  For example, given these files:

  123 C:\dir1\file1.txt
  456 C:\dir2\file2.txt

Then

  paq8o8 archive \dir1\file1.txt \dir2

will create archive.paq8o8 with the header:

  paq8o8 -5
  123     file1.txt
  456     dir2/file2.txt

The command:

  paq8o8 archive.paq8o8 C:\dir3

will create the files:

  C:\dir3\file1.txt
  C:\dir3\dir2\file2.txt

Decompression will fail if the first 7 bytes are not "paq8o8 -".  Sizes
are stored as decimal numbers.  CR, LF, TAB, CTRL-Z are ASCII codes
13, 10, 9, 26 respectively.


ARITHMETIC CODING

The binary data is arithmetic coded as the shortest base 256 fixed point
number x = SUM_i x_i 256^-1-i such that p(<y) <= x < p(<=y), where y is the
input string, x_i is the i'th coded byte, p(<y) (and p(<=y)) means the
probability that a string is lexicographcally less than (less than
or equal to) y according to the model, _ denotes subscript, and ^ denotes
exponentiation.

The model p(y) for y is a conditional bit stream,
p(y) = PROD_j p(y_j | y_0..j-1) where y_0..j-1 denotes the first j
bits of y, and y_j is the next bit.  Compression depends almost entirely
on the ability to predict the next bit accurately.


MODEL MIXING

paq8o8 uses a neural network to combine a large number of models.  The
i'th model independently predicts
p1_i = p(y_j = 1 | y_0..j-1), p0_i = 1 - p1_i.
The network computes the next bit probabilty

  p1 = squash(SUM_i w_i t_i), p0 = 1 - p1                        (1)

where t_i = stretch(p1_i) is the i'th input, p1_i is the prediction of
the i'th model, p1 is the output prediction, stretch(p) = ln(p/(1-p)),
and squash(s) = 1/(1+exp(-s)).  Note that squash() and stretch() are
inverses of each other.

After bit y_j (0 or 1) is received, the network is trained:

  w_i := w_i + eta t_i (y_j - p1)                                (2)

where eta is an ad-hoc learning rate, t_i is the i'th input, (y_j - p1)
is the prediction error for the j'th input but, and w_i is the i'th
weight.  Note that this differs from back propagation:

  w_i := w_i + eta t_i (y_j - p1) p0 p1                          (3)

which is a gradient descent in weight space to minimize root mean square
error.  Rather, the goal in compression is to minimize coding cost,
which is -log(p0) if y = 1 or -log(p1) if y = 0.  Taking
the partial derivative of cost with respect to w_i yields (2).


MODELS

Most models are context models.  A function of the context (last few
bytes) is mapped by a lookup table or hash table to a state which depends
on the bit history (prior sequence of 0 and 1 bits seen in this context).
The bit history is then mapped to p1_i by a fixed or adaptive function.
There are several types of bit history states:

- Run Map. The state is (b,n) where b is the last bit seen (0 or 1) and
  n is the number of consecutive times this value was seen.  The initial
  state is (0,0).  The output is computed directly:

    t_i = (2b - 1)K log(n + 1).

  where K is ad-hoc, around 4 to 10.  When bit y_j is seen, the state
  is updated:

    (b,n) := (b,n+1) if y_j = b, else (y_j,1).

- Stationary Map.  The state is p, initially 1/2.  The output is
  t_i = stretch(p).  The state is updated at ad-hoc rate K (around 0.01):

    p := p + K(y_j - p)

- Nonstationary Map.  This is a compromise between a stationary map, which
  assumes uniform statistics, and a run map, which adapts quickly by
  discarding old statistics.  An 8 bit state represents (n0,n1,h), initially
  (0,0,0) where:

    n0 is the number of 0 bits seen "recently".
    n1 is the number of 1 bits seen "recently".
    n = n0 + n1.
    h is the full bit history for 0 <= n <= 4,
      the last bit seen (0 or 1) if 5 <= n <= 15,
      0 for n >= 16.

  The primaty output is t_i := stretch(sm(n0,n1,h)), where sm(.) is
  a stationary map with K = 1/256, initiaized to 
  sm(n0,n1,h) = (n1+(1/64))/(n+2/64).  Four additional inputs are also 
  be computed to improve compression slightly:

    p1_i = sm(n0,n1,h)
    p0_i = 1 - p1_i
    t_i   := stretch(p_1)
    t_i+1 := K1 (p1_i - p0_i)
    t_i+2 := K2 stretch(p1) if n0 = 0, -K2 stretch(p1) if n1 = 0, else 0
    t_i+3 := K3 (-p0_i if n1 = 0, p1_i if n0 = 0, else 0)
    t_i+4 := K3 (-p0_i if n0 = 0, p1_i if n1 = 0, else 0)

  where K1..K4 are ad-hoc constants.

  h is updated as follows:
    If n < 4, append y_j to h.
    Else if n <= 16, set h := y_j.
    Else h = 0.

  The update rule is biased toward newer data in a way that allows
  n0 or n1, but not both, to grow large by discarding counts of the
  opposite bit.  Large counts are incremented probabilistically.
  Specifically, when y_j = 0 then the update rule is:

    n0 := n0 + 1, n < 29
          n0 + 1 with probability 2^(27-n0)/2 else n0, 29 <= n0 < 41
          n0, n = 41.
    n1 := n1, n1 <= 5
          round(8/3 lg n1), if n1 > 5

  swapping (n0,n1) when y_j = 1.

  Furthermore, to allow an 8 bit representation for (n0,n1,h), states
  exceeding the following values of n0 or n1 are replaced with the
  state with the closest ratio n0:n1 obtained by decrementing the
  smaller count: (41,0,h), (40,1,h), (12,2,h), (5,3,h), (4,4,h),
  (3,5,h), (2,12,h), (1,40,h), (0,41,h).  For example:
  (12,2,1) 0-> (7,1,0) because there is no state (13,2,0).

- Match Model.  The state is (c,b), initially (0,0), where c is 1 if
  the context was previously seen, else 0, and b is the next bit in
  this context.  The prediction is:

    t_i := (2b - 1)Kc log(m + 1)

  where m is the length of the context.  The update rule is c := 1,
  b := y_j.  A match model can be implemented efficiently by storing
  input in a buffer and storing pointers into the buffer into a hash
  table indexed by context.  Then c is indicated by a hash table entry
  and b can be retrieved from the buffer.


CONTEXTS

High compression is achieved by combining a large number of contexts.
Most (not all) contexts start on a byte boundary and end on the bit
immediately preceding the predicted bit.  The contexts below are
modeled with both a run map and a nonstationary map unless indicated.

- Order n.  The last n bytes, up to about 16.  For general purpose data.
  Most of the compression occurs here for orders up to about 6.
  An order 0 context includes only the 0-7 bits of the partially coded
  byte and the number of these bits (255 possible values).

- Sparse.  Usually 1 or 2 of the last 8 bytes preceding the byte containing
  the predicted bit, e.g (2), (3),..., (8), (1,3), (1,4), (1,5), (1,6),
  (2,3), (2,4), (3,6), (4,8).  The ordinary order 1 and 2 context, (1)
  or (1,2) are included above.  Useful for binary data.

- Text.  Contexts consists of whole words (a-z, converted to lower case
  and skipping other values).  Contexts may be sparse, e.g (0,2) meaning
  the current (partially coded) word and the second word preceding the
  current one.  Useful contexts are (0), (0,1), (0,1,2), (0,2), (0,3),
  (0,4).  The preceding byte may or may not be included as context in the
  current word.

- Formatted text.  The column number (determined by the position of
  the last linefeed) is combined with other contexts: the charater to
  the left and the character above it.

- Fixed record length.  The record length is determined by searching for
  byte sequences with a uniform stride length.  Once this is found, then
  the record length is combined with the context of the bytes immediately
  preceding it and the corresponding byte locations in the previous
  one or two records (as with formatted text).

- Context gap.  The distance to the previous occurrence of the order 1
  or order 2 context is combined with other low order (1-2) contexts.

- FAX.  For 2-level bitmapped images.  Contexts are the surrounding
  pixels already seen.  Image width is assumed to be 1728 bits (as
  in calgary/pic).

- Image.  For uncompressed 24-bit color BMP and TIFF images.  Contexts
  are the high order bits of the surrounding pixels and linear
  combinations of those pixels, including other color planes.  The
  image width is detected from the file header.  When an image is
  detected, other models are turned off to improve speed.

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
成人教育av在线| 日韩一区二区影院| 日韩无一区二区| 国产精品三级久久久久三级| 偷拍亚洲欧洲综合| 一本色道久久加勒比精品| 久久综合999| 免费成人在线观看视频| 在线观看日韩毛片| 国产精品国产a| 激情图区综合网| 91精品国产色综合久久不卡蜜臀 | 国内精品第一页| 欧美在线综合视频| 亚洲图片激情小说| 国产91精品入口| 久久久久久久久久久99999| 日韩主播视频在线| 欧美在线观看禁18| 亚洲男同1069视频| 97精品久久久久中文字幕 | 99久久精品免费| 国产精品三级av在线播放| 国产综合色精品一区二区三区| 欧美精品第1页| 日韩精品三区四区| 欧美妇女性影城| 婷婷一区二区三区| 欧美日韩在线一区二区| 亚洲一区视频在线| 欧美乱熟臀69xxxxxx| 亚洲高清免费视频| 91精品黄色片免费大全| 日日嗨av一区二区三区四区| 欧美一区二区在线不卡| 日韩高清在线电影| 欧美一级二级三级蜜桃| 日本不卡一二三区黄网| 日韩精品自拍偷拍| 国产精品99久久久久久久女警| 久久这里都是精品| 国产mv日韩mv欧美| 国产精品家庭影院| 在线一区二区观看| 日韩精品乱码免费| 精品国产乱码久久久久久牛牛| 久久超碰97人人做人人爱| 国产调教视频一区| 色老汉一区二区三区| 偷拍日韩校园综合在线| 亚洲精品一区二区三区蜜桃下载 | 日韩视频一区二区三区在线播放| 日韩有码一区二区三区| 久久女同精品一区二区| 91在线国产福利| 午夜久久久久久久久| xnxx国产精品| 色综合久久中文字幕| 日韩精品成人一区二区三区| 欧美精品一区视频| 91视频在线看| 蜜臀va亚洲va欧美va天堂| 国产欧美一区二区精品久导航| 99视频超级精品| 偷拍与自拍一区| 中文字幕欧美三区| 91精品国产综合久久福利软件 | 国产精品视频第一区| 欧美三级午夜理伦三级中视频| 美女网站色91| 一区二区在线看| 日韩精品一区二区三区视频播放| 99久久精品国产一区二区三区| 丝袜美腿亚洲色图| 国产精品嫩草99a| 日韩欧美亚洲另类制服综合在线 | 制服丝袜亚洲播放| jlzzjlzz欧美大全| 美女视频一区在线观看| 亚洲视频1区2区| 久久久久88色偷偷免费| 欧美日韩在线一区二区| 不卡的av电影在线观看| 国产制服丝袜一区| 亚洲一卡二卡三卡四卡无卡久久 | 2024国产精品| 在线电影院国产精品| av中文字幕亚洲| 国产乱人伦精品一区二区在线观看| 亚洲人成在线观看一区二区| 亚洲精品在线免费观看视频| 欧美日韩精品福利| 色94色欧美sute亚洲线路一久| 丁香五精品蜜臀久久久久99网站| 日本亚洲免费观看| 亚洲一区二区三区激情| 亚洲欧美另类小说视频| 国产精品色一区二区三区| 2023国产精品| 亚洲精品一区二区三区在线观看| 日韩一级精品视频在线观看| 欧美视频日韩视频| 色域天天综合网| 99re免费视频精品全部| 国产91在线看| 国产精品18久久久久久久久久久久 | 青草av.久久免费一区| 午夜精品免费在线观看| 亚洲综合男人的天堂| 亚洲欧美日韩中文字幕一区二区三区| 欧美国产日韩亚洲一区| 中文字幕第一区综合| 国产人伦精品一区二区| 中文字幕精品三区| 国产精品大尺度| 亚洲美女少妇撒尿| 亚洲永久免费视频| 午夜亚洲福利老司机| 亚洲成人免费电影| 午夜日韩在线观看| 日韩成人一区二区三区在线观看| 日欧美一区二区| 国内外成人在线| 成人深夜在线观看| 一本一道久久a久久精品| 91老司机福利 在线| 色乱码一区二区三区88| 欧美日产在线观看| 欧美久久高跟鞋激| 精品欧美一区二区久久| 亚洲国产成人一区二区三区| 综合久久国产九一剧情麻豆| 亚洲高清免费视频| 九色|91porny| 不卡一区二区中文字幕| 99久久免费视频.com| 欧美影视一区在线| 在线亚洲欧美专区二区| 国产精品久久久久久福利一牛影视| 在线播放一区二区三区| 国产综合色视频| 国产精品资源网| 91丨porny丨户外露出| 欧美日韩国产综合一区二区| 日韩视频一区二区在线观看| 国产日产欧美一区二区三区| 亚洲女同一区二区| 日韩av午夜在线观看| 成人午夜大片免费观看| 日韩限制级电影在线观看| 精品福利一区二区三区| 亚洲欧美在线高清| 蜜芽一区二区三区| 99久久免费国产| 日韩视频免费观看高清完整版 | 成人综合婷婷国产精品久久 | 久久久亚洲精品一区二区三区| 亚洲欧美日韩一区二区三区在线观看 | 综合在线观看色| 麻豆精品在线看| 欧美性生活大片视频| 久久九九久久九九| 视频一区中文字幕| 91在线观看免费视频| 久久久电影一区二区三区| 亚洲chinese男男1069| 不卡视频在线观看| 欧美精品一区二区三区蜜桃视频| 夜夜嗨av一区二区三区四季av| 国产精品一区二区x88av| 欧美高清视频在线高清观看mv色露露十八 | 亚洲精品乱码久久久久久黑人| 国产精品一区二区在线播放| 欧美男男青年gay1069videost| 国产精品伦理在线| 国产一区二区免费在线| 91麻豆精品国产91久久久资源速度| 中文字幕日本不卡| 国产乱码字幕精品高清av| 国产综合色视频| 国产亚洲精品7777| 中文字幕av一区二区三区高| 老鸭窝一区二区久久精品| 欧美探花视频资源| 亚洲毛片av在线| 成人成人成人在线视频| 久久青草欧美一区二区三区| 久久精品国产网站| 91麻豆精品国产91久久久久 | 4hu四虎永久在线影院成人| 亚洲色图一区二区| voyeur盗摄精品| 国产精品无人区| 国产盗摄精品一区二区三区在线| 欧美成人乱码一区二区三区| 另类的小说在线视频另类成人小视频在线| 欧美视频精品在线| 亚洲一区二区不卡免费| 欧美日韩中文精品| 亚洲va欧美va天堂v国产综合|