shun-iwasawa 82a8f5
libjpeg-turbo Licenses
shun-iwasawa 82a8f5
======================
shun-iwasawa 82a8f5
shun-iwasawa 82a8f5
libjpeg-turbo is covered by three compatible BSD-style open source licenses:
shun-iwasawa 82a8f5
shun-iwasawa 82a8f5
- The IJG (Independent JPEG Group) License, which is listed in
shun-iwasawa 82a8f5
  [README.ijg](README.ijg)
shun-iwasawa 82a8f5
shun-iwasawa 82a8f5
  This license applies to the libjpeg API library and associated programs
shun-iwasawa 82a8f5
  (any code inherited from libjpeg, and any modifications to that code.)
shun-iwasawa 82a8f5
shun-iwasawa 82a8f5
- The Modified (3-clause) BSD License, which is listed below
shun-iwasawa 82a8f5
shun-iwasawa 82a8f5
  This license covers the TurboJPEG API library and associated programs, as
shun-iwasawa 82a8f5
  well as the build system.
shun-iwasawa 82a8f5
shun-iwasawa 82a8f5
- The [zlib License](https://opensource.org/licenses/Zlib)
shun-iwasawa 82a8f5
shun-iwasawa 82a8f5
  This license is a subset of the other two, and it covers the libjpeg-turbo
shun-iwasawa 82a8f5
  SIMD extensions.
shun-iwasawa 82a8f5
shun-iwasawa 82a8f5
shun-iwasawa 82a8f5
Complying with the libjpeg-turbo Licenses
shun-iwasawa 82a8f5
=========================================
shun-iwasawa 82a8f5
shun-iwasawa 82a8f5
This section provides a roll-up of the libjpeg-turbo licensing terms, to the
shun-iwasawa 82a8f5
best of our understanding.
shun-iwasawa 82a8f5
shun-iwasawa 82a8f5
1.  If you are distributing a modified version of the libjpeg-turbo source,
shun-iwasawa 82a8f5
    then:
shun-iwasawa 82a8f5
shun-iwasawa 82a8f5
    1.  You cannot alter or remove any existing copyright or license notices
shun-iwasawa 82a8f5
        from the source.
shun-iwasawa 82a8f5
shun-iwasawa 82a8f5
        **Origin**
shun-iwasawa 82a8f5
        - Clause 1 of the IJG License
shun-iwasawa 82a8f5
        - Clause 1 of the Modified BSD License
shun-iwasawa 82a8f5
        - Clauses 1 and 3 of the zlib License
shun-iwasawa 82a8f5
shun-iwasawa 82a8f5
    2.  You must add your own copyright notice to the header of each source
shun-iwasawa 82a8f5
        file you modified, so others can tell that you modified that file (if
shun-iwasawa 82a8f5
        there is not an existing copyright header in that file, then you can
shun-iwasawa 82a8f5
        simply add a notice stating that you modified the file.)
shun-iwasawa 82a8f5
shun-iwasawa 82a8f5
        **Origin**
shun-iwasawa 82a8f5
        - Clause 1 of the IJG License
shun-iwasawa 82a8f5
        - Clause 2 of the zlib License
shun-iwasawa 82a8f5
shun-iwasawa 82a8f5
    3.  You must include the IJG README file, and you must not alter any of the
shun-iwasawa 82a8f5
        copyright or license text in that file.
shun-iwasawa 82a8f5
shun-iwasawa 82a8f5
        **Origin**
shun-iwasawa 82a8f5
        - Clause 1 of the IJG License
shun-iwasawa 82a8f5
shun-iwasawa 82a8f5
2.  If you are distributing only libjpeg-turbo binaries without the source, or
shun-iwasawa 82a8f5
    if you are distributing an application that statically links with
shun-iwasawa 82a8f5
    libjpeg-turbo, then:
shun-iwasawa 82a8f5
shun-iwasawa 82a8f5
    1.  Your product documentation must include a message stating:
shun-iwasawa 82a8f5
shun-iwasawa 82a8f5
        This software is based in part on the work of the Independent JPEG
shun-iwasawa 82a8f5
        Group.
shun-iwasawa 82a8f5
shun-iwasawa 82a8f5
        **Origin**
shun-iwasawa 82a8f5
        - Clause 2 of the IJG license
shun-iwasawa 82a8f5
shun-iwasawa 82a8f5
    2.  If your binary distribution includes or uses the TurboJPEG API, then
shun-iwasawa 82a8f5
        your product documentation must include the text of the Modified BSD
shun-iwasawa 82a8f5
        License (see below.)
shun-iwasawa 82a8f5
shun-iwasawa 82a8f5
        **Origin**
shun-iwasawa 82a8f5
        - Clause 2 of the Modified BSD License
shun-iwasawa 82a8f5
shun-iwasawa 82a8f5
3.  You cannot use the name of the IJG or The libjpeg-turbo Project or the
shun-iwasawa 82a8f5
    contributors thereof in advertising, publicity, etc.
shun-iwasawa 82a8f5
shun-iwasawa 82a8f5
    **Origin**
shun-iwasawa 82a8f5
    - IJG License
shun-iwasawa 82a8f5
    - Clause 3 of the Modified BSD License
shun-iwasawa 82a8f5
shun-iwasawa 82a8f5
4.  The IJG and The libjpeg-turbo Project do not warrant libjpeg-turbo to be
shun-iwasawa 82a8f5
    free of defects, nor do we accept any liability for undesirable
shun-iwasawa 82a8f5
    consequences resulting from your use of the software.
shun-iwasawa 82a8f5
shun-iwasawa 82a8f5
    **Origin**
shun-iwasawa 82a8f5
    - IJG License
shun-iwasawa 82a8f5
    - Modified BSD License
shun-iwasawa 82a8f5
    - zlib License
shun-iwasawa 82a8f5
shun-iwasawa 82a8f5
shun-iwasawa 82a8f5
The Modified (3-clause) BSD License
shun-iwasawa 82a8f5
===================================
shun-iwasawa 82a8f5
shun-iwasawa 82a8f5
Copyright (C)2009-2020 D. R. Commander.  All Rights Reserved.
shun-iwasawa 82a8f5
Copyright (C)2015 Viktor Szathmรกry.  All Rights Reserved.
shun-iwasawa 82a8f5
shun-iwasawa 82a8f5
Redistribution and use in source and binary forms, with or without
shun-iwasawa 82a8f5
modification, are permitted provided that the following conditions are met:
shun-iwasawa 82a8f5
shun-iwasawa 82a8f5
- Redistributions of source code must retain the above copyright notice,
shun-iwasawa 82a8f5
  this list of conditions and the following disclaimer.
shun-iwasawa 82a8f5
- Redistributions in binary form must reproduce the above copyright notice,
shun-iwasawa 82a8f5
  this list of conditions and the following disclaimer in the documentation
shun-iwasawa 82a8f5
  and/or other materials provided with the distribution.
shun-iwasawa 82a8f5
- Neither the name of the libjpeg-turbo Project nor the names of its
shun-iwasawa 82a8f5
  contributors may be used to endorse or promote products derived from this
shun-iwasawa 82a8f5
  software without specific prior written permission.
shun-iwasawa 82a8f5
shun-iwasawa 82a8f5
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS",
shun-iwasawa 82a8f5
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
shun-iwasawa 82a8f5
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
shun-iwasawa 82a8f5
ARE DISCLAIMED.  IN NO EVENT SHALL THE COPYRIGHT HOLDERS OR CONTRIBUTORS BE
shun-iwasawa 82a8f5
LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
shun-iwasawa 82a8f5
CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
shun-iwasawa 82a8f5
SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
shun-iwasawa 82a8f5
INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
shun-iwasawa 82a8f5
CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
shun-iwasawa 82a8f5
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
shun-iwasawa 82a8f5
POSSIBILITY OF SUCH DAMAGE.
shun-iwasawa 82a8f5
shun-iwasawa 82a8f5
shun-iwasawa 82a8f5
Why Three Licenses?
shun-iwasawa 82a8f5
===================
shun-iwasawa 82a8f5
shun-iwasawa 82a8f5
The zlib License could have been used instead of the Modified (3-clause) BSD
shun-iwasawa 82a8f5
License, and since the IJG License effectively subsumes the distribution
shun-iwasawa 82a8f5
conditions of the zlib License, this would have effectively placed
shun-iwasawa 82a8f5
libjpeg-turbo binary distributions under the IJG License.  However, the IJG
shun-iwasawa 82a8f5
License specifically refers to the Independent JPEG Group and does not extend
shun-iwasawa 82a8f5
attribution and endorsement protections to other entities.  Thus, it was
shun-iwasawa 82a8f5
desirable to choose a license that granted us the same protections for new code
shun-iwasawa 82a8f5
that were granted to the IJG for code derived from their software.