mirror of https://github.com/GNOME/gimp.git
app: rename gimp_gegl_combine_mask() to gimp_gegl_combine_mask_weird()
because it is.
This commit is contained in:
parent
0215e76acf
commit
5738c866a1
|
@ -425,12 +425,12 @@ gimp_gegl_apply_mask (GeglBuffer *mask_buffer,
|
|||
}
|
||||
|
||||
void
|
||||
gimp_gegl_combine_mask (GeglBuffer *mask_buffer,
|
||||
const GeglRectangle *mask_rect,
|
||||
GeglBuffer *dest_buffer,
|
||||
const GeglRectangle *dest_rect,
|
||||
gdouble opacity,
|
||||
gboolean stipple)
|
||||
gimp_gegl_combine_mask_weird (GeglBuffer *mask_buffer,
|
||||
const GeglRectangle *mask_rect,
|
||||
GeglBuffer *dest_buffer,
|
||||
const GeglRectangle *dest_rect,
|
||||
gdouble opacity,
|
||||
gboolean stipple)
|
||||
{
|
||||
GeglBufferIterator *iter;
|
||||
|
||||
|
|
|
@ -25,55 +25,55 @@
|
|||
/* this is a pretty stupid port of concolve_region() that only works
|
||||
* on a linear source buffer
|
||||
*/
|
||||
void gimp_gegl_convolve (GeglBuffer *src_buffer,
|
||||
const GeglRectangle *src_rect,
|
||||
GeglBuffer *dest_buffer,
|
||||
const GeglRectangle *dest_rect,
|
||||
const gfloat *kernel,
|
||||
gint kernel_size,
|
||||
gdouble divisor,
|
||||
GimpConvolutionType mode,
|
||||
gboolean alpha_weighting);
|
||||
void gimp_gegl_convolve (GeglBuffer *src_buffer,
|
||||
const GeglRectangle *src_rect,
|
||||
GeglBuffer *dest_buffer,
|
||||
const GeglRectangle *dest_rect,
|
||||
const gfloat *kernel,
|
||||
gint kernel_size,
|
||||
gdouble divisor,
|
||||
GimpConvolutionType mode,
|
||||
gboolean alpha_weighting);
|
||||
|
||||
void gimp_gegl_dodgeburn (GeglBuffer *src_buffer,
|
||||
const GeglRectangle *src_rect,
|
||||
GeglBuffer *dest_buffer,
|
||||
const GeglRectangle *dest_rect,
|
||||
gdouble exposure,
|
||||
GimpDodgeBurnType type,
|
||||
GimpTransferMode mode);
|
||||
void gimp_gegl_dodgeburn (GeglBuffer *src_buffer,
|
||||
const GeglRectangle *src_rect,
|
||||
GeglBuffer *dest_buffer,
|
||||
const GeglRectangle *dest_rect,
|
||||
gdouble exposure,
|
||||
GimpDodgeBurnType type,
|
||||
GimpTransferMode mode);
|
||||
|
||||
void gimp_gegl_smudge_blend (GeglBuffer *top_buffer,
|
||||
const GeglRectangle *top_rect,
|
||||
GeglBuffer *bottom_buffer,
|
||||
const GeglRectangle *bottom_rect,
|
||||
GeglBuffer *dest_buffer,
|
||||
const GeglRectangle *dest_rect,
|
||||
guchar blend);
|
||||
void gimp_gegl_smudge_blend (GeglBuffer *top_buffer,
|
||||
const GeglRectangle *top_rect,
|
||||
GeglBuffer *bottom_buffer,
|
||||
const GeglRectangle *bottom_rect,
|
||||
GeglBuffer *dest_buffer,
|
||||
const GeglRectangle *dest_rect,
|
||||
guchar blend);
|
||||
|
||||
void gimp_gegl_apply_mask (GeglBuffer *mask_buffer,
|
||||
const GeglRectangle *mask_rect,
|
||||
GeglBuffer *dest_buffer,
|
||||
const GeglRectangle *dest_rect,
|
||||
gdouble opacity);
|
||||
void gimp_gegl_apply_mask (GeglBuffer *mask_buffer,
|
||||
const GeglRectangle *mask_rect,
|
||||
GeglBuffer *dest_buffer,
|
||||
const GeglRectangle *dest_rect,
|
||||
gdouble opacity);
|
||||
|
||||
void gimp_gegl_combine_mask (GeglBuffer *mask_buffer,
|
||||
const GeglRectangle *mask_rect,
|
||||
GeglBuffer *dest_buffer,
|
||||
const GeglRectangle *dest_rect,
|
||||
gdouble opacity,
|
||||
gboolean stipple);
|
||||
void gimp_gegl_combine_mask_weird (GeglBuffer *mask_buffer,
|
||||
const GeglRectangle *mask_rect,
|
||||
GeglBuffer *dest_buffer,
|
||||
const GeglRectangle *dest_rect,
|
||||
gdouble opacity,
|
||||
gboolean stipple);
|
||||
|
||||
void gimp_gegl_replace (GeglBuffer *top_buffer,
|
||||
const GeglRectangle *top_rect,
|
||||
GeglBuffer *bottom_buffer,
|
||||
const GeglRectangle *bottom_rect,
|
||||
GeglBuffer *mask_buffer,
|
||||
const GeglRectangle *mask_rect,
|
||||
GeglBuffer *dest_buffer,
|
||||
const GeglRectangle *dest_rect,
|
||||
guchar opacity,
|
||||
const gboolean *affect);
|
||||
void gimp_gegl_replace (GeglBuffer *top_buffer,
|
||||
const GeglRectangle *top_rect,
|
||||
GeglBuffer *bottom_buffer,
|
||||
const GeglRectangle *bottom_rect,
|
||||
GeglBuffer *mask_buffer,
|
||||
const GeglRectangle *mask_rect,
|
||||
GeglBuffer *dest_buffer,
|
||||
const GeglRectangle *dest_rect,
|
||||
guchar opacity,
|
||||
const gboolean *affect);
|
||||
|
||||
|
||||
#endif /* __GIMP_GEGL_LOOPS_H__ */
|
||||
|
|
|
@ -722,13 +722,13 @@ gimp_paint_core_paste (GimpPaintCore *core,
|
|||
*/
|
||||
if (paint_mask != core->canvas_buffer)
|
||||
{
|
||||
gimp_gegl_combine_mask (paint_mask, paint_mask_rect,
|
||||
core->canvas_buffer,
|
||||
GEGL_RECTANGLE (core->paint_buffer_x,
|
||||
core->paint_buffer_y,
|
||||
width, height),
|
||||
paint_opacity,
|
||||
GIMP_IS_AIRBRUSH (core));
|
||||
gimp_gegl_combine_mask_weird (paint_mask, paint_mask_rect,
|
||||
core->canvas_buffer,
|
||||
GEGL_RECTANGLE (core->paint_buffer_x,
|
||||
core->paint_buffer_y,
|
||||
width, height),
|
||||
paint_opacity,
|
||||
GIMP_IS_AIRBRUSH (core));
|
||||
}
|
||||
|
||||
gimp_gegl_apply_mask (core->canvas_buffer,
|
||||
|
@ -819,13 +819,13 @@ gimp_paint_core_replace (GimpPaintCore *core,
|
|||
paint_mask != core->canvas_buffer)
|
||||
{
|
||||
/* combine the paint mask and the canvas buffer */
|
||||
gimp_gegl_combine_mask (paint_mask, paint_mask_rect,
|
||||
core->canvas_buffer,
|
||||
GEGL_RECTANGLE (core->paint_buffer_x,
|
||||
core->paint_buffer_y,
|
||||
width, height),
|
||||
paint_opacity,
|
||||
GIMP_IS_AIRBRUSH (core));
|
||||
gimp_gegl_combine_mask_weird (paint_mask, paint_mask_rect,
|
||||
core->canvas_buffer,
|
||||
GEGL_RECTANGLE (core->paint_buffer_x,
|
||||
core->paint_buffer_y,
|
||||
width, height),
|
||||
paint_opacity,
|
||||
GIMP_IS_AIRBRUSH (core));
|
||||
|
||||
/* initialize the maskPR from the canvas buffer */
|
||||
paint_mask = core->canvas_buffer;
|
||||
|
|
Loading…
Reference in New Issue