Michael Natterer
3c918353fb
app: add double precision support, for completeness
...
and because it makes us look utterly cool.
2014-03-09 00:43:55 +01:00
Michael Natterer
caf73f5f35
Add support for both gamma-corrected and linear for all bit depths
...
- 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.
2013-06-23 16:51:24 +02:00
Michael Natterer
d6b3a81821
app: add gimp_babl_print_pixel (format, pixel)
...
which returns a NULL-terminated string array with the pixels's
components, converted to text in the current locale.
2013-06-10 00:30:18 +02:00
Daniel Sabo
8d88b71fad
Implement gimp_drawable_get_linear
2013-04-30 15:36:22 -07:00
Michael Natterer
2e54d88ef2
app: fix the babl model of the "A u16" format
...
makes babl stats crash one line later...
2012-12-03 23:04:52 +01:00
Michael Natterer
c9e788c39d
app: add gimp_babl_mask_format(precision)
2012-09-27 23:50:20 +02:00
Øyvind Kolås
20094807c8
app: gimp-babl.c fix formatting
2012-09-22 17:54:38 +01:00
Øyvind Kolås
594b4bcdef
app: use sRGB gamma in u16 precision
...
This permits editing sRGB profile PNGs and other formats using sRGB storage,
without this editing a 16bit bpc PNG in u16 mode would cause banding in the
shadow areas on import. File that do not have an sRGB like gamma should be
promoted to a higher bit-depth on import.
2012-09-22 17:47:43 +01:00
Michael Natterer
1badcb7ce9
app: add GIMP_PRECISION_U32 and all its formats
2012-05-02 17:51:19 +02:00
Michael Natterer
2e7944cad0
app: add GIMP_PRECISION_HALF for 16 bit floating point
...
and use babl_format_get_palette() to simplify some code.
2012-05-02 17:51:18 +02:00
Michael Natterer
5167550271
app: add GIMP_PRECISION_U16 and all needed 16 bit integer formats
2012-05-02 17:51:15 +02:00
Michael Natterer
a34afd63d8
app: add GIMP_PRECISION_FLOAT and all its formats
...
Images in that format can't be created currently, the legacy code
crashes royally on it.
2012-05-02 17:51:11 +02:00
Michael Natterer
8a55b13577
app: add gimp_babl_component_format() and use it in GimpImage
2012-05-02 17:51:10 +02:00
Michael Natterer
4f83ca48dc
app: add missing formats to gimp_babl_get_description()
2012-05-02 17:51:09 +02:00
Michael Natterer
678255604d
app: add a GimpPrecision enum that for now contains GIMP_PRECISION_U8
...
Add gimp_image_get_precision(), and a "precision" argument to
gimp_babl_format(). Change code accordingly and do some more format
related cleanups.
2012-05-02 17:51:09 +02:00
Michael Natterer
15d1827ead
app: add gimp_babl_format() and use it in gimp_image_get_format()
2012-05-02 17:51:08 +02:00
Michael Natterer
ff931e1ded
app: move gimp_babl_format_get_base_type() to gimp-babl.[ch]
...
The GimpImageBaseType enum is going to go away, but a format -> enum
API is going to stay around.
2012-05-02 17:51:08 +02:00
Michael Natterer
e737bf77fa
app: add gimp-babl.[ch] and move Babl specific code there
2012-05-02 17:51:08 +02:00