Skip to main content

4.6 Data Conversion

In order to convert one data structure into another, several conversion modules are provided in this system. These modules fall into two categories, task processes and subroutines. The task processes are MOS processes which can only be used in the environment described in this note, while the subroutines which are written in c and compatible under UNIX are more generally usable.

Character strings or text can be converted into vector format, so that an integrated image combining picture and text can be formed.

The following table lists these conversion modules, including their functions and descriptions (which can be found in Appendix 3).

module  type          from          to      description

decomp process dacom vector decomp(fax)
recomp process vector dacom recomp(fax)

ccitt process vector t4 ccitt(fax)
t4 vector

bitmap subroutine vector bitmap bit-map(fax)
tovec subroutine bitmap vector tovec(fax)

ts subroutine ASCII string vector ts(fax)
string process ASCII string vector string(fax)
tf process text vector tf(fax)

Since each DACOM block contains a Cyclic Redundancy Check (CRC) field, the system supplies a subroutine crc() to calculate or check the CRC code. (see crc(fax))

If a vector file is to be printed on the DACOM facsimile machine, the image data should be re- compressed into the DACOM-block format, the required command string being shown below.

fs"e,pic|recomp|fax"w

where fs - file system task
e - read an existing file
ic - file name
recomp - re-compression task
fax - interface task for facsimile machine
w - print an image on facsimile machine