1. 10 Sep, 2018 1 commit
  2. 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.
      
      libgimp:
      
      - 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.
      
      plug-ins:
      
      - follow the GimpPrecision change.
      
      - TODO: everything else unchanged and partly broken or sub-optimal,
        like setting a new image's color profile too late.
      
      app:
      
      - 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
        GimpTRCType.
      
      - TODO: the image's "enable color management" switch is currently
        broken, will fix that in another commit.
      e09e563a
  3. 11 Jul, 2018 1 commit
  4. 06 Jul, 2018 1 commit
  5. 01 Jun, 2018 1 commit
  6. 08 Apr, 2018 1 commit
  7. 05 Apr, 2018 1 commit
    • Ell's avatar
      app: move brush-core loops to a separate file · 6e314b50
      Ell authored
      Move gimp_brush_core_{subsample,pressurize,solidify}_mask() to a
      separate gimpbrushcore-loops.cc file, so that they can be C++-ified
      independently from the rest of the code.  The next commit
      parallelizes them.
      6e314b50
  8. 25 Mar, 2018 1 commit
    • Massimo Valentini's avatar
      app: various speedups to gimp_brush_core_color_area_with_pixmap() · f561231e
      Massimo Valentini authored
      In gimp_brush_core_color_area_with_pixmap(), use the native area
      format when painting the brush, instead of always going through
      "RGBA float", and create the pixmap -> area fish only once, instead
      of once per scanrow.
      
      In gimp_brush_core_paint_line_pixmap_mask(), avoid modulus
      calculation at each pixel.
      
      See bug #694917.
      f561231e
  9. 12 Feb, 2018 1 commit
    • Ell's avatar
      Bug 793392 - Issue when painting with some layer modes ... · 1be00225
      Ell authored
      ... on perceptual gamma image
      
      When constructing the paint core's paint buffer, in GimpBrushCore
      and GimpInk, use the drawable's format as the preferred format in
      the call to gimp_layer_mode_get_format(), instead of NULL.
      
      Subsequently, use the paint buffer's format, instead of the source
      buffer's format, as the preferred iterator format in
      do_layer_blend(), since the iterator format must match the paint
      buffer format.
      1be00225
  10. 11 Feb, 2018 1 commit
  11. 22 Dec, 2017 3 commits
    • Ell's avatar
      Bug 753412 - New Canvas rotation feature rotates brush. · eded91e1
      Ell authored
      Replace the "lock brush size to zoom" paint option with a "lock
      brush to view" option, which links the entire brush transform to
      the view transform, so that the brush remains invariant in display
      space under scaling, rotation, and reflection.
      eded91e1
    • Ell's avatar
      app: add support for brush reflection · a0b73420
      Ell authored
      Add support for reflecting brushes as part of their transformation.
      The reflection is performed as the last step of the transformation,
      across the vertical axis.
      
      The option to reflect the brush is not exposed in the UI, or
      through the PDB, but is intended to be used for linking the brush
      transformation to the view transformation, in the next commit.
      a0b73420
    • Ell's avatar
      06727734
  12. 15 Jul, 2017 1 commit
  13. 10 Apr, 2017 1 commit
  14. 17 Feb, 2017 1 commit
    • Ell's avatar
      app: remove GIMP_LAYER_MODE_FLAG_WANTS_LINEAR_DATA and friends · 74021275
      Ell authored
      Instead, add a gimp_layer_mode_get_format() function, which takes
      the layer mode, composite space, and blend space, and returns the
      I/O format.
      
      Currently, we always use the composite space format as the I/O
      format.  This simplifies gimp_composite_blend(), and gives us
      composite-space support for the "special" layer mode ops for free.
      74021275
  15. 05 Feb, 2017 1 commit
  16. 31 Jan, 2017 1 commit
  17. 20 Jan, 2017 1 commit
  18. 08 Jan, 2017 1 commit
  19. 29 Nov, 2016 1 commit
  20. 26 Nov, 2016 1 commit
  21. 02 Feb, 2016 1 commit
    • Jehan's avatar
      Bug 648776 - mirror symmetries. · 76f573c9
      Jehan authored
      You can now set any paint tool to mirror painting relatively
      horizontal/vertical axis or a central point (any combination of these 3
      symmetries).
      This has been implemented as a new multi-stroke core, where every stroke
      is actually handled as a multi-stroke (default of size 1).
      This is also the first usage of custom guides for symmetry guiding.
      Current version has to be activated in the playground.
      76f573c9
  22. 19 Apr, 2015 1 commit
  23. 17 Nov, 2014 5 commits
  24. 16 Nov, 2014 1 commit
  25. 12 Nov, 2014 2 commits
  26. 11 Oct, 2014 1 commit
  27. 02 Jul, 2014 1 commit
  28. 14 Oct, 2013 1 commit
    • Michael Natterer's avatar
      app,libgimp*: fix includes to follow our include policy · 697572cc
      Michael Natterer authored
      - don't include <gdk-pixbuf/gdk-pixbuf.h> in headers in app/
      - instead, include it in many .c files instead of <glib-object.h>,
        finally acknowledging the fact that app/ depends on gdk-pixbuf almost
        globally
      - fix up includes as if libgimpbase depended in GIO, which it soon will
      697572cc
  29. 21 May, 2013 1 commit
    • Daniel Sabo's avatar
      Faster paintcore · cd91144f
      Daniel Sabo authored
      Directly access the brush and paint buffers rather than using
      GEGL iterators.
      
      Replicate the relevant parts of GimpApplicator using direct
      access.
      cd91144f
  30. 23 Mar, 2013 1 commit
  31. 08 Dec, 2012 1 commit
  32. 26 Sep, 2012 1 commit
  33. 22 Sep, 2012 1 commit