Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
GIMP
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
2,016
Issues
2,016
List
Boards
Labels
Milestones
Merge Requests
20
Merge Requests
20
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Container Registry
External Wiki
External Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
GNOME
GIMP
Commits
f68c3c70
Commit
f68c3c70
authored
Mar 26, 2012
by
Øyvind "pippin" Kolås
Committed by
Michael Natterer
May 02, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
app: adapt to API changes in GEGL
parent
2b6b5a8a
Changes
13
Hide whitespace changes
Inline
Side-by-side
Showing
13 changed files
with
36 additions
and
27 deletions
+36
-27
app/core/gimpboundary.c
app/core/gimpboundary.c
+4
-2
app/core/gimpbuffer.c
app/core/gimpbuffer.c
+2
-1
app/core/gimpchannel.c
app/core/gimpchannel.c
+1
-1
app/core/gimpdrawable-transform.c
app/core/gimpdrawable-transform.c
+3
-3
app/core/gimpdrawable.c
app/core/gimpdrawable.c
+1
-1
app/core/gimpimage-crop.c
app/core/gimpimage-crop.c
+8
-4
app/core/gimpimagemap.c
app/core/gimpimagemap.c
+2
-1
app/core/gimplayer.c
app/core/gimplayer.c
+1
-1
app/core/gimppatternclipboard.c
app/core/gimppatternclipboard.c
+2
-1
app/core/gimpprojection.c
app/core/gimpprojection.c
+1
-1
app/gegl/gimpoperationborder.c
app/gegl/gimpoperationborder.c
+7
-7
app/gegl/gimpoperationgrow.c
app/gegl/gimpoperationgrow.c
+2
-2
app/gegl/gimpoperationshrink.c
app/gegl/gimpoperationshrink.c
+2
-2
No files found.
app/core/gimpboundary.c
View file @
f68c3c70
...
...
@@ -711,7 +711,8 @@ generate_boundary (GeglBuffer *buffer,
line_rect
.
y
=
start
;
gegl_buffer_get
(
buffer
,
&
line_rect
,
1
.
0
,
format
,
line_data
,
GEGL_AUTO_ROWSTRIDE
);
line_data
,
GEGL_AUTO_ROWSTRIDE
,
GEGL_ABYSS_NONE
);
find_empty_segs
(
region
,
line_data
,
bpp
,
start
,
boundary
->
empty_segs_c
,
...
...
@@ -727,7 +728,8 @@ generate_boundary (GeglBuffer *buffer,
line_data
=
NULL
;
else
gegl_buffer_get
(
buffer
,
&
line_rect
,
1
.
0
,
format
,
line_data
,
GEGL_AUTO_ROWSTRIDE
);
line_data
,
GEGL_AUTO_ROWSTRIDE
,
GEGL_ABYSS_NONE
);
find_empty_segs
(
region
,
line_data
,
bpp
,
scanline
+
1
,
boundary
->
empty_segs_n
,
...
...
app/core/gimpbuffer.c
View file @
f68c3c70
...
...
@@ -208,7 +208,8 @@ gimp_buffer_get_new_preview (GimpViewable *viewable,
gimp_bpp_to_babl_format
(
gimp_buffer_get_bytes
(
buffer
),
TRUE
),
temp_buf_get_data
(
preview
),
width
*
gimp_buffer_get_bytes
(
buffer
));
width
*
gimp_buffer_get_bytes
(
buffer
),
GEGL_ABYSS_NONE
);
return
preview
;
}
...
...
app/core/gimpchannel.c
View file @
f68c3c70
...
...
@@ -977,7 +977,7 @@ gimp_channel_get_opacity_at (GimpPickable *pickable,
gegl_buffer_sample
(
gimp_drawable_get_buffer
(
GIMP_DRAWABLE
(
channel
)),
x
,
y
,
NULL
,
&
value
,
babl_format
(
"Y u8"
),
GEGL_SAMPLER_NEAREST
);
GEGL_SAMPLER_NEAREST
,
GEGL_ABYSS_NONE
);
return
value
;
}
...
...
app/core/gimpdrawable-transform.c
View file @
f68c3c70
...
...
@@ -581,7 +581,7 @@ gimp_drawable_transform_buffer_rotate (GimpDrawable *drawable,
dest_rect
.
x
=
new_x
+
i
;
gegl_buffer_get
(
orig_buffer
,
&
src_rect
,
1
.
0
,
NULL
,
buf
,
GEGL_AUTO_ROWSTRIDE
);
GEGL_AUTO_ROWSTRIDE
,
GEGL_ABYSS_NONE
);
gegl_buffer_set
(
new_buffer
,
&
dest_rect
,
0
,
NULL
,
buf
,
GEGL_AUTO_ROWSTRIDE
);
}
...
...
@@ -609,7 +609,7 @@ gimp_drawable_transform_buffer_rotate (GimpDrawable *drawable,
dest_rect
.
y
=
new_y
+
i
;
gegl_buffer_get
(
orig_buffer
,
&
src_rect
,
1
.
0
,
NULL
,
buf
,
GEGL_AUTO_ROWSTRIDE
);
GEGL_AUTO_ROWSTRIDE
,
GEGL_ABYSS_NONE
);
for
(
j
=
0
;
j
<
orig_width
/
2
;
j
++
)
{
...
...
@@ -651,7 +651,7 @@ gimp_drawable_transform_buffer_rotate (GimpDrawable *drawable,
dest_rect
.
y
=
new_y
+
i
;
gegl_buffer_get
(
orig_buffer
,
&
src_rect
,
1
.
0
,
NULL
,
buf
,
GEGL_AUTO_ROWSTRIDE
);
GEGL_AUTO_ROWSTRIDE
,
GEGL_ABYSS_NONE
);
gegl_buffer_set
(
new_buffer
,
&
dest_rect
,
0
,
NULL
,
buf
,
GEGL_AUTO_ROWSTRIDE
);
}
...
...
app/core/gimpdrawable.c
View file @
f68c3c70
...
...
@@ -704,7 +704,7 @@ gimp_drawable_get_pixel_at (GimpPickable *pickable,
gegl_buffer_sample
(
gimp_drawable_get_buffer
(
drawable
),
x
,
y
,
NULL
,
pixel
,
gimp_drawable_get_format
(
drawable
),
GEGL_SAMPLER_NEAREST
);
GEGL_SAMPLER_NEAREST
,
GEGL_ABYSS_NONE
);
return
TRUE
;
}
...
...
app/core/gimpimage-crop.c
View file @
f68c3c70
...
...
@@ -389,7 +389,8 @@ gimp_image_crop_auto_shrink (GimpImage *image,
for
(
y
=
y1
;
y
<
y2
&&
!
abort
;
y
++
)
{
rect
.
y
=
y
;
gegl_buffer_get
(
buffer
,
&
rect
,
1
.
0
,
NULL
,
buf
,
GEGL_AUTO_ROWSTRIDE
);
gegl_buffer_get
(
buffer
,
&
rect
,
1
.
0
,
NULL
,
buf
,
GEGL_AUTO_ROWSTRIDE
,
GEGL_ABYSS_NONE
);
for
(
x
=
0
;
x
<
width
&&
!
abort
;
x
++
)
abort
=
!
(
colors_equal_func
)
(
bgcolor
,
buf
+
x
*
bytes
,
bytes
);
}
...
...
@@ -407,7 +408,8 @@ gimp_image_crop_auto_shrink (GimpImage *image,
for
(
y
=
y2
;
y
>
y1
&&
!
abort
;
y
--
)
{
rect
.
y
=
y
-
1
;
gegl_buffer_get
(
buffer
,
&
rect
,
1
.
0
,
NULL
,
buf
,
GEGL_AUTO_ROWSTRIDE
);
gegl_buffer_get
(
buffer
,
&
rect
,
1
.
0
,
NULL
,
buf
,
GEGL_AUTO_ROWSTRIDE
,
GEGL_ABYSS_NONE
);
for
(
x
=
0
;
x
<
width
&&
!
abort
;
x
++
)
abort
=
!
(
colors_equal_func
)
(
bgcolor
,
buf
+
x
*
bytes
,
bytes
);
}
...
...
@@ -426,7 +428,8 @@ gimp_image_crop_auto_shrink (GimpImage *image,
for
(
x
=
x1
;
x
<
x2
&&
!
abort
;
x
++
)
{
rect
.
x
=
x
;
gegl_buffer_get
(
buffer
,
&
rect
,
1
.
0
,
NULL
,
buf
,
GEGL_AUTO_ROWSTRIDE
);
gegl_buffer_get
(
buffer
,
&
rect
,
1
.
0
,
NULL
,
buf
,
GEGL_AUTO_ROWSTRIDE
,
GEGL_ABYSS_NONE
);
for
(
y
=
0
;
y
<
height
&&
!
abort
;
y
++
)
abort
=
!
(
colors_equal_func
)
(
bgcolor
,
buf
+
y
*
bytes
,
bytes
);
}
...
...
@@ -442,7 +445,8 @@ gimp_image_crop_auto_shrink (GimpImage *image,
for
(
x
=
x2
;
x
>
x1
&&
!
abort
;
x
--
)
{
rect
.
x
=
x
-
1
;
gegl_buffer_get
(
buffer
,
&
rect
,
1
.
0
,
NULL
,
buf
,
GEGL_AUTO_ROWSTRIDE
);
gegl_buffer_get
(
buffer
,
&
rect
,
1
.
0
,
NULL
,
buf
,
GEGL_AUTO_ROWSTRIDE
,
GEGL_ABYSS_NONE
);
for
(
y
=
0
;
y
<
height
&&
!
abort
;
y
++
)
abort
=
!
(
colors_equal_func
)
(
bgcolor
,
buf
+
y
*
bytes
,
bytes
);
}
...
...
app/core/gimpimagemap.c
View file @
f68c3c70
...
...
@@ -341,7 +341,8 @@ gimp_image_map_get_pixel_at (GimpPickable *pickable,
x
-
offset_x
,
y
-
offset_y
,
NULL
,
pixel
,
gimp_drawable_get_format
(
image_map
->
drawable
),
GEGL_SAMPLER_NEAREST
);
GEGL_SAMPLER_NEAREST
,
GEGL_ABYSS_NONE
);
return
TRUE
;
}
...
...
app/core/gimplayer.c
View file @
f68c3c70
...
...
@@ -990,7 +990,7 @@ gimp_layer_get_opacity_at (GimpPickable *pickable,
*/
gegl_buffer_sample
(
gimp_drawable_get_buffer
(
GIMP_DRAWABLE
(
layer
)),
x
,
y
,
NULL
,
&
value
,
babl_format
(
"A u8"
),
GEGL_SAMPLER_NEAREST
);
GEGL_SAMPLER_NEAREST
,
GEGL_ABYSS_NONE
);
if
(
layer
->
mask
)
{
...
...
app/core/gimppatternclipboard.c
View file @
f68c3c70
...
...
@@ -203,7 +203,8 @@ gimp_pattern_clipboard_buffer_changed (Gimp *gimp,
GIMP_GEGL_RECT
(
0
,
0
,
width
,
height
),
1
.
0
,
gimp_bpp_to_babl_format
(
bytes
,
TRUE
),
temp_buf_get_data
(
pattern
->
mask
),
width
*
gimp_buffer_get_bytes
(
buffer
));
width
*
gimp_buffer_get_bytes
(
buffer
),
GEGL_ABYSS_NONE
);
}
else
{
...
...
app/core/gimpprojection.c
View file @
f68c3c70
...
...
@@ -386,7 +386,7 @@ gimp_projection_get_pixel_at (GimpPickable *pickable,
gegl_buffer_sample
(
buffer
,
x
,
y
,
NULL
,
pixel
,
gimp_projection_get_format
(
pickable
),
GEGL_SAMPLER_NEAREST
);
GEGL_SAMPLER_NEAREST
,
GEGL_ABYSS_NONE
);
return
TRUE
;
}
...
...
app/gegl/gimpoperationborder.c
View file @
f68c3c70
...
...
@@ -381,14 +381,14 @@ gimp_operation_border_process (GeglOperation *operation,
GIMP_GEGL_RECT
(
roi
->
x
,
roi
->
y
+
0
,
roi
->
width
,
1
),
1
.
0
,
input_format
,
source
[
1
],
GEGL_AUTO_ROWSTRIDE
);
GEGL_AUTO_ROWSTRIDE
,
GEGL_ABYSS_NONE
);
if
(
roi
->
height
>
1
)
gegl_buffer_get
(
input
,
GIMP_GEGL_RECT
(
roi
->
x
,
roi
->
y
+
1
,
roi
->
width
,
1
),
1
.
0
,
input_format
,
source
[
2
],
GEGL_AUTO_ROWSTRIDE
);
GEGL_AUTO_ROWSTRIDE
,
GEGL_ABYSS_NONE
);
else
memcpy
(
source
[
2
],
source
[
1
],
roi
->
width
);
...
...
@@ -409,7 +409,7 @@ gimp_operation_border_process (GeglOperation *operation,
GIMP_GEGL_RECT
(
roi
->
x
,
roi
->
y
+
y
+
1
,
roi
->
width
,
1
),
1
.
0
,
input_format
,
source
[
2
],
GEGL_AUTO_ROWSTRIDE
);
GEGL_AUTO_ROWSTRIDE
,
GEGL_ABYSS_NONE
);
}
else
{
...
...
@@ -523,14 +523,14 @@ gimp_operation_border_process (GeglOperation *operation,
GIMP_GEGL_RECT
(
roi
->
x
,
roi
->
y
+
0
,
roi
->
width
,
1
),
1
.
0
,
input_format
,
buf
[
1
],
GEGL_AUTO_ROWSTRIDE
);
GEGL_AUTO_ROWSTRIDE
,
GEGL_ABYSS_NONE
);
if
(
roi
->
height
>
1
)
gegl_buffer_get
(
input
,
GIMP_GEGL_RECT
(
roi
->
x
,
roi
->
y
+
1
,
roi
->
width
,
1
),
1
.
0
,
input_format
,
buf
[
2
],
GEGL_AUTO_ROWSTRIDE
);
GEGL_AUTO_ROWSTRIDE
,
GEGL_ABYSS_NONE
);
else
memcpy
(
buf
[
2
],
buf
[
1
],
roi
->
width
);
...
...
@@ -544,7 +544,7 @@ gimp_operation_border_process (GeglOperation *operation,
GIMP_GEGL_RECT
(
roi
->
x
,
roi
->
y
+
y
+
1
,
roi
->
width
,
1
),
1
.
0
,
input_format
,
buf
[
2
],
GEGL_AUTO_ROWSTRIDE
);
GEGL_AUTO_ROWSTRIDE
,
GEGL_ABYSS_NONE
);
compute_transition
(
transition
[
y
+
1
],
buf
,
roi
->
width
,
self
->
edge_lock
);
}
...
...
@@ -574,7 +574,7 @@ gimp_operation_border_process (GeglOperation *operation,
roi
->
y
+
y
+
self
->
radius_y
+
1
,
roi
->
width
,
1
),
1
.
0
,
input_format
,
buf
[
2
],
GEGL_AUTO_ROWSTRIDE
);
GEGL_AUTO_ROWSTRIDE
,
GEGL_ABYSS_NONE
);
compute_transition
(
transition
[
self
->
radius_y
],
buf
,
roi
->
width
,
self
->
edge_lock
);
}
else
...
...
app/gegl/gimpoperationgrow.c
View file @
f68c3c70
...
...
@@ -284,7 +284,7 @@ gimp_operation_grow_process (GeglOperation *operation,
GIMP_GEGL_RECT
(
roi
->
x
,
roi
->
y
+
i
,
roi
->
width
,
1
),
1
.
0
,
input_format
,
buf
[
i
+
1
],
GEGL_AUTO_ROWSTRIDE
);
GEGL_AUTO_ROWSTRIDE
,
GEGL_ABYSS_NONE
);
for
(
x
=
0
;
x
<
roi
->
width
;
x
++
)
/* set up max for top of image */
{
...
...
@@ -304,7 +304,7 @@ gimp_operation_grow_process (GeglOperation *operation,
GIMP_GEGL_RECT
(
roi
->
x
,
roi
->
y
+
y
+
self
->
radius_y
,
roi
->
width
,
1
),
1
.
0
,
input_format
,
buf
[
self
->
radius_y
],
GEGL_AUTO_ROWSTRIDE
);
GEGL_AUTO_ROWSTRIDE
,
GEGL_ABYSS_NONE
);
else
memset
(
buf
[
self
->
radius_y
],
0
,
roi
->
width
);
...
...
app/gegl/gimpoperationshrink.c
View file @
f68c3c70
...
...
@@ -323,7 +323,7 @@ gimp_operation_shrink_process (GeglOperation *operation,
GIMP_GEGL_RECT
(
roi
->
x
,
roi
->
y
+
i
,
roi
->
width
,
1
),
1
.
0
,
input_format
,
buf
[
i
+
1
],
GEGL_AUTO_ROWSTRIDE
);
GEGL_AUTO_ROWSTRIDE
,
GEGL_ABYSS_NONE
);
if
(
self
->
edge_lock
)
memcpy
(
buf
[
0
],
buf
[
1
],
roi
->
width
);
...
...
@@ -348,7 +348,7 @@ gimp_operation_shrink_process (GeglOperation *operation,
GIMP_GEGL_RECT
(
roi
->
x
,
roi
->
y
+
y
+
self
->
radius_y
,
roi
->
width
,
1
),
1
.
0
,
input_format
,
buf
[
self
->
radius_y
],
GEGL_AUTO_ROWSTRIDE
);
GEGL_AUTO_ROWSTRIDE
,
GEGL_ABYSS_NONE
);
else
if
(
self
->
edge_lock
)
memcpy
(
buf
[
self
->
radius_y
],
buf
[
self
->
radius_y
-
1
],
roi
->
width
);
else
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment