app: lch color modes remove unneeded includes

This commit is contained in:
Øyvind Kolås
2017-01-13 13:52:37 +01:00
parent 0b1f684e8f
commit feb2bb4083
4 changed files with 8 additions and 30 deletions

View File

@ -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)
{ {

View File

@ -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
@ -20,16 +21,9 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>. * along with this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
#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"

View File

@ -21,16 +21,10 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>. * along with this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
#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"

View File

@ -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"