Michael Natterer
28c2fdc9d5
app: "fix" the format of the indexed component
...
to be "Y u8", so it at least extracts something reasonable.
2012-05-02 17:51:21 +02:00
Michael Natterer
252ba10537
app: indentation in gimpdrawable-blend.c
2012-05-02 17:51:21 +02:00
Michael Natterer
981f039053
app: don't disable the blend tool on indexed drawables
2012-05-02 17:51:21 +02:00
Michael Natterer
ee31359587
app: move gimp_image_convert_precision() to its own file
...
gimpimage-convert.c is big enough already
2012-05-02 17:51:21 +02:00
Simon Budig
87abc72832
file-png: use gegl iterators for some of the code
2012-05-02 17:51:21 +02:00
Simon Budig
1f5c631970
no comma operator there...
2012-05-02 17:51:21 +02:00
Simon Budig
7f45819202
==== remove obsolete warning ====
2012-05-02 17:51:21 +02:00
Simon Budig
641848ea0b
Fix the palette handling in gimp_drawable_get_format()
2012-05-02 17:51:21 +02:00
Simon Budig
1549dd00ba
file-png: implement PNG indexed saving/loading
2012-05-02 17:51:20 +02:00
Simon Budig
4c83e208d4
app: fix precision condition for indexed images
2012-05-02 17:51:20 +02:00
Simon Budig
2cb15f8669
libgimp: fix swapped alpha handling in indexed case
2012-05-02 17:51:20 +02:00
Michael Natterer
f057aa7932
app: rename GimpMaskUndo::convert-precision to ::convert-format
2012-05-02 17:51:20 +02:00
Ville Sokk
c5d7aaf52e
app: added gegl erase mode
2012-05-02 17:51:20 +02:00
Michael Natterer
c24ff24311
app: when converting an image's precision, don't forget the selection mask
2012-05-02 17:51:19 +02:00
Michael Natterer
ce33d2ed33
app: display the precision in the image properties dialog
2012-05-02 17:51:19 +02:00
Michael Natterer
7b09456887
app: temporarily disable drawable previews for precision > u8
2012-05-02 17:51:19 +02:00
Michael Natterer
c7522d1876
app: explicitly use a u8 format for image previews
...
instead of relying on the temporary fact that the projection is always
8 bit.
2012-05-02 17:51:19 +02:00
Michael Natterer
a3a62b4546
app: add shortcut functions gimp_dynamics_get_foo_value()
...
and use them for simple use cases instead of dynamics_get_output() and
output_get_foo_value().
2012-05-02 17:51:19 +02:00
Michael Natterer
46ce18f994
app: don't disable perspective clone on indexed drawables any longer
2012-05-02 17:51:19 +02:00
Ville Sokk
0ac531fa3b
app: fixed a bug in gegl legacy blending modes
2012-05-02 17:51:19 +02:00
Michael Natterer
fa0faf4254
app: replace the polar-coords plug-in by gegl:polar-coordinates
2012-05-02 17:51:19 +02:00
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