@swf2es/native 0.0.0-stage → 0.1.0

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 (105) hide show
  1. package/LICENSE +202 -0
  2. package/LICENSE.third-party +313 -0
  3. package/README.md +489 -2
  4. package/dist/atf/binary.d.ts +2 -0
  5. package/dist/atf/binary.d.ts.map +1 -0
  6. package/dist/atf/binary.js +4 -0
  7. package/dist/atf/binary.js.map +1 -0
  8. package/dist/atf/index.d.ts +27 -0
  9. package/dist/atf/index.d.ts.map +1 -0
  10. package/dist/atf/index.js +158 -0
  11. package/dist/atf/index.js.map +1 -0
  12. package/dist/atf/jxr.d.ts +22 -0
  13. package/dist/atf/jxr.d.ts.map +1 -0
  14. package/dist/atf/jxr.js +60 -0
  15. package/dist/atf/jxr.js.map +1 -0
  16. package/dist/atf/parse.d.ts +65 -0
  17. package/dist/atf/parse.d.ts.map +1 -0
  18. package/dist/atf/parse.js +204 -0
  19. package/dist/atf/parse.js.map +1 -0
  20. package/dist/audio/binary.d.ts +2 -0
  21. package/dist/audio/binary.d.ts.map +1 -0
  22. package/dist/audio/binary.js +4 -0
  23. package/dist/audio/binary.js.map +1 -0
  24. package/dist/audio/index.d.ts +21 -0
  25. package/dist/audio/index.d.ts.map +1 -0
  26. package/dist/audio/index.js +73 -0
  27. package/dist/audio/index.js.map +1 -0
  28. package/dist/base64.d.ts +3 -0
  29. package/dist/base64.d.ts.map +1 -0
  30. package/dist/base64.js +10 -0
  31. package/dist/base64.js.map +1 -0
  32. package/dist/compress/binary.d.ts +2 -0
  33. package/dist/compress/binary.d.ts.map +1 -0
  34. package/dist/compress/binary.js +4 -0
  35. package/dist/compress/binary.js.map +1 -0
  36. package/dist/compress/index.d.ts +59 -0
  37. package/dist/compress/index.d.ts.map +1 -0
  38. package/dist/compress/index.js +146 -0
  39. package/dist/compress/index.js.map +1 -0
  40. package/dist/instance.d.ts +25 -0
  41. package/dist/instance.d.ts.map +1 -0
  42. package/dist/instance.js +50 -0
  43. package/dist/instance.js.map +1 -0
  44. package/dist/mp3/binary.d.ts +2 -0
  45. package/dist/mp3/binary.d.ts.map +1 -0
  46. package/dist/mp3/binary.js +4 -0
  47. package/dist/mp3/binary.js.map +1 -0
  48. package/dist/mp3/index.d.ts +20 -0
  49. package/dist/mp3/index.d.ts.map +1 -0
  50. package/dist/mp3/index.js +49 -0
  51. package/dist/mp3/index.js.map +1 -0
  52. package/dist/render/binary.d.ts +2 -0
  53. package/dist/render/binary.d.ts.map +1 -0
  54. package/dist/render/binary.js +4 -0
  55. package/dist/render/binary.js.map +1 -0
  56. package/dist/render/bitmap-kernel.d.ts +118 -0
  57. package/dist/render/bitmap-kernel.d.ts.map +1 -0
  58. package/dist/render/bitmap-kernel.js +592 -0
  59. package/dist/render/bitmap-kernel.js.map +1 -0
  60. package/dist/render/draw-kernel.d.ts +79 -0
  61. package/dist/render/draw-kernel.d.ts.map +1 -0
  62. package/dist/render/draw-kernel.js +205 -0
  63. package/dist/render/draw-kernel.js.map +1 -0
  64. package/dist/render/dxt-encoder.d.ts +19 -0
  65. package/dist/render/dxt-encoder.d.ts.map +1 -0
  66. package/dist/render/dxt-encoder.js +95 -0
  67. package/dist/render/dxt-encoder.js.map +1 -0
  68. package/dist/render/index.d.ts +6 -0
  69. package/dist/render/index.d.ts.map +1 -0
  70. package/dist/render/index.js +11 -0
  71. package/dist/render/index.js.map +1 -0
  72. package/dist/render/lines.d.ts +55 -0
  73. package/dist/render/lines.d.ts.map +1 -0
  74. package/dist/render/lines.js +123 -0
  75. package/dist/render/lines.js.map +1 -0
  76. package/dist/render/module.d.ts +11 -0
  77. package/dist/render/module.d.ts.map +1 -0
  78. package/dist/render/module.js +27 -0
  79. package/dist/render/module.js.map +1 -0
  80. package/dist/render/pixel-ops.d.ts +77 -0
  81. package/dist/render/pixel-ops.d.ts.map +1 -0
  82. package/dist/render/pixel-ops.js +236 -0
  83. package/dist/render/pixel-ops.js.map +1 -0
  84. package/dist/render/tessellator.d.ts +90 -0
  85. package/dist/render/tessellator.d.ts.map +1 -0
  86. package/dist/render/tessellator.js +251 -0
  87. package/dist/render/tessellator.js.map +1 -0
  88. package/package.json +53 -3
  89. package/src/atf/index.ts +212 -0
  90. package/src/atf/jxr.ts +83 -0
  91. package/src/atf/parse.ts +263 -0
  92. package/src/audio/index.ts +93 -0
  93. package/src/base64.ts +10 -0
  94. package/src/compress/index.ts +225 -0
  95. package/src/instance.ts +53 -0
  96. package/src/mp3/index.ts +71 -0
  97. package/src/render/bitmap-kernel.ts +856 -0
  98. package/src/render/draw-kernel.ts +268 -0
  99. package/src/render/dxt-encoder.ts +121 -0
  100. package/src/render/index.ts +37 -0
  101. package/src/render/lines.ts +161 -0
  102. package/src/render/module.ts +30 -0
  103. package/src/render/pixel-ops.ts +356 -0
  104. package/src/render/tessellator.ts +367 -0
  105. package/src/webassembly.d.ts +22 -0
package/LICENSE ADDED
@@ -0,0 +1,202 @@
1
+ Apache License
2
+ Version 2.0, January 2004
3
+ http://www.apache.org/licenses/
4
+
5
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
6
+
7
+ 1. Definitions.
8
+
9
+ "License" shall mean the terms and conditions for use, reproduction,
10
+ and distribution as defined by Sections 1 through 9 of this document.
11
+
12
+ "Licensor" shall mean the copyright owner or entity authorized by
13
+ the copyright owner that is granting the License.
14
+
15
+ "Legal Entity" shall mean the union of the acting entity and all
16
+ other entities that control, are controlled by, or are under common
17
+ control with that entity. For the purposes of this definition,
18
+ "control" means (i) the power, direct or indirect, to cause the
19
+ direction or management of such entity, whether by contract or
20
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
21
+ outstanding shares, or (iii) beneficial ownership of such entity.
22
+
23
+ "You" (or "Your") shall mean an individual or Legal Entity
24
+ exercising permissions granted by this License.
25
+
26
+ "Source" form shall mean the preferred form for making modifications,
27
+ including but not limited to software source code, documentation
28
+ source, and configuration files.
29
+
30
+ "Object" form shall mean any form resulting from mechanical
31
+ transformation or translation of a Source form, including but
32
+ not limited to compiled object code, generated documentation,
33
+ and conversions to other media types.
34
+
35
+ "Work" shall mean the work of authorship, whether in Source or
36
+ Object form, made available under the License, as indicated by a
37
+ copyright notice that is included in or attached to the work
38
+ (an example is provided in the Appendix below).
39
+
40
+ "Derivative Works" shall mean any work, whether in Source or Object
41
+ form, that is based on (or derived from) the Work and for which the
42
+ editorial revisions, annotations, elaborations, or other modifications
43
+ represent, as a whole, an original work of authorship. For the purposes
44
+ of this License, Derivative Works shall not include works that remain
45
+ separable from, or merely link (or bind by name) to the interfaces of,
46
+ the Work and Derivative Works thereof.
47
+
48
+ "Contribution" shall mean any work of authorship, including
49
+ the original version of the Work and any modifications or additions
50
+ to that Work or Derivative Works thereof, that is intentionally
51
+ submitted to Licensor for inclusion in the Work by the copyright owner
52
+ or by an individual or Legal Entity authorized to submit on behalf of
53
+ the copyright owner. For the purposes of this definition, "submitted"
54
+ means any form of electronic, verbal, or written communication sent
55
+ to the Licensor or its representatives, including but not limited to
56
+ communication on electronic mailing lists, source code control systems,
57
+ and issue tracking systems that are managed by, or on behalf of, the
58
+ Licensor for the purpose of discussing and improving the Work, but
59
+ excluding communication that is conspicuously marked or otherwise
60
+ designated in writing by the copyright owner as "Not a Contribution."
61
+
62
+ "Contributor" shall mean Licensor and any individual or Legal Entity
63
+ on behalf of whom a Contribution has been received by Licensor and
64
+ subsequently incorporated within the Work.
65
+
66
+ 2. Grant of Copyright License. Subject to the terms and conditions of
67
+ this License, each Contributor hereby grants to You a perpetual,
68
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
69
+ copyright license to reproduce, prepare Derivative Works of,
70
+ publicly display, publicly perform, sublicense, and distribute the
71
+ Work and such Derivative Works in Source or Object form.
72
+
73
+ 3. Grant of Patent License. Subject to the terms and conditions of
74
+ this License, each Contributor hereby grants to You a perpetual,
75
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
76
+ (except as stated in this section) patent license to make, have made,
77
+ use, offer to sell, sell, import, and otherwise transfer the Work,
78
+ where such license applies only to those patent claims licensable
79
+ by such Contributor that are necessarily infringed by their
80
+ Contribution(s) alone or by combination of their Contribution(s)
81
+ with the Work to which such Contribution(s) was submitted. If You
82
+ institute patent litigation against any entity (including a
83
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
84
+ or a Contribution incorporated within the Work constitutes direct
85
+ or contributory patent infringement, then any patent licenses
86
+ granted to You under this License for that Work shall terminate
87
+ as of the date such litigation is filed.
88
+
89
+ 4. Redistribution. You may reproduce and distribute copies of the
90
+ Work or Derivative Works thereof in any medium, with or without
91
+ modifications, and in Source or Object form, provided that You
92
+ meet the following conditions:
93
+
94
+ (a) You must give any other recipients of the Work or
95
+ Derivative Works a copy of this License; and
96
+
97
+ (b) You must cause any modified files to carry prominent notices
98
+ stating that You changed the files; and
99
+
100
+ (c) You must retain, in the Source form of any Derivative Works
101
+ that You distribute, all copyright, patent, trademark, and
102
+ attribution notices from the Source form of the Work,
103
+ excluding those notices that do not pertain to any part of
104
+ the Derivative Works; and
105
+
106
+ (d) If the Work includes a "NOTICE" text file as part of its
107
+ distribution, then any Derivative Works that You distribute must
108
+ include a readable copy of the attribution notices contained
109
+ within such NOTICE file, excluding those notices that do not
110
+ pertain to any part of the Derivative Works, in at least one
111
+ of the following places: within a NOTICE text file distributed
112
+ as part of the Derivative Works; within the Source form or
113
+ documentation, if provided along with the Derivative Works; or,
114
+ within a display generated by the Derivative Works, if and
115
+ wherever such third-party notices normally appear. The contents
116
+ of the NOTICE file are for informational purposes only and
117
+ do not modify the License. You may add Your own attribution
118
+ notices within Derivative Works that You distribute, alongside
119
+ or as an addendum to the NOTICE text from the Work, provided
120
+ that such additional attribution notices cannot be construed
121
+ as modifying the License.
122
+
123
+ You may add Your own copyright statement to Your modifications and
124
+ may provide additional or different license terms and conditions
125
+ for use, reproduction, or distribution of Your modifications, or
126
+ for any such Derivative Works as a whole, provided Your use,
127
+ reproduction, and distribution of the Work otherwise complies with
128
+ the conditions stated in this License.
129
+
130
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
131
+ any Contribution intentionally submitted for inclusion in the Work
132
+ by You to the Licensor shall be under the terms and conditions of
133
+ this License, without any additional terms or conditions.
134
+ Notwithstanding the above, nothing herein shall supersede or modify
135
+ the terms of any separate license agreement you may have executed
136
+ with Licensor regarding such Contributions.
137
+
138
+ 6. Trademarks. This License does not grant permission to use the trade
139
+ names, trademarks, service marks, or product names of the Licensor,
140
+ except as required for reasonable and customary use in describing the
141
+ origin of the Work and reproducing the content of the NOTICE file.
142
+
143
+ 7. Disclaimer of Warranty. Unless required by applicable law or
144
+ agreed to in writing, Licensor provides the Work (and each
145
+ Contributor provides its Contributions) on an "AS IS" BASIS,
146
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
147
+ implied, including, without limitation, any warranties or conditions
148
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
149
+ PARTICULAR PURPOSE. You are solely responsible for determining the
150
+ appropriateness of using or redistributing the Work and assume any
151
+ risks associated with Your exercise of permissions under this License.
152
+
153
+ 8. Limitation of Liability. In no event and under no legal theory,
154
+ whether in tort (including negligence), contract, or otherwise,
155
+ unless required by applicable law (such as deliberate and grossly
156
+ negligent acts) or agreed to in writing, shall any Contributor be
157
+ liable to You for damages, including any direct, indirect, special,
158
+ incidental, or consequential damages of any character arising as a
159
+ result of this License or out of the use or inability to use the
160
+ Work (including but not limited to damages for loss of goodwill,
161
+ work stoppage, computer failure or malfunction, or any and all
162
+ other commercial damages or losses), even if such Contributor
163
+ has been advised of the possibility of such damages.
164
+
165
+ 9. Accepting Warranty or Additional Liability. While redistributing
166
+ the Work or Derivative Works thereof, You may choose to offer,
167
+ and charge a fee for, acceptance of support, warranty, indemnity,
168
+ or other liability obligations and/or rights consistent with this
169
+ License. However, in accepting such obligations, You may act only
170
+ on Your own behalf and on Your sole responsibility, not on behalf
171
+ of any other Contributor, and only if You agree to indemnify,
172
+ defend, and hold each Contributor harmless for any liability
173
+ incurred by, or claims asserted against, such Contributor by reason
174
+ of your accepting any such warranty or additional liability.
175
+
176
+ END OF TERMS AND CONDITIONS
177
+
178
+ APPENDIX: How to apply the Apache License to your work.
179
+
180
+ To apply the Apache License to your work, attach the following
181
+ boilerplate notice, with the fields enclosed by brackets "[]"
182
+ replaced with your own identifying information. (Don't include
183
+ the brackets!) The text should be enclosed in the appropriate
184
+ comment syntax for the file format. We also recommend that a
185
+ file or class name and description of purpose be included on the
186
+ same "printed page" as the copyright notice for easier
187
+ identification within third-party archives.
188
+
189
+ Copyright 2026 The swf2es authors
190
+
191
+ Licensed under the Apache License, Version 2.0 (the "License");
192
+ you may not use this file except in compliance with the License.
193
+ You may obtain a copy of the License at
194
+
195
+ http://www.apache.org/licenses/LICENSE-2.0
196
+
197
+ Unless required by applicable law or agreed to in writing, software
198
+ distributed under the License is distributed on an "AS IS" BASIS,
199
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
200
+ See the License for the specific language governing permissions and
201
+ limitations under the License.
202
+
@@ -0,0 +1,313 @@
1
+ Third-party code compiled into @swf2es/native's WebAssembly binaries, each
2
+ notice verbatim. The package's own code is under the Apache License 2.0.
3
+
4
+
5
+ @swf2es/native/compress: zlib
6
+ =============================
7
+
8
+ Copyright notice:
9
+
10
+ (C) 1995-2026 Jean-loup Gailly and Mark Adler
11
+
12
+ This software is provided 'as-is', without any express or implied
13
+ warranty. In no event will the authors be held liable for any damages
14
+ arising from the use of this software.
15
+
16
+ Permission is granted to anyone to use this software for any purpose,
17
+ including commercial applications, and to alter it and redistribute it
18
+ freely, subject to the following restrictions:
19
+
20
+ 1. The origin of this software must not be misrepresented; you must not
21
+ claim that you wrote the original software. If you use this software
22
+ in a product, an acknowledgment in the product documentation would be
23
+ appreciated but is not required.
24
+ 2. Altered source versions must be plainly marked as such, and must not be
25
+ misrepresented as being the original software.
26
+ 3. This notice may not be removed or altered from any source distribution.
27
+
28
+ Jean-loup Gailly Mark Adler
29
+ jloup@gzip.org madler@alumni.caltech.edu
30
+
31
+
32
+ @swf2es/native/compress: the LZMA SDK
33
+ =====================================
34
+
35
+ The LZMA encoder and decoder in this package's WebAssembly binary are
36
+ compiled from the LZMA SDK 26.05's C sources (C/LzmaEnc.c, C/LzFind.c,
37
+ C/LzmaDec.c and the headers they include), by Igor Pavlov, unchanged but
38
+ for line endings in swf2es/lzma-sdk. Each
39
+ of those files states:
40
+
41
+ Igor Pavlov : Public domain
42
+
43
+ and the SDK's DOC/lzma-sdk.txt says:
44
+
45
+ LZMA SDK is written and placed in the public domain by Igor Pavlov.
46
+
47
+ Anyone is free to copy, modify, publish, use, compile, sell, or distribute
48
+ the original LZMA SDK code, either in source code form or as a compiled
49
+ binary, for any purpose, commercial or non-commercial, and by any means.
50
+
51
+ This notice records where they come from.
52
+
53
+ https://www.7-zip.org/sdk.html
54
+
55
+
56
+ @swf2es/native/mp3: minimp3
57
+ ===========================
58
+
59
+ CC0 1.0 Universal
60
+
61
+ Statement of Purpose
62
+
63
+ The laws of most jurisdictions throughout the world automatically confer
64
+ exclusive Copyright and Related Rights (defined below) upon the creator and
65
+ subsequent owner(s) (each and all, an "owner") of an original work of
66
+ authorship and/or a database (each, a "Work").
67
+
68
+ Certain owners wish to permanently relinquish those rights to a Work for the
69
+ purpose of contributing to a commons of creative, cultural and scientific
70
+ works ("Commons") that the public can reliably and without fear of later
71
+ claims of infringement build upon, modify, incorporate in other works, reuse
72
+ and redistribute as freely as possible in any form whatsoever and for any
73
+ purposes, including without limitation commercial purposes. These owners may
74
+ contribute to the Commons to promote the ideal of a free culture and the
75
+ further production of creative, cultural and scientific works, or to gain
76
+ reputation or greater distribution for their Work in part through the use and
77
+ efforts of others.
78
+
79
+ For these and/or other purposes and motivations, and without any expectation
80
+ of additional consideration or compensation, the person associating CC0 with a
81
+ Work (the "Affirmer"), to the extent that he or she is an owner of Copyright
82
+ and Related Rights in the Work, voluntarily elects to apply CC0 to the Work
83
+ and publicly distribute the Work under its terms, with knowledge of his or her
84
+ Copyright and Related Rights in the Work and the meaning and intended legal
85
+ effect of CC0 on those rights.
86
+
87
+ 1. Copyright and Related Rights. A Work made available under CC0 may be
88
+ protected by copyright and related or neighboring rights ("Copyright and
89
+ Related Rights"). Copyright and Related Rights include, but are not limited
90
+ to, the following:
91
+
92
+ i. the right to reproduce, adapt, distribute, perform, display, communicate,
93
+ and translate a Work;
94
+
95
+ ii. moral rights retained by the original author(s) and/or performer(s);
96
+
97
+ iii. publicity and privacy rights pertaining to a person's image or likeness
98
+ depicted in a Work;
99
+
100
+ iv. rights protecting against unfair competition in regards to a Work,
101
+ subject to the limitations in paragraph 4(a), below;
102
+
103
+ v. rights protecting the extraction, dissemination, use and reuse of data in
104
+ a Work;
105
+
106
+ vi. database rights (such as those arising under Directive 96/9/EC of the
107
+ European Parliament and of the Council of 11 March 1996 on the legal
108
+ protection of databases, and under any national implementation thereof,
109
+ including any amended or successor version of such directive); and
110
+
111
+ vii. other similar, equivalent or corresponding rights throughout the world
112
+ based on applicable law or treaty, and any national implementations thereof.
113
+
114
+ 2. Waiver. To the greatest extent permitted by, but not in contravention of,
115
+ applicable law, Affirmer hereby overtly, fully, permanently, irrevocably and
116
+ unconditionally waives, abandons, and surrenders all of Affirmer's Copyright
117
+ and Related Rights and associated claims and causes of action, whether now
118
+ known or unknown (including existing as well as future claims and causes of
119
+ action), in the Work (i) in all territories worldwide, (ii) for the maximum
120
+ duration provided by applicable law or treaty (including future time
121
+ extensions), (iii) in any current or future medium and for any number of
122
+ copies, and (iv) for any purpose whatsoever, including without limitation
123
+ commercial, advertising or promotional purposes (the "Waiver"). Affirmer makes
124
+ the Waiver for the benefit of each member of the public at large and to the
125
+ detriment of Affirmer's heirs and successors, fully intending that such Waiver
126
+ shall not be subject to revocation, rescission, cancellation, termination, or
127
+ any other legal or equitable action to disrupt the quiet enjoyment of the Work
128
+ by the public as contemplated by Affirmer's express Statement of Purpose.
129
+
130
+ 3. Public License Fallback. Should any part of the Waiver for any reason be
131
+ judged legally invalid or ineffective under applicable law, then the Waiver
132
+ shall be preserved to the maximum extent permitted taking into account
133
+ Affirmer's express Statement of Purpose. In addition, to the extent the Waiver
134
+ is so judged Affirmer hereby grants to each affected person a royalty-free,
135
+ non transferable, non sublicensable, non exclusive, irrevocable and
136
+ unconditional license to exercise Affirmer's Copyright and Related Rights in
137
+ the Work (i) in all territories worldwide, (ii) for the maximum duration
138
+ provided by applicable law or treaty (including future time extensions), (iii)
139
+ in any current or future medium and for any number of copies, and (iv) for any
140
+ purpose whatsoever, including without limitation commercial, advertising or
141
+ promotional purposes (the "License"). The License shall be deemed effective as
142
+ of the date CC0 was applied by Affirmer to the Work. Should any part of the
143
+ License for any reason be judged legally invalid or ineffective under
144
+ applicable law, such partial invalidity or ineffectiveness shall not
145
+ invalidate the remainder of the License, and in such case Affirmer hereby
146
+ affirms that he or she will not (i) exercise any of his or her remaining
147
+ Copyright and Related Rights in the Work or (ii) assert any associated claims
148
+ and causes of action with respect to the Work, in either case contrary to
149
+ Affirmer's express Statement of Purpose.
150
+
151
+ 4. Limitations and Disclaimers.
152
+
153
+ a. No trademark or patent rights held by Affirmer are waived, abandoned,
154
+ surrendered, licensed or otherwise affected by this document.
155
+
156
+ b. Affirmer offers the Work as-is and makes no representations or warranties
157
+ of any kind concerning the Work, express, implied, statutory or otherwise,
158
+ including without limitation warranties of title, merchantability, fitness
159
+ for a particular purpose, non infringement, or the absence of latent or
160
+ other defects, accuracy, or the present or absence of errors, whether or not
161
+ discoverable, all to the greatest extent permissible under applicable law.
162
+
163
+ c. Affirmer disclaims responsibility for clearing rights of other persons
164
+ that may apply to the Work or any use thereof, including without limitation
165
+ any person's Copyright and Related Rights in the Work. Further, Affirmer
166
+ disclaims responsibility for obtaining any necessary consents, permissions
167
+ or other rights required for any use of the Work.
168
+
169
+ d. Affirmer understands and acknowledges that Creative Commons is not a
170
+ party to this document and has no duty or obligation with respect to this
171
+ CC0 or use of the Work.
172
+
173
+ For more information, please see
174
+ <http://creativecommons.org/publicdomain/zero/1.0/>
175
+
176
+
177
+
178
+ @swf2es/native/audio: FFmpeg's Nellymoser decoder
179
+ =================================================
180
+
181
+ src/audio/nellymoser.zig is translated from FFmpeg's
182
+ libavcodec/nellymoser.c and nellymoserdec.c, which carry this notice:
183
+
184
+ Copyright (c) 2007 a840bda5870ba11f19698ff6eb9581dfb0f95fa5,
185
+ 539459aeb7d425140b62a3ec7dbf6dc8e408a306, and
186
+ 520e17cd55896441042b14df2566a6eb610ed444
187
+ Copyright (c) 2007 Loic Minier <lool at dooz.org>
188
+ Benjamin Larsson
189
+
190
+ Permission is hereby granted, free of charge, to any person obtaining a
191
+ copy of this software and associated documentation files (the "Software"),
192
+ to deal in the Software without restriction, including without limitation
193
+ the rights to use, copy, modify, merge, publish, distribute, sublicense,
194
+ and/or sell copies of the Software, and to permit persons to whom the
195
+ Software is furnished to do so, subject to the following conditions:
196
+
197
+ The above copyright notice and this permission notice shall be included in
198
+ all copies or substantial portions of the Software.
199
+
200
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
201
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
202
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
203
+ THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
204
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
205
+ FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
206
+ DEALINGS IN THE SOFTWARE.
207
+
208
+ (The three alphanumeric notices are the MD5 sums of the original
209
+ implementers' names, of nelly2pcm.)
210
+
211
+
212
+ @swf2es/native/render: libtess2
213
+ ===============================
214
+
215
+ ** SGI FREE SOFTWARE LICENSE B (Version 2.0, Sept. 18, 2008)
216
+ ** Copyright (C) [dates of first publication] Silicon Graphics, Inc.
217
+ ** All Rights Reserved.
218
+ **
219
+ ** Permission is hereby granted, free of charge, to any person obtaining a copy
220
+ ** of this software and associated documentation files (the "Software"), to deal
221
+ ** in the Software without restriction, including without limitation the rights
222
+ ** to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
223
+ ** of the Software, and to permit persons to whom the Software is furnished to do so,
224
+ ** subject to the following conditions:
225
+ **
226
+ ** The above copyright notice including the dates of first publication and either this
227
+ ** permission notice or a reference to http://oss.sgi.com/projects/FreeB/ shall be
228
+ ** included in all copies or substantial portions of the Software.
229
+ **
230
+ ** THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
231
+ ** INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A
232
+ ** PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL SILICON GRAPHICS, INC.
233
+ ** BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
234
+ ** TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE
235
+ ** OR OTHER DEALINGS IN THE SOFTWARE.
236
+ **
237
+ ** Except as contained in this notice, the name of Silicon Graphics, Inc. shall not
238
+ ** be used in advertising or otherwise to promote the sale, use or other dealings in
239
+ ** this Software without prior written authorization from Silicon Graphics, Inc.
240
+
241
+
242
+ @swf2es/native/render: SVG's feTurbulence (perlinNoise)
243
+ =======================================================
244
+
245
+ src/render/pixels.zig's noise for BitmapData.perlinNoise is derived from
246
+ the reference implementation of feTurbulence in Scalable Vector Graphics
247
+ (SVG) 1.1 (Second Edition),
248
+ https://www.w3.org/TR/SVG11/filters.html#feTurbulenceElement
249
+
250
+ Copyright © 2015 W3C® (MIT, ERCIM, Keio, Beihang). This software or
251
+ document includes material copied from or derived from SVG 1.1, under the
252
+ W3C Software and Document License:
253
+ https://www.w3.org/Consortium/Legal/2015/copyright-software-and-document
254
+
255
+
256
+ @swf2es/native/atf: jxrlib
257
+ ==========================
258
+
259
+ BSD 2-Clause License
260
+
261
+ Copyright © Microsoft Corp.
262
+ All rights reserved.
263
+
264
+ Redistribution and use in source and binary forms, with or without
265
+ modification, are permitted provided that the following conditions are met:
266
+
267
+ * Redistributions of source code must retain the above copyright notice, this
268
+ list of conditions and the following disclaimer.
269
+
270
+ * Redistributions in binary form must reproduce the above copyright notice,
271
+ this list of conditions and the following disclaimer in the documentation
272
+ and/or other materials provided with the distribution.
273
+
274
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
275
+ AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
276
+ IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
277
+ DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
278
+ FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
279
+ DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
280
+ SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
281
+ CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
282
+ OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
283
+ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
284
+
285
+
286
+ @swf2es/native: Zig's standard library and compiler-rt
287
+ ======================================================
288
+
289
+ Every binary holds code from Zig 0.17.0 (https://ziglang.org), compiled in
290
+ by the pinned Zig that builds it: parts of its standard library, and
291
+ compiler-rt's routines the C calls (memcmp, strlen). Zig's licence:
292
+
293
+ The MIT License (Expat)
294
+
295
+ Copyright (c) Zig contributors
296
+
297
+ Permission is hereby granted, free of charge, to any person obtaining a copy
298
+ of this software and associated documentation files (the "Software"), to deal
299
+ in the Software without restriction, including without limitation the rights
300
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
301
+ copies of the Software, and to permit persons to whom the Software is
302
+ furnished to do so, subject to the following conditions:
303
+
304
+ The above copyright notice and this permission notice shall be included in
305
+ all copies or substantial portions of the Software.
306
+
307
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
308
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
309
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
310
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
311
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
312
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
313
+ THE SOFTWARE.