Jeroen Bobbeldijk
Programmer
Hi there!
I'm currently trying to decode a PCL file that is captured from an OKI printer.
The full page seems to be printed as a Raster Graphic. I have all the command decoding complete, the only thing I need to finish is the decoding of the Raster Graphics data.
Now comes the odd thing about the captured data, the compression method is "131", I can't find out what this method is. It's not in the PCL documentation (only 0-5). I did some testing and I don't think it's one of the other compression methods. The data looks to be in pairs of 5 bytes. It sends the raster graphics in parts of 4800x64 pixels.
Here's a preview of what a "pair" looks like in hex:
1fffff3a00 (this seems to be an empty pixel row, white lines, the first two rasters are 64x 1fffff3a00, which makes sense as the first part of the page is all white)
So the base data is at least 320 bytes (64 x 5), but the other rasters size depend on the content.
Here's a sample of some other pairs:
7fff917fff
80003f0603
e05f4e03ff
fc0d001fff
ff3a001fff
917f1f8800
1fff92ff1f
87005fff91
000f805f76
00007c0d00
1fff920f1f
87001fffba
031f5f005f
ffb17fe000
1f66003fff
847fff2180
00d003ffff
0007ffff41
I tried a few different approaches, like taking 4 bytes for an int32 and one remainer byte for the pixel value, but this does not seem to be a correct approach.
Anyone has any idea what type of compression this is? None of the existing tools seem to be able to understand the compression method.
I'm currently trying to decode a PCL file that is captured from an OKI printer.
The full page seems to be printed as a Raster Graphic. I have all the command decoding complete, the only thing I need to finish is the decoding of the Raster Graphics data.
Now comes the odd thing about the captured data, the compression method is "131", I can't find out what this method is. It's not in the PCL documentation (only 0-5). I did some testing and I don't think it's one of the other compression methods. The data looks to be in pairs of 5 bytes. It sends the raster graphics in parts of 4800x64 pixels.
Here's a preview of what a "pair" looks like in hex:
1fffff3a00 (this seems to be an empty pixel row, white lines, the first two rasters are 64x 1fffff3a00, which makes sense as the first part of the page is all white)
So the base data is at least 320 bytes (64 x 5), but the other rasters size depend on the content.
Here's a sample of some other pairs:
7fff917fff
80003f0603
e05f4e03ff
fc0d001fff
ff3a001fff
917f1f8800
1fff92ff1f
87005fff91
000f805f76
00007c0d00
1fff920f1f
87001fffba
031f5f005f
ffb17fe000
1f66003fff
847fff2180
00d003ffff
0007ffff41
I tried a few different approaches, like taking 4 bytes for an int32 and one remainer byte for the pixel value, but this does not seem to be a correct approach.
Anyone has any idea what type of compression this is? None of the existing tools seem to be able to understand the compression method.