1. 22 Aug, 2018 1 commit
  2. 02 Jul, 2018 1 commit
  3. 01 Jun, 2018 1 commit
    • Federico Mena Quintero's avatar
      GdkPixbuf: Formalize the difference between pixels/bytes storage · c60ffd50
      Federico Mena Quintero authored
      Instead of checking the bytes vs. pixels fields all over the place, we
      introduce an enum that says which mode the pixbuf is in.  We have a
      central downgrade_to_pixels() function to turn the pixbuf from
      immutable to mutable.
      
      This commit only does the gdk-pixbuf core; we'll deal with pixdata and
      the loaders separately.
      c60ffd50
  4. 25 Apr, 2018 2 commits
  5. 04 Dec, 2017 1 commit
  6. 01 Aug, 2017 1 commit
  7. 28 Jul, 2017 1 commit
  8. 27 Jul, 2017 1 commit
  9. 15 Mar, 2017 1 commit
  10. 07 Feb, 2017 1 commit
  11. 13 Sep, 2016 1 commit
  12. 02 Aug, 2016 3 commits
  13. 05 May, 2016 1 commit
  14. 24 Oct, 2014 4 commits
  15. 22 Oct, 2014 3 commits
  16. 21 Oct, 2014 3 commits
  17. 18 Jul, 2014 2 commits
    • Colin Walters's avatar
      Add gdk_pixbuf_read_pixel_bytes() · 3b40f1e8
      Colin Walters authored and Matthias Clasen's avatar Matthias Clasen committed
      This can be convenient for language bindings to access the readonly
      data in a form that includes length, and also avoids a copy (for
      readonly pixbufs).
      
      https://bugzilla.gnome.org/show_bug.cgi?id=732297
      3b40f1e8
    • Colin Walters's avatar
      Add _new_from_bytes() and _read_pixels() API, handle read-only pixbufs · 862e3890
      Colin Walters authored and Matthias Clasen's avatar Matthias Clasen committed
      GdkPixbuf is an old API that predates introspection and GBytes.  It
      has some confusion around whether or not pixbuf data is mutable or
      not.  The _new_from_data() API takes a *const* pointer, but it's not
      copied, and _get_pixels() returns a non-const copy of the same
      pointer.
      
      There are several cases where we get read-only data, such as a
      GResource.  For language bindings, _new_from_data() doesn't work
      because the array may be a temporary copy only allocated for the call.
      
      In order to support a clean _new_from_bytes() API, we need to add the
      concept of a read-only pixbuf into the core.  The fundamental hack
      here is that _get_pixels() now causes an implicit copy.
      
      For the cases where we don't want to copy, add a new
      gdk_pixbuf_read_pixels() that returns a proper const pointer.
      
      https://bugzilla.gnome.org/show_bug.cgi?id=732297
      862e3890
  18. 15 Feb, 2014 1 commit
  19. 31 Jan, 2014 1 commit
  20. 19 Dec, 2013 1 commit
  21. 21 Apr, 2013 1 commit
    • Ryan Lortie's avatar
      Fix GIcon implementation · aa0f9286
      Ryan Lortie authored and Allison Karlitskaya's avatar Allison Karlitskaya committed
      The "new rules" for GIcon say that we must support serialisation via
      g_icon_serialize() and loadability via GLoadableIcon, so implement both
      of those.
      
      Serialise GdkPixbuf by emitting a GVariant that will result in a
      png-encoded GBytesIcon when deserialized.  The GLoadableIcon interface
      is similar: we return a stream that will read out as a png.
      
      Test the serialisation by round-tripping an image through this process
      and ensuring that it is pixel-perfect.
      
      https://bugzilla.gnome.org/show_bug.cgi?id=688820
      aa0f9286
  22. 03 Sep, 2012 1 commit
  23. 16 Dec, 2011 4 commits
  24. 09 Jun, 2011 1 commit
  25. 06 Mar, 2011 1 commit
  26. 11 Feb, 2011 1 commit