xref: /OK3568_Linux_fs/external/chromium/licenses/CREDITS.chromium (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593Smuzhiyun# License
2*4882a593Smuzhiyun
3*4882a593SmuzhiyunMost files in FFmpeg are under the GNU Lesser General Public License version 2.1
4*4882a593Smuzhiyunor later (LGPL v2.1+). Read the file `COPYING.LGPLv2.1` for details. Some other
5*4882a593Smuzhiyunfiles have MIT/X11/BSD-style licenses. In combination the LGPL v2.1+ applies to
6*4882a593SmuzhiyunFFmpeg.
7*4882a593Smuzhiyun
8*4882a593SmuzhiyunSome optional parts of FFmpeg are licensed under the GNU General Public License
9*4882a593Smuzhiyunversion 2 or later (GPL v2+). See the file `COPYING.GPLv2` for details. None of
10*4882a593Smuzhiyunthese parts are used by default, you have to explicitly pass `--enable-gpl` to
11*4882a593Smuzhiyunconfigure to activate them. In this case, FFmpeg's license changes to GPL v2+.
12*4882a593Smuzhiyun
13*4882a593SmuzhiyunSpecifically, the GPL parts of FFmpeg are:
14*4882a593Smuzhiyun
15*4882a593Smuzhiyun- libpostproc
16*4882a593Smuzhiyun- optional x86 optimization in the files
17*4882a593Smuzhiyun    - `libavcodec/x86/flac_dsp_gpl.asm`
18*4882a593Smuzhiyun    - `libavcodec/x86/idct_mmx.c`
19*4882a593Smuzhiyun    - `libavfilter/x86/vf_removegrain.asm`
20*4882a593Smuzhiyun- the following building and testing tools
21*4882a593Smuzhiyun    - `compat/solaris/make_sunver.pl`
22*4882a593Smuzhiyun    - `doc/t2h.pm`
23*4882a593Smuzhiyun    - `doc/texi2pod.pl`
24*4882a593Smuzhiyun    - `libswresample/tests/swresample.c`
25*4882a593Smuzhiyun    - `tests/checkasm/*`
26*4882a593Smuzhiyun    - `tests/tiny_ssim.c`
27*4882a593Smuzhiyun- the following filters in libavfilter:
28*4882a593Smuzhiyun    - `signature_lookup.c`
29*4882a593Smuzhiyun    - `vf_blackframe.c`
30*4882a593Smuzhiyun    - `vf_boxblur.c`
31*4882a593Smuzhiyun    - `vf_colormatrix.c`
32*4882a593Smuzhiyun    - `vf_cover_rect.c`
33*4882a593Smuzhiyun    - `vf_cropdetect.c`
34*4882a593Smuzhiyun    - `vf_delogo.c`
35*4882a593Smuzhiyun    - `vf_eq.c`
36*4882a593Smuzhiyun    - `vf_find_rect.c`
37*4882a593Smuzhiyun    - `vf_fspp.c`
38*4882a593Smuzhiyun    - `vf_histeq.c`
39*4882a593Smuzhiyun    - `vf_hqdn3d.c`
40*4882a593Smuzhiyun    - `vf_kerndeint.c`
41*4882a593Smuzhiyun    - `vf_lensfun.c` (GPL version 3 or later)
42*4882a593Smuzhiyun    - `vf_mcdeint.c`
43*4882a593Smuzhiyun    - `vf_mpdecimate.c`
44*4882a593Smuzhiyun    - `vf_nnedi.c`
45*4882a593Smuzhiyun    - `vf_owdenoise.c`
46*4882a593Smuzhiyun    - `vf_perspective.c`
47*4882a593Smuzhiyun    - `vf_phase.c`
48*4882a593Smuzhiyun    - `vf_pp.c`
49*4882a593Smuzhiyun    - `vf_pp7.c`
50*4882a593Smuzhiyun    - `vf_pullup.c`
51*4882a593Smuzhiyun    - `vf_repeatfields.c`
52*4882a593Smuzhiyun    - `vf_sab.c`
53*4882a593Smuzhiyun    - `vf_signature.c`
54*4882a593Smuzhiyun    - `vf_smartblur.c`
55*4882a593Smuzhiyun    - `vf_spp.c`
56*4882a593Smuzhiyun    - `vf_stereo3d.c`
57*4882a593Smuzhiyun    - `vf_super2xsai.c`
58*4882a593Smuzhiyun    - `vf_tinterlace.c`
59*4882a593Smuzhiyun    - `vf_uspp.c`
60*4882a593Smuzhiyun    - `vf_vaguedenoiser.c`
61*4882a593Smuzhiyun    - `vsrc_mptestsrc.c`
62*4882a593Smuzhiyun
63*4882a593SmuzhiyunShould you, for whatever reason, prefer to use version 3 of the (L)GPL, then
64*4882a593Smuzhiyunthe configure parameter `--enable-version3` will activate this licensing option
65*4882a593Smuzhiyunfor you. Read the file `COPYING.LGPLv3` or, if you have enabled GPL parts,
66*4882a593Smuzhiyun`COPYING.GPLv3` to learn the exact legal terms that apply in this case.
67*4882a593Smuzhiyun
68*4882a593SmuzhiyunThere are a handful of files under other licensing terms, namely:
69*4882a593Smuzhiyun
70*4882a593Smuzhiyun* The files `libavcodec/jfdctfst.c`, `libavcodec/jfdctint_template.c` and
71*4882a593Smuzhiyun  `libavcodec/jrevdct.c` are taken from libjpeg, see the top of the files for
72*4882a593Smuzhiyun  licensing details. Specifically note that you must credit the IJG in the
73*4882a593Smuzhiyun  documentation accompanying your program if you only distribute executables.
74*4882a593Smuzhiyun  You must also indicate any changes including additions and deletions to
75*4882a593Smuzhiyun  those three files in the documentation.
76*4882a593Smuzhiyun* `tests/reference.pnm` is under the expat license.
77*4882a593Smuzhiyun
78*4882a593Smuzhiyun
79*4882a593Smuzhiyun## External libraries
80*4882a593Smuzhiyun
81*4882a593SmuzhiyunFFmpeg can be combined with a number of external libraries, which sometimes
82*4882a593Smuzhiyunaffect the licensing of binaries resulting from the combination.
83*4882a593Smuzhiyun
84*4882a593Smuzhiyun### Compatible libraries
85*4882a593Smuzhiyun
86*4882a593SmuzhiyunThe following libraries are under GPL version 2:
87*4882a593Smuzhiyun- avisynth
88*4882a593Smuzhiyun- frei0r
89*4882a593Smuzhiyun- libcdio
90*4882a593Smuzhiyun- libdavs2
91*4882a593Smuzhiyun- librubberband
92*4882a593Smuzhiyun- libvidstab
93*4882a593Smuzhiyun- libx264
94*4882a593Smuzhiyun- libx265
95*4882a593Smuzhiyun- libxavs
96*4882a593Smuzhiyun- libxavs2
97*4882a593Smuzhiyun- libxvid
98*4882a593Smuzhiyun
99*4882a593SmuzhiyunWhen combining them with FFmpeg, FFmpeg needs to be licensed as GPL as well by
100*4882a593Smuzhiyunpassing `--enable-gpl` to configure.
101*4882a593Smuzhiyun
102*4882a593SmuzhiyunThe following libraries are under LGPL version 3:
103*4882a593Smuzhiyun- gmp
104*4882a593Smuzhiyun- libaribb24
105*4882a593Smuzhiyun- liblensfun
106*4882a593Smuzhiyun
107*4882a593SmuzhiyunWhen combining them with FFmpeg, use the configure option `--enable-version3` to
108*4882a593Smuzhiyunupgrade FFmpeg to the LGPL v3.
109*4882a593Smuzhiyun
110*4882a593SmuzhiyunThe VMAF, mbedTLS, RK MPI, OpenCORE and VisualOn libraries are under the Apache License
111*4882a593Smuzhiyun2.0. That license is incompatible with the LGPL v2.1 and the GPL v2, but not with
112*4882a593Smuzhiyunversion 3 of those licenses. So to combine these libraries with FFmpeg, the
113*4882a593Smuzhiyunlicense version needs to be upgraded by passing `--enable-version3` to configure.
114*4882a593Smuzhiyun
115*4882a593SmuzhiyunThe smbclient library is under the GPL v3, to combine it with FFmpeg,
116*4882a593Smuzhiyunthe options `--enable-gpl` and `--enable-version3` have to be passed to
117*4882a593Smuzhiyunconfigure to upgrade FFmpeg to the GPL v3.
118*4882a593Smuzhiyun
119*4882a593Smuzhiyun### Incompatible libraries
120*4882a593Smuzhiyun
121*4882a593SmuzhiyunThere are certain libraries you can combine with FFmpeg whose licenses are not
122*4882a593Smuzhiyuncompatible with the GPL and/or the LGPL. If you wish to enable these
123*4882a593Smuzhiyunlibraries, even in circumstances that their license may be incompatible, pass
124*4882a593Smuzhiyun`--enable-nonfree` to configure. This will cause the resulting binary to be
125*4882a593Smuzhiyununredistributable.
126*4882a593Smuzhiyun
127*4882a593SmuzhiyunThe Fraunhofer FDK AAC and OpenSSL libraries are under licenses which are
128*4882a593Smuzhiyunincompatible with the GPLv2 and v3. To the best of our knowledge, they are
129*4882a593Smuzhiyuncompatible with the LGPL.
130*4882a593Smuzhiyun
131*4882a593Smuzhiyun
132*4882a593Smuzhiyun********************************************************************************
133*4882a593Smuzhiyun
134*4882a593Smuzhiyunlibavcodec/arm/jrevdct_arm.S
135*4882a593Smuzhiyun
136*4882a593SmuzhiyunC-like prototype :
137*4882a593Smuzhiyun        void j_rev_dct_arm(DCTBLOCK data)
138*4882a593Smuzhiyun
139*4882a593Smuzhiyun   With DCTBLOCK being a pointer to an array of 64 'signed shorts'
140*4882a593Smuzhiyun
141*4882a593Smuzhiyun   Copyright (c) 2001 Lionel Ulmer (lionel.ulmer@free.fr / bbrox@bbrox.org)
142*4882a593Smuzhiyun
143*4882a593Smuzhiyun   Permission is hereby granted, free of charge, to any person obtaining a copy
144*4882a593Smuzhiyun   of this software and associated documentation files (the "Software"), to deal
145*4882a593Smuzhiyun   in the Software without restriction, including without limitation the rights
146*4882a593Smuzhiyun   to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
147*4882a593Smuzhiyun   copies of the Software, and to permit persons to whom the Software is
148*4882a593Smuzhiyun   furnished to do so, subject to the following conditions:
149*4882a593Smuzhiyun
150*4882a593Smuzhiyun   The above copyright notice and this permission notice shall be included in
151*4882a593Smuzhiyun   all copies or substantial portions of the Software.
152*4882a593Smuzhiyun
153*4882a593Smuzhiyun   THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
154*4882a593Smuzhiyun   IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
155*4882a593Smuzhiyun   FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL THE
156*4882a593Smuzhiyun   COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
157*4882a593Smuzhiyun   IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
158*4882a593Smuzhiyun   CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
159*4882a593Smuzhiyun
160*4882a593Smuzhiyun********************************************************************************
161*4882a593Smuzhiyun
162*4882a593Smuzhiyunlibavcodec/arm/vp8dsp_armv6.S
163*4882a593Smuzhiyun
164*4882a593SmuzhiyunVP8 ARMv6 optimisations
165*4882a593Smuzhiyun
166*4882a593SmuzhiyunCopyright (c) 2010 Google Inc.
167*4882a593SmuzhiyunCopyright (c) 2010 Rob Clark <rob@ti.com>
168*4882a593SmuzhiyunCopyright (c) 2011 Mans Rullgard <mans@mansr.com>
169*4882a593Smuzhiyun
170*4882a593SmuzhiyunThis file is part of FFmpeg.
171*4882a593Smuzhiyun
172*4882a593SmuzhiyunFFmpeg is free software; you can redistribute it and/or
173*4882a593Smuzhiyunmodify it under the terms of the GNU Lesser General Public
174*4882a593SmuzhiyunLicense as published by the Free Software Foundation; either
175*4882a593Smuzhiyunversion 2.1 of the License, or (at your option) any later version.
176*4882a593Smuzhiyun
177*4882a593SmuzhiyunFFmpeg is distributed in the hope that it will be useful,
178*4882a593Smuzhiyunbut WITHOUT ANY WARRANTY; without even the implied warranty of
179*4882a593SmuzhiyunMERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
180*4882a593SmuzhiyunLesser General Public License for more details.
181*4882a593Smuzhiyun
182*4882a593SmuzhiyunYou should have received a copy of the GNU Lesser General Public
183*4882a593SmuzhiyunLicense along with FFmpeg; if not, write to the Free Software
184*4882a593SmuzhiyunFoundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
185*4882a593Smuzhiyun
186*4882a593SmuzhiyunThis code was partially ported from libvpx, which uses this license:
187*4882a593Smuzhiyun
188*4882a593SmuzhiyunRedistribution and use in source and binary forms, with or without
189*4882a593Smuzhiyunmodification, are permitted provided that the following conditions are
190*4882a593Smuzhiyunmet:
191*4882a593Smuzhiyun
192*4882a593Smuzhiyun* Redistributions of source code must retain the above copyright
193*4882a593Smuzhiyunnotice, this list of conditions and the following disclaimer.
194*4882a593Smuzhiyun
195*4882a593Smuzhiyun* Redistributions in binary form must reproduce the above copyright
196*4882a593Smuzhiyunnotice, this list of conditions and the following disclaimer in
197*4882a593Smuzhiyunthe documentation and/or other materials provided with the
198*4882a593Smuzhiyundistribution.
199*4882a593Smuzhiyun
200*4882a593Smuzhiyun* Neither the name of Google nor the names of its contributors may
201*4882a593Smuzhiyunbe used to endorse or promote products derived from this software
202*4882a593Smuzhiyunwithout specific prior written permission.
203*4882a593Smuzhiyun
204*4882a593SmuzhiyunTHIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
205*4882a593Smuzhiyun"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
206*4882a593SmuzhiyunLIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
207*4882a593SmuzhiyunA PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
208*4882a593SmuzhiyunHOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
209*4882a593SmuzhiyunSPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
210*4882a593SmuzhiyunLIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
211*4882a593SmuzhiyunDATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
212*4882a593SmuzhiyunTHEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
213*4882a593Smuzhiyun(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
214*4882a593SmuzhiyunOF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
215*4882a593Smuzhiyun
216*4882a593Smuzhiyun********************************************************************************
217*4882a593Smuzhiyun
218*4882a593Smuzhiyunlibavcodec/mips/acelp_filters_mips.c
219*4882a593Smuzhiyun
220*4882a593SmuzhiyunCopyright (c) 2012
221*4882a593SmuzhiyunMIPS Technologies, Inc., California.
222*4882a593Smuzhiyun
223*4882a593SmuzhiyunRedistribution and use in source and binary forms, with or without
224*4882a593Smuzhiyunmodification, are permitted provided that the following conditions
225*4882a593Smuzhiyunare met:
226*4882a593Smuzhiyun1. Redistributions of source code must retain the above copyright
227*4882a593Smuzhiyunnotice, this list of conditions and the following disclaimer.
228*4882a593Smuzhiyun2. Redistributions in binary form must reproduce the above copyright
229*4882a593Smuzhiyunnotice, this list of conditions and the following disclaimer in the
230*4882a593Smuzhiyundocumentation and/or other materials provided with the distribution.
231*4882a593Smuzhiyun3. Neither the name of the MIPS Technologies, Inc., nor the names of its
232*4882a593Smuzhiyuncontributors may be used to endorse or promote products derived from
233*4882a593Smuzhiyunthis software without specific prior written permission.
234*4882a593Smuzhiyun
235*4882a593SmuzhiyunTHIS SOFTWARE IS PROVIDED BY THE MIPS TECHNOLOGIES, INC. ``AS IS'' AND
236*4882a593SmuzhiyunANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
237*4882a593SmuzhiyunIMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
238*4882a593SmuzhiyunARE DISCLAIMED.  IN NO EVENT SHALL THE MIPS TECHNOLOGIES, INC. BE LIABLE
239*4882a593SmuzhiyunFOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
240*4882a593SmuzhiyunDAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
241*4882a593SmuzhiyunOR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
242*4882a593SmuzhiyunHOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
243*4882a593SmuzhiyunLIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
244*4882a593SmuzhiyunOUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
245*4882a593SmuzhiyunSUCH DAMAGE.
246*4882a593Smuzhiyun
247*4882a593SmuzhiyunAuthor:  Nedeljko Babic (nbabic@mips.com)
248*4882a593Smuzhiyun
249*4882a593Smuzhiyunvarious filters for ACELP-based codecs optimized for MIPS
250*4882a593Smuzhiyun
251*4882a593SmuzhiyunThis file is part of FFmpeg.
252*4882a593Smuzhiyun
253*4882a593SmuzhiyunFFmpeg is free software; you can redistribute it and/or
254*4882a593Smuzhiyunmodify it under the terms of the GNU Lesser General Public
255*4882a593SmuzhiyunLicense as published by the Free Software Foundation; either
256*4882a593Smuzhiyunversion 2.1 of the License, or (at your option) any later version.
257*4882a593Smuzhiyun
258*4882a593SmuzhiyunFFmpeg is distributed in the hope that it will be useful,
259*4882a593Smuzhiyunbut WITHOUT ANY WARRANTY; without even the implied warranty of
260*4882a593SmuzhiyunMERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
261*4882a593SmuzhiyunLesser General Public License for more details.
262*4882a593Smuzhiyun
263*4882a593SmuzhiyunYou should have received a copy of the GNU Lesser General Public
264*4882a593SmuzhiyunLicense along with FFmpeg; if not, write to the Free Software
265*4882a593SmuzhiyunFoundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
266*4882a593Smuzhiyun
267*4882a593Smuzhiyun********************************************************************************
268*4882a593Smuzhiyun
269*4882a593Smuzhiyunlibavcodec/mips/acelp_vectors_mips.c
270*4882a593Smuzhiyun
271*4882a593SmuzhiyunCopyright (c) 2012
272*4882a593SmuzhiyunMIPS Technologies, Inc., California.
273*4882a593Smuzhiyun
274*4882a593SmuzhiyunRedistribution and use in source and binary forms, with or without
275*4882a593Smuzhiyunmodification, are permitted provided that the following conditions
276*4882a593Smuzhiyunare met:
277*4882a593Smuzhiyun1. Redistributions of source code must retain the above copyright
278*4882a593Smuzhiyunnotice, this list of conditions and the following disclaimer.
279*4882a593Smuzhiyun2. Redistributions in binary form must reproduce the above copyright
280*4882a593Smuzhiyunnotice, this list of conditions and the following disclaimer in the
281*4882a593Smuzhiyundocumentation and/or other materials provided with the distribution.
282*4882a593Smuzhiyun3. Neither the name of the MIPS Technologies, Inc., nor the names of its
283*4882a593Smuzhiyuncontributors may be used to endorse or promote products derived from
284*4882a593Smuzhiyunthis software without specific prior written permission.
285*4882a593Smuzhiyun
286*4882a593SmuzhiyunTHIS SOFTWARE IS PROVIDED BY THE MIPS TECHNOLOGIES, INC. ``AS IS'' AND
287*4882a593SmuzhiyunANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
288*4882a593SmuzhiyunIMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
289*4882a593SmuzhiyunARE DISCLAIMED.  IN NO EVENT SHALL THE MIPS TECHNOLOGIES, INC. BE LIABLE
290*4882a593SmuzhiyunFOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
291*4882a593SmuzhiyunDAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
292*4882a593SmuzhiyunOR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
293*4882a593SmuzhiyunHOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
294*4882a593SmuzhiyunLIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
295*4882a593SmuzhiyunOUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
296*4882a593SmuzhiyunSUCH DAMAGE.
297*4882a593Smuzhiyun
298*4882a593SmuzhiyunAuthor:  Nedeljko Babic (nbabic@mips.com)
299*4882a593Smuzhiyun
300*4882a593Smuzhiyunadaptive and fixed codebook vector operations for ACELP-based codecs
301*4882a593Smuzhiyunoptimized for MIPS
302*4882a593Smuzhiyun
303*4882a593SmuzhiyunThis file is part of FFmpeg.
304*4882a593Smuzhiyun
305*4882a593SmuzhiyunFFmpeg is free software; you can redistribute it and/or
306*4882a593Smuzhiyunmodify it under the terms of the GNU Lesser General Public
307*4882a593SmuzhiyunLicense as published by the Free Software Foundation; either
308*4882a593Smuzhiyunversion 2.1 of the License, or (at your option) any later version.
309*4882a593Smuzhiyun
310*4882a593SmuzhiyunFFmpeg is distributed in the hope that it will be useful,
311*4882a593Smuzhiyunbut WITHOUT ANY WARRANTY; without even the implied warranty of
312*4882a593SmuzhiyunMERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
313*4882a593SmuzhiyunLesser General Public License for more details.
314*4882a593Smuzhiyun
315*4882a593SmuzhiyunYou should have received a copy of the GNU Lesser General Public
316*4882a593SmuzhiyunLicense along with FFmpeg; if not, write to the Free Software
317*4882a593SmuzhiyunFoundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
318*4882a593Smuzhiyun
319*4882a593Smuzhiyun********************************************************************************
320*4882a593Smuzhiyun
321*4882a593Smuzhiyunlibavcodec/mips/amrwbdec_mips.c
322*4882a593Smuzhiyun
323*4882a593SmuzhiyunCopyright (c) 2012
324*4882a593SmuzhiyunMIPS Technologies, Inc., California.
325*4882a593Smuzhiyun
326*4882a593SmuzhiyunRedistribution and use in source and binary forms, with or without
327*4882a593Smuzhiyunmodification, are permitted provided that the following conditions
328*4882a593Smuzhiyunare met:
329*4882a593Smuzhiyun1. Redistributions of source code must retain the above copyright
330*4882a593Smuzhiyunnotice, this list of conditions and the following disclaimer.
331*4882a593Smuzhiyun2. Redistributions in binary form must reproduce the above copyright
332*4882a593Smuzhiyunnotice, this list of conditions and the following disclaimer in the
333*4882a593Smuzhiyundocumentation and/or other materials provided with the distribution.
334*4882a593Smuzhiyun3. Neither the name of the MIPS Technologies, Inc., nor the names of its
335*4882a593Smuzhiyuncontributors may be used to endorse or promote products derived from
336*4882a593Smuzhiyunthis software without specific prior written permission.
337*4882a593Smuzhiyun
338*4882a593SmuzhiyunTHIS SOFTWARE IS PROVIDED BY THE MIPS TECHNOLOGIES, INC. ``AS IS'' AND
339*4882a593SmuzhiyunANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
340*4882a593SmuzhiyunIMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
341*4882a593SmuzhiyunARE DISCLAIMED.  IN NO EVENT SHALL THE MIPS TECHNOLOGIES, INC. BE LIABLE
342*4882a593SmuzhiyunFOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
343*4882a593SmuzhiyunDAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
344*4882a593SmuzhiyunOR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
345*4882a593SmuzhiyunHOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
346*4882a593SmuzhiyunLIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
347*4882a593SmuzhiyunOUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
348*4882a593SmuzhiyunSUCH DAMAGE.
349*4882a593Smuzhiyun
350*4882a593SmuzhiyunAuthor:  Nedeljko Babic (nbabic@mips.com)
351*4882a593Smuzhiyun
352*4882a593SmuzhiyunThis file is part of FFmpeg.
353*4882a593Smuzhiyun
354*4882a593SmuzhiyunFFmpeg is free software; you can redistribute it and/or
355*4882a593Smuzhiyunmodify it under the terms of the GNU Lesser General Public
356*4882a593SmuzhiyunLicense as published by the Free Software Foundation; either
357*4882a593Smuzhiyunversion 2.1 of the License, or (at your option) any later version.
358*4882a593Smuzhiyun
359*4882a593SmuzhiyunFFmpeg is distributed in the hope that it will be useful,
360*4882a593Smuzhiyunbut WITHOUT ANY WARRANTY; without even the implied warranty of
361*4882a593SmuzhiyunMERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
362*4882a593SmuzhiyunLesser General Public License for more details.
363*4882a593Smuzhiyun
364*4882a593SmuzhiyunYou should have received a copy of the GNU Lesser General Public
365*4882a593SmuzhiyunLicense along with FFmpeg; if not, write to the Free Software
366*4882a593SmuzhiyunFoundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
367*4882a593Smuzhiyun
368*4882a593Smuzhiyun********************************************************************************
369*4882a593Smuzhiyun
370*4882a593Smuzhiyunlibavcodec/mips/celp_filters_mips.c
371*4882a593Smuzhiyun
372*4882a593SmuzhiyunCopyright (c) 2012
373*4882a593SmuzhiyunMIPS Technologies, Inc., California.
374*4882a593Smuzhiyun
375*4882a593SmuzhiyunRedistribution and use in source and binary forms, with or without
376*4882a593Smuzhiyunmodification, are permitted provided that the following conditions
377*4882a593Smuzhiyunare met:
378*4882a593Smuzhiyun1. Redistributions of source code must retain the above copyright
379*4882a593Smuzhiyunnotice, this list of conditions and the following disclaimer.
380*4882a593Smuzhiyun2. Redistributions in binary form must reproduce the above copyright
381*4882a593Smuzhiyunnotice, this list of conditions and the following disclaimer in the
382*4882a593Smuzhiyundocumentation and/or other materials provided with the distribution.
383*4882a593Smuzhiyun3. Neither the name of the MIPS Technologies, Inc., nor the names of its
384*4882a593Smuzhiyuncontributors may be used to endorse or promote products derived from
385*4882a593Smuzhiyunthis software without specific prior written permission.
386*4882a593Smuzhiyun
387*4882a593SmuzhiyunTHIS SOFTWARE IS PROVIDED BY THE MIPS TECHNOLOGIES, INC. ``AS IS'' AND
388*4882a593SmuzhiyunANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
389*4882a593SmuzhiyunIMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
390*4882a593SmuzhiyunARE DISCLAIMED.  IN NO EVENT SHALL THE MIPS TECHNOLOGIES, INC. BE LIABLE
391*4882a593SmuzhiyunFOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
392*4882a593SmuzhiyunDAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
393*4882a593SmuzhiyunOR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
394*4882a593SmuzhiyunHOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
395*4882a593SmuzhiyunLIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
396*4882a593SmuzhiyunOUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
397*4882a593SmuzhiyunSUCH DAMAGE.
398*4882a593Smuzhiyun
399*4882a593SmuzhiyunAuthor:  Nedeljko Babic (nbabic@mips.com)
400*4882a593Smuzhiyun
401*4882a593Smuzhiyunvarious filters for CELP-based codecs optimized for MIPS
402*4882a593Smuzhiyun
403*4882a593SmuzhiyunThis file is part of FFmpeg.
404*4882a593Smuzhiyun
405*4882a593SmuzhiyunFFmpeg is free software; you can redistribute it and/or
406*4882a593Smuzhiyunmodify it under the terms of the GNU Lesser General Public
407*4882a593SmuzhiyunLicense as published by the Free Software Foundation; either
408*4882a593Smuzhiyunversion 2.1 of the License, or (at your option) any later version.
409*4882a593Smuzhiyun
410*4882a593SmuzhiyunFFmpeg is distributed in the hope that it will be useful,
411*4882a593Smuzhiyunbut WITHOUT ANY WARRANTY; without even the implied warranty of
412*4882a593SmuzhiyunMERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
413*4882a593SmuzhiyunLesser General Public License for more details.
414*4882a593Smuzhiyun
415*4882a593SmuzhiyunYou should have received a copy of the GNU Lesser General Public
416*4882a593SmuzhiyunLicense along with FFmpeg; if not, write to the Free Software
417*4882a593SmuzhiyunFoundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
418*4882a593Smuzhiyun
419*4882a593Smuzhiyun********************************************************************************
420*4882a593Smuzhiyun
421*4882a593Smuzhiyunlibavcodec/mips/celp_math_mips.c
422*4882a593Smuzhiyun
423*4882a593SmuzhiyunCopyright (c) 2012
424*4882a593SmuzhiyunMIPS Technologies, Inc., California.
425*4882a593Smuzhiyun
426*4882a593SmuzhiyunRedistribution and use in source and binary forms, with or without
427*4882a593Smuzhiyunmodification, are permitted provided that the following conditions
428*4882a593Smuzhiyunare met:
429*4882a593Smuzhiyun1. Redistributions of source code must retain the above copyright
430*4882a593Smuzhiyunnotice, this list of conditions and the following disclaimer.
431*4882a593Smuzhiyun2. Redistributions in binary form must reproduce the above copyright
432*4882a593Smuzhiyunnotice, this list of conditions and the following disclaimer in the
433*4882a593Smuzhiyundocumentation and/or other materials provided with the distribution.
434*4882a593Smuzhiyun3. Neither the name of the MIPS Technologies, Inc., nor the names of its
435*4882a593Smuzhiyuncontributors may be used to endorse or promote products derived from
436*4882a593Smuzhiyunthis software without specific prior written permission.
437*4882a593Smuzhiyun
438*4882a593SmuzhiyunTHIS SOFTWARE IS PROVIDED BY THE MIPS TECHNOLOGIES, INC. ``AS IS'' AND
439*4882a593SmuzhiyunANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
440*4882a593SmuzhiyunIMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
441*4882a593SmuzhiyunARE DISCLAIMED.  IN NO EVENT SHALL THE MIPS TECHNOLOGIES, INC. BE LIABLE
442*4882a593SmuzhiyunFOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
443*4882a593SmuzhiyunDAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
444*4882a593SmuzhiyunOR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
445*4882a593SmuzhiyunHOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
446*4882a593SmuzhiyunLIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
447*4882a593SmuzhiyunOUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
448*4882a593SmuzhiyunSUCH DAMAGE.
449*4882a593Smuzhiyun
450*4882a593SmuzhiyunAuthor:  Nedeljko Babic (nbabic@mips.com)
451*4882a593Smuzhiyun
452*4882a593SmuzhiyunMath operations optimized for MIPS
453*4882a593Smuzhiyun
454*4882a593SmuzhiyunThis file is part of FFmpeg.
455*4882a593Smuzhiyun
456*4882a593SmuzhiyunFFmpeg is free software; you can redistribute it and/or
457*4882a593Smuzhiyunmodify it under the terms of the GNU Lesser General Public
458*4882a593SmuzhiyunLicense as published by the Free Software Foundation; either
459*4882a593Smuzhiyunversion 2.1 of the License, or (at your option) any later version.
460*4882a593Smuzhiyun
461*4882a593SmuzhiyunFFmpeg is distributed in the hope that it will be useful,
462*4882a593Smuzhiyunbut WITHOUT ANY WARRANTY; without even the implied warranty of
463*4882a593SmuzhiyunMERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
464*4882a593SmuzhiyunLesser General Public License for more details.
465*4882a593Smuzhiyun
466*4882a593SmuzhiyunYou should have received a copy of the GNU Lesser General Public
467*4882a593SmuzhiyunLicense along with FFmpeg; if not, write to the Free Software
468*4882a593SmuzhiyunFoundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
469*4882a593Smuzhiyun
470*4882a593Smuzhiyun********************************************************************************
471*4882a593Smuzhiyun
472*4882a593Smuzhiyunlibavcodec/mips/fft_mips.c
473*4882a593Smuzhiyun
474*4882a593SmuzhiyunCopyright (c) 2012
475*4882a593SmuzhiyunMIPS Technologies, Inc., California.
476*4882a593Smuzhiyun
477*4882a593SmuzhiyunRedistribution and use in source and binary forms, with or without
478*4882a593Smuzhiyunmodification, are permitted provided that the following conditions
479*4882a593Smuzhiyunare met:
480*4882a593Smuzhiyun1. Redistributions of source code must retain the above copyright
481*4882a593Smuzhiyunnotice, this list of conditions and the following disclaimer.
482*4882a593Smuzhiyun2. Redistributions in binary form must reproduce the above copyright
483*4882a593Smuzhiyunnotice, this list of conditions and the following disclaimer in the
484*4882a593Smuzhiyundocumentation and/or other materials provided with the distribution.
485*4882a593Smuzhiyun3. Neither the name of the MIPS Technologies, Inc., nor the names of its
486*4882a593Smuzhiyuncontributors may be used to endorse or promote products derived from
487*4882a593Smuzhiyunthis software without specific prior written permission.
488*4882a593Smuzhiyun
489*4882a593SmuzhiyunTHIS SOFTWARE IS PROVIDED BY THE MIPS TECHNOLOGIES, INC. ``AS IS'' AND
490*4882a593SmuzhiyunANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
491*4882a593SmuzhiyunIMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
492*4882a593SmuzhiyunARE DISCLAIMED.  IN NO EVENT SHALL THE MIPS TECHNOLOGIES, INC. BE LIABLE
493*4882a593SmuzhiyunFOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
494*4882a593SmuzhiyunDAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
495*4882a593SmuzhiyunOR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
496*4882a593SmuzhiyunHOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
497*4882a593SmuzhiyunLIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
498*4882a593SmuzhiyunOUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
499*4882a593SmuzhiyunSUCH DAMAGE.
500*4882a593Smuzhiyun
501*4882a593SmuzhiyunAuthor:  Stanislav Ocovaj (socovaj@mips.com)
502*4882a593SmuzhiyunAuthor:  Zoran Lukic (zoranl@mips.com)
503*4882a593Smuzhiyun
504*4882a593SmuzhiyunOptimized MDCT/IMDCT and FFT transforms
505*4882a593Smuzhiyun
506*4882a593SmuzhiyunThis file is part of FFmpeg.
507*4882a593Smuzhiyun
508*4882a593SmuzhiyunFFmpeg is free software; you can redistribute it and/or
509*4882a593Smuzhiyunmodify it under the terms of the GNU Lesser General Public
510*4882a593SmuzhiyunLicense as published by the Free Software Foundation; either
511*4882a593Smuzhiyunversion 2.1 of the License, or (at your option) any later version.
512*4882a593Smuzhiyun
513*4882a593SmuzhiyunFFmpeg is distributed in the hope that it will be useful,
514*4882a593Smuzhiyunbut WITHOUT ANY WARRANTY; without even the implied warranty of
515*4882a593SmuzhiyunMERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
516*4882a593SmuzhiyunLesser General Public License for more details.
517*4882a593Smuzhiyun
518*4882a593SmuzhiyunYou should have received a copy of the GNU Lesser General Public
519*4882a593SmuzhiyunLicense along with FFmpeg; if not, write to the Free Software
520*4882a593SmuzhiyunFoundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
521*4882a593Smuzhiyun
522*4882a593Smuzhiyun********************************************************************************
523*4882a593Smuzhiyun
524*4882a593Smuzhiyunlibavcodec/mips/mpegaudiodsp_mips_float.c
525*4882a593Smuzhiyun
526*4882a593SmuzhiyunCopyright (c) 2012
527*4882a593SmuzhiyunMIPS Technologies, Inc., California.
528*4882a593Smuzhiyun
529*4882a593SmuzhiyunRedistribution and use in source and binary forms, with or without
530*4882a593Smuzhiyunmodification, are permitted provided that the following conditions
531*4882a593Smuzhiyunare met:
532*4882a593Smuzhiyun1. Redistributions of source code must retain the above copyright
533*4882a593Smuzhiyunnotice, this list of conditions and the following disclaimer.
534*4882a593Smuzhiyun2. Redistributions in binary form must reproduce the above copyright
535*4882a593Smuzhiyunnotice, this list of conditions and the following disclaimer in the
536*4882a593Smuzhiyundocumentation and/or other materials provided with the distribution.
537*4882a593Smuzhiyun3. Neither the name of the MIPS Technologies, Inc., nor the names of its
538*4882a593Smuzhiyuncontributors may be used to endorse or promote products derived from
539*4882a593Smuzhiyunthis software without specific prior written permission.
540*4882a593Smuzhiyun
541*4882a593SmuzhiyunTHIS SOFTWARE IS PROVIDED BY THE MIPS TECHNOLOGIES, INC. ``AS IS'' AND
542*4882a593SmuzhiyunANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
543*4882a593SmuzhiyunIMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
544*4882a593SmuzhiyunARE DISCLAIMED.  IN NO EVENT SHALL THE MIPS TECHNOLOGIES, INC. BE LIABLE
545*4882a593SmuzhiyunFOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
546*4882a593SmuzhiyunDAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
547*4882a593SmuzhiyunOR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
548*4882a593SmuzhiyunHOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
549*4882a593SmuzhiyunLIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
550*4882a593SmuzhiyunOUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
551*4882a593SmuzhiyunSUCH DAMAGE.
552*4882a593Smuzhiyun
553*4882a593SmuzhiyunAuthor:  Bojan Zivkovic (bojan@mips.com)
554*4882a593Smuzhiyun
555*4882a593SmuzhiyunMPEG Audio decoder optimized for MIPS floating-point architecture
556*4882a593Smuzhiyun
557*4882a593SmuzhiyunThis file is part of FFmpeg.
558*4882a593Smuzhiyun
559*4882a593SmuzhiyunFFmpeg is free software; you can redistribute it and/or
560*4882a593Smuzhiyunmodify it under the terms of the GNU Lesser General Public
561*4882a593SmuzhiyunLicense as published by the Free Software Foundation; either
562*4882a593Smuzhiyunversion 2.1 of the License, or (at your option) any later version.
563*4882a593Smuzhiyun
564*4882a593SmuzhiyunFFmpeg is distributed in the hope that it will be useful,
565*4882a593Smuzhiyunbut WITHOUT ANY WARRANTY; without even the implied warranty of
566*4882a593SmuzhiyunMERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
567*4882a593SmuzhiyunLesser General Public License for more details.
568*4882a593Smuzhiyun
569*4882a593SmuzhiyunYou should have received a copy of the GNU Lesser General Public
570*4882a593SmuzhiyunLicense along with FFmpeg; if not, write to the Free Software
571*4882a593SmuzhiyunFoundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
572*4882a593Smuzhiyun
573*4882a593Smuzhiyun********************************************************************************
574*4882a593Smuzhiyun
575*4882a593Smuzhiyunlibavcodec/x86/xvididct.asm
576*4882a593Smuzhiyun
577*4882a593SmuzhiyunXVID MPEG-4 VIDEO CODEC
578*4882a593Smuzhiyun
579*4882a593Smuzhiyun Conversion from gcc syntax to x264asm syntax with modifications
580*4882a593Smuzhiyun by Christophe Gisquet <christophe.gisquet@gmail.com>
581*4882a593Smuzhiyun
582*4882a593Smuzhiyun ===========     SSE2 inverse discrete cosine transform     ===========
583*4882a593Smuzhiyun
584*4882a593Smuzhiyun Copyright(C) 2003 Pascal Massimino <skal@planet-d.net>
585*4882a593Smuzhiyun
586*4882a593Smuzhiyun Conversion to gcc syntax with modifications
587*4882a593Smuzhiyun by Alexander Strange <astrange@ithinksw.com>
588*4882a593Smuzhiyun
589*4882a593Smuzhiyun Originally from dct/x86_asm/fdct_sse2_skal.asm in Xvid.
590*4882a593Smuzhiyun
591*4882a593Smuzhiyun Vertical pass is an implementation of the scheme:
592*4882a593Smuzhiyun  Loeffler C., Ligtenberg A., and Moschytz C.S.:
593*4882a593Smuzhiyun  Practical Fast 1D DCT Algorithm with Eleven Multiplications,
594*4882a593Smuzhiyun  Proc. ICASSP 1989, 988-991.
595*4882a593Smuzhiyun
596*4882a593Smuzhiyun Horizontal pass is a double 4x4 vector/matrix multiplication,
597*4882a593Smuzhiyun (see also Intel's Application Note 922:
598*4882a593Smuzhiyun  http://developer.intel.com/vtune/cbts/strmsimd/922down.htm
599*4882a593Smuzhiyun  Copyright (C) 1999 Intel Corporation)
600*4882a593Smuzhiyun
601*4882a593Smuzhiyun More details at http://skal.planet-d.net/coding/dct.html
602*4882a593Smuzhiyun
603*4882a593Smuzhiyun =======     MMX and XMM forward discrete cosine transform     =======
604*4882a593Smuzhiyun
605*4882a593Smuzhiyun Copyright(C) 2001 Peter Ross <pross@xvid.org>
606*4882a593Smuzhiyun
607*4882a593Smuzhiyun Originally provided by Intel at AP-922
608*4882a593Smuzhiyun http://developer.intel.com/vtune/cbts/strmsimd/922down.htm
609*4882a593Smuzhiyun (See more app notes at http://developer.intel.com/vtune/cbts/strmsimd/appnotes.htm)
610*4882a593Smuzhiyun but in a limited edition.
611*4882a593Smuzhiyun New macro implements a column part for precise iDCT
612*4882a593Smuzhiyun The routine precision now satisfies IEEE standard 1180-1990.
613*4882a593Smuzhiyun
614*4882a593Smuzhiyun Copyright(C) 2000-2001 Peter Gubanov <peter@elecard.net.ru>
615*4882a593Smuzhiyun Rounding trick Copyright(C) 2000 Michel Lespinasse <walken@zoy.org>
616*4882a593Smuzhiyun
617*4882a593Smuzhiyun http://www.elecard.com/peter/idct.html
618*4882a593Smuzhiyun http://www.linuxvideo.org/mpeg2dec/
619*4882a593Smuzhiyun
620*4882a593Smuzhiyun These examples contain code fragments for first stage iDCT 8x8
621*4882a593Smuzhiyun (for rows) and first stage DCT 8x8 (for columns)
622*4882a593Smuzhiyun
623*4882a593Smuzhiyun conversion to gcc syntax by Michael Niedermayer
624*4882a593Smuzhiyun
625*4882a593Smuzhiyun ======================================================================
626*4882a593Smuzhiyun
627*4882a593Smuzhiyun This file is part of FFmpeg.
628*4882a593Smuzhiyun
629*4882a593Smuzhiyun FFmpeg is free software; you can redistribute it and/or
630*4882a593Smuzhiyun modify it under the terms of the GNU Lesser General Public
631*4882a593Smuzhiyun License as published by the Free Software Foundation; either
632*4882a593Smuzhiyun version 2.1 of the License, or (at your option) any later version.
633*4882a593Smuzhiyun
634*4882a593Smuzhiyun FFmpeg is distributed in the hope that it will be useful,
635*4882a593Smuzhiyun but WITHOUT ANY WARRANTY; without even the implied warranty of
636*4882a593Smuzhiyun MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
637*4882a593Smuzhiyun Lesser General Public License for more details.
638*4882a593Smuzhiyun
639*4882a593Smuzhiyun You should have received a copy of the GNU Lesser General Public License
640*4882a593Smuzhiyun along with FFmpeg; if not, write to the Free Software Foundation,
641*4882a593Smuzhiyun Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
642*4882a593Smuzhiyun
643*4882a593Smuzhiyun********************************************************************************
644*4882a593Smuzhiyun
645*4882a593Smuzhiyunlibavformat/oggparsetheora.c
646*4882a593Smuzhiyun
647*4882a593SmuzhiyunCopyright (C) 2005  Matthieu CASTET, Alex Beregszaszi
648*4882a593Smuzhiyun
649*4882a593SmuzhiyunPermission is hereby granted, free of charge, to any person
650*4882a593Smuzhiyunobtaining a copy of this software and associated documentation
651*4882a593Smuzhiyunfiles (the "Software"), to deal in the Software without
652*4882a593Smuzhiyunrestriction, including without limitation the rights to use, copy,
653*4882a593Smuzhiyunmodify, merge, publish, distribute, sublicense, and/or sell copies
654*4882a593Smuzhiyunof the Software, and to permit persons to whom the Software is
655*4882a593Smuzhiyunfurnished to do so, subject to the following conditions:
656*4882a593Smuzhiyun
657*4882a593SmuzhiyunThe above copyright notice and this permission notice shall be
658*4882a593Smuzhiyunincluded in all copies or substantial portions of the Software.
659*4882a593Smuzhiyun
660*4882a593SmuzhiyunTHE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
661*4882a593SmuzhiyunEXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
662*4882a593SmuzhiyunMERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
663*4882a593SmuzhiyunNONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
664*4882a593SmuzhiyunHOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
665*4882a593SmuzhiyunWHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
666*4882a593SmuzhiyunOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
667*4882a593SmuzhiyunDEALINGS IN THE SOFTWARE.
668*4882a593Smuzhiyun
669*4882a593Smuzhiyun********************************************************************************
670*4882a593Smuzhiyun
671*4882a593Smuzhiyunlibavutil/avsscanf.c
672*4882a593Smuzhiyun
673*4882a593SmuzhiyunCopyright (c) 2005-2014 Rich Felker, et al.
674*4882a593Smuzhiyun
675*4882a593SmuzhiyunPermission is hereby granted, free of charge, to any person obtaining
676*4882a593Smuzhiyuna copy of this software and associated documentation files (the
677*4882a593Smuzhiyun"Software"), to deal in the Software without restriction, including
678*4882a593Smuzhiyunwithout limitation the rights to use, copy, modify, merge, publish,
679*4882a593Smuzhiyundistribute, sublicense, and/or sell copies of the Software, and to
680*4882a593Smuzhiyunpermit persons to whom the Software is furnished to do so, subject to
681*4882a593Smuzhiyunthe following conditions:
682*4882a593Smuzhiyun
683*4882a593SmuzhiyunThe above copyright notice and this permission notice shall be
684*4882a593Smuzhiyunincluded in all copies or substantial portions of the Software.
685*4882a593Smuzhiyun
686*4882a593SmuzhiyunTHE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
687*4882a593SmuzhiyunEXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
688*4882a593SmuzhiyunMERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
689*4882a593SmuzhiyunIN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
690*4882a593SmuzhiyunCLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
691*4882a593SmuzhiyunTORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
692*4882a593SmuzhiyunSOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
693*4882a593Smuzhiyun
694*4882a593Smuzhiyun********************************************************************************
695*4882a593Smuzhiyun
696*4882a593Smuzhiyunlibswresample/swresample.h
697*4882a593Smuzhiyun
698*4882a593SmuzhiyunCopyright (C) 2011-2013 Michael Niedermayer (michaelni@gmx.at)
699*4882a593Smuzhiyun
700*4882a593SmuzhiyunThis file is part of libswresample
701*4882a593Smuzhiyun
702*4882a593Smuzhiyunlibswresample is free software; you can redistribute it and/or
703*4882a593Smuzhiyunmodify it under the terms of the GNU Lesser General Public
704*4882a593SmuzhiyunLicense as published by the Free Software Foundation; either
705*4882a593Smuzhiyunversion 2.1 of the License, or (at your option) any later version.
706*4882a593Smuzhiyun
707*4882a593Smuzhiyunlibswresample is distributed in the hope that it will be useful,
708*4882a593Smuzhiyunbut WITHOUT ANY WARRANTY; without even the implied warranty of
709*4882a593SmuzhiyunMERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
710*4882a593SmuzhiyunLesser General Public License for more details.
711*4882a593Smuzhiyun
712*4882a593SmuzhiyunYou should have received a copy of the GNU Lesser General Public
713*4882a593SmuzhiyunLicense along with libswresample; if not, write to the Free Software
714*4882a593SmuzhiyunFoundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
715*4882a593Smuzhiyun
716*4882a593Smuzhiyun********************************************************************************
717*4882a593Smuzhiyun
718*4882a593Smuzhiyunlibswresample/version.h
719*4882a593Smuzhiyun
720*4882a593SmuzhiyunVersion macros.
721*4882a593Smuzhiyun
722*4882a593SmuzhiyunThis file is part of libswresample
723*4882a593Smuzhiyun
724*4882a593Smuzhiyunlibswresample is free software; you can redistribute it and/or
725*4882a593Smuzhiyunmodify it under the terms of the GNU Lesser General Public
726*4882a593SmuzhiyunLicense as published by the Free Software Foundation; either
727*4882a593Smuzhiyunversion 2.1 of the License, or (at your option) any later version.
728*4882a593Smuzhiyun
729*4882a593Smuzhiyunlibswresample is distributed in the hope that it will be useful,
730*4882a593Smuzhiyunbut WITHOUT ANY WARRANTY; without even the implied warranty of
731*4882a593SmuzhiyunMERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
732*4882a593SmuzhiyunLesser General Public License for more details.
733*4882a593Smuzhiyun
734*4882a593SmuzhiyunYou should have received a copy of the GNU Lesser General Public
735*4882a593SmuzhiyunLicense along with libswresample; if not, write to the Free Software
736*4882a593SmuzhiyunFoundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
737*4882a593Smuzhiyun
738*4882a593Smuzhiyun********************************************************************************
739*4882a593Smuzhiyun
740*4882a593Smuzhiyunlibavcodec/jfdctfst.c
741*4882a593Smuzhiyunlibavcodec/jfdctint_template.c
742*4882a593Smuzhiyunlibavcodec/jrevdct.c
743*4882a593Smuzhiyun
744*4882a593SmuzhiyunThis file is part of the Independent JPEG Group's software.
745*4882a593Smuzhiyun
746*4882a593SmuzhiyunThe authors make NO WARRANTY or representation, either express or implied,
747*4882a593Smuzhiyunwith respect to this software, its quality, accuracy, merchantability, or
748*4882a593Smuzhiyunfitness for a particular purpose.  This software is provided "AS IS", and
749*4882a593Smuzhiyunyou, its user, assume the entire risk as to its quality and accuracy.
750*4882a593Smuzhiyun
751*4882a593SmuzhiyunThis software is copyright (C) 1994-1996, Thomas G. Lane.
752*4882a593SmuzhiyunAll Rights Reserved except as specified below.
753*4882a593Smuzhiyun
754*4882a593SmuzhiyunPermission is hereby granted to use, copy, modify, and distribute this
755*4882a593Smuzhiyunsoftware (or portions thereof) for any purpose, without fee, subject to
756*4882a593Smuzhiyunthese conditions:
757*4882a593Smuzhiyun(1) If any part of the source code for this software is distributed, then
758*4882a593Smuzhiyunthis README file must be included, with this copyright and no-warranty
759*4882a593Smuzhiyunnotice unaltered; and any additions, deletions, or changes to the original
760*4882a593Smuzhiyunfiles must be clearly indicated in accompanying documentation.
761*4882a593Smuzhiyun(2) If only executable code is distributed, then the accompanying
762*4882a593Smuzhiyundocumentation must state that "this software is based in part on the work
763*4882a593Smuzhiyunof the Independent JPEG Group".
764*4882a593Smuzhiyun(3) Permission for use of this software is granted only if the user accepts
765*4882a593Smuzhiyunfull responsibility for any undesirable consequences; the authors accept
766*4882a593SmuzhiyunNO LIABILITY for damages of any kind.
767*4882a593Smuzhiyun
768*4882a593SmuzhiyunThese conditions apply to any software derived from or based on the IJG
769*4882a593Smuzhiyuncode, not just to the unmodified library.  If you use our work, you ought
770*4882a593Smuzhiyunto acknowledge us.
771*4882a593Smuzhiyun
772*4882a593SmuzhiyunPermission is NOT granted for the use of any IJG author's name or company
773*4882a593Smuzhiyunname in advertising or publicity relating to this software or products
774*4882a593Smuzhiyunderived from it.  This software may be referred to only as "the Independent
775*4882a593SmuzhiyunJPEG Group's software".
776*4882a593Smuzhiyun
777*4882a593SmuzhiyunWe specifically permit and encourage the use of this software as the basis
778*4882a593Smuzhiyunof commercial products, provided that all warranty or liability claims are
779*4882a593Smuzhiyunassumed by the product vendor.
780*4882a593Smuzhiyun
781*4882a593Smuzhiyun********************************************************************************
782*4882a593Smuzhiyun
783*4882a593Smuzhiyunlibavcodec/fft_fixed_32.c
784*4882a593Smuzhiyunlibavcodec/fft_init_table.c
785*4882a593Smuzhiyunlibavcodec/fft_table.h
786*4882a593Smuzhiyunlibavcodec/mdct_fixed_32.c
787*4882a593Smuzhiyunlibavcodec/mips/aacdec_mips.c
788*4882a593Smuzhiyunlibavcodec/mips/aacdec_mips.h
789*4882a593Smuzhiyunlibavcodec/mips/aacpsdsp_mips.c
790*4882a593Smuzhiyunlibavcodec/mips/aacsbr_mips.c
791*4882a593Smuzhiyunlibavcodec/mips/aacsbr_mips.h
792*4882a593Smuzhiyunlibavcodec/mips/amrwbdec_mips.h
793*4882a593Smuzhiyunlibavcodec/mips/compute_antialias_fixed.h
794*4882a593Smuzhiyunlibavcodec/mips/compute_antialias_float.h
795*4882a593Smuzhiyunlibavcodec/mips/lsp_mips.h
796*4882a593Smuzhiyunlibavcodec/mips/sbrdsp_mips.c
797*4882a593Smuzhiyunlibavutil/fixed_dsp.c
798*4882a593Smuzhiyunlibavutil/fixed_dsp.h
799*4882a593Smuzhiyunlibavutil/mips/float_dsp_mips.c
800*4882a593Smuzhiyunlibavutil/mips/libm_mips.h
801*4882a593Smuzhiyunlibavutil/softfloat_tables.h
802*4882a593Smuzhiyun
803*4882a593SmuzhiyunCopyright (c) 2012
804*4882a593SmuzhiyunMIPS Technologies, Inc., California.
805*4882a593Smuzhiyun
806*4882a593SmuzhiyunRedistribution and use in source and binary forms, with or without
807*4882a593Smuzhiyunmodification, are permitted provided that the following conditions
808*4882a593Smuzhiyunare met:
809*4882a593Smuzhiyun1. Redistributions of source code must retain the above copyright
810*4882a593Smuzhiyunnotice, this list of conditions and the following disclaimer.
811*4882a593Smuzhiyun2. Redistributions in binary form must reproduce the above copyright
812*4882a593Smuzhiyunnotice, this list of conditions and the following disclaimer in the
813*4882a593Smuzhiyundocumentation and/or other materials provided with the distribution.
814*4882a593Smuzhiyun3. Neither the name of the MIPS Technologies, Inc., nor the names of its
815*4882a593Smuzhiyuncontributors may be used to endorse or promote products derived from
816*4882a593Smuzhiyunthis software without specific prior written permission.
817*4882a593Smuzhiyun
818*4882a593SmuzhiyunTHIS SOFTWARE IS PROVIDED BY THE MIPS TECHNOLOGIES, INC. ``AS IS'' AND
819*4882a593SmuzhiyunANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
820*4882a593SmuzhiyunIMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
821*4882a593SmuzhiyunARE DISCLAIMED.  IN NO EVENT SHALL THE MIPS TECHNOLOGIES, INC. BE LIABLE
822*4882a593SmuzhiyunFOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
823*4882a593SmuzhiyunDAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
824*4882a593SmuzhiyunOR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
825*4882a593SmuzhiyunHOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
826*4882a593SmuzhiyunLIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
827*4882a593SmuzhiyunOUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
828*4882a593SmuzhiyunSUCH DAMAGE.
829*4882a593Smuzhiyun
830*4882a593SmuzhiyunAuthors:
831*4882a593SmuzhiyunBranimir Vasic   (bvasic@mips.com)
832*4882a593SmuzhiyunDarko Laus       (darko@mips.com)
833*4882a593SmuzhiyunDjordje Pesut    (djordje@mips.com)
834*4882a593SmuzhiyunGoran Cordasic   (goran@mips.com)
835*4882a593SmuzhiyunNedeljko Babic   (nedeljko.babic imgtec com)
836*4882a593SmuzhiyunMirjana Vulin    (mvulin@mips.com)
837*4882a593SmuzhiyunStanislav Ocovaj (socovaj@mips.com)
838*4882a593SmuzhiyunZoran Lukic      (zoranl@mips.com)
839*4882a593Smuzhiyun
840*4882a593Smuzhiyun********************************************************************************
841*4882a593Smuzhiyun
842*4882a593Smuzhiyunlibavformat/oggdec.c
843*4882a593Smuzhiyunlibavformat/oggdec.h
844*4882a593Smuzhiyunlibavformat/oggparseogm.c
845*4882a593Smuzhiyunlibavformat/oggparsevorbis.c
846*4882a593Smuzhiyun
847*4882a593SmuzhiyunCopyright (C) 2005  Michael Ahlberg, Måns Rullgård
848*4882a593Smuzhiyun
849*4882a593SmuzhiyunPermission is hereby granted, free of charge, to any person
850*4882a593Smuzhiyunobtaining a copy of this software and associated documentation
851*4882a593Smuzhiyunfiles (the "Software"), to deal in the Software without
852*4882a593Smuzhiyunrestriction, including without limitation the rights to use, copy,
853*4882a593Smuzhiyunmodify, merge, publish, distribute, sublicense, and/or sell copies
854*4882a593Smuzhiyunof the Software, and to permit persons to whom the Software is
855*4882a593Smuzhiyunfurnished to do so, subject to the following conditions:
856*4882a593Smuzhiyun
857*4882a593SmuzhiyunThe above copyright notice and this permission notice shall be
858*4882a593Smuzhiyunincluded in all copies or substantial portions of the Software.
859*4882a593Smuzhiyun
860*4882a593SmuzhiyunTHE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
861*4882a593SmuzhiyunEXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
862*4882a593SmuzhiyunMERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
863*4882a593SmuzhiyunNONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
864*4882a593SmuzhiyunHOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
865*4882a593SmuzhiyunWHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
866*4882a593SmuzhiyunOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
867*4882a593SmuzhiyunDEALINGS IN THE SOFTWARE.
868*4882a593Smuzhiyun
869*4882a593Smuzhiyun********************************************************************************
870*4882a593Smuzhiyun
871*4882a593Smuzhiyun                  GNU LESSER GENERAL PUBLIC LICENSE
872*4882a593Smuzhiyun                       Version 2.1, February 1999
873*4882a593Smuzhiyun
874*4882a593Smuzhiyun Copyright (C) 1991, 1999 Free Software Foundation, Inc.
875*4882a593Smuzhiyun 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
876*4882a593Smuzhiyun Everyone is permitted to copy and distribute verbatim copies
877*4882a593Smuzhiyun of this license document, but changing it is not allowed.
878*4882a593Smuzhiyun
879*4882a593Smuzhiyun[This is the first released version of the Lesser GPL.  It also counts
880*4882a593Smuzhiyun as the successor of the GNU Library Public License, version 2, hence
881*4882a593Smuzhiyun the version number 2.1.]
882*4882a593Smuzhiyun
883*4882a593Smuzhiyun                            Preamble
884*4882a593Smuzhiyun
885*4882a593Smuzhiyun  The licenses for most software are designed to take away your
886*4882a593Smuzhiyunfreedom to share and change it.  By contrast, the GNU General Public
887*4882a593SmuzhiyunLicenses are intended to guarantee your freedom to share and change
888*4882a593Smuzhiyunfree software--to make sure the software is free for all its users.
889*4882a593Smuzhiyun
890*4882a593Smuzhiyun  This license, the Lesser General Public License, applies to some
891*4882a593Smuzhiyunspecially designated software packages--typically libraries--of the
892*4882a593SmuzhiyunFree Software Foundation and other authors who decide to use it.  You
893*4882a593Smuzhiyuncan use it too, but we suggest you first think carefully about whether
894*4882a593Smuzhiyunthis license or the ordinary General Public License is the better
895*4882a593Smuzhiyunstrategy to use in any particular case, based on the explanations below.
896*4882a593Smuzhiyun
897*4882a593Smuzhiyun  When we speak of free software, we are referring to freedom of use,
898*4882a593Smuzhiyunnot price.  Our General Public Licenses are designed to make sure that
899*4882a593Smuzhiyunyou have the freedom to distribute copies of free software (and charge
900*4882a593Smuzhiyunfor this service if you wish); that you receive source code or can get
901*4882a593Smuzhiyunit if you want it; that you can change the software and use pieces of
902*4882a593Smuzhiyunit in new free programs; and that you are informed that you can do
903*4882a593Smuzhiyunthese things.
904*4882a593Smuzhiyun
905*4882a593Smuzhiyun  To protect your rights, we need to make restrictions that forbid
906*4882a593Smuzhiyundistributors to deny you these rights or to ask you to surrender these
907*4882a593Smuzhiyunrights.  These restrictions translate to certain responsibilities for
908*4882a593Smuzhiyunyou if you distribute copies of the library or if you modify it.
909*4882a593Smuzhiyun
910*4882a593Smuzhiyun  For example, if you distribute copies of the library, whether gratis
911*4882a593Smuzhiyunor for a fee, you must give the recipients all the rights that we gave
912*4882a593Smuzhiyunyou.  You must make sure that they, too, receive or can get the source
913*4882a593Smuzhiyuncode.  If you link other code with the library, you must provide
914*4882a593Smuzhiyuncomplete object files to the recipients, so that they can relink them
915*4882a593Smuzhiyunwith the library after making changes to the library and recompiling
916*4882a593Smuzhiyunit.  And you must show them these terms so they know their rights.
917*4882a593Smuzhiyun
918*4882a593Smuzhiyun  We protect your rights with a two-step method: (1) we copyright the
919*4882a593Smuzhiyunlibrary, and (2) we offer you this license, which gives you legal
920*4882a593Smuzhiyunpermission to copy, distribute and/or modify the library.
921*4882a593Smuzhiyun
922*4882a593Smuzhiyun  To protect each distributor, we want to make it very clear that
923*4882a593Smuzhiyunthere is no warranty for the free library.  Also, if the library is
924*4882a593Smuzhiyunmodified by someone else and passed on, the recipients should know
925*4882a593Smuzhiyunthat what they have is not the original version, so that the original
926*4882a593Smuzhiyunauthor's reputation will not be affected by problems that might be
927*4882a593Smuzhiyunintroduced by others.
928*4882a593Smuzhiyun
929*4882a593Smuzhiyun  Finally, software patents pose a constant threat to the existence of
930*4882a593Smuzhiyunany free program.  We wish to make sure that a company cannot
931*4882a593Smuzhiyuneffectively restrict the users of a free program by obtaining a
932*4882a593Smuzhiyunrestrictive license from a patent holder.  Therefore, we insist that
933*4882a593Smuzhiyunany patent license obtained for a version of the library must be
934*4882a593Smuzhiyunconsistent with the full freedom of use specified in this license.
935*4882a593Smuzhiyun
936*4882a593Smuzhiyun  Most GNU software, including some libraries, is covered by the
937*4882a593Smuzhiyunordinary GNU General Public License.  This license, the GNU Lesser
938*4882a593SmuzhiyunGeneral Public License, applies to certain designated libraries, and
939*4882a593Smuzhiyunis quite different from the ordinary General Public License.  We use
940*4882a593Smuzhiyunthis license for certain libraries in order to permit linking those
941*4882a593Smuzhiyunlibraries into non-free programs.
942*4882a593Smuzhiyun
943*4882a593Smuzhiyun  When a program is linked with a library, whether statically or using
944*4882a593Smuzhiyuna shared library, the combination of the two is legally speaking a
945*4882a593Smuzhiyuncombined work, a derivative of the original library.  The ordinary
946*4882a593SmuzhiyunGeneral Public License therefore permits such linking only if the
947*4882a593Smuzhiyunentire combination fits its criteria of freedom.  The Lesser General
948*4882a593SmuzhiyunPublic License permits more lax criteria for linking other code with
949*4882a593Smuzhiyunthe library.
950*4882a593Smuzhiyun
951*4882a593Smuzhiyun  We call this license the "Lesser" General Public License because it
952*4882a593Smuzhiyundoes Less to protect the user's freedom than the ordinary General
953*4882a593SmuzhiyunPublic License.  It also provides other free software developers Less
954*4882a593Smuzhiyunof an advantage over competing non-free programs.  These disadvantages
955*4882a593Smuzhiyunare the reason we use the ordinary General Public License for many
956*4882a593Smuzhiyunlibraries.  However, the Lesser license provides advantages in certain
957*4882a593Smuzhiyunspecial circumstances.
958*4882a593Smuzhiyun
959*4882a593Smuzhiyun  For example, on rare occasions, there may be a special need to
960*4882a593Smuzhiyunencourage the widest possible use of a certain library, so that it becomes
961*4882a593Smuzhiyuna de-facto standard.  To achieve this, non-free programs must be
962*4882a593Smuzhiyunallowed to use the library.  A more frequent case is that a free
963*4882a593Smuzhiyunlibrary does the same job as widely used non-free libraries.  In this
964*4882a593Smuzhiyuncase, there is little to gain by limiting the free library to free
965*4882a593Smuzhiyunsoftware only, so we use the Lesser General Public License.
966*4882a593Smuzhiyun
967*4882a593Smuzhiyun  In other cases, permission to use a particular library in non-free
968*4882a593Smuzhiyunprograms enables a greater number of people to use a large body of
969*4882a593Smuzhiyunfree software.  For example, permission to use the GNU C Library in
970*4882a593Smuzhiyunnon-free programs enables many more people to use the whole GNU
971*4882a593Smuzhiyunoperating system, as well as its variant, the GNU/Linux operating
972*4882a593Smuzhiyunsystem.
973*4882a593Smuzhiyun
974*4882a593Smuzhiyun  Although the Lesser General Public License is Less protective of the
975*4882a593Smuzhiyunusers' freedom, it does ensure that the user of a program that is
976*4882a593Smuzhiyunlinked with the Library has the freedom and the wherewithal to run
977*4882a593Smuzhiyunthat program using a modified version of the Library.
978*4882a593Smuzhiyun
979*4882a593Smuzhiyun  The precise terms and conditions for copying, distribution and
980*4882a593Smuzhiyunmodification follow.  Pay close attention to the difference between a
981*4882a593Smuzhiyun"work based on the library" and a "work that uses the library".  The
982*4882a593Smuzhiyunformer contains code derived from the library, whereas the latter must
983*4882a593Smuzhiyunbe combined with the library in order to run.
984*4882a593Smuzhiyun
985*4882a593Smuzhiyun                  GNU LESSER GENERAL PUBLIC LICENSE
986*4882a593Smuzhiyun   TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
987*4882a593Smuzhiyun
988*4882a593Smuzhiyun  0. This License Agreement applies to any software library or other
989*4882a593Smuzhiyunprogram which contains a notice placed by the copyright holder or
990*4882a593Smuzhiyunother authorized party saying it may be distributed under the terms of
991*4882a593Smuzhiyunthis Lesser General Public License (also called "this License").
992*4882a593SmuzhiyunEach licensee is addressed as "you".
993*4882a593Smuzhiyun
994*4882a593Smuzhiyun  A "library" means a collection of software functions and/or data
995*4882a593Smuzhiyunprepared so as to be conveniently linked with application programs
996*4882a593Smuzhiyun(which use some of those functions and data) to form executables.
997*4882a593Smuzhiyun
998*4882a593Smuzhiyun  The "Library", below, refers to any such software library or work
999*4882a593Smuzhiyunwhich has been distributed under these terms.  A "work based on the
1000*4882a593SmuzhiyunLibrary" means either the Library or any derivative work under
1001*4882a593Smuzhiyuncopyright law: that is to say, a work containing the Library or a
1002*4882a593Smuzhiyunportion of it, either verbatim or with modifications and/or translated
1003*4882a593Smuzhiyunstraightforwardly into another language.  (Hereinafter, translation is
1004*4882a593Smuzhiyunincluded without limitation in the term "modification".)
1005*4882a593Smuzhiyun
1006*4882a593Smuzhiyun  "Source code" for a work means the preferred form of the work for
1007*4882a593Smuzhiyunmaking modifications to it.  For a library, complete source code means
1008*4882a593Smuzhiyunall the source code for all modules it contains, plus any associated
1009*4882a593Smuzhiyuninterface definition files, plus the scripts used to control compilation
1010*4882a593Smuzhiyunand installation of the library.
1011*4882a593Smuzhiyun
1012*4882a593Smuzhiyun  Activities other than copying, distribution and modification are not
1013*4882a593Smuzhiyuncovered by this License; they are outside its scope.  The act of
1014*4882a593Smuzhiyunrunning a program using the Library is not restricted, and output from
1015*4882a593Smuzhiyunsuch a program is covered only if its contents constitute a work based
1016*4882a593Smuzhiyunon the Library (independent of the use of the Library in a tool for
1017*4882a593Smuzhiyunwriting it).  Whether that is true depends on what the Library does
1018*4882a593Smuzhiyunand what the program that uses the Library does.
1019*4882a593Smuzhiyun
1020*4882a593Smuzhiyun  1. You may copy and distribute verbatim copies of the Library's
1021*4882a593Smuzhiyuncomplete source code as you receive it, in any medium, provided that
1022*4882a593Smuzhiyunyou conspicuously and appropriately publish on each copy an
1023*4882a593Smuzhiyunappropriate copyright notice and disclaimer of warranty; keep intact
1024*4882a593Smuzhiyunall the notices that refer to this License and to the absence of any
1025*4882a593Smuzhiyunwarranty; and distribute a copy of this License along with the
1026*4882a593SmuzhiyunLibrary.
1027*4882a593Smuzhiyun
1028*4882a593Smuzhiyun  You may charge a fee for the physical act of transferring a copy,
1029*4882a593Smuzhiyunand you may at your option offer warranty protection in exchange for a
1030*4882a593Smuzhiyunfee.
1031*4882a593Smuzhiyun
1032*4882a593Smuzhiyun  2. You may modify your copy or copies of the Library or any portion
1033*4882a593Smuzhiyunof it, thus forming a work based on the Library, and copy and
1034*4882a593Smuzhiyundistribute such modifications or work under the terms of Section 1
1035*4882a593Smuzhiyunabove, provided that you also meet all of these conditions:
1036*4882a593Smuzhiyun
1037*4882a593Smuzhiyun    a) The modified work must itself be a software library.
1038*4882a593Smuzhiyun
1039*4882a593Smuzhiyun    b) You must cause the files modified to carry prominent notices
1040*4882a593Smuzhiyun    stating that you changed the files and the date of any change.
1041*4882a593Smuzhiyun
1042*4882a593Smuzhiyun    c) You must cause the whole of the work to be licensed at no
1043*4882a593Smuzhiyun    charge to all third parties under the terms of this License.
1044*4882a593Smuzhiyun
1045*4882a593Smuzhiyun    d) If a facility in the modified Library refers to a function or a
1046*4882a593Smuzhiyun    table of data to be supplied by an application program that uses
1047*4882a593Smuzhiyun    the facility, other than as an argument passed when the facility
1048*4882a593Smuzhiyun    is invoked, then you must make a good faith effort to ensure that,
1049*4882a593Smuzhiyun    in the event an application does not supply such function or
1050*4882a593Smuzhiyun    table, the facility still operates, and performs whatever part of
1051*4882a593Smuzhiyun    its purpose remains meaningful.
1052*4882a593Smuzhiyun
1053*4882a593Smuzhiyun    (For example, a function in a library to compute square roots has
1054*4882a593Smuzhiyun    a purpose that is entirely well-defined independent of the
1055*4882a593Smuzhiyun    application.  Therefore, Subsection 2d requires that any
1056*4882a593Smuzhiyun    application-supplied function or table used by this function must
1057*4882a593Smuzhiyun    be optional: if the application does not supply it, the square
1058*4882a593Smuzhiyun    root function must still compute square roots.)
1059*4882a593Smuzhiyun
1060*4882a593SmuzhiyunThese requirements apply to the modified work as a whole.  If
1061*4882a593Smuzhiyunidentifiable sections of that work are not derived from the Library,
1062*4882a593Smuzhiyunand can be reasonably considered independent and separate works in
1063*4882a593Smuzhiyunthemselves, then this License, and its terms, do not apply to those
1064*4882a593Smuzhiyunsections when you distribute them as separate works.  But when you
1065*4882a593Smuzhiyundistribute the same sections as part of a whole which is a work based
1066*4882a593Smuzhiyunon the Library, the distribution of the whole must be on the terms of
1067*4882a593Smuzhiyunthis License, whose permissions for other licensees extend to the
1068*4882a593Smuzhiyunentire whole, and thus to each and every part regardless of who wrote
1069*4882a593Smuzhiyunit.
1070*4882a593Smuzhiyun
1071*4882a593SmuzhiyunThus, it is not the intent of this section to claim rights or contest
1072*4882a593Smuzhiyunyour rights to work written entirely by you; rather, the intent is to
1073*4882a593Smuzhiyunexercise the right to control the distribution of derivative or
1074*4882a593Smuzhiyuncollective works based on the Library.
1075*4882a593Smuzhiyun
1076*4882a593SmuzhiyunIn addition, mere aggregation of another work not based on the Library
1077*4882a593Smuzhiyunwith the Library (or with a work based on the Library) on a volume of
1078*4882a593Smuzhiyuna storage or distribution medium does not bring the other work under
1079*4882a593Smuzhiyunthe scope of this License.
1080*4882a593Smuzhiyun
1081*4882a593Smuzhiyun  3. You may opt to apply the terms of the ordinary GNU General Public
1082*4882a593SmuzhiyunLicense instead of this License to a given copy of the Library.  To do
1083*4882a593Smuzhiyunthis, you must alter all the notices that refer to this License, so
1084*4882a593Smuzhiyunthat they refer to the ordinary GNU General Public License, version 2,
1085*4882a593Smuzhiyuninstead of to this License.  (If a newer version than version 2 of the
1086*4882a593Smuzhiyunordinary GNU General Public License has appeared, then you can specify
1087*4882a593Smuzhiyunthat version instead if you wish.)  Do not make any other change in
1088*4882a593Smuzhiyunthese notices.
1089*4882a593Smuzhiyun
1090*4882a593Smuzhiyun  Once this change is made in a given copy, it is irreversible for
1091*4882a593Smuzhiyunthat copy, so the ordinary GNU General Public License applies to all
1092*4882a593Smuzhiyunsubsequent copies and derivative works made from that copy.
1093*4882a593Smuzhiyun
1094*4882a593Smuzhiyun  This option is useful when you wish to copy part of the code of
1095*4882a593Smuzhiyunthe Library into a program that is not a library.
1096*4882a593Smuzhiyun
1097*4882a593Smuzhiyun  4. You may copy and distribute the Library (or a portion or
1098*4882a593Smuzhiyunderivative of it, under Section 2) in object code or executable form
1099*4882a593Smuzhiyununder the terms of Sections 1 and 2 above provided that you accompany
1100*4882a593Smuzhiyunit with the complete corresponding machine-readable source code, which
1101*4882a593Smuzhiyunmust be distributed under the terms of Sections 1 and 2 above on a
1102*4882a593Smuzhiyunmedium customarily used for software interchange.
1103*4882a593Smuzhiyun
1104*4882a593Smuzhiyun  If distribution of object code is made by offering access to copy
1105*4882a593Smuzhiyunfrom a designated place, then offering equivalent access to copy the
1106*4882a593Smuzhiyunsource code from the same place satisfies the requirement to
1107*4882a593Smuzhiyundistribute the source code, even though third parties are not
1108*4882a593Smuzhiyuncompelled to copy the source along with the object code.
1109*4882a593Smuzhiyun
1110*4882a593Smuzhiyun  5. A program that contains no derivative of any portion of the
1111*4882a593SmuzhiyunLibrary, but is designed to work with the Library by being compiled or
1112*4882a593Smuzhiyunlinked with it, is called a "work that uses the Library".  Such a
1113*4882a593Smuzhiyunwork, in isolation, is not a derivative work of the Library, and
1114*4882a593Smuzhiyuntherefore falls outside the scope of this License.
1115*4882a593Smuzhiyun
1116*4882a593Smuzhiyun  However, linking a "work that uses the Library" with the Library
1117*4882a593Smuzhiyuncreates an executable that is a derivative of the Library (because it
1118*4882a593Smuzhiyuncontains portions of the Library), rather than a "work that uses the
1119*4882a593Smuzhiyunlibrary".  The executable is therefore covered by this License.
1120*4882a593SmuzhiyunSection 6 states terms for distribution of such executables.
1121*4882a593Smuzhiyun
1122*4882a593Smuzhiyun  When a "work that uses the Library" uses material from a header file
1123*4882a593Smuzhiyunthat is part of the Library, the object code for the work may be a
1124*4882a593Smuzhiyunderivative work of the Library even though the source code is not.
1125*4882a593SmuzhiyunWhether this is true is especially significant if the work can be
1126*4882a593Smuzhiyunlinked without the Library, or if the work is itself a library.  The
1127*4882a593Smuzhiyunthreshold for this to be true is not precisely defined by law.
1128*4882a593Smuzhiyun
1129*4882a593Smuzhiyun  If such an object file uses only numerical parameters, data
1130*4882a593Smuzhiyunstructure layouts and accessors, and small macros and small inline
1131*4882a593Smuzhiyunfunctions (ten lines or less in length), then the use of the object
1132*4882a593Smuzhiyunfile is unrestricted, regardless of whether it is legally a derivative
1133*4882a593Smuzhiyunwork.  (Executables containing this object code plus portions of the
1134*4882a593SmuzhiyunLibrary will still fall under Section 6.)
1135*4882a593Smuzhiyun
1136*4882a593Smuzhiyun  Otherwise, if the work is a derivative of the Library, you may
1137*4882a593Smuzhiyundistribute the object code for the work under the terms of Section 6.
1138*4882a593SmuzhiyunAny executables containing that work also fall under Section 6,
1139*4882a593Smuzhiyunwhether or not they are linked directly with the Library itself.
1140*4882a593Smuzhiyun
1141*4882a593Smuzhiyun  6. As an exception to the Sections above, you may also combine or
1142*4882a593Smuzhiyunlink a "work that uses the Library" with the Library to produce a
1143*4882a593Smuzhiyunwork containing portions of the Library, and distribute that work
1144*4882a593Smuzhiyununder terms of your choice, provided that the terms permit
1145*4882a593Smuzhiyunmodification of the work for the customer's own use and reverse
1146*4882a593Smuzhiyunengineering for debugging such modifications.
1147*4882a593Smuzhiyun
1148*4882a593Smuzhiyun  You must give prominent notice with each copy of the work that the
1149*4882a593SmuzhiyunLibrary is used in it and that the Library and its use are covered by
1150*4882a593Smuzhiyunthis License.  You must supply a copy of this License.  If the work
1151*4882a593Smuzhiyunduring execution displays copyright notices, you must include the
1152*4882a593Smuzhiyuncopyright notice for the Library among them, as well as a reference
1153*4882a593Smuzhiyundirecting the user to the copy of this License.  Also, you must do one
1154*4882a593Smuzhiyunof these things:
1155*4882a593Smuzhiyun
1156*4882a593Smuzhiyun    a) Accompany the work with the complete corresponding
1157*4882a593Smuzhiyun    machine-readable source code for the Library including whatever
1158*4882a593Smuzhiyun    changes were used in the work (which must be distributed under
1159*4882a593Smuzhiyun    Sections 1 and 2 above); and, if the work is an executable linked
1160*4882a593Smuzhiyun    with the Library, with the complete machine-readable "work that
1161*4882a593Smuzhiyun    uses the Library", as object code and/or source code, so that the
1162*4882a593Smuzhiyun    user can modify the Library and then relink to produce a modified
1163*4882a593Smuzhiyun    executable containing the modified Library.  (It is understood
1164*4882a593Smuzhiyun    that the user who changes the contents of definitions files in the
1165*4882a593Smuzhiyun    Library will not necessarily be able to recompile the application
1166*4882a593Smuzhiyun    to use the modified definitions.)
1167*4882a593Smuzhiyun
1168*4882a593Smuzhiyun    b) Use a suitable shared library mechanism for linking with the
1169*4882a593Smuzhiyun    Library.  A suitable mechanism is one that (1) uses at run time a
1170*4882a593Smuzhiyun    copy of the library already present on the user's computer system,
1171*4882a593Smuzhiyun    rather than copying library functions into the executable, and (2)
1172*4882a593Smuzhiyun    will operate properly with a modified version of the library, if
1173*4882a593Smuzhiyun    the user installs one, as long as the modified version is
1174*4882a593Smuzhiyun    interface-compatible with the version that the work was made with.
1175*4882a593Smuzhiyun
1176*4882a593Smuzhiyun    c) Accompany the work with a written offer, valid for at
1177*4882a593Smuzhiyun    least three years, to give the same user the materials
1178*4882a593Smuzhiyun    specified in Subsection 6a, above, for a charge no more
1179*4882a593Smuzhiyun    than the cost of performing this distribution.
1180*4882a593Smuzhiyun
1181*4882a593Smuzhiyun    d) If distribution of the work is made by offering access to copy
1182*4882a593Smuzhiyun    from a designated place, offer equivalent access to copy the above
1183*4882a593Smuzhiyun    specified materials from the same place.
1184*4882a593Smuzhiyun
1185*4882a593Smuzhiyun    e) Verify that the user has already received a copy of these
1186*4882a593Smuzhiyun    materials or that you have already sent this user a copy.
1187*4882a593Smuzhiyun
1188*4882a593Smuzhiyun  For an executable, the required form of the "work that uses the
1189*4882a593SmuzhiyunLibrary" must include any data and utility programs needed for
1190*4882a593Smuzhiyunreproducing the executable from it.  However, as a special exception,
1191*4882a593Smuzhiyunthe materials to be distributed need not include anything that is
1192*4882a593Smuzhiyunnormally distributed (in either source or binary form) with the major
1193*4882a593Smuzhiyuncomponents (compiler, kernel, and so on) of the operating system on
1194*4882a593Smuzhiyunwhich the executable runs, unless that component itself accompanies
1195*4882a593Smuzhiyunthe executable.
1196*4882a593Smuzhiyun
1197*4882a593Smuzhiyun  It may happen that this requirement contradicts the license
1198*4882a593Smuzhiyunrestrictions of other proprietary libraries that do not normally
1199*4882a593Smuzhiyunaccompany the operating system.  Such a contradiction means you cannot
1200*4882a593Smuzhiyunuse both them and the Library together in an executable that you
1201*4882a593Smuzhiyundistribute.
1202*4882a593Smuzhiyun
1203*4882a593Smuzhiyun  7. You may place library facilities that are a work based on the
1204*4882a593SmuzhiyunLibrary side-by-side in a single library together with other library
1205*4882a593Smuzhiyunfacilities not covered by this License, and distribute such a combined
1206*4882a593Smuzhiyunlibrary, provided that the separate distribution of the work based on
1207*4882a593Smuzhiyunthe Library and of the other library facilities is otherwise
1208*4882a593Smuzhiyunpermitted, and provided that you do these two things:
1209*4882a593Smuzhiyun
1210*4882a593Smuzhiyun    a) Accompany the combined library with a copy of the same work
1211*4882a593Smuzhiyun    based on the Library, uncombined with any other library
1212*4882a593Smuzhiyun    facilities.  This must be distributed under the terms of the
1213*4882a593Smuzhiyun    Sections above.
1214*4882a593Smuzhiyun
1215*4882a593Smuzhiyun    b) Give prominent notice with the combined library of the fact
1216*4882a593Smuzhiyun    that part of it is a work based on the Library, and explaining
1217*4882a593Smuzhiyun    where to find the accompanying uncombined form of the same work.
1218*4882a593Smuzhiyun
1219*4882a593Smuzhiyun  8. You may not copy, modify, sublicense, link with, or distribute
1220*4882a593Smuzhiyunthe Library except as expressly provided under this License.  Any
1221*4882a593Smuzhiyunattempt otherwise to copy, modify, sublicense, link with, or
1222*4882a593Smuzhiyundistribute the Library is void, and will automatically terminate your
1223*4882a593Smuzhiyunrights under this License.  However, parties who have received copies,
1224*4882a593Smuzhiyunor rights, from you under this License will not have their licenses
1225*4882a593Smuzhiyunterminated so long as such parties remain in full compliance.
1226*4882a593Smuzhiyun
1227*4882a593Smuzhiyun  9. You are not required to accept this License, since you have not
1228*4882a593Smuzhiyunsigned it.  However, nothing else grants you permission to modify or
1229*4882a593Smuzhiyundistribute the Library or its derivative works.  These actions are
1230*4882a593Smuzhiyunprohibited by law if you do not accept this License.  Therefore, by
1231*4882a593Smuzhiyunmodifying or distributing the Library (or any work based on the
1232*4882a593SmuzhiyunLibrary), you indicate your acceptance of this License to do so, and
1233*4882a593Smuzhiyunall its terms and conditions for copying, distributing or modifying
1234*4882a593Smuzhiyunthe Library or works based on it.
1235*4882a593Smuzhiyun
1236*4882a593Smuzhiyun  10. Each time you redistribute the Library (or any work based on the
1237*4882a593SmuzhiyunLibrary), the recipient automatically receives a license from the
1238*4882a593Smuzhiyunoriginal licensor to copy, distribute, link with or modify the Library
1239*4882a593Smuzhiyunsubject to these terms and conditions.  You may not impose any further
1240*4882a593Smuzhiyunrestrictions on the recipients' exercise of the rights granted herein.
1241*4882a593SmuzhiyunYou are not responsible for enforcing compliance by third parties with
1242*4882a593Smuzhiyunthis License.
1243*4882a593Smuzhiyun
1244*4882a593Smuzhiyun  11. If, as a consequence of a court judgment or allegation of patent
1245*4882a593Smuzhiyuninfringement or for any other reason (not limited to patent issues),
1246*4882a593Smuzhiyunconditions are imposed on you (whether by court order, agreement or
1247*4882a593Smuzhiyunotherwise) that contradict the conditions of this License, they do not
1248*4882a593Smuzhiyunexcuse you from the conditions of this License.  If you cannot
1249*4882a593Smuzhiyundistribute so as to satisfy simultaneously your obligations under this
1250*4882a593SmuzhiyunLicense and any other pertinent obligations, then as a consequence you
1251*4882a593Smuzhiyunmay not distribute the Library at all.  For example, if a patent
1252*4882a593Smuzhiyunlicense would not permit royalty-free redistribution of the Library by
1253*4882a593Smuzhiyunall those who receive copies directly or indirectly through you, then
1254*4882a593Smuzhiyunthe only way you could satisfy both it and this License would be to
1255*4882a593Smuzhiyunrefrain entirely from distribution of the Library.
1256*4882a593Smuzhiyun
1257*4882a593SmuzhiyunIf any portion of this section is held invalid or unenforceable under any
1258*4882a593Smuzhiyunparticular circumstance, the balance of the section is intended to apply,
1259*4882a593Smuzhiyunand the section as a whole is intended to apply in other circumstances.
1260*4882a593Smuzhiyun
1261*4882a593SmuzhiyunIt is not the purpose of this section to induce you to infringe any
1262*4882a593Smuzhiyunpatents or other property right claims or to contest validity of any
1263*4882a593Smuzhiyunsuch claims; this section has the sole purpose of protecting the
1264*4882a593Smuzhiyunintegrity of the free software distribution system which is
1265*4882a593Smuzhiyunimplemented by public license practices.  Many people have made
1266*4882a593Smuzhiyungenerous contributions to the wide range of software distributed
1267*4882a593Smuzhiyunthrough that system in reliance on consistent application of that
1268*4882a593Smuzhiyunsystem; it is up to the author/donor to decide if he or she is willing
1269*4882a593Smuzhiyunto distribute software through any other system and a licensee cannot
1270*4882a593Smuzhiyunimpose that choice.
1271*4882a593Smuzhiyun
1272*4882a593SmuzhiyunThis section is intended to make thoroughly clear what is believed to
1273*4882a593Smuzhiyunbe a consequence of the rest of this License.
1274*4882a593Smuzhiyun
1275*4882a593Smuzhiyun  12. If the distribution and/or use of the Library is restricted in
1276*4882a593Smuzhiyuncertain countries either by patents or by copyrighted interfaces, the
1277*4882a593Smuzhiyunoriginal copyright holder who places the Library under this License may add
1278*4882a593Smuzhiyunan explicit geographical distribution limitation excluding those countries,
1279*4882a593Smuzhiyunso that distribution is permitted only in or among countries not thus
1280*4882a593Smuzhiyunexcluded.  In such case, this License incorporates the limitation as if
1281*4882a593Smuzhiyunwritten in the body of this License.
1282*4882a593Smuzhiyun
1283*4882a593Smuzhiyun  13. The Free Software Foundation may publish revised and/or new
1284*4882a593Smuzhiyunversions of the Lesser General Public License from time to time.
1285*4882a593SmuzhiyunSuch new versions will be similar in spirit to the present version,
1286*4882a593Smuzhiyunbut may differ in detail to address new problems or concerns.
1287*4882a593Smuzhiyun
1288*4882a593SmuzhiyunEach version is given a distinguishing version number.  If the Library
1289*4882a593Smuzhiyunspecifies a version number of this License which applies to it and
1290*4882a593Smuzhiyun"any later version", you have the option of following the terms and
1291*4882a593Smuzhiyunconditions either of that version or of any later version published by
1292*4882a593Smuzhiyunthe Free Software Foundation.  If the Library does not specify a
1293*4882a593Smuzhiyunlicense version number, you may choose any version ever published by
1294*4882a593Smuzhiyunthe Free Software Foundation.
1295*4882a593Smuzhiyun
1296*4882a593Smuzhiyun  14. If you wish to incorporate parts of the Library into other free
1297*4882a593Smuzhiyunprograms whose distribution conditions are incompatible with these,
1298*4882a593Smuzhiyunwrite to the author to ask for permission.  For software which is
1299*4882a593Smuzhiyuncopyrighted by the Free Software Foundation, write to the Free
1300*4882a593SmuzhiyunSoftware Foundation; we sometimes make exceptions for this.  Our
1301*4882a593Smuzhiyundecision will be guided by the two goals of preserving the free status
1302*4882a593Smuzhiyunof all derivatives of our free software and of promoting the sharing
1303*4882a593Smuzhiyunand reuse of software generally.
1304*4882a593Smuzhiyun
1305*4882a593Smuzhiyun                            NO WARRANTY
1306*4882a593Smuzhiyun
1307*4882a593Smuzhiyun  15. BECAUSE THE LIBRARY IS LICENSED FREE OF CHARGE, THERE IS NO
1308*4882a593SmuzhiyunWARRANTY FOR THE LIBRARY, TO THE EXTENT PERMITTED BY APPLICABLE LAW.
1309*4882a593SmuzhiyunEXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR
1310*4882a593SmuzhiyunOTHER PARTIES PROVIDE THE LIBRARY "AS IS" WITHOUT WARRANTY OF ANY
1311*4882a593SmuzhiyunKIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE
1312*4882a593SmuzhiyunIMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
1313*4882a593SmuzhiyunPURPOSE.  THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE
1314*4882a593SmuzhiyunLIBRARY IS WITH YOU.  SHOULD THE LIBRARY PROVE DEFECTIVE, YOU ASSUME
1315*4882a593SmuzhiyunTHE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
1316*4882a593Smuzhiyun
1317*4882a593Smuzhiyun  16. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN
1318*4882a593SmuzhiyunWRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY
1319*4882a593SmuzhiyunAND/OR REDISTRIBUTE THE LIBRARY AS PERMITTED ABOVE, BE LIABLE TO YOU
1320*4882a593SmuzhiyunFOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR
1321*4882a593SmuzhiyunCONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE
1322*4882a593SmuzhiyunLIBRARY (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING
1323*4882a593SmuzhiyunRENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A
1324*4882a593SmuzhiyunFAILURE OF THE LIBRARY TO OPERATE WITH ANY OTHER SOFTWARE), EVEN IF
1325*4882a593SmuzhiyunSUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH
1326*4882a593SmuzhiyunDAMAGES.
1327*4882a593Smuzhiyun
1328*4882a593Smuzhiyun                     END OF TERMS AND CONDITIONS
1329*4882a593Smuzhiyun
1330*4882a593Smuzhiyun           How to Apply These Terms to Your New Libraries
1331*4882a593Smuzhiyun
1332*4882a593Smuzhiyun  If you develop a new library, and you want it to be of the greatest
1333*4882a593Smuzhiyunpossible use to the public, we recommend making it free software that
1334*4882a593Smuzhiyuneveryone can redistribute and change.  You can do so by permitting
1335*4882a593Smuzhiyunredistribution under these terms (or, alternatively, under the terms of the
1336*4882a593Smuzhiyunordinary General Public License).
1337*4882a593Smuzhiyun
1338*4882a593Smuzhiyun  To apply these terms, attach the following notices to the library.  It is
1339*4882a593Smuzhiyunsafest to attach them to the start of each source file to most effectively
1340*4882a593Smuzhiyunconvey the exclusion of warranty; and each file should have at least the
1341*4882a593Smuzhiyun"copyright" line and a pointer to where the full notice is found.
1342*4882a593Smuzhiyun
1343*4882a593Smuzhiyun    <one line to give the library's name and a brief idea of what it does.>
1344*4882a593Smuzhiyun    Copyright (C) <year>  <name of author>
1345*4882a593Smuzhiyun
1346*4882a593Smuzhiyun    This library is free software; you can redistribute it and/or
1347*4882a593Smuzhiyun    modify it under the terms of the GNU Lesser General Public
1348*4882a593Smuzhiyun    License as published by the Free Software Foundation; either
1349*4882a593Smuzhiyun    version 2.1 of the License, or (at your option) any later version.
1350*4882a593Smuzhiyun
1351*4882a593Smuzhiyun    This library is distributed in the hope that it will be useful,
1352*4882a593Smuzhiyun    but WITHOUT ANY WARRANTY; without even the implied warranty of
1353*4882a593Smuzhiyun    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
1354*4882a593Smuzhiyun    Lesser General Public License for more details.
1355*4882a593Smuzhiyun
1356*4882a593Smuzhiyun    You should have received a copy of the GNU Lesser General Public
1357*4882a593Smuzhiyun    License along with this library; if not, write to the Free Software
1358*4882a593Smuzhiyun    Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
1359*4882a593Smuzhiyun
1360*4882a593SmuzhiyunAlso add information on how to contact you by electronic and paper mail.
1361*4882a593Smuzhiyun
1362*4882a593SmuzhiyunYou should also get your employer (if you work as a programmer) or your
1363*4882a593Smuzhiyunschool, if any, to sign a "copyright disclaimer" for the library, if
1364*4882a593Smuzhiyunnecessary.  Here is a sample; alter the names:
1365*4882a593Smuzhiyun
1366*4882a593Smuzhiyun  Yoyodyne, Inc., hereby disclaims all copyright interest in the
1367*4882a593Smuzhiyun  library `Frob' (a library for tweaking knobs) written by James Random Hacker.
1368*4882a593Smuzhiyun
1369*4882a593Smuzhiyun  <signature of Ty Coon>, 1 April 1990
1370*4882a593Smuzhiyun  Ty Coon, President of Vice
1371*4882a593Smuzhiyun
1372*4882a593SmuzhiyunThat's all there is to it!