xref: /OK3568_Linux_fs/external/chromium/licenses/LICENSE.md.1 (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593Smuzhiyunlibjpeg-turbo Licenses
2*4882a593Smuzhiyun======================
3*4882a593Smuzhiyun
4*4882a593Smuzhiyunlibjpeg-turbo is covered by three compatible BSD-style open source licenses:
5*4882a593Smuzhiyun
6*4882a593Smuzhiyun- The IJG (Independent JPEG Group) License, which is listed in
7*4882a593Smuzhiyun  [README.ijg](README.ijg)
8*4882a593Smuzhiyun
9*4882a593Smuzhiyun  This license applies to the libjpeg API library and associated programs
10*4882a593Smuzhiyun  (any code inherited from libjpeg, and any modifications to that code.)
11*4882a593Smuzhiyun
12*4882a593Smuzhiyun- The Modified (3-clause) BSD License, which is listed below
13*4882a593Smuzhiyun
14*4882a593Smuzhiyun  This license covers the TurboJPEG API library and associated programs, as
15*4882a593Smuzhiyun  well as the build system.
16*4882a593Smuzhiyun
17*4882a593Smuzhiyun- The [zlib License](https://opensource.org/licenses/Zlib)
18*4882a593Smuzhiyun
19*4882a593Smuzhiyun  This license is a subset of the other two, and it covers the libjpeg-turbo
20*4882a593Smuzhiyun  SIMD extensions.
21*4882a593Smuzhiyun
22*4882a593Smuzhiyun
23*4882a593SmuzhiyunComplying with the libjpeg-turbo Licenses
24*4882a593Smuzhiyun=========================================
25*4882a593Smuzhiyun
26*4882a593SmuzhiyunThis section provides a roll-up of the libjpeg-turbo licensing terms, to the
27*4882a593Smuzhiyunbest of our understanding.
28*4882a593Smuzhiyun
29*4882a593Smuzhiyun1.  If you are distributing a modified version of the libjpeg-turbo source,
30*4882a593Smuzhiyun    then:
31*4882a593Smuzhiyun
32*4882a593Smuzhiyun    1.  You cannot alter or remove any existing copyright or license notices
33*4882a593Smuzhiyun        from the source.
34*4882a593Smuzhiyun
35*4882a593Smuzhiyun        **Origin**
36*4882a593Smuzhiyun        - Clause 1 of the IJG License
37*4882a593Smuzhiyun        - Clause 1 of the Modified BSD License
38*4882a593Smuzhiyun        - Clauses 1 and 3 of the zlib License
39*4882a593Smuzhiyun
40*4882a593Smuzhiyun    2.  You must add your own copyright notice to the header of each source
41*4882a593Smuzhiyun        file you modified, so others can tell that you modified that file (if
42*4882a593Smuzhiyun        there is not an existing copyright header in that file, then you can
43*4882a593Smuzhiyun        simply add a notice stating that you modified the file.)
44*4882a593Smuzhiyun
45*4882a593Smuzhiyun        **Origin**
46*4882a593Smuzhiyun        - Clause 1 of the IJG License
47*4882a593Smuzhiyun        - Clause 2 of the zlib License
48*4882a593Smuzhiyun
49*4882a593Smuzhiyun    3.  You must include the IJG README file, and you must not alter any of the
50*4882a593Smuzhiyun        copyright or license text in that file.
51*4882a593Smuzhiyun
52*4882a593Smuzhiyun        **Origin**
53*4882a593Smuzhiyun        - Clause 1 of the IJG License
54*4882a593Smuzhiyun
55*4882a593Smuzhiyun2.  If you are distributing only libjpeg-turbo binaries without the source, or
56*4882a593Smuzhiyun    if you are distributing an application that statically links with
57*4882a593Smuzhiyun    libjpeg-turbo, then:
58*4882a593Smuzhiyun
59*4882a593Smuzhiyun    1.  Your product documentation must include a message stating:
60*4882a593Smuzhiyun
61*4882a593Smuzhiyun        This software is based in part on the work of the Independent JPEG
62*4882a593Smuzhiyun        Group.
63*4882a593Smuzhiyun
64*4882a593Smuzhiyun        **Origin**
65*4882a593Smuzhiyun        - Clause 2 of the IJG license
66*4882a593Smuzhiyun
67*4882a593Smuzhiyun    2.  If your binary distribution includes or uses the TurboJPEG API, then
68*4882a593Smuzhiyun        your product documentation must include the text of the Modified BSD
69*4882a593Smuzhiyun        License (see below.)
70*4882a593Smuzhiyun
71*4882a593Smuzhiyun        **Origin**
72*4882a593Smuzhiyun        - Clause 2 of the Modified BSD License
73*4882a593Smuzhiyun
74*4882a593Smuzhiyun3.  You cannot use the name of the IJG or The libjpeg-turbo Project or the
75*4882a593Smuzhiyun    contributors thereof in advertising, publicity, etc.
76*4882a593Smuzhiyun
77*4882a593Smuzhiyun    **Origin**
78*4882a593Smuzhiyun    - IJG License
79*4882a593Smuzhiyun    - Clause 3 of the Modified BSD License
80*4882a593Smuzhiyun
81*4882a593Smuzhiyun4.  The IJG and The libjpeg-turbo Project do not warrant libjpeg-turbo to be
82*4882a593Smuzhiyun    free of defects, nor do we accept any liability for undesirable
83*4882a593Smuzhiyun    consequences resulting from your use of the software.
84*4882a593Smuzhiyun
85*4882a593Smuzhiyun    **Origin**
86*4882a593Smuzhiyun    - IJG License
87*4882a593Smuzhiyun    - Modified BSD License
88*4882a593Smuzhiyun    - zlib License
89*4882a593Smuzhiyun
90*4882a593Smuzhiyun
91*4882a593SmuzhiyunThe Modified (3-clause) BSD License
92*4882a593Smuzhiyun===================================
93*4882a593Smuzhiyun
94*4882a593SmuzhiyunCopyright (C)2009-2020 D. R. Commander.  All Rights Reserved.
95*4882a593SmuzhiyunCopyright (C)2015 Viktor Szathmáry.  All Rights Reserved.
96*4882a593Smuzhiyun
97*4882a593SmuzhiyunRedistribution and use in source and binary forms, with or without
98*4882a593Smuzhiyunmodification, are permitted provided that the following conditions are met:
99*4882a593Smuzhiyun
100*4882a593Smuzhiyun- Redistributions of source code must retain the above copyright notice,
101*4882a593Smuzhiyun  this list of conditions and the following disclaimer.
102*4882a593Smuzhiyun- Redistributions in binary form must reproduce the above copyright notice,
103*4882a593Smuzhiyun  this list of conditions and the following disclaimer in the documentation
104*4882a593Smuzhiyun  and/or other materials provided with the distribution.
105*4882a593Smuzhiyun- Neither the name of the libjpeg-turbo Project nor the names of its
106*4882a593Smuzhiyun  contributors may be used to endorse or promote products derived from this
107*4882a593Smuzhiyun  software without specific prior written permission.
108*4882a593Smuzhiyun
109*4882a593SmuzhiyunTHIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS",
110*4882a593SmuzhiyunAND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
111*4882a593SmuzhiyunIMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
112*4882a593SmuzhiyunARE DISCLAIMED.  IN NO EVENT SHALL THE COPYRIGHT HOLDERS OR CONTRIBUTORS BE
113*4882a593SmuzhiyunLIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
114*4882a593SmuzhiyunCONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
115*4882a593SmuzhiyunSUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
116*4882a593SmuzhiyunINTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
117*4882a593SmuzhiyunCONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
118*4882a593SmuzhiyunARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
119*4882a593SmuzhiyunPOSSIBILITY OF SUCH DAMAGE.
120*4882a593Smuzhiyun
121*4882a593Smuzhiyun
122*4882a593SmuzhiyunWhy Three Licenses?
123*4882a593Smuzhiyun===================
124*4882a593Smuzhiyun
125*4882a593SmuzhiyunThe zlib License could have been used instead of the Modified (3-clause) BSD
126*4882a593SmuzhiyunLicense, and since the IJG License effectively subsumes the distribution
127*4882a593Smuzhiyunconditions of the zlib License, this would have effectively placed
128*4882a593Smuzhiyunlibjpeg-turbo binary distributions under the IJG License.  However, the IJG
129*4882a593SmuzhiyunLicense specifically refers to the Independent JPEG Group and does not extend
130*4882a593Smuzhiyunattribution and endorsement protections to other entities.  Thus, it was
131*4882a593Smuzhiyundesirable to choose a license that granted us the same protections for new code
132*4882a593Smuzhiyunthat were granted to the IJG for code derived from their software.
133