UNPKG

84.1 kBPlain TextView Raw
1Tencent is pleased to support the open source community by making libpag available.
2
3Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved. The below software in this distribution may have been modified by THL A29 Limited ("Tencent Modifications"). All Tencent Modifications are Copyright (C) THL A29 Limited.
4
5libpag is licensed under the Apache License Version 2.0 except for the third-party components listed below.
6
7
8Terms of the Apache License Version 2.0:
9--------------------------------------------------------------------
10Apache License
11
12Version 2.0, January 2004
13
14http://www.apache.org/licenses/
15
16TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
171. Definitions.
18
19"License" shall mean the terms and conditions for use, reproduction, and distribution as defined by Sections 1 through 9 of this document.
20
21"Licensor" shall mean the copyright owner or entity authorized by the copyright owner that is granting the License.
22
23"Legal Entity" shall mean the union of the acting entity and all other entities that control, are controlled by, or are under common control with that entity. For the purposes of this definition, "control" means (i) the power, direct or indirect, to cause the direction or management of such entity, whether by contract or otherwise, or (ii) ownership of fifty percent (50%) or more of the outstanding shares, or (iii) beneficial ownership of such entity.
24
25"You" (or "Your") shall mean an individual or Legal Entity exercising permissions granted by this License.
26
27"Source" form shall mean the preferred form for making modifications, including but not limited to software source code, documentation source, and configuration files.
28
29"Object" form shall mean any form resulting from mechanical transformation or translation of a Source form, including but not limited to compiled object code, generated documentation, and conversions to other media types.
30
31"Work" shall mean the work of authorship, whether in Source or Object form, made available under the License, as indicated by a copyright notice that is included in or attached to the work (an example is provided in the Appendix below).
32
33"Derivative Works" shall mean any work, whether in Source or Object form, that is based on (or derived from) the Work and for which the editorial revisions, annotations, elaborations, or other modifications represent, as a whole, an original work of authorship. For the purposes of this License, Derivative Works shall not include works that remain separable from, or merely link (or bind by name) to the interfaces of, the Work and Derivative Works thereof.
34
35"Contribution" shall mean any work of authorship, including the original version of the Work and any modifications or additions to that Work or Derivative Works thereof, that is intentionally submitted to Licensor for inclusion in the Work by the copyright owner or by an individual or Legal Entity authorized to submit on behalf of the copyright owner. For the purposes of this definition, "submitted" means any form of electronic, verbal, or written communication sent to the Licensor or its representatives, including but not limited to communication on electronic mailing lists, source code control systems, and issue tracking systems that are managed by, or on behalf of, the Licensor for the purpose of discussing and improving the Work, but excluding communication that is conspicuously marked or otherwise designated in writing by the copyright owner as "Not a Contribution."
36
37"Contributor" shall mean Licensor and any individual or Legal Entity on behalf of whom a Contribution has been received by Licensor and subsequently incorporated within the Work.
38
392. Grant of Copyright License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable copyright license to reproduce, prepare Derivative Works of, publicly display, publicly perform, sublicense, and distribute the Work and such Derivative Works in Source or Object form.
40
413. Grant of Patent License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable (except as stated in this section) patent license to make, have made, use, offer to sell, sell, import, and otherwise transfer the Work, where such license applies only to those patent claims licensable by such Contributor that are necessarily infringed by their Contribution(s) alone or by combination of their Contribution(s) with the Work to which such Contribution(s) was submitted. If You institute patent litigation against any entity (including a cross-claim or counterclaim in a lawsuit) alleging that the Work or a Contribution incorporated within the Work constitutes direct or contributory patent infringement, then any patent licenses granted to You under this License for that Work shall terminate as of the date such litigation is filed.
42
434. Redistribution. You may reproduce and distribute copies of the Work or Derivative Works thereof in any medium, with or without modifications, and in Source or Object form, provided that You meet the following conditions:
44
45You must give any other recipients of the Work or Derivative Works a copy of this License; and
46
47You must cause any modified files to carry prominent notices stating that You changed the files; and
48
49You must retain, in the Source form of any Derivative Works that You distribute, all copyright, patent, trademark, and attribution notices from the Source form of the Work, excluding those notices that do not pertain to any part of the Derivative Works; and
50
51If the Work includes a "NOTICE" text file as part of its distribution, then any Derivative Works that You distribute must include a readable copy of the attribution notices contained within such NOTICE file, excluding those notices that do not pertain to any part of the Derivative Works, in at least one of the following places: within a NOTICE text file distributed as part of the Derivative Works; within the Source form or documentation, if provided along with the Derivative Works; or, within a display generated by the Derivative Works, if and wherever such third-party notices normally appear. The contents of the NOTICE file are for informational purposes only and do not modify the License. You may add Your own attribution notices within Derivative Works that You distribute, alongside or as an addendum to the NOTICE text from the Work, provided that such additional attribution notices cannot be construed as modifying the License.
52
53You may add Your own copyright statement to Your modifications and may provide additional or different license terms and conditions for use, reproduction, or distribution of Your modifications, or for any such Derivative Works as a whole, provided Your use, reproduction, and distribution of the Work otherwise complies with the conditions stated in this License.
54
555. Submission of Contributions. Unless You explicitly state otherwise, any Contribution intentionally submitted for inclusion in the Work by You to the Licensor shall be under the terms and conditions of this License, without any additional terms or conditions. Notwithstanding the above, nothing herein shall supersede or modify the terms of any separate license agreement you may have executed with Licensor regarding such Contributions.
56
576. Trademarks. This License does not grant permission to use the trade names, trademarks, service marks, or product names of the Licensor, except as required for reasonable and customary use in describing the origin of the Work and reproducing the content of the NOTICE file.
58
597. Disclaimer of Warranty. Unless required by applicable law or agreed to in writing, Licensor provides the Work (and each Contributor provides its Contributions) on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied, including, without limitation, any warranties or conditions of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A PARTICULAR PURPOSE. You are solely responsible for determining the appropriateness of using or redistributing the Work and assume any risks associated with Your exercise of permissions under this License.
60
618. Limitation of Liability. In no event and under no legal theory, whether in tort (including negligence), contract, or otherwise, unless required by applicable law (such as deliberate and grossly negligent acts) or agreed to in writing, shall any Contributor be liable to You for damages, including any direct, indirect, special, incidental, or consequential damages of any character arising as a result of this License or out of the use or inability to use the Work (including but not limited to damages for loss of goodwill, work stoppage, computer failure or malfunction, or any and all other commercial damages or losses), even if such Contributor has been advised of the possibility of such damages.
62
639. Accepting Warranty or Additional Liability. While redistributing the Work or Derivative Works thereof, You may choose to offer, and charge a fee for, acceptance of support, warranty, indemnity, or other liability obligations and/or rights consistent with this License. However, in accepting such obligations, You may act only on Your own behalf and on Your sole responsibility, not on behalf of any other Contributor, and only if You agree to indemnify, defend, and hold each Contributor harmless for any liability incurred by, or claims asserted against, such Contributor by reason of your accepting any such warranty or additional liability.
64
65END OF TERMS AND CONDITIONS
66
67
68
69Other dependencies and licenses:
70
71
72Open Source Software Licensed under the Apache License Version 2.0:
73The below software in this distribution may have been modified by THL A29 Limited ("Tencent Modifications"). All Tencent Modifications are Copyright (C) 2021 THL A29 Limited.
74--------------------------------------------------------------------
751. libavc
76Copyright (C) 2015 The Android Open Source Project
77Please note this software has been modified by Tencent in this distribution.
78
79
80Terms of the Apache License Version 2.0:
81--------------------------------------------------------------------
82Apache License
83
84Version 2.0, January 2004
85
86http://www.apache.org/licenses/
87
88TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
891. Definitions.
90
91"License" shall mean the terms and conditions for use, reproduction, and distribution as defined by Sections 1 through 9 of this document.
92
93"Licensor" shall mean the copyright owner or entity authorized by the copyright owner that is granting the License.
94
95"Legal Entity" shall mean the union of the acting entity and all other entities that control, are controlled by, or are under common control with that entity. For the purposes of this definition, "control" means (i) the power, direct or indirect, to cause the direction or management of such entity, whether by contract or otherwise, or (ii) ownership of fifty percent (50%) or more of the outstanding shares, or (iii) beneficial ownership of such entity.
96
97"You" (or "Your") shall mean an individual or Legal Entity exercising permissions granted by this License.
98
99"Source" form shall mean the preferred form for making modifications, including but not limited to software source code, documentation source, and configuration files.
100
101"Object" form shall mean any form resulting from mechanical transformation or translation of a Source form, including but not limited to compiled object code, generated documentation, and conversions to other media types.
102
103"Work" shall mean the work of authorship, whether in Source or Object form, made available under the License, as indicated by a copyright notice that is included in or attached to the work (an example is provided in the Appendix below).
104
105"Derivative Works" shall mean any work, whether in Source or Object form, that is based on (or derived from) the Work and for which the editorial revisions, annotations, elaborations, or other modifications represent, as a whole, an original work of authorship. For the purposes of this License, Derivative Works shall not include works that remain separable from, or merely link (or bind by name) to the interfaces of, the Work and Derivative Works thereof.
106
107"Contribution" shall mean any work of authorship, including the original version of the Work and any modifications or additions to that Work or Derivative Works thereof, that is intentionally submitted to Licensor for inclusion in the Work by the copyright owner or by an individual or Legal Entity authorized to submit on behalf of the copyright owner. For the purposes of this definition, "submitted" means any form of electronic, verbal, or written communication sent to the Licensor or its representatives, including but not limited to communication on electronic mailing lists, source code control systems, and issue tracking systems that are managed by, or on behalf of, the Licensor for the purpose of discussing and improving the Work, but excluding communication that is conspicuously marked or otherwise designated in writing by the copyright owner as "Not a Contribution."
108
109"Contributor" shall mean Licensor and any individual or Legal Entity on behalf of whom a Contribution has been received by Licensor and subsequently incorporated within the Work.
110
1112. Grant of Copyright License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable copyright license to reproduce, prepare Derivative Works of, publicly display, publicly perform, sublicense, and distribute the Work and such Derivative Works in Source or Object form.
112
1133. Grant of Patent License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable (except as stated in this section) patent license to make, have made, use, offer to sell, sell, import, and otherwise transfer the Work, where such license applies only to those patent claims licensable by such Contributor that are necessarily infringed by their Contribution(s) alone or by combination of their Contribution(s) with the Work to which such Contribution(s) was submitted. If You institute patent litigation against any entity (including a cross-claim or counterclaim in a lawsuit) alleging that the Work or a Contribution incorporated within the Work constitutes direct or contributory patent infringement, then any patent licenses granted to You under this License for that Work shall terminate as of the date such litigation is filed.
114
1154. Redistribution. You may reproduce and distribute copies of the Work or Derivative Works thereof in any medium, with or without modifications, and in Source or Object form, provided that You meet the following conditions:
116
117You must give any other recipients of the Work or Derivative Works a copy of this License; and
118
119You must cause any modified files to carry prominent notices stating that You changed the files; and
120
121You must retain, in the Source form of any Derivative Works that You distribute, all copyright, patent, trademark, and attribution notices from the Source form of the Work, excluding those notices that do not pertain to any part of the Derivative Works; and
122
123If the Work includes a "NOTICE" text file as part of its distribution, then any Derivative Works that You distribute must include a readable copy of the attribution notices contained within such NOTICE file, excluding those notices that do not pertain to any part of the Derivative Works, in at least one of the following places: within a NOTICE text file distributed as part of the Derivative Works; within the Source form or documentation, if provided along with the Derivative Works; or, within a display generated by the Derivative Works, if and wherever such third-party notices normally appear. The contents of the NOTICE file are for informational purposes only and do not modify the License. You may add Your own attribution notices within Derivative Works that You distribute, alongside or as an addendum to the NOTICE text from the Work, provided that such additional attribution notices cannot be construed as modifying the License.
124
125You may add Your own copyright statement to Your modifications and may provide additional or different license terms and conditions for use, reproduction, or distribution of Your modifications, or for any such Derivative Works as a whole, provided Your use, reproduction, and distribution of the Work otherwise complies with the conditions stated in this License.
126
1275. Submission of Contributions. Unless You explicitly state otherwise, any Contribution intentionally submitted for inclusion in the Work by You to the Licensor shall be under the terms and conditions of this License, without any additional terms or conditions. Notwithstanding the above, nothing herein shall supersede or modify the terms of any separate license agreement you may have executed with Licensor regarding such Contributions.
128
1296. Trademarks. This License does not grant permission to use the trade names, trademarks, service marks, or product names of the Licensor, except as required for reasonable and customary use in describing the origin of the Work and reproducing the content of the NOTICE file.
130
1317. Disclaimer of Warranty. Unless required by applicable law or agreed to in writing, Licensor provides the Work (and each Contributor provides its Contributions) on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied, including, without limitation, any warranties or conditions of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A PARTICULAR PURPOSE. You are solely responsible for determining the appropriateness of using or redistributing the Work and assume any risks associated with Your exercise of permissions under this License.
132
1338. Limitation of Liability. In no event and under no legal theory, whether in tort (including negligence), contract, or otherwise, unless required by applicable law (such as deliberate and grossly negligent acts) or agreed to in writing, shall any Contributor be liable to You for damages, including any direct, indirect, special, incidental, or consequential damages of any character arising as a result of this License or out of the use or inability to use the Work (including but not limited to damages for loss of goodwill, work stoppage, computer failure or malfunction, or any and all other commercial damages or losses), even if such Contributor has been advised of the possibility of such damages.
134
1359. Accepting Warranty or Additional Liability. While redistributing the Work or Derivative Works thereof, You may choose to offer, and charge a fee for, acceptance of support, warranty, indemnity, or other liability obligations and/or rights consistent with this License. However, in accepting such obligations, You may act only on Your own behalf and on Your sole responsibility, not on behalf of any other Contributor, and only if You agree to indemnify, defend, and hold each Contributor harmless for any liability incurred by, or claims asserted against, such Contributor by reason of your accepting any such warranty or additional liability.
136
137END OF TERMS AND CONDITIONS
138
139
140
141Open Source Software Licensed under the BSD 3-Clause License:
142The below software in this distribution may have been modified by Tencent.
143--------------------------------------------------------------------
1441. libwebp
145Copyright (c) 2010, Google Inc. All rights reserved.
146
1472. pathKit
148Copyright (c) 2011 Google Inc. All rights reserved.
149
1503. skcms
151Copyright 2018 Google Inc.
152
153
154Terms of the BSD 3-Clause License:
155--------------------------------------------------------------------
156Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
157
1581. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
159
1602. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
161
1623. Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.
163
164THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
165
166
167
168Open Source Software Licensed under the FreeType License and Other Licenses of the Third-Party Components therein:
169--------------------------------------------------------------------
1701. freetype
171Copyright (C) 2006-2022 by
172David Turner, Robert Wilhelm, and Werner Lemberg.
173
174FREETYPE LICENSES
175-----------------
176The FreeType 2 font engine is copyrighted work and cannot be used
177legally without a software license. In order to make this project
178usable to a vast majority of developers, we distribute it under two
179mutually exclusive open-source licenses.
180This means that *you* must choose *one* of the two licenses described
181below, then obey all its terms and conditions when using FreeType 2 in
182any of your projects or products.
183 - The FreeType License, found in the file `docs/FTL.TXT`, which is
184 similar to the original BSD license *with* an advertising clause
185 that forces you to explicitly cite the FreeType project in your
186 product's documentation. All details are in the license file.
187 This license is suited to products which don't use the GNU General
188 Public License.
189 Note that this license is compatible to the GNU General Public
190 License version 3, but not version 2.
191 - The GNU General Public License version 2, found in
192 `docs/GPLv2.TXT` (any later version can be used also), for
193 programs which already use the GPL. Note that the FTL is
194 incompatible with GPLv2 due to its advertisement clause.
195The contributed BDF and PCF drivers come with a license similar to
196that of the X Window System. It is compatible to the above two
197licenses (see files `src/bdf/README` and `src/pcf/README`). The same
198holds for the source code files `src/base/fthash.c` and
199`include/freetype/internal/fthash.h`; they wer part of the BDF driver
200in earlier FreeType versions.
201The gzip module uses the zlib license (see `src/gzip/zlib.h`) which
202too is compatible to the above two licenses.
203The MD5 checksum support (only used for debugging in development
204builds) is in the public domain.
205--- end of LICENSE.TXT ---
206
207 The FreeType Project LICENSE
208 ----------------------------
209 2006-Jan-27
210 Copyright 1996-2002, 2006 by
211 David Turner, Robert Wilhelm, and Werner Lemberg
212Introduction
213============
214 The FreeType Project is distributed in several archive packages;
215 some of them may contain, in addition to the FreeType font engine,
216 various tools and contributions which rely on, or relate to, the
217 FreeType Project.
218 This license applies to all files found in such packages, and
219 which do not fall under their own explicit license. The license
220 affects thus the FreeType font engine, the test programs,
221 documentation and makefiles, at the very least.
222 This license was inspired by the BSD, Artistic, and IJG
223 (Independent JPEG Group) licenses, which all encourage inclusion
224 and use of free software in commercial and freeware products
225 alike. As a consequence, its main points are that:
226 o We don't promise that this software works. However, we will be
227 interested in any kind of bug reports. (`as is' distribution)
228 o You can use this software for whatever you want, in parts or
229 full form, without having to pay us. (`royalty-free' usage)
230 o You may not pretend that you wrote this software. If you use
231 it, or only parts of it, in a program, you must acknowledge
232 somewhere in your documentation that you have used the
233 FreeType code. (`credits')
234 We specifically permit and encourage the inclusion of this
235 software, with or without modifications, in commercial products.
236 We disclaim all warranties covering The FreeType Project and
237 assume no liability related to The FreeType Project.
238 Finally, many people asked us for a preferred form for a
239 credit/disclaimer to use in compliance with this license. We thus
240 encourage you to use the following text:
241 """
242 Portions of this software are copyright © <year> The FreeType
243 Project (www.freetype.org). All rights reserved.
244 """
245 Please replace <year> with the value from the FreeType version you
246 actually use.
247Legal Terms
248===========
2490. Definitions
250--------------
251 Throughout this license, the terms `package', `FreeType Project',
252 and `FreeType archive' refer to the set of files originally
253 distributed by the authors (David Turner, Robert Wilhelm, and
254 Werner Lemberg) as the `FreeType Project', be they named as alpha,
255 beta or final release.
256 `You' refers to the licensee, or person using the project, where
257 `using' is a generic term including compiling the project's source
258 code as well as linking it to form a `program' or `executable'.
259 This program is referred to as `a program using the FreeType
260 engine'.
261 This license applies to all files distributed in the original
262 FreeType Project, including all source code, binaries and
263 documentation, unless otherwise stated in the file in its
264 original, unmodified form as distributed in the original archive.
265 If you are unsure whether or not a particular file is covered by
266 this license, you must contact us to verify this.
267 The FreeType Project is copyright (C) 1996-2000 by David Turner,
268 Robert Wilhelm, and Werner Lemberg. All rights reserved except as
269 specified below.
2701. No Warranty
271--------------
272 THE FREETYPE PROJECT IS PROVIDED `AS IS' WITHOUT WARRANTY OF ANY
273 KIND, EITHER EXPRESS OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,
274 WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
275 PURPOSE. IN NO EVENT WILL ANY OF THE AUTHORS OR COPYRIGHT HOLDERS
276 BE LIABLE FOR ANY DAMAGES CAUSED BY THE USE OR THE INABILITY TO
277 USE, OF THE FREETYPE PROJECT.
2782. Redistribution
279-----------------
280 This license grants a worldwide, royalty-free, perpetual and
281 irrevocable right and license to use, execute, perform, compile,
282 display, copy, create derivative works of, distribute and
283 sublicense the FreeType Project (in both source and object code
284 forms) and derivative works thereof for any purpose; and to
285 authorize others to exercise some or all of the rights granted
286 herein, subject to the following conditions:
287 o Redistribution of source code must retain this license file
288 (`FTL.TXT') unaltered; any additions, deletions or changes to
289 the original files must be clearly indicated in accompanying
290 documentation. The copyright notices of the unaltered,
291 original files must be preserved in all copies of source
292 files.
293 o Redistribution in binary form must provide a disclaimer that
294 states that the software is based in part of the work of the
295 FreeType Team, in the distribution documentation. We also
296 encourage you to put an URL to the FreeType web page in your
297 documentation, though this isn't mandatory.
298 These conditions apply to any software derived from or based on
299 the FreeType Project, not just the unmodified files. If you use
300 our work, you must acknowledge us. However, no fee need be paid
301 to us.
3023. Advertising
303--------------
304 Neither the FreeType authors and contributors nor you shall use
305 the name of the other for commercial, advertising, or promotional
306 purposes without specific prior written permission.
307 We suggest, but do not require, that you use one or more of the
308 following phrases to refer to this software in your documentation
309 or advertising materials: `FreeType Project', `FreeType Engine',
310 `FreeType library', or `FreeType Distribution'.
311 As you have not signed this license, you are not required to
312 accept it. However, as the FreeType Project is copyrighted
313 material, only this license, or another one contracted with the
314 authors, grants you the right to use, distribute, and modify it.
315 Therefore, by using, distributing, or modifying the FreeType
316 Project, you indicate that you understand and accept all the terms
317 of this license.
3184. Contacts
319-----------
320 There are two mailing lists related to FreeType:
321 o freetype@nongnu.org
322 Discusses general use and applications of FreeType, as well as
323 future and wanted additions to the library and distribution.
324 If you are looking for support, start in this list if you
325 haven't found anything to help you in the documentation.
326 o freetype-devel@nongnu.org
327 Discusses bugs, as well as engine internals, design issues,
328 specific licenses, porting, etc.
329 Our home page can be found at
330 https://www.freetype.org
331--- end of FTL.TXT ---
332
333
334
335Open Source Software Licensed under the IJG License, the BSD 3-Clause License and the Zlib License:
336--------------------------------------------------------------------
3371. libjpeg-turbo
338Copyright (c) libjpeg-turbo original author and authors
339
340libjpeg-turbo Licenses
341======================
342
343libjpeg-turbo is covered by three compatible BSD-style open source licenses:
344
345- The IJG (Independent JPEG Group) License, which is listed in
346 [README.ijg](README.ijg)
347
348 This license applies to the libjpeg API library and associated programs
349 (any code inherited from libjpeg, and any modifications to that code.)
350
351- The Modified (3-clause) BSD License, which is listed below
352
353 This license covers the TurboJPEG API library and associated programs, as
354 well as the build system.
355
356- The zlib License, which is listed below
357
358 This license is a subset of the other two, and it covers the libjpeg-turbo
359 SIMD extensions.
360
361
362Complying with the libjpeg-turbo Licenses
363=========================================
364
365This section provides a roll-up of the libjpeg-turbo licensing terms, to the
366best of our understanding.
367
3681. If you are distributing a modified version of the libjpeg-turbo source,
369 then:
370
371 1. You cannot alter or remove any existing copyright or license notices
372 from the source.
373
374 **Origin**
375 - Clause 1 of the IJG License
376 - Clause 1 of the Modified BSD License
377 - Clauses 1 and 3 of the zlib License
378
379 2. You must add your own copyright notice to the header of each source
380 file you modified, so others can tell that you modified that file (if
381 there is not an existing copyright header in that file, then you can
382 simply add a notice stating that you modified the file.)
383
384 **Origin**
385 - Clause 1 of the IJG License
386 - Clause 2 of the zlib License
387
388 3. You must include the IJG README file, and you must not alter any of the
389 copyright or license text in that file.
390
391 **Origin**
392 - Clause 1 of the IJG License
393
3942. If you are distributing only libjpeg-turbo binaries without the source, or
395 if you are distributing an application that statically links with
396 libjpeg-turbo, then:
397
398 1. Your product documentation must include a message stating:
399
400 This software is based in part on the work of the Independent JPEG
401 Group.
402
403 **Origin**
404 - Clause 2 of the IJG license
405
406 2. If your binary distribution includes or uses the TurboJPEG API, then
407 your product documentation must include the text of the Modified BSD
408 License.
409
410 **Origin**
411 - Clause 2 of the Modified BSD License
412
4133. You cannot use the name of the IJG or The libjpeg-turbo Project or the
414 contributors thereof in advertising, publicity, etc.
415
416 **Origin**
417 - IJG License
418 - Clause 3 of the Modified BSD License
419
4204. The IJG and The libjpeg-turbo Project do not warrant libjpeg-turbo to be
421 free of defects, nor do we accept any liability for undesirable
422 consequences resulting from your use of the software.
423
424 **Origin**
425 - IJG License
426 - Modified BSD License
427 - zlib License
428
429
430The Modified (3-clause) BSD License
431===================================
432
433Copyright (C)\<YEAR\> \<AUTHOR\>. All Rights Reserved.
434
435Redistribution and use in source and binary forms, with or without
436modification, are permitted provided that the following conditions are met:
437
438- Redistributions of source code must retain the above copyright notice,
439 this list of conditions and the following disclaimer.
440- Redistributions in binary form must reproduce the above copyright notice,
441 this list of conditions and the following disclaimer in the documentation
442 and/or other materials provided with the distribution.
443- Neither the name of the libjpeg-turbo Project nor the names of its
444 contributors may be used to endorse or promote products derived from this
445 software without specific prior written permission.
446
447THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS",
448AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
449IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
450ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDERS OR CONTRIBUTORS BE
451LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
452CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
453SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
454INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
455CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
456ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
457POSSIBILITY OF SUCH DAMAGE.
458
459
460The zlib License
461================
462
463Copyright (C) \<YEAR\>, \<AUTHOR\>.
464
465This software is provided 'as-is', without any express or implied
466warranty. In no event will the authors be held liable for any damages
467arising from the use of this software.
468
469Permission is granted to anyone to use this software for any purpose,
470including commercial applications, and to alter it and redistribute it
471freely, subject to the following restrictions:
472
4731. The origin of this software must not be misrepresented; you must not
474 claim that you wrote the original software. If you use this software
475 in a product, an acknowledgment in the product documentation would be
476 appreciated but is not required.
4772. Altered source versions must be plainly marked as such, and must not be
478 misrepresented as being the original software.
4793. This notice may not be removed or altered from any source distribution.
480
481
482Why Three Licenses?
483===================
484
485The zlib License could have been used instead of the Modified (3-clause) BSD
486License, and since the IJG License effectively subsumes the distribution
487conditions of the zlib License, this would have effectively placed
488libjpeg-turbo binary distributions under the IJG License. However, the IJG
489License specifically refers to the Independent JPEG Group and does not extend
490attribution and endorsement protections to other entities. Thus, it was
491desirable to choose a license that granted us the same protections for new code
492that were granted to the IJG for code derived from their software.
493
494
495LEGAL ISSUES
496============
497
498In plain English:
499
5001. We don't promise that this software works. (But if you find any bugs,
501 please let us know!)
5022. You can use this software for whatever you want. You don't have to pay us.
5033. You may not pretend that you wrote this software. If you use it in a
504 program, you must acknowledge somewhere in your documentation that
505 you've used the IJG code.
506
507In legalese:
508
509The authors make NO WARRANTY or representation, either express or implied,
510with respect to this software, its quality, accuracy, merchantability, or
511fitness for a particular purpose. This software is provided "AS IS", and you,
512its user, assume the entire risk as to its quality and accuracy.
513
514This software is copyright (C) 1991-2016, Thomas G. Lane, Guido Vollbeding.
515All Rights Reserved except as specified below.
516
517Permission is hereby granted to use, copy, modify, and distribute this
518software (or portions thereof) for any purpose, without fee, subject to these
519conditions:
520(1) If any part of the source code for this software is distributed, then this
521README file must be included, with this copyright and no-warranty notice
522unaltered; and any additions, deletions, or changes to the original files
523must be clearly indicated in accompanying documentation.
524(2) If only executable code is distributed, then the accompanying
525documentation must state that "this software is based in part on the work of
526the Independent JPEG Group".
527(3) Permission for use of this software is granted only if the user accepts
528full responsibility for any undesirable consequences; the authors accept
529NO LIABILITY for damages of any kind.
530
531These conditions apply to any software derived from or based on the IJG code,
532not just to the unmodified library. If you use our work, you ought to
533acknowledge us.
534
535Permission is NOT granted for the use of any IJG author's name or company name
536in advertising or publicity relating to this software or products derived from
537it. This software may be referred to only as "the Independent JPEG Group's
538software".
539
540We specifically permit and encourage the use of this software as the basis of
541commercial products, provided that all warranty or liability claims are
542assumed by the product vendor.
543
544
545The IJG distribution formerly included code to read and write GIF files.
546To avoid entanglement with the Unisys LZW patent (now expired), GIF reading
547support has been removed altogether, and the GIF writer has been simplified
548to produce "uncompressed GIFs". This technique does not use the LZW
549algorithm; the resulting GIF files are larger than usual, but are readable
550by all standard GIF decoders.
551
552We are required to state that
553 "The Graphics Interchange Format(c) is the Copyright property of
554 CompuServe Incorporated. GIF(sm) is a Service Mark property of
555 CompuServe Incorporated."
556
557
558
559Open Source Software Licensed under the libpng license:
560--------------------------------------------------------------------
5611. libpng
562Copyright (c) 2000-2002, 2004, 2006-2017 Glenn Randers-Pehrson
563
564
565Terms of the libpng license:
566--------------------------------------------------------------------
567This copy of the libpng notices is provided for your convenience. In case of
568any discrepancy between this copy and the notices in the file png.h that is
569included in the libpng distribution, the latter shall prevail.
570
571COPYRIGHT NOTICE, DISCLAIMER, and LICENSE:
572
573If you modify libpng you may insert additional notices immediately following
574this sentence.
575
576This code is released under the libpng license.
577
578libpng versions 1.0.7, July 1, 2000 through 1.6.33, September 28, 2017 are
579Copyright (c) 2000-2002, 2004, 2006-2017 Glenn Randers-Pehrson, are
580derived from libpng-1.0.6, and are distributed according to the same
581disclaimer and license as libpng-1.0.6 with the following individuals
582added to the list of Contributing Authors:
583
584 Simon-Pierre Cadieux
585 Eric S. Raymond
586 Mans Rullgard
587 Cosmin Truta
588 Gilles Vollant
589 James Yu
590 Mandar Sahastrabuddhe
591 Google Inc.
592 Vadim Barkov
593
594and with the following additions to the disclaimer:
595
596 There is no warranty against interference with your enjoyment of the
597 library or against infringement. There is no warranty that our
598 efforts or the library will fulfill any of your particular purposes
599 or needs. This library is provided with all faults, and the entire
600 risk of satisfactory quality, performance, accuracy, and effort is with
601 the user.
602
603Some files in the "contrib" directory and some configure-generated
604files that are distributed with libpng have other copyright owners and
605are released under other open source licenses.
606
607libpng versions 0.97, January 1998, through 1.0.6, March 20, 2000, are
608Copyright (c) 1998-2000 Glenn Randers-Pehrson, are derived from
609libpng-0.96, and are distributed according to the same disclaimer and
610license as libpng-0.96, with the following individuals added to the list
611of Contributing Authors:
612
613 Tom Lane
614 Glenn Randers-Pehrson
615 Willem van Schaik
616
617libpng versions 0.89, June 1996, through 0.96, May 1997, are
618Copyright (c) 1996-1997 Andreas Dilger, are derived from libpng-0.88,
619and are distributed according to the same disclaimer and license as
620libpng-0.88, with the following individuals added to the list of
621Contributing Authors:
622
623 John Bowler
624 Kevin Bracey
625 Sam Bushell
626 Magnus Holmgren
627 Greg Roelofs
628 Tom Tanner
629
630Some files in the "scripts" directory have other copyright owners
631but are released under this license.
632
633libpng versions 0.5, May 1995, through 0.88, January 1996, are
634Copyright (c) 1995-1996 Guy Eric Schalnat, Group 42, Inc.
635
636For the purposes of this copyright and license, "Contributing Authors"
637is defined as the following set of individuals:
638
639 Andreas Dilger
640 Dave Martindale
641 Guy Eric Schalnat
642 Paul Schmidt
643 Tim Wegner
644
645The PNG Reference Library is supplied "AS IS". The Contributing Authors
646and Group 42, Inc. disclaim all warranties, expressed or implied,
647including, without limitation, the warranties of merchantability and of
648fitness for any purpose. The Contributing Authors and Group 42, Inc.
649assume no liability for direct, indirect, incidental, special, exemplary,
650or consequential damages, which may result from the use of the PNG
651Reference Library, even if advised of the possibility of such damage.
652
653Permission is hereby granted to use, copy, modify, and distribute this
654source code, or portions hereof, for any purpose, without fee, subject
655to the following restrictions:
656
657 1. The origin of this source code must not be misrepresented.
658
659 2. Altered versions must be plainly marked as such and must not
660 be misrepresented as being the original source.
661
662 3. This Copyright notice may not be removed or altered from any
663 source or altered source distribution.
664
665The Contributing Authors and Group 42, Inc. specifically permit, without
666fee, and encourage the use of this source code as a component to
667supporting the PNG file format in commercial products. If you use this
668source code in a product, acknowledgment is not required but would be
669appreciated.
670
671END OF COPYRIGHT NOTICE, DISCLAIMER, and LICENSE.
672
673TRADEMARK:
674
675The name "libpng" has not been registered by the Copyright owner
676as a trademark in any jurisdiction. However, because libpng has
677been distributed and maintained world-wide, continually since 1995,
678the Copyright owner claims "common-law trademark protection" in any
679jurisdiction where common-law trademark is recognized.
680
681OSI CERTIFICATION:
682
683Libpng is OSI Certified Open Source Software. OSI Certified Open Source is
684a certification mark of the Open Source Initiative. OSI has not addressed
685the additional disclaimers inserted at version 1.0.7.
686
687EXPORT CONTROL:
688
689The Copyright owner believes that the Export Control Classification
690Number (ECCN) for libpng is EAR99, which means not subject to export
691controls or International Traffic in Arms Regulations (ITAR) because
692it is open source, publicly available software, that does not contain
693any encryption software. See the EAR, paragraphs 734.3(b)(3) and
694734.7(b).
695
696Glenn Randers-Pehrson
697glennrp at users.sourceforge.net
698September 28, 2017
699
700
701
702Open Source Software Licensed under the MIT License and Other Licenses of the Third-Party Components therein:
703--------------------------------------------------------------------
7041. rttr
705Copyright (c) 2014 - 2018 Axel Menzel <info@rttr.org>
706
707
708Terms of the MIT License:
709--------------------------------------------------------------------
710Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
711
712The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
713
714THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
715
716
717For third party catch:
718
719 * Catch v1.12.0
720 * Generated: 2018-01-11 21:56:34.893972
721 * ----------------------------------------------------------
722 * This file has been merged from multiple headers. Please don't edit it directly
723 * Copyright (c) 2012 Two Blue Cubes Ltd. All rights reserved.
724 *
725 * Distributed under the Boost Software License, Version 1.0. (See accompanying
726 * file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
727
728Boost Software License - Version 1.0 - August 17th, 2003
729
730Permission is hereby granted, free of charge, to any person or organization
731obtaining a copy of the software and accompanying documentation covered by
732this license (the "Software") to use, reproduce, display, distribute,
733execute, and transmit the Software, and to prepare derivative works of the
734Software, and to permit third-parties to whom the Software is furnished to
735do so, all subject to the following:
736
737The copyright notices in the Software and this entire statement, including
738the above license grant, this restriction and the following disclaimer,
739must be included in all copies of the Software, in whole or in part, and
740all derivative works of the Software, unless such copies or derivative
741works are solely in the form of machine-executable object code generated by
742a source language processor.
743
744THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
745IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
746FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT
747SHALL THE COPYRIGHT HOLDERS OR ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE
748FOR ANY DAMAGES OR OTHER LIABILITY, WHETHER IN CONTRACT, TORT OR OTHERWISE,
749ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
750DEALINGS IN THE SOFTWARE.
751
752
753For third party nonius:
754
755// Nonius - C++ benchmarking tool
756//
757// Written in 2014 by Martinho Fernandes <martinho.fernandes@gmail.com>
758//
759// To the extent possible under law, the author(s) have dedicated all copyright and related
760// and neighboring rights to this software to the public domain worldwide. This software is
761// distributed without any warranty.
762//
763// You should have received a copy of the CC0 Public Domain Dedication along with this software.
764// If not, see <http://creativecommons.org/publicdomain/zero/1.0/>
765
766CREATIVE COMMONS CORPORATION IS NOT A LAW FIRM AND DOES NOT PROVIDE LEGAL SERVICES. DISTRIBUTION OF THIS DOCUMENT DOES NOT CREATE AN ATTORNEY-CLIENT RELATIONSHIP. CREATIVE COMMONS PROVIDES THIS INFORMATION ON AN "AS-IS" BASIS. CREATIVE COMMONS MAKES NO WARRANTIES REGARDING THE USE OF THIS DOCUMENT OR THE INFORMATION OR WORKS PROVIDED HEREUNDER, AND DISCLAIMS LIABILITY FOR DAMAGES RESULTING FROM THE USE OF THIS DOCUMENT OR THE INFORMATION OR WORKS PROVIDED HEREUNDER.
767Statement of Purpose
768The laws of most jurisdictions throughout the world automatically confer exclusive Copyright and Related Rights (defined below) upon the creator and subsequent owner(s) (each and all, an "owner") of an original work of authorship and/or a database (each, a "Work").
769
770Certain owners wish to permanently relinquish those rights to a Work for the purpose of contributing to a commons of creative, cultural and scientific works ("Commons") that the public can reliably and without fear of later claims of infringement build upon, modify, incorporate in other works, reuse and redistribute as freely as possible in any form whatsoever and for any purposes, including without limitation commercial purposes. These owners may contribute to the Commons to promote the ideal of a free culture and the further production of creative, cultural and scientific works, or to gain reputation or greater distribution for their Work in part through the use and efforts of others.
771
772For these and/or other purposes and motivations, and without any expectation of additional consideration or compensation, the person associating CC0 with a Work (the "Affirmer"), to the extent that he or she is an owner of Copyright and Related Rights in the Work, voluntarily elects to apply CC0 to the Work and publicly distribute the Work under its terms, with knowledge of his or her Copyright and Related Rights in the Work and the meaning and intended legal effect of CC0 on those rights.
773
7741. Copyright and Related Rights. A Work made available under CC0 may be protected by copyright and related or neighboring rights ("Copyright and Related Rights"). Copyright and Related Rights include, but are not limited to, the following:
775
776the right to reproduce, adapt, distribute, perform, display, communicate, and translate a Work;
777moral rights retained by the original author(s) and/or performer(s);
778publicity and privacy rights pertaining to a person's image or likeness depicted in a Work;
779rights protecting against unfair competition in regards to a Work, subject to the limitations in paragraph 4(a), below;
780rights protecting the extraction, dissemination, use and reuse of data in a Work;
781database rights (such as those arising under Directive 96/9/EC of the European Parliament and of the Council of 11 March 1996 on the legal protection of databases, and under any national implementation thereof, including any amended or successor version of such directive); and
782other similar, equivalent or corresponding rights throughout the world based on applicable law or treaty, and any national implementations thereof.
7832. Waiver. To the greatest extent permitted by, but not in contravention of, applicable law, Affirmer hereby overtly, fully, permanently, irrevocably and unconditionally waives, abandons, and surrenders all of Affirmer's Copyright and Related Rights and associated claims and causes of action, whether now known or unknown (including existing as well as future claims and causes of action), in the Work (i) in all territories worldwide, (ii) for the maximum duration provided by applicable law or treaty (including future time extensions), (iii) in any current or future medium and for any number of copies, and (iv) for any purpose whatsoever, including without limitation commercial, advertising or promotional purposes (the "Waiver"). Affirmer makes the Waiver for the benefit of each member of the public at large and to the detriment of Affirmer's heirs and successors, fully intending that such Waiver shall not be subject to revocation, rescission, cancellation, termination, or any other legal or equitable action to disrupt the quiet enjoyment of the Work by the public as contemplated by Affirmer's express Statement of Purpose.
784
7853. Public License Fallback. Should any part of the Waiver for any reason be judged legally invalid or ineffective under applicable law, then the Waiver shall be preserved to the maximum extent permitted taking into account Affirmer's express Statement of Purpose. In addition, to the extent the Waiver is so judged Affirmer hereby grants to each affected person a royalty-free, non transferable, non sublicensable, non exclusive, irrevocable and unconditional license to exercise Affirmer's Copyright and Related Rights in the Work (i) in all territories worldwide, (ii) for the maximum duration provided by applicable law or treaty (including future time extensions), (iii) in any current or future medium and for any number of copies, and (iv) for any purpose whatsoever, including without limitation commercial, advertising or promotional purposes (the "License"). The License shall be deemed effective as of the date CC0 was applied by Affirmer to the Work. Should any part of the License for any reason be judged legally invalid or ineffective under applicable law, such partial invalidity or ineffectiveness shall not invalidate the remainder of the License, and in such case Affirmer hereby affirms that he or she will not (i) exercise any of his or her remaining Copyright and Related Rights in the Work or (ii) assert any associated claims and causes of action with respect to the Work, in either case contrary to Affirmer's express Statement of Purpose.
786
7874. Limitations and Disclaimers.
788
789No trademark or patent rights held by Affirmer are waived, abandoned, surrendered, licensed or otherwise affected by this document.
790Affirmer offers the Work as-is and makes no representations or warranties of any kind concerning the Work, express, implied, statutory or otherwise, including without limitation warranties of title, merchantability, fitness for a particular purpose, non infringement, or the absence of latent or other defects, accuracy, or the present or absence of errors, whether or not discoverable, all to the greatest extent permissible under applicable law.
791Affirmer disclaims responsibility for clearing rights of other persons that may apply to the Work or any use thereof, including without limitation any person's Copyright and Related Rights in the Work. Further, Affirmer disclaims responsibility for obtaining any necessary consents, permissions or other rights required for any use of the Work.
792Affirmer understands and acknowledges that Creative Commons is not a party to this document and has no duty or obligation with respect to this CC0 or use of the Work.
793
794
795For third party rapidjson:
796
797// Tencent is pleased to support the open source community by making RapidJSON available.
798//
799// Copyright (C) 2015 THL A29 Limited, a Tencent company, and Milo Yip. All rights reserved.
800//
801// Licensed under the MIT License (the "License"); you may not use this file except
802// in compliance with the License. You may obtain a copy of the License at
803//
804// http://opensource.org/licenses/MIT
805//
806// Unless required by applicable law or agreed to in writing, software distributed
807// under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
808// CONDITIONS OF ANY KIND, either express or implied. See the License for the
809// specific language governing permissions and limitations under the License.
810
811
812
813Open Source Software Licensed under the Zlib License:
814--------------------------------------------------------------------
8151. zlib
816(C) 1995-2017 Jean-loup Gailly and Mark Adler
817
818
819Terms of the Zlib License:
820--------------------------------------------------------------------
821 This software is provided 'as-is', without any express or implied
822 warranty. In no event will the authors be held liable for any damages
823 arising from the use of this software.
824 Permission is granted to anyone to use this software for any purpose,
825 including commercial applications, and to alter it and redistribute it
826 freely, subject to the following restrictions:
827 1. The origin of this software must not be misrepresented; you must not
828 claim that you wrote the original software. If you use this software
829 in a product, an acknowledgment in the product documentation would be
830 appreciated but is not required.
831 2. Altered source versions must be plainly marked as such, and must not be
832 misrepresented as being the original software.
833 3. This notice may not be removed or altered from any source distribution.
834 Jean-loup Gailly Mark Adler
835 jloup@gzip.org madler@alumni.caltech.edu
836 The data format used by the zlib library is described by RFCs (Request for
837 Comments) 1950 to 1952 in the files http://tools.ietf.org/html/rfc1950
838 (zlib format), rfc1951 (deflate format) and rfc1952 (gzip format).
839
840
841
842Open Source Software Licensed under the GNU LESSER GENERAL PUBLIC LICENSE Version 2.1:
843--------------------------------------------------------------------
8441. ffavc
845Copyright (c) 2021 Tencent. All rights reserved.
846
847
848Terms of the GNU LESSER GENERAL PUBLIC LICENSE Version 2.1:
849--------------------------------------------------------------------
850 GNU LESSER GENERAL PUBLIC LICENSE
851 Version 2.1, February 1999
852
853 Copyright (C) 1991, 1999 Free Software Foundation, Inc.
854 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
855 Everyone is permitted to copy and distribute verbatim copies
856 of this license document, but changing it is not allowed.
857
858[This is the first released version of the Lesser GPL. It also counts
859 as the successor of the GNU Library Public License, version 2, hence
860 the version number 2.1.]
861
862 Preamble
863
864 The licenses for most software are designed to take away your
865freedom to share and change it. By contrast, the GNU General Public
866Licenses are intended to guarantee your freedom to share and change
867free software--to make sure the software is free for all its users.
868
869 This license, the Lesser General Public License, applies to some
870specially designated software packages--typically libraries--of the
871Free Software Foundation and other authors who decide to use it. You
872can use it too, but we suggest you first think carefully about whether
873this license or the ordinary General Public License is the better
874strategy to use in any particular case, based on the explanations below.
875
876 When we speak of free software, we are referring to freedom of use,
877not price. Our General Public Licenses are designed to make sure that
878you have the freedom to distribute copies of free software (and charge
879for this service if you wish); that you receive source code or can get
880it if you want it; that you can change the software and use pieces of
881it in new free programs; and that you are informed that you can do
882these things.
883
884 To protect your rights, we need to make restrictions that forbid
885distributors to deny you these rights or to ask you to surrender these
886rights. These restrictions translate to certain responsibilities for
887you if you distribute copies of the library or if you modify it.
888
889 For example, if you distribute copies of the library, whether gratis
890or for a fee, you must give the recipients all the rights that we gave
891you. You must make sure that they, too, receive or can get the source
892code. If you link other code with the library, you must provide
893complete object files to the recipients, so that they can relink them
894with the library after making changes to the library and recompiling
895it. And you must show them these terms so they know their rights.
896
897 We protect your rights with a two-step method: (1) we copyright the
898library, and (2) we offer you this license, which gives you legal
899permission to copy, distribute and/or modify the library.
900
901 To protect each distributor, we want to make it very clear that
902there is no warranty for the free library. Also, if the library is
903modified by someone else and passed on, the recipients should know
904that what they have is not the original version, so that the original
905author's reputation will not be affected by problems that might be
906introduced by others.
907
908 Finally, software patents pose a constant threat to the existence of
909any free program. We wish to make sure that a company cannot
910effectively restrict the users of a free program by obtaining a
911restrictive license from a patent holder. Therefore, we insist that
912any patent license obtained for a version of the library must be
913consistent with the full freedom of use specified in this license.
914
915 Most GNU software, including some libraries, is covered by the
916ordinary GNU General Public License. This license, the GNU Lesser
917General Public License, applies to certain designated libraries, and
918is quite different from the ordinary General Public License. We use
919this license for certain libraries in order to permit linking those
920libraries into non-free programs.
921
922 When a program is linked with a library, whether statically or using
923a shared library, the combination of the two is legally speaking a
924combined work, a derivative of the original library. The ordinary
925General Public License therefore permits such linking only if the
926entire combination fits its criteria of freedom. The Lesser General
927Public License permits more lax criteria for linking other code with
928the library.
929
930 We call this license the "Lesser" General Public License because it
931does Less to protect the user's freedom than the ordinary General
932Public License. It also provides other free software developers Less
933of an advantage over competing non-free programs. These disadvantages
934are the reason we use the ordinary General Public License for many
935libraries. However, the Lesser license provides advantages in certain
936special circumstances.
937
938 For example, on rare occasions, there may be a special need to
939encourage the widest possible use of a certain library, so that it becomes
940a de-facto standard. To achieve this, non-free programs must be
941allowed to use the library. A more frequent case is that a free
942library does the same job as widely used non-free libraries. In this
943case, there is little to gain by limiting the free library to free
944software only, so we use the Lesser General Public License.
945
946 In other cases, permission to use a particular library in non-free
947programs enables a greater number of people to use a large body of
948free software. For example, permission to use the GNU C Library in
949non-free programs enables many more people to use the whole GNU
950operating system, as well as its variant, the GNU/Linux operating
951system.
952
953 Although the Lesser General Public License is Less protective of the
954users' freedom, it does ensure that the user of a program that is
955linked with the Library has the freedom and the wherewithal to run
956that program using a modified version of the Library.
957
958 The precise terms and conditions for copying, distribution and
959modification follow. Pay close attention to the difference between a
960"work based on the library" and a "work that uses the library". The
961former contains code derived from the library, whereas the latter must
962be combined with the library in order to run.
963
964 GNU LESSER GENERAL PUBLIC LICENSE
965 TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
966
967 0. This License Agreement applies to any software library or other
968program which contains a notice placed by the copyright holder or
969other authorized party saying it may be distributed under the terms of
970this Lesser General Public License (also called "this License").
971Each licensee is addressed as "you".
972
973 A "library" means a collection of software functions and/or data
974prepared so as to be conveniently linked with application programs
975(which use some of those functions and data) to form executables.
976
977 The "Library", below, refers to any such software library or work
978which has been distributed under these terms. A "work based on the
979Library" means either the Library or any derivative work under
980copyright law: that is to say, a work containing the Library or a
981portion of it, either verbatim or with modifications and/or translated
982straightforwardly into another language. (Hereinafter, translation is
983included without limitation in the term "modification".)
984
985 "Source code" for a work means the preferred form of the work for
986making modifications to it. For a library, complete source code means
987all the source code for all modules it contains, plus any associated
988interface definition files, plus the scripts used to control compilation
989and installation of the library.
990
991 Activities other than copying, distribution and modification are not
992covered by this License; they are outside its scope. The act of
993running a program using the Library is not restricted, and output from
994such a program is covered only if its contents constitute a work based
995on the Library (independent of the use of the Library in a tool for
996writing it). Whether that is true depends on what the Library does
997and what the program that uses the Library does.
998
999 1. You may copy and distribute verbatim copies of the Library's
1000complete source code as you receive it, in any medium, provided that
1001you conspicuously and appropriately publish on each copy an
1002appropriate copyright notice and disclaimer of warranty; keep intact
1003all the notices that refer to this License and to the absence of any
1004warranty; and distribute a copy of this License along with the
1005Library.
1006
1007 You may charge a fee for the physical act of transferring a copy,
1008and you may at your option offer warranty protection in exchange for a
1009fee.
1010
1011 2. You may modify your copy or copies of the Library or any portion
1012of it, thus forming a work based on the Library, and copy and
1013distribute such modifications or work under the terms of Section 1
1014above, provided that you also meet all of these conditions:
1015
1016 a) The modified work must itself be a software library.
1017
1018 b) You must cause the files modified to carry prominent notices
1019 stating that you changed the files and the date of any change.
1020
1021 c) You must cause the whole of the work to be licensed at no
1022 charge to all third parties under the terms of this License.
1023
1024 d) If a facility in the modified Library refers to a function or a
1025 table of data to be supplied by an application program that uses
1026 the facility, other than as an argument passed when the facility
1027 is invoked, then you must make a good faith effort to ensure that,
1028 in the event an application does not supply such function or
1029 table, the facility still operates, and performs whatever part of
1030 its purpose remains meaningful.
1031
1032 (For example, a function in a library to compute square roots has
1033 a purpose that is entirely well-defined independent of the
1034 application. Therefore, Subsection 2d requires that any
1035 application-supplied function or table used by this function must
1036 be optional: if the application does not supply it, the square
1037 root function must still compute square roots.)
1038
1039These requirements apply to the modified work as a whole. If
1040identifiable sections of that work are not derived from the Library,
1041and can be reasonably considered independent and separate works in
1042themselves, then this License, and its terms, do not apply to those
1043sections when you distribute them as separate works. But when you
1044distribute the same sections as part of a whole which is a work based
1045on the Library, the distribution of the whole must be on the terms of
1046this License, whose permissions for other licensees extend to the
1047entire whole, and thus to each and every part regardless of who wrote
1048it.
1049
1050Thus, it is not the intent of this section to claim rights or contest
1051your rights to work written entirely by you; rather, the intent is to
1052exercise the right to control the distribution of derivative or
1053collective works based on the Library.
1054
1055In addition, mere aggregation of another work not based on the Library
1056with the Library (or with a work based on the Library) on a volume of
1057a storage or distribution medium does not bring the other work under
1058the scope of this License.
1059
1060 3. You may opt to apply the terms of the ordinary GNU General Public
1061License instead of this License to a given copy of the Library. To do
1062this, you must alter all the notices that refer to this License, so
1063that they refer to the ordinary GNU General Public License, version 2,
1064instead of to this License. (If a newer version than version 2 of the
1065ordinary GNU General Public License has appeared, then you can specify
1066that version instead if you wish.) Do not make any other change in
1067these notices.
1068
1069 Once this change is made in a given copy, it is irreversible for
1070that copy, so the ordinary GNU General Public License applies to all
1071subsequent copies and derivative works made from that copy.
1072
1073 This option is useful when you wish to copy part of the code of
1074the Library into a program that is not a library.
1075
1076 4. You may copy and distribute the Library (or a portion or
1077derivative of it, under Section 2) in object code or executable form
1078under the terms of Sections 1 and 2 above provided that you accompany
1079it with the complete corresponding machine-readable source code, which
1080must be distributed under the terms of Sections 1 and 2 above on a
1081medium customarily used for software interchange.
1082
1083 If distribution of object code is made by offering access to copy
1084from a designated place, then offering equivalent access to copy the
1085source code from the same place satisfies the requirement to
1086distribute the source code, even though third parties are not
1087compelled to copy the source along with the object code.
1088
1089 5. A program that contains no derivative of any portion of the
1090Library, but is designed to work with the Library by being compiled or
1091linked with it, is called a "work that uses the Library". Such a
1092work, in isolation, is not a derivative work of the Library, and
1093therefore falls outside the scope of this License.
1094
1095 However, linking a "work that uses the Library" with the Library
1096creates an executable that is a derivative of the Library (because it
1097contains portions of the Library), rather than a "work that uses the
1098library". The executable is therefore covered by this License.
1099Section 6 states terms for distribution of such executables.
1100
1101 When a "work that uses the Library" uses material from a header file
1102that is part of the Library, the object code for the work may be a
1103derivative work of the Library even though the source code is not.
1104Whether this is true is especially significant if the work can be
1105linked without the Library, or if the work is itself a library. The
1106threshold for this to be true is not precisely defined by law.
1107
1108 If such an object file uses only numerical parameters, data
1109structure layouts and accessors, and small macros and small inline
1110functions (ten lines or less in length), then the use of the object
1111file is unrestricted, regardless of whether it is legally a derivative
1112work. (Executables containing this object code plus portions of the
1113Library will still fall under Section 6.)
1114
1115 Otherwise, if the work is a derivative of the Library, you may
1116distribute the object code for the work under the terms of Section 6.
1117Any executables containing that work also fall under Section 6,
1118whether or not they are linked directly with the Library itself.
1119
1120 6. As an exception to the Sections above, you may also combine or
1121link a "work that uses the Library" with the Library to produce a
1122work containing portions of the Library, and distribute that work
1123under terms of your choice, provided that the terms permit
1124modification of the work for the customer's own use and reverse
1125engineering for debugging such modifications.
1126
1127 You must give prominent notice with each copy of the work that the
1128Library is used in it and that the Library and its use are covered by
1129this License. You must supply a copy of this License. If the work
1130during execution displays copyright notices, you must include the
1131copyright notice for the Library among them, as well as a reference
1132directing the user to the copy of this License. Also, you must do one
1133of these things:
1134
1135 a) Accompany the work with the complete corresponding
1136 machine-readable source code for the Library including whatever
1137 changes were used in the work (which must be distributed under
1138 Sections 1 and 2 above); and, if the work is an executable linked
1139 with the Library, with the complete machine-readable "work that
1140 uses the Library", as object code and/or source code, so that the
1141 user can modify the Library and then relink to produce a modified
1142 executable containing the modified Library. (It is understood
1143 that the user who changes the contents of definitions files in the
1144 Library will not necessarily be able to recompile the application
1145 to use the modified definitions.)
1146
1147 b) Use a suitable shared library mechanism for linking with the
1148 Library. A suitable mechanism is one that (1) uses at run time a
1149 copy of the library already present on the user's computer system,
1150 rather than copying library functions into the executable, and (2)
1151 will operate properly with a modified version of the library, if
1152 the user installs one, as long as the modified version is
1153 interface-compatible with the version that the work was made with.
1154
1155 c) Accompany the work with a written offer, valid for at
1156 least three years, to give the same user the materials
1157 specified in Subsection 6a, above, for a charge no more
1158 than the cost of performing this distribution.
1159
1160 d) If distribution of the work is made by offering access to copy
1161 from a designated place, offer equivalent access to copy the above
1162 specified materials from the same place.
1163
1164 e) Verify that the user has already received a copy of these
1165 materials or that you have already sent this user a copy.
1166
1167 For an executable, the required form of the "work that uses the
1168Library" must include any data and utility programs needed for
1169reproducing the executable from it. However, as a special exception,
1170the materials to be distributed need not include anything that is
1171normally distributed (in either source or binary form) with the major
1172components (compiler, kernel, and so on) of the operating system on
1173which the executable runs, unless that component itself accompanies
1174the executable.
1175
1176 It may happen that this requirement contradicts the license
1177restrictions of other proprietary libraries that do not normally
1178accompany the operating system. Such a contradiction means you cannot
1179use both them and the Library together in an executable that you
1180distribute.
1181
1182 7. You may place library facilities that are a work based on the
1183Library side-by-side in a single library together with other library
1184facilities not covered by this License, and distribute such a combined
1185library, provided that the separate distribution of the work based on
1186the Library and of the other library facilities is otherwise
1187permitted, and provided that you do these two things:
1188
1189 a) Accompany the combined library with a copy of the same work
1190 based on the Library, uncombined with any other library
1191 facilities. This must be distributed under the terms of the
1192 Sections above.
1193
1194 b) Give prominent notice with the combined library of the fact
1195 that part of it is a work based on the Library, and explaining
1196 where to find the accompanying uncombined form of the same work.
1197
1198 8. You may not copy, modify, sublicense, link with, or distribute
1199the Library except as expressly provided under this License. Any
1200attempt otherwise to copy, modify, sublicense, link with, or
1201distribute the Library is void, and will automatically terminate your
1202rights under this License. However, parties who have received copies,
1203or rights, from you under this License will not have their licenses
1204terminated so long as such parties remain in full compliance.
1205
1206 9. You are not required to accept this License, since you have not
1207signed it. However, nothing else grants you permission to modify or
1208distribute the Library or its derivative works. These actions are
1209prohibited by law if you do not accept this License. Therefore, by
1210modifying or distributing the Library (or any work based on the
1211Library), you indicate your acceptance of this License to do so, and
1212all its terms and conditions for copying, distributing or modifying
1213the Library or works based on it.
1214
1215 10. Each time you redistribute the Library (or any work based on the
1216Library), the recipient automatically receives a license from the
1217original licensor to copy, distribute, link with or modify the Library
1218subject to these terms and conditions. You may not impose any further
1219restrictions on the recipients' exercise of the rights granted herein.
1220You are not responsible for enforcing compliance by third parties with
1221this License.
1222
1223 11. If, as a consequence of a court judgment or allegation of patent
1224infringement or for any other reason (not limited to patent issues),
1225conditions are imposed on you (whether by court order, agreement or
1226otherwise) that contradict the conditions of this License, they do not
1227excuse you from the conditions of this License. If you cannot
1228distribute so as to satisfy simultaneously your obligations under this
1229License and any other pertinent obligations, then as a consequence you
1230may not distribute the Library at all. For example, if a patent
1231license would not permit royalty-free redistribution of the Library by
1232all those who receive copies directly or indirectly through you, then
1233the only way you could satisfy both it and this License would be to
1234refrain entirely from distribution of the Library.
1235
1236If any portion of this section is held invalid or unenforceable under any
1237particular circumstance, the balance of the section is intended to apply,
1238and the section as a whole is intended to apply in other circumstances.
1239
1240It is not the purpose of this section to induce you to infringe any
1241patents or other property right claims or to contest validity of any
1242such claims; this section has the sole purpose of protecting the
1243integrity of the free software distribution system which is
1244implemented by public license practices. Many people have made
1245generous contributions to the wide range of software distributed
1246through that system in reliance on consistent application of that
1247system; it is up to the author/donor to decide if he or she is willing
1248to distribute software through any other system and a licensee cannot
1249impose that choice.
1250
1251This section is intended to make thoroughly clear what is believed to
1252be a consequence of the rest of this License.
1253
1254 12. If the distribution and/or use of the Library is restricted in
1255certain countries either by patents or by copyrighted interfaces, the
1256original copyright holder who places the Library under this License may add
1257an explicit geographical distribution limitation excluding those countries,
1258so that distribution is permitted only in or among countries not thus
1259excluded. In such case, this License incorporates the limitation as if
1260written in the body of this License.
1261
1262 13. The Free Software Foundation may publish revised and/or new
1263versions of the Lesser General Public License from time to time.
1264Such new versions will be similar in spirit to the present version,
1265but may differ in detail to address new problems or concerns.
1266
1267Each version is given a distinguishing version number. If the Library
1268specifies a version number of this License which applies to it and
1269"any later version", you have the option of following the terms and
1270conditions either of that version or of any later version published by
1271the Free Software Foundation. If the Library does not specify a
1272license version number, you may choose any version ever published by
1273the Free Software Foundation.
1274
1275 14. If you wish to incorporate parts of the Library into other free
1276programs whose distribution conditions are incompatible with these,
1277write to the author to ask for permission. For software which is
1278copyrighted by the Free Software Foundation, write to the Free
1279Software Foundation; we sometimes make exceptions for this. Our
1280decision will be guided by the two goals of preserving the free status
1281of all derivatives of our free software and of promoting the sharing
1282and reuse of software generally.
1283
1284 NO WARRANTY
1285
1286 15. BECAUSE THE LIBRARY IS LICENSED FREE OF CHARGE, THERE IS NO
1287WARRANTY FOR THE LIBRARY, TO THE EXTENT PERMITTED BY APPLICABLE LAW.
1288EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR
1289OTHER PARTIES PROVIDE THE LIBRARY "AS IS" WITHOUT WARRANTY OF ANY
1290KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE
1291IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
1292PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE
1293LIBRARY IS WITH YOU. SHOULD THE LIBRARY PROVE DEFECTIVE, YOU ASSUME
1294THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
1295
1296 16. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN
1297WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY
1298AND/OR REDISTRIBUTE THE LIBRARY AS PERMITTED ABOVE, BE LIABLE TO YOU
1299FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR
1300CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE
1301LIBRARY (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING
1302RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A
1303FAILURE OF THE LIBRARY TO OPERATE WITH ANY OTHER SOFTWARE), EVEN IF
1304SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH
1305DAMAGES.
1306
1307 END OF TERMS AND CONDITIONS
1308
1309 How to Apply These Terms to Your New Libraries
1310
1311 If you develop a new library, and you want it to be of the greatest
1312possible use to the public, we recommend making it free software that
1313everyone can redistribute and change. You can do so by permitting
1314redistribution under these terms (or, alternatively, under the terms of the
1315ordinary General Public License).
1316
1317 To apply these terms, attach the following notices to the library. It is
1318safest to attach them to the start of each source file to most effectively
1319convey the exclusion of warranty; and each file should have at least the
1320"copyright" line and a pointer to where the full notice is found.
1321
1322 <one line to give the library's name and a brief idea of what it does.>
1323 Copyright (C) <year> <name of author>
1324
1325 This library is free software; you can redistribute it and/or
1326 modify it under the terms of the GNU Lesser General Public
1327 License as published by the Free Software Foundation; either
1328 version 2.1 of the License, or (at your option) any later version.
1329
1330 This library is distributed in the hope that it will be useful,
1331 but WITHOUT ANY WARRANTY; without even the implied warranty of
1332 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
1333 Lesser General Public License for more details.
1334
1335 You should have received a copy of the GNU Lesser General Public
1336 License along with this library; if not, write to the Free Software
1337 Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
1338
1339Also add information on how to contact you by electronic and paper mail.
1340
1341You should also get your employer (if you work as a programmer) or your
1342school, if any, to sign a "copyright disclaimer" for the library, if
1343necessary. Here is a sample; alter the names:
1344
1345 Yoyodyne, Inc., hereby disclaims all copyright interest in the
1346 library `Frob' (a library for tweaking knobs) written by James Random Hacker.
1347
1348 <signature of Ty Coon>, 1 April 1990
1349 Ty Coon, President of Vice
1350That's all there is to it!