1. 11 3月, 2021 1 次提交
  2. 09 9月, 2020 1 次提交
  3. 25 8月, 2020 1 次提交
  4. 01 12月, 2018 1 次提交
  5. 19 8月, 2018 2 次提交
    • L
      Some more trivial source typos · a294c1bc
      luz.paz 提交于
      Found via `codespell` and `grep`
      a294c1bc
    • C
      Remove top-level const from function-scope variables · ceb32778
      Cosmin Truta 提交于
      As per the const correctness rules, top-level const-ness of data
      in automatic scopes does not propagate outside of these scopes
      (unlike const-ness at lower levels, such as pointers to const data).
      
      Previously, const was used liberally, but inconsistently across the
      libpng codebase. Using const wherever applicable is not incorrect.
      However, _consistent_ use of const is difficult to maintain in such
      conditions.
      
      In conclusion, we shall continue to use const only where doing so is
      strictly necessary:
      
      1. If a function guarantees that it will not modify an argument
         passed by pointer, the corresponding function parameter should be
         a pointer-to-const (const T *).
      
      2. Static data should not be modified, therefore it should be const.
      
      Reference:
      Google C++ Style Guide
      https://google.github.io/styleguide/cppguide.html#Use_of_const
      ceb32778
  6. 16 7月, 2018 1 次提交
  7. 18 6月, 2018 1 次提交
  8. 09 2月, 2018 1 次提交
  9. 03 11月, 2017 1 次提交
    • U
      Misc. typos · f23b41d7
      Unknown 提交于
      Some are user facing. Some are in actual code. Most are in source comments. Also, please double check the changes in contrib/tools/pngfix.c
      f23b41d7
  10. 04 8月, 2016 2 次提交
  11. 04 7月, 2016 1 次提交
    • J
      pngcp bug fixes · cfc19ff1
      John Bowler 提交于
      The fixed size buffer for the file name being processed could have a byte
      written beyond the end; a bug where the test was updated without changing the
      size of the buffer.  This commit reduces the buffer to the system maximum.
      
      png_getrowbytes could, in theory, return 0; probably only if there is a bug in
      libpng but the code now checks.
      Signed-off-by: NJohn Bowler <jbowler@acm.org>
      cfc19ff1
  12. 02 7月, 2016 4 次提交
    • G
      [libpng16] Updated CHANGES and ANNOUNCE · b733c50b
      Glenn Randers-Pehrson 提交于
      b733c50b
    • J
      pngcp.c: correct total time output · a9374442
      John Bowler 提交于
      Signed-off-by: NJohn Bowler <jbowler@acm.org>
      a9374442
    • J
      pngcp: add high resolution timing · 9957c450
      John Bowler 提交于
      If PNG_PNGCP_TIMING_SUPPORTED is defined maximal resolution CPU time logging of
      png_read_png and png_write_png is enabled via the --time command line option.
      This is not on by default but is enabled by contrib/conftests/pngcp.dfa
      Signed-off-by: NJohn Bowler <jbowler@acm.org>
      9957c450
    • J
      pngcp: tool to copy PNG files · 0ac91cc6
      John Bowler 提交于
      This adds pngcp to the build together with a pngcp.dfa configuration test; the
      test revealed some configuration bugs which are fixed by corrections to the
      _SUPPORTED macros.
      
      pngcp builds on all tested configurations and a number of bugs have been fixed
      to make this happen relative to the version in libpng 1.7 contrib/examples.
      pngcp.dfa will have to be different for 1.7 but pngcp.c should work fine (not
      yet tested).  pngcp itself is still missing a usage message; this is a
      preliminary version, although since it behaves the same way as 'cp' most unoids
      shouldn't have a problem using it correctly.
      Signed-off-by: NJohn Bowler <jbowler@acm.org>
      0ac91cc6