Commit Graph

3717 Commits

Author SHA1 Message Date
Michael Natterer 9323c2f28c app: move base/boundary.[ch] to core/gimpboundary.[ch]
No other changes yet, just make the move build.
2012-05-02 17:46:02 +02:00
Michael Natterer 62a23f8a89 app: port drawable'e and projection's get_pixel_at() to gegl_buffer_sample() 2012-05-02 17:46:02 +02:00
Michael Natterer 6f6c42a9c3 app: port gimp_channel_combine_mask() to GeglBufferIterator 2012-05-02 17:46:01 +02:00
Michael Natterer 47453eb36b app: remove unused include from gimp-edit.c 2012-05-02 17:46:01 +02:00
Michael Natterer 1b44953352 app: port bucket fill to GEGL
Add mask offset parameters to gimp_gegl_create_apply_opacity_node()
so it's possible to use a part of the mask only, bucket fill
uses that to avoid uneccessary work where the mask is empty.

Should use the same in gimp_drawable_stroke_scan_convert().
2012-05-02 17:46:01 +02:00
Michael Natterer 1780cfc1e7 app: remove the !seed_fill case from gimp_drawable_bucket_fill()
We use gimp_edit_fill() for that now. Also remove bucket fill's
_full() variant because it's unused now.
2012-05-02 17:46:01 +02:00
Michael Natterer 3ec245a991 app: add opacity and paint_mode to gimp_edit_fill[_full]()
and use it instead of bucket-fill in the non-seed-fill case.
2012-05-02 17:46:01 +02:00
Michael Natterer ffeb3515db app: add gimp_edit_fill_full() which takes color and pattern
and use it for dropping colors and patterns on the display
and on the layers dialog, instead of using the overkill
gimp_drawable_bucket_fill_full().
2012-05-02 17:46:01 +02:00
Michael Natterer 9d333190d6 app: simplify gimp_edit_fill_internal() by adding color and pattern arguments
instead of context and fill mode. Collect the actual parameters in
gimp_edit_fill() instead, which makes much more sense.
2012-05-02 17:46:01 +02:00
Michael Natterer 5b1eeab718 app: port coloring/patterning a stroked GimpScanConvert to GEGL 2012-05-02 17:46:00 +02:00
Michael Natterer 0250e549b4 app: remove unused include 2012-05-02 17:46:00 +02:00
Michael Natterer 066d5d84c9 app: port all implementations of GimpProjectable::get_opacity_at() to Gegl 2012-05-02 17:46:00 +02:00
Michael Natterer 0810bd2e44 app: make gimp_image_transform_rgb() transform the alpha too
and remove explicit alpha setting in the returned array in most places.
2012-05-02 17:46:00 +02:00
Øyvind Kolås 7250085d1c app: all Babls used by GIMP are now const 2012-05-02 17:46:00 +02:00
Michael Natterer b68a05f240 app: remove gimpimage-colorhash.[ch]
All indexed mapping is done with Babl now \o/
2012-05-02 17:46:00 +02:00
Michael Natterer 4ba37eacd8 app: remove gimp_image_transform_color()
and port to gimp_image_transform_rgb() to babl_process()
2012-05-02 17:46:00 +02:00
Michael Natterer cdcad83493 app: port gimp_image_transform_temp_buf() to one single babl_process() 2012-05-02 17:46:00 +02:00
Michael Natterer 906176831d app: add image API to get Babl formats based on GimpImageType
because we often have only a type and an image, but no drawable
(yet) to ask for its types.
2012-05-02 17:46:00 +02:00
Michael Natterer b05e213d6d app: stop using gegl_color_set_pixel() with hand-transformed pixels
instead, simply use rgb values and rely on the subsequent
gegl_buffer_set_color() to do the right thing because the buffer know
their indexed format now.
2012-05-02 17:45:59 +02:00
Michael Natterer 14c259cc3e app: remove gimp_drawable_apply_operation_to_tiles() 2012-05-02 17:45:59 +02:00
Michael Natterer cfd94be627 app: also port gimp_channel_convert() to apply_operation_to_buffer() 2012-05-02 17:45:58 +02:00
Michael Natterer 75467664be app: enable GEGL scaling of indexed drawables in gimp_drawable_scale()
by simply using gimp_drawable_apply_operation_to_buffer() and the
right Babl format on the buffer.
2012-05-02 17:45:58 +02:00
Michael Natterer e2afb75292 app: use gimp_drawable_apply_operation_to_buffer() in gimp_layer_flatten()
and not gimp_drawable_apply_operation_to_tiles() because that would
guess the wrong Babl format for the new tiles if the image is indexed.
2012-05-02 17:45:58 +02:00
Michael Natterer 9ecdea30b8 app: add gimp_drawable_get_format_without_alpha() 2012-05-02 17:45:58 +02:00
Michael Natterer 9a09d3a762 app: drop "babl" from gimp_foo_get_babl_format[_with_alpha]() 2012-05-02 17:45:58 +02:00
Michael Natterer e9ecc40f02 app: add GimpPickable::get_babl_format_with_alpha() 2012-05-02 17:45:58 +02:00
Øyvind Kolås f5839e785e app: sync with babl API change of babl_new_palette 2012-05-02 17:45:58 +02:00
Michael Natterer 744199a8f7 app: remove gimp_layer_new_from_region() and use from_buffer() instead 2012-05-02 17:45:57 +02:00
Michael Natterer 553e65e859 app: add gimp_pixbuf_create_buffer() and use it in GimpBuffer 2012-05-02 17:45:57 +02:00
Michael Natterer 3ce071b89a app: let Babl handle converting layers to indexed
Except of course the initial indexed conversion which needs more logic
than a simple color mapping.
2012-05-02 17:45:57 +02:00
Michael Natterer e309e009f7 app: let Babl handle color conversion in gimp_drawable_fill() 2012-05-02 17:45:57 +02:00
Michael Natterer 69b2aa880f app: add gimp_pattern_create_buffer() and use it in gimp_edit_fill_internal() 2012-05-02 17:45:56 +02:00
Michael Natterer 733a98d33b app: let Babl handle all color conversion in gimp_edit_fill_internal()
also for indexed, thanks to the new palette format.
2012-05-02 17:45:56 +02:00
Michael Natterer d146cc40ea app: require a Babl for all buffers created on top of tiles
Fixes quite some introduced glitches with indexed mode because
the buffers use the right pixel format now.
2012-05-02 17:45:56 +02:00
Michael Natterer 19fc49a972 app: remove unused variable from last commit 2012-05-02 17:45:56 +02:00
Michael Natterer e03dcc074b app: use the new Babl palette format to implement indexed images
- keep babl palette formats around in the image in indexed mode
- create drawables with the right format
- as first test, convert indexed drawabled to rgb/gray by simply
  calling gegl_buffer_convert()
2012-05-02 17:45:56 +02:00
Michael Natterer 88388467cc app: move the layer mask show, edit, apply API from GimpLayerMask to GimpLayer
because it would require really evil hacks to honor these properties
in the gegl projection if they were on the mask, and because they
actually belong to the layer.
2012-05-02 17:45:56 +02:00
Michael Natterer c22b6a2884 app: move variable to local scope 2012-05-02 17:45:56 +02:00
Michael Natterer 684f7f167b app: use GimpOperationSetAlpha in gimp_layer_create_mask()
After transferring the layer's alpha to the mask, the alpha needs to
be set to opaque.
2012-05-02 17:45:56 +02:00
Michael Natterer 53e0671ce0 app: port gimp_palette_import_extract() to GeglBufferIterator 2012-05-02 17:45:55 +02:00
Michael Natterer f05de34cd6 app: add GimpPickable::get_babl_format() 2012-05-02 17:45:55 +02:00
Michael Natterer b2d8aef239 app: remove obsolete include in gimpchannel.c 2012-05-02 17:45:55 +02:00
Michael Natterer dfa7173ee0 app: port gimp_channel_combine_ellipse_rect() to GeglBufferIterator 2012-05-02 17:45:55 +02:00
Michael Natterer acad9ac510 app: flush both write and write buffer in gimp_drawable_update()
so tiles and buffers are up-to-date before anyone has a chance to
access the modified pixels.
2012-05-02 17:45:55 +02:00
Michael Natterer a9c1392572 app: port gimp_channel_real_bounds() to GeglBufferIterator 2012-05-02 17:45:55 +02:00
Michael Natterer 7c1a642966 app: minor cleanup and commenting in gimp_scan_convert_render_full() 2012-05-02 17:45:55 +02:00
Michael Natterer 105aff0296 app: flush the drawable_s write_buffer in gimp_drawable_update()
because it's called after each drawable modification and therefore a
good place to sync buffrs and tiles.
2012-05-02 17:45:55 +02:00
Michael Natterer 410d6405d6 app: use GeglBufferIterator in gimp_channel_real_is_empty() 2012-05-02 17:45:55 +02:00
Michael Natterer 299886d20d app: convert drawables between RGB and GRAY using gegl_buffer_copy() 2012-05-02 17:45:54 +02:00
Michael Natterer 267d17d940 app: simplify gimp_drawable_offset() a lot
by simply GEGL-initializing everything if we are not wrapping around,
GEGL will later optimize that.
2012-05-02 17:45:54 +02:00