File tree Expand file tree Collapse file tree 2 files changed +23
-4
lines changed
Expand file tree Collapse file tree 2 files changed +23
-4
lines changed Original file line number Diff line number Diff line change 1+ Copyright 2000 by Object Craft P/L, Melbourne, Australia.
2+
3+ All Rights Reserved
4+
5+ Permission to use, copy, modify, and distribute this software and its
6+ documentation for any purpose and without fee is hereby granted,
7+ provided that the above copyright notice appear in all copies and that
8+ both that copyright notice and this permission notice appear in
9+ supporting documentation, and that the name of Object Craft
10+ is not be used in advertising or publicity pertaining to
11+ distribution of the software without specific, written prior
12+ permission.
13+
14+ OBJECT CRAFT DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
15+ INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
16+ EVENT SHALL OBJECT CRAFT BE LIABLE FOR ANY SPECIAL, INDIRECT OR
17+ CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF
18+ USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
19+ OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
20+ PERFORMANCE OF THIS SOFTWARE.
Original file line number Diff line number Diff line change 11/* -*- mode: c++; c-basic-offset: 4 -*- */
22
3- // this code is heavily adapted from the paint license, which is in
4- // the file paint.license (BSD compatible) included in this
5- // distribution. TODO, add license file to MANIFEST.in and CVS
6-
73/* For linux, png.h must be imported before Python.h because
84 png.h needs to be the one to define setjmp.
95 Undefining _POSIX_C_SOURCE and _XOPEN_SOURCE stops a couple
@@ -139,6 +135,9 @@ const char *Py_write_png__doc__ =
139135 " Byte string containing the PNG content if None was passed in for\n "
140136 " file, otherwise None is returned.\n " ;
141137
138+ // this code is heavily adapted from
139+ // https://www.object-craft.com.au/projects/paint/ which licensed under the
140+ // (BSD compatible) LICENSE_PAINT which is included in this distribution.
142141static PyObject *Py_write_png (PyObject *self, PyObject *args, PyObject *kwds)
143142{
144143 numpy::array_view<unsigned char , 3 > buffer;
You can’t perform that action at this time.
0 commit comments