1. 16 1月, 2017 4 次提交
  2. 03 1月, 2017 6 次提交
  3. 02 1月, 2017 4 次提交
  4. 01 1月, 2017 6 次提交
  5. 31 12月, 2016 10 次提交
  6. 05 12月, 2016 3 次提交
  7. 04 12月, 2016 7 次提交
    • M
      Create z_size_t and z_ssize_t types. · ca50ebd4
      Mark Adler 提交于
      Normally these are set to size_t and ssize_t. But if they do not
      exist, then they are set to the smallest integer type that can
      contain a pointer. size_t is unsigned and ssize_t is signed.
      ca50ebd4
    • M
      Don't need to emit an empty fixed block when changing parameters. · c5ee34c2
      Mark Adler 提交于
      gzsetparams() was using Z_PARTIAL_FLUSH when it could use Z_BLOCK
      instead. This commit uses Z_BLOCK, which avoids emitting an
      unnecessary ten bits into the stream.
      c5ee34c2
    • M
      Clean up gz* function return values. · 123f9cfa
      Mark Adler 提交于
      In some cases the return values did not match the documentation,
      or the documentation did not document all of the return values.
      gzprintf() now consistently returns negative values on error,
      which matches the behavior of the stdio fprintf() function.
      123f9cfa
    • M
      Speed up deflation for level 0 (storing). · 9dc5a858
      Mark Adler 提交于
      The previous code slid the window and the hash table and copied
      every input byte three times in order to just write the data as
      stored blocks with no compression. This commit minimizes sliding
      and copying, especially for large input and output buffers.
      
      Level 0 compression is now more than 20 times faster than before
      the commit.
      
      Most of the speedup is due to deferring hash table slides until
      deflateParams() is called to change the compression level away
      from 0. More speedup is due to copying directly from next_in to
      next_out when the amounts of available input data and output space
      permit it, avoiding the intermediate pending buffer. Additionally,
      only the last 32K of the used input data is copied back to the
      sliding window when large input buffers are provided.
      9dc5a858
    • M
      Assure that deflateParams() will not switch functions mid-block. · 7161ad76
      Mark Adler 提交于
      This alters the specification in zlib.h, so that deflateParams()
      will not change any parameters if there is not enough output space
      in the event that a block is emitted in order to allow switching
      the compression function.
      7161ad76
    • M
      Explicitly ignore a return value in gzwrite.c. · 1101ea79
      Mark Adler 提交于
      1101ea79
    • M
      Increase verbosity required to warn about bit length overflow. · 21c66cd5
      Mark Adler 提交于
      When debugging the Huffman coding would warn about resulting codes
      greater than 15 bits in length. This is handled properly, and is
      not uncommon. This increases the verbosity of the warning by one,
      so that it is not displayed by default.
      21c66cd5