Dg_Image / Dat_Imagenativexer; Dg_Control / Dat_Pendingxfers - Kodak Ngenuity 9090DB Programming Manual

Kodak ngenuity 9090db: supplementary guide
Hide thumbs Also See for Ngenuity 9090DB:
Table of Contents

Advertisement

Ngenuity TWAIN Data Source
November 19, 2009
Columns = -1
Rows = -1
XOffset = -1
YOffset = -1
BytesWritten = # of bytes currently written
If the transfer is not compressed, then the TW_IMAGEMEMXFER structure shall be filled out as
follows:
Compression = TWCP_NONE
BytesPerRow = # of bytes per row (*always DWORD aligned)
Columns = # of columns (pixels) per row
Rows = # of rows copied to the current buffer
XOffset = 0 (always transferring strips)
YOffset = Current Row index from the top (accumulation of all the rows so far)
BytesWritten = # of bytes currently written == (BytesPerRow * Rows)
If the buffer was successfully acquired, the response shall be TWRC_SUCCESS
If the user cancels, the response shall be TWRC_CANCEL, moves to state 6
If this is the last buffer in the transfer the response shall be TWRC_XFERDONE
If there is an error, the response shall be TWRC_FAILURE, moves to state 6 (appropriate condition
code will be set)

3.4.11 DG_IMAGE / DAT_IMAGENATIVEXER

Supported Messages: MSG_GET (state 6)
The TDS shall create a Device Independent Bitmap (DIB) and scan an entire image to fill the DIB.
If the entire image is scanned successfully then the response shall be TWRC_XFERDONE and the
TDS will remain in state 7
If the user cancels, the response shall be TWRC_CANCEL, moves to state 6
If there is an error, the response shall be TWRC_FAILURE, moves to state 6 (appropriate condition
code will be set)

3.4.12 DG_CONTROL / DAT_PENDINGXFERS

Supported Messages: MSG_ENDXFER (state 6,7), MSG_GET (state 4-7), and MSG_RESET (state
6)
The response to MSG_GET shall be to fill the TW_PENDINGXFERS structure Count value with
the current # of pending images. In all states, if the feeder is not loaded, then the value will be 0. If
the state is < 6 and the feeder is loaded, then that value will be the current value of
CAP_XFERCOUNT. If the state is >=6 and the feeder is loaded, then the value will be the # of
images remaining to be scanned.
The response to MSG_ENDXFER, if called during state 7, shall be to move to state 6 and
decrement the remaining images count. If the feeder is loaded, then the Count field will be set to the
# of images remaining to be scanned. If the feeder is not loaded, then the Count field will be set to 0
and a further transition to state 5 will occur. If called during state 6, it shall eject the current page
and behave as expected based on the state of the feeder (move to state 5 if empty).
Page 22 of 99

Advertisement

Table of Contents
loading

This manual is also suitable for:

Ngenuity 9090dc

Table of Contents