1. 24 Nov, 2018 1 commit
  2. 23 Nov, 2018 1 commit
  3. 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.
  4. 11 Jul, 2018 1 commit
  5. 01 Jul, 2018 1 commit
  6. 28 May, 2018 1 commit
  7. 26 May, 2018 1 commit
  8. 20 May, 2018 2 commits
  9. 20 Aug, 2017 1 commit
  10. 26 Feb, 2017 1 commit
  11. 08 Jan, 2017 1 commit
  12. 17 Jun, 2015 1 commit
  13. 06 Nov, 2014 1 commit
  14. 15 Aug, 2014 1 commit
  15. 02 May, 2014 2 commits
    • Michael Natterer's avatar
      app: add screen and monitor to all display and image window constructors · 7f23fbec
      Michael Natterer authored
      so they appear on the proper monitor as well.
    • Michael Natterer's avatar
      app: make things behave more reasonable with multiple monitors · 843866e7
      Michael Natterer authored
      There is now a preference option that determines whether windows
      should be opened on the same monitor as before. It should be disabled
      when the machine gets monitors plugged/unplugged dynamically ("laptop")
      and enabled when there is a static multi-monitor setup ("wokstation").
      This is merely the current simplistic policy on top of the newly added
      underlying infrastructure:
      - pass integer monitor numbers around in all places where we already
        pass around a GdkScreen. Pass the "current" monitor to these changed
        APIs, where "current" is either the monitor where the action-triggering
        widget is, or if that is unavailable the monitor where the mouse is.
      - add gimp_widget_get_monitor() in order to easily get to the monitor,
        just like gtk_widget_get_screen().
      - add screen and monitor parameters in some places that were missed
      - in sessionrc, save all window positions relative to the window's
        monitor, and save the monitor separately, if it's not the screen's
        primary monitor.
      - when restoring window positions, use the stored monitor when the new
        prefs options says so (use the screen's primary monitor if there is
        no stored monitor), otherwise use current monitor that is now passed
  16. 23 Jun, 2013 1 commit
    • Michael Natterer's avatar
      Add support for both gamma-corrected and linear for all bit depths · caf73f5f
      Michael Natterer authored
      - Add new enum GimpComponentType which contains u8, u16, u32 etc.
      - Change GimpPrecision to be u8-linear, u8-gamma, u16-linear etc.
      - Add all the needed formats to gimp-babl.c
      - Bump the XCF version to 5 and make sure version 4 with the old
        GimpPrecision enum values is loaded correctly
      This change blows up the precision enums in "New Image" and
      Image->Precision so we can test all this stuff. It is undecided what
      format will be user-visible options in 2.10.
  17. 05 Jun, 2012 1 commit
  18. 02 May, 2012 3 commits
  19. 27 May, 2011 1 commit
  20. 18 May, 2011 1 commit
  21. 02 Feb, 2011 1 commit
  22. 26 Oct, 2010 4 commits
  23. 30 Jan, 2010 1 commit
  24. 29 Jan, 2010 1 commit
    • Martin Nordholts's avatar
      app: Have separate output gimpdir for test cases · 3612ef2d
      Martin Nordholts authored
      Make our test cases write gimpdir files in a dedicate output directory
      by changing GIMP2_DIRECTORY at runtime. This ends the writing to the
      source directory which make distcheck doesn't like, and it also allows
      us to have a separate expected sessionrc for the session management
      test. In that test we load a GIMP 2.6 formated sessionrc but write one
      updated for 2.8.
      We perform this change by passing the builddir through an environment
      variable to the test cases. The patch also does some generalizations
      in gimp-app-test-utils.c and adapts test cases accordingly.
      Also do an adjustment in sessionrc on the toolbox size since
      GIMP/GTK+/X/whatever has a tendency to adjust that during runs. The
      new size is stable for the moment.
  25. 16 Jan, 2010 1 commit
  26. 08 Jan, 2010 1 commit
  27. 24 Dec, 2009 1 commit
    • Martin Nordholts's avatar
      app/tests: Fix warnings about files not existing · 780ebd7c
      Martin Nordholts authored
      Let each test sets GIMP2_DIRECTORY on their own through the help of a
      new test utility function gimp_test_utils_set_gimp2_directory() that
      is compiled into its own lib which tests are then linked with. Also,
      instead of using "/tmp/gimpdir", we use "gimpdir-empty" in the source
      dir. This way we get rid of a bunch of annoying warnings when running
      the tests and have more control.
  28. 16 May, 2009 2 commits
  29. 15 May, 2009 1 commit
  30. 01 May, 2009 1 commit
  31. 30 Apr, 2009 1 commit
    • Martin Nordholts's avatar
      app: Introduce gimpfile.h · e622dc3c
      Martin Nordholts authored
      Introduce gimpfile.h which for now contains defines for GObject data
      keys used when managing save and open dialog URI defaults. More are to
      be added.
  32. 17 Jan, 2009 1 commit
    • Michael Natterer's avatar
      Change licence to GPLv3 (and to LGPLv3 for libgimp). · d9b5207a
      Michael Natterer authored
      2009-01-17  Michael Natterer  <mitch@gimp.org>
      	* all files with a GPL header and all COPYING files:
      	Change licence to GPLv3 (and to LGPLv3 for libgimp).
      	Cleaned up some copyright headers and regenerated the parsers in
      	the ImageMap plugin.
      svn path=/trunk/; revision=27913