mirror of
https://gitlab.gnome.org/GNOME/gimp.git
synced 2025-07-03 09:23:24 +00:00

GLib has a specific type for byte arrays: `GBytes` (and it's underlying GType `G_TYPE_BYTES`). By using this type, we can avoid having a `GimpUint8Array` which is a bit cumbersome to use for both the C API, as well as bindings. By using `GBytes`, we allow other languages to pass on byte arrays as they are used to, while the bindings will make sure to do the right thing. In the end, it makes the API a little bit simpler for everyone, and reduces confusion for people who are used to working with byte arrays in other C/GLib based code (and not having 2 different types to denote the same thing). Related: https://gitlab.gnome.org/GNOME/gimp/-/issues/5919
64 lines
3.7 KiB
C
64 lines
3.7 KiB
C
/* LIBGIMP - The GIMP Library
|
|
* Copyright (C) 1995-2003 Peter Mattis and Spencer Kimball
|
|
*
|
|
* gimpimagecolorprofile_pdb.h
|
|
*
|
|
* This library is free software: you can redistribute it and/or
|
|
* modify it under the terms of the GNU Lesser General Public
|
|
* License as published by the Free Software Foundation; either
|
|
* version 3 of the License, or (at your option) any later version.
|
|
*
|
|
* This library 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
|
|
* Lesser General Public License for more details.
|
|
*
|
|
* You should have received a copy of the GNU Lesser General Public
|
|
* License along with this library. If not, see
|
|
* <https://www.gnu.org/licenses/>.
|
|
*/
|
|
|
|
/* NOTE: This file is auto-generated by pdbgen.pl */
|
|
|
|
#if !defined (__GIMP_H_INSIDE__) && !defined (GIMP_COMPILATION)
|
|
#error "Only <libgimp/gimp.h> can be included directly."
|
|
#endif
|
|
|
|
#ifndef __GIMP_IMAGE_COLOR_PROFILE_PDB_H__
|
|
#define __GIMP_IMAGE_COLOR_PROFILE_PDB_H__
|
|
|
|
G_BEGIN_DECLS
|
|
|
|
/* For information look into the C source or the html documentation */
|
|
|
|
|
|
G_GNUC_INTERNAL GBytes* _gimp_image_get_color_profile (GimpImage *image);
|
|
G_GNUC_INTERNAL GBytes* _gimp_image_get_effective_color_profile (GimpImage *image);
|
|
G_GNUC_INTERNAL gboolean _gimp_image_set_color_profile (GimpImage *image,
|
|
GBytes *color_profile);
|
|
gboolean gimp_image_set_color_profile_from_file (GimpImage *image,
|
|
GFile *file);
|
|
G_GNUC_INTERNAL GBytes* _gimp_image_get_simulation_profile (GimpImage *image);
|
|
G_GNUC_INTERNAL gboolean _gimp_image_set_simulation_profile (GimpImage *image,
|
|
GBytes *color_profile);
|
|
gboolean gimp_image_set_simulation_profile_from_file (GimpImage *image,
|
|
GFile *file);
|
|
GimpColorRenderingIntent gimp_image_get_simulation_intent (GimpImage *image);
|
|
gboolean gimp_image_set_simulation_intent (GimpImage *image,
|
|
GimpColorRenderingIntent intent);
|
|
gboolean gimp_image_get_simulation_bpc (GimpImage *image);
|
|
gboolean gimp_image_set_simulation_bpc (GimpImage *image,
|
|
gboolean bpc);
|
|
G_GNUC_INTERNAL gboolean _gimp_image_convert_color_profile (GimpImage *image,
|
|
GBytes *color_profile,
|
|
GimpColorRenderingIntent intent,
|
|
gboolean bpc);
|
|
gboolean gimp_image_convert_color_profile_from_file (GimpImage *image,
|
|
GFile *file,
|
|
GimpColorRenderingIntent intent,
|
|
gboolean bpc);
|
|
|
|
|
|
G_END_DECLS
|
|
|
|
#endif /* __GIMP_IMAGE_COLOR_PROFILE_PDB_H__ */
|