app: gimp:border propagate babl space
This commit is contained in:
@ -200,8 +200,9 @@ gimp_operation_border_set_property (GObject *object,
|
|||||||
static void
|
static void
|
||||||
gimp_operation_border_prepare (GeglOperation *operation)
|
gimp_operation_border_prepare (GeglOperation *operation)
|
||||||
{
|
{
|
||||||
gegl_operation_set_format (operation, "input", babl_format ("Y float"));
|
const Babl *space = gegl_operation_get_source_space (operation, "input");
|
||||||
gegl_operation_set_format (operation, "output", babl_format ("Y float"));
|
gegl_operation_set_format (operation, "input", babl_format_with_space ("Y float", space));
|
||||||
|
gegl_operation_set_format (operation, "output", babl_format_with_space ("Y float", space));
|
||||||
}
|
}
|
||||||
|
|
||||||
static GeglRectangle
|
static GeglRectangle
|
||||||
@ -338,8 +339,8 @@ gimp_operation_border_process (GeglOperation *operation,
|
|||||||
* them on jaycox@gimp.org
|
* them on jaycox@gimp.org
|
||||||
*/
|
*/
|
||||||
GimpOperationBorder *self = GIMP_OPERATION_BORDER (operation);
|
GimpOperationBorder *self = GIMP_OPERATION_BORDER (operation);
|
||||||
const Babl *input_format = babl_format ("Y float");
|
const Babl *input_format = gegl_operation_get_format (operation, "input");
|
||||||
const Babl *output_format = babl_format ("Y float");
|
const Babl *output_format = gegl_operation_get_format (operation, "output");
|
||||||
|
|
||||||
gint32 i, j, x, y;
|
gint32 i, j, x, y;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user