Michael Natterer
85b83b65ff
app: clean up GimpMaskUndo's GeglRectangle code
2012-05-02 17:51:09 +02:00
Michael Natterer
7d9cd6a413
app: don't hardcode "Y u8" when checking whether to clip transformed buffers
...
instead, check if the format has alpha.
2012-05-02 17:51:08 +02:00
Michael Natterer
3af70584d0
app: remove bpp <-> format conversion stuff from gimp-gegl-utils.[ch]
...
Fix stuff by picking formats as we get data from the "outside", like a
GdkPixbuf, and pass around more proper formats from where we know them.
2012-05-02 17:51:08 +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
Michael Natterer
16635e5f0a
app: gimp_drawable_preview_bytes() -> gimp_drawable_get_preview_format()
2012-05-02 17:51:08 +02:00
Michael Natterer
85bd6b0dd9
app: pass a format, not bpp, to gimp_viewable_get_dummy_pixbuf()
...
and add tons of <gegl.h> includes.
2012-05-02 17:51:08 +02:00
Michael Natterer
03da4fb280
app: make masks use linear, not gamma corrected formats
2012-05-02 17:51:08 +02:00
Michael Natterer
3e9fdf1815
app: change GimpBoundary to find the boundary a float component
...
Require passing in a Babl format that will extract the float component
the algorithm should run on.
2012-05-02 17:51:07 +02:00
Michael Natterer
3ea0e3f090
app: return double not int from GimpPickable::get_opacity_at()
...
and fix GimpLayer's impl to honor the mask also for layers without
alpha.
2012-05-02 17:51:07 +02:00
Michael Natterer
e6975ed065
app: add format parameter to GimpPickable::get_pixel_at()
...
allowing NULL for the pickable's native format. Fix and simplify auto
cropping to always use "R'G'B'A u8".
2012-05-02 17:51:07 +02:00
Michael Natterer
a61885f324
app: add XXX comments about hardcoded or NULL formats
2012-05-02 17:51:07 +02:00
Michael Natterer
9146aeaa22
app: ask the image for the RGB format in gimp_selection_extract()
...
instead of hardcoding it.
2012-05-02 17:51:07 +02:00
Michael Natterer
6d1776d354
app: port gimp_image_contiguous_region_by_seed() to GEGL
2012-05-02 17:51:05 +02:00
Michael Natterer
aee6a9eb01
app: remove the legacy histogram calculation code
2012-05-02 17:51:04 +02:00
Michael Natterer
28f655ed27
app: implement the GEGL histogram with an iterator loop for now
...
its body can later be reused in the working histogram sink op.
2012-05-02 17:51:04 +02:00
Michael Natterer
15711f6de5
app: simplify buffer iterator code in gimp_palette_import_extract()
2012-05-02 17:51:04 +02:00
Michael Natterer
a04d391ca6
app: more WIP on GimpOperationHistogramSink, not used yet
2012-05-02 17:51:04 +02:00
Michael Natterer
927ef9b9fb
app: use gimp_gegl_color_new() instead of gegl_color_set_rgba()
2012-05-02 17:51:04 +02:00
Michael Natterer
66050390aa
app: hack badly to make gimp_channel_new_from_component() work
...
insert an intermediate copy to work around an unclear bug that will go
away once we use native GeglBuffers.
2012-05-02 17:51:04 +02:00
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
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
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
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
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
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
acedbd7316
app: reduce cpercep to babl conversions
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