From: James K. <ja...@me...> - 2001-02-09 23:36:41
|
Hi David, I have been experimenting with cmdline.c and have run into a strange problem that occurs when I set OID_SCAN_PIXEL_DATA_TYPE to COLOR_24_BIT. I'm not sure if the problem is related to your warning about using multiple MLC channels, since the channel will be required to return alot more data. One symptom of the problem is that the Raster Data Records seem to have zero Raster Data and the program hangs while reading the MLC scan channel. There are no errors generated as far as I can tell. I also need to turn the scanner off/on and reload ieee12844 and ieee12844pp to get BILEVEL_THRESHHOLD to work again. Here is the execution output of the modified cmdline.c, in this version I also set OID_SCAN_COMPRESSION to JPEG_COMPRESSION and OID_SCAN_COMPRESSION_FACTOR to 50. Starting scan...Got 15 characters: 84 87 18 01 87 00 05 01 02 02 01 01 08 01 32 ScanCallback() entered, reply = 132, exec_out = 135 Leaving ScanCallback() Got 15 characters: 84 87 18 01 87 00 05 01 02 02 01 03 04 01 18 ScanCallback() entered, reply = 132, exec_out = 135 Leaving ScanCallback() Got 15 characters: 84 87 18 01 87 00 05 01 02 02 01 04 04 01 06 ScanCallback() entered, reply = 132, exec_out = 135 Leaving ScanCallback() Got 15 characters: 84 87 18 01 87 00 05 01 02 02 01 05 08 01 32 ScanCallback() entered, reply = 132, exec_out = 135 Leaving ScanCallback() Got 11 characters: 84 00 00 04 01 05 01 04 08 01 64 ScanCallback() entered, reply = 132, exec_out = 0 Leaving ScanCallback() Got 12 characters: 84 00 00 05 01 02 02 01 0C 04 01 01 ScanCallback() entered, reply = 132, exec_out = 0 Leaving ScanCallback() Got 11 characters: 84 00 00 04 01 01 01 12 08 01 5A ScanCallback() entered, reply = 132, exec_out = 0 Leaving ScanCallback() Got 12 characters: 85 00 00 05 01 02 02 01 0C 04 01 01 ScanCallback() entered, reply = 133, exec_out = 0 Leaving ScanCallback() Got 12 characters: 84 00 00 05 01 02 02 01 0C 04 01 02 ScanCallback() entered, reply = 132, exec_out = 0 Leaving ScanCallback() Got 11 characters: 07 00 05 01 02 02 01 0C 04 01 03 UploadStateTrap() called: 525 / 9 Scanning channel opened: 8/2048 FixedHeader.BlockLength: 18 FixedHeader.HeaderLength: 18 FixedHeader.DataType: 2 FixedHeader.PageFlags: 0x04 ImageData.MajorVersion: 2 ImageData.MinorVersion: 0 ImageData.SourcePages: 0 ImageData.CopiesPerPage: 0 ImageData.ZoomFactor: 100 ImageData.JPEGQualityFactor: 127 8 bytes, Header: 08 00 00 00 08 00 02 00 8 bytes, Header: 08 00 00 00 08 00 02 00 8 bytes, Header: 08 00 00 00 08 00 02 00 8 bytes, Header: 08 00 00 00 08 00 02 00 ... this carries on for about 800 lines ... 8 bytes, Header: 08 00 00 00 08 00 02 00 ... here it just hangs with the document halfway through the scanner... Thanks, -James |