;; $VER: Default.Primera 1.00.00 (20.01.95)
;; ---------------------------------------------------------------------------
;; Defaults file for Primera and PrimeraPro ImageFX printer drivers.  This
;; file is read to obtain tunable parameters such as dither matrices and
;; gamma correction tables.  The items in this table *must* be in order,
;; and must maintain their original size.  Items in this file are, in
;; order:
;;
;;    - 4x4 dither matrix for dye-sub printing
;;    - 8x8 dither matrix for thermal wax transfer printing
;;    - 256 element gamma correction table for dye-sub printing
;;    - three 16 element grey level tables, one per primary color
;;    - HSV space color correction values for Custom1 dye-sub printing
;;    - gamma correction table for thermal (wax) printing.
;; 
;; All numbers must be between 0 and 255, inclusive.  Comments begin with
;; a ';' character.  Newlines and spaces may be freely used, but no other
;; non-numeric characters may appear.
;;
;; Modification of this file should be attempted by advanced users only.
;;
;; Note that various monitors show significant differences when displaying
;; a given color.  Matching printed CMY colors to displayed RGB colors
;; may require modification of these parameters to match a specific
;; display and printer.
;; ---------------------------------------------------------------------------


;; ----------------- 4x4 Dither matrix for Dye Sub printing ------------------

    1  9  3 11
   13  5 15  7
    4 12  2 10
   16  8 14  6


;; -------------- 8x8 Dither matrix for Thermal Xfer printing ----------------

    1 17 49 33  3 19 51 35
    9 25 57 41 11 27 59 43
   53 37  5 21 55 39  7 23
   61 45 13 29 63 47 15 31
    4 20 52 36  2 18 50 34
   12 28 60 44 10 26 58 42
   56 40  8 24 54 38  6 22
   64 48 16 32 62 46 14 30


;; ------------------- Dye-Sub Gamma correction table. -----------------------

;; -- This table is used for Fargo color correction only ---------------------

;; -- Incoming color 0..255 is used as an index into this table.  Result is
;; -- blended with original color and grey adjustment values according to
;; -- factors specified in the options settings.  The formula, given original
;; -- color 'c', and correction factors Primary, Gamma, and, Grey, is:

;; --   g = min(c,m,y)
;; --   corrected_c = (c * Primary + GammaTbl[c] * Gamma + Grey * [c-g]) / 128

;; -- NOTE: Table is used in CMY space, not RGB space!


    0   0   0   0   0   0   0   0   0   0   0   0   0   0   0   0   ;;   0- 15
    0   0   0   0   0   0   0   0   0   0   0   0   0   0   0   0   ;;  16- 31
    1   1   1   1   1   1   1   1   1   1   1   1   1   1   1   2   ;;  32- 47
    2   2   2   2   2   2   2   3   3   3   3   3   3   3   4   4   ;;  48- 63
    4   4   4   5   5   5   5   6   6   6   6   6   7   7   7   8   ;;  64- 79
    8   8   8   9   9   9  10  10  10  11  11  12  12  12  13  13   ;;  80- 95
   14  14  14  15  15  16  16  17  17  18  18  19  19  20  20  21   ;;  96-111
   22  22  23  23  24  25  25  26  27  27  28  29  29  30  31  32   ;; 111-127
   32  33  34  35  35  36  37  38  39  40  40  41  42  43  44  45   ;; 128-143
   46  47  48  49  50  51  52  53  54  55  56  57  58  60  61  62   ;; 144-159
   63  64  65  67  68  69  70  72  73  74  76  77  78  80  81  82   ;; 160-175
   84  85  87  88  90  91  93  94  96  97  99 101 102 104 105 107   ;; 176-191
  109 111 112 114 116 118 119 121 123 125 127 129 131 132 134 136   ;; 192-207
  138 140 142 144 147 149 151 153 155 157 159 162 164 166 168 171   ;; 208-223
  173 175 178 180 182 185 187 190 192 195 197 200 202 205 207 210   ;; 224-239
  213 215 218 221 223 226 229 232 235 237 240 243 246 249 252 255   ;; 240-255


;; ------------ Grey Level Table, one per primary - Y/M/C --------------------

;; -- For Dye-Sub printing, after color correction, this table maps 0..255
;; -- values into 0..15 for dye-sublimation printing.  The printer is not a
;; -- linear device, so these tables adjusts accordingly.  There is one per
;; -- primary.  Note that these are in YMC order, not CMY order.

    0  24  49  68  87 105 123 141 156 171 186 202 214 228 242 254   ;; Y
    0  24  49  68  87 105 123 141 156 171 186 202 214 228 242 254   ;; M
    0  24  49  68  87 105 123 141 156 171 186 202 214 228 242 254   ;; C

;; ------------ Custom1 Dye-Sub color correction tables ----------------------

;; -- For Custom1, Y, M, and C can be adjusted according to their hue
;; -- value.  For example, to print most blues, the printer needs less
;; -- magenta than the screen does.  These tables map Y, M, and C 
;; -- corrections to hue values (the driver automatically adjusts for
;; -- saturation and brightness).  There is one table each for Y, M, and
;; -- C.  Each table must be terminated by an entry with all 0's.

;;  Y table
;;  Hue  Maxdist  Adjust  S_PC  V_PC  FalloffExp
;;  --------------------------------------------
      0       0      0       0     0      0     ; Termate Y table

;;  M table
;;  Hue  Maxdist  Adjust  S_PC  V_PC  FalloffExp
;;  --------------------------------------------
    240    3000    -100    255   255      2     ; most blues are too dark;
                                                ; let's subtract some M to
                                                ; fix them up.
      0       0      0       0     0      0     ; Termate M table

;;  C table
;;  Hue  Maxdist  Adjust  S_PC  V_PC  FalloffExp
;;  --------------------------------------------
      0       0      0       0     0      0     ; Termate C table



;; --------------- Wax (Thermal) Gamma Correction Table ----------------------

;; -- This table is used for wax thermal printing only -----------------------

;; -- Incoming color 0..255 is used as an index into this table.  Result is
;; -- sent to Fargo's color correction algorithm.  This feature was added
;; -- because wax prints normally come out too dark.  This table provides a
;; -- way to make a more linear printed color space, and thus more closely
;; -- match screen colors.

;; -- NOTE: Table is used in CMY space, not RGB space!

   0   0   0   0   0   1   1   1   2   2   2   2   3   3   3   4   ;;   0- 15
   4   4   5   5   5   6   6   6   7   7   8   8   8   9   9  10   ;;  16- 31
  10  10  11  11  12  12  13  13  14  14  15  15  16  16  17  17   ;;  32- 47
  18  18  19  19  20  20  21  21  22  22  23  24  24  25  25  26   ;;  48- 63
  27  27  28  29  29  30  30  31  32  32  33  34  34  35  36  37   ;;  64- 79
  37  38  39  39  40  41  42  42  43  44  45  45  46  47  48  49   ;;  80- 95
  49  50  51  52  53  54  54  55  56  57  58  59  60  60  61  62   ;;  96-111
  63  64  65  66  67  68  69  70  71  71  72  73  74  75  76  77   ;; 111-127
  78  79  80  81  82  83  84  85  87  88  89  90  91  92  93  94   ;; 128-143
  95  96  97  98 100 101 102 103 104 105 106 108 109 110 111 112   ;; 144-159
 113 115 116 117 118 119 121 122 123 124 126 127 128 129 131 132   ;; 160-175
 133 135 136 137 138 140 141 142 144 145 146 148 149 151 152 153   ;; 176-191
 155 156 157 159 160 162 163 164 166 167 169 170 172 173 175 176   ;; 192-207
 178 179 181 182 184 185 187 188 190 191 193 194 196 197 199 200   ;; 208-223
 202 204 205 207 208 210 212 213 215 216 218 220 221 223 225 226   ;; 224-239
 228 230 231 233 235 236 238 240 242 243 245 247 248 250 252 255   ;; 240-255
