- Add trailing newline
[zpng.git] / package.lisp
blob9411a4bbe6ce0a1e342d3244237e3777a8e0660c
1 ;;;
2 ;;; Copyright (c) 2007 Zachary Beane, All Rights Reserved
3 ;;;
4 ;;; Redistribution and use in source and binary forms, with or without
5 ;;; modification, are permitted provided that the following conditions
6 ;;; are met:
7 ;;;
8 ;;; * Redistributions of source code must retain the above copyright
9 ;;; notice, this list of conditions and the following disclaimer.
10 ;;;
11 ;;; * Redistributions in binary form must reproduce the above
12 ;;; copyright notice, this list of conditions and the following
13 ;;; disclaimer in the documentation and/or other materials
14 ;;; provided with the distribution.
15 ;;;
16 ;;; THIS SOFTWARE IS PROVIDED BY THE AUTHOR 'AS IS' AND ANY EXPRESSED
17 ;;; OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
18 ;;; WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
19 ;;; ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY
20 ;;; DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
21 ;;; DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
22 ;;; GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
23 ;;; INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
24 ;;; WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
25 ;;; NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
26 ;;; SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
27 ;;;
29 (defpackage #:zpng
30 (:use #:cl #:salza2)
31 (:export
32 ;; generic
33 #:width
34 #:height
35 #:rowstride
36 #:color-type
37 #:samples-per-pixel
38 ;; in-memory pngs
39 #:png
40 #:copy-png
41 #:png=
42 #:image-data
43 #:data-array
44 #:write-png
45 #:write-png-stream
46 ;; row-at-a-time pngs
47 #:streamed-png
48 #:row-data
49 #:start-png
50 #:row-data
51 #:write-row
52 #:rows-written
53 #:rows-left
54 #:finish-png
55 ;; pixel-at-a-time pngs
56 #:pixel-streamed-png
57 #:write-pixel
58 #:pixels-left-in-row
59 ;; conditions
60 #:zpng-error
61 #:invalid-size
62 #:invalid-size-width
63 #:invalid-size-height
64 #:invalid-row-length
65 #:insufficient-rows
66 #:incomplete-row
67 #:too-many-rows
68 #:color-type-mismatch))