Michael Natterer
67908df578
app: add XCF support for >8bit, using file format version 4
2012-05-02 17:51:19 +02:00
Michael Natterer
1badcb7ce9
app: add GIMP_PRECISION_U32 and all its formats
2012-05-02 17:51:19 +02:00
Michael Natterer
c57b4f0fa3
app: port by color select and fuzzy select to float
...
so it works nicely on all precisions, disable HSV color matching for
now, need to decide what to do with it.
2012-05-02 17:51:18 +02:00
Michael Natterer
9e73e7ebfe
app: gimp_pickable_get_color_at(): 4 bytes is not enough for pixels any longer
2012-05-02 17:51:18 +02:00
Michael Natterer
926f746b66
app: add gimp_babl_compat_u8_format() instead of having this code 5 times
2012-05-02 17:51:18 +02:00
Michael Natterer
49ab0624f3
app: add undo_desc for converting the image to GIMP_PRECISION_HALF
2012-05-02 17:51:18 +02:00
Simon Budig
89113fed51
code formatting fixes, some simplifications
2012-05-02 17:51:18 +02:00
Simon Budig
64ad69e331
first shot at GEGL-based png-save
2012-05-02 17:51:18 +02:00
Øyvind Kolås
8b028ee8ce
depend on babl>=0.1.11
2012-05-02 17:51:18 +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
Øyvind Kolås
a539878bc4
app: set default tilemul for gimpgegltilebackend to 2
2012-05-02 17:51:18 +02:00
Michael Natterer
58b56ecec6
app: increase the plug-in SHM size so it can hold a float RGBA tile
2012-05-02 17:51:17 +02:00
Simon Budig
5edf1b1972
first shot at PNG loading with GEGL
...
Doesn't work yet for 16bit PNGs, there is a weird crash in libgimp
but I didn't do anything...
This closely follows the old pixel region based code, which might
be suboptimal for gegl, but has the advantage of keeping metadata intact.
Indexed currently is disabled, needs resurrecting.
2012-05-02 17:51:17 +02:00
Michael Natterer
f624d7c16a
app: calculate the histogram in 8 bit rather than creating nonsense
2012-05-02 17:51:17 +02:00
Michael Natterer
dc7bc8f292
app: fix menu label: it's 32 bit float not 16 bit float
2012-05-02 17:51:17 +02:00
Michael Natterer
7ba43c6d1d
app: add GEGL support in gimpimage-merge.c
2012-05-02 17:51:17 +02:00
Michael Natterer
d81ea1315e
app: implement active, affected components in GEGL
...
Add GimpOperationMaskComponents, enum GimpComponentMask, and image and
drawable infrastructure to get the right mask, and plug the mask
operation into gimp_gegl_create_apply_buffer_node().
2012-05-02 17:51:17 +02:00
Michael Natterer
92b4c66777
pdb: export gimp-image-get-precision
2012-05-02 17:51:17 +02:00
Michael Natterer
8918fd338b
pdb/libgimp: export gimp-image-new-with-precision
...
And switch on precision awareness of a plug-in in the core when
possible, instead of in the libgimp wrappers.
2012-05-02 17:51:17 +02:00
Michael Natterer
3e4edc1aea
pdb/libgimp: export enum GimpPrecision and gimp-image-convert-precision
2012-05-02 17:51:17 +02:00
Michael Natterer
2857c1c031
pdb: don't allow to convert non-u8 images to indexed
2012-05-02 17:51:16 +02:00
Michael Natterer
b4580e74e6
app: implement converting images between precisions, including menu items
2012-05-02 17:51:16 +02:00
Michael Natterer
17e36e9b3f
app: make sure the layer mask's precision gets converted too
...
when the layer's precision is converted.
2012-05-02 17:51:16 +02:00
Michael Natterer
a7198ac80f
app: allow indexed images only at u8 precision
2012-05-02 17:51:16 +02:00
Michael Natterer
f164069c9c
app: remove gimp_drawable_bytes() and ask its format instead
2012-05-02 17:51:16 +02:00
Michael Natterer
f851bf0930
pdb: use compat formats for drawable-get-pixel and drawable-set-pixel
...
unless the plug-in is precision-aware.
2012-05-02 17:51:16 +02:00
Michael Natterer
e15702cbe5
app: create gimp-babl-compat.[ch] for gimp_babl_format_get_image_type()
...
and remove gimp_drawable_type().
2012-05-02 17:51:15 +02:00
Michael Natterer
96ebc6f848
app: add "new_precision" argument to gimp_drawable_convert_type()
...
for clarity and consistency with the "new_base_type" argument.
2012-05-02 17:51:15 +02:00
Michael Natterer
0e8a00db8b
app: honor precision when copying drawables between images
2012-05-02 17:51:15 +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
816a811958
app: enable "use_gegl" toggling in gimp_drawable_real_apply_buffer()
2012-05-02 17:51:14 +02:00
Michael Natterer
2de801e1de
app: enable the precision combo in GimpTemplateEditor
2012-05-02 17:51:14 +02:00
Michael Natterer
21dfb8bd9f
app/libgimp: enable plug-ins on high precision images
...
Add gimp_plugin_enable_precision() in libgimp which switches the
plug-in to deal with the drawables' real precision, call it from the
libgimp GeglBuffer and Babl format APIs. If it's not enabled, let the
core's plug-in convert the tiles to legacy formats when sending them
over the wire.
2012-05-02 17:51:14 +02:00
Michael Natterer
85ee13dd7d
app: don't crash GimpOperationReplaceMode is mask is NULL
2012-05-02 17:51:14 +02:00
Michael Natterer
32f6015898
app: change replace's "opacity" property from float to double
2012-05-02 17:51:14 +02:00
Ville Sokk
753bc23834
app: new gegl replace mode that uses mask and opacity inputs
2012-05-02 17:51:14 +02:00
Michael Natterer
0011fe5c50
app: special case REPLACE_MODE in gimp_gegl_create_apply_buffer_node()
...
it needs the mask/opacity on a separate input.
2012-05-02 17:51:14 +02:00
Michael Natterer
c0f7538f4f
app: port gimpchannel-combine.c to float
...
so all basic mask manipulations are float now
2012-05-02 17:51:14 +02:00
Michael Natterer
ae9ced8432
app: port gimp_channel_bounds() and is_empty() to float
2012-05-02 17:51:14 +02:00
Michael Natterer
90d5624c71
app: use the mask's actual format instead of always float in GimpMaskUndo
2012-05-02 17:51:14 +02:00
Ville Sokk
7eb0d8f4c8
app: added initial gegl replace mode
2012-05-02 17:51:13 +02:00
Michael Natterer
558d4879cd
app: create a u8 preview of the right size for GimpBuffers
2012-05-02 17:51:13 +02:00
Michael Natterer
6bff1b21d0
app: uncruftify combine_regions_replace() a bit to ease porting
2012-05-02 17:51:13 +02:00
Michael Natterer
cdd3df6c51
app: remove unused function cubic() from paint-funcs.c
2012-05-02 17:51:13 +02:00
Michael Natterer
5e18004bff
app: get rid of base-utils.[ch] and move its functions to gimp-utils.[ch]
2012-05-02 17:51:13 +02:00
Michael Natterer
5cf45ff30b
app: remove apply_mask_to_region() and its helper functions
2012-05-02 17:51:13 +02:00
Michael Natterer
3090b07606
app: use gimp_gegl_apply_mask() in gimp_drawable_real_replace_buffer()
2012-05-02 17:51:13 +02:00
Michael Natterer
3d095fa806
app: completely port gradient rendering to GEGL
2012-05-02 17:51:13 +02:00
Michael Natterer
71e51e18c9
app: don't pass a PixelRegion to gradient_precalc_shapeburst()
...
it only needs a rectangle.
2012-05-02 17:51:13 +02:00
Michael Natterer
0a4e138353
app: port gradient rendering with supersampling to GEGL, always use float
2012-05-02 17:51:13 +02:00