[IPP] Question on PWG draft specification mismatch & parsing

[IPP] Question on PWG draft specification mismatch & parsing

Roy Samuel roy.samuel at celstream.com
Fri Apr 29 04:46:59 UTC 2011


Hi Michael,

 

I had downloaded the sample PWGRaster files from: 
http://ftp.easysw.com/pub/cups/examples/PWGRasterSamples.zip, with your
latest working draft of the PWG raster found at: 
ftp://ftp.pwg.org/pub/pwg/ipp/wd/wd-ippraster10-20110327-rev.pdf. I
compared the raster files in the folders:

PWGRasterSamples\srgb-16  &

PWGRasterSamples\srgb-8, with the specs given in the draft document.

 

I found that neither of the directories contained files that adhered to
the draft document w.r.t parsing the header. Specifically for the value
of 'NumColors'. 

 

--1--

According to the draft document, bytes 420-423 need to contain
'NumColors' value, however, I found them to be zero. Are the sample
files outdated??

 

--2--

Based on the decode algorithm given in the draft document, I had tried
to obtain plain RGB raster data from a pwg-raster file. I had converted
the PDF document obtained here: 
http://orenyomtov.com/downloads/testpage.pdf to obtain pwg-raster file
using Google cloud print. I am able to get the pwg-raster file from GCP
successfully. However, on converting the pwg-raster file to RGB data,  I
have been successful in decoding around 1/6th or so, to raster data
successfully, i.e. the top part of the page is being rendered
successfully, while the rest is not rendered.

(I use GIMP to open the output raster file in RAW mode).

I have attached a screenshot of the output file that I'm able to view
through GIMP (scaled down version).

 

Is my algorithm wrong? Or are the specs incorrect?

 

Regards.

_________________________________________________

Roy Samuel | Celstream Technologies | www.celstream.com
<http://www.celstream.com/> 

 

 


______________________________________________________________________________
 DISCLAIMER: This electronic message and any attachments to this electronic
 message is intended for the exclusive use of the addressee(s) named herein
 and may contain legally privileged and confidential information. It is the 
 property of Celstream Technologies Pvt Limited. If you are not the intended
 recipient, you are hereby strictly notified not to copy, forward, distribute
 or use this message or any attachments thereto. If you have received this
 message in error, please delete it and all copies thereof, from your system
 and notify the sender at Celstream Technologies or 
 administrator at celstream.com immediately.
______________________________________________________________________________

-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.pwg.org/pipermail/ipp/attachments/20110429/919c22b5/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pwgTORGB-output.jpg
Type: image/jpeg
Size: 63382 bytes
Desc: pwgTORGB-output.jpg
URL: <http://www.pwg.org/pipermail/ipp/attachments/20110429/919c22b5/attachment.jpg>


More information about the ipp mailing list