% Copyright (C) 2001-2019 Artifex Software, Inc. % All Rights Reserved. % % This software is provided AS-IS with no warranty, either express or % implied. % % This software is distributed under license and may not be copied, % modified or distributed except as expressly authorized under the terms % of the license contained in the file LICENSE in this distribution. % % Refer to licensing information at http://www.artifex.com or contact % Artifex Software, Inc., 1305 Grant Avenue - Suite 200, Novato, % CA 94945, U.S.A., +1(415)492-9861, for further information. % % docie.ps % Emulate CIE algorithms in PostScript. % ---------------- Auxiliary procedures ---------------- % /r1default [0 1] def /r3default [0 1 0 1 0 1] def /apply3 % <u> <v> <w> [<pu> <pv> <pw>] apply3 <u'> <v'> <w'> { { 4 -1 roll exch exec } forall } bind def /restrict % <u> <min> <max> restrict <u'> { 3 1 roll .max .min } bind def /restrict3 % <u> <v> <w> [<minu> ... <maxw>] restrict3 <u'> <v'> <w'> { aload pop 7 -1 roll 3 1 roll restrict 7 1 roll 5 -1 roll 3 1 roll restrict 5 1 roll restrict 3 1 roll } bind def /rescale % <u> <min> <max> rescale <u'> { 1 index sub 3 1 roll sub exch div 0 .max 1 .min } bind def /rescale3 % <u> <v> <w> [<minu> ... <maxw>] rescale3 <u'> <v'> <w'> { aload pop 7 -1 roll 3 1 roll rescale 7 1 roll 5 -1 roll 3 1 roll rescale 5 1 roll rescale 3 1 roll } bind def /mmult3 % <u> <v> <w> [<uu> <uv> ... <wv> <ww>] mmult3 % <u'> <v'> <w'> { 4 -1 roll dup dup 6 -1 roll dup dup 8 -1 roll dup dup 10 -1 roll { 10 -1 roll mul } forall % Stack: u1 v1 w1 u2 v2 w2 u3 v3 w3 4 -1 roll add 6 -1 roll add % Stack: u1 v1 u2 v2 u3 v3 w' 7 1 roll 3 -1 roll add 4 -1 roll add % Stack: w' u1 u2 u3 v' 5 1 roll add add 3 1 roll } bind def /minvert3 % [<uu> <uv> ... <wv> <ww>] minvert3 % [<uu'> <uv'> ... <wv'> <ww'>] { 16 dict begin aload pop { I H G F E D C B A } { exch def } forall /coa E I mul F H mul sub def /cob F G mul D I mul sub def /coc D H mul E G mul sub def /det A coa mul B cob mul add C coc mul add def [ coa det div C H mul B I mul sub det div B F mul C E mul sub det div cob det div A I mul C G mul sub det div C D mul A F mul sub det div coc det div B G mul A H mul sub det div A E mul B D mul sub det div ] end } bind def /print1 { print dup == } bind def /print3 { print 3 array astore dup == aload pop } bind def % ---------------- Mapping to XYZ ---------------- % /csmap % <csdict> <l> <m> <n> csmap <csdict> <x> <y> <z> { 3 index /RangeLMN .knownget not { r3default } if restrict3 DOCIEDEBUG { (After RangeLMN Decode: ) print3 } if 3 index /DecodeLMN .knownget { apply3 } if DOCIEDEBUG { (After DecodeLMN Decode: ) print3 } if 3 index /MatrixLMN .knownget { mmult3 } if DOCIEDEBUG { (After MatrixLMN Decode: ) print3 } if } bind def /csciea % <csdict> <a> csciea <csdict> <x> <y> <z> { 1 index /RangeA .knownget not { r1default aload pop } if restrict DOCIEDEBUG { (After RangeA Decode: ) print1 } if 1 index /DecodeA .knownget { exec } if DOCIEDEBUG { (After DecodeA Decode: ) print1 } if 1 index /MatrixA .knownget { { 1 index mul exch } forall pop } { dup dup } ifelse DOCIEDEBUG { (After MatrixA Decode: ) print3 } if csmap } bind def /cscieabc % <csdict> <a> <b> <c> cscieabc <csdict> <x> <y> <z> { 3 index /RangeABC .knownget not { r3default } if restrict3 DOCIEDEBUG { (After RangeABC Decode: ) print3 } if 3 index /DecodeABC .knownget { apply3 } if DOCIEDEBUG { (After DecodeABC Decode: ) print3 } if 3 index /MatrixABC .knownget { mmult3 } if DOCIEDEBUG { (After MatrixABC Decode: ) print3 } if csmap } bind def % ---------------- Rendering from XYZ ---------------- % /lookup3 % <rtable> <a[0..1]> <b[0..1]> <c[0..1]> lookup3 % <rtable> <bytes> { 3 -1 roll 3 index 0 get 1 sub mul 3 -1 roll 3 index 1 get 1 sub mul 3 -1 roll 3 index 2 get 1 sub mul % Stack: rtable ia ib ic DOCIEDEBUG { (RenderTable indices: ) print3 mark 5 1 roll } if 3 -1 roll round cvi 3 index 3 get exch get % Stack: rtable ib ic string 3 -1 roll round cvi 3 index 2 get mul % Stack: rtable ic string ib*nc 3 -1 roll round cvi add 2 index 4 get mul % Stack: rtable string index 2 index 4 get getinterval % Stack: rtable bytes DOCIEDEBUG { (RenderTable values: ) print (<) print (%stdout) (w) file 1 index writehexstring (>) = } if } bind def /bpdefault [0 0 0] def /crmap % <csdict> <crdict> <x> <y> <z> crmap <v1> ... { DOCIEDEBUG { (CIE XYZ = ) print3 } if 3 index /MatrixPQR .knownget { mmult3 } if DOCIEDEBUG { (After MatrixPQR: ) print3 } if 4 index /WhitePoint get 5 index /BlackPoint .knownget not { bpdefault } if 5 index /WhitePoint get 6 index /BlackPoint .knownget not { bpdefault } if 4 { 4 -1 roll aload pop % Stack: csdict crdict x y z pt pt pt px py pz 3 copy 12 index /MatrixPQR .knownget { mmult3 } if 6 array astore } repeat % Stack: csdict crdict x y z wps+ bps+ wpd+ bpd+ 9 -1 roll pop % get rid of csdict 7 4 roll 7 index /TransformPQR get { % Stack: crdict wps+ bps+ wpd+ bpd+ u v w proc 8 copy exch pop exch pop exec exch pop 4 -1 roll pop } forall 7 3 roll pop pop pop pop % get rid of White/BlackPoints DOCIEDEBUG { (After TransformPQR: ) print3 } if 3 index /MatrixPQR .knownget { minvert3 mmult3 } if DOCIEDEBUG { (After MatrixPQR': ) print3 } if 3 index /MatrixLMN .knownget { mmult3 } if DOCIEDEBUG { (After MatrixLMN Encode: ) print3 } if 3 index /EncodeLMN .knownget { apply3 } if DOCIEDEBUG { (After EncodeLMN Encode: ) print3 } if 3 index /RangeLMN .knownget not { r3default } if restrict3 DOCIEDEBUG { (After RangeLMN Encode: ) print3 } if 3 index /MatrixABC .knownget { mmult3 } if DOCIEDEBUG { (After MatrixABC Encode: ) print3 } if 3 index /EncodeABC .knownget { apply3 } if DOCIEDEBUG { (After EncodeABC Encode: ) print3 } if 3 index /RangeABC .knownget not { r3default } if 5 -1 roll /RenderTable .knownget { % Stack: u v w ranges rtable 5 1 roll rescale3 DOCIEDEBUG { (Rescaled ABC: ) print3 } if % Stack: rtable a b c lookup3 % Stack: rtable bytes 0 1 3 index 4 get 1 sub { % Stack: values rtable bytes c 2 copy get 255 div % Stack: values rtable bytes c v 3 index 3 -1 roll 5 add get exec 3 1 roll } for pop pop DOCIEDEBUG { (After RenderTableT: ) print ] dup == aload pop } if } { restrict3 DOCIEDEBUG { (After RangeABC Encode: ) print3 } if } ifelse } bind def % ---------------- Top level control ---------------- % /mapdict mark /CIEBasedA { 1 get exch csciea currentcolorrendering 4 1 roll crmap } bind /DeviceGray { pop /DefaultGray /ColorSpace findresource 1 get exch csciea currentcolorrendering 4 1 roll crmap } bind /CIEBasedABC { 1 get 4 1 roll cscieabc currentcolorrendering 4 1 roll crmap } bind /DeviceRGB { pop /DefaultRGB /ColorSpace findresource 1 get 4 1 roll cscieabc currentcolorrendering 4 1 roll crmap } bind .dicttomark def /mapcie % <a> mapcie <v1> ... % <a> <b> <c> mapcie <v1> ... { currentcolorspace dup 0 get //mapdict exch get exec } bind def
Name | Type | Size | Permission | Actions |
---|---|---|---|---|
PDFA_def.ps | File | 1.25 KB | 0644 |
|
PDFX_def.ps | File | 1.77 KB | 0644 |
|
PM760p.upp | File | 1.13 KB | 0644 |
|
PM760pl.upp | File | 1.1 KB | 0644 |
|
PM820p.upp | File | 1.12 KB | 0644 |
|
PM820pl.upp | File | 1.09 KB | 0644 |
|
Stc670p.upp | File | 1.13 KB | 0644 |
|
Stc670pl.upp | File | 1.1 KB | 0644 |
|
Stc680p.upp | File | 1.11 KB | 0644 |
|
Stc680pl.upp | File | 1.09 KB | 0644 |
|
Stc740p.upp | File | 1.01 KB | 0644 |
|
Stc740pl.upp | File | 1.09 KB | 0644 |
|
Stc760p.upp | File | 1.11 KB | 0644 |
|
Stc760pl.upp | File | 1.09 KB | 0644 |
|
Stc777p.upp | File | 1.11 KB | 0644 |
|
Stc777pl.upp | File | 1.09 KB | 0644 |
|
Stp720p.upp | File | 1.13 KB | 0644 |
|
Stp720pl.upp | File | 1.09 KB | 0644 |
|
Stp870p.upp | File | 1.11 KB | 0644 |
|
Stp870pl.upp | File | 1.09 KB | 0644 |
|
acctest.ps | File | 4.17 KB | 0644 |
|
align.ps | File | 2.11 KB | 0644 |
|
bj8.rpd | File | 639 B | 0644 |
|
bj8gc12f.upp | File | 1.5 KB | 0644 |
|
bj8hg12f.upp | File | 1.5 KB | 0644 |
|
bj8oh06n.upp | File | 1.48 KB | 0644 |
|
bj8pa06n.upp | File | 1.49 KB | 0644 |
|
bj8pp12f.upp | File | 1.51 KB | 0644 |
|
bj8ts06n.upp | File | 1.49 KB | 0644 |
|
bjc6000a1.upp | File | 1.62 KB | 0644 |
|
bjc6000b1.upp | File | 1.62 KB | 0644 |
|
bjc610a0.upp | File | 1.49 KB | 0644 |
|
bjc610a1.upp | File | 1.48 KB | 0644 |
|
bjc610a2.upp | File | 1.48 KB | 0644 |
|
bjc610a3.upp | File | 1.49 KB | 0644 |
|
bjc610a4.upp | File | 1.49 KB | 0644 |
|
bjc610a5.upp | File | 1.48 KB | 0644 |
|
bjc610a6.upp | File | 1.48 KB | 0644 |
|
bjc610a7.upp | File | 1.48 KB | 0644 |
|
bjc610a8.upp | File | 1.49 KB | 0644 |
|
bjc610b1.upp | File | 1.48 KB | 0644 |
|
bjc610b2.upp | File | 1.48 KB | 0644 |
|
bjc610b3.upp | File | 1.49 KB | 0644 |
|
bjc610b4.upp | File | 1.49 KB | 0644 |
|
bjc610b6.upp | File | 1.48 KB | 0644 |
|
bjc610b7.upp | File | 1.49 KB | 0644 |
|
bjc610b8.upp | File | 1.49 KB | 0644 |
|
caption.ps | File | 1.72 KB | 0644 |
|
cbjc600.ppd | File | 10.89 KB | 0644 |
|
cbjc800.ppd | File | 11.22 KB | 0644 |
|
cdj550.upp | File | 1.65 KB | 0644 |
|
cdj690.upp | File | 1.95 KB | 0644 |
|
cdj690ec.upp | File | 2.01 KB | 0644 |
|
cid2code.ps | File | 4.39 KB | 0644 |
|
dmp_init.ps | File | 7.08 KB | 0644 |
|
dmp_site.ps | File | 459 B | 0644 |
|
dnj750c.upp | File | 2.74 KB | 0644 |
|
dnj750m.upp | File | 1.93 KB | 0644 |
|
docie.ps | File | 7.32 KB | 0644 |
|
escp_24.src | File | 350 B | 0644 |
|
font2pcl.ps | File | 18.01 KB | 0644 |
|
ghostpdf.ppd | File | 25.04 KB | 0644 |
|
gs_ce_e.ps | File | 2.17 KB | 0644 |
|
gs_il2_e.ps | File | 2.57 KB | 0644 |
|
gs_kanji.ps | File | 3.91 KB | 0644 |
|
gs_ksb_e.ps | File | 3.07 KB | 0644 |
|
gs_l.xbm | File | 1.9 KB | 0644 |
|
gs_l.xpm | File | 2.69 KB | 0644 |
|
gs_l_m.xbm | File | 1.91 KB | 0644 |
|
gs_lgo_e.ps | File | 2.67 KB | 0644 |
|
gs_lgx_e.ps | File | 1.72 KB | 0644 |
|
gs_m.xbm | File | 945 B | 0644 |
|
gs_m.xpm | File | 1.4 KB | 0644 |
|
gs_m_m.xbm | File | 955 B | 0644 |
|
gs_s.xbm | File | 594 B | 0644 |
|
gs_s.xpm | File | 957 B | 0644 |
|
gs_s_m.xbm | File | 604 B | 0644 |
|
gs_t.xbm | File | 345 B | 0644 |
|
gs_t.xpm | File | 605 B | 0644 |
|
gs_t_m.xbm | File | 355 B | 0644 |
|
gs_wl1_e.ps | File | 2.44 KB | 0644 |
|
gs_wl2_e.ps | File | 2.44 KB | 0644 |
|
gs_wl5_e.ps | File | 2.45 KB | 0644 |
|
gslp.ps | File | 20.24 KB | 0644 |
|
gsnup.ps | File | 2.57 KB | 0644 |
|
ht_ccsto.ps | File | 222.8 KB | 0644 |
|
image-qa.ps | File | 71.34 KB | 0644 |
|
jispaper.ps | File | 784 B | 0644 |
|
landscap.ps | File | 1.43 KB | 0644 |
|
lines.ps | File | 3.65 KB | 0644 |
|
mkcidfm.ps | File | 21.8 KB | 0644 |
|
necp2x.upp | File | 1.02 KB | 0644 |
|
necp2x6.upp | File | 1.04 KB | 0644 |
|
pdf2dsc.ps | File | 7.87 KB | 0644 |
|
pf2afm.ps | File | 14.94 KB | 0644 |
|
pfbtopfa.ps | File | 996 B | 0644 |
|
ppath.ps | File | 1.78 KB | 0644 |
|
pphs.ps | File | 6.68 KB | 0644 |
|
prfont.ps | File | 7.04 KB | 0644 |
|
printafm.ps | File | 4.78 KB | 0644 |
|
ps2ai.ps | File | 21.78 KB | 0644 |
|
ps2epsi.ps | File | 8.34 KB | 0644 |
|
ras1.upp | File | 215 B | 0644 |
|
ras24.upp | File | 219 B | 0644 |
|
ras3.upp | File | 214 B | 0644 |
|
ras32.upp | File | 196 B | 0644 |
|
ras4.upp | File | 220 B | 0644 |
|
ras8m.upp | File | 209 B | 0644 |
|
rollconv.ps | File | 12.23 KB | 0644 |
|
s400a1.upp | File | 1.42 KB | 0644 |
|
s400b1.upp | File | 1.57 KB | 0644 |
|
sharp.upp | File | 1.89 KB | 0644 |
|
sipixa6.upp | File | 529 B | 0644 |
|
st640ih.upp | File | 2.23 KB | 0644 |
|
st640ihg.upp | File | 1.47 KB | 0644 |
|
st640p.upp | File | 1.87 KB | 0644 |
|
st640pg.upp | File | 1.11 KB | 0644 |
|
st640pl.upp | File | 1.83 KB | 0644 |
|
st640plg.upp | File | 1.08 KB | 0644 |
|
stc.upp | File | 1.88 KB | 0644 |
|
stc1520h.upp | File | 2.1 KB | 0644 |
|
stc2.upp | File | 1.86 KB | 0644 |
|
stc200_h.upp | File | 1.8 KB | 0644 |
|
stc2_h.upp | File | 1.83 KB | 0644 |
|
stc2s_h.upp | File | 2.22 KB | 0644 |
|
stc300.upp | File | 2.09 KB | 0644 |
|
stc300bl.upp | File | 1.31 KB | 0644 |
|
stc300bm.upp | File | 1.4 KB | 0644 |
|
stc500p.upp | File | 1.86 KB | 0644 |
|
stc500ph.upp | File | 1.86 KB | 0644 |
|
stc600ih.upp | File | 2.23 KB | 0644 |
|
stc600p.upp | File | 1.12 KB | 0644 |
|
stc600pl.upp | File | 1.09 KB | 0644 |
|
stc640p.upp | File | 1.07 KB | 0644 |
|
stc740ih.upp | File | 2.07 KB | 0644 |
|
stc800ih.upp | File | 2.11 KB | 0644 |
|
stc800p.upp | File | 1.09 KB | 0644 |
|
stc800pl.upp | File | 1.07 KB | 0644 |
|
stc_h.upp | File | 1.87 KB | 0644 |
|
stc_l.upp | File | 734 B | 0644 |
|
stcany.upp | File | 673 B | 0644 |
|
stcany_h.upp | File | 681 B | 0644 |
|
stcinfo.ps | File | 24.92 KB | 0644 |
|
stcolor.ps | File | 4.95 KB | 0644 |
|
stocht.ps | File | 2.44 KB | 0644 |
|
traceimg.ps | File | 1.35 KB | 0644 |
|
traceop.ps | File | 2.51 KB | 0644 |
|
uninfo.ps | File | 5.85 KB | 0644 |
|
viewcmyk.ps | File | 1.94 KB | 0644 |
|
viewgif.ps | File | 5.27 KB | 0644 |
|
viewjpeg.ps | File | 5.56 KB | 0644 |
|
viewmiff.ps | File | 4.15 KB | 0644 |
|
viewpbm.ps | File | 10.04 KB | 0644 |
|
viewpcx.ps | File | 5.11 KB | 0644 |
|
viewps2a.ps | File | 1.11 KB | 0644 |
|
winmaps.ps | File | 3.52 KB | 0644 |
|
zeroline.ps | File | 2.26 KB | 0644 |
|