! regression/common/saynote "Grey marking check starting"
! regression/common/setup_testvolume
GETHISTOGRAM
IF ${$root.rc[0]==858629&&$root.rc[100]==64000&&$root.rc[200]==36000&&$root.rc[210]==8000&&$root.rc[300]==0} ! regression/common/sayok "GETHISTOGRAM"
ELSE ! regression/common/sayfail "GETHISTOGRAM"
MARKC_ALL 0
MARKCG 100 100 0 1
MARKGC 1 110
! regression/common/checkstats "MARKGC" 1 64000 110 110 110 0

# This is just to shut up the regression check script.
# We use GETSTATS all the time, so this is tested more thoroughly than 
# anything else ...
GETSTATS 1
! regression/common/checkstats "GETSTATS" 1 64000 110 110 110 0

MARKCG 100 300 0 1
MARKGC_MIX 1 300 0.5
! regression/common/checkstats "MARKGC_MIX 0.5" 1 108000 205 255 223.7 22.6
MARKGC_MIX 1 300 0.2
! regression/common/checkstats "MARKGC_MIX 0.2" 1 108000 224 264 239 18.1
MARKCG 224 224 1 2
MARKCG 260 260 1 3
MARKCG 264 264 1 4
MARKGC 2 100
MARKGC 3 200
MARKGC 4 210
! regression/common/checkstats "MARKGC retour" 2-4 108000 100 210 141.5 50.1
MARKGG_ADD 50 2
! regression/common/checkstats "MARKGG_ADD" 2-4 108000 150 210 171.1 25.6
MARKGG_MULT 3 2
! regression/common/checkstats "MARKGG_MULT" 2-4 108000 200 450 348.9 122
! regression/common/setup_testvolume_silent
MARKGG_PLANEADD 2 25 -1.0 1.0 1000
! regression/common/checkstats "MARKGG_PLANEADD 2,sub" ^, 1000000 800 1310 957.7 103.0
! regression/common/setup_testvolume_silent
MARKGG_PLANEADD 1 50 1.0 1.0 0
! regression/common/checkstats "MARKGG_PLANEADD 1,add" ^, 1000000 0 1020 113.0 208.7
! regression/common/setup_testvolume_silent
MARKGG_PLANEADD 0 50 0.5 0.5 200
! regression/common/checkstats "MARKGG_PLANEADD 0,mix+" ^, 1000000 200 705 253.6 102.4

# Now go for MARKBITGD
! regression/common/setup_testvolume_silent
MARKDC 1
MARKBITGD 0xf000 0x1000 0
MARKBITGD 0xf00f 0x0001 1
! regression/common/checkstats "MARKBITGD 0" 1 64000 4196 4196 4196.0 0.0
! regression/common/checkstats "MARKBITGD 1" ^1 936000 1 497 25.5 88.6

# run the filtsep tests.
! regression/markgrey/filtsep

# run the filt tests
! regression/markgrey/filt
! regression/markgrey/filtb

# check the backing store
! regression/markgrey/back

# check normal generation functions
! regression/markgrey/norm

# MARKGC_FROMRGB

! regression/common/saynote "Grey marking check completed"
