-
Notifications
You must be signed in to change notification settings - Fork 56
/
Copy pathdelegates.xml
64 lines (51 loc) · 2.05 KB
/
delegates.xml
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
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE delegatemap [
<!ELEMENT delegatemap (delegate)+>
<!ELEMENT delegate (#PCDATA)>
<!ATTLIST delegate decode CDATA #IMPLIED>
<!ATTLIST delegate encode CDATA #IMPLIED>
<!ATTLIST delegate mode CDATA #IMPLIED>
<!ATTLIST delegate spawn CDATA #IMPLIED>
<!ATTLIST delegate stealth CDATA #IMPLIED>
<!ATTLIST delegate command CDATA #REQUIRED>
]>
<!--
Delegate command file.
Commands which specify
decode="in_format" encode="out_format"
specify the rules for converting from in_format to out_format These
rules may be used to translate directly between formats.
Commands which specify only
decode="in_format"
specify the rules for converting from in_format to some format that
ImageMagick will automatically recognize. These rules are used to
decode formats.
Commands which specify only
encode="out_format"
specify the rules for an "encoder" which may accept any input format.
For delegates other than ps:*, pcl:*, and mpeg:* the substitution rules are
as follows:
%i input image filename
%o output image filename
%u unique temporary filename
%z secondary unique temporary filename
%# input image signature
%b image file size
%c input image comment
%g image geometry
%h image rows (height)
%k input image number colors
%m input image format
%p page number
%q input image depth
%s scene number
%w image columns (width)
%x input image x resolution
%y input image y resolution
-->
<delegatemap>
<delegate decode="rggb_bayer" command="bayer2rgb -i "%i" -o "%o" -w %w -v %h -b %q -t -m BILINEAR -f RGGB" />
<delegate decode="gbrg_bayer" command="bayer2rgb -i "%i" -o "%o" -w %w -v %h -b %q -t -m BILINEAR -f GBRG" />
<delegate decode="grbg_bayer" command="bayer2rgb -i "%i" -o "%o" -w %w -v %h -b %q -t -m BILINEAR -f GRBG" />
<delegate decode="bggr_bayer" command="bayer2rgb -i "%i" -o "%o" -w %w -v %h -b %q -t -m BILINEAR -f BGGR" />
</delegatemap>