-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathenums.lisp
118 lines (114 loc) · 3.94 KB
/
enums.lisp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
(in-package :lisp-magick-wand)
(cffi:defcenum exception-type
(:undefined-exception 0)
(:resource-limit-warning 300)
(:type-warning 305)
(:option-warning 310)
(:delegate-warning 315)
(:missing-delegate-warning 320)
(:corrupt-image-warning 325)
(:file-open-warning 330)
(:blob-warning 335)
(:stream-warning 340)
(:cache-warning 345)
(:coder-warning 350)
(:module-warning 355)
(:draw-warning 360)
(:image-warning 365)
(:wand-warning 370)
(:xserver-warning 380)
(:monitor-warning 385)
(:registry-warning 390)
(:configure-warning 395)
(:resource-limit-error 400)
(:type-error 405)
(:option-error 410)
(:delegate-error 415)
(:missing-delegate-error 420)
(:corrupt-image-error 425)
(:file-open-error 430)
(:blob-error 435)
(:stream-error 440)
(:cache-error 445)
(:coder-error 450)
(:module-error 455)
(:draw-error 460)
(:image-error 465)
(:wand-error 470)
(:xserver-error 480)
(:monitor-error 485)
(:registry-error 490)
(:configure-error 495)
(:resource-limit-fatal-error 700)
(:type-fatal-error 705)
(:option-fatal-error 710)
(:delegate-fatal-error 715)
(:missing-delegate-fatal-error 720)
(:corrupt-image-fatal-error 725)
(:file-open-fatal-error 730)
(:blob-fatal-error 735)
(:stream-fatal-error 740)
(:cache-fatal-error 745)
(:coder-fatal-error 750)
(:module-fatal-error 755)
(:draw-fatal-error 760)
(:image-fatal-error 765)
(:wand-fatal-error 770)
(:xserver-fatal-error 780)
(:monitor-fatal-error 785)
(:registry-fatal-error 790)
(:configure-fatal-error 795))
(define-enum-from-options ("Compression" "Compress") compression-type)
(define-enum-from-options "Interlace" interlace-type)
(define-enum-from-options ("Image" "Type") image-type)
(define-enum-from-options "Gravity" gravity-type)
(define-enum-from-options ("Composite" "Compose") composite-operator)
(define-enum-from-options "Colorspace" colorspace-type)
(define-enum-from-options "Dispose" dispose-type)
(define-enum-from-options "Filter" filter-type)
(define-enum-from-options "Resource" resource-type)
(define-enum-from-options "Stretch" stretch-type)
(define-enum-from-options "Style" style-type)
(define-enum-from-options "Storage" storage-type)
(define-enum-from-options "Align" align-type)
(define-enum-from-options "ClipPath" clip-path-units)
(define-enum-from-options "Decoration" decoration-type)
(define-enum-from-options "FillRule" fill-rule)
(define-enum-from-options "LineCap" line-cap)
(define-enum-from-options "LineJoin" line-join)
(define-enum-from-options "Method" paint-method)
(define-enum-from-options "Noise" noise-type)
(define-enum-from-options "Evaluate" magick-evaluate-operator)
(define-enum-from-options "Metric" metric-type)
(define-enum-from-options "Distort" distort-method)
(define-enum-from-options "Orientation" orientation-type)
(define-enum-from-options "Interpolate" pixel-interpolate-method)
(define-enum-from-options "AutoThreshold" auto-threshold-method)
(define-enum-from-options "Morphology" morphology-method)
(define-enum-from-options "Dither" dither-method)
(define-enum-from-options "SparseColor" sparse-color-method)
(define-enum-from-options "Statistic" statistic-type)
(define-enum-from-options "Endian" endian-type)
(define-enum-from-options "Intent" rendering-intent)
(define-enum-from-options "VirtualPixel" virtual-pixel-method)
(define-enum-from-options "Alpha" alpha-channel-type)
(define-enum-from-options "Layers" layer-method)
(define-enum-from-options "Complex" complex-operator)
(define-enum-from-options "PixelMask" pixel-mask)
(define-enum-from-options "Mode" montage-mode)
(define-enum-from-options "Preview" preview-type)
(cffi:defbitfield channel-type
;; (:undefined #x00)
(:red #x01)
;; (:gray #x01)
;; (:cyan #x01)
(:green #x02)
;; (:magenta #x02)
(:blue #x04)
;; (:yellow #x04)
(:alpha #x08)
;; (:opacity #x08)
;; (:matte #x08) ; deprecated
;; (:black #x20)
(:index #x20)
(:all #xff))