jassub 1.7.13 → 1.7.14
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.
- package/package.json +4 -2
- package/dist/js/jassub-worker-modern.js +0 -128
- package/dist/js/jassub-worker-modern.wasm +0 -0
- package/dist/js/jassub-worker.js +0 -128
- package/dist/js/jassub-worker.wasm +0 -0
- package/dist/js/jassub-worker.wasm.js +0 -84
- package/dist/js/jassub.js +0 -832
- package/dist/libraries/bin/brotli.js +0 -1
- package/dist/libraries/include/ass/ass.h +0 -812
- package/dist/libraries/include/ass/ass_types.h +0 -292
- package/dist/libraries/include/brotli/decode.h +0 -344
- package/dist/libraries/include/brotli/encode.h +0 -448
- package/dist/libraries/include/brotli/port.h +0 -288
- package/dist/libraries/include/brotli/types.h +0 -83
- package/dist/libraries/include/expat.h +0 -1064
- package/dist/libraries/include/expat_config.h +0 -115
- package/dist/libraries/include/expat_external.h +0 -165
- package/dist/libraries/include/fontconfig/fcfreetype.h +0 -59
- package/dist/libraries/include/fontconfig/fcprivate.h +0 -134
- package/dist/libraries/include/fontconfig/fontconfig.h +0 -1154
- package/dist/libraries/include/freetype2/freetype/config/ftconfig.h +0 -63
- package/dist/libraries/include/freetype2/freetype/config/ftheader.h +0 -824
- package/dist/libraries/include/freetype2/freetype/config/ftmodule.h +0 -20
- package/dist/libraries/include/freetype2/freetype/config/ftoption.h +0 -1011
- package/dist/libraries/include/freetype2/freetype/config/ftstdlib.h +0 -175
- package/dist/libraries/include/freetype2/freetype/config/integer-types.h +0 -245
- package/dist/libraries/include/freetype2/freetype/config/mac-support.h +0 -49
- package/dist/libraries/include/freetype2/freetype/config/public-macros.h +0 -120
- package/dist/libraries/include/freetype2/freetype/freetype.h +0 -4833
- package/dist/libraries/include/freetype2/freetype/ftadvanc.h +0 -188
- package/dist/libraries/include/freetype2/freetype/ftbbox.h +0 -101
- package/dist/libraries/include/freetype2/freetype/ftbdf.h +0 -212
- package/dist/libraries/include/freetype2/freetype/ftbitmap.h +0 -329
- package/dist/libraries/include/freetype2/freetype/ftbzip2.h +0 -102
- package/dist/libraries/include/freetype2/freetype/ftcache.h +0 -1087
- package/dist/libraries/include/freetype2/freetype/ftchapters.h +0 -147
- package/dist/libraries/include/freetype2/freetype/ftcid.h +0 -167
- package/dist/libraries/include/freetype2/freetype/ftcolor.h +0 -1609
- package/dist/libraries/include/freetype2/freetype/ftdriver.h +0 -1193
- package/dist/libraries/include/freetype2/freetype/fterrdef.h +0 -279
- package/dist/libraries/include/freetype2/freetype/fterrors.h +0 -296
- package/dist/libraries/include/freetype2/freetype/ftfntfmt.h +0 -93
- package/dist/libraries/include/freetype2/freetype/ftgasp.h +0 -143
- package/dist/libraries/include/freetype2/freetype/ftglyph.h +0 -664
- package/dist/libraries/include/freetype2/freetype/ftgxval.h +0 -354
- package/dist/libraries/include/freetype2/freetype/ftgzip.h +0 -151
- package/dist/libraries/include/freetype2/freetype/ftimage.h +0 -1276
- package/dist/libraries/include/freetype2/freetype/ftincrem.h +0 -348
- package/dist/libraries/include/freetype2/freetype/ftlcdfil.h +0 -323
- package/dist/libraries/include/freetype2/freetype/ftlist.h +0 -296
- package/dist/libraries/include/freetype2/freetype/ftlogging.h +0 -184
- package/dist/libraries/include/freetype2/freetype/ftlzw.h +0 -100
- package/dist/libraries/include/freetype2/freetype/ftmac.h +0 -289
- package/dist/libraries/include/freetype2/freetype/ftmm.h +0 -752
- package/dist/libraries/include/freetype2/freetype/ftmodapi.h +0 -806
- package/dist/libraries/include/freetype2/freetype/ftmoderr.h +0 -204
- package/dist/libraries/include/freetype2/freetype/ftotval.h +0 -206
- package/dist/libraries/include/freetype2/freetype/ftoutln.h +0 -586
- package/dist/libraries/include/freetype2/freetype/ftparams.h +0 -203
- package/dist/libraries/include/freetype2/freetype/ftpfr.h +0 -179
- package/dist/libraries/include/freetype2/freetype/ftrender.h +0 -244
- package/dist/libraries/include/freetype2/freetype/ftsizes.h +0 -159
- package/dist/libraries/include/freetype2/freetype/ftsnames.h +0 -272
- package/dist/libraries/include/freetype2/freetype/ftstroke.h +0 -773
- package/dist/libraries/include/freetype2/freetype/ftsynth.h +0 -83
- package/dist/libraries/include/freetype2/freetype/ftsystem.h +0 -352
- package/dist/libraries/include/freetype2/freetype/fttrigon.h +0 -350
- package/dist/libraries/include/freetype2/freetype/fttypes.h +0 -615
- package/dist/libraries/include/freetype2/freetype/ftwinfnt.h +0 -276
- package/dist/libraries/include/freetype2/freetype/t1tables.h +0 -773
- package/dist/libraries/include/freetype2/freetype/ttnameid.h +0 -1235
- package/dist/libraries/include/freetype2/freetype/tttables.h +0 -855
- package/dist/libraries/include/freetype2/freetype/tttags.h +0 -123
- package/dist/libraries/include/freetype2/ft2build.h +0 -42
- package/dist/libraries/include/fribidi/fribidi-arabic.h +0 -81
- package/dist/libraries/include/fribidi/fribidi-begindecls.h +0 -3
- package/dist/libraries/include/fribidi/fribidi-bidi-types-list.h +0 -96
- package/dist/libraries/include/fribidi/fribidi-bidi-types.h +0 -405
- package/dist/libraries/include/fribidi/fribidi-bidi.h +0 -142
- package/dist/libraries/include/fribidi/fribidi-brackets.h +0 -89
- package/dist/libraries/include/fribidi/fribidi-char-sets-list.h +0 -54
- package/dist/libraries/include/fribidi/fribidi-char-sets.h +0 -106
- package/dist/libraries/include/fribidi/fribidi-common.h +0 -158
- package/dist/libraries/include/fribidi/fribidi-config.h +0 -23
- package/dist/libraries/include/fribidi/fribidi-deprecated.h +0 -175
- package/dist/libraries/include/fribidi/fribidi-enddecls.h +0 -3
- package/dist/libraries/include/fribidi/fribidi-flags.h +0 -72
- package/dist/libraries/include/fribidi/fribidi-joining-types-list.h +0 -44
- package/dist/libraries/include/fribidi/fribidi-joining-types.h +0 -249
- package/dist/libraries/include/fribidi/fribidi-joining.h +0 -74
- package/dist/libraries/include/fribidi/fribidi-mirroring.h +0 -86
- package/dist/libraries/include/fribidi/fribidi-shape.h +0 -71
- package/dist/libraries/include/fribidi/fribidi-types.h +0 -79
- package/dist/libraries/include/fribidi/fribidi-unicode-version.h +0 -10
- package/dist/libraries/include/fribidi/fribidi-unicode.h +0 -105
- package/dist/libraries/include/fribidi/fribidi.h +0 -129
- package/dist/libraries/include/harfbuzz/hb-aat-layout.h +0 -795
- package/dist/libraries/include/harfbuzz/hb-aat.h +0 -38
- package/dist/libraries/include/harfbuzz/hb-blob.h +0 -160
- package/dist/libraries/include/harfbuzz/hb-buffer.h +0 -799
- package/dist/libraries/include/harfbuzz/hb-common.h +0 -902
- package/dist/libraries/include/harfbuzz/hb-cplusplus.hh +0 -221
- package/dist/libraries/include/harfbuzz/hb-deprecated.h +0 -251
- package/dist/libraries/include/harfbuzz/hb-draw.h +0 -325
- package/dist/libraries/include/harfbuzz/hb-face.h +0 -181
- package/dist/libraries/include/harfbuzz/hb-font.h +0 -1108
- package/dist/libraries/include/harfbuzz/hb-ft.h +0 -145
- package/dist/libraries/include/harfbuzz/hb-map.h +0 -124
- package/dist/libraries/include/harfbuzz/hb-ot-color.h +0 -146
- package/dist/libraries/include/harfbuzz/hb-ot-deprecated.h +0 -141
- package/dist/libraries/include/harfbuzz/hb-ot-font.h +0 -45
- package/dist/libraries/include/harfbuzz/hb-ot-layout.h +0 -503
- package/dist/libraries/include/harfbuzz/hb-ot-math.h +0 -333
- package/dist/libraries/include/harfbuzz/hb-ot-meta.h +0 -72
- package/dist/libraries/include/harfbuzz/hb-ot-metrics.h +0 -129
- package/dist/libraries/include/harfbuzz/hb-ot-name.h +0 -158
- package/dist/libraries/include/harfbuzz/hb-ot-shape.h +0 -53
- package/dist/libraries/include/harfbuzz/hb-ot-var.h +0 -191
- package/dist/libraries/include/harfbuzz/hb-ot.h +0 -49
- package/dist/libraries/include/harfbuzz/hb-set.h +0 -200
- package/dist/libraries/include/harfbuzz/hb-shape-plan.h +0 -122
- package/dist/libraries/include/harfbuzz/hb-shape.h +0 -62
- package/dist/libraries/include/harfbuzz/hb-style.h +0 -81
- package/dist/libraries/include/harfbuzz/hb-subset-repacker.h +0 -81
- package/dist/libraries/include/harfbuzz/hb-subset.h +0 -234
- package/dist/libraries/include/harfbuzz/hb-unicode.h +0 -643
- package/dist/libraries/include/harfbuzz/hb-version.h +0 -95
- package/dist/libraries/include/harfbuzz/hb.h +0 -50
- package/dist/libraries/lib/cmake/expat-2.4.7/expat-config-version.cmake +0 -70
- package/dist/libraries/lib/cmake/expat-2.4.7/expat-config.cmake +0 -99
- package/dist/libraries/lib/cmake/expat-2.4.7/expat-noconfig.cmake +0 -19
- package/dist/libraries/lib/cmake/expat-2.4.7/expat.cmake +0 -99
- package/dist/libraries/lib/libass.a +0 -0
- package/dist/libraries/lib/libass.la +0 -41
- package/dist/libraries/lib/libbrotlicommon.a +0 -0
- package/dist/libraries/lib/libbrotlidec.a +0 -0
- package/dist/libraries/lib/libbrotlienc.a +0 -0
- package/dist/libraries/lib/libexpat.a +0 -0
- package/dist/libraries/lib/libfontconfig.a +0 -0
- package/dist/libraries/lib/libfontconfig.la +0 -41
- package/dist/libraries/lib/libfreetype.a +0 -0
- package/dist/libraries/lib/libfreetype.la +0 -41
- package/dist/libraries/lib/libfribidi.a +0 -0
- package/dist/libraries/lib/libfribidi.la +0 -41
- package/dist/libraries/lib/libharfbuzz-subset.a +0 -0
- package/dist/libraries/lib/libharfbuzz-subset.la +0 -41
- package/dist/libraries/lib/libharfbuzz.a +0 -0
- package/dist/libraries/lib/libharfbuzz.la +0 -41
- package/dist/libraries/lib/pkgconfig/expat.pc +0 -11
- package/dist/libraries/lib/pkgconfig/fontconfig.pc +0 -18
- package/dist/libraries/lib/pkgconfig/freetype2.pc +0 -14
- package/dist/libraries/lib/pkgconfig/fribidi.pc +0 -13
- package/dist/libraries/lib/pkgconfig/harfbuzz-subset.pc +0 -12
- package/dist/libraries/lib/pkgconfig/harfbuzz.pc +0 -13
- package/dist/libraries/lib/pkgconfig/libass.pc +0 -13
- package/dist/libraries/lib/pkgconfig/libbrotlicommon.pc +0 -11
- package/dist/libraries/lib/pkgconfig/libbrotlidec.pc +0 -12
- package/dist/libraries/lib/pkgconfig/libbrotlienc.pc +0 -12
- package/dist/libraries/share/aclocal/freetype2.m4 +0 -194
- package/dist/libraries/share/doc/expat/AUTHORS +0 -10
- package/dist/libraries/share/doc/expat/changelog +0 -1161
- package/dist/license/all +0 -951
- package/dist/license/all.tmp +0 -307
- package/dist/license/brotli +0 -12
- package/dist/license/expat +0 -71
- package/dist/license/fontconfig +0 -46
- package/dist/license/freetype +0 -92
- package/dist/license/fribidi +0 -15
- package/dist/license/harfbuzz +0 -32
- package/dist/license/jassub +0 -0
- package/dist/license/libass +0 -28
|
@@ -1,288 +0,0 @@
|
|
|
1
|
-
/* Copyright 2016 Google Inc. All Rights Reserved.
|
|
2
|
-
|
|
3
|
-
Distributed under MIT license.
|
|
4
|
-
See file LICENSE for detail or copy at https://opensource.org/licenses/MIT
|
|
5
|
-
*/
|
|
6
|
-
|
|
7
|
-
/* Macros for compiler / platform specific API declarations. */
|
|
8
|
-
|
|
9
|
-
#ifndef BROTLI_COMMON_PORT_H_
|
|
10
|
-
#define BROTLI_COMMON_PORT_H_
|
|
11
|
-
|
|
12
|
-
/* The following macros were borrowed from https://github.com/nemequ/hedley
|
|
13
|
-
* with permission of original author - Evan Nemerson <evan@nemerson.com> */
|
|
14
|
-
|
|
15
|
-
/* >>> >>> >>> hedley macros */
|
|
16
|
-
|
|
17
|
-
#define BROTLI_MAKE_VERSION(major, minor, revision) \
|
|
18
|
-
(((major) * 1000000) + ((minor) * 1000) + (revision))
|
|
19
|
-
|
|
20
|
-
#if defined(__GNUC__) && defined(__GNUC_PATCHLEVEL__)
|
|
21
|
-
#define BROTLI_GNUC_VERSION \
|
|
22
|
-
BROTLI_MAKE_VERSION(__GNUC__, __GNUC_MINOR__, __GNUC_PATCHLEVEL__)
|
|
23
|
-
#elif defined(__GNUC__)
|
|
24
|
-
#define BROTLI_GNUC_VERSION BROTLI_MAKE_VERSION(__GNUC__, __GNUC_MINOR__, 0)
|
|
25
|
-
#endif
|
|
26
|
-
|
|
27
|
-
#if defined(BROTLI_GNUC_VERSION)
|
|
28
|
-
#define BROTLI_GNUC_VERSION_CHECK(major, minor, patch) \
|
|
29
|
-
(BROTLI_GNUC_VERSION >= BROTLI_MAKE_VERSION(major, minor, patch))
|
|
30
|
-
#else
|
|
31
|
-
#define BROTLI_GNUC_VERSION_CHECK(major, minor, patch) (0)
|
|
32
|
-
#endif
|
|
33
|
-
|
|
34
|
-
#if defined(_MSC_FULL_VER) && (_MSC_FULL_VER >= 140000000)
|
|
35
|
-
#define BROTLI_MSVC_VERSION \
|
|
36
|
-
BROTLI_MAKE_VERSION((_MSC_FULL_VER / 10000000), \
|
|
37
|
-
(_MSC_FULL_VER % 10000000) / 100000, \
|
|
38
|
-
(_MSC_FULL_VER % 100000) / 100)
|
|
39
|
-
#elif defined(_MSC_FULL_VER)
|
|
40
|
-
#define BROTLI_MSVC_VERSION \
|
|
41
|
-
BROTLI_MAKE_VERSION((_MSC_FULL_VER / 1000000), \
|
|
42
|
-
(_MSC_FULL_VER % 1000000) / 10000, \
|
|
43
|
-
(_MSC_FULL_VER % 10000) / 10)
|
|
44
|
-
#elif defined(_MSC_VER)
|
|
45
|
-
#define BROTLI_MSVC_VERSION \
|
|
46
|
-
BROTLI_MAKE_VERSION(_MSC_VER / 100, _MSC_VER % 100, 0)
|
|
47
|
-
#endif
|
|
48
|
-
|
|
49
|
-
#if !defined(_MSC_VER)
|
|
50
|
-
#define BROTLI_MSVC_VERSION_CHECK(major, minor, patch) (0)
|
|
51
|
-
#elif defined(_MSC_VER) && (_MSC_VER >= 1400)
|
|
52
|
-
#define BROTLI_MSVC_VERSION_CHECK(major, minor, patch) \
|
|
53
|
-
(_MSC_FULL_VER >= ((major * 10000000) + (minor * 100000) + (patch)))
|
|
54
|
-
#elif defined(_MSC_VER) && (_MSC_VER >= 1200)
|
|
55
|
-
#define BROTLI_MSVC_VERSION_CHECK(major, minor, patch) \
|
|
56
|
-
(_MSC_FULL_VER >= ((major * 1000000) + (minor * 10000) + (patch)))
|
|
57
|
-
#else
|
|
58
|
-
#define BROTLI_MSVC_VERSION_CHECK(major, minor, patch) \
|
|
59
|
-
(_MSC_VER >= ((major * 100) + (minor)))
|
|
60
|
-
#endif
|
|
61
|
-
|
|
62
|
-
#if defined(__INTEL_COMPILER) && defined(__INTEL_COMPILER_UPDATE)
|
|
63
|
-
#define BROTLI_INTEL_VERSION \
|
|
64
|
-
BROTLI_MAKE_VERSION(__INTEL_COMPILER / 100, \
|
|
65
|
-
__INTEL_COMPILER % 100, \
|
|
66
|
-
__INTEL_COMPILER_UPDATE)
|
|
67
|
-
#elif defined(__INTEL_COMPILER)
|
|
68
|
-
#define BROTLI_INTEL_VERSION \
|
|
69
|
-
BROTLI_MAKE_VERSION(__INTEL_COMPILER / 100, __INTEL_COMPILER % 100, 0)
|
|
70
|
-
#endif
|
|
71
|
-
|
|
72
|
-
#if defined(BROTLI_INTEL_VERSION)
|
|
73
|
-
#define BROTLI_INTEL_VERSION_CHECK(major, minor, patch) \
|
|
74
|
-
(BROTLI_INTEL_VERSION >= BROTLI_MAKE_VERSION(major, minor, patch))
|
|
75
|
-
#else
|
|
76
|
-
#define BROTLI_INTEL_VERSION_CHECK(major, minor, patch) (0)
|
|
77
|
-
#endif
|
|
78
|
-
|
|
79
|
-
#if defined(__PGI) && \
|
|
80
|
-
defined(__PGIC__) && defined(__PGIC_MINOR__) && defined(__PGIC_PATCHLEVEL__)
|
|
81
|
-
#define BROTLI_PGI_VERSION \
|
|
82
|
-
BROTLI_MAKE_VERSION(__PGIC__, __PGIC_MINOR__, __PGIC_PATCHLEVEL__)
|
|
83
|
-
#endif
|
|
84
|
-
|
|
85
|
-
#if defined(BROTLI_PGI_VERSION)
|
|
86
|
-
#define BROTLI_PGI_VERSION_CHECK(major, minor, patch) \
|
|
87
|
-
(BROTLI_PGI_VERSION >= BROTLI_MAKE_VERSION(major, minor, patch))
|
|
88
|
-
#else
|
|
89
|
-
#define BROTLI_PGI_VERSION_CHECK(major, minor, patch) (0)
|
|
90
|
-
#endif
|
|
91
|
-
|
|
92
|
-
#if defined(__SUNPRO_C) && (__SUNPRO_C > 0x1000)
|
|
93
|
-
#define BROTLI_SUNPRO_VERSION \
|
|
94
|
-
BROTLI_MAKE_VERSION( \
|
|
95
|
-
(((__SUNPRO_C >> 16) & 0xf) * 10) + ((__SUNPRO_C >> 12) & 0xf), \
|
|
96
|
-
(((__SUNPRO_C >> 8) & 0xf) * 10) + ((__SUNPRO_C >> 4) & 0xf), \
|
|
97
|
-
(__SUNPRO_C & 0xf) * 10)
|
|
98
|
-
#elif defined(__SUNPRO_C)
|
|
99
|
-
#define BROTLI_SUNPRO_VERSION \
|
|
100
|
-
BROTLI_MAKE_VERSION((__SUNPRO_C >> 8) & 0xf, \
|
|
101
|
-
(__SUNPRO_C >> 4) & 0xf, \
|
|
102
|
-
(__SUNPRO_C) & 0xf)
|
|
103
|
-
#elif defined(__SUNPRO_CC) && (__SUNPRO_CC > 0x1000)
|
|
104
|
-
#define BROTLI_SUNPRO_VERSION \
|
|
105
|
-
BROTLI_MAKE_VERSION( \
|
|
106
|
-
(((__SUNPRO_CC >> 16) & 0xf) * 10) + ((__SUNPRO_CC >> 12) & 0xf), \
|
|
107
|
-
(((__SUNPRO_CC >> 8) & 0xf) * 10) + ((__SUNPRO_CC >> 4) & 0xf), \
|
|
108
|
-
(__SUNPRO_CC & 0xf) * 10)
|
|
109
|
-
#elif defined(__SUNPRO_CC)
|
|
110
|
-
#define BROTLI_SUNPRO_VERSION \
|
|
111
|
-
BROTLI_MAKE_VERSION((__SUNPRO_CC >> 8) & 0xf, \
|
|
112
|
-
(__SUNPRO_CC >> 4) & 0xf, \
|
|
113
|
-
(__SUNPRO_CC) & 0xf)
|
|
114
|
-
#endif
|
|
115
|
-
|
|
116
|
-
#if defined(BROTLI_SUNPRO_VERSION)
|
|
117
|
-
#define BROTLI_SUNPRO_VERSION_CHECK(major, minor, patch) \
|
|
118
|
-
(BROTLI_SUNPRO_VERSION >= BROTLI_MAKE_VERSION(major, minor, patch))
|
|
119
|
-
#else
|
|
120
|
-
#define BROTLI_SUNPRO_VERSION_CHECK(major, minor, patch) (0)
|
|
121
|
-
#endif
|
|
122
|
-
|
|
123
|
-
#if defined(__CC_ARM) && defined(__ARMCOMPILER_VERSION)
|
|
124
|
-
#define BROTLI_ARM_VERSION \
|
|
125
|
-
BROTLI_MAKE_VERSION((__ARMCOMPILER_VERSION / 1000000), \
|
|
126
|
-
(__ARMCOMPILER_VERSION % 1000000) / 10000, \
|
|
127
|
-
(__ARMCOMPILER_VERSION % 10000) / 100)
|
|
128
|
-
#elif defined(__CC_ARM) && defined(__ARMCC_VERSION)
|
|
129
|
-
#define BROTLI_ARM_VERSION \
|
|
130
|
-
BROTLI_MAKE_VERSION((__ARMCC_VERSION / 1000000), \
|
|
131
|
-
(__ARMCC_VERSION % 1000000) / 10000, \
|
|
132
|
-
(__ARMCC_VERSION % 10000) / 100)
|
|
133
|
-
#endif
|
|
134
|
-
|
|
135
|
-
#if defined(BROTLI_ARM_VERSION)
|
|
136
|
-
#define BROTLI_ARM_VERSION_CHECK(major, minor, patch) \
|
|
137
|
-
(BROTLI_ARM_VERSION >= BROTLI_MAKE_VERSION(major, minor, patch))
|
|
138
|
-
#else
|
|
139
|
-
#define BROTLI_ARM_VERSION_CHECK(major, minor, patch) (0)
|
|
140
|
-
#endif
|
|
141
|
-
|
|
142
|
-
#if defined(__ibmxl__)
|
|
143
|
-
#define BROTLI_IBM_VERSION \
|
|
144
|
-
BROTLI_MAKE_VERSION(__ibmxl_version__, \
|
|
145
|
-
__ibmxl_release__, \
|
|
146
|
-
__ibmxl_modification__)
|
|
147
|
-
#elif defined(__xlC__) && defined(__xlC_ver__)
|
|
148
|
-
#define BROTLI_IBM_VERSION \
|
|
149
|
-
BROTLI_MAKE_VERSION(__xlC__ >> 8, __xlC__ & 0xff, (__xlC_ver__ >> 8) & 0xff)
|
|
150
|
-
#elif defined(__xlC__)
|
|
151
|
-
#define BROTLI_IBM_VERSION BROTLI_MAKE_VERSION(__xlC__ >> 8, __xlC__ & 0xff, 0)
|
|
152
|
-
#endif
|
|
153
|
-
|
|
154
|
-
#if defined(BROTLI_IBM_VERSION)
|
|
155
|
-
#define BROTLI_IBM_VERSION_CHECK(major, minor, patch) \
|
|
156
|
-
(BROTLI_IBM_VERSION >= BROTLI_MAKE_VERSION(major, minor, patch))
|
|
157
|
-
#else
|
|
158
|
-
#define BROTLI_IBM_VERSION_CHECK(major, minor, patch) (0)
|
|
159
|
-
#endif
|
|
160
|
-
|
|
161
|
-
#if defined(__TI_COMPILER_VERSION__)
|
|
162
|
-
#define BROTLI_TI_VERSION \
|
|
163
|
-
BROTLI_MAKE_VERSION((__TI_COMPILER_VERSION__ / 1000000), \
|
|
164
|
-
(__TI_COMPILER_VERSION__ % 1000000) / 1000, \
|
|
165
|
-
(__TI_COMPILER_VERSION__ % 1000))
|
|
166
|
-
#endif
|
|
167
|
-
|
|
168
|
-
#if defined(BROTLI_TI_VERSION)
|
|
169
|
-
#define BROTLI_TI_VERSION_CHECK(major, minor, patch) \
|
|
170
|
-
(BROTLI_TI_VERSION >= BROTLI_MAKE_VERSION(major, minor, patch))
|
|
171
|
-
#else
|
|
172
|
-
#define BROTLI_TI_VERSION_CHECK(major, minor, patch) (0)
|
|
173
|
-
#endif
|
|
174
|
-
|
|
175
|
-
#if defined(__IAR_SYSTEMS_ICC__)
|
|
176
|
-
#if __VER__ > 1000
|
|
177
|
-
#define BROTLI_IAR_VERSION \
|
|
178
|
-
BROTLI_MAKE_VERSION((__VER__ / 1000000), \
|
|
179
|
-
(__VER__ / 1000) % 1000, \
|
|
180
|
-
(__VER__ % 1000))
|
|
181
|
-
#else
|
|
182
|
-
#define BROTLI_IAR_VERSION BROTLI_MAKE_VERSION(VER / 100, __VER__ % 100, 0)
|
|
183
|
-
#endif
|
|
184
|
-
#endif
|
|
185
|
-
|
|
186
|
-
#if defined(BROTLI_IAR_VERSION)
|
|
187
|
-
#define BROTLI_IAR_VERSION_CHECK(major, minor, patch) \
|
|
188
|
-
(BROTLI_IAR_VERSION >= BROTLI_MAKE_VERSION(major, minor, patch))
|
|
189
|
-
#else
|
|
190
|
-
#define BROTLI_IAR_VERSION_CHECK(major, minor, patch) (0)
|
|
191
|
-
#endif
|
|
192
|
-
|
|
193
|
-
#if defined(__TINYC__)
|
|
194
|
-
#define BROTLI_TINYC_VERSION \
|
|
195
|
-
BROTLI_MAKE_VERSION(__TINYC__ / 1000, (__TINYC__ / 100) % 10, __TINYC__ % 100)
|
|
196
|
-
#endif
|
|
197
|
-
|
|
198
|
-
#if defined(BROTLI_TINYC_VERSION)
|
|
199
|
-
#define BROTLI_TINYC_VERSION_CHECK(major, minor, patch) \
|
|
200
|
-
(BROTLI_TINYC_VERSION >= BROTLI_MAKE_VERSION(major, minor, patch))
|
|
201
|
-
#else
|
|
202
|
-
#define BROTLI_TINYC_VERSION_CHECK(major, minor, patch) (0)
|
|
203
|
-
#endif
|
|
204
|
-
|
|
205
|
-
#if defined(__has_attribute)
|
|
206
|
-
#define BROTLI_GNUC_HAS_ATTRIBUTE(attribute, major, minor, patch) \
|
|
207
|
-
__has_attribute(attribute)
|
|
208
|
-
#else
|
|
209
|
-
#define BROTLI_GNUC_HAS_ATTRIBUTE(attribute, major, minor, patch) \
|
|
210
|
-
BROTLI_GNUC_VERSION_CHECK(major, minor, patch)
|
|
211
|
-
#endif
|
|
212
|
-
|
|
213
|
-
#if defined(__has_builtin)
|
|
214
|
-
#define BROTLI_GNUC_HAS_BUILTIN(builtin, major, minor, patch) \
|
|
215
|
-
__has_builtin(builtin)
|
|
216
|
-
#else
|
|
217
|
-
#define BROTLI_GNUC_HAS_BUILTIN(builtin, major, minor, patch) \
|
|
218
|
-
BROTLI_GNUC_VERSION_CHECK(major, minor, patch)
|
|
219
|
-
#endif
|
|
220
|
-
|
|
221
|
-
#if defined(__has_feature)
|
|
222
|
-
#define BROTLI_HAS_FEATURE(feature) __has_feature(feature)
|
|
223
|
-
#else
|
|
224
|
-
#define BROTLI_HAS_FEATURE(feature) (0)
|
|
225
|
-
#endif
|
|
226
|
-
|
|
227
|
-
#if defined(ADDRESS_SANITIZER) || BROTLI_HAS_FEATURE(address_sanitizer) || \
|
|
228
|
-
defined(THREAD_SANITIZER) || BROTLI_HAS_FEATURE(thread_sanitizer) || \
|
|
229
|
-
defined(MEMORY_SANITIZER) || BROTLI_HAS_FEATURE(memory_sanitizer)
|
|
230
|
-
#define BROTLI_SANITIZED 1
|
|
231
|
-
#else
|
|
232
|
-
#define BROTLI_SANITIZED 0
|
|
233
|
-
#endif
|
|
234
|
-
|
|
235
|
-
#if defined(_WIN32) || defined(__CYGWIN__)
|
|
236
|
-
#define BROTLI_PUBLIC
|
|
237
|
-
#elif BROTLI_GNUC_VERSION_CHECK(3, 3, 0) || \
|
|
238
|
-
BROTLI_TI_VERSION_CHECK(8, 0, 0) || \
|
|
239
|
-
BROTLI_INTEL_VERSION_CHECK(16, 0, 0) || \
|
|
240
|
-
BROTLI_ARM_VERSION_CHECK(4, 1, 0) || \
|
|
241
|
-
BROTLI_IBM_VERSION_CHECK(13, 1, 0) || \
|
|
242
|
-
BROTLI_SUNPRO_VERSION_CHECK(5, 11, 0) || \
|
|
243
|
-
(BROTLI_TI_VERSION_CHECK(7, 3, 0) && \
|
|
244
|
-
defined(__TI_GNU_ATTRIBUTE_SUPPORT__) && defined(__TI_EABI__))
|
|
245
|
-
#define BROTLI_PUBLIC __attribute__ ((visibility ("default")))
|
|
246
|
-
#else
|
|
247
|
-
#define BROTLI_PUBLIC
|
|
248
|
-
#endif
|
|
249
|
-
|
|
250
|
-
#if defined(__STDC_VERSION__) && (__STDC_VERSION__ >= 199901L) && \
|
|
251
|
-
!defined(__STDC_NO_VLA__) && !defined(__cplusplus) && \
|
|
252
|
-
!defined(__PGI) && !defined(__PGIC__) && !defined(__TINYC__)
|
|
253
|
-
#define BROTLI_ARRAY_PARAM(name) (name)
|
|
254
|
-
#else
|
|
255
|
-
#define BROTLI_ARRAY_PARAM(name)
|
|
256
|
-
#endif
|
|
257
|
-
|
|
258
|
-
/* <<< <<< <<< end of hedley macros. */
|
|
259
|
-
|
|
260
|
-
#if defined(BROTLI_SHARED_COMPILATION)
|
|
261
|
-
#if defined(_WIN32)
|
|
262
|
-
#if defined(BROTLICOMMON_SHARED_COMPILATION)
|
|
263
|
-
#define BROTLI_COMMON_API __declspec(dllexport)
|
|
264
|
-
#else
|
|
265
|
-
#define BROTLI_COMMON_API __declspec(dllimport)
|
|
266
|
-
#endif /* BROTLICOMMON_SHARED_COMPILATION */
|
|
267
|
-
#if defined(BROTLIDEC_SHARED_COMPILATION)
|
|
268
|
-
#define BROTLI_DEC_API __declspec(dllexport)
|
|
269
|
-
#else
|
|
270
|
-
#define BROTLI_DEC_API __declspec(dllimport)
|
|
271
|
-
#endif /* BROTLIDEC_SHARED_COMPILATION */
|
|
272
|
-
#if defined(BROTLIENC_SHARED_COMPILATION)
|
|
273
|
-
#define BROTLI_ENC_API __declspec(dllexport)
|
|
274
|
-
#else
|
|
275
|
-
#define BROTLI_ENC_API __declspec(dllimport)
|
|
276
|
-
#endif /* BROTLIENC_SHARED_COMPILATION */
|
|
277
|
-
#else /* _WIN32 */
|
|
278
|
-
#define BROTLI_COMMON_API BROTLI_PUBLIC
|
|
279
|
-
#define BROTLI_DEC_API BROTLI_PUBLIC
|
|
280
|
-
#define BROTLI_ENC_API BROTLI_PUBLIC
|
|
281
|
-
#endif /* _WIN32 */
|
|
282
|
-
#else /* BROTLI_SHARED_COMPILATION */
|
|
283
|
-
#define BROTLI_COMMON_API
|
|
284
|
-
#define BROTLI_DEC_API
|
|
285
|
-
#define BROTLI_ENC_API
|
|
286
|
-
#endif
|
|
287
|
-
|
|
288
|
-
#endif /* BROTLI_COMMON_PORT_H_ */
|
|
@@ -1,83 +0,0 @@
|
|
|
1
|
-
/* Copyright 2013 Google Inc. All Rights Reserved.
|
|
2
|
-
|
|
3
|
-
Distributed under MIT license.
|
|
4
|
-
See file LICENSE for detail or copy at https://opensource.org/licenses/MIT
|
|
5
|
-
*/
|
|
6
|
-
|
|
7
|
-
/**
|
|
8
|
-
* @file
|
|
9
|
-
* Common types used in decoder and encoder API.
|
|
10
|
-
*/
|
|
11
|
-
|
|
12
|
-
#ifndef BROTLI_COMMON_TYPES_H_
|
|
13
|
-
#define BROTLI_COMMON_TYPES_H_
|
|
14
|
-
|
|
15
|
-
#include <stddef.h> /* for size_t */
|
|
16
|
-
|
|
17
|
-
#if defined(_MSC_VER) && (_MSC_VER < 1600)
|
|
18
|
-
typedef __int8 int8_t;
|
|
19
|
-
typedef unsigned __int8 uint8_t;
|
|
20
|
-
typedef __int16 int16_t;
|
|
21
|
-
typedef unsigned __int16 uint16_t;
|
|
22
|
-
typedef __int32 int32_t;
|
|
23
|
-
typedef unsigned __int32 uint32_t;
|
|
24
|
-
typedef unsigned __int64 uint64_t;
|
|
25
|
-
typedef __int64 int64_t;
|
|
26
|
-
#else
|
|
27
|
-
#include <stdint.h>
|
|
28
|
-
#endif /* defined(_MSC_VER) && (_MSC_VER < 1600) */
|
|
29
|
-
|
|
30
|
-
/**
|
|
31
|
-
* A portable @c bool replacement.
|
|
32
|
-
*
|
|
33
|
-
* ::BROTLI_BOOL is a "documentation" type: actually it is @c int, but in API it
|
|
34
|
-
* denotes a type, whose only values are ::BROTLI_TRUE and ::BROTLI_FALSE.
|
|
35
|
-
*
|
|
36
|
-
* ::BROTLI_BOOL values passed to Brotli should either be ::BROTLI_TRUE or
|
|
37
|
-
* ::BROTLI_FALSE, or be a result of ::TO_BROTLI_BOOL macros.
|
|
38
|
-
*
|
|
39
|
-
* ::BROTLI_BOOL values returned by Brotli should not be tested for equality
|
|
40
|
-
* with @c true, @c false, ::BROTLI_TRUE, ::BROTLI_FALSE, but rather should be
|
|
41
|
-
* evaluated, for example: @code{.cpp}
|
|
42
|
-
* if (SomeBrotliFunction(encoder, BROTLI_TRUE) &&
|
|
43
|
-
* !OtherBrotliFunction(decoder, BROTLI_FALSE)) {
|
|
44
|
-
* bool x = !!YetAnotherBrotliFunction(encoder, TO_BROLTI_BOOL(2 * 2 == 4));
|
|
45
|
-
* DoSomething(x);
|
|
46
|
-
* }
|
|
47
|
-
* @endcode
|
|
48
|
-
*/
|
|
49
|
-
#define BROTLI_BOOL int
|
|
50
|
-
/** Portable @c true replacement. */
|
|
51
|
-
#define BROTLI_TRUE 1
|
|
52
|
-
/** Portable @c false replacement. */
|
|
53
|
-
#define BROTLI_FALSE 0
|
|
54
|
-
/** @c bool to ::BROTLI_BOOL conversion macros. */
|
|
55
|
-
#define TO_BROTLI_BOOL(X) (!!(X) ? BROTLI_TRUE : BROTLI_FALSE)
|
|
56
|
-
|
|
57
|
-
#define BROTLI_MAKE_UINT64_T(high, low) ((((uint64_t)(high)) << 32) | low)
|
|
58
|
-
|
|
59
|
-
#define BROTLI_UINT32_MAX (~((uint32_t)0))
|
|
60
|
-
#define BROTLI_SIZE_MAX (~((size_t)0))
|
|
61
|
-
|
|
62
|
-
/**
|
|
63
|
-
* Allocating function pointer type.
|
|
64
|
-
*
|
|
65
|
-
* @param opaque custom memory manager handle provided by client
|
|
66
|
-
* @param size requested memory region size; can not be @c 0
|
|
67
|
-
* @returns @c 0 in the case of failure
|
|
68
|
-
* @returns a valid pointer to a memory region of at least @p size bytes
|
|
69
|
-
* long otherwise
|
|
70
|
-
*/
|
|
71
|
-
typedef void* (*brotli_alloc_func)(void* opaque, size_t size);
|
|
72
|
-
|
|
73
|
-
/**
|
|
74
|
-
* Deallocating function pointer type.
|
|
75
|
-
*
|
|
76
|
-
* This function @b SHOULD do nothing if @p address is @c 0.
|
|
77
|
-
*
|
|
78
|
-
* @param opaque custom memory manager handle provided by client
|
|
79
|
-
* @param address memory region pointer returned by ::brotli_alloc_func, or @c 0
|
|
80
|
-
*/
|
|
81
|
-
typedef void (*brotli_free_func)(void* opaque, void* address);
|
|
82
|
-
|
|
83
|
-
#endif /* BROTLI_COMMON_TYPES_H_ */
|