1. 13 7月, 2020 2 次提交
  2. 03 2月, 2020 3 次提交
  3. 01 12月, 2019 1 次提交
  4. 16 11月, 2019 1 次提交
    • A
      Quell -Wcast-align warnings from Clang · 57b9ea65
      Andrew Kensler 提交于
      The stbi__sbraw() macro in stb_image_write.h causes Clang to spew about 24
      warnings complaining that "cast from 'unsigned char *' to 'int *' increases
      required alignment from 1 to 4" when compiled with the -Wcast-align option.
      
      In practice, this is spurious so long as STBIW_MALLOC() and STBIW_REALLOC()
      follow the usual alignment semantics for malloc() and realloc() in that they
      align sufficiently for any built-in type.
      
      To quell the warning, we can cast through a void pointer as an intermediary.
      57b9ea65
  5. 03 10月, 2019 1 次提交
    • N
      stb_image_write: fix clang warning · da129429
      Niclas Olmenius 提交于
      fix -Wmissing-variable-declarations clang warning
      
      `stbi__flip_vertically_on_write` is now static like
      `stbi__vertically_flip_on_load` in `stb_image.h`
      da129429
  6. 11 8月, 2019 1 次提交
  7. 05 3月, 2019 3 次提交
  8. 04 3月, 2019 1 次提交
  9. 26 2月, 2019 1 次提交
  10. 23 2月, 2019 1 次提交
  11. 08 2月, 2019 3 次提交
  12. 07 2月, 2019 5 次提交
  13. 23 1月, 2019 1 次提交
  14. 27 7月, 2018 2 次提交
  15. 09 4月, 2018 1 次提交
    • D
      stb_image_write.h: Fix jpg flipping for non-multiple-of-8 sizes · 1ad30e4e
      Daniel Gibson 提交于
      JPG always encodes 8x8 pixel blocks. If the input image does not have
      a width or height that's a multiple of 8, the last column or row is just
      used multiple times for the remaining pixels of the block.
      The original code first calculated p (the index into the pixel data)
      with the "imaginary" row/colum (that might be up to 7 pixels too far
      into each direction) and then subtracted the necessary amount of bytes
      it if row >= height or col >= width.
      That was a bit cryptic (IMHO), and didn't get more readable/obvious when
      vertical flipping was added - which introduced a bug, by not taking
      stbi__flip_vertically_on_write into account when adjusting p for
      row >= height...
      
      The code should be more obvious (and less buggy) now.
      
      This fixes bug #592
      1ad30e4e
  16. 27 2月, 2018 1 次提交
  17. 21 2月, 2018 1 次提交
  18. 12 2月, 2018 4 次提交
  19. 05 2月, 2018 2 次提交
  20. 30 1月, 2018 1 次提交
  21. 29 1月, 2018 4 次提交