Article View: comp.lang.postscript
Article #5707Re: Lev 2 Image Dictionary Question
From: Stephen Zisk
Date: Tue, 17 Nov 1992 17:26
Date: Tue, 17 Nov 1992 17:26
46 lines
2648 bytes
2648 bytes
In article <1992Nov16.231218.16989@infonode.ingr.com>,
dave@maven.b29.ingr.com (Dave Bradford) wrote:
>
> I am trying to write a color raster level 2 PostScript driver
> <some lines removed>
> /rline currentfile /ASCIIHexDecode filter def
> /gline currentfile /ASCIIHexDecode filter def
> /bline currentfile /ASCIIHexDecode filter def
> <more lines removed>
> /DataSource [rline gline bline]
> <more lines removed>
The problem here is simple: Your three data sources are not truly
independent.
You are making a presumption about the order in which the interpreter calls
your data sources. In order to use three separate data sources, you would
have
to have three files (or strings, or whatever) which could be accessed in
any
order, without regard to interrelationships. See the Red Book (2nd
edition):
p. 214 (last paragraph) - "The three sources... must actually be
independent"
p. 215 (diagram) - Note the bracketed "independent"
p. 225 (first paragraph under "Color Image with Single Source.") -
"The first organization is the only one that is useful for images
whose data are provided in-line in a PostScript language program.
The second organization is limited to situations in which the
separate components are stored elsewhere, such as in separate
files that can be read in parallel."
If the image data were small enough to be stored in strings, you could pre-
define the individual strings and use them in the image operator. The fact
that your code worked on some Level 1 implementations is, unfortunately,
device-dependent. You were depending on the device reading all the red
data,
then all the green, then the blue. Many devices did just this when allowed,
but this is not a standard. That is why the "independent" was stressed so
much in the new Red Book. Sorry!
Stephen Zisk (zisk@adobe.com) Disclaimer: These are my personal opinions
and
Adobe Systems Incorporated do not represent the views of Adobe Systems
Eastern Regional Office Incorporated.
24 New England Exec. Park
Burlington, MA 01803 They pay me but they don't muzzle me!
Technical Details
Message-ID:
<zisk-171192120610@macne003.boston.us.adobe.com>Path:
arc1-ca.pugleaf.net!sparky!uunet!ukma!wupost!decwrl!adobe!macne003.boston.us.adobe.com!userReferences:
<1992Nov16.231218.16989@infonode.ingr.com>Show Full Headers
Complete Article Headers
Newsgroups: comp.lang.postscript Path: arc1-ca.pugleaf.net!sparky!uunet!ukma!wupost!decwrl!adobe!macne003.boston.us.adobe.com!user From: zisk@adobe.com (Stephen Zisk) Subject: Re: Lev 2 Image Dictionary Question Message-ID: <zisk-171192120610@macne003.boston.us.adobe.com> Followup-To: comp.lang.postscript Sender: usenet@adobe.com (USENET NEWS) Organization: Adobe Systems Incorporated References: <1992Nov16.231218.16989@infonode.ingr.com> Date: Tue, 17 Nov 1992 17:26:35 GMT Lines: 46