@img/sharp-libvips-dev 1.1.0 → 1.2.0-rc.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (120) hide show
  1. package/cplusplus/vips-operators.cpp +39 -0
  2. package/include/archive.h +53 -2
  3. package/include/archive_entry.h +56 -25
  4. package/include/ffi.h +20 -2
  5. package/include/fontconfig/fontconfig.h +1 -1
  6. package/include/glib-2.0/gio/gio-visibility.h +34 -0
  7. package/include/glib-2.0/gio/gzlibcompressor.h +6 -0
  8. package/include/glib-2.0/girepository/gi-visibility.h +34 -0
  9. package/include/glib-2.0/girepository/gitypes.h +6 -0
  10. package/include/glib-2.0/glib/gbitlock.h +11 -0
  11. package/include/glib-2.0/glib/gdate.h +6 -0
  12. package/include/glib-2.0/glib/glib-visibility.h +34 -0
  13. package/include/glib-2.0/glib/gmain.h +13 -10
  14. package/include/glib-2.0/glib/gmessages.h +4 -1
  15. package/include/glib-2.0/glib/gstring.h +2 -0
  16. package/include/glib-2.0/glib/gversionmacros.h +9 -0
  17. package/include/glib-2.0/gmodule/gmodule-visibility.h +34 -0
  18. package/include/glib-2.0/gobject/gobject-visibility.h +34 -0
  19. package/include/harfbuzz/hb-common.h +1 -431
  20. package/include/harfbuzz/hb-deprecated.h +80 -2
  21. package/include/harfbuzz/hb-draw.h +2 -10
  22. package/include/harfbuzz/hb-face.h +1 -1
  23. package/include/harfbuzz/hb-font.h +55 -36
  24. package/include/harfbuzz/hb-paint.h +5 -3
  25. package/include/harfbuzz/hb-script-list.h +484 -0
  26. package/include/harfbuzz/hb-subset.h +22 -2
  27. package/include/harfbuzz/hb-version.h +3 -3
  28. package/include/libheif/heif.h +2 -0
  29. package/include/libheif/heif_version.h +2 -2
  30. package/include/libpng16/png.h +10 -10
  31. package/include/libpng16/pngconf.h +20 -27
  32. package/include/libpng16/pnglibconf.h +1 -1
  33. package/include/libxml2/libxml/HTMLparser.h +2 -2
  34. package/include/libxml2/libxml/parser.h +2 -0
  35. package/include/libxml2/libxml/xmlIO.h +2 -2
  36. package/include/libxml2/libxml/xmlerror.h +1 -1
  37. package/include/libxml2/libxml/xmlversion.h +4 -4
  38. package/include/pixman-1/pixman-version.h +2 -2
  39. package/include/pixman-1/pixman.h +200 -0
  40. package/include/png.h +10 -10
  41. package/include/pngconf.h +20 -27
  42. package/include/pnglibconf.h +1 -1
  43. package/include/vips/VImage8.h +62 -14
  44. package/include/vips/arithmetic.h +34 -34
  45. package/include/vips/basic.h +16 -0
  46. package/include/vips/buf.h +0 -5
  47. package/include/vips/colour.h +6 -7
  48. package/include/vips/connection.h +25 -37
  49. package/include/vips/enumtypes.h +11 -2
  50. package/include/vips/foreign.h +73 -43
  51. package/include/vips/format.h +7 -5
  52. package/include/vips/gate.h +0 -11
  53. package/include/vips/header.h +11 -11
  54. package/include/vips/image.h +8 -3
  55. package/include/vips/interpolate.h +0 -2
  56. package/include/vips/memory.h +4 -0
  57. package/include/vips/mosaicing.h +4 -0
  58. package/include/vips/object.h +14 -18
  59. package/include/vips/operation.h +0 -2
  60. package/include/vips/private.h +50 -2
  61. package/include/vips/region.h +1 -3
  62. package/include/vips/resample.h +2 -0
  63. package/include/vips/semaphore.h +8 -3
  64. package/include/vips/thread.h +1 -24
  65. package/include/vips/threadpool.h +0 -6
  66. package/include/vips/type.h +13 -9
  67. package/include/vips/util.h +17 -98
  68. package/include/vips/vector.h +0 -4
  69. package/include/vips/version.h +8 -8
  70. package/include/vips/vips.h +1 -0
  71. package/package.json +1 -1
  72. package/versions.json +11 -11
  73. package/include/gdk-pixbuf-2.0/gdk-pixbuf/gdk-pixbuf-animation.h +0 -221
  74. package/include/gdk-pixbuf-2.0/gdk-pixbuf/gdk-pixbuf-autocleanups.h +0 -37
  75. package/include/gdk-pixbuf-2.0/gdk-pixbuf/gdk-pixbuf-core.h +0 -525
  76. package/include/gdk-pixbuf-2.0/gdk-pixbuf/gdk-pixbuf-enum-types.h +0 -40
  77. package/include/gdk-pixbuf-2.0/gdk-pixbuf/gdk-pixbuf-features.h +0 -115
  78. package/include/gdk-pixbuf-2.0/gdk-pixbuf/gdk-pixbuf-io.h +0 -481
  79. package/include/gdk-pixbuf-2.0/gdk-pixbuf/gdk-pixbuf-loader.h +0 -113
  80. package/include/gdk-pixbuf-2.0/gdk-pixbuf/gdk-pixbuf-macros.h +0 -718
  81. package/include/gdk-pixbuf-2.0/gdk-pixbuf/gdk-pixbuf-marshal.h +0 -33
  82. package/include/gdk-pixbuf-2.0/gdk-pixbuf/gdk-pixbuf-simple-anim.h +0 -70
  83. package/include/gdk-pixbuf-2.0/gdk-pixbuf/gdk-pixbuf-transform.h +0 -168
  84. package/include/gdk-pixbuf-2.0/gdk-pixbuf/gdk-pixbuf.h +0 -46
  85. package/include/gdk-pixbuf-2.0/gdk-pixbuf/gdk-pixdata.h +0 -165
  86. package/include/glib-2.0/glib/gwin32.h +0 -142
  87. package/include/harfbuzz/hb-subset-repacker.h +0 -81
  88. package/include/hwy/ops/tuple-inl.h +0 -125
  89. package/include/orc-0.4/orc/orc-stdint.h +0 -1
  90. package/include/orc-0.4/orc/orc.h +0 -16
  91. package/include/orc-0.4/orc/orcarm.h +0 -879
  92. package/include/orc-0.4/orc/orcbytecode.h +0 -35
  93. package/include/orc-0.4/orc/orcbytecodes.h +0 -255
  94. package/include/orc-0.4/orc/orccode.h +0 -53
  95. package/include/orc-0.4/orc/orccompiler.h +0 -176
  96. package/include/orc-0.4/orc/orcconstant.h +0 -39
  97. package/include/orc-0.4/orc/orccpu.h +0 -21
  98. package/include/orc-0.4/orc/orccpuinsn.h +0 -40
  99. package/include/orc-0.4/orc/orcdebug.h +0 -158
  100. package/include/orc-0.4/orc/orcemulateopcodes.h +0 -203
  101. package/include/orc-0.4/orc/orcexecutor.h +0 -135
  102. package/include/orc-0.4/orc/orcfunctions.h +0 -93
  103. package/include/orc-0.4/orc/orcinstruction.h +0 -39
  104. package/include/orc-0.4/orc/orcinternal.h +0 -46
  105. package/include/orc-0.4/orc/orclimits.h +0 -94
  106. package/include/orc-0.4/orc/orcmips.h +0 -229
  107. package/include/orc-0.4/orc/orcmmx.h +0 -79
  108. package/include/orc-0.4/orc/orcneon.h +0 -43
  109. package/include/orc-0.4/orc/orconce.h +0 -166
  110. package/include/orc-0.4/orc/orcopcode.h +0 -63
  111. package/include/orc-0.4/orc/orcparse.h +0 -27
  112. package/include/orc-0.4/orc/orcpowerpc.h +0 -209
  113. package/include/orc-0.4/orc/orcprogram.h +0 -192
  114. package/include/orc-0.4/orc/orcrule.h +0 -52
  115. package/include/orc-0.4/orc/orcsse.h +0 -55
  116. package/include/orc-0.4/orc/orctarget.h +0 -115
  117. package/include/orc-0.4/orc/orcutils.h +0 -238
  118. package/include/orc-0.4/orc/orcvariable.h +0 -81
  119. package/include/orc-0.4/orc/orcx86.h +0 -199
  120. package/include/orc-0.4/orc/orcx86insn.h +0 -672
@@ -1,33 +0,0 @@
1
- /* This file is generated by glib-genmarshal, do not modify it. This code is licensed under the same license as the containing project. Note that it links to GLib, so must comply with the LGPL linking clauses. */
2
- #pragma once
3
-
4
- #include <glib-object.h>
5
-
6
- G_BEGIN_DECLS
7
-
8
- /* VOID:VOID (../gdk-pixbuf/gdk-pixbuf-marshal.list:25) */
9
- #define _gdk_pixbuf_marshal_VOID__VOID g_cclosure_marshal_VOID__VOID
10
-
11
- /* VOID:INT,INT (../gdk-pixbuf/gdk-pixbuf-marshal.list:26) */
12
- extern
13
- void _gdk_pixbuf_marshal_VOID__INT_INT (GClosure *closure,
14
- GValue *return_value,
15
- guint n_param_values,
16
- const GValue *param_values,
17
- gpointer invocation_hint,
18
- gpointer marshal_data);
19
-
20
- /* VOID:INT,INT,INT,INT (../gdk-pixbuf/gdk-pixbuf-marshal.list:27) */
21
- extern
22
- void _gdk_pixbuf_marshal_VOID__INT_INT_INT_INT (GClosure *closure,
23
- GValue *return_value,
24
- guint n_param_values,
25
- const GValue *param_values,
26
- gpointer invocation_hint,
27
- gpointer marshal_data);
28
-
29
- /* VOID:POINTER (../gdk-pixbuf/gdk-pixbuf-marshal.list:28) */
30
- #define _gdk_pixbuf_marshal_VOID__POINTER g_cclosure_marshal_VOID__POINTER
31
-
32
-
33
- G_END_DECLS
@@ -1,70 +0,0 @@
1
- /* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 8 -*- */
2
- /* GdkPixbuf library - Simple frame-based animations
3
- *
4
- * Copyright (C) 2004 Dom Lachowicz
5
- *
6
- * Authors: Dom Lachowicz <cinamod@hotmail.com>
7
- *
8
- * This library is free software; you can redistribute it and/or
9
- * modify it under the terms of the GNU Lesser General Public
10
- * License as published by the Free Software Foundation; either
11
- * version 2 of the License, or (at your option) any later version.
12
- *
13
- * This library is distributed in the hope that it will be useful,
14
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
15
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16
- * Lesser General Public License for more details.
17
- *
18
- * You should have received a copy of the GNU Lesser General Public
19
- * License along with this library; if not, see <http://www.gnu.org/licenses/>.
20
- */
21
-
22
- #ifndef GDK_PIXBUF_SIMPLE_ANIM_H
23
- #define GDK_PIXBUF_SIMPLE_ANIM_H
24
-
25
- #if defined(GDK_PIXBUF_DISABLE_SINGLE_INCLUDES) && !defined (GDK_PIXBUF_H_INSIDE) && !defined (GDK_PIXBUF_COMPILATION)
26
- #error "Only <gdk-pixbuf/gdk-pixbuf.h> can be included directly."
27
- #endif
28
-
29
- #include <gdk-pixbuf/gdk-pixbuf-animation.h>
30
-
31
- G_BEGIN_DECLS
32
-
33
- /**
34
- * GdkPixbufSimpleAnim:
35
- *
36
- * An opaque struct representing a simple animation.
37
- */
38
- typedef struct _GdkPixbufSimpleAnim GdkPixbufSimpleAnim;
39
- typedef struct _GdkPixbufSimpleAnimClass GdkPixbufSimpleAnimClass;
40
-
41
- #define GDK_TYPE_PIXBUF_SIMPLE_ANIM (gdk_pixbuf_simple_anim_get_type ())
42
- #define GDK_PIXBUF_SIMPLE_ANIM(object) (G_TYPE_CHECK_INSTANCE_CAST ((object), GDK_TYPE_PIXBUF_SIMPLE_ANIM, GdkPixbufSimpleAnim))
43
- #define GDK_IS_PIXBUF_SIMPLE_ANIM(object) (G_TYPE_CHECK_INSTANCE_TYPE ((object), GDK_TYPE_PIXBUF_SIMPLE_ANIM))
44
-
45
- #define GDK_PIXBUF_SIMPLE_ANIM_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GDK_TYPE_PIXBUF_SIMPLE_ANIM, GdkPixbufSimpleAnimClass))
46
- #define GDK_IS_PIXBUF_SIMPLE_ANIM_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GDK_TYPE_PIXBUF_SIMPLE_ANIM))
47
- #define GDK_PIXBUF_SIMPLE_ANIM_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GDK_TYPE_PIXBUF_SIMPLE_ANIM, GdkPixbufSimpleAnimClass))
48
-
49
- GDK_PIXBUF_AVAILABLE_IN_ALL
50
- GType gdk_pixbuf_simple_anim_get_type (void) G_GNUC_CONST;
51
- GDK_PIXBUF_AVAILABLE_IN_ALL
52
- GType gdk_pixbuf_simple_anim_iter_get_type (void) G_GNUC_CONST;
53
-
54
- GDK_PIXBUF_AVAILABLE_IN_2_8
55
- GdkPixbufSimpleAnim *gdk_pixbuf_simple_anim_new (gint width,
56
- gint height,
57
- gfloat rate);
58
- GDK_PIXBUF_AVAILABLE_IN_2_8
59
- void gdk_pixbuf_simple_anim_add_frame (GdkPixbufSimpleAnim *animation,
60
- GdkPixbuf *pixbuf);
61
- GDK_PIXBUF_AVAILABLE_IN_ALL
62
- void gdk_pixbuf_simple_anim_set_loop (GdkPixbufSimpleAnim *animation,
63
- gboolean loop);
64
- GDK_PIXBUF_AVAILABLE_IN_ALL
65
- gboolean gdk_pixbuf_simple_anim_get_loop (GdkPixbufSimpleAnim *animation);
66
-
67
- G_END_DECLS
68
-
69
-
70
- #endif /* GDK_PIXBUF_SIMPLE_ANIM_H */
@@ -1,168 +0,0 @@
1
- /* GdkPixbuf library - transformations
2
- *
3
- * Copyright (C) 2003 The Free Software Foundation
4
- *
5
- * Authors: Mark Crichton <crichton@gimp.org>
6
- * Miguel de Icaza <miguel@gnu.org>
7
- * Federico Mena-Quintero <federico@gimp.org>
8
- * Havoc Pennington <hp@redhat.com>
9
- *
10
- * This library is free software; you can redistribute it and/or
11
- * modify it under the terms of the GNU Lesser General Public
12
- * License as published by the Free Software Foundation; either
13
- * version 2 of the License, or (at your option) any later version.
14
- *
15
- * This library is distributed in the hope that it will be useful,
16
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
17
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
18
- * Lesser General Public License for more details.
19
- *
20
- * You should have received a copy of the GNU Lesser General Public
21
- * License along with this library; if not, see <http://www.gnu.org/licenses/>.
22
- */
23
-
24
- #ifndef GDK_PIXBUF_TRANSFORM_H
25
- #define GDK_PIXBUF_TRANSFORM_H
26
-
27
- #if defined(GDK_PIXBUF_DISABLE_SINGLE_INCLUDES) && !defined (GDK_PIXBUF_H_INSIDE) && !defined (GDK_PIXBUF_COMPILATION)
28
- #error "Only <gdk-pixbuf/gdk-pixbuf.h> can be included directly."
29
- #endif
30
-
31
- #include <glib.h>
32
- #include <gdk-pixbuf/gdk-pixbuf-core.h>
33
-
34
-
35
- G_BEGIN_DECLS
36
-
37
- /* Scaling */
38
-
39
- /**
40
- * GdkInterpType:
41
- * @GDK_INTERP_NEAREST: Nearest neighbor sampling; this is the fastest
42
- * and lowest quality mode. Quality is normally unacceptable when scaling
43
- * down, but may be OK when scaling up.
44
- * @GDK_INTERP_TILES: This is an accurate simulation of the PostScript
45
- * image operator without any interpolation enabled. Each pixel is
46
- * rendered as a tiny parallelogram of solid color, the edges of which
47
- * are implemented with antialiasing. It resembles nearest neighbor for
48
- * enlargement, and bilinear for reduction.
49
- * @GDK_INTERP_BILINEAR: Best quality/speed balance; use this mode by
50
- * default. Bilinear interpolation. For enlargement, it is
51
- * equivalent to point-sampling the ideal bilinear-interpolated image.
52
- * For reduction, it is equivalent to laying down small tiles and
53
- * integrating over the coverage area.
54
- * @GDK_INTERP_HYPER: This is the slowest and highest quality
55
- * reconstruction function. It is derived from the hyperbolic filters in
56
- * Wolberg's "Digital Image Warping", and is formally defined as the
57
- * hyperbolic-filter sampling the ideal hyperbolic-filter interpolated
58
- * image (the filter is designed to be idempotent for 1:1 pixel mapping).
59
- * **Deprecated**: this interpolation filter is deprecated, as in reality
60
- * it has a lower quality than the @GDK_INTERP_BILINEAR filter
61
- * (Since: 2.38)
62
- *
63
- * Interpolation modes for scaling functions.
64
- *
65
- * The `GDK_INTERP_NEAREST` mode is the fastest scaling method, but has
66
- * horrible quality when scaling down; `GDK_INTERP_BILINEAR` is the best
67
- * choice if you aren't sure what to choose, it has a good speed/quality
68
- * balance.
69
- *
70
- * **Note**: Cubic filtering is missing from the list; hyperbolic
71
- * interpolation is just as fast and results in higher quality.
72
- */
73
- typedef enum {
74
- GDK_INTERP_NEAREST,
75
- GDK_INTERP_TILES,
76
- GDK_INTERP_BILINEAR,
77
- GDK_INTERP_HYPER
78
- } GdkInterpType;
79
-
80
- /**
81
- * GdkPixbufRotation:
82
- * @GDK_PIXBUF_ROTATE_NONE: No rotation.
83
- * @GDK_PIXBUF_ROTATE_COUNTERCLOCKWISE: Rotate by 90 degrees.
84
- * @GDK_PIXBUF_ROTATE_UPSIDEDOWN: Rotate by 180 degrees.
85
- * @GDK_PIXBUF_ROTATE_CLOCKWISE: Rotate by 270 degrees.
86
- *
87
- * The possible rotations which can be passed to gdk_pixbuf_rotate_simple().
88
- *
89
- * To make them easier to use, their numerical values are the actual degrees.
90
- */
91
- typedef enum {
92
- GDK_PIXBUF_ROTATE_NONE = 0,
93
- GDK_PIXBUF_ROTATE_COUNTERCLOCKWISE = 90,
94
- GDK_PIXBUF_ROTATE_UPSIDEDOWN = 180,
95
- GDK_PIXBUF_ROTATE_CLOCKWISE = 270
96
- } GdkPixbufRotation;
97
-
98
- GDK_PIXBUF_AVAILABLE_IN_ALL
99
- void gdk_pixbuf_scale (const GdkPixbuf *src,
100
- GdkPixbuf *dest,
101
- int dest_x,
102
- int dest_y,
103
- int dest_width,
104
- int dest_height,
105
- double offset_x,
106
- double offset_y,
107
- double scale_x,
108
- double scale_y,
109
- GdkInterpType interp_type);
110
- GDK_PIXBUF_AVAILABLE_IN_ALL
111
- void gdk_pixbuf_composite (const GdkPixbuf *src,
112
- GdkPixbuf *dest,
113
- int dest_x,
114
- int dest_y,
115
- int dest_width,
116
- int dest_height,
117
- double offset_x,
118
- double offset_y,
119
- double scale_x,
120
- double scale_y,
121
- GdkInterpType interp_type,
122
- int overall_alpha);
123
- GDK_PIXBUF_AVAILABLE_IN_ALL
124
- void gdk_pixbuf_composite_color (const GdkPixbuf *src,
125
- GdkPixbuf *dest,
126
- int dest_x,
127
- int dest_y,
128
- int dest_width,
129
- int dest_height,
130
- double offset_x,
131
- double offset_y,
132
- double scale_x,
133
- double scale_y,
134
- GdkInterpType interp_type,
135
- int overall_alpha,
136
- int check_x,
137
- int check_y,
138
- int check_size,
139
- guint32 color1,
140
- guint32 color2);
141
-
142
- GDK_PIXBUF_AVAILABLE_IN_ALL
143
- GdkPixbuf *gdk_pixbuf_scale_simple (const GdkPixbuf *src,
144
- int dest_width,
145
- int dest_height,
146
- GdkInterpType interp_type);
147
-
148
- GDK_PIXBUF_AVAILABLE_IN_ALL
149
- GdkPixbuf *gdk_pixbuf_composite_color_simple (const GdkPixbuf *src,
150
- int dest_width,
151
- int dest_height,
152
- GdkInterpType interp_type,
153
- int overall_alpha,
154
- int check_size,
155
- guint32 color1,
156
- guint32 color2);
157
-
158
- GDK_PIXBUF_AVAILABLE_IN_2_6
159
- GdkPixbuf *gdk_pixbuf_rotate_simple (const GdkPixbuf *src,
160
- GdkPixbufRotation angle);
161
- GDK_PIXBUF_AVAILABLE_IN_2_6
162
- GdkPixbuf *gdk_pixbuf_flip (const GdkPixbuf *src,
163
- gboolean horizontal);
164
-
165
- G_END_DECLS
166
-
167
-
168
- #endif /* GDK_PIXBUF_TRANSFORM_H */
@@ -1,46 +0,0 @@
1
- /* GdkPixbuf library - Main header file
2
- *
3
- * Copyright (C) 1999 The Free Software Foundation
4
- *
5
- * Authors: Mark Crichton <crichton@gimp.org>
6
- * Miguel de Icaza <miguel@gnu.org>
7
- * Federico Mena-Quintero <federico@gimp.org>
8
- * Havoc Pennington <hp@redhat.com>
9
- *
10
- * This library is free software; you can redistribute it and/or
11
- * modify it under the terms of the GNU Lesser General Public
12
- * License as published by the Free Software Foundation; either
13
- * version 2 of the License, or (at your option) any later version.
14
- *
15
- * This library is distributed in the hope that it will be useful,
16
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
17
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
18
- * Lesser General Public License for more details.
19
- *
20
- * You should have received a copy of the GNU Lesser General Public
21
- * License along with this library; if not, see <http://www.gnu.org/licenses/>.
22
- */
23
-
24
- #ifndef GDK_PIXBUF_H
25
- #define GDK_PIXBUF_H
26
-
27
- #define GDK_PIXBUF_H_INSIDE
28
-
29
- #include <glib.h>
30
- #include <gdk-pixbuf/gdk-pixbuf-macros.h>
31
- #include <gdk-pixbuf/gdk-pixbuf-features.h>
32
- #include <glib-object.h>
33
-
34
- #include <gdk-pixbuf/gdk-pixbuf-core.h>
35
- #include <gdk-pixbuf/gdk-pixbuf-transform.h>
36
- #include <gdk-pixbuf/gdk-pixbuf-animation.h>
37
- #include <gdk-pixbuf/gdk-pixbuf-simple-anim.h>
38
- #include <gdk-pixbuf/gdk-pixbuf-io.h>
39
- #include <gdk-pixbuf/gdk-pixbuf-loader.h>
40
- #include <gdk-pixbuf/gdk-pixbuf-enum-types.h>
41
-
42
- #include <gdk-pixbuf/gdk-pixbuf-autocleanups.h>
43
-
44
- #undef GDK_PIXBUF_H_INSIDE
45
-
46
- #endif /* GDK_PIXBUF_H */
@@ -1,165 +0,0 @@
1
- /* GdkPixbuf library - GdkPixdata - functions for inlined pixbuf handling
2
- * Copyright (C) 1999, 2001 Tim Janik
3
- *
4
- * This library is free software; you can redistribute it and/or
5
- * modify it under the terms of the GNU Lesser General Public
6
- * License as published by the Free Software Foundation; either
7
- * version 2 of the License, or (at your option) any later version.
8
- *
9
- * This library is distributed in the hope that it will be useful,
10
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
11
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12
- * Lesser General Public License for more details.
13
- *
14
- * You should have received a copy of the GNU Lesser General Public
15
- * License along with this library; if not, see <http://www.gnu.org/licenses/>.
16
- */
17
- #ifndef __GDK_PIXDATA_H__
18
- #define __GDK_PIXDATA_H__
19
-
20
- #ifndef GDK_PIXBUF_DISABLE_DEPRECATED
21
- #include <gdk-pixbuf/gdk-pixbuf.h>
22
-
23
- G_BEGIN_DECLS
24
-
25
- /**
26
- * GDK_PIXBUF_MAGIC_NUMBER:
27
- *
28
- * Magic number for #GdkPixdata structures.
29
- **/
30
- #define GDK_PIXBUF_MAGIC_NUMBER (0x47646b50) /* 'GdkP' */
31
-
32
- /**
33
- * GdkPixdataType:
34
- * @GDK_PIXDATA_COLOR_TYPE_RGB: each pixel has red, green and blue samples.
35
- * @GDK_PIXDATA_COLOR_TYPE_RGBA: each pixel has red, green and blue samples
36
- * and an alpha value.
37
- * @GDK_PIXDATA_COLOR_TYPE_MASK: mask for the colortype flags of the enum.
38
- * @GDK_PIXDATA_SAMPLE_WIDTH_8: each sample has 8 bits.
39
- * @GDK_PIXDATA_SAMPLE_WIDTH_MASK: mask for the sample width flags of the enum.
40
- * @GDK_PIXDATA_ENCODING_RAW: the pixel data is in raw form.
41
- * @GDK_PIXDATA_ENCODING_RLE: the pixel data is run-length encoded. Runs may
42
- * be up to 127 bytes long; their length is stored in a single byte
43
- * preceding the pixel data for the run. If a run is constant, its length
44
- * byte has the high bit set and the pixel data consists of a single pixel
45
- * which must be repeated.
46
- * @GDK_PIXDATA_ENCODING_MASK: mask for the encoding flags of the enum.
47
- *
48
- * An enumeration containing three sets of flags for a #GdkPixdata struct:
49
- * one for the used colorspace, one for the width of the samples and one
50
- * for the encoding of the pixel data.
51
- *
52
- * Deprecated: 2.32
53
- **/
54
- typedef enum
55
- {
56
- /* colorspace + alpha */
57
- GDK_PIXDATA_COLOR_TYPE_RGB = 0x01,
58
- GDK_PIXDATA_COLOR_TYPE_RGBA = 0x02,
59
- GDK_PIXDATA_COLOR_TYPE_MASK = 0xff,
60
- /* width, support 8bits only currently */
61
- GDK_PIXDATA_SAMPLE_WIDTH_8 = 0x01 << 16,
62
- GDK_PIXDATA_SAMPLE_WIDTH_MASK = 0x0f << 16,
63
- /* encoding */
64
- GDK_PIXDATA_ENCODING_RAW = 0x01 << 24,
65
- GDK_PIXDATA_ENCODING_RLE = 0x02 << 24,
66
- GDK_PIXDATA_ENCODING_MASK = 0x0f << 24
67
- } GdkPixdataType;
68
-
69
- typedef struct _GdkPixdata GdkPixdata;
70
- struct _GdkPixdata
71
- {
72
- guint32 magic; /* GDK_PIXBUF_MAGIC_NUMBER */
73
- gint32 length; /* <1 to disable length checks, otherwise:
74
- * GDK_PIXDATA_HEADER_LENGTH + pixel_data length
75
- */
76
- guint32 pixdata_type; /* GdkPixdataType */
77
- guint32 rowstride;
78
- guint32 width;
79
- guint32 height;
80
- guint8 *pixel_data;
81
- };
82
-
83
- /**
84
- * GDK_PIXDATA_HEADER_LENGTH:
85
- *
86
- * The length of a #GdkPixdata structure without the @pixel_data pointer.
87
- *
88
- * Deprecated: 2.32
89
- **/
90
- #define GDK_PIXDATA_HEADER_LENGTH (4 + 4 + 4 + 4 + 4 + 4)
91
-
92
- /* the returned stream is plain htonl of GdkPixdata members + pixel_data */
93
- GDK_PIXBUF_DEPRECATED_IN_2_32
94
- guint8* gdk_pixdata_serialize (const GdkPixdata *pixdata,
95
- guint *stream_length_p);
96
- GDK_PIXBUF_DEPRECATED_IN_2_32
97
- gboolean gdk_pixdata_deserialize (GdkPixdata *pixdata,
98
- guint stream_length,
99
- const guint8 *stream,
100
- GError **error);
101
- GDK_PIXBUF_DEPRECATED_IN_2_32
102
- gpointer gdk_pixdata_from_pixbuf (GdkPixdata *pixdata,
103
- const GdkPixbuf *pixbuf,
104
- gboolean use_rle);
105
- GDK_PIXBUF_DEPRECATED_IN_2_32
106
- GdkPixbuf* gdk_pixbuf_from_pixdata (const GdkPixdata *pixdata,
107
- gboolean copy_pixels,
108
- GError **error);
109
- /**
110
- * GdkPixdataDumpType:
111
- * @GDK_PIXDATA_DUMP_PIXDATA_STREAM: Generate pixbuf data stream (a single
112
- * string containing a serialized #GdkPixdata structure in network byte
113
- * order).
114
- * @GDK_PIXDATA_DUMP_PIXDATA_STRUCT: Generate #GdkPixdata structure (needs
115
- * the #GdkPixdata structure definition from gdk-pixdata.h).
116
- * @GDK_PIXDATA_DUMP_MACROS: Generate <function>*_ROWSTRIDE</function>,
117
- * <function>*_WIDTH</function>, <function>*_HEIGHT</function>,
118
- * <function>*_BYTES_PER_PIXEL</function> and
119
- * <function>*_RLE_PIXEL_DATA</function> or <function>*_PIXEL_DATA</function>
120
- * macro definitions for the image.
121
- * @GDK_PIXDATA_DUMP_GTYPES: Generate GLib data types instead of
122
- * standard C data types.
123
- * @GDK_PIXDATA_DUMP_CTYPES: Generate standard C data types instead of
124
- * GLib data types.
125
- * @GDK_PIXDATA_DUMP_STATIC: Generate static symbols.
126
- * @GDK_PIXDATA_DUMP_CONST: Generate const symbols.
127
- * @GDK_PIXDATA_DUMP_RLE_DECODER: Provide a <function>*_RUN_LENGTH_DECODE(image_buf, rle_data, size, bpp)</function>
128
- * macro definition to decode run-length encoded image data.
129
- *
130
- * An enumeration which is used by gdk_pixdata_to_csource() to
131
- * determine the form of C source to be generated. The three values
132
- * @GDK_PIXDATA_DUMP_PIXDATA_STREAM, @GDK_PIXDATA_DUMP_PIXDATA_STRUCT
133
- * and @GDK_PIXDATA_DUMP_MACROS are mutually exclusive, as are
134
- * @GDK_PIXBUF_DUMP_GTYPES and @GDK_PIXBUF_DUMP_CTYPES. The remaining
135
- * elements are optional flags that can be freely added.
136
- *
137
- * Deprecated: 2.32
138
- **/
139
- typedef enum
140
- {
141
- /* type of source to save */
142
- GDK_PIXDATA_DUMP_PIXDATA_STREAM = 0,
143
- GDK_PIXDATA_DUMP_PIXDATA_STRUCT = 1,
144
- GDK_PIXDATA_DUMP_MACROS = 2,
145
- /* type of variables to use */
146
- GDK_PIXDATA_DUMP_GTYPES = 0,
147
- GDK_PIXDATA_DUMP_CTYPES = 1 << 8,
148
- GDK_PIXDATA_DUMP_STATIC = 1 << 9,
149
- GDK_PIXDATA_DUMP_CONST = 1 << 10,
150
- /* save RLE decoder macro? */
151
- GDK_PIXDATA_DUMP_RLE_DECODER = 1 << 16
152
- } GdkPixdataDumpType;
153
-
154
-
155
- GDK_PIXBUF_DEPRECATED_IN_2_32
156
- GString* gdk_pixdata_to_csource (GdkPixdata *pixdata,
157
- const gchar *name,
158
- GdkPixdataDumpType dump_type);
159
-
160
-
161
- G_END_DECLS
162
-
163
- #endif /* GDK_PIXBUF_DISABLE_DEPRECATED */
164
-
165
- #endif /* __GDK_PIXDATA_H__ */
@@ -1,142 +0,0 @@
1
- /* GLIB - Library of useful routines for C programming
2
- * Copyright (C) 1995-1997 Peter Mattis, Spencer Kimball and Josh MacDonald
3
- *
4
- * SPDX-License-Identifier: LGPL-2.1-or-later
5
- *
6
- * This library is free software; you can redistribute it and/or
7
- * modify it under the terms of the GNU Lesser General Public
8
- * License as published by the Free Software Foundation; either
9
- * version 2.1 of the License, or (at your option) any later version.
10
- *
11
- * This library is distributed in the hope that it will be useful,
12
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
13
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14
- * Lesser General Public License for more details.
15
- *
16
- * You should have received a copy of the GNU Lesser General Public
17
- * License along with this library; if not, see <http://www.gnu.org/licenses/>.
18
- */
19
-
20
- /*
21
- * Modified by the GLib Team and others 1997-2000. See the AUTHORS
22
- * file for a list of people on the GLib Team. See the ChangeLog
23
- * files for a list of changes. These files are distributed with
24
- * GLib at ftp://ftp.gtk.org/pub/gtk/.
25
- */
26
-
27
- #ifndef __G_WIN32_H__
28
- #define __G_WIN32_H__
29
-
30
- #if !defined (__GLIB_H_INSIDE__) && !defined (GLIB_COMPILATION)
31
- #error "Only <glib.h> can be included directly."
32
- #endif
33
-
34
- #include <glib/gtypes.h>
35
-
36
- #if defined(G_PLATFORM_WIN32) || defined(__GI_SCANNER__)
37
-
38
- G_BEGIN_DECLS
39
-
40
- #ifndef MAXPATHLEN
41
- #define MAXPATHLEN 1024
42
- #endif
43
-
44
- #if defined(G_OS_WIN32) || defined(__GI_SCANNER__)
45
-
46
- /*
47
- * To get prototypes for the following POSIXish functions, you have to
48
- * include the indicated non-POSIX headers. The functions are defined
49
- * in OLDNAMES.LIB (MSVC) or -lmoldname-msvc (mingw32). But note that
50
- * for POSIX functions that take or return file names in the system
51
- * codepage, in many cases you would want to use the GLib wrappers in
52
- * gstdio.h and UTF-8 instead.
53
- *
54
- * getcwd: <direct.h> (MSVC), <io.h> (mingw32)
55
- * getpid: <process.h>
56
- * access: <io.h>
57
- * unlink: <stdio.h> or <io.h>
58
- * open, read, write, lseek, close: <io.h>
59
- * rmdir: <io.h>
60
- * pipe: <io.h> (actually, _pipe())
61
- */
62
-
63
- /* For some POSIX functions that are not provided by the MS runtime,
64
- * we provide emulation functions in glib, which are prefixed with
65
- * g_win32_. Or that was the idea at some time, but there is just one
66
- * of those:
67
- */
68
- GLIB_AVAILABLE_IN_ALL
69
- gint g_win32_ftruncate (gint f,
70
- guint size);
71
- #endif /* G_OS_WIN32 || __GI_SCANNER__ */
72
-
73
- /* The MS setlocale uses locale names of the form "English_United
74
- * States.1252" etc. We want the Unixish standard form "en", "zh_TW"
75
- * etc. This function gets the current thread locale from Windows and
76
- * returns it as a string of the above form for use in forming file
77
- * names etc. The returned string should be deallocated with g_free().
78
- */
79
- GLIB_AVAILABLE_IN_ALL
80
- gchar* g_win32_getlocale (void);
81
-
82
- /* Translate a Win32 error code (as returned by GetLastError()) into
83
- * the corresponding message. The returned string should be deallocated
84
- * with g_free().
85
- */
86
- GLIB_AVAILABLE_IN_ALL
87
- gchar* g_win32_error_message (gint error);
88
-
89
- GLIB_DEPRECATED
90
- gchar* g_win32_get_package_installation_directory (const gchar *package,
91
- const gchar *dll_name);
92
-
93
- GLIB_DEPRECATED
94
- gchar* g_win32_get_package_installation_subdirectory (const gchar *package,
95
- const gchar *dll_name,
96
- const gchar *subdir);
97
-
98
- GLIB_AVAILABLE_IN_ALL
99
- gchar* g_win32_get_package_installation_directory_of_module (gpointer hmodule);
100
-
101
- GLIB_DEPRECATED_IN_2_44_FOR(g_win32_check_windows_version)
102
- guint g_win32_get_windows_version (void);
103
-
104
- GLIB_AVAILABLE_IN_ALL
105
- gchar* g_win32_locale_filename_from_utf8 (const gchar *utf8filename);
106
-
107
- GLIB_AVAILABLE_IN_2_40
108
- gchar ** g_win32_get_command_line (void);
109
-
110
- /* As of GLib 2.14 we only support NT-based Windows */
111
- #define G_WIN32_IS_NT_BASED() TRUE
112
- #define G_WIN32_HAVE_WIDECHAR_API() TRUE
113
-
114
- /**
115
- * GWin32OSType:
116
- * @G_WIN32_OS_ANY: The running system can be a workstation or a server edition of
117
- * Windows. The type of the running system is therefore not checked.
118
- * @G_WIN32_OS_WORKSTATION: The running system is a workstation edition of Windows,
119
- * such as Windows 7 Professional.
120
- * @G_WIN32_OS_SERVER: The running system is a server edition of Windows, such as
121
- * Windows Server 2008 R2.
122
- *
123
- * Type of Windows edition to check for at run-time.
124
- **/
125
- typedef enum
126
- {
127
- G_WIN32_OS_ANY,
128
- G_WIN32_OS_WORKSTATION,
129
- G_WIN32_OS_SERVER,
130
- } GWin32OSType;
131
-
132
- GLIB_AVAILABLE_IN_2_44
133
- gboolean g_win32_check_windows_version (const gint major,
134
- const gint minor,
135
- const gint spver,
136
- const GWin32OSType os_type);
137
-
138
- G_END_DECLS
139
-
140
- #endif /* G_PLATFORM_WIN32 || __GI_SCANNER__ */
141
-
142
- #endif /* __G_WIN32_H__ */