colors colors colors

This commit is contained in:
Antoine Vignau 2024-08-20 11:56:43 +02:00
parent eb96e16c6b
commit ba6d9f58dd
4 changed files with 58 additions and 94 deletions

View File

@ -684,7 +684,7 @@ strPRL asc 0d' Product revision level: '00
previewPAGE
jsr openSCANNER
bit setMODE
jsr setMODE
bit setHALFTONES
jsr setWINDOW
jsr askforMEM
@ -794,7 +794,7 @@ endSM asc '...End'00
proSETMODE
dw 5
ds 2
dw $8015
dw $8015 ; MODE SELECT
adrl setmodeBUFF
adrl 12
ds 4
@ -802,7 +802,7 @@ proSETMODE
setmodeBUFF
dw $0000
hex 15 ; 00
hex 10 ; 01 PF (bit is 1) for SCSI-2
hex 10 ; 01 PF bit is 1 for SCSI-2
hex 00,00 ; 02 reserved
dfb 12 ; 04 parameter list length
hex 00,00,00,00,00,00,00
@ -813,29 +813,12 @@ setmodeBUFF
setmodeDATA
hex 00,00 ; 00 mode parameter header (8.3.3, table 91)
hex 00,00
hex 01 ; 04 page code - Apple-specific parameter page
hex 08 ; 05 page length - Apple-specific page
dfb 01 ; 06 graymap - 1 = no alteration to data (Apple Scanner)
; 0: dark
; 1: normal
; 2: light
dfb 64 ; 07 auto background adjustment threshold
; Default threshold value is 64 (Apple Scanner)
; bit 0 - 0: do not use custom CCT / 1: use custom CCT (3*3 Color Correction Table)
; bit 1 - 0: do not use custom gamma / 1: use custom gamma
; bit 2 - 0: setting of the ambler LED off / 1: setting on (OneScanner)
dfb 01 ; 08 lamp - 0 = turn off (during scans)
; bit 0 - 0: turn off / 1: turn on
; bit 1 - power of the CCD array on / 1: power off
; bits 2/3 - 00: normal / 01: fast / 10: high speed (OneScanner)
; bit 2 - 0: do not reverse B&W / 1: reverse B&W (Color OneScanner)
; bit 3 - 0: no ICP / 1: ICP on (Color OneScanner)
; bit 4 - 0: no MTF / 1: MTF on (Color OneScanner)
dfb 00 ; 09 color sensor (color onescanner)
; 0: all
; 1: red
; 2: green
; 3: blue
hex 01 ; 04
hex 08 ; 05
hex 00 ; 06
hex 00 ; 07
hex 02 ; 08
hex 58 ; 09
hex 00,00 ; 10 reserved - 2 bytes
*--- For OneScanner
@ -1028,51 +1011,10 @@ proSETWINDOW
dw 5
ds 2
dw $8024
* adrl setwindowBUFF ; for Apple Scanner
* adrl 48
adrl coloronescannerBUFF ; for OneScanner and above
adrl 50
adrl 80
ds 4
*--- For Apple Scanner
setwindowBUFF
dw $0000
hex 24
hex 00
hex 00,00,00,00
dfb 00,00,48 ; length is 48 bytes
hex 00 ; control ($80: the Apple bit)
hex 00,00
adrl setwindowDATA
setwindowDATA
hex 00,00,00,00,00,00 ;
dfb 00,40 ; window length (first scanners)
dfb windowID ; 00 window identifier
hex 00 ; 01 reserved
dfb 00,75 ; 02 x-axis resolution
dfb 00,75 ; 04 y-axis resolution
hex 00,00,00,00 ; 06 x-upper left
hex 00,00,00,00 ; 10 y-upper left
hex 00,00,12,C0 ; 14 x-width (27D8 for 10200)
hex 00,00,11,30 ; 18 y-height (3390 for 13200)
hex 80 ; 22 brightness
hex 80 ; 23 threshold
hex 80 ; 24 contrast
dfb 2 ; 25 imageComposition (see table 283)
dfb 8 ; 26 bitsPerPixel (8)
hex 00,00 ; 27 halftone (2)
dfb 3 ; 29 paddingType (byte boundary)
hex 00,00 ; 30 bit ordering
hex 00 ; 32 compression type
hex 00 ; 33 compression argument
hex 00,00,00,00,00,00 ; 34 reserved
hex 00
hex 00
*--- For Apple Color OneScanner
coloronescannerBUFF
@ -1080,38 +1022,60 @@ coloronescannerBUFF
hex 24
hex 00
hex 00,00,00,00
dfb 00,00,50 ; length is 50 bytes for OneScanner
dfb 00,00,72 ; length is 50 bytes for OneScanner
hex 00 ; control ($80: the Apple bit)
hex 00,00
adrl coloronescannerDATA
coloronescannerDATA
hex 00,00,00,00,00,00 ;
dfb 00,42 ; window length (coloronescanners)
hex 00,00,00,00,00,00 ; 00
dfb 00,64 ; 06 window length (canon scanners)
dfb windowID ; 00 window identifier
hex 00 ; 01 reserved
dfb windowID ; 08 00 window identifier
hex 00 ; 09 01 reserved
dfb 00,75 ; 02 x-axis resolution
dfb 00,75 ; 04 y-axis resolution
hex 00,00,00,00 ; 06 x-upper left
hex 00,00,00,00 ; 10 y-upper left
hex 00,00,12,C0 ; 14 4 pouces (27D8 for 10200)
hex 00,00,11,30 ; 18 y-height (3390 for 13200)
dfb 0 ; 22 brightness
dfb 0 ; 23 threshold
dfb 0 ; 24 contrast
dfb 5 ; 25 imageComposition (see table 283)
dfb 24 ; 26 bitsPerPixel (8)
hex 00,00 ; 27 halftone (2)
dfb 3 ; 29 paddingType (byte boundary)
hex 00,00 ; 30 bit ordering
hex 00 ; 32 compression type
hex 00 ; 33 compression argument
hex 00,00,00,00,00,00 ; 34
dfb 255 ; 40 OPT_VOLT_REF_TOP = 255
dfb 1 ; 41 OPT_VOLT_REF_BOTTOM = 1
hex 00,00
dfb 00,75 ; 10 02 x-axis resolution
dfb 00,75 ; 12 04 y-axis resolution
hex 00,00,00,00 ; 14 06 x-upper left
hex 00,00,00,00 ; 18 10 y-upper left
* Photographie 5 x 3,5 = 6000 x 4200 = $1770 x $1068
hex 00,00,17,70 ; 14 x-width (27D8 for 10200)
hex 00,00,10,68 ; 18 y-height (3390 for 13200)
dfb 0 ; 30 22 brightness
dfb 0 ; 31 23 threshold
dfb 0 ; 32 24 contrast
dfb 5 ; 33 25 imageComposition (see table 283)
dfb 24 ; 34 26 bitsPerPixel (8)
hex 00,01 ; 35 27 halftone (2)
dfb 128+3 ; 37 29 RIF + paddingType (byte boundary)
hex 00,00 ; 38 30 bit ordering
hex 00 ; 40 32 compression type
hex 00 ; 41 33 compression argument
hex 00,00,00,00,00,00 ; 42 34
dfb 255 ; 48 40 OPT_VOLT_REF_TOP = 255
dfb 1 ; 49 41 OPT_VOLT_REF_BOTTOM = 1
dfb 0 ; 50 42 bit 3: GRC, bit 2: Mirror
hex 00 ; 51 43
hex 00 ; 52 44
hex 00 ; 53 45
dfb 2 ; 54 46
hex 00 ; 55 47
hex 00 ; 56 48
dfb 1 ; 57 49
dfb 1 ; 58 50
hex 255 ; 59 51 Hilite R
hex 0 ; 60 52 Shadow R
hex 00 ; 61 53
hex 255 ; 62 54 Shadow G
hex 00 ; 63 55
hex 0 ; 64 56 Hilite G
hex 00 ; 65 57
hex 00 ; 66 58
hex 00 ; 67 59
hex 00 ; 68 60
hex 00 ; 69 61
hex 255 ; 70 62 Hilite B
hex 0 ; 71 63 Shadow B
*-----------------------
* ASK FOR MEMORY

View File

@ -1034,7 +1034,7 @@ setwindowDATA
hex 02 ; 25 imageComposition (see table 283)
hex 08 ; 26 bitsPerPixel (8)
hex 00,00 ; 27 halftone (2)
hex 03 ; 29 paddingType (byte boundary)
hex 83 ; 29 RIF + paddingType (byte boundary)
hex 00,00 ; 30 bit ordering
hex 00 ; 32 compression type
hex 00 ; 33 compression argument

Binary file not shown.

Before

Width:  |  Height:  |  Size: 68 KiB

After

Width:  |  Height:  |  Size: 69 KiB

Binary file not shown.