Commit graph

15625 commits

Author SHA1 Message Date
Michael Natterer df5ab0f551 app: add gimp_histogram_clear_values() and use it
instead of abusing gimp_histogram_calculate() with a NULL region for
that purpose; calculate() is about to go away.
2012-05-02 17:51:04 +02:00
Michael Natterer cadd54823b app: clean up and build the histogram op gift 2012-05-02 17:51:04 +02:00
Øyvind Kolås ad8b16e6ad app: histogram sink skeleton gift for mitch 2012-05-02 17:51:04 +02:00
Michael Natterer 9a4d84e683 app: port gimp_brush_core_color_area_with_pixmap() to GeglBufferIterator
This can be simplified, needs revisiting.
2012-05-02 17:51:03 +02:00
Michael Natterer 774b6e3c16 app: return a format, not image type from file_open_thumbnail()
create a dummy indexed format if neccessary, which can only be used
for checking with babl_format_is_palette(). Port the rest of
GimpImageFile from GimpImageType to Babl*.
2012-05-02 17:51:03 +02:00
Michael Natterer 7b46656f7d app: name the image's palette formats "-gimp-indexed-format-image_id" 2012-05-02 17:51:03 +02:00
Michael Natterer 9dd119c871 app: gimp_template_get_image_type: return GimpImageBaseType not GimpImageType 2012-05-02 17:51:03 +02:00
Michael Natterer 9d518677d2 app: remove gimpdrawable-convert.[ch]
This can now be done in gimp_drawable_real_convert_type() with a few
lines of GEGL buffer copying.
2012-05-02 17:51:03 +02:00
Michael Natterer 95cb77edc9 app: change gimp_image_get_format() to take a base_type and a with_alpha boolean
which kills almost all remaining use of GimpImageType.
2012-05-02 17:51:03 +02:00
Michael Natterer 310c1bfb71 app: add gimp_babl_get_description()
which keeps around human readable and translatable strings for Babl
formats, as replacement for the to-be-obsoleted image type etc. enum
descriptions.
2012-05-02 17:51:03 +02:00
Michael Natterer a9e60bf6ce app: make the tests build again 2012-05-02 17:51:03 +02:00
Michael Natterer 872bfabc9b app: don't use gimp_drawable_type() in more places
that talk to the outside world.
2012-05-02 17:51:02 +02:00
Michael Natterer fb93b1344a app: don't use gimp_drawable_type() when saving to XCF
Instead, convert the drawable's format to a GimpImageType right here
where needed.
2012-05-02 17:51:02 +02:00
Michael Natterer ca6323f382 app: fix signal signature of GimpColorTool::picked()
A Babl format is not of GIMP_TYPE_IMAGE_TYPE, this would have horribly
crashed on 64bit, I guess...
2012-05-02 17:51:02 +02:00
Michael Natterer 14459cc637 app: remove as much as possible from base-types.h
Wanted to remove it completely, but that's currently not nicely
doable.
2012-05-02 17:51:02 +02:00
Michael Natterer 685a48d59a app: move gimp_gegl_buffer_get_temp_buf() to gimptempbuf.[ch] 2012-05-02 17:51:02 +02:00
Michael Natterer 324f594fa9 app: remove "x" and "y" members from GimpTempBuf
and generally clean up things a bit.
2012-05-02 17:51:02 +02:00
Michael Natterer 1bcab234ab app: explicitly pass around the offsets of the view renderer's temp_bufs
and don't use temp_buf->x and ->y.
2012-05-02 17:51:02 +02:00
Michael Natterer b78d6c1d5d app: port preview rendering to GEGL/cairo
which gets rid of the render blend arrays in gimprender.[ch], and of
image preview demultiplication.
2012-05-02 17:51:02 +02:00
Michael Natterer 5735e35f0c app: add gimp_cairo_image_surface_create_buffer()
and use it to shrink text layer rendering to even fewer lines.
2012-05-02 17:51:02 +02:00
Michael Natterer 53cf2c657b app: move the GTK-free cairo utility functions to core/gimp-cairo.[ch] 2012-05-02 17:51:02 +02:00
Øyvind Kolås 25030ce6c4 app: no need to clear newly created buffers
Freshly created GeglBuffers, that are native GeglBuffers are already sparse
and all tiles are implicit COW empty tiles.
2012-05-02 17:51:01 +02:00
Michael Natterer 631134180e app: swallow gimp_temp_buf_demultiply() into gimp_image_get_new_preview() 2012-05-02 17:51:01 +02:00
Michael Natterer feb4b9cfe9 app: fix gimp_layer_new() API docs 2012-05-02 17:51:01 +02:00
Michael Natterer 50165d4238 app: remove copy_region() 2012-05-02 17:51:01 +02:00
Michael Natterer 37559e3037 app: use gegl_buffer_copy() in gimp_drawable_real_replace_buffer() 2012-05-02 17:51:01 +02:00
Michael Natterer 7eb8b0b925 app: remove base-enums.[ch]
and move its remaining content to core-enums, move the siox enum to
base-types.h.
2012-05-02 17:51:01 +02:00
Michael Natterer bdf6b48138 app: move GimpTempBuf from base/ to core/
and forget about include policy in base/, it's scheduled for removal
anyway.
2012-05-02 17:51:01 +02:00
Michael Natterer dccb909009 app: make GimpTempBuf reference counted
and remove the "take_ownership" parameter from
gimp_temp_buf_create_buffer(), simply always ref the buf.
2012-05-02 17:51:00 +02:00
Michael Natterer d5d8e36d21 app: gimp_-namespace all GimpTempBuf functions 2012-05-02 17:51:00 +02:00
Michael Natterer 42a5f01be3 app: rename TempBuf to GimpTempBuf 2012-05-02 17:51:00 +02:00
Michael Natterer 9285529f9b app: silence compiler warning in GimpBucketFillTool 2012-05-02 17:50:59 +02:00
Michael Natterer bf9627bdda app: disable GEGL code path in gimp_drawable_real_apply_buffer()
it makes GEGL deadlock when applying GimpImageMap stuff.
2012-05-02 17:50:59 +02:00
Michael Natterer 690a12f2a7 app: move gimp_temp_buf_create_buffer() to temp-buf.[ch]
TempBuf will soon be promoted to be a core/ citizen.
2012-05-02 17:50:59 +02:00
Michael Natterer 7441a1f6f7 app: turn the TempBuf's "bytes" into "format" and port everything to it 2012-05-02 17:50:59 +02:00
Øyvind Kolås b4e3843b6a app: get rid of cpercep 2012-05-02 17:50:59 +02:00
Øyvind Kolås f11ee4d82e app: get rid of cpercep in siox 2012-05-02 17:50:59 +02:00
Øyvind Kolås acedbd7316 app: reduce cpercep to babl conversions 2012-05-02 17:50:59 +02:00
Øyvind Kolås 83c21ffcc3 app: add babl based conversions along cpercep
This does not change it's behavior but asserts the results of equivalent
conversions.
2012-05-02 17:50:59 +02:00
Michael Natterer c9b2db55d1 app: remove temp_buf_copy_area() 2012-05-02 17:50:59 +02:00
Michael Natterer b4d8e4cbaa app: use gegl_buffer_copy() to copy into a pattern's preview 2012-05-02 17:50:58 +02:00
Michael Natterer c173328a9a app: remove "dest" parameter from temp_buf_copy() and always return a new copy
Also remove the color conversion functions in temp-buf.c
2012-05-02 17:50:58 +02:00
Michael Natterer b521cb4272 app: use GEGL to convert a TempBuf to a GdkPixbuf 2012-05-02 17:50:58 +02:00
Michael Natterer d743bae6a7 app: remove temp_buf_resize()
and fix its only user by simply reallocating the buf.
2012-05-02 17:50:58 +02:00
Michael Natterer 8202dcb44e app: don't set mask->x and ->y to bogus and completely unused values 2012-05-02 17:50:58 +02:00
Michael Natterer ff86f85744 app: remove x, y and color parameters from temp_buf_new()
Fix the places that passed the color by either temp_buf_data_clear()
or memset(), and assign x and y manually, they are going to vanish
completely soon.
2012-05-02 17:50:58 +02:00
Michael Natterer 0e9581b956 app: pass the paint area's coords to gimp_brush_core_color_area_with_pixmap()
They are no longer stored in the paint area TempBuf.
2012-05-02 17:50:58 +02:00
Michael Natterer 9bac5b8837 app: add gimp_image_get_channel_format() and get_mask_format()
which for now return the same thing (Y' u8) and need to be used
in more places before becoming useful.
2012-05-02 17:50:58 +02:00
Michael Natterer e250c02bc7 app: don't use GimpImageType in gimp_image_new_from_template() 2012-05-02 17:50:58 +02:00
Michael Natterer 3ddfa42c80 app: remove the remaining image_type macro junk from gimpimage.h 2012-05-02 17:50:58 +02:00
Michael Natterer baa5ceb1e7 app: remove image_type API from GimpBuffer 2012-05-02 17:50:57 +02:00
Michael Natterer ec2d5647c0 app: remove gimp_drawable_type_with_alpha() 2012-05-02 17:50:57 +02:00
Michael Natterer 3c4f9d55ed app: use the new functions added with the last commit 2012-05-02 17:50:57 +02:00
Michael Natterer dd103d227b app: add gimp_babl_format_get_image_type,base_type() 2012-05-02 17:50:57 +02:00
Michael Natterer 2b18645fb5 app: use gimp_drawable_get_base_type() instead of GIMP_IMAGE_TYPE_BASE_TYPE() 2012-05-02 17:50:57 +02:00
Michael Natterer f6f7d53020 app: add gimp_drawable_get_base_type() 2012-05-02 17:50:57 +02:00
Michael Natterer afe8eaf256 app: remove GimpImageType based API and macro junk 2012-05-02 17:50:57 +02:00
Michael Natterer bacf1abac2 app: don't use GIMP_IMAGE_TYPE_IS_FOO() in drawable_actions_update() 2012-05-02 17:50:57 +02:00
Michael Natterer c14738806e app: use gimp_image_get_layer_format() instead of dealing with image_type 2012-05-02 17:50:57 +02:00
Michael Natterer ef638faf82 app: add gimp_image_get_layer_format() 2012-05-02 17:50:56 +02:00
Michael Natterer 1e7d5e3cb4 app: fix drawable type check in gimp_drawable_convert_indexed() 2012-05-02 17:50:56 +02:00
Michael Natterer e5ff78b083 app: more consistent format handling in gimpdrawable-convert.c 2012-05-02 17:50:56 +02:00
Michael Natterer f4d8e5266a app: gimp_edit_paste(): use more formats inatead of GimpImageType 2012-05-02 17:50:56 +02:00
Michael Natterer 105d2207ef app: require a non-NULL format in gimp_tile_manager_create_buffer() 2012-05-02 17:50:56 +02:00
Michael Natterer 01a22de26c app: port gimp_drawable_real_apply_buffer() to GEGL
but leave the old code there and use it for FS compositing (when
dest_buffer is != NULL) because we need the legacy projection as
reference.
2012-05-02 17:50:56 +02:00
Michael Natterer 1f9606e200 app: fix non-premultiplied case in GimpOperationNormalMode 2012-05-02 17:50:55 +02:00
Michael Natterer 7fbbefd6f0 app: set the mode on the right node in gimp_gegl_create_apply_buffer_node() 2012-05-02 17:50:55 +02:00
Michael Natterer cb3e8f82d4 app: simplify leftover and now useless nested if() 2012-05-02 17:50:55 +02:00
Michael Natterer 6c83b0327d app: fix mode node creation in gimp_gegl_create_apply_buffer_node() 2012-05-02 17:50:55 +02:00
Michael Natterer 368ae01c86 app: don't special case the FS wrt its visibility in the layer stack
Its source node produces nothingness anyway, so it can be safely
plugged in. More FS special code gone \o/.
2012-05-02 17:50:54 +02:00
Michael Natterer 8cca4c51ad app: use gimp_gegl_node_set_layer_mode() to configure the FS' mode node 2012-05-02 17:50:54 +02:00
Michael Natterer 9113a59267 app: remove CONSTRUCT_ONLY from "premultiplied" of GimpOperationPointLayerMode
not because we want to change it after construction, but because it is
ugly to avoid setting it again in the generic "configure mode node" code.
2012-05-02 17:50:54 +02:00
Mikael Magnusson 3406bf0b69 gimpbucketfilltool: Fix switch block always falling through to pattern fill 2012-05-02 17:50:54 +02:00
Michael Natterer 09d4d56521 app: use gimp_gegl_convolve() in gimpbrush-transform.c 2012-05-02 17:50:54 +02:00
Michael Natterer 2ea74df523 app: gimp_gegl_convolve() rename parameter "matrix" to "kernel" 2012-05-02 17:50:54 +02:00
Michael Natterer 9b70f4e7fc app: move some enums from base-enums.h to core-enums.h 2012-05-02 17:50:54 +02:00
Michael Natterer 36fb008197 app: port GimpPaintCore's paste and replase APIs to GeglBuffer 2012-05-02 17:50:54 +02:00
Michael Natterer f07f01664e app: heal the paint_buffer directly, without an intermediate copy 2012-05-02 17:50:54 +02:00
Michael Natterer 1c60024250 app: port GimpHeal to GEGL, using insane buffer casting tricks 2012-05-02 17:50:53 +02:00
Michael Natterer 7ec6c48636 app: use gimp_rgba_set,get_pixel() instead of babl_process() directly 2012-05-02 17:50:53 +02:00
Michael Natterer 73108152ea app: port XCF saving to reading from the GeglBuffer 2012-05-02 17:50:53 +02:00
Michael Natterer 91c39463c4 app: port XCF loading to writing to the drawable's GeglBuffer 2012-05-02 17:50:53 +02:00
Michael Natterer 3e140fd105 app: factor out GimpPlugIn's tile access emulation code to app/gegl/
so it can be used to access a GeglBuffer's "tiles" in the XCF code.
2012-05-02 17:50:53 +02:00
Michael Natterer 1f09580aba app: remove PixelSurround, no clue when it became unused 2012-05-02 17:50:53 +02:00
Michael Natterer 6a9a37d3d9 app: remove GimpLut, dodgeburn was its last user 2012-05-02 17:50:53 +02:00
Michael Natterer 441120b6b5 app: use gimp_gegl_dodgeburn() in GimpDodgeBurn 2012-05-02 17:50:53 +02:00
Michael Natterer 08d179acc6 app: add gimp_gegl_dodgeburn() to replace the lut in GimpDodgeBurn 2012-05-02 17:50:52 +02:00
Michael Natterer 72894671d5 app: fix gimp_gegl_color_new() to treat the passed GimpRGB as gamma corrected 2012-05-02 17:50:52 +02:00
Øyvind Kolås 6efd812d08 app: s/GIMP_GEGL_RECT/GEGL_RECTANGLE/
Defining GeglRectangle inline is so useful that it has been added to
GEGL.
2012-05-02 17:50:52 +02:00
Michael Natterer aebf55d799 app: blacklist gegl:threshold 2012-05-02 17:50:52 +02:00
Michael Natterer 95b1c0617b Replace the value-invert plug-in by its GEGL counterpart 2012-05-02 17:50:52 +02:00
Michael Natterer 64cd825796 app: blacklist all ops that are in gimp menus now, and some useless ones 2012-05-02 17:50:52 +02:00
Michael Natterer 797e622734 app: remove obsolete include 2012-05-02 17:50:52 +02:00
Michael Natterer a1e5b75f44 app: use one gegl_buffer_copy() with the right Babl format to copy to the layer
instead of looping manually to extract pixels from the cairo surface.
2012-05-02 17:50:52 +02:00
Michael Natterer a76f44a9de app: port GimpConvolve to gimp_gegl_convolve() 2012-05-02 17:50:52 +02:00
Michael Natterer 49dcc3d78a app: remove obsolete include 2012-05-02 17:50:51 +02:00
Michael Natterer 2d401aaaac app: add gimp-gegl-loops.[ch] which for now contains a convolve function 2012-05-02 17:50:51 +02:00
Michael Natterer c0fdfbd226 app: port GimpInk blob rendering to GeglBufferIterator 2012-05-02 17:50:51 +02:00
Michael Natterer c5c555c834 app: add "take_ownerspip" param to gimp_temp_buf_create_buffer()
and get rid of some more intermediate buffer creation/destruction, and
some redundant temp_buf_free() plus g_object_unref().
2012-05-02 17:50:51 +02:00
Michael Natterer 7b5252ac54 app: replace GimpPaintCore::get_paint_area() by ::get_paint_buffer()
and remove the public TempBuf based get_paint_area() API.
2012-05-02 17:50:51 +02:00