Commit Graph

27768 Commits

Author SHA1 Message Date
Alexia Death c06ed13a14 core: Add function to test if image map is busy 2010-08-15 02:32:31 +03:00
Michael Muré f92b01d233 gimpoperationcagetransform: optimization 2010-08-15 01:00:21 +02:00
Michael Muré 02a14315f4 gimpoperationcagepreview: transform only pixel inside the cage 2010-08-14 23:53:23 +02:00
Michael Muré b7c2b26def precompute edge normal 2010-08-14 23:52:41 +02:00
Michael Muré c4a196d87a gimpoperationcagepreview: make the preview more visible 2010-08-14 21:37:17 +02:00
Michael Muré 2dfb79ec74 gimpoperationcagecoefcalc: correct coef calculation. Now deform works as expected. 2010-08-14 21:26:19 +02:00
Michael Muré 7655a45d61 gimpvector: correct normal vector computing, vector wasn't normilized 2010-08-14 21:24:59 +02:00
Michael Muré 54a9294ea9 cleaning 2010-08-13 18:26:38 +02:00
Michael Muré 6c36d7ac13 gimpcagetool: add preview 2010-08-13 18:25:48 +02:00
Alexia Death a31b437bf6 Fix gfloat to gdouble resolving any nan-ds in coefs. 2010-08-13 00:07:25 +03:00
Michael Muré c29396a0c2 GimpCageTool: add code in #if #else #endif to test the forward transform 2010-08-12 14:38:21 +02:00
Michael Muré 25818716b3 GimpOperationCageTransform: cleanup 2010-08-12 14:36:07 +02:00
Michael Muré 9b3dbf9f3e renaming of GimpOperationCage to GimpOperationCagePreview + cleaning 2010-08-12 14:34:19 +02:00
Michael Muré 3d79167074 change name of gimp cage gegl op to gimp internal op. 2010-08-12 13:47:31 +02:00
Michael Muré 023aa06883 gimpoperationcoefcalc: attempt to fix the wrong coefficient inside and in the boundary of the cage. 2010-08-12 13:43:01 +02:00
Michael Muré 50fdbf09fd GimpOperationCoefCalc: compute the coefficient only inside the cage.
There is still a problem when pixel is exactly on a edge.
+ coding style / cleaning
2010-08-11 20:36:25 +02:00
Michael Muré fe9f1f4a01 GimpCageTool: better memory gestion in different handle
+ code to render/debug coefficient, in #if #else #endif
+ cleaning / coding style
2010-08-11 20:27:32 +02:00
Michael Muré eabbabb571 GimpCageConfig: add 2 method to check if a point is inside the cage.
Second one is commented, for test.
2010-08-11 20:11:49 +02:00
Alexia Death f593562055 Fix a memory allocation issue mid recursion and put a depth limit in place
The limit can be set to say 7 or 8 when bugs are out of the coef calc.
2010-08-10 22:01:18 +03:00
Michael Muré 67c1981a40 GimpCageTool: don't allow to add handle after closing the cage 2010-08-10 00:58:24 +02:00
Michael Muré 81c948f196 GimpOperationCageTransform: pre-full the coordinate buffer with no-displacement coordinate, to keep the background while rendering 2010-08-10 00:12:10 +02:00
Michael Muré 34b40a6c7e solve the problem result cropped to the bounding box of the cage 2010-08-09 23:33:11 +02:00
Michael Muré 19b81bb097 gimpcagetool: fix buffer leak 2010-08-08 18:21:26 +02:00
Michael Muré e94d90f4a7 GimpOperationCageTransform: add code to compute the exact source point to handle aliasing. 2010-08-08 13:28:49 +02:00
Michael Muré a68eb9d72d remove the unneeded anymore GimpCage data structure 2010-08-08 13:27:51 +02:00
Michael Muré 90d3900fbc gimpoperationcagetransform: clean unnecessery code 2010-08-08 13:27:41 +02:00
Michael Muré 69cf476387 add a gegl op that compute the reverse transformation of a cage deform. still wip. 2010-08-08 13:27:31 +02:00
Michael Muré 459414c9dc gimpcagetool: use cage_transform and gegl_render_mapping to do the transform
gimpoperationcage: cleaning
gimpcageconfig: cleaning
2010-08-08 13:27:20 +02:00
Michael Muré 9677eeeffc gimpcagetool: add a warning if the coef buffer isn't initialised 2010-08-08 13:27:11 +02:00
Michael Muré 8c33eb83f7 gimpcagetool, gimpoperationcage: now the forward transform work as
expected
2010-08-08 13:27:02 +02:00
Michael Muré 3c5c65ea3c gimpcagetool: use GimpCageConfig, and apply gegl op. Doesn't work yet. 2010-08-08 13:26:52 +02:00
Michael Muré 09ce431e7d gimpoperationcage: now inherit from GeglOperationComposer, to have an aux buffer for the coef 2010-08-08 13:26:41 +02:00
Michael Muré 670a20de05 gimpcageconfig: correct scaling factor memory allocation 2010-08-08 13:26:29 +02:00
Michael Muré 54ef87a7d3 gimpcageconfig: add the scaling factor computation 2010-08-08 13:26:20 +02:00
Michael Muré 973aeee9d4 register gimpoperationcagecoefcalc 2010-08-08 13:26:12 +02:00
Michael Muré 4f26fc8d44 gimpcageconfig: fix compilation 2010-08-08 13:26:03 +02:00
Michael Muré 7436539878 gimpcageconfig: correct indentation 2010-08-08 13:25:53 +02:00
Michael Muré d7474cd33a gimpcageconfig: correct indentation 2010-08-08 13:25:42 +02:00
Michael Muré 74a37c6266 gimpoperationcoefcalc: get_bounding_box now return the bounding box of the cage 2010-08-08 13:25:33 +02:00
Michael Muré b05460f292 add a gegl operator that compute the coeffcient for a cage transform 2010-08-08 13:25:21 +02:00
Michael Muré c686093b38 make GimpCageOptions to use the new enum for Cage mode 2010-08-08 13:25:10 +02:00
Michael Muré 2abbfc9114 rewrite of the GimpCage data structure as a Gegl config object 2010-08-08 13:25:00 +02:00
Michael Muré 5d483a9517 add an enum for cage mode 2010-08-08 13:24:50 +02:00
Michael Muré 066bbb80f4 gimpcagetool: flush the image correctly after applying a cage deform 2010-08-08 13:24:39 +02:00
Michael Muré e141953d35 gimpcagetool: the cage can be closed only if the number of point is 3 or more 2010-08-08 13:24:29 +02:00
Michael Muré 98ff627955 gimpcagetool: fix a missing include and a function declaration 2010-08-08 13:24:16 +02:00
Michael Muré fcd156014a gimpcagetool: beginning of the link tool/gegl op 2010-08-08 13:24:06 +02:00
Michael Muré c24029c230 gimpcage: fix of a bug in the bounding box computation 2010-08-08 13:23:56 +02:00
Michael Muré df842ba87c gimpcage: add a missing update of the scaling factor 2010-08-08 13:23:45 +02:00
Michael Muré a20c519baf gimpoperationcage: use of no_cache = false 2010-08-08 13:23:33 +02:00