@img/sharp-libvips-dev 1.1.0-rc3 → 1.1.0-rc5

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 (119) hide show
  1. package/include/aom/aom_codec.h +18 -1
  2. package/include/aom/aom_encoder.h +2 -0
  3. package/include/aom/aom_image.h +3 -1
  4. package/include/aom/aomcx.h +52 -12
  5. package/include/archive.h +3 -3
  6. package/include/archive_entry.h +3 -2
  7. package/include/cairo/cairo-version.h +1 -1
  8. package/include/expat.h +6 -4
  9. package/include/expat_config.h +3 -3
  10. package/include/ffi.h +1 -1
  11. package/include/fontconfig/fcfreetype.h +5 -5
  12. package/include/fontconfig/fcprivate.h +86 -92
  13. package/include/fontconfig/fontconfig.h +337 -310
  14. package/include/gio-unix-2.0/gio/gdesktopappinfo.h +1 -1
  15. package/include/gio-unix-2.0/gio/gunixmounts.h +95 -23
  16. package/include/glib-2.0/gio/gdbusconnection.h +65 -5
  17. package/include/glib-2.0/gio/gdebugcontroller.h +1 -1
  18. package/include/glib-2.0/gio/gfile.h +4 -0
  19. package/include/glib-2.0/gio/gio-visibility.h +34 -0
  20. package/include/glib-2.0/gio/gioenums.h +14 -3
  21. package/include/glib-2.0/gio/gioenumtypes.h +3 -3
  22. package/include/glib-2.0/gio/giotypes.h +4 -4
  23. package/include/glib-2.0/gio/gmemorymonitor.h +1 -1
  24. package/include/glib-2.0/gio/gnetworkmonitor.h +1 -1
  25. package/include/glib-2.0/gio/gpowerprofilemonitor.h +1 -1
  26. package/include/glib-2.0/gio/gproxy.h +1 -1
  27. package/include/glib-2.0/gio/gproxyresolver.h +1 -1
  28. package/include/glib-2.0/gio/gresource.h +6 -0
  29. package/include/glib-2.0/gio/gtlsbackend.h +1 -1
  30. package/include/glib-2.0/gio/gvfs.h +3 -3
  31. package/include/glib-2.0/gio/gvolumemonitor.h +1 -1
  32. package/include/glib-2.0/girepository/gi-visibility.h +34 -0
  33. package/include/glib-2.0/girepository/gicallableinfo.h +12 -0
  34. package/include/glib-2.0/girepository/gitypes.h +1 -0
  35. package/include/glib-2.0/glib/garray.h +1 -1
  36. package/include/glib-2.0/glib/gerror.h +1 -1
  37. package/include/glib-2.0/glib/glib-visibility.h +34 -0
  38. package/include/glib-2.0/glib/gmacros.h +3 -3
  39. package/include/glib-2.0/glib/gmain.h +79 -1
  40. package/include/glib-2.0/glib/gmem.h +3 -0
  41. package/include/glib-2.0/glib/goption.h +58 -36
  42. package/include/glib-2.0/glib/gqueue.h +1 -1
  43. package/include/glib-2.0/glib/grefstring.h +4 -0
  44. package/include/glib-2.0/glib/gstdio.h +65 -0
  45. package/include/glib-2.0/glib/gstrfuncs.h +4 -0
  46. package/include/glib-2.0/glib/gtestutils.h +65 -33
  47. package/include/glib-2.0/glib/gthread.h +2 -0
  48. package/include/glib-2.0/glib/gtypes.h +1 -1
  49. package/include/glib-2.0/glib/gunicode.h +21 -5
  50. package/include/glib-2.0/glib/gvariant.h +50 -13
  51. package/include/glib-2.0/glib/gvarianttype.h +62 -46
  52. package/include/glib-2.0/glib/gversionmacros.h +9 -0
  53. package/include/glib-2.0/glib-unix.h +21 -0
  54. package/include/glib-2.0/gmodule/gmodule-visibility.h +34 -0
  55. package/include/glib-2.0/gobject/glib-enumtypes.h +1 -1
  56. package/include/glib-2.0/gobject/gobject-visibility.h +34 -0
  57. package/include/glib-2.0/gobject/gobjectnotifyqueue.c +1 -1
  58. package/include/glib-2.0/gobject/gparam.h +4 -2
  59. package/include/glib-2.0/gobject/gsignal.h +22 -7
  60. package/include/glib-2.0/gobject/gtype.h +10 -4
  61. package/include/harfbuzz/hb-buffer.h +62 -3
  62. package/include/harfbuzz/hb-common.h +11 -0
  63. package/include/harfbuzz/hb-draw.h +10 -2
  64. package/include/harfbuzz/hb-face.h +29 -2
  65. package/include/harfbuzz/hb-font.h +6 -0
  66. package/include/harfbuzz/hb-ft.h +15 -1
  67. package/include/harfbuzz/hb-ot-shape.h +6 -0
  68. package/include/harfbuzz/hb-paint.h +9 -1
  69. package/include/harfbuzz/hb-shape.h +2 -0
  70. package/include/harfbuzz/hb-subset-serialize.h +83 -0
  71. package/include/harfbuzz/hb-subset.h +12 -0
  72. package/include/harfbuzz/hb-version.h +3 -3
  73. package/include/lcms2.h +7 -5
  74. package/include/lcms2_plugin.h +1 -1
  75. package/include/libexif/exif-byte-order.h +2 -0
  76. package/include/libexif/exif-content.h +2 -0
  77. package/include/libexif/exif-data-type.h +2 -0
  78. package/include/libexif/exif-data.h +3 -2
  79. package/include/libexif/exif-entry.h +2 -0
  80. package/include/libexif/exif-format.h +2 -0
  81. package/include/libexif/exif-ifd.h +2 -0
  82. package/include/libexif/exif-loader.h +2 -0
  83. package/include/libexif/exif-log.h +2 -0
  84. package/include/libexif/exif-mem.h +2 -0
  85. package/include/libexif/exif-mnote-data.h +2 -0
  86. package/include/libexif/exif-tag.h +2 -0
  87. package/include/libexif/exif-utils.h +2 -0
  88. package/include/libheif/heif.h +12 -3
  89. package/include/libheif/heif_cxx.h +18 -12
  90. package/include/libheif/heif_items.h +2 -2
  91. package/include/libheif/heif_properties.h +4 -4
  92. package/include/libheif/heif_version.h +2 -2
  93. package/include/libpng16/png.h +120 -12
  94. package/include/libpng16/pngconf.h +2 -3
  95. package/include/libpng16/pnglibconf.h +11 -2
  96. package/include/librsvg-2.0/librsvg/rsvg-features.h +1 -1
  97. package/include/librsvg-2.0/librsvg/rsvg-pixbuf.h +1 -1
  98. package/include/librsvg-2.0/librsvg/rsvg-version.h +3 -3
  99. package/include/librsvg-2.0/librsvg/rsvg.h +1 -1
  100. package/include/libxml2/libxml/xmlversion.h +4 -4
  101. package/include/pango-1.0/pango/pango-features.h +3 -3
  102. package/include/pango-1.0/pango/pango-font.h +32 -3
  103. package/include/pango-1.0/pango/pango-fontmap.h +4 -0
  104. package/include/pango-1.0/pango/pango-layout.h +10 -1
  105. package/include/pango-1.0/pango/pango-version-macros.h +52 -0
  106. package/include/pango-1.0/pango/pangofc-fontmap.h +6 -0
  107. package/include/pixman-1/pixman-version.h +3 -3
  108. package/include/png.h +120 -12
  109. package/include/pngconf.h +2 -3
  110. package/include/pnglibconf.h +11 -2
  111. package/include/vips/colour.h +2 -0
  112. package/include/vips/version.h +4 -4
  113. package/include/webp/encode.h +5 -4
  114. package/include/webp/sharpyuv/sharpyuv.h +14 -5
  115. package/include/webp/sharpyuv/sharpyuv_csp.h +5 -0
  116. package/include/webp/types.h +2 -2
  117. package/include/zlib.h +4 -4
  118. package/package.json +1 -1
  119. package/versions.json +20 -20
@@ -223,10 +223,27 @@ typedef long aom_codec_caps_t;
223
223
  * Certain codec features must be known at initialization time, to allow for
224
224
  * proper memory allocation.
225
225
  *
226
- * The available flags are specified by AOM_CODEC_USE_* defines.
226
+ * The available flags are specified by AOM_CODEC_USE_* defines. The bits are
227
+ * allocated as follows:
228
+ * 0x1 - 0x80: codec (common to decoder and encoder)
229
+ * 0x100 - 0x8000: decoder
230
+ * 0x10000 - 0x800000: encoder
227
231
  */
228
232
  typedef long aom_codec_flags_t;
229
233
 
234
+ // Experimental feature policy
235
+ //
236
+ // New features may be marked as experimental. Experimental features are not
237
+ // part of the stable API and may be modified or removed in a future release.
238
+ // Experimental features are made available only if you pass the
239
+ // AOM_CODEC_USE_EXPERIMENTAL flag to the codec init function.
240
+ //
241
+ // If you use experimental features, you must rebuild your code whenever you
242
+ // update to a new libaom release, and you must be prepared to modify your code
243
+ // when an experimental feature you use is modified or removed. If you are not
244
+ // sure, DO NOT use experimental features.
245
+ #define AOM_CODEC_USE_EXPERIMENTAL 0x1 /**< Enables experimental features */
246
+
230
247
  /*!\brief Time Stamp Type
231
248
  *
232
249
  * An integer, which when multiplied by the stream's time base, provides
@@ -78,6 +78,8 @@ extern "C" {
78
78
  */
79
79
  #define AOM_CODEC_USE_PSNR 0x10000 /**< Calculate PSNR on each frame */
80
80
  #define AOM_CODEC_USE_HIGHBITDEPTH 0x40000 /**< Use high bitdepth */
81
+ // 0x80000 was used for the experimental feature AOM_CODEC_USE_PRESET during
82
+ // libaom v3.11.0 development but was removed before the release.
81
83
 
82
84
  /*!\brief Generic fixed size buffer structure
83
85
  *
@@ -278,7 +278,9 @@ aom_image_t *aom_img_alloc(aom_image_t *img, aom_img_fmt_t fmt,
278
278
  * (2^27).
279
279
  * \param[in] align Alignment, in bytes, of each row in the image
280
280
  * (stride). Must not exceed 65536.
281
- * \param[in] img_data Storage to use for the image
281
+ * \param[in] img_data Storage to use for the image. The storage must
282
+ * outlive the returned image descriptor; it can be
283
+ * disposed of after calling aom_img_free().
282
284
  *
283
285
  * \return Returns a pointer to the initialized image descriptor. If the img
284
286
  * parameter is non-null, the value of the img parameter will be
@@ -233,10 +233,16 @@ enum aome_enc_control_id {
233
233
  * unsigned int parameter.
234
234
  *
235
235
  * This parameter controls the level at which rate-distortion optimization of
236
- * transform coefficients favours sharpness in the block.
236
+ * transform coefficients favors sharpness in the block.
237
237
  *
238
- * Valid range: 0..7. The default is 0. Values 1-7 will avoid eob and skip
239
- * block optimization and will change rdmult in favour of block sharpness.
238
+ * Valid range: 0..7. The default is 0.
239
+ *
240
+ * Values 1-7 will avoid eob and skip block optimization and will change
241
+ * rdmult in favor of block sharpness.
242
+ *
243
+ * In all-intra mode: it also sets the `loop_filter_sharpness` syntax element
244
+ * in the bitstream. Larger values increasingly reduce how much the filtering
245
+ * can change the sample values on block edges to favor perceived sharpness.
240
246
  */
241
247
  AOME_SET_SHARPNESS = AOME_SET_ENABLEAUTOALTREF + 2, // 16
242
248
 
@@ -666,6 +672,7 @@ enum aome_enc_control_id {
666
672
  * - 0 = disable
667
673
  * - 1 = enable for all frames (default)
668
674
  * - 2 = disable for non-reference frames
675
+ * - 3 = enable adaptively based on frame qindex
669
676
  */
670
677
  AV1E_SET_ENABLE_CDEF = 58,
671
678
 
@@ -725,8 +732,8 @@ enum aome_enc_control_id {
725
732
  * control sets the minimum level of flatness from which the matrices
726
733
  * are determined.
727
734
  *
728
- * By default, the encoder sets this minimum at half the available
729
- * range.
735
+ * By default, the encoder sets this minimum at level 5 (4 in all intra
736
+ * mode).
730
737
  */
731
738
  AV1E_SET_QM_MIN = 64,
732
739
 
@@ -737,8 +744,8 @@ enum aome_enc_control_id {
737
744
  * As quantisation levels increase, the matrices get flatter. This
738
745
  * control sets the maximum level of flatness possible.
739
746
  *
740
- * By default, the encoder sets this maximum at the top of the
741
- * available range.
747
+ * By default, the encoder sets this maximum at level 9 (10 in all intra
748
+ * mode)
742
749
  */
743
750
  AV1E_SET_QM_MAX = 65,
744
751
 
@@ -1127,6 +1134,8 @@ enum aome_enc_control_id {
1127
1134
  * - 2 = use modulation for local test
1128
1135
  * - 3 = use modulation for key frame perceptual quality optimization
1129
1136
  * - 4 = use modulation for user rating based perceptual quality optimization
1137
+ * - 5 = use modulation for HDR video
1138
+ * - 6 = use modulation for all intra using Variance Boost
1130
1139
  */
1131
1140
  AV1E_SET_DELTAQ_MODE = 107,
1132
1141
 
@@ -1280,8 +1289,7 @@ enum aome_enc_control_id {
1280
1289
  */
1281
1290
  AV1E_SET_SVC_PARAMS = 132,
1282
1291
 
1283
- /*!\brief Codec control function to set reference frame config:
1284
- * the ref_idx and the refresh flags for each buffer slot.
1292
+ /*!\brief Codec control function to set the reference frame config,
1285
1293
  * aom_svc_ref_frame_config_t* parameter
1286
1294
  */
1287
1295
  AV1E_SET_SVC_REF_FRAME_CONFIG = 133,
@@ -1660,6 +1668,18 @@ typedef enum {
1660
1668
  *
1661
1669
  * Changes the encoder to tune for certain types of input material.
1662
1670
  *
1671
+ * \note
1672
+ * AOM_TUNE_IQ is restricted to all intra mode (AOM_USAGE_ALL_INTRA). Setting
1673
+ * the tuning option to AOM_TUNE_IQ causes the following options to be set
1674
+ * (expressed as command-line options):
1675
+ * * --enable-qm=1
1676
+ * * --qm-min=2
1677
+ * * --qm-max=10
1678
+ * * --sharpness=7
1679
+ * * --dist-metric=qm-psnr
1680
+ * * --enable-cdef=3
1681
+ * * --enable-chroma-deltaq=1
1682
+ * * --deltaq-mode=6
1663
1683
  */
1664
1684
  typedef enum {
1665
1685
  AOM_TUNE_PSNR = 0,
@@ -1671,6 +1691,13 @@ typedef enum {
1671
1691
  AOM_TUNE_VMAF_NEG_MAX_GAIN = 7,
1672
1692
  AOM_TUNE_BUTTERAUGLI = 8,
1673
1693
  AOM_TUNE_VMAF_SALIENCY_MAP = 9,
1694
+ /*!\brief Allows detection of the presence of AOM_TUNE_IQ at compile time. */
1695
+ #define AOM_HAVE_TUNE_IQ 1
1696
+ /* Image quality (or intra quality). Increases image quality and consistency,
1697
+ * guided by the SSIMULACRA 2 metric and subjective quality checks. Shares
1698
+ * the rdmult code with AOM_TUNE_SSIM.
1699
+ */
1700
+ AOM_TUNE_IQ = 10,
1674
1701
  } aom_tune_metric;
1675
1702
 
1676
1703
  /*!\brief Distortion metric to use for RD optimization.
@@ -1721,12 +1748,25 @@ typedef struct aom_svc_params {
1721
1748
 
1722
1749
  /*!brief Parameters for setting ref frame config */
1723
1750
  typedef struct aom_svc_ref_frame_config {
1724
- // 7 references: The index 0 - 6 refers to the references:
1751
+ // Three arrays need to be set: reference[], ref_id[], refresh[].
1752
+ // reference[i]: is a boolean flag to indicate which of the 7 possible
1753
+ // references are used for prediction. Values are 0 (not used as reference)
1754
+ // or 1 (use as reference). The index 0 - 6 refers to the references:
1725
1755
  // last(0), last2(1), last3(2), golden(3), bwdref(4), altref2(5), altref(6).
1756
+ // ref_idx[i]: maps a reference to one of the 8 buffers slots, values are
1757
+ // 0 - 7. The ref_idx for a unused reference (reference[i] = 1, and not used
1758
+ // for refresh, see below) can be set to the ref_idx of the first reference
1759
+ // used (usually LAST).
1760
+ // refresh[i] is a boolean flag to indicate if a buffer is updated/refreshed
1761
+ // with the current encoded frame. Values are 0 (no refresh) or 1 (refresh).
1762
+ // The refresh is done internally by looking at the ref_idx[j], for j = 0 - 6,
1763
+ // so to refresh a buffer slot (i) a reference must be mapped to that slot
1764
+ // (i = ref_idx[j]).
1765
+ // Examples for usage (for RTC encoding) are in: examples/svc_encoder_rtc.c.
1726
1766
  int reference[7]; /**< Reference flag for each of the 7 references. */
1727
- /*! Buffer slot index for each of 7 references indexed above. */
1767
+ /*! Buffer slot index (0..7) for each of 7 references indexed above. */
1728
1768
  int ref_idx[7];
1729
- int refresh[8]; /**< Refresh flag for each of the 8 slots. */
1769
+ int refresh[8]; /**< Refresh flag for each of the 8 buffer slots. */
1730
1770
  } aom_svc_ref_frame_config_t;
1731
1771
 
1732
1772
  /*!brief Parameters for setting ref frame compound prediction */
package/include/archive.h CHANGED
@@ -34,7 +34,7 @@
34
34
  * assert that ARCHIVE_VERSION_NUMBER >= 2012108.
35
35
  */
36
36
  /* Note: Compiler will complain if this does not match archive_entry.h! */
37
- #define ARCHIVE_VERSION_NUMBER 3007007
37
+ #define ARCHIVE_VERSION_NUMBER 3007009
38
38
 
39
39
  #include <sys/stat.h>
40
40
  #include <stddef.h> /* for wchar_t */
@@ -132,7 +132,7 @@ typedef ssize_t la_ssize_t;
132
132
  #define __LA_PRINTF(fmtarg, firstvararg) /* nothing */
133
133
  #endif
134
134
 
135
- #if defined(__GNUC__) && __GNUC__ >= 3 && __GNUC_MINOR__ >= 1
135
+ #if defined(__GNUC__) && (__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 1))
136
136
  # define __LA_DEPRECATED __attribute__((deprecated))
137
137
  #else
138
138
  # define __LA_DEPRECATED
@@ -155,7 +155,7 @@ __LA_DECL int archive_version_number(void);
155
155
  /*
156
156
  * Textual name/version of the library, useful for version displays.
157
157
  */
158
- #define ARCHIVE_VERSION_ONLY_STRING "3.7.7"
158
+ #define ARCHIVE_VERSION_ONLY_STRING "3.7.9"
159
159
  #define ARCHIVE_VERSION_STRING "libarchive " ARCHIVE_VERSION_ONLY_STRING
160
160
  __LA_DECL const char * archive_version_string(void);
161
161
 
@@ -28,7 +28,7 @@
28
28
  #define ARCHIVE_ENTRY_H_INCLUDED
29
29
 
30
30
  /* Note: Compiler will complain if this does not match archive.h! */
31
- #define ARCHIVE_VERSION_NUMBER 3007007
31
+ #define ARCHIVE_VERSION_NUMBER 3007009
32
32
 
33
33
  /*
34
34
  * Note: archive_entry.h is for use outside of libarchive; the
@@ -127,7 +127,8 @@ typedef ssize_t la_ssize_t;
127
127
  # define __LA_DECL
128
128
  #endif
129
129
 
130
- #if defined(__GNUC__) && __GNUC__ >= 3 && __GNUC_MINOR__ >= 1
130
+ #if defined(__GNUC__) && (__GNUC__ > 3 || \
131
+ (__GNUC__ == 3 && __GNUC_MINOR__ >= 1))
131
132
  # define __LA_DEPRECATED __attribute__((deprecated))
132
133
  #else
133
134
  # define __LA_DEPRECATED
@@ -3,6 +3,6 @@
3
3
 
4
4
  #define CAIRO_VERSION_MAJOR 1
5
5
  #define CAIRO_VERSION_MINOR 18
6
- #define CAIRO_VERSION_MICRO 2
6
+ #define CAIRO_VERSION_MICRO 4
7
7
 
8
8
  #endif
package/include/expat.h CHANGED
@@ -11,7 +11,7 @@
11
11
  Copyright (c) 2000-2005 Fred L. Drake, Jr. <fdrake@users.sourceforge.net>
12
12
  Copyright (c) 2001-2002 Greg Stein <gstein@users.sourceforge.net>
13
13
  Copyright (c) 2002-2016 Karl Waclawek <karl@waclawek.net>
14
- Copyright (c) 2016-2024 Sebastian Pipping <sebastian@pipping.org>
14
+ Copyright (c) 2016-2025 Sebastian Pipping <sebastian@pipping.org>
15
15
  Copyright (c) 2016 Cristian Rodríguez <crrodriguez@opensuse.org>
16
16
  Copyright (c) 2016 Thomas Beutlich <tc@tbeu.de>
17
17
  Copyright (c) 2017 Rhodri James <rhodri@wildebeest.org.uk>
@@ -130,7 +130,9 @@ enum XML_Error {
130
130
  /* Added in 2.3.0. */
131
131
  XML_ERROR_NO_BUFFER,
132
132
  /* Added in 2.4.0. */
133
- XML_ERROR_AMPLIFICATION_LIMIT_BREACH
133
+ XML_ERROR_AMPLIFICATION_LIMIT_BREACH,
134
+ /* Added in 2.6.4. */
135
+ XML_ERROR_NOT_STARTED,
134
136
  };
135
137
 
136
138
  enum XML_Content_Type {
@@ -1065,8 +1067,8 @@ XML_SetReparseDeferralEnabled(XML_Parser parser, XML_Bool enabled);
1065
1067
  See https://semver.org
1066
1068
  */
1067
1069
  #define XML_MAJOR_VERSION 2
1068
- #define XML_MINOR_VERSION 6
1069
- #define XML_MICRO_VERSION 3
1070
+ #define XML_MINOR_VERSION 7
1071
+ #define XML_MICRO_VERSION 1
1070
1072
 
1071
1073
  #ifdef __cplusplus
1072
1074
  }
@@ -83,7 +83,7 @@
83
83
  #define PACKAGE_NAME "expat"
84
84
 
85
85
  /* Define to the full name and version of this package. */
86
- #define PACKAGE_STRING "expat 2.6.3"
86
+ #define PACKAGE_STRING "expat 2.7.1"
87
87
 
88
88
  /* Define to the one symbol short name of this package. */
89
89
  #define PACKAGE_TARNAME "expat"
@@ -92,7 +92,7 @@
92
92
  #define PACKAGE_URL ""
93
93
 
94
94
  /* Define to the version of this package. */
95
- #define PACKAGE_VERSION "2.6.3"
95
+ #define PACKAGE_VERSION "2.7.1"
96
96
 
97
97
  /* Define to 1 if all of the C90 standard headers exist (not just the ones
98
98
  required in a freestanding environment). This macro is provided for
@@ -100,7 +100,7 @@
100
100
  #define STDC_HEADERS 1
101
101
 
102
102
  /* Version number of package */
103
- #define VERSION "2.6.3"
103
+ #define VERSION "2.7.1"
104
104
 
105
105
  /* Define WORDS_BIGENDIAN to 1 if your processor stores words with the most
106
106
  significant byte first (like Motorola and SPARC, unlike Intel). */
package/include/ffi.h CHANGED
@@ -1,5 +1,5 @@
1
1
  /* -----------------------------------------------------------------*-C-*-
2
- libffi 3.4.6
2
+ libffi 3.4.7
3
3
  - Copyright (c) 2011, 2014, 2019, 2021, 2022, 2024 Anthony Green
4
4
  - Copyright (c) 1996-2003, 2007, 2008 Red Hat, Inc.
5
5
 
@@ -28,7 +28,7 @@
28
28
  #include FT_FREETYPE_H
29
29
 
30
30
  #ifndef FcPublic
31
- #define FcPublic
31
+ # define FcPublic
32
32
  #endif
33
33
 
34
34
  _FCFUNCPROTOBEGIN
@@ -38,7 +38,7 @@ FcFreeTypeCharIndex (FT_Face face, FcChar32 ucs4);
38
38
 
39
39
  FcPublic FcCharSet *
40
40
  FcFreeTypeCharSetAndSpacing (FT_Face face, FcBlanks *blanks, int *spacing);
41
-
41
+
42
42
  FcPublic FcCharSet *
43
43
  FcFreeTypeCharSet (FT_Face face, FcBlanks *blanks);
44
44
 
@@ -50,9 +50,9 @@ FcPatternAddFTFace (FcPattern *p, const char *object, const FT_Face f);
50
50
 
51
51
  FcPublic FcPattern *
52
52
  FcFreeTypeQueryFace (const FT_Face face,
53
- const FcChar8 *file,
54
- unsigned int id,
55
- FcBlanks *blanks);
53
+ const FcChar8 *file,
54
+ unsigned int id,
55
+ FcBlanks *blanks);
56
56
 
57
57
  _FCFUNCPROTOEND
58
58
 
@@ -31,104 +31,98 @@
31
31
  * into macros (sigh).
32
32
  */
33
33
 
34
- #define FcPatternVapBuild(result, orig, va) \
35
- { \
36
- FcPattern *__p__ = (orig); \
37
- const char *__o__; \
38
- FcValue __v__; \
39
- \
40
- if (!__p__) \
41
- { \
42
- __p__ = FcPatternCreate (); \
43
- if (!__p__) \
44
- goto _FcPatternVapBuild_bail0; \
45
- } \
46
- for (;;) \
47
- { \
48
- __o__ = va_arg (va, const char *); \
49
- if (!__o__) \
50
- break; \
51
- __v__.type = va_arg (va, int); \
52
- switch (__v__.type) { \
53
- case FcTypeUnknown: \
54
- case FcTypeVoid: \
55
- goto _FcPatternVapBuild_bail1; \
56
- case FcTypeInteger: \
57
- __v__.u.i = va_arg (va, int); \
58
- break; \
59
- case FcTypeDouble: \
60
- __v__.u.d = va_arg (va, double); \
61
- break; \
62
- case FcTypeString: \
63
- __v__.u.s = va_arg (va, const FcChar8 *); \
64
- break; \
65
- case FcTypeBool: \
66
- __v__.u.b = va_arg (va, FcBool); \
67
- break; \
68
- case FcTypeMatrix: \
69
- __v__.u.m = va_arg (va, const FcMatrix *); \
70
- break; \
71
- case FcTypeCharSet: \
72
- __v__.u.c = va_arg (va, const FcCharSet *); \
73
- break; \
74
- case FcTypeFTFace: \
75
- __v__.u.f = va_arg (va, FT_Face); \
76
- break; \
77
- case FcTypeLangSet: \
78
- __v__.u.l = va_arg (va, const FcLangSet *); \
79
- break; \
80
- case FcTypeRange: \
81
- __v__.u.r = va_arg (va, const FcRange *); \
82
- break; \
83
- } \
84
- if (!FcPatternAdd (__p__, __o__, __v__, FcTrue)) \
85
- goto _FcPatternVapBuild_bail1; \
86
- } \
87
- result = __p__; \
88
- goto _FcPatternVapBuild_return; \
89
- \
90
- _FcPatternVapBuild_bail1: \
91
- if (!orig) \
92
- FcPatternDestroy (__p__); \
93
- _FcPatternVapBuild_bail0: \
94
- result = (void*)0; \
95
- \
96
- _FcPatternVapBuild_return: \
97
- ; \
98
- }
34
+ #define FcPatternVapBuild(result, orig, va) \
35
+ { \
36
+ FcPattern *__p__ = (orig); \
37
+ const char *__o__; \
38
+ FcValue __v__; \
39
+ \
40
+ if (!__p__) { \
41
+ __p__ = FcPatternCreate(); \
42
+ if (!__p__) \
43
+ goto _FcPatternVapBuild_bail0; \
44
+ } \
45
+ for (;;) { \
46
+ __o__ = va_arg (va, const char *); \
47
+ if (!__o__) \
48
+ break; \
49
+ __v__.type = va_arg (va, int); \
50
+ switch (__v__.type) { \
51
+ case FcTypeUnknown: \
52
+ case FcTypeVoid: \
53
+ goto _FcPatternVapBuild_bail1; \
54
+ case FcTypeInteger: \
55
+ __v__.u.i = va_arg (va, int); \
56
+ break; \
57
+ case FcTypeDouble: \
58
+ __v__.u.d = va_arg (va, double); \
59
+ break; \
60
+ case FcTypeString: \
61
+ __v__.u.s = va_arg (va, const FcChar8 *); \
62
+ break; \
63
+ case FcTypeBool: \
64
+ __v__.u.b = va_arg (va, FcBool); \
65
+ break; \
66
+ case FcTypeMatrix: \
67
+ __v__.u.m = va_arg (va, const FcMatrix *); \
68
+ break; \
69
+ case FcTypeCharSet: \
70
+ __v__.u.c = va_arg (va, const FcCharSet *); \
71
+ break; \
72
+ case FcTypeFTFace: \
73
+ __v__.u.f = va_arg (va, FT_Face); \
74
+ break; \
75
+ case FcTypeLangSet: \
76
+ __v__.u.l = va_arg (va, const FcLangSet *); \
77
+ break; \
78
+ case FcTypeRange: \
79
+ __v__.u.r = va_arg (va, const FcRange *); \
80
+ break; \
81
+ } \
82
+ if (!FcPatternAdd (__p__, __o__, __v__, FcTrue)) \
83
+ goto _FcPatternVapBuild_bail1; \
84
+ } \
85
+ result = __p__; \
86
+ goto _FcPatternVapBuild_return; \
87
+ \
88
+ _FcPatternVapBuild_bail1: \
89
+ if (!orig) \
90
+ FcPatternDestroy (__p__); \
91
+ _FcPatternVapBuild_bail0: \
92
+ result = (void *)0; \
93
+ \
94
+ _FcPatternVapBuild_return:; \
95
+ }
99
96
 
100
-
101
- #define FcObjectSetVapBuild(__ret__, __first__, __va__) \
102
- { \
103
- FcObjectSet *__os__; \
104
- const char *__ob__; \
105
- \
106
- __ret__ = 0; \
107
- __os__ = FcObjectSetCreate (); \
108
- if (!__os__) \
109
- goto _FcObjectSetVapBuild_bail0; \
110
- __ob__ = __first__; \
111
- while (__ob__) \
112
- { \
113
- if (!FcObjectSetAdd (__os__, __ob__)) \
114
- goto _FcObjectSetVapBuild_bail1; \
115
- __ob__ = va_arg (__va__, const char *); \
116
- } \
117
- __ret__ = __os__; \
118
- \
119
- _FcObjectSetVapBuild_bail1: \
120
- if (!__ret__ && __os__) \
121
- FcObjectSetDestroy (__os__); \
122
- _FcObjectSetVapBuild_bail0: \
123
- ; \
124
- }
97
+ #define FcObjectSetVapBuild(__ret__, __first__, __va__) \
98
+ { \
99
+ FcObjectSet *__os__; \
100
+ const char *__ob__; \
101
+ \
102
+ __ret__ = 0; \
103
+ __os__ = FcObjectSetCreate(); \
104
+ if (!__os__) \
105
+ goto _FcObjectSetVapBuild_bail0; \
106
+ __ob__ = __first__; \
107
+ while (__ob__) { \
108
+ if (!FcObjectSetAdd (__os__, __ob__)) \
109
+ goto _FcObjectSetVapBuild_bail1; \
110
+ __ob__ = va_arg (__va__, const char *); \
111
+ } \
112
+ __ret__ = __os__; \
113
+ \
114
+ _FcObjectSetVapBuild_bail1: \
115
+ if (!__ret__ && __os__) \
116
+ FcObjectSetDestroy (__os__); \
117
+ _FcObjectSetVapBuild_bail0:; \
118
+ }
125
119
 
126
120
  #ifndef FC_ATTRIBUTE_VISIBILITY_HIDDEN
127
- #define FC_ATTRIBUTE_VISIBILITY_HIDDEN __attribute((visibility("hidden")))
121
+ # define FC_ATTRIBUTE_VISIBILITY_HIDDEN __attribute ((visibility ("hidden")))
128
122
  #endif
129
123
 
130
124
  #ifndef FC_ATTRIBUTE_VISIBILITY_EXPORT
131
- #define FC_ATTRIBUTE_VISIBILITY_EXPORT __attribute((visibility("default")))
125
+ # define FC_ATTRIBUTE_VISIBILITY_EXPORT __attribute ((visibility ("default")))
132
126
  #endif
133
127
 
134
128
  #endif /* _FCPRIVATE_H_ */