Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ scn(1) — NEWS-os 4.1C

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

xscn(1)

SCN(1)  —  NEWS-OS Programmer’s Manual

NAME

scn − image reader drive program

SYNOPSIS

scn [ options... ] [ > outfile ]

DESCRIPSION

scn is a command to read images from image readers NWP-534, NWP-540, NWP-548 according to the specified mode and to write on the standard output. 

OPTIONS

−ar[ea] N
specifies the area of image. N should be selected from the list below.  Default is A4 size.  Non standard size can be used by specifying 0 here and use −wi option.  0 is the only valid value for the color printer  NWP-548. 

Nsize
0with −wi option
1A4
2A5
3B5
4B6∗1
5Envelope∗1
6Postcard∗1
7A6∗1
10Mini∗1
11Letter
99Not specified (initial size)

∗1 Not supported with NWP-540.

−wi[ndow] sx sy wd ht
specify the positions and sizes of the image to be read in. It is used with −ar 0 option. 

sxstart opint X coordinate
systart opint Y coordinate
wdwidth
htheight

−res[olution] res
specifies the resolution of image reading. res is either 400, 300(default), 200, 150 or 75 (dpi.)  400 is valid only for NWP-540. 

−mo[de] N
specifies the mode of image reading.

N  function
0B/W (initial setting)
1dither pattern No.1
2dither pattern No.2
3dither pattern No.3
4dither pattern No.4∗1
5dither pattern No.5∗1
6dither pattern No.6∗1
7dither pattern No.7∗1∗2
9gray scale(4 bits)∗2
10full color(24 bits)∗3

∗1 Not supported with NWP-548.
∗2 Not supported with NWP-540.
∗3 Valid only with NWP-548.

−noae Inhibits AE (Automatic Exposure) function.  For monochrome image readers (NWP-534/540), −li option is invalid unless −noae is used.  −noae is invalid for a color

−li[ght] num
specifies the brightness of read image. Default brightness is 0. For monochrome image readers (NWP-534/540), this option is invalid unless −noae is used.  num should be selected from the list below. 

B/Wdithergrayscalecolor
NWP-534−7 - 7−2,0,2no adjustmentno reading
NWP-540−7 - 7−1,0,1no readingno reading
NWP-548−3 - 3−3 - 3−3 - 3−3 - 3

−sc[ale] num
specifies magnification ratio if it should be changed. It should be 50% - 200%. Default value is 100% (no size change.)

−Sc[ale] sx sy
specify magnification ratios if they are to be changed. They should be 50% - 200%. Default value is 100% (no size change.)

−mi[rror]
Mirror mode image reading.

−rev[erse]
Reverse mode image reading.

−fo[rmat] type
specifies the format of output file. It should be either xwd, scn, tiff or cdff. The default format is the raw data format without any header.

−h[eader]
Output image data is in scn format.
This option will not be supported by next version of scn.  Use −format scn. 

−v[erbose]
Displays messages.

−dev[ice] dev_file
specifies the device file of the image reader. The default device file for monochrome image readers NWP-534/540 is /dev/ir.  The default device file for color image reader NWP-548 is /dev/scsi06. 

The options below are for segment.  They are not supported for color image reader (NWP-548.) 

−se[gment] sx sy wd ht
specify the positions and sizes of the segment.

sxX coordinate
syY coordinate
wdwidth of segment
htheight of segment

−Mo[de] imode omode
specify reading mode of inside and outside of the segment. imode and omode are selected from the list below. 

imode omode  function
0B/W (default)
1dither pattern No.1
2dither pattern No.2
3dither pattern No.3
4dither pattern No.4
5dither pattern No.5
6dither pattern No.6
7dither pattern No.7 ∗1
11White

∗1 Not supported with NWP-540.

−Rev[erse] irev orev
specify positive/negative mode of inside or outside of the segment. irev and orev are either 0 (positive) or 1 (negative.) 

−help Writes description of usage on the standard error output. 
 

EXIT CODE

The exit codes of scn are listed below. 

EXIT CODE  definition
0Normal.
1Image reader malfunction.
2Image data is too large.
3Specified option(s) not supported.
4Image reader is busy.

NOTES

The color image reader NWP-548 timeouts, if there is no access for a while during image reading.  This may be avoided by reducing the load of the host. 
For monochrome image readers, there are some limitations of the image data size which can be read: 2 Mbytes for NWP-534 and 3 Mbytes for NWP-540.

SEE ALSO

xscn(1)

FILES

/dev/scsi06, /dev/ir

COPYRIGHT

Copyright (c) 1990, Sony Corporation. 

NEWS-OSRelease 4.1C

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026