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

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 (121) 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 +35 -1
  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/glib/gwin32.h +54 -4
  18. package/include/glib-2.0/gmodule/gmodule-visibility.h +34 -0
  19. package/include/glib-2.0/gobject/gobject-visibility.h +35 -1
  20. package/include/glib-2.0/msvc_recommended_pragmas.h +41 -0
  21. package/include/harfbuzz/hb-common.h +1 -431
  22. package/include/harfbuzz/hb-deprecated.h +80 -2
  23. package/include/harfbuzz/hb-draw.h +2 -10
  24. package/include/harfbuzz/hb-face.h +1 -1
  25. package/include/harfbuzz/hb-font.h +55 -36
  26. package/include/harfbuzz/hb-paint.h +5 -3
  27. package/include/harfbuzz/hb-script-list.h +484 -0
  28. package/include/harfbuzz/hb-subset.h +22 -2
  29. package/include/harfbuzz/hb-version.h +3 -3
  30. package/include/libheif/heif.h +2 -0
  31. package/include/libheif/heif_version.h +2 -2
  32. package/include/libpng16/png.h +10 -10
  33. package/include/libpng16/pngconf.h +20 -27
  34. package/include/libpng16/pnglibconf.h +1 -1
  35. package/include/libxml2/libxml/HTMLparser.h +2 -2
  36. package/include/libxml2/libxml/parser.h +2 -0
  37. package/include/libxml2/libxml/xmlIO.h +2 -2
  38. package/include/libxml2/libxml/xmlerror.h +1 -1
  39. package/include/libxml2/libxml/xmlversion.h +4 -4
  40. package/include/pixman-1/pixman-version.h +2 -2
  41. package/include/pixman-1/pixman.h +200 -0
  42. package/include/png.h +10 -10
  43. package/include/pngconf.h +20 -27
  44. package/include/pnglibconf.h +1 -1
  45. package/include/vips/VImage8.h +62 -14
  46. package/include/vips/arithmetic.h +34 -34
  47. package/include/vips/basic.h +16 -0
  48. package/include/vips/buf.h +0 -5
  49. package/include/vips/colour.h +6 -7
  50. package/include/vips/connection.h +25 -37
  51. package/include/vips/enumtypes.h +11 -2
  52. package/include/vips/foreign.h +73 -43
  53. package/include/vips/format.h +7 -5
  54. package/include/vips/gate.h +0 -11
  55. package/include/vips/header.h +11 -11
  56. package/include/vips/image.h +8 -3
  57. package/include/vips/interpolate.h +0 -2
  58. package/include/vips/memory.h +4 -0
  59. package/include/vips/mosaicing.h +4 -0
  60. package/include/vips/object.h +14 -18
  61. package/include/vips/operation.h +0 -2
  62. package/include/vips/private.h +50 -2
  63. package/include/vips/region.h +1 -3
  64. package/include/vips/resample.h +2 -0
  65. package/include/vips/semaphore.h +8 -3
  66. package/include/vips/thread.h +1 -24
  67. package/include/vips/threadpool.h +0 -6
  68. package/include/vips/type.h +13 -9
  69. package/include/vips/util.h +17 -98
  70. package/include/vips/vector.h +0 -4
  71. package/include/vips/version.h +8 -8
  72. package/include/vips/vips.h +1 -0
  73. package/package.json +1 -1
  74. package/versions.json +11 -11
  75. package/include/gdk-pixbuf-2.0/gdk-pixbuf/gdk-pixbuf-animation.h +0 -221
  76. package/include/gdk-pixbuf-2.0/gdk-pixbuf/gdk-pixbuf-autocleanups.h +0 -37
  77. package/include/gdk-pixbuf-2.0/gdk-pixbuf/gdk-pixbuf-core.h +0 -525
  78. package/include/gdk-pixbuf-2.0/gdk-pixbuf/gdk-pixbuf-enum-types.h +0 -40
  79. package/include/gdk-pixbuf-2.0/gdk-pixbuf/gdk-pixbuf-features.h +0 -115
  80. package/include/gdk-pixbuf-2.0/gdk-pixbuf/gdk-pixbuf-io.h +0 -481
  81. package/include/gdk-pixbuf-2.0/gdk-pixbuf/gdk-pixbuf-loader.h +0 -113
  82. package/include/gdk-pixbuf-2.0/gdk-pixbuf/gdk-pixbuf-macros.h +0 -718
  83. package/include/gdk-pixbuf-2.0/gdk-pixbuf/gdk-pixbuf-marshal.h +0 -33
  84. package/include/gdk-pixbuf-2.0/gdk-pixbuf/gdk-pixbuf-simple-anim.h +0 -70
  85. package/include/gdk-pixbuf-2.0/gdk-pixbuf/gdk-pixbuf-transform.h +0 -168
  86. package/include/gdk-pixbuf-2.0/gdk-pixbuf/gdk-pixbuf.h +0 -46
  87. package/include/gdk-pixbuf-2.0/gdk-pixbuf/gdk-pixdata.h +0 -165
  88. package/include/harfbuzz/hb-subset-repacker.h +0 -81
  89. package/include/hwy/ops/tuple-inl.h +0 -125
  90. package/include/orc-0.4/orc/orc-stdint.h +0 -1
  91. package/include/orc-0.4/orc/orc.h +0 -16
  92. package/include/orc-0.4/orc/orcarm.h +0 -879
  93. package/include/orc-0.4/orc/orcbytecode.h +0 -35
  94. package/include/orc-0.4/orc/orcbytecodes.h +0 -255
  95. package/include/orc-0.4/orc/orccode.h +0 -53
  96. package/include/orc-0.4/orc/orccompiler.h +0 -176
  97. package/include/orc-0.4/orc/orcconstant.h +0 -39
  98. package/include/orc-0.4/orc/orccpu.h +0 -21
  99. package/include/orc-0.4/orc/orccpuinsn.h +0 -40
  100. package/include/orc-0.4/orc/orcdebug.h +0 -158
  101. package/include/orc-0.4/orc/orcemulateopcodes.h +0 -203
  102. package/include/orc-0.4/orc/orcexecutor.h +0 -135
  103. package/include/orc-0.4/orc/orcfunctions.h +0 -93
  104. package/include/orc-0.4/orc/orcinstruction.h +0 -39
  105. package/include/orc-0.4/orc/orcinternal.h +0 -46
  106. package/include/orc-0.4/orc/orclimits.h +0 -94
  107. package/include/orc-0.4/orc/orcmips.h +0 -229
  108. package/include/orc-0.4/orc/orcmmx.h +0 -79
  109. package/include/orc-0.4/orc/orcneon.h +0 -43
  110. package/include/orc-0.4/orc/orconce.h +0 -166
  111. package/include/orc-0.4/orc/orcopcode.h +0 -63
  112. package/include/orc-0.4/orc/orcparse.h +0 -27
  113. package/include/orc-0.4/orc/orcpowerpc.h +0 -209
  114. package/include/orc-0.4/orc/orcprogram.h +0 -192
  115. package/include/orc-0.4/orc/orcrule.h +0 -52
  116. package/include/orc-0.4/orc/orcsse.h +0 -55
  117. package/include/orc-0.4/orc/orctarget.h +0 -115
  118. package/include/orc-0.4/orc/orcutils.h +0 -238
  119. package/include/orc-0.4/orc/orcvariable.h +0 -81
  120. package/include/orc-0.4/orc/orcx86.h +0 -199
  121. 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,81 +0,0 @@
1
- /*
2
- * Copyright © 2022 Google, Inc.
3
- *
4
- * This is part of HarfBuzz, a text shaping library.
5
- *
6
- * Permission is hereby granted, without written agreement and without
7
- * license or royalty fees, to use, copy, modify, and distribute this
8
- * software and its documentation for any purpose, provided that the
9
- * above copyright notice and the following two paragraphs appear in
10
- * all copies of this software.
11
- *
12
- * IN NO EVENT SHALL THE COPYRIGHT HOLDER BE LIABLE TO ANY PARTY FOR
13
- * DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES
14
- * ARISING OUT OF THE USE OF THIS SOFTWARE AND ITS DOCUMENTATION, EVEN
15
- * IF THE COPYRIGHT HOLDER HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH
16
- * DAMAGE.
17
- *
18
- * THE COPYRIGHT HOLDER SPECIFICALLY DISCLAIMS ANY WARRANTIES, INCLUDING,
19
- * BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
20
- * FITNESS FOR A PARTICULAR PURPOSE. THE SOFTWARE PROVIDED HEREUNDER IS
21
- * ON AN "AS IS" BASIS, AND THE COPYRIGHT HOLDER HAS NO OBLIGATION TO
22
- * PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
23
- *
24
- */
25
-
26
- #ifndef HB_SUBSET_REPACKER_H
27
- #define HB_SUBSET_REPACKER_H
28
-
29
- #include "hb.h"
30
-
31
- HB_BEGIN_DECLS
32
-
33
- #ifdef HB_EXPERIMENTAL_API
34
- /*
35
- * struct hb_link_t
36
- * width: offsetSize in bytes
37
- * position: position of the offset field in bytes
38
- * from beginning of subtable
39
- * objidx: index of subtable
40
- */
41
- struct hb_link_t
42
- {
43
- unsigned width;
44
- unsigned position;
45
- unsigned objidx;
46
- };
47
-
48
- typedef struct hb_link_t hb_link_t;
49
-
50
- /*
51
- * struct hb_object_t
52
- * head: start of object data
53
- * tail: end of object data
54
- * num_real_links: num of offset field in the object
55
- * real_links: pointer to array of offset info
56
- * num_virtual_links: num of objects that must be packed
57
- * after current object in the final serialized order
58
- * virtual_links: array of virtual link info
59
- */
60
- struct hb_object_t
61
- {
62
- char *head;
63
- char *tail;
64
- unsigned num_real_links;
65
- hb_link_t *real_links;
66
- unsigned num_virtual_links;
67
- hb_link_t *virtual_links;
68
- };
69
-
70
- typedef struct hb_object_t hb_object_t;
71
-
72
- HB_EXTERN hb_blob_t*
73
- hb_subset_repack_or_fail (hb_tag_t table_tag,
74
- hb_object_t* hb_objects,
75
- unsigned num_hb_objs);
76
-
77
- #endif
78
-
79
- HB_END_DECLS
80
-
81
- #endif /* HB_SUBSET_REPACKER_H */
@@ -1,125 +0,0 @@
1
- // Copyright 2023 Google LLC
2
- // SPDX-License-Identifier: Apache-2.0
3
- //
4
- // Licensed under the Apache License, Version 2.0 (the "License");
5
- // you may not use this file except in compliance with the License.
6
- // You may obtain a copy of the License at
7
- //
8
- // http://www.apache.org/licenses/LICENSE-2.0
9
- //
10
- // Unless required by applicable law or agreed to in writing, software
11
- // distributed under the License is distributed on an "AS IS" BASIS,
12
- // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
- // See the License for the specific language governing permissions and
14
- // limitations under the License.
15
-
16
- // Tuple support. Included by those ops/* that lack native tuple types, after
17
- // they define VFromD and before they use the tuples e.g. for LoadInterleaved2.
18
- // Assumes we are already in the HWY_NAMESPACE and under an include guard.
19
-
20
- // If viewing this header standalone, define VFromD to avoid IDE warnings.
21
- // This is normally set by set_macros-inl.h before this header is included.
22
- #if !defined(HWY_NAMESPACE)
23
- #include "hwy/base.h"
24
- template <class D>
25
- using VFromD = int;
26
- #endif
27
-
28
- // On SVE, Vec2..4 are aliases to built-in types.
29
- template <class D>
30
- struct Vec2 {
31
- VFromD<D> v0;
32
- VFromD<D> v1;
33
- };
34
-
35
- template <class D>
36
- struct Vec3 {
37
- VFromD<D> v0;
38
- VFromD<D> v1;
39
- VFromD<D> v2;
40
- };
41
-
42
- template <class D>
43
- struct Vec4 {
44
- VFromD<D> v0;
45
- VFromD<D> v1;
46
- VFromD<D> v2;
47
- VFromD<D> v3;
48
- };
49
-
50
- // D arg is unused but allows deducing D.
51
- template <class D>
52
- HWY_API Vec2<D> Create2(D /* tag */, VFromD<D> v0, VFromD<D> v1) {
53
- return Vec2<D>{v0, v1};
54
- }
55
-
56
- template <class D>
57
- HWY_API Vec3<D> Create3(D /* tag */, VFromD<D> v0, VFromD<D> v1, VFromD<D> v2) {
58
- return Vec3<D>{v0, v1, v2};
59
- }
60
-
61
- template <class D>
62
- HWY_API Vec4<D> Create4(D /* tag */, VFromD<D> v0, VFromD<D> v1, VFromD<D> v2,
63
- VFromD<D> v3) {
64
- return Vec4<D>{v0, v1, v2, v3};
65
- }
66
-
67
- template <size_t kIndex, class D>
68
- HWY_API VFromD<D> Get2(Vec2<D> tuple) {
69
- static_assert(kIndex < 2, "Tuple index out of bounds");
70
- return kIndex == 0 ? tuple.v0 : tuple.v1;
71
- }
72
-
73
- template <size_t kIndex, class D>
74
- HWY_API VFromD<D> Get3(Vec3<D> tuple) {
75
- static_assert(kIndex < 3, "Tuple index out of bounds");
76
- return kIndex == 0 ? tuple.v0 : kIndex == 1 ? tuple.v1 : tuple.v2;
77
- }
78
-
79
- template <size_t kIndex, class D>
80
- HWY_API VFromD<D> Get4(Vec4<D> tuple) {
81
- static_assert(kIndex < 4, "Tuple index out of bounds");
82
- return kIndex == 0 ? tuple.v0
83
- : kIndex == 1 ? tuple.v1
84
- : kIndex == 2 ? tuple.v2
85
- : tuple.v3;
86
- }
87
-
88
- template <size_t kIndex, class D>
89
- HWY_API Vec2<D> Set2(Vec2<D> tuple, VFromD<D> val) {
90
- static_assert(kIndex < 2, "Tuple index out of bounds");
91
- if (kIndex == 0) {
92
- tuple.v0 = val;
93
- } else {
94
- tuple.v1 = val;
95
- }
96
- return tuple;
97
- }
98
-
99
- template <size_t kIndex, class D>
100
- HWY_API Vec3<D> Set3(Vec3<D> tuple, VFromD<D> val) {
101
- static_assert(kIndex < 3, "Tuple index out of bounds");
102
- if (kIndex == 0) {
103
- tuple.v0 = val;
104
- } else if (kIndex == 1) {
105
- tuple.v1 = val;
106
- } else {
107
- tuple.v2 = val;
108
- }
109
- return tuple;
110
- }
111
-
112
- template <size_t kIndex, class D>
113
- HWY_API Vec4<D> Set4(Vec4<D> tuple, VFromD<D> val) {
114
- static_assert(kIndex < 4, "Tuple index out of bounds");
115
- if (kIndex == 0) {
116
- tuple.v0 = val;
117
- } else if (kIndex == 1) {
118
- tuple.v1 = val;
119
- } else if (kIndex == 2) {
120
- tuple.v2 = val;
121
- } else {
122
- tuple.v3 = val;
123
- }
124
- return tuple;
125
- }
@@ -1 +0,0 @@
1
- /* This file is intentionally nearly empty */