1. 29 1月, 2018 9 次提交
  2. 28 11月, 2017 4 次提交
    • C
      Remove a nullptr · de75509b
      Chris Forseth 提交于
      de75509b
    • C
      Fix a disposal flag mistype. · 03b4bbc5
      Chris Forseth 提交于
      Only clear to background color if index is non-zero.
      Fixed a the disposal test gif I was using - now renders properly (gif has no transparent set, but all renderers still considered it transparent.  Spec says 0 should be ignored if 0, but was confusing by saying it only in the context of the pal not existing.. but seems to be the case always.
      03b4bbc5
    • C
      Per the contributor doc - added my name. Noticed urraka also did some work... · 28c28b0b
      Chris Forseth 提交于
      Per the contributor doc - added my name.   Noticed urraka also did some work here, so hopefully didn't step on any toes.
      
      - Fix an issue where the spec of the gif for restore to previous uses code 3, not 4.
      - To get results that worked - made an assumption that "clear to background" meant "revert back to what was there before I drew", where mode 1 would revert back to the previous frame [slightly different].  If I clear to background color instead, I ended up with large opaque squares in gifs that changes their transparent colour each frame.
      - Background color is supposed to be used only for pixels not rendered by the image, so took that to mean it only really affected the previous frame, or potentially any frame that used full disposal.  Since background color is allowed to be unspecified this is what lead me to believe I shouldn't use it for disposal.
      - Oh, also upped the codes table to 8192 as 4096 ended up being too small for a few of my test cases.
      
      Full disclaimer - I only read through the GIF format for this contribution, so competly could be misinterpreting the spec - but this gave me reuslts that matched Chrome.
      28c28b0b
    • C
      GIF Loading - multiple frames; · 87a3143f
      Chris Forseth 提交于
      - Allow loading a gif as multiple frames into a single buffer.  Each frame is a full image seperated by a (w * h * comp) stride.
      - Optionally, can pass in a pointer to a int, which will be filled with an array layers long contain ms for each frame.
      - Fix gif's not loading the initial transparent background
      - I believe also fix disposal rules for subsequent frames (though being somewhat inefficient with memory to do so)
      - Add a flip_vertical that takes into account slices as well.
      
      Compiled using VS2017, but nothing else as I'm not really setup for it.  Apologies.
      87a3143f
  3. 25 11月, 2017 1 次提交
  4. 24 11月, 2017 3 次提交
  5. 04 9月, 2017 1 次提交
  6. 01 9月, 2017 2 次提交
  7. 24 7月, 2017 1 次提交
  8. 23 7月, 2017 4 次提交
  9. 22 7月, 2017 2 次提交
    • F
      stb_image: Documentation fixes. · cc7f1d1e
      Fabian Giesen 提交于
      req_comp is now desired_channels and *comp is *channels_in_file.
      
      Fixes issue #466.
      cc7f1d1e
    • F
      stb_image: Relax raw_len validation for non-interlaced PNGs. · 06746604
      Fabian Giesen 提交于
      We used to require exact match between img_len and raw_len for
      non-interlaced PNGs, but the PNG in issue #276 has extra bytes
      (all zeros) at the end of the compressed DEFLATE stream.
      
      The PNG spec doesn't have anything to say about it (that I
      can tell), and if libpng accepts this, who are we to judge.
      
      Fixes issue #276.
      06746604
  10. 12 5月, 2017 2 次提交
  11. 05 5月, 2017 1 次提交
  12. 26 4月, 2017 1 次提交
  13. 18 4月, 2017 2 次提交
  14. 19 3月, 2017 7 次提交