1. 03 Aug, 2019 2 commits
    • Niels De Graef's avatar
      Add (nullable) if applicable · 5f92ced1
      Niels De Graef authored
      Basically this commit makes sure that all return values that are marked
      as "Returns:" also have a `(nullable)` annotation if it is mentioned on
      the same line that NULL can also be returned.
      This will prevent a few problems in GObject-introspection.
    • Niels De Graef's avatar
      Use "Returns:" to annotate return values · 1dda6015
      Niels De Graef authored
      To be able to annotate return values through GObject-introspection, you
      need to make sure it is tagged with `Returns:` and not something else.
  2. 31 Jul, 2019 1 commit
  3. 31 May, 2019 1 commit
    • Michael Natterer's avatar
      Issue #3057 - Retain last user-chosen ICC profile information... · 3cad4aa4
      Michael Natterer authored
      ...when generating "TRC variants"
      When creating a new profile with different TRC from an existing
      profile, keep all the original profile's description, model,
      manufacturer and copyright strings around, but prefix them with "GIMP
      from " or similar to indicate that they are different. Also make sure
      we don't prefix strings with GIMP stuff multiple times when profiles
      are generated repeatedly.
  4. 28 May, 2019 1 commit
  5. 27 May, 2019 1 commit
  6. 01 Jan, 2019 1 commit
  7. 18 Sep, 2018 1 commit
    • Ell's avatar
      app, libgimp*, modules: don't use g_type_class_add_private() ... · 3b0040c0
      Ell authored
      g_type_class_add_private() and G_TYPE_INSTANCE_GET_PRIVATE() were
      deprecated in GLib 2.58.  Instead, use
      G_ADD_PRIVATE[_DYNAMIC](), and the implictly-defined
      foo_get_instance_private() functions, all of which are available in
      the GLib versions we depend on.
      This commit only covers types registered using one of the
      G_DEFINE_FOO() macros (i.e., most types), but not types with a
      custom registration function, of which we still have a few -- GLib
      currently only provides a (non-deprecated) public API for adding a
      private struct using the G_DEFINE_FOO() macros.
      Note that this commit was 99% auto-generated (because I'm not
      *that* crazy :), so if there are any style mismatches... we'll have
      to live with them for now.
  8. 21 Jul, 2018 1 commit
    • Michael Natterer's avatar
      Initial space invasion commit in GIMP · e09e563a
      Michael Natterer authored
      All babl formats now have a space equivalent to a color profile,
      determining the format's primaries and TRCs. This commit makes GIMP
      aware of this.
      - enum GimpPrecision: rename GAMMA values to NON_LINEAR and keep GAMMA
        as deprecated aliases, add PERCEPTUAL values so we now have LINEAR,
        NON_LINEAR and PERCPTUAL for each encoding, matching the babl
        encoding variants RGB, R'G'B' and R~G~B~.
      - gimp_color_transform_can_gegl_copy() now returns TRUE if both
        profiles can return a babl space, increasing the amount of fast babl
        color conversions significantly.
      - TODO: no solution yet for getting libgimp drawable proxy buffers in
        the right format with space.
      - follow the GimpPrecision change.
      - TODO: everything else unchanged and partly broken or sub-optimal,
        like setting a new image's color profile too late.
      - add enum GimpTRCType { LINEAR, NON_LINEAR, PERCEPTUAL } as
        replacement for all "linear" booleans.
      - change gimp-babl functions to take babl spaces and GimpTRCType
        parameters and support all sorts of new perceptual ~ formats.
      - a lot of places changed in the early days of goat invasion didn't
        take advantage of gimp-babl utility functions and constructed
        formats manually. They all needed revisiting and many now use much
        simpler code calling gimp-babl API.
      - change gimp_babl_format_get_color_profile() to really extract a
        newly allocated color profile from the format, and add
        gimp_babl_get_builtin_color_profile() which does the same as
        gimp_babl_format_get_color_profile() did before. Visited all callers
        to decide whether they are looking for the format's actual profile,
        or for one of the builtin profiles, simplifying code that only needs
        builtin profiles.
      - drawables have a new get_space_api(), get_linear() is now get_trc().
      - images now have a "layer space" and an API to get it,
        gimp_image_get_layer_format() returns formats in that space.
      - an image's layer space is created from the image's color profile,
        change gimpimage-color-profile to deal with that correctly
      - change many babl_format() calls to babl_format_with_space() and take
        the space from passed formats or drawables
      - add function gimp_layer_fix_format_space() which replaces the
        layer's buffer with one that has the image's layer format, but
        doesn't change pixel values
      - use gimp_layer_fix_format_space() to make sure layers loaded from
        XCF and created by plug-ins have the right space when added to the
        image, because it's impossible to always assign the right space upon
        layer creation
      - "assign color profile" and "discard color profile" now require use
        of gimp_layer_fix_format_space() too because the profile is now
        embedded in all formats via the space.  Add
        gimp_image_assign_color_profile() which does all that and call it
        instead of a simple gimp_image_set_color_profile(), also from the
        PDB set-color-profile functions, which are essentially "assign" and
        "discard" calls.
      - generally, make sure a new image's color profile is set before
        adding layers to it, gimp_image_set_color_profile() is more than
        before considered know-what-you-are-doing API.
      - take special precaution in all places that call
        gimp_drawable_convert_type(), we now must pass a new_profile from
        all callers that convert layers within the same image (such as
        image_convert_type, image_convert_precision), because the layer's
        new space can't be determined from the image's layer format during
        the call.
      - change all "linear" properties to "trc", in all config objects like
        for levels and curves, in the histogram, in the widgets. This results
        in some GUI that now has three choices instead of two.
        TODO: we might want to reduce that back to two later.
      - keep "linear" boolean properties around as compat if needed for file
        pasring, but always convert the parsed parsed boolean to
      - TODO: the image's "enable color management" switch is currently
        broken, will fix that in another commit.
  9. 16 Jul, 2018 2 commits
  10. 11 Jul, 2018 1 commit
  11. 06 Jul, 2018 1 commit
    • Ell's avatar
      libgimpcolor, app: gracefully reject empty ICC profiles · 10f33b08
      Ell authored
      In gimp_color_profile_new_from_icc_profile() and
      gimp_image_validate_icc_profile(), don't raise a critical when
      encountering an empty profile, but rather reject it gracefully with
      an error.
  12. 18 Apr, 2018 1 commit
  13. 18 Mar, 2018 1 commit
  14. 16 Mar, 2018 1 commit
  15. 03 Nov, 2017 1 commit
  16. 03 Oct, 2017 1 commit
  17. 13 Sep, 2017 1 commit
  18. 10 Sep, 2017 1 commit
  19. 09 Sep, 2017 1 commit
  20. 03 Sep, 2017 1 commit
  21. 02 Sep, 2017 2 commits
  22. 15 Jul, 2017 1 commit
  23. 03 Jun, 2017 1 commit
  24. 24 Feb, 2017 1 commit
  25. 07 Jun, 2016 1 commit
  26. 26 May, 2016 1 commit
  27. 25 May, 2016 1 commit
    • Michael Natterer's avatar
      libgimpcolor: optimize gimp_color_profile_get_format() for cairo-RGB24 · 7326f346
      Michael Natterer authored
      Trick lcms into converting cairo-RGB24 pixels directly, by using
      TYPE_BGRA_8 on little endian and TYPE_ARGB_8 on big endian. They have
      the same byte order, and the alpha channel (ignored by lcms anyway)
      takes the place of the unused byte of cairo-RGB24.
      This saves two babl conversions around cmsDoTransform().
  28. 04 May, 2016 2 commits
  29. 26 Apr, 2016 1 commit
  30. 21 Apr, 2016 1 commit
  31. 09 Apr, 2016 2 commits
  32. 08 Apr, 2016 1 commit
  33. 07 Apr, 2016 1 commit
  34. 15 Dec, 2015 1 commit
  35. 14 Dec, 2015 1 commit