xref: /rockchip-linux_mpp/LICENSES/Apache-2.0 (revision 437bfbeb9567cca9cd9080e3f6954aa9d6a94f18)
1*437bfbebSnyanmisakaValid-License-Identifier: Apache-2.0
2*437bfbebSnyanmisakaSPDX-URL: https://spdx.org/licenses/Apache-2.0.html
3*437bfbebSnyanmisakaUsage-Guide:
4*437bfbebSnyanmisaka  To use the Apache License version 2.0 put the following SPDX tag/value
5*437bfbebSnyanmisaka  pair into a comment according to the placement guidelines in the
6*437bfbebSnyanmisaka  licensing rules documentation:
7*437bfbebSnyanmisaka    SPDX-License-Identifier: Apache-2.0
8*437bfbebSnyanmisakaLicense-Text:
9*437bfbebSnyanmisaka
10*437bfbebSnyanmisakaApache License
11*437bfbebSnyanmisaka
12*437bfbebSnyanmisakaVersion 2.0, January 2004
13*437bfbebSnyanmisaka
14*437bfbebSnyanmisakahttp://www.apache.org/licenses/
15*437bfbebSnyanmisaka
16*437bfbebSnyanmisakaTERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
17*437bfbebSnyanmisaka
18*437bfbebSnyanmisaka1. Definitions.
19*437bfbebSnyanmisaka
20*437bfbebSnyanmisaka"License" shall mean the terms and conditions for use, reproduction, and
21*437bfbebSnyanmisakadistribution as defined by Sections 1 through 9 of this document.
22*437bfbebSnyanmisaka
23*437bfbebSnyanmisaka"Licensor" shall mean the copyright owner or entity authorized by the
24*437bfbebSnyanmisakacopyright owner that is granting the License.
25*437bfbebSnyanmisaka
26*437bfbebSnyanmisaka"Legal Entity" shall mean the union of the acting entity and all other
27*437bfbebSnyanmisakaentities that control, are controlled by, or are under common control with
28*437bfbebSnyanmisakathat entity. For the purposes of this definition, "control" means (i) the
29*437bfbebSnyanmisakapower, direct or indirect, to cause the direction or management of such
30*437bfbebSnyanmisakaentity, whether by contract or otherwise, or (ii) ownership of fifty
31*437bfbebSnyanmisakapercent (50%) or more of the outstanding shares, or (iii) beneficial
32*437bfbebSnyanmisakaownership of such entity.
33*437bfbebSnyanmisaka
34*437bfbebSnyanmisaka"You" (or "Your") shall mean an individual or Legal Entity exercising
35*437bfbebSnyanmisakapermissions granted by this License.
36*437bfbebSnyanmisaka
37*437bfbebSnyanmisaka"Source" form shall mean the preferred form for making modifications,
38*437bfbebSnyanmisakaincluding but not limited to software source code, documentation source,
39*437bfbebSnyanmisakaand configuration files.
40*437bfbebSnyanmisaka
41*437bfbebSnyanmisaka"Object" form shall mean any form resulting from mechanical transformation
42*437bfbebSnyanmisakaor translation of a Source form, including but not limited to compiled
43*437bfbebSnyanmisakaobject code, generated documentation, and conversions to other media types.
44*437bfbebSnyanmisaka
45*437bfbebSnyanmisaka"Work" shall mean the work of authorship, whether in Source or Object form,
46*437bfbebSnyanmisakamade available under the License, as indicated by a copyright notice that
47*437bfbebSnyanmisakais included in or attached to the work (an example is provided in the
48*437bfbebSnyanmisakaAppendix below).
49*437bfbebSnyanmisaka
50*437bfbebSnyanmisaka"Derivative Works" shall mean any work, whether in Source or Object form,
51*437bfbebSnyanmisakathat is based on (or derived from) the Work and for which the editorial
52*437bfbebSnyanmisakarevisions, annotations, elaborations, or other modifications represent, as
53*437bfbebSnyanmisakaa whole, an original work of authorship. For the purposes of this License,
54*437bfbebSnyanmisakaDerivative Works shall not include works that remain separable from, or
55*437bfbebSnyanmisakamerely link (or bind by name) to the interfaces of, the Work and Derivative
56*437bfbebSnyanmisakaWorks thereof.
57*437bfbebSnyanmisaka
58*437bfbebSnyanmisaka"Contribution" shall mean any work of authorship, including the original
59*437bfbebSnyanmisakaversion of the Work and any modifications or additions to that Work or
60*437bfbebSnyanmisakaDerivative Works thereof, that is intentionally submitted to Licensor for
61*437bfbebSnyanmisakainclusion in the Work by the copyright owner or by an individual or Legal
62*437bfbebSnyanmisakaEntity authorized to submit on behalf of the copyright owner. For the
63*437bfbebSnyanmisakapurposes of this definition, "submitted" means any form of electronic,
64*437bfbebSnyanmisakaverbal, or written communication sent to the Licensor or its
65*437bfbebSnyanmisakarepresentatives, including but not limited to communication on electronic
66*437bfbebSnyanmisakamailing lists, source code control systems, and issue tracking systems that
67*437bfbebSnyanmisakaare managed by, or on behalf of, the Licensor for the purpose of discussing
68*437bfbebSnyanmisakaand improving the Work, but excluding communication that is conspicuously
69*437bfbebSnyanmisakamarked or otherwise designated in writing by the copyright owner as "Not a
70*437bfbebSnyanmisakaContribution."
71*437bfbebSnyanmisaka
72*437bfbebSnyanmisaka"Contributor" shall mean Licensor and any individual or Legal Entity on
73*437bfbebSnyanmisakabehalf of whom a Contribution has been received by Licensor and
74*437bfbebSnyanmisakasubsequently incorporated within the Work.
75*437bfbebSnyanmisaka
76*437bfbebSnyanmisaka2. Grant of Copyright License. Subject to the terms and conditions of this
77*437bfbebSnyanmisaka   License, each Contributor hereby grants to You a perpetual, worldwide,
78*437bfbebSnyanmisaka   non-exclusive, no-charge, royalty-free, irrevocable copyright license to
79*437bfbebSnyanmisaka   reproduce, prepare Derivative Works of, publicly display, publicly
80*437bfbebSnyanmisaka   perform, sublicense, and distribute the Work and such Derivative Works
81*437bfbebSnyanmisaka   in Source or Object form.
82*437bfbebSnyanmisaka
83*437bfbebSnyanmisaka3. Grant of Patent License. Subject to the terms and conditions of this
84*437bfbebSnyanmisaka   License, each Contributor hereby grants to You a perpetual, worldwide,
85*437bfbebSnyanmisaka   non-exclusive, no-charge, royalty-free, irrevocable (except as stated in
86*437bfbebSnyanmisaka   this section) patent license to make, have made, use, offer to sell,
87*437bfbebSnyanmisaka   sell, import, and otherwise transfer the Work, where such license
88*437bfbebSnyanmisaka   applies only to those patent claims licensable by such Contributor that
89*437bfbebSnyanmisaka   are necessarily infringed by their Contribution(s) alone or by
90*437bfbebSnyanmisaka   combination of their Contribution(s) with the Work to which such
91*437bfbebSnyanmisaka   Contribution(s) was submitted. If You institute patent litigation
92*437bfbebSnyanmisaka   against any entity (including a cross-claim or counterclaim in a
93*437bfbebSnyanmisaka   lawsuit) alleging that the Work or a Contribution incorporated within
94*437bfbebSnyanmisaka   the Work constitutes direct or contributory patent infringement, then
95*437bfbebSnyanmisaka   any patent licenses granted to You under this License for that Work
96*437bfbebSnyanmisaka   shall terminate as of the date such litigation is filed.
97*437bfbebSnyanmisaka
98*437bfbebSnyanmisaka4. Redistribution. You may reproduce and distribute copies of the Work or
99*437bfbebSnyanmisaka   Derivative Works thereof in any medium, with or without modifications,
100*437bfbebSnyanmisaka   and in Source or Object form, provided that You meet the following
101*437bfbebSnyanmisaka   conditions:
102*437bfbebSnyanmisaka
103*437bfbebSnyanmisaka   a. You must give any other recipients of the Work or Derivative Works a
104*437bfbebSnyanmisaka      copy of this License; and
105*437bfbebSnyanmisaka
106*437bfbebSnyanmisaka   b. You must cause any modified files to carry prominent notices stating
107*437bfbebSnyanmisaka      that You changed the files; and
108*437bfbebSnyanmisaka
109*437bfbebSnyanmisaka   c. You must retain, in the Source form of any Derivative Works that You
110*437bfbebSnyanmisaka      distribute, all copyright, patent, trademark, and attribution notices
111*437bfbebSnyanmisaka      from the Source form of the Work, excluding those notices that do not
112*437bfbebSnyanmisaka      pertain to any part of the Derivative Works; and
113*437bfbebSnyanmisaka
114*437bfbebSnyanmisaka   d. If the Work includes a "NOTICE" text file as part of its
115*437bfbebSnyanmisaka      distribution, then any Derivative Works that You distribute must
116*437bfbebSnyanmisaka      include a readable copy of the attribution notices contained within
117*437bfbebSnyanmisaka      such NOTICE file, excluding those notices that do not pertain to any
118*437bfbebSnyanmisaka      part of the Derivative Works, in at least one of the following
119*437bfbebSnyanmisaka      places: within a NOTICE text file distributed as part of the
120*437bfbebSnyanmisaka      Derivative Works; within the Source form or documentation, if
121*437bfbebSnyanmisaka      provided along with the Derivative Works; or, within a display
122*437bfbebSnyanmisaka      generated by the Derivative Works, if and wherever such third-party
123*437bfbebSnyanmisaka      notices normally appear. The contents of the NOTICE file are for
124*437bfbebSnyanmisaka      informational purposes only and do not modify the License. You may
125*437bfbebSnyanmisaka      add Your own attribution notices within Derivative Works that You
126*437bfbebSnyanmisaka      distribute, alongside or as an addendum to the NOTICE text from the
127*437bfbebSnyanmisaka      Work, provided that such additional attribution notices cannot be
128*437bfbebSnyanmisaka      construed as modifying the License.
129*437bfbebSnyanmisaka
130*437bfbebSnyanmisaka    You may add Your own copyright statement to Your modifications and may
131*437bfbebSnyanmisaka    provide additional or different license terms and conditions for use,
132*437bfbebSnyanmisaka    reproduction, or distribution of Your modifications, or for any such
133*437bfbebSnyanmisaka    Derivative Works as a whole, provided Your use, reproduction, and
134*437bfbebSnyanmisaka    distribution of the Work otherwise complies with the conditions stated
135*437bfbebSnyanmisaka    in this License.
136*437bfbebSnyanmisaka
137*437bfbebSnyanmisaka5. Submission of Contributions. Unless You explicitly state otherwise, any
138*437bfbebSnyanmisaka   Contribution intentionally submitted for inclusion in the Work by You to
139*437bfbebSnyanmisaka   the Licensor shall be under the terms and conditions of this License,
140*437bfbebSnyanmisaka   without any additional terms or conditions. Notwithstanding the above,
141*437bfbebSnyanmisaka   nothing herein shall supersede or modify the terms of any separate
142*437bfbebSnyanmisaka   license agreement you may have executed with Licensor regarding such
143*437bfbebSnyanmisaka   Contributions.
144*437bfbebSnyanmisaka
145*437bfbebSnyanmisaka6. Trademarks. This License does not grant permission to use the trade
146*437bfbebSnyanmisaka   names, trademarks, service marks, or product names of the Licensor,
147*437bfbebSnyanmisaka   except as required for reasonable and customary use in describing the
148*437bfbebSnyanmisaka   origin of the Work and reproducing the content of the NOTICE file.
149*437bfbebSnyanmisaka
150*437bfbebSnyanmisaka7. Disclaimer of Warranty. Unless required by applicable law or agreed to
151*437bfbebSnyanmisaka   in writing, Licensor provides the Work (and each Contributor provides
152*437bfbebSnyanmisaka   its Contributions) on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS
153*437bfbebSnyanmisaka   OF ANY KIND, either express or implied, including, without limitation,
154*437bfbebSnyanmisaka   any warranties or conditions of TITLE, NON-INFRINGEMENT,
155*437bfbebSnyanmisaka   MERCHANTABILITY, or FITNESS FOR A PARTICULAR PURPOSE. You are solely
156*437bfbebSnyanmisaka   responsible for determining the appropriateness of using or
157*437bfbebSnyanmisaka   redistributing the Work and assume any risks associated with Your
158*437bfbebSnyanmisaka   exercise of permissions under this License.
159*437bfbebSnyanmisaka
160*437bfbebSnyanmisaka8. Limitation of Liability. In no event and under no legal theory, whether
161*437bfbebSnyanmisaka   in tort (including negligence), contract, or otherwise, unless required
162*437bfbebSnyanmisaka   by applicable law (such as deliberate and grossly negligent acts) or
163*437bfbebSnyanmisaka   agreed to in writing, shall any Contributor be liable to You for
164*437bfbebSnyanmisaka   damages, including any direct, indirect, special, incidental, or
165*437bfbebSnyanmisaka   consequential damages of any character arising as a result of this
166*437bfbebSnyanmisaka   License or out of the use or inability to use the Work (including but
167*437bfbebSnyanmisaka   not limited to damages for loss of goodwill, work stoppage, computer
168*437bfbebSnyanmisaka   failure or malfunction, or any and all other commercial damages or
169*437bfbebSnyanmisaka   losses), even if such Contributor has been advised of the possibility of
170*437bfbebSnyanmisaka   such damages.
171*437bfbebSnyanmisaka
172*437bfbebSnyanmisaka9. Accepting Warranty or Additional Liability. While redistributing the
173*437bfbebSnyanmisaka   Work or Derivative Works thereof, You may choose to offer, and charge a
174*437bfbebSnyanmisaka   fee for, acceptance of support, warranty, indemnity, or other liability
175*437bfbebSnyanmisaka   obligations and/or rights consistent with this License. However, in
176*437bfbebSnyanmisaka   accepting such obligations, You may act only on Your own behalf and on
177*437bfbebSnyanmisaka   Your sole responsibility, not on behalf of any other Contributor, and
178*437bfbebSnyanmisaka   only if You agree to indemnify, defend, and hold each Contributor
179*437bfbebSnyanmisaka   harmless for any liability incurred by, or claims asserted against, such
180*437bfbebSnyanmisaka   Contributor by reason of your accepting any such warranty or additional
181*437bfbebSnyanmisaka   liability.
182*437bfbebSnyanmisaka
183*437bfbebSnyanmisakaEND OF TERMS AND CONDITIONS
184