Refer to the input as 'in' instead of 'src', the layer as 'layer' instead
* app/gegl/gimpoperation*mode.c: Refer to the input as 'in' instead of 'src', the layer as 'layer' instead of 'aux', and the result as 'out' instead of 'dest'. svn path=/trunk/; revision=27329
This commit is contained in:
@ -1,3 +1,9 @@
|
||||
2008-10-19 Martin Nordholts <martinn@svn.gnome.org>
|
||||
|
||||
* app/gegl/gimpoperation*mode.c: Refer to the input as 'in'
|
||||
instead of 'src', the layer as 'layer' instead of 'aux', and the
|
||||
result as 'out' instead of 'dest'.
|
||||
|
||||
2008-10-19 Martin Nordholts <martinn@svn.gnome.org>
|
||||
|
||||
* app/base/base-types.h: Rename the convenient channel offset
|
||||
|
||||
@ -65,20 +65,20 @@ gimp_operation_anti_erase_mode_process (GeglOperation *operation,
|
||||
glong samples,
|
||||
const GeglRectangle *roi)
|
||||
{
|
||||
gfloat *src = in_buf;
|
||||
gfloat *aux = aux_buf;
|
||||
gfloat *dest = out_buf;
|
||||
gfloat *in = in_buf;
|
||||
gfloat *layer = aux_buf;
|
||||
gfloat *out = out_buf;
|
||||
|
||||
while (samples--)
|
||||
{
|
||||
dest[RED] = src[RED];
|
||||
dest[GREEN] = src[GREEN];
|
||||
dest[BLUE] = src[BLUE];
|
||||
dest[ALPHA] = src[ALPHA];
|
||||
out[RED] = in[RED];
|
||||
out[GREEN] = in[GREEN];
|
||||
out[BLUE] = in[BLUE];
|
||||
out[ALPHA] = in[ALPHA];
|
||||
|
||||
src += 4;
|
||||
aux += 4;
|
||||
dest += 4;
|
||||
in += 4;
|
||||
layer += 4;
|
||||
out += 4;
|
||||
}
|
||||
|
||||
return TRUE;
|
||||
|
||||
@ -65,20 +65,20 @@ gimp_operation_behind_mode_process (GeglOperation *operation,
|
||||
glong samples,
|
||||
const GeglRectangle *roi)
|
||||
{
|
||||
gfloat *src = in_buf;
|
||||
gfloat *aux = aux_buf;
|
||||
gfloat *dest = out_buf;
|
||||
gfloat *in = in_buf;
|
||||
gfloat *layer = aux_buf;
|
||||
gfloat *out = out_buf;
|
||||
|
||||
while (samples--)
|
||||
{
|
||||
dest[RED] = src[RED];
|
||||
dest[GREEN] = src[GREEN];
|
||||
dest[BLUE] = src[BLUE];
|
||||
dest[ALPHA] = src[ALPHA];
|
||||
out[RED] = in[RED];
|
||||
out[GREEN] = in[GREEN];
|
||||
out[BLUE] = in[BLUE];
|
||||
out[ALPHA] = in[ALPHA];
|
||||
|
||||
src += 4;
|
||||
aux += 4;
|
||||
dest += 4;
|
||||
in += 4;
|
||||
layer += 4;
|
||||
out += 4;
|
||||
}
|
||||
|
||||
return TRUE;
|
||||
|
||||
@ -65,20 +65,20 @@ gimp_operation_burn_mode_process (GeglOperation *operation,
|
||||
glong samples,
|
||||
const GeglRectangle *roi)
|
||||
{
|
||||
gfloat *src = in_buf;
|
||||
gfloat *aux = aux_buf;
|
||||
gfloat *dest = out_buf;
|
||||
gfloat *in = in_buf;
|
||||
gfloat *layer = aux_buf;
|
||||
gfloat *out = out_buf;
|
||||
|
||||
while (samples--)
|
||||
{
|
||||
dest[RED] = src[RED];
|
||||
dest[GREEN] = src[GREEN];
|
||||
dest[BLUE] = src[BLUE];
|
||||
dest[ALPHA] = src[ALPHA];
|
||||
out[RED] = in[RED];
|
||||
out[GREEN] = in[GREEN];
|
||||
out[BLUE] = in[BLUE];
|
||||
out[ALPHA] = in[ALPHA];
|
||||
|
||||
src += 4;
|
||||
aux += 4;
|
||||
dest += 4;
|
||||
in += 4;
|
||||
layer += 4;
|
||||
out += 4;
|
||||
}
|
||||
|
||||
return TRUE;
|
||||
|
||||
@ -65,20 +65,20 @@ gimp_operation_color_erase_mode_process (GeglOperation *operation,
|
||||
glong samples,
|
||||
const GeglRectangle *roi)
|
||||
{
|
||||
gfloat *src = in_buf;
|
||||
gfloat *aux = aux_buf;
|
||||
gfloat *dest = out_buf;
|
||||
gfloat *in = in_buf;
|
||||
gfloat *layer = aux_buf;
|
||||
gfloat *out = out_buf;
|
||||
|
||||
while (samples--)
|
||||
{
|
||||
dest[RED] = src[RED];
|
||||
dest[GREEN] = src[GREEN];
|
||||
dest[BLUE] = src[BLUE];
|
||||
dest[ALPHA] = src[ALPHA];
|
||||
out[RED] = in[RED];
|
||||
out[GREEN] = in[GREEN];
|
||||
out[BLUE] = in[BLUE];
|
||||
out[ALPHA] = in[ALPHA];
|
||||
|
||||
src += 4;
|
||||
aux += 4;
|
||||
dest += 4;
|
||||
in += 4;
|
||||
layer += 4;
|
||||
out += 4;
|
||||
}
|
||||
|
||||
return TRUE;
|
||||
|
||||
@ -65,20 +65,20 @@ gimp_operation_color_mode_process (GeglOperation *operation,
|
||||
glong samples,
|
||||
const GeglRectangle *roi)
|
||||
{
|
||||
gfloat *src = in_buf;
|
||||
gfloat *aux = aux_buf;
|
||||
gfloat *dest = out_buf;
|
||||
gfloat *in = in_buf;
|
||||
gfloat *layer = aux_buf;
|
||||
gfloat *out = out_buf;
|
||||
|
||||
while (samples--)
|
||||
{
|
||||
dest[RED] = src[RED];
|
||||
dest[GREEN] = src[GREEN];
|
||||
dest[BLUE] = src[BLUE];
|
||||
dest[ALPHA] = src[ALPHA];
|
||||
out[RED] = in[RED];
|
||||
out[GREEN] = in[GREEN];
|
||||
out[BLUE] = in[BLUE];
|
||||
out[ALPHA] = in[ALPHA];
|
||||
|
||||
src += 4;
|
||||
aux += 4;
|
||||
dest += 4;
|
||||
in += 4;
|
||||
layer += 4;
|
||||
out += 4;
|
||||
}
|
||||
|
||||
return TRUE;
|
||||
|
||||
@ -65,20 +65,20 @@ gimp_operation_darken_only_mode_process (GeglOperation *operation,
|
||||
glong samples,
|
||||
const GeglRectangle *roi)
|
||||
{
|
||||
gfloat *src = in_buf;
|
||||
gfloat *aux = aux_buf;
|
||||
gfloat *dest = out_buf;
|
||||
gfloat *in = in_buf;
|
||||
gfloat *layer = aux_buf;
|
||||
gfloat *out = out_buf;
|
||||
|
||||
while (samples--)
|
||||
{
|
||||
dest[RED] = src[RED];
|
||||
dest[GREEN] = src[GREEN];
|
||||
dest[BLUE] = src[BLUE];
|
||||
dest[ALPHA] = src[ALPHA];
|
||||
out[RED] = in[RED];
|
||||
out[GREEN] = in[GREEN];
|
||||
out[BLUE] = in[BLUE];
|
||||
out[ALPHA] = in[ALPHA];
|
||||
|
||||
src += 4;
|
||||
aux += 4;
|
||||
dest += 4;
|
||||
in += 4;
|
||||
layer += 4;
|
||||
out += 4;
|
||||
}
|
||||
|
||||
return TRUE;
|
||||
|
||||
@ -65,20 +65,20 @@ gimp_operation_difference_mode_process (GeglOperation *operation,
|
||||
glong samples,
|
||||
const GeglRectangle *roi)
|
||||
{
|
||||
gfloat *src = in_buf;
|
||||
gfloat *aux = aux_buf;
|
||||
gfloat *dest = out_buf;
|
||||
gfloat *in = in_buf;
|
||||
gfloat *layer = aux_buf;
|
||||
gfloat *out = out_buf;
|
||||
|
||||
while (samples--)
|
||||
{
|
||||
dest[RED] = src[RED];
|
||||
dest[GREEN] = src[GREEN];
|
||||
dest[BLUE] = src[BLUE];
|
||||
dest[ALPHA] = src[ALPHA];
|
||||
out[RED] = in[RED];
|
||||
out[GREEN] = in[GREEN];
|
||||
out[BLUE] = in[BLUE];
|
||||
out[ALPHA] = in[ALPHA];
|
||||
|
||||
src += 4;
|
||||
aux += 4;
|
||||
dest += 4;
|
||||
in += 4;
|
||||
layer += 4;
|
||||
out += 4;
|
||||
}
|
||||
|
||||
return TRUE;
|
||||
|
||||
@ -65,20 +65,20 @@ gimp_operation_dissolve_mode_process (GeglOperation *operation,
|
||||
glong samples,
|
||||
const GeglRectangle *roi)
|
||||
{
|
||||
gfloat *src = in_buf;
|
||||
gfloat *aux = aux_buf;
|
||||
gfloat *dest = out_buf;
|
||||
gfloat *in = in_buf;
|
||||
gfloat *layer = aux_buf;
|
||||
gfloat *out = out_buf;
|
||||
|
||||
while (samples--)
|
||||
{
|
||||
dest[RED] = src[RED];
|
||||
dest[GREEN] = src[GREEN];
|
||||
dest[BLUE] = src[BLUE];
|
||||
dest[ALPHA] = src[ALPHA];
|
||||
out[RED] = in[RED];
|
||||
out[GREEN] = in[GREEN];
|
||||
out[BLUE] = in[BLUE];
|
||||
out[ALPHA] = in[ALPHA];
|
||||
|
||||
src += 4;
|
||||
aux += 4;
|
||||
dest += 4;
|
||||
in += 4;
|
||||
layer += 4;
|
||||
out += 4;
|
||||
}
|
||||
|
||||
return TRUE;
|
||||
|
||||
@ -65,20 +65,20 @@ gimp_operation_divide_mode_process (GeglOperation *operation,
|
||||
glong samples,
|
||||
const GeglRectangle *roi)
|
||||
{
|
||||
gfloat *src = in_buf;
|
||||
gfloat *aux = aux_buf;
|
||||
gfloat *dest = out_buf;
|
||||
gfloat *in = in_buf;
|
||||
gfloat *layer = aux_buf;
|
||||
gfloat *out = out_buf;
|
||||
|
||||
while (samples--)
|
||||
{
|
||||
dest[RED] = src[RED];
|
||||
dest[GREEN] = src[GREEN];
|
||||
dest[BLUE] = src[BLUE];
|
||||
dest[ALPHA] = src[ALPHA];
|
||||
out[RED] = in[RED];
|
||||
out[GREEN] = in[GREEN];
|
||||
out[BLUE] = in[BLUE];
|
||||
out[ALPHA] = in[ALPHA];
|
||||
|
||||
src += 4;
|
||||
aux += 4;
|
||||
dest += 4;
|
||||
in += 4;
|
||||
layer += 4;
|
||||
out += 4;
|
||||
}
|
||||
|
||||
return TRUE;
|
||||
|
||||
@ -65,20 +65,20 @@ gimp_operation_dodge_mode_process (GeglOperation *operation,
|
||||
glong samples,
|
||||
const GeglRectangle *roi)
|
||||
{
|
||||
gfloat *src = in_buf;
|
||||
gfloat *aux = aux_buf;
|
||||
gfloat *dest = out_buf;
|
||||
gfloat *in = in_buf;
|
||||
gfloat *layer = aux_buf;
|
||||
gfloat *out = out_buf;
|
||||
|
||||
while (samples--)
|
||||
{
|
||||
dest[RED] = src[RED];
|
||||
dest[GREEN] = src[GREEN];
|
||||
dest[BLUE] = src[BLUE];
|
||||
dest[ALPHA] = src[ALPHA];
|
||||
out[RED] = in[RED];
|
||||
out[GREEN] = in[GREEN];
|
||||
out[BLUE] = in[BLUE];
|
||||
out[ALPHA] = in[ALPHA];
|
||||
|
||||
src += 4;
|
||||
aux += 4;
|
||||
dest += 4;
|
||||
in += 4;
|
||||
layer += 4;
|
||||
out += 4;
|
||||
}
|
||||
|
||||
return TRUE;
|
||||
|
||||
@ -65,20 +65,20 @@ gimp_operation_erase_mode_process (GeglOperation *operation,
|
||||
glong samples,
|
||||
const GeglRectangle *roi)
|
||||
{
|
||||
gfloat *src = in_buf;
|
||||
gfloat *aux = aux_buf;
|
||||
gfloat *dest = out_buf;
|
||||
gfloat *in = in_buf;
|
||||
gfloat *layer = aux_buf;
|
||||
gfloat *out = out_buf;
|
||||
|
||||
while (samples--)
|
||||
{
|
||||
dest[RED] = src[RED];
|
||||
dest[GREEN] = src[GREEN];
|
||||
dest[BLUE] = src[BLUE];
|
||||
dest[ALPHA] = src[ALPHA];
|
||||
out[RED] = in[RED];
|
||||
out[GREEN] = in[GREEN];
|
||||
out[BLUE] = in[BLUE];
|
||||
out[ALPHA] = in[ALPHA];
|
||||
|
||||
src += 4;
|
||||
aux += 4;
|
||||
dest += 4;
|
||||
in += 4;
|
||||
layer += 4;
|
||||
out += 4;
|
||||
}
|
||||
|
||||
return TRUE;
|
||||
|
||||
@ -65,20 +65,20 @@ gimp_operation_grain_extract_mode_process (GeglOperation *operation,
|
||||
glong samples,
|
||||
const GeglRectangle *roi)
|
||||
{
|
||||
gfloat *src = in_buf;
|
||||
gfloat *aux = aux_buf;
|
||||
gfloat *dest = out_buf;
|
||||
gfloat *in = in_buf;
|
||||
gfloat *layer = aux_buf;
|
||||
gfloat *out = out_buf;
|
||||
|
||||
while (samples--)
|
||||
{
|
||||
dest[RED] = src[RED];
|
||||
dest[GREEN] = src[GREEN];
|
||||
dest[BLUE] = src[BLUE];
|
||||
dest[ALPHA] = src[ALPHA];
|
||||
out[RED] = in[RED];
|
||||
out[GREEN] = in[GREEN];
|
||||
out[BLUE] = in[BLUE];
|
||||
out[ALPHA] = in[ALPHA];
|
||||
|
||||
src += 4;
|
||||
aux += 4;
|
||||
dest += 4;
|
||||
in += 4;
|
||||
layer += 4;
|
||||
out += 4;
|
||||
}
|
||||
|
||||
return TRUE;
|
||||
|
||||
@ -65,20 +65,20 @@ gimp_operation_grain_merge_mode_process (GeglOperation *operation,
|
||||
glong samples,
|
||||
const GeglRectangle *roi)
|
||||
{
|
||||
gfloat *src = in_buf;
|
||||
gfloat *aux = aux_buf;
|
||||
gfloat *dest = out_buf;
|
||||
gfloat *in = in_buf;
|
||||
gfloat *layer = aux_buf;
|
||||
gfloat *out = out_buf;
|
||||
|
||||
while (samples--)
|
||||
{
|
||||
dest[RED] = src[RED];
|
||||
dest[GREEN] = src[GREEN];
|
||||
dest[BLUE] = src[BLUE];
|
||||
dest[ALPHA] = src[ALPHA];
|
||||
out[RED] = in[RED];
|
||||
out[GREEN] = in[GREEN];
|
||||
out[BLUE] = in[BLUE];
|
||||
out[ALPHA] = in[ALPHA];
|
||||
|
||||
src += 4;
|
||||
aux += 4;
|
||||
dest += 4;
|
||||
in += 4;
|
||||
layer += 4;
|
||||
out += 4;
|
||||
}
|
||||
|
||||
return TRUE;
|
||||
|
||||
@ -65,20 +65,20 @@ gimp_operation_hardlight_mode_process (GeglOperation *operation,
|
||||
glong samples,
|
||||
const GeglRectangle *roi)
|
||||
{
|
||||
gfloat *src = in_buf;
|
||||
gfloat *aux = aux_buf;
|
||||
gfloat *dest = out_buf;
|
||||
gfloat *in = in_buf;
|
||||
gfloat *layer = aux_buf;
|
||||
gfloat *out = out_buf;
|
||||
|
||||
while (samples--)
|
||||
{
|
||||
dest[RED] = src[RED];
|
||||
dest[GREEN] = src[GREEN];
|
||||
dest[BLUE] = src[BLUE];
|
||||
dest[ALPHA] = src[ALPHA];
|
||||
out[RED] = in[RED];
|
||||
out[GREEN] = in[GREEN];
|
||||
out[BLUE] = in[BLUE];
|
||||
out[ALPHA] = in[ALPHA];
|
||||
|
||||
src += 4;
|
||||
aux += 4;
|
||||
dest += 4;
|
||||
in += 4;
|
||||
layer += 4;
|
||||
out += 4;
|
||||
}
|
||||
|
||||
return TRUE;
|
||||
|
||||
@ -65,20 +65,20 @@ gimp_operation_hue_mode_process (GeglOperation *operation,
|
||||
glong samples,
|
||||
const GeglRectangle *roi)
|
||||
{
|
||||
gfloat *src = in_buf;
|
||||
gfloat *aux = aux_buf;
|
||||
gfloat *dest = out_buf;
|
||||
gfloat *in = in_buf;
|
||||
gfloat *layer = aux_buf;
|
||||
gfloat *out = out_buf;
|
||||
|
||||
while (samples--)
|
||||
{
|
||||
dest[RED] = src[RED];
|
||||
dest[GREEN] = src[GREEN];
|
||||
dest[BLUE] = src[BLUE];
|
||||
dest[ALPHA] = src[ALPHA];
|
||||
out[RED] = in[RED];
|
||||
out[GREEN] = in[GREEN];
|
||||
out[BLUE] = in[BLUE];
|
||||
out[ALPHA] = in[ALPHA];
|
||||
|
||||
src += 4;
|
||||
aux += 4;
|
||||
dest += 4;
|
||||
in += 4;
|
||||
layer += 4;
|
||||
out += 4;
|
||||
}
|
||||
|
||||
return TRUE;
|
||||
|
||||
@ -65,20 +65,20 @@ gimp_operation_lighten_only_mode_process (GeglOperation *operation,
|
||||
glong samples,
|
||||
const GeglRectangle *roi)
|
||||
{
|
||||
gfloat *src = in_buf;
|
||||
gfloat *aux = aux_buf;
|
||||
gfloat *dest = out_buf;
|
||||
gfloat *in = in_buf;
|
||||
gfloat *layer = aux_buf;
|
||||
gfloat *out = out_buf;
|
||||
|
||||
while (samples--)
|
||||
{
|
||||
dest[RED] = src[RED];
|
||||
dest[GREEN] = src[GREEN];
|
||||
dest[BLUE] = src[BLUE];
|
||||
dest[ALPHA] = src[ALPHA];
|
||||
out[RED] = in[RED];
|
||||
out[GREEN] = in[GREEN];
|
||||
out[BLUE] = in[BLUE];
|
||||
out[ALPHA] = in[ALPHA];
|
||||
|
||||
src += 4;
|
||||
aux += 4;
|
||||
dest += 4;
|
||||
in += 4;
|
||||
layer += 4;
|
||||
out += 4;
|
||||
}
|
||||
|
||||
return TRUE;
|
||||
|
||||
@ -65,20 +65,20 @@ gimp_operation_multiply_mode_process (GeglOperation *operation,
|
||||
glong samples,
|
||||
const GeglRectangle *roi)
|
||||
{
|
||||
gfloat *src = in_buf;
|
||||
gfloat *aux = aux_buf;
|
||||
gfloat *dest = out_buf;
|
||||
gfloat *in = in_buf;
|
||||
gfloat *layer = aux_buf;
|
||||
gfloat *out = out_buf;
|
||||
|
||||
while (samples--)
|
||||
{
|
||||
dest[RED] = src[RED];
|
||||
dest[GREEN] = src[GREEN];
|
||||
dest[BLUE] = src[BLUE];
|
||||
dest[ALPHA] = src[ALPHA];
|
||||
out[RED] = in[RED];
|
||||
out[GREEN] = in[GREEN];
|
||||
out[BLUE] = in[BLUE];
|
||||
out[ALPHA] = in[ALPHA];
|
||||
|
||||
src += 4;
|
||||
aux += 4;
|
||||
dest += 4;
|
||||
in += 4;
|
||||
layer += 4;
|
||||
out += 4;
|
||||
}
|
||||
|
||||
return TRUE;
|
||||
|
||||
@ -65,20 +65,20 @@ gimp_operation_overlay_mode_process (GeglOperation *operation,
|
||||
glong samples,
|
||||
const GeglRectangle *roi)
|
||||
{
|
||||
gfloat *src = in_buf;
|
||||
gfloat *aux = aux_buf;
|
||||
gfloat *dest = out_buf;
|
||||
gfloat *in = in_buf;
|
||||
gfloat *layer = aux_buf;
|
||||
gfloat *out = out_buf;
|
||||
|
||||
while (samples--)
|
||||
{
|
||||
dest[RED] = src[RED];
|
||||
dest[GREEN] = src[GREEN];
|
||||
dest[BLUE] = src[BLUE];
|
||||
dest[ALPHA] = src[ALPHA];
|
||||
out[RED] = in[RED];
|
||||
out[GREEN] = in[GREEN];
|
||||
out[BLUE] = in[BLUE];
|
||||
out[ALPHA] = in[ALPHA];
|
||||
|
||||
src += 4;
|
||||
aux += 4;
|
||||
dest += 4;
|
||||
in += 4;
|
||||
layer += 4;
|
||||
out += 4;
|
||||
}
|
||||
|
||||
return TRUE;
|
||||
|
||||
@ -65,20 +65,20 @@ gimp_operation_replace_mode_process (GeglOperation *operation,
|
||||
glong samples,
|
||||
const GeglRectangle *roi)
|
||||
{
|
||||
gfloat *src = in_buf;
|
||||
gfloat *aux = aux_buf;
|
||||
gfloat *dest = out_buf;
|
||||
gfloat *in = in_buf;
|
||||
gfloat *layer = aux_buf;
|
||||
gfloat *out = out_buf;
|
||||
|
||||
while (samples--)
|
||||
{
|
||||
dest[RED] = src[RED];
|
||||
dest[GREEN] = src[GREEN];
|
||||
dest[BLUE] = src[BLUE];
|
||||
dest[ALPHA] = src[ALPHA];
|
||||
out[RED] = in[RED];
|
||||
out[GREEN] = in[GREEN];
|
||||
out[BLUE] = in[BLUE];
|
||||
out[ALPHA] = in[ALPHA];
|
||||
|
||||
src += 4;
|
||||
aux += 4;
|
||||
dest += 4;
|
||||
in += 4;
|
||||
layer += 4;
|
||||
out += 4;
|
||||
}
|
||||
|
||||
return TRUE;
|
||||
|
||||
@ -65,20 +65,20 @@ gimp_operation_saturation_mode_process (GeglOperation *operation,
|
||||
glong samples,
|
||||
const GeglRectangle *roi)
|
||||
{
|
||||
gfloat *src = in_buf;
|
||||
gfloat *aux = aux_buf;
|
||||
gfloat *dest = out_buf;
|
||||
gfloat *in = in_buf;
|
||||
gfloat *layer = aux_buf;
|
||||
gfloat *out = out_buf;
|
||||
|
||||
while (samples--)
|
||||
{
|
||||
dest[RED] = src[RED];
|
||||
dest[GREEN] = src[GREEN];
|
||||
dest[BLUE] = src[BLUE];
|
||||
dest[ALPHA] = src[ALPHA];
|
||||
out[RED] = in[RED];
|
||||
out[GREEN] = in[GREEN];
|
||||
out[BLUE] = in[BLUE];
|
||||
out[ALPHA] = in[ALPHA];
|
||||
|
||||
src += 4;
|
||||
aux += 4;
|
||||
dest += 4;
|
||||
in += 4;
|
||||
layer += 4;
|
||||
out += 4;
|
||||
}
|
||||
|
||||
return TRUE;
|
||||
|
||||
@ -65,20 +65,20 @@ gimp_operation_screen_mode_process (GeglOperation *operation,
|
||||
glong samples,
|
||||
const GeglRectangle *roi)
|
||||
{
|
||||
gfloat *src = in_buf;
|
||||
gfloat *aux = aux_buf;
|
||||
gfloat *dest = out_buf;
|
||||
gfloat *in = in_buf;
|
||||
gfloat *layer = aux_buf;
|
||||
gfloat *out = out_buf;
|
||||
|
||||
while (samples--)
|
||||
{
|
||||
dest[RED] = src[RED];
|
||||
dest[GREEN] = src[GREEN];
|
||||
dest[BLUE] = src[BLUE];
|
||||
dest[ALPHA] = src[ALPHA];
|
||||
out[RED] = in[RED];
|
||||
out[GREEN] = in[GREEN];
|
||||
out[BLUE] = in[BLUE];
|
||||
out[ALPHA] = in[ALPHA];
|
||||
|
||||
src += 4;
|
||||
aux += 4;
|
||||
dest += 4;
|
||||
in += 4;
|
||||
layer += 4;
|
||||
out += 4;
|
||||
}
|
||||
|
||||
return TRUE;
|
||||
|
||||
@ -65,20 +65,20 @@ gimp_operation_softlight_mode_process (GeglOperation *operation,
|
||||
glong samples,
|
||||
const GeglRectangle *roi)
|
||||
{
|
||||
gfloat *src = in_buf;
|
||||
gfloat *aux = aux_buf;
|
||||
gfloat *dest = out_buf;
|
||||
gfloat *in = in_buf;
|
||||
gfloat *layer = aux_buf;
|
||||
gfloat *out = out_buf;
|
||||
|
||||
while (samples--)
|
||||
{
|
||||
dest[RED] = src[RED];
|
||||
dest[GREEN] = src[GREEN];
|
||||
dest[BLUE] = src[BLUE];
|
||||
dest[ALPHA] = src[ALPHA];
|
||||
out[RED] = in[RED];
|
||||
out[GREEN] = in[GREEN];
|
||||
out[BLUE] = in[BLUE];
|
||||
out[ALPHA] = in[ALPHA];
|
||||
|
||||
src += 4;
|
||||
aux += 4;
|
||||
dest += 4;
|
||||
in += 4;
|
||||
layer += 4;
|
||||
out += 4;
|
||||
}
|
||||
|
||||
return TRUE;
|
||||
|
||||
@ -65,20 +65,20 @@ gimp_operation_subtract_mode_process (GeglOperation *operation,
|
||||
glong samples,
|
||||
const GeglRectangle *roi)
|
||||
{
|
||||
gfloat *src = in_buf;
|
||||
gfloat *aux = aux_buf;
|
||||
gfloat *dest = out_buf;
|
||||
gfloat *in = in_buf;
|
||||
gfloat *layer = aux_buf;
|
||||
gfloat *out = out_buf;
|
||||
|
||||
while (samples--)
|
||||
{
|
||||
dest[RED] = src[RED];
|
||||
dest[GREEN] = src[GREEN];
|
||||
dest[BLUE] = src[BLUE];
|
||||
dest[ALPHA] = src[ALPHA];
|
||||
out[RED] = in[RED];
|
||||
out[GREEN] = in[GREEN];
|
||||
out[BLUE] = in[BLUE];
|
||||
out[ALPHA] = in[ALPHA];
|
||||
|
||||
src += 4;
|
||||
aux += 4;
|
||||
dest += 4;
|
||||
in += 4;
|
||||
layer += 4;
|
||||
out += 4;
|
||||
}
|
||||
|
||||
return TRUE;
|
||||
|
||||
@ -65,20 +65,20 @@ gimp_operation_value_mode_process (GeglOperation *operation,
|
||||
glong samples,
|
||||
const GeglRectangle *roi)
|
||||
{
|
||||
gfloat *src = in_buf;
|
||||
gfloat *aux = aux_buf;
|
||||
gfloat *dest = out_buf;
|
||||
gfloat *in = in_buf;
|
||||
gfloat *layer = aux_buf;
|
||||
gfloat *out = out_buf;
|
||||
|
||||
while (samples--)
|
||||
{
|
||||
dest[RED] = src[RED];
|
||||
dest[GREEN] = src[GREEN];
|
||||
dest[BLUE] = src[BLUE];
|
||||
dest[ALPHA] = src[ALPHA];
|
||||
out[RED] = in[RED];
|
||||
out[GREEN] = in[GREEN];
|
||||
out[BLUE] = in[BLUE];
|
||||
out[ALPHA] = in[ALPHA];
|
||||
|
||||
src += 4;
|
||||
aux += 4;
|
||||
dest += 4;
|
||||
in += 4;
|
||||
layer += 4;
|
||||
out += 4;
|
||||
}
|
||||
|
||||
return TRUE;
|
||||
|
||||
Reference in New Issue
Block a user