app: lch color modes remove unneeded includes
This commit is contained in:
@ -5,6 +5,7 @@
|
|||||||
* Copyright (C) 2015 Elle Stone <ellestone@ninedegreesbelow.com>
|
* Copyright (C) 2015 Elle Stone <ellestone@ninedegreesbelow.com>
|
||||||
* Massimo Valentini <mvalentini@src.gnome.org>
|
* Massimo Valentini <mvalentini@src.gnome.org>
|
||||||
* Thomas Manni <thomas.manni@free.fr>
|
* Thomas Manni <thomas.manni@free.fr>
|
||||||
|
* 2017 Øyvind Kolås <pippin@gimp.org>
|
||||||
*
|
*
|
||||||
* This program is free software: you can redistribute it and/or modify
|
* This program is free software: you can redistribute it and/or modify
|
||||||
* it under the terms of the GNU General Public License as published by
|
* it under the terms of the GNU General Public License as published by
|
||||||
@ -21,18 +22,11 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#include "config.h"
|
#include "config.h"
|
||||||
|
|
||||||
#include <cairo.h>
|
|
||||||
#include <gegl-plugin.h>
|
#include <gegl-plugin.h>
|
||||||
#include <gdk-pixbuf/gdk-pixbuf.h>
|
#include <math.h>
|
||||||
|
|
||||||
#include "libgimpmath/gimpmath.h"
|
|
||||||
|
|
||||||
#include "../operations-types.h"
|
#include "../operations-types.h"
|
||||||
|
|
||||||
#include "gimpoperationlchchroma.h"
|
#include "gimpoperationlchchroma.h"
|
||||||
|
|
||||||
|
|
||||||
static gboolean gimp_operation_lch_chroma_process (GeglOperation *operation,
|
static gboolean gimp_operation_lch_chroma_process (GeglOperation *operation,
|
||||||
void *in_buf,
|
void *in_buf,
|
||||||
void *aux_buf,
|
void *aux_buf,
|
||||||
@ -109,7 +103,7 @@ chroma_pre_process (const Babl *format,
|
|||||||
{
|
{
|
||||||
gfloat A1 = out[4 * i + 1];
|
gfloat A1 = out[4 * i + 1];
|
||||||
gfloat B1 = out[4 * i + 2];
|
gfloat B1 = out[4 * i + 2];
|
||||||
gfloat c1 = hypot (A1, B1);
|
gfloat c1 = hypotf (A1, B1);
|
||||||
|
|
||||||
if (c1 != 0)
|
if (c1 != 0)
|
||||||
{
|
{
|
||||||
|
@ -5,6 +5,7 @@
|
|||||||
* Copyright (C) 2015 Elle Stone <ellestone@ninedegreesbelow.com>
|
* Copyright (C) 2015 Elle Stone <ellestone@ninedegreesbelow.com>
|
||||||
* Massimo Valentini <mvalentini@src.gnome.org>
|
* Massimo Valentini <mvalentini@src.gnome.org>
|
||||||
* Thomas Manni <thomas.manni@free.fr>
|
* Thomas Manni <thomas.manni@free.fr>
|
||||||
|
* 2017 Øyvind Kolås <pippin@gimp.org>
|
||||||
*
|
*
|
||||||
* This program is free software: you can redistribute it and/or modify
|
* This program is free software: you can redistribute it and/or modify
|
||||||
* it under the terms of the GNU General Public License as published by
|
* it under the terms of the GNU General Public License as published by
|
||||||
@ -21,15 +22,8 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#include "config.h"
|
#include "config.h"
|
||||||
|
|
||||||
#include <cairo.h>
|
|
||||||
#include <gegl-plugin.h>
|
#include <gegl-plugin.h>
|
||||||
#include <gdk-pixbuf/gdk-pixbuf.h>
|
|
||||||
|
|
||||||
#include "libgimpcolor/gimpcolor.h"
|
|
||||||
|
|
||||||
#include "../operations-types.h"
|
#include "../operations-types.h"
|
||||||
|
|
||||||
#include "gimpoperationlchcolor.h"
|
#include "gimpoperationlchcolor.h"
|
||||||
|
|
||||||
|
|
||||||
|
@ -22,15 +22,9 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#include "config.h"
|
#include "config.h"
|
||||||
|
|
||||||
#include <cairo.h>
|
|
||||||
#include <gegl-plugin.h>
|
#include <gegl-plugin.h>
|
||||||
#include <gdk-pixbuf/gdk-pixbuf.h>
|
#include <math.h>
|
||||||
|
|
||||||
#include "libgimpmath/gimpmath.h"
|
|
||||||
|
|
||||||
#include "../operations-types.h"
|
#include "../operations-types.h"
|
||||||
|
|
||||||
#include "gimpoperationlchhue.h"
|
#include "gimpoperationlchhue.h"
|
||||||
|
|
||||||
|
|
||||||
|
@ -5,6 +5,7 @@
|
|||||||
* Copyright (C) 2015 Elle Stone <ellestone@ninedegreesbelow.com>
|
* Copyright (C) 2015 Elle Stone <ellestone@ninedegreesbelow.com>
|
||||||
* Massimo Valentini <mvalentini@src.gnome.org>
|
* Massimo Valentini <mvalentini@src.gnome.org>
|
||||||
* Thomas Manni <thomas.manni@free.fr>
|
* Thomas Manni <thomas.manni@free.fr>
|
||||||
|
* 2017 Øyvind Kolås <pippin@gimp.org>
|
||||||
*
|
*
|
||||||
* This program is free software: you can redistribute it and/or modify
|
* This program is free software: you can redistribute it and/or modify
|
||||||
* it under the terms of the GNU General Public License as published by
|
* it under the terms of the GNU General Public License as published by
|
||||||
@ -22,12 +23,7 @@
|
|||||||
|
|
||||||
#include "config.h"
|
#include "config.h"
|
||||||
|
|
||||||
#include <cairo.h>
|
|
||||||
#include <gegl-plugin.h>
|
#include <gegl-plugin.h>
|
||||||
#include <gdk-pixbuf/gdk-pixbuf.h>
|
|
||||||
|
|
||||||
#include "libgimpcolor/gimpcolor.h"
|
|
||||||
|
|
||||||
#include "../operations-types.h"
|
#include "../operations-types.h"
|
||||||
|
|
||||||
#include "gimpoperationlchlightness.h"
|
#include "gimpoperationlchlightness.h"
|
||||||
|
Reference in New Issue
Block a user