Commit Graph

31671 Commits

Author SHA1 Message Date
678255604d app: add a GimpPrecision enum that for now contains GIMP_PRECISION_U8
Add gimp_image_get_precision(), and a "precision" argument to
gimp_babl_format(). Change code accordingly and do some more format
related cleanups.
2012-05-02 17:51:09 +02:00
5a4cac2abd app: add XXX comment about assuming u8 to GimpHistogram 2012-05-02 17:51:09 +02:00
022d30b980 app: use the original GimpTempBufs' format in gimpbrush-transform.c 2012-05-02 17:51:09 +02:00
7c271f15fc app: use gimp_image_get_component_format() instead of hardcoding "A u8"
to extract a drawable's alpha channel into a layer mask.
2012-05-02 17:51:09 +02:00
85b83b65ff app: clean up GimpMaskUndo's GeglRectangle code 2012-05-02 17:51:09 +02:00
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
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
15d1827ead app: add gimp_babl_format() and use it in gimp_image_get_format() 2012-05-02 17:51:08 +02:00
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
e737bf77fa app: add gimp-babl.[ch] and move Babl specific code there 2012-05-02 17:51:08 +02:00
16635e5f0a app: gimp_drawable_preview_bytes() -> gimp_drawable_get_preview_format() 2012-05-02 17:51:08 +02:00
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
c291524e6c app: added hard light, difference, subtract, grain extract, grain merge and difference gegl blending modes 2012-05-02 17:51:08 +02:00
03da4fb280 app: make masks use linear, not gamma corrected formats 2012-05-02 17:51:08 +02:00
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
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
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
a61885f324 app: add XXX comments about hardcoded or NULL formats 2012-05-02 17:51:07 +02:00
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
53bda86ceb app: code cleanup in the GEGL ops 2012-05-02 17:51:06 +02:00
f0daec882f app: use an explicit tile format when talking to plug-ins 2012-05-02 17:51:06 +02:00
309a3a1c35 app: pass the format of saved tiles around explicitly in the XCF code
It does the same as before, but is better prepared for the future now.
2012-05-02 17:51:06 +02:00
c24d9d76e5 app: added addition, burn, darken only, dodge, multiply, overlay, screen and soft light gegl blending modes 2012-05-02 17:51:06 +02:00
0233c99c8b app: cleaned dissolve and lighten only modes 2012-05-02 17:51:06 +02:00
793bebe2d3 app: enable smudge on indexed images 2012-05-02 17:51:06 +02:00
266b0d069c app: require R'G'B'A u8 in gimp_gegl_smudge_blend() and simplify it massively 2012-05-02 17:51:06 +02:00
30bf9bcdc9 app: remove blend_region() 2012-05-02 17:51:05 +02:00
c3ceb8698d app: add gimp_gegl_smudge_blend(), a brute-force port of blend_region()
and use it in GimpSmudge. This only to get functionality ported and
the API done, and not the final state.
2012-05-02 17:51:05 +02:00
e4d97f9a95 app: added gegl version of lighten only blending mode 2012-05-02 17:51:05 +02:00
6d1776d354 app: port gimp_image_contiguous_region_by_seed() to GEGL 2012-05-02 17:51:05 +02:00
aee6a9eb01 app: remove the legacy histogram calculation code 2012-05-02 17:51:04 +02:00
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
15711f6de5 app: simplify buffer iterator code in gimp_palette_import_extract() 2012-05-02 17:51:04 +02:00
844a8a5ab7 app: more <gegl.h> includes 2012-05-02 17:51:04 +02:00
a04d391ca6 app: more WIP on GimpOperationHistogramSink, not used yet 2012-05-02 17:51:04 +02:00
927ef9b9fb app: use gimp_gegl_color_new() instead of gegl_color_set_rgba() 2012-05-02 17:51:04 +02:00
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
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
cadd54823b app: clean up and build the histogram op gift 2012-05-02 17:51:04 +02:00
ad8b16e6ad app: histogram sink skeleton gift for mitch 2012-05-02 17:51:04 +02:00
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
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
7b46656f7d app: name the image's palette formats "-gimp-indexed-format-image_id" 2012-05-02 17:51:03 +02:00
f888792a77 plug-ins: return image type and #layers from the JPEG thumbnail procedure 2012-05-02 17:51:03 +02:00
9dd119c871 app: gimp_template_get_image_type: return GimpImageBaseType not GimpImageType 2012-05-02 17:51:03 +02:00
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
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
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
a9e60bf6ce app: make the tests build again 2012-05-02 17:51:03 +02:00
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