1. 26 May, 2016 2 commits
    • Michael Natterer's avatar
      libgimpcolor: add gimp_color_transform_can_gegl_copy() · ca349f88
      Michael Natterer authored
      Which takes two profiles and returns TRUE if converting between
      them works correctly without a GimpColorTransform. Use it in
      gimp_color_transform_new() to return a NULL transform if none
      is needed. Took the code from gimp-gegl-loops.c.
      ca349f88
    • Michael Natterer's avatar
      libgimpcolor: add new object GimpColorTransform · cc928879
      Michael Natterer authored
      which encapsulates a cmsHTRANSFORM and does all the pixel format
      conversion magic. It has API to create transforms and proofing
      transforms, and to convert pixels arrays and GeglBuffers.
      
      Before, each place which has a transform had to keep around the
      transform and its input and output Babl formats, and had to implement
      lots of stuff itself. Now all that lives in GimpColorTransform,
      removing lots of logic from many places, and pretty much removing lcms
      from the public API entirely.
      
      This removes including <lcms2.h>, LCMS_LIBS and LCMS_CFLAGS from
      almost all directories and potentially allows to replace lcms by
      something else.
      cc928879
  2. 04 May, 2016 1 commit
  3. 21 Apr, 2016 1 commit
  4. 09 Apr, 2016 1 commit
    • Michael Natterer's avatar
      Bug 756389 - Color-managing grayscale images · f34aa5fa
      Michael Natterer authored
      Rename profile constructors to say "d65_gray" instead of just "gray",
      "srgb_trc" instead of "srgb_gamma", and drop the "srgb" from
      "srgb_linear" because we now say "d65". This should be a naming scheme
      that doesn't conflict with whatever future functions we might add.
      f34aa5fa
  5. 15 Dec, 2015 1 commit
  6. 13 Dec, 2015 3 commits
  7. 23 Nov, 2015 1 commit
  8. 20 Oct, 2015 1 commit
  9. 19 Aug, 2015 1 commit
  10. 12 Jul, 2015 1 commit
  11. 10 Jul, 2015 1 commit
    • Michael Natterer's avatar
      libgimpcolor, *: change GimpColorProfile to be a GObject · c102dde9
      Michael Natterer authored
      it used to be a typedef to gpointer and actually was a cmsHPROFILE.
      
      Change its API to be more "standard", remove the public close()
      function. The object caches both the cmsHPROFILE and the data/length
      ICC blob, so conversions between the two become obsolete (simply call
      get_lcms_profile() or get_icc_profile()).
      
      Adapt everything to the new API, but port it in a naive way for now,
      the code doesn't take advantage of the new possibilities yet (like
      refcounting).
      c102dde9
  12. 16 Jun, 2015 1 commit
  13. 03 Jun, 2015 1 commit
  14. 12 May, 2015 2 commits
  15. 08 May, 2015 1 commit
  16. 06 May, 2015 1 commit
  17. 10 Apr, 2014 1 commit
  18. 30 Mar, 2014 1 commit
    • Michael Natterer's avatar
      libgimpcolor: add gimp_lcms_profile_get_label() · d7037650
      Michael Natterer authored
      which returns a string meant to label the profile in the GUI, it's
      either the profile's description, its model, or "(unnamed profile)" as
      a fallback. Use the function instead of duplicating that logic
      inconsistently and imcompletely all over the place.
      d7037650
  19. 29 Mar, 2014 1 commit
  20. 16 Mar, 2014 1 commit
  21. 15 Mar, 2014 1 commit
  22. 14 Mar, 2014 2 commits
  23. 09 Feb, 2014 1 commit
  24. 16 Jun, 2013 1 commit
  25. 03 May, 2012 2 commits
  26. 02 May, 2012 1 commit
  27. 01 May, 2011 1 commit
  28. 29 Oct, 2008 1 commit
  29. 01 Jun, 2007 1 commit
    • Sven Neumann's avatar
      libgimpcolor/Makefile.am libgimpcolor/gimpcolor.h · 6c733870
      Sven Neumann authored
      2007-06-01  Sven Neumann  <sven@gimp.org>
      
              * libgimpcolor/Makefile.am
              * libgimpcolor/gimpcolor.h
              * libgimpcolor/gimpcolortypes.h
              * libgimpcolor/gimpcolormanaged.[ch]: added an interface that 
      will
              be used to implement the missing bits of color management.
      
              * libgimpcolor/gimpcolor.def: updated.
      
      
      svn path=/trunk/; revision=22691
      6c733870
  30. 16 Aug, 2006 1 commit
  31. 27 Apr, 2006 1 commit
    • Sven Neumann's avatar
      hide the GimpParamSpecRGB struct again. Added getter for the has_alpha · 0b9a9e4e
      Sven Neumann authored
      2006-04-27  Sven Neumann  <sven@gimp.org>
      
      	* libgimpcolor/gimprgb.[ch]: hide the GimpParamSpecRGB struct
      	again.  Added getter for the has_alpha field.
      
      	* libgimpcolor/gimpcolor.def: updated.
      
      	* app/config/gimpconfig-dump.c
      	* libgimpconfig/gimpconfig-serialize.c: use
      	gimp_param_spec_rgb_has_alpha() instead of accessing the
      	GimpParamSpecRGB struct directly.
      0b9a9e4e
  32. 02 Apr, 2006 1 commit
    • Michael Natterer's avatar
      removed GIMP_TYPE_PARASITE, GIMP_TYPE_PARAM_PARASITE and the GimpRGB · 8a856045
      Michael Natterer authored
      2006-04-02  Michael Natterer  <mitch@gimp.org>
      
      	* app/core/gimpparamspecs.[ch]: removed GIMP_TYPE_PARASITE,
      	GIMP_TYPE_PARAM_PARASITE and the GimpRGB utility functions. Some
      	fixes/cleanup in the new array and string array code.
      
      	* libgimpbase/gimpbase.def
      	* libgimpbase/gimpparasite.[ch]
      	* libgimpcolor/gimpcolor.def
      	* libgimpcolor/gimprgb.[ch]: added the parasite and rgb stuff here.
      
      	* app/pdb/gimpargument.c: #include "libgimpbase/gimpbase.h"
      
      	* app/pdb/procedural_db.c: removed unused variable.
      8a856045
  33. 03 Aug, 2005 1 commit
    • Sven Neumann's avatar
      deprecated RGB intensity functions and definitions. These coefficients do · 4f870bc1
      Sven Neumann authored
      2005-08-03  Sven Neumann  <sven@gimp.org>
      
      	* libgimpcolor/gimprgb.[ch]: deprecated RGB intensity functions
      	and definitions. These coefficients do not accurately compute
      	luminance for contemporary monitors. Instead the coefficients from
      	the sRGB spec should be used which have now been added.
      
      	* libgimpcolor/gimpcolor.def: updated.
      
      	* libgimp/gimpdrawable.c
      	* libgimp/gimppixelfetcher.c
      	* app/base/colorize.c
      	* app/base/levels.c
      	* app/base/temp-buf.c
      	* app/core/gimpdrawable-blend.c
      	* app/core/gimpdrawable-convert.c
      	* app/core/gimpdrawable-desaturate.c
      	* app/core/gimpimage-convert.c
      	* app/core/gimpimage.c
      	* app/gui/splash.c
      	* app/widgets/gimpgradienteditor.c
      	* modules/colorsel_triangle.c
      	* plug-ins/common/aa.c
      	* plug-ins/common/bumpmap.c
      	* plug-ins/common/colorify.c
      	* plug-ins/common/despeckle.c
      	* plug-ins/common/displace.c
      	* plug-ins/common/engrave.c
      	* plug-ins/common/gradmap.c
      	* plug-ins/common/grid.c
      	* plug-ins/common/mng.c
      	* plug-ins/common/newsprint.c
      	* plug-ins/common/png.c
      	* plug-ins/common/whirlpinch.c
      	* plug-ins/gflare/gflare.c
      	* plug-ins/gfli/gfli.c
      	* plug-ins/maze/handy.c
      	* plug-ins/pagecurl/pagecurl.c: use gimp_rgb_luminance() and
      	friends instead of the deprecated intensity functions.
      4f870bc1
  34. 24 Jun, 2005 1 commit
    • Manish Singh's avatar
      add gimp_rgba_parse_css · 60aa23a6
      Manish Singh authored
      2005-06-24  Manish Singh  <yosh@gimp.org>
      
              * libgimpcolor/gimpcolor.def: add gimp_rgba_parse_css
      60aa23a6