Commit graph

806 commits

Author SHA1 Message Date
Nils Philippsen
bc610c8fbd fix bogus overflow warning
tile-swap.c: In function ‘tile_swap_command’:
tile-swap.c:721:6: warning: assuming signed overflow does not occur when
assuming that (X + c) < X is always false [-Wstrict-overflow]
2013-03-06 12:16:43 +01:00
Massimo Valentini
e8a02362cd app: correct pixel-surround when sampling outside of a drawable
in correspondence of tiles crossings
2012-10-13 15:02:04 +02:00
Michael Natterer
ddf0d9e6b7 app: use G_GUINT64_FORMAT to print guint64 2012-03-12 20:26:51 +01:00
Massimo Valentini
71cb4fbd71 Bug 667368: Bug in Histogram egalization 2012-03-08 18:20:45 +01:00
Alexis Wilhelm
c7c752f5df Bug 541859 - Colour Balance Range to Adjust has no Effect
This makes the different ranges have a clearly different effect,
plus speeds up the gegl op quite a lot.

NOTE: this might affect the result of scripts using color-balance
2012-03-07 21:45:59 +01:00
Massimo Valentini
c3c348e50b Bug 666949: Segfault when reading XCF file
use a guint for Tile's share_count member
2012-01-22 17:58:50 +01:00
Michael Natterer
056e09a6cb Remove the makefile.msc build system, it is unmaintained since 2008 2011-12-16 15:53:56 +01:00
Mukund Sivaraman
a8dd4b39f2 Revert "app (histogram): Fix bad loop condition"
This reverts commit 23907a297f.
2011-10-13 10:43:09 +05:30
Mukund Sivaraman
23907a297f app (histogram): Fix bad loop condition 2011-10-13 10:39:59 +05:30
Mukund Sivaraman
46e1e6ec1d app (histogram): Drop redundant assignment 2011-10-12 18:29:39 +05:30
Mukund Sivaraman
e0a60f0e23 Revert "app (histogram): Delete redundant assignments"
This reverts commit 3793c1f1ec.
2011-10-12 18:28:55 +05:30
Mukund Sivaraman
3793c1f1ec app (histogram): Delete redundant assignments 2011-10-12 17:11:39 +05:30
Massimo Valentini
ab2dad4640 Bug 639630: Windows builds can not use >4GB tile cache
on Win64 gulong -> unsigned long is not wide enough
to contain GimpBaseConfig:tile-cache-size which is a
guint64
2011-10-10 18:24:02 +02:00
Mukund Sivaraman
0a3c8c5c86 app (siox): Delete redundant total initializer 2011-10-04 14:44:56 +05:30
Mukund Sivaraman
01daf311b4 app: Remove redundant assignments 2011-10-03 13:29:02 +05:30
Michael Natterer
d34bbaec2d app: #undef G_DISABLE_DEPRECATED where GStaticMutex is used
because it's deprecated in GLib 2.30.
2011-09-28 23:27:49 +02:00
Martin Nordholts
fea6d2e5b1 app: Add pixel_regions_free() 2011-09-14 17:34:52 +02:00
Martin Nordholts
83e3e58ebc app: Remove PixelRegionIterator::dirty_tiles
It is always 1 and only used in a boolean expression.

The member was introduced and used in
bc0451b4b4 and
fd586862fc, then it effectively became
unused in e4b031932a with the

  /* Why would we wan't to set dirty_tiles to 0 here? */

comments.
2011-09-13 07:07:19 +02:00
Martin Nordholts
50acd95e9d app: Use pixel_region_has_alpha()
For increased readability.
2011-09-07 16:01:24 +02:00
Martin Nordholts
9f1187f6a5 app: Prefix TileManager functions
read_pixel_data() -> tile_manager_read_pixel_data()
write_pixel_data() -> tile_manager_write_pixel_data()
read_pixel_data_1() -> tile_manager_read_pixel_data_1()
write_pixel_data_1() -> tile_manager_write_pixel_data_1()

for consistency.
2011-09-07 12:08:43 +02:00
Martin Nordholts
314d802eb0 app: Remove tile_manager_tiles_per_col() and _per_row()
Remove tile_manager_tiles_per_col() and
tile_manager_tiles_per_row(). They were used in the projection pyramid
before TilePyramid was created and are not used any longer.
2011-08-28 12:36:05 +02:00
massimo v
63cc68561a app: SIOX memory leaks 2011-05-24 20:46:31 +02:00
Michael Natterer
cc47b2a600 libgimpwidgets/color: move the cairo color utility functions to libgimpcolor
Add CAIRO_CFLAGS to a lot of Makefiles to make this possible, and
because they pull in cairo via the libgimp headers.
2011-04-28 15:50:39 +02:00
Michael Natterer
2af539020b app: don't include individual files from libgimp* 2011-04-28 14:23:33 +02:00
Michael Natterer
8d5ac2c780 app: make TempBuf parameter of temp_buf_get_data() const 2011-04-05 22:15:30 +02:00
Enrico Schröder
aae8787ee3 app: SIOX: algorithm ignores color sensitivity changes
Fix for bug #627062: When changing the color sensitivity settings of
the Foreground Selection Tool, the SIOX algorithm gets called with
refinement=SIOX_REFINEMENT_CHANGE_SENSITIVITY, which then triggers
refinement=SIOX_REFINEMENT_RECALCULATE. However, there is no
implementation for RECALCULATE so the change is ignored. The patch
sets refinement to SIOX_REFINEMENT_ADD_FOREGROUND and _ADD_BACKGROUND
which triggers a complete recalculation.
2011-03-30 19:35:38 +02:00
Michael Natterer
bc8d5f84d6 app: remove the "offset" API from TileManager
It made the transform code hard to read and never belonged into the
tile manager anyway. It's a simple pixel buffer that should not know
about any position in an image. Instead, pass around the offsets of
tile managers explicitly, so everything is less obscure for the price
of having more parameters. This will also help replacing TileManagers
with GeglBuffers.
2011-03-26 08:30:15 +01:00
Michael Natterer
6ec5190da2 app: remove unused files base/tile-manager-crop.[ch] 2011-03-26 00:10:19 +01:00
Michael Natterer
2281645f5b app: remove unused function temp_buf_new_check() 2011-03-08 16:50:58 +01:00
Michael Natterer
7b320c7bf6 Get rid of DOS line endings 2010-11-21 16:09:09 +01:00
Sven Neumann
bf6a2e6451 app/base: formatting 2010-10-10 00:32:30 +02:00
Michael Natterer
3de4d7263a app: Bug 631619 - Drawing artifacts spread by paintbrush outline on canvas
Add a transform matrix to GimpCanvasBoundary and get rid of the whole
BoundSeg transform code in boundary.c and gimpbrushcore.c, it was
impossible to get this right on that level. Also fix te extents of
GimpCanvasBoundary os it leaves no artifacts.
2010-10-09 22:00:19 +02:00
Sven Neumann
74885082ee app/base: formatting 2010-09-26 23:03:16 +02:00
Michael Natterer
06da10bc08 app: change boundary drawing by tools to work like the selection
- GimpCanvasBoundary takes unsorted BoundSeg arrays now and uses
  gimp_display_shell_transform_boundary() and gimp_cairo_add_boundary().
- Nobody calls boundary_sort() any longer for the purpose of displaying
  a boundary.
- gimp_display_shell_transform_boundary() got offset parameters
  so it can transform things that are not in the image's coordinate
  system.
2010-09-26 22:41:04 +02:00
Michael Natterer
a0cb4fe805 app: add boundary_offset() which offsets BoundSegs in place
and use it in gimp_region_select_tool_calculate().
Also fix boundary_transform() indentation.
2010-09-23 19:23:58 +02:00
Sven Neumann
3d6eff1d49 app: minor formatting changes and some const qualifiers 2010-08-22 21:50:18 +02:00
Martin Nordholts
8d0be04e51 app/base: Add gtk-doc to pixel_region_init() 2010-08-21 12:28:24 +02:00
Michael Natterer
021a49ce73 Add tile_manager_duplicate() which does quick tile-by-tile COW copy
and use it instead of duplicating the same code twice less efficiently.
2010-03-19 19:18:18 +01:00
Alexia Death
44a5a34d7e app: Make brush boundaries dynamic aswell 2010-03-15 02:55:15 +02:00
Martin Nordholts
98463cf081 app: Add get_backtrace() function to base-utils.[ch] 2010-02-25 18:02:04 +01:00
Michael Natterer
68ee4a5d6c base: add a proper version of the code that tracked down the tile manager leak
For GIMP_UNSTABLE, keep around a list of allocated tile managers and
have a function tile_manager_exit() which complains about them and
unrefs them. This is infinitely more helpful than the tile cache and
swap complaining about not being empty, because there is absolutely
nothing wrong with swap and cache when we simply leaked tile managers.
2010-02-10 12:33:30 +01:00
Martin Nordholts
8efb46bd0b app: Remove unused include #include <sys/types.h> in base/base.c 2009-12-21 17:25:01 +01:00
Michael Natterer
892363605c Random doc fix 2009-09-14 21:36:50 +02:00
Martin Nordholts
1dbf732943 app: Add temp_buf_dump()
Add temp_buf_dump() which can be used to dump TempBufs to disk for
easier analysis, for example with GIMP.
2009-08-14 19:23:01 +02:00
Mason Thomas
fc66ca5169 Clamp levels after input changes applied. 2009-07-16 22:00:38 +02:00
Sven Neumann
8f37a96d70 only spit out debug output if TILE_PROFILING is defined 2009-06-04 12:15:07 +02:00
Sven Neumann
b2fc6d2876 whitespace and coding style cleanups 2009-06-04 12:15:06 +02:00
Sven Neumann
ac680f1cbd whitespace cleanup and removed inclusion of <sys/types.h> 2009-06-04 12:15:06 +02:00
Monty
717d8b4e56 Correct startup flaw in idle swapper start.
Check that the cache itself is idle. Previously it would start during
transforms and long pyramid rendering ops and toss writes and large
seeks into the tile cache while it was potentially under heavy pressure.

Also increase its flush rate more to be more in line with modern system
and editing needs.
2009-06-04 12:15:06 +02:00
Monty
e925338321 Replace two list 'flush clean first' cache strategy with an LRU strategy.
Although the clean-first strategy gives fast light-load performance,
it also degrades catastrophically under moderate cache pressure. LRU is
not as efficient under light load, but degrades more gracefully under
moderate and heavy load.
2009-06-04 12:15:05 +02:00