2012-04-22 05:46:41 +08:00
|
|
|
/* GIMP - The GNU Image Manipulation Program
|
|
|
|
* Copyright (C) 1995 Spencer Kimball and Peter Mattis
|
|
|
|
*
|
|
|
|
* gimp-babl.h
|
|
|
|
* Copyright (C) 2012 Michael Natterer <mitch@gimp.org>
|
|
|
|
*
|
|
|
|
* 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
|
|
|
|
* the Free Software Foundation; either version 3 of the License, or
|
|
|
|
* (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This program is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU General Public License
|
2018-07-12 05:27:07 +08:00
|
|
|
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
2012-04-22 05:46:41 +08:00
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef __GIMP_BABL_H__
|
|
|
|
#define __GIMP_BABL_H__
|
|
|
|
|
|
|
|
|
2019-03-21 03:57:05 +08:00
|
|
|
void gimp_babl_init (void);
|
|
|
|
void gimp_babl_init_fishes (GimpInitStatusFunc status_callback);
|
2012-04-22 05:46:41 +08:00
|
|
|
|
2019-03-21 03:57:05 +08:00
|
|
|
const gchar * gimp_babl_format_get_description (const Babl *format);
|
|
|
|
GimpColorProfile * gimp_babl_format_get_color_profile (const Babl *format);
|
|
|
|
GimpColorProfile * gimp_babl_get_builtin_color_profile (GimpImageBaseType base_type,
|
|
|
|
GimpTRCType trc);
|
2012-04-22 05:55:40 +08:00
|
|
|
|
2019-03-21 03:57:05 +08:00
|
|
|
GimpImageBaseType gimp_babl_format_get_base_type (const Babl *format);
|
|
|
|
GimpComponentType gimp_babl_format_get_component_type (const Babl *format);
|
|
|
|
GimpPrecision gimp_babl_format_get_precision (const Babl *format);
|
|
|
|
GimpTRCType gimp_babl_format_get_trc (const Babl *format);
|
2013-05-01 06:05:53 +08:00
|
|
|
|
2019-03-21 03:57:05 +08:00
|
|
|
GimpComponentType gimp_babl_component_type (GimpPrecision precision);
|
|
|
|
GimpTRCType gimp_babl_trc (GimpPrecision precision);
|
|
|
|
GimpPrecision gimp_babl_precision (GimpComponentType component,
|
|
|
|
GimpTRCType trc);
|
2012-04-22 06:02:10 +08:00
|
|
|
|
2019-03-21 03:57:05 +08:00
|
|
|
gboolean gimp_babl_is_valid (GimpImageBaseType base_type,
|
|
|
|
GimpPrecision precision);
|
2023-11-24 05:07:16 +08:00
|
|
|
gboolean gimp_babl_is_bounded (GimpPrecision precision);
|
2018-07-07 01:00:35 +08:00
|
|
|
|
2019-03-21 03:57:05 +08:00
|
|
|
const Babl * gimp_babl_format (GimpImageBaseType base_type,
|
|
|
|
GimpPrecision precision,
|
|
|
|
gboolean with_alpha,
|
|
|
|
const Babl *space);
|
|
|
|
const Babl * gimp_babl_mask_format (GimpPrecision precision);
|
|
|
|
const Babl * gimp_babl_component_format (GimpImageBaseType base_type,
|
|
|
|
GimpPrecision precision,
|
|
|
|
gint index);
|
2012-04-22 05:46:41 +08:00
|
|
|
|
2019-03-21 03:57:05 +08:00
|
|
|
const Babl * gimp_babl_format_change_component_type (const Babl *format,
|
|
|
|
GimpComponentType component);
|
|
|
|
const Babl * gimp_babl_format_change_trc (const Babl *format,
|
|
|
|
GimpTRCType trc);
|
|
|
|
|
2023-11-23 23:20:36 +08:00
|
|
|
gchar ** gimp_babl_print_color (GeglColor *color);
|
2013-06-10 06:20:06 +08:00
|
|
|
|
2012-04-22 05:46:41 +08:00
|
|
|
|
|
|
|
#endif /* __GIMP_BABL_H__ */
|