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
21dfb8bd9f
app/libgimp: enable plug-ins on high precision images
...
Add gimp_plugin_enable_precision() in libgimp which switches the
plug-in to deal with the drawables' real precision, call it from the
libgimp GeglBuffer and Babl format APIs. If it's not enabled, let the
core's plug-in convert the tiles to legacy formats when sending them
over the wire.
2012-05-02 17:51:14 +02:00
Michael Natterer
5e18004bff
app: get rid of base-utils.[ch] and move its functions to gimp-utils.[ch]
2012-05-02 17:51:13 +02:00
Michael Natterer
1bbd3d40a8
app: make the GimpTempBuf struct private and add accessors
2012-05-02 17:51:12 +02:00
Michael Natterer
3a46cfbbc6
app/pdb: allow some more stuff on indexed by simply removing the restriction
2012-05-02 17:51:12 +02:00
Michael Natterer
c07325a005
app: add "precision" argument to gimp_image_new()
2012-05-02 17:51:09 +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
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
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
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
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
7441a1f6f7
app: turn the TempBuf's "bytes" into "format" and port everything to it
2012-05-02 17:50:59 +02:00
Michael Natterer
baa5ceb1e7
app: remove image_type API from GimpBuffer
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
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
c14738806e
app: use gimp_image_get_layer_format() instead of dealing with image_type
2012-05-02 17:50:57 +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
Ø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
95b1c0617b
Replace the value-invert plug-in by its GEGL counterpart
2012-05-02 17:50:52 +02:00
Michael Natterer
609e2d8cda
Replace the color-to-alpha plug-in by GEGL filter dialog
2012-05-02 17:50:49 +02:00
Michael Natterer
70fc975e45
pdb: add support for omitting the "gimp-" prefix from the procedure name
...
if the procedure's group is "plug_in_compat". Add new procedure
plug-in-pixelize2.
2012-05-02 17:50:47 +02:00
Michael Natterer
2d81a16bdf
app: remove "bytes" from GimpBuffer and add a format API
...
and change all users accordingly.
2012-05-02 17:50:47 +02:00
Michael Natterer
f248324fd3
app: remove the lagacy hue-saturation cruft
...
it's unclear whether the operation is correct, but that can be sorted
out on master and merged.
2012-05-02 17:50:40 +02:00
Øyvind Kolås
76546f7e7c
rename lanczos to lohalo
...
GEGL had a broken lanczos implementation, the lohalo implementation is better
anyways (at least when passed a proper scale matrix).
2012-05-02 17:50:38 +02:00
Michael Natterer
52e40bce42
pdb: port drawable pixel access API to GEGL
2012-05-02 17:50:38 +02:00
Michael Natterer
2c0fde88f2
app: remove the legacy color-balance cruft
2012-05-02 17:50:38 +02:00
Michael Natterer
1f7cf2dd6b
pdb: add new group plug-in-compat for compat procedures of removed plug-ins
...
For now contains a pixelize implementation, but it's still called
gimp-plug-in-pixelize, not plug-in-pixelize.
2012-05-02 17:50:37 +02:00
Michael Natterer
be853cd239
app: remove "gboolean linear" from all apply_operation APIs
...
thes were all unused and we want to get rid of that anyway.
2012-05-02 17:46:13 +02:00
Michael Natterer
8d5471502e
app: move GimpHistogram from base/ to core/
2012-05-02 17:46:13 +02:00
Michael Natterer
cde58408fa
app: remove the legacy levels cruft
2012-05-02 17:46:12 +02:00
Michael Natterer
a34b19774b
app: remove the legacy curves cruft
...
and move PDB parameter collection into GimpCurvesConfig convenience
constructors.
2012-05-02 17:46:11 +02:00
Michael Natterer
99ae46b4ed
app: turn the drawable's shadow tiles into a shadow buffer
2012-05-02 17:46:10 +02:00
Michael Natterer
765c2cfea2
app: replace GimpDraable's type by a Babl format
...
and change gimp_drawable_new() and all gimp_layer_new() variants to
take formats instead of types.
2012-05-02 17:46:06 +02:00
Michael Natterer
e01189ca77
app: remove checks from stuff that now works on indexed layers
2012-05-02 17:46:04 +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
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
15957cb3c4
app: remove the legacy brightness-contrast code and use GEGL instead
...
it's reasonably fast now.
2012-05-02 17:45:53 +02:00
Michael Natterer
5d1474c17e
app: use GEGL to extract an image's component into a channel
...
Add gimp_image_get_component_format() for that purpose.
2012-05-02 17:45:53 +02:00
Michael Natterer
7c3a796dfc
app: added GimpPickable::get_buffer()
...
Add cached buffers to GimpProjection and GimpImageMap, and use
the new API where possible.
2012-05-02 17:45:50 +02:00
Michael Natterer
63bd108afb
app: always use GEGL to invert drawables
...
and remove the now useless gimpdrawable-invert.[ch].
2012-05-02 17:45:46 +02:00
Michael Natterer
6d3a8fe73d
app: rename gimp_drawable_apply_operation_with_config()
...
to gimp_drawable_apply_operation_by_name() and allow to pass
a NULL config.
2012-05-02 17:45:46 +02:00
Michael Natterer
0623c7f365
app: remove the pointless core wrappers for the below simplified color stuff
...
Instead, provide gimp_drawable_apply_operation_with_config() and call
that from the PDB wrappers directly.
2012-05-02 17:45:45 +02:00
Mikael Magnusson
0025f9f354
fix typo "equalizee"
2012-04-12 01:28:30 +02:00