From: Andy T. <th...@ph...> - 2000-02-21 14:18:54
|
sh...@al... wrote: > What I've done in unprint.c is to isolate all of the escp2 specific parts > into a single subroutine. This subroutine is given a file pointer to an > open file, and it reads in the escp2 data. When it extracts a section > of raster data from the file, it makes a call to a generic routine to store > this data in RAM. When the escp2 routine returns, the stored image is > organized into a PPM and written out. > > I would like to convert pcl-unprint and cannon-unprint to work the same way > as the parse-escp2 subroutine of unprint. Any comments/objections? Just checked in canon-unprint.c I took escp2-unprint.c and replaced the parse_escp2() with parse_canon() which currently only checks if the sequence of ESC commands are syntactically correct. No real data is being parsed yet and thus the output is a 0x0 image... I'll fill in the rest when I've got more time to spend Andy. |