1. 11 3月, 2021 1 次提交
  2. 09 9月, 2020 1 次提交
  3. 31 3月, 2019 1 次提交
  4. 04 2月, 2019 1 次提交
    • C
      Fix a memory leak in the riffled palette optimization on ARM; refactor · 70d122aa
      Cosmin Truta 提交于
      Move deallocation of riffled_palette from png_write_destroy to
      png_read_destroy. The reader (not the writer) is the owner of
      riffled_palette.
      
      Move allocation and initialization of riffled_palette from
      png_do_read_transformations to png_init_palette_transformations.
      
      Allow riffled_palette inside png_struct only if the ARM Neon
      optimizations are enabled.
      
      Rename png_riffle_palette_rgba to png_riffle_palette_rgba8, etc.,
      to better indicate the strict applicability of these routines.
      
      Fix an unused parameter warning in the build configurations where
      riffled palette optimization is not enabled.
      
      Fix indentation.
      70d122aa
  5. 01 12月, 2018 1 次提交
  6. 04 9月, 2018 1 次提交
  7. 19 8月, 2018 1 次提交
    • 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
  8. 29 7月, 2018 1 次提交
  9. 17 7月, 2018 1 次提交
  10. 16 7月, 2018 2 次提交
  11. 18 6月, 2018 1 次提交
  12. 14 11月, 2017 1 次提交
  13. 04 11月, 2017 1 次提交
  14. 30 8月, 2017 1 次提交
  15. 26 8月, 2017 1 次提交
  16. 25 8月, 2017 2 次提交
  17. 06 8月, 2017 2 次提交
  18. 05 8月, 2017 1 次提交
  19. 01 8月, 2017 2 次提交
  20. 27 7月, 2017 2 次提交
  21. 14 7月, 2017 1 次提交
  22. 02 7月, 2017 2 次提交
  23. 30 6月, 2017 1 次提交
  24. 29 6月, 2017 1 次提交
  25. 31 3月, 2017 1 次提交
  26. 30 3月, 2017 2 次提交
  27. 16 3月, 2017 2 次提交
  28. 12 2月, 2017 1 次提交
  29. 31 1月, 2017 1 次提交
  30. 14 1月, 2017 1 次提交
  31. 12 1月, 2017 1 次提交
  32. 06 1月, 2017 1 次提交