13b921b29Sopenharmony_cilibjpeg-turbo Licenses
23b921b29Sopenharmony_ci======================
33b921b29Sopenharmony_ci
43b921b29Sopenharmony_cilibjpeg-turbo is covered by three compatible BSD-style open source licenses:
53b921b29Sopenharmony_ci
63b921b29Sopenharmony_ci- The IJG (Independent JPEG Group) License, which is listed in
73b921b29Sopenharmony_ci  [README.ijg](README.ijg)
83b921b29Sopenharmony_ci
93b921b29Sopenharmony_ci  This license applies to the libjpeg API library and associated programs
103b921b29Sopenharmony_ci  (any code inherited from libjpeg, and any modifications to that code.)
113b921b29Sopenharmony_ci
123b921b29Sopenharmony_ci- The Modified (3-clause) BSD License, which is listed below
133b921b29Sopenharmony_ci
143b921b29Sopenharmony_ci  This license covers the TurboJPEG API library and associated programs, as
153b921b29Sopenharmony_ci  well as the build system.
163b921b29Sopenharmony_ci
173b921b29Sopenharmony_ci- The [zlib License](https://opensource.org/licenses/Zlib)
183b921b29Sopenharmony_ci
193b921b29Sopenharmony_ci  This license is a subset of the other two, and it covers the libjpeg-turbo
203b921b29Sopenharmony_ci  SIMD extensions.
213b921b29Sopenharmony_ci
223b921b29Sopenharmony_ci
233b921b29Sopenharmony_ciComplying with the libjpeg-turbo Licenses
243b921b29Sopenharmony_ci=========================================
253b921b29Sopenharmony_ci
263b921b29Sopenharmony_ciThis section provides a roll-up of the libjpeg-turbo licensing terms, to the
273b921b29Sopenharmony_cibest of our understanding.
283b921b29Sopenharmony_ci
293b921b29Sopenharmony_ci1.  If you are distributing a modified version of the libjpeg-turbo source,
303b921b29Sopenharmony_ci    then:
313b921b29Sopenharmony_ci
323b921b29Sopenharmony_ci    1.  You cannot alter or remove any existing copyright or license notices
333b921b29Sopenharmony_ci        from the source.
343b921b29Sopenharmony_ci
353b921b29Sopenharmony_ci        **Origin**
363b921b29Sopenharmony_ci        - Clause 1 of the IJG License
373b921b29Sopenharmony_ci        - Clause 1 of the Modified BSD License
383b921b29Sopenharmony_ci        - Clauses 1 and 3 of the zlib License
393b921b29Sopenharmony_ci
403b921b29Sopenharmony_ci    2.  You must add your own copyright notice to the header of each source
413b921b29Sopenharmony_ci        file you modified, so others can tell that you modified that file (if
423b921b29Sopenharmony_ci        there is not an existing copyright header in that file, then you can
433b921b29Sopenharmony_ci        simply add a notice stating that you modified the file.)
443b921b29Sopenharmony_ci
453b921b29Sopenharmony_ci        **Origin**
463b921b29Sopenharmony_ci        - Clause 1 of the IJG License
473b921b29Sopenharmony_ci        - Clause 2 of the zlib License
483b921b29Sopenharmony_ci
493b921b29Sopenharmony_ci    3.  You must include the IJG README file, and you must not alter any of the
503b921b29Sopenharmony_ci        copyright or license text in that file.
513b921b29Sopenharmony_ci
523b921b29Sopenharmony_ci        **Origin**
533b921b29Sopenharmony_ci        - Clause 1 of the IJG License
543b921b29Sopenharmony_ci
553b921b29Sopenharmony_ci2.  If you are distributing only libjpeg-turbo binaries without the source, or
563b921b29Sopenharmony_ci    if you are distributing an application that statically links with
573b921b29Sopenharmony_ci    libjpeg-turbo, then:
583b921b29Sopenharmony_ci
593b921b29Sopenharmony_ci    1.  Your product documentation must include a message stating:
603b921b29Sopenharmony_ci
613b921b29Sopenharmony_ci        This software is based in part on the work of the Independent JPEG
623b921b29Sopenharmony_ci        Group.
633b921b29Sopenharmony_ci
643b921b29Sopenharmony_ci        **Origin**
653b921b29Sopenharmony_ci        - Clause 2 of the IJG license
663b921b29Sopenharmony_ci
673b921b29Sopenharmony_ci    2.  If your binary distribution includes or uses the TurboJPEG API, then
683b921b29Sopenharmony_ci        your product documentation must include the text of the Modified BSD
693b921b29Sopenharmony_ci        License (see below.)
703b921b29Sopenharmony_ci
713b921b29Sopenharmony_ci        **Origin**
723b921b29Sopenharmony_ci        - Clause 2 of the Modified BSD License
733b921b29Sopenharmony_ci
743b921b29Sopenharmony_ci3.  You cannot use the name of the IJG or The libjpeg-turbo Project or the
753b921b29Sopenharmony_ci    contributors thereof in advertising, publicity, etc.
763b921b29Sopenharmony_ci
773b921b29Sopenharmony_ci    **Origin**
783b921b29Sopenharmony_ci    - IJG License
793b921b29Sopenharmony_ci    - Clause 3 of the Modified BSD License
803b921b29Sopenharmony_ci
813b921b29Sopenharmony_ci4.  The IJG and The libjpeg-turbo Project do not warrant libjpeg-turbo to be
823b921b29Sopenharmony_ci    free of defects, nor do we accept any liability for undesirable
833b921b29Sopenharmony_ci    consequences resulting from your use of the software.
843b921b29Sopenharmony_ci
853b921b29Sopenharmony_ci    **Origin**
863b921b29Sopenharmony_ci    - IJG License
873b921b29Sopenharmony_ci    - Modified BSD License
883b921b29Sopenharmony_ci    - zlib License
893b921b29Sopenharmony_ci
903b921b29Sopenharmony_ci
913b921b29Sopenharmony_ciThe Modified (3-clause) BSD License
923b921b29Sopenharmony_ci===================================
933b921b29Sopenharmony_ci
943b921b29Sopenharmony_ciCopyright (C)2009-2021 D. R. Commander.  All Rights Reserved.<br>
953b921b29Sopenharmony_ciCopyright (C)2015 Viktor Szathmáry.  All Rights Reserved.
963b921b29Sopenharmony_ci
973b921b29Sopenharmony_ciRedistribution and use in source and binary forms, with or without
983b921b29Sopenharmony_cimodification, are permitted provided that the following conditions are met:
993b921b29Sopenharmony_ci
1003b921b29Sopenharmony_ci- Redistributions of source code must retain the above copyright notice,
1013b921b29Sopenharmony_ci  this list of conditions and the following disclaimer.
1023b921b29Sopenharmony_ci- Redistributions in binary form must reproduce the above copyright notice,
1033b921b29Sopenharmony_ci  this list of conditions and the following disclaimer in the documentation
1043b921b29Sopenharmony_ci  and/or other materials provided with the distribution.
1053b921b29Sopenharmony_ci- Neither the name of the libjpeg-turbo Project nor the names of its
1063b921b29Sopenharmony_ci  contributors may be used to endorse or promote products derived from this
1073b921b29Sopenharmony_ci  software without specific prior written permission.
1083b921b29Sopenharmony_ci
1093b921b29Sopenharmony_ciTHIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS",
1103b921b29Sopenharmony_ciAND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
1113b921b29Sopenharmony_ciIMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
1123b921b29Sopenharmony_ciARE DISCLAIMED.  IN NO EVENT SHALL THE COPYRIGHT HOLDERS OR CONTRIBUTORS BE
1133b921b29Sopenharmony_ciLIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
1143b921b29Sopenharmony_ciCONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
1153b921b29Sopenharmony_ciSUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
1163b921b29Sopenharmony_ciINTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
1173b921b29Sopenharmony_ciCONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
1183b921b29Sopenharmony_ciARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
1193b921b29Sopenharmony_ciPOSSIBILITY OF SUCH DAMAGE.
1203b921b29Sopenharmony_ci
1213b921b29Sopenharmony_ci
1223b921b29Sopenharmony_ciWhy Three Licenses?
1233b921b29Sopenharmony_ci===================
1243b921b29Sopenharmony_ci
1253b921b29Sopenharmony_ciThe zlib License could have been used instead of the Modified (3-clause) BSD
1263b921b29Sopenharmony_ciLicense, and since the IJG License effectively subsumes the distribution
1273b921b29Sopenharmony_ciconditions of the zlib License, this would have effectively placed
1283b921b29Sopenharmony_cilibjpeg-turbo binary distributions under the IJG License.  However, the IJG
1293b921b29Sopenharmony_ciLicense specifically refers to the Independent JPEG Group and does not extend
1303b921b29Sopenharmony_ciattribution and endorsement protections to other entities.  Thus, it was
1313b921b29Sopenharmony_cidesirable to choose a license that granted us the same protections for new code
1323b921b29Sopenharmony_cithat were granted to the IJG for code derived from their software.
133