/* a couple of definitions need in gdevcd8.c */ /* this holds the initialisation data of the hp850 */ struct { unsigned int a1:8 ; unsigned int a2:8 ; unsigned int a3:8; unsigned int a4:8; unsigned int a5:8; unsigned int a6:8; unsigned int a7:8; unsigned int a8:8; unsigned int a9:8; unsigned int a10:8; unsigned int a11:8; unsigned int a12:8; unsigned int a13:8; unsigned int a14:8; unsigned int a15:8; unsigned int a16:8; unsigned int a17:8; unsigned int a18:8; unsigned int a19:8; unsigned int a20:8; unsigned int a21:8; unsigned int a22:8; unsigned int a23:8; unsigned int a24:8; unsigned int a25:8; unsigned int a26:8; } hp850_cmyk_init = { 0x02, /* format */ 0x04, /* number of components */ /* black */ 0x02, /* MSB x resolution */ 0x58, /* LSB x resolution */ 0x02, /* MSB y resolution */ 0x58, /* LSB y resolution */ 0x00, /* MSB intensity levels */ 0x02, /* LSB intensity levels */ /* cyan */ 0x01, /* MSB x resolution */ 0x2c, /* LSB x resolution */ 0x01, /* MSB y resolution */ 0x2c, /* LSB y resolution */ 0x00, /* MSB intensity levels */ 0x02, /* LSB intensity levels */ /* magenta */ 0x01, /* MSB x resolution */ 0x2c, /* LSB x resolution */ 0x01, /* MSB y resolution */ 0x2c, /* LSB y resolution */ 0x00, /* MSB intensity levels */ 0x02, /* LSB intensity levels */ /* yellow */ 0x01, /* MSB x resolution */ 0x2c, /* LSB x resolution */ 0x01, /* MSB y resolution */ 0x2c, /* LSB y resolution */ 0x00, /* MSB intensity levels */ 0x02, /* LSB intensity levels */ }; /* this holds the color lookuptable data of the hp850 */ struct { byte c[256]; /* Lookuptable for cyan */ byte m[256]; /* dito for magenta */ byte y[256]; /* dito for yellow */ byte k[256]; /* dito for black */ int correct[256]; /* potential undercolor black correction */ } gammat = { /* Lookup values for cyan */ {0, 0, 0, 2, 2, 2, 3, 3, 3, 5, 5, 5, 7, 7, 6, 7, 7, 6, 7, 7, 7, 8, 8, 8, 8, 8, 8, 9, 9, 9, 9, 9, 10, 10, 10, 10, 10, 10, 11, 11, 12, 12, 12, 12, 12, 12, 13, 13, 14, 14, 14, 15, 15, 16, 16, 15, 16, 16, 17, 17, 17, 17, 17, 18, 18, 18, 19, 19, 20, 20, 20, 20, 20, 21, 21, 21, 22, 22, 23, 23, 23, 23, 23, 24, 24, 25, 25, 26, 26, 26, 26, 26, 27, 27, 27, 27, 28, 28, 29, 28, 28, 29, 29, 30, 30, 31, 31, 32, 32, 33, 34, 35, 35, 36, 36, 37, 37, 38, 38, 39, 39, 40, 40, 41, 41, 42, 42, 42, 43, 43, 43, 44, 45, 45, 46, 46, 47, 47, 48, 48, 49, 50, 50, 51, 51, 52, 52, 53, 54, 54, 54, 55, 55, 56, 57, 58, 58, 59, 60, 60, 61, 62, 62, 63, 65, 65, 66, 67, 67, 68, 69, 69, 70, 72, 73, 73, 74, 75, 75, 76, 77, 79, 79, 80, 81, 82, 83, 83, 84, 86, 87, 88, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 97, 99, 100, 101, 102, 103, 104, 105, 106, 108, 109, 110, 111, 112, 114, 115, 117, 119, 120, 122, 124, 125, 127, 129, 131, 132, 135, 136, 138, 140, 142, 144, 146, 147, 150, 152, 154, 157, 159, 162, 164, 166, 168, 171, 174, 176, 180, 182, 187, 192, 197, 204, 215, 255}, /* Lookup values for magenta */ {0, 0, 0, 1, 1, 1, 3, 3, 3, 4, 4, 4, 5, 5, 5, 6, 6, 6, 7, 7, 7, 7, 7, 7, 8, 8, 8, 9, 9, 10, 10, 9, 10, 10, 10, 11, 11, 11, 11, 11, 12, 12, 12, 13, 13, 13, 14, 14, 15, 15, 15, 16, 16, 16, 16, 16, 17, 17, 17, 17, 17, 18, 18, 19, 19, 19, 19, 19, 20, 20, 20, 21, 21, 22, 22, 22, 23, 23, 24, 24, 25, 25, 25, 26, 26, 27, 27, 28, 29, 29, 29, 29, 30, 30, 31, 30, 31, 31, 32, 31, 31, 32, 32, 33, 33, 34, 34, 35, 35, 36, 36, 37, 37, 38, 38, 39, 39, 40, 40, 41, 41, 42, 42, 43, 43, 44, 44, 45, 45, 46, 46, 47, 48, 48, 49, 49, 50, 50, 51, 51, 52, 53, 53, 54, 54, 55, 55, 56, 57, 57, 58, 58, 59, 60, 60, 61, 61, 62, 63, 64, 65, 66, 66, 67, 68, 68, 70, 71, 71, 72, 73, 73, 74, 76, 77, 77, 78, 79, 79, 80, 81, 82, 83, 84, 85, 86, 87, 87, 88, 89, 90, 91, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 100, 101, 102, 103, 105, 106, 107, 108, 109, 112, 113, 114, 115, 116, 118, 119, 121, 123, 124, 125, 128, 129, 130, 133, 134, 135, 138, 139, 142, 144, 145, 148, 150, 152, 154, 157, 159, 162, 164, 168, 169, 170, 172, 175, 177, 179, 182, 185, 189, 193, 198, 204, 215, 255}, /* Lookup values for yellow */ {0, 0, 0, 2, 2, 2, 3, 3, 3, 5, 5, 5, 7, 7, 6, 7, 7, 6, 7, 7, 7, 8, 8, 8, 8, 8, 8, 9, 9, 9, 9, 9, 10, 9, 9, 10, 10, 10, 10, 10, 11, 11, 11, 12, 12, 13, 13, 14, 14, 15, 15, 16, 16, 16, 16, 16, 17, 17, 18, 18, 18, 19, 18, 19, 19, 19, 20, 20, 21, 21, 21, 22, 22, 22, 22, 22, 23, 23, 24, 24, 25, 25, 25, 26, 27, 28, 28, 29, 29, 29, 30, 30, 30, 30, 31, 31, 32, 32, 33, 33, 32, 33, 33, 34, 34, 35, 35, 36, 36, 37, 37, 38, 38, 39, 39, 40, 40, 41, 41, 42, 42, 43, 43, 44, 44, 45, 45, 45, 45, 46, 46, 47, 48, 48, 49, 49, 50, 50, 51, 51, 52, 53, 53, 54, 54, 55, 55, 56, 57, 58, 59, 59, 60, 61, 61, 62, 62, 63, 64, 65, 66, 67, 67, 68, 69, 69, 70, 71, 72, 73, 74, 74, 75, 76, 77, 77, 78, 79, 79, 80, 81, 82, 83, 84, 85, 86, 87, 87, 88, 89, 90, 91, 91, 93, 94, 95, 96, 97, 98, 100, 101, 102, 102, 103, 104, 106, 107, 108, 109, 110, 111, 113, 114, 115, 116, 117, 118, 119, 121, 123, 124, 126, 128, 130, 131, 134, 135, 137, 139, 140, 143, 145, 146, 148, 150, 152, 154, 156, 158, 160, 163, 166, 167, 169, 171, 173, 176, 178, 181, 184, 188, 192, 198, 204, 215, 255}, /* Lookup values for black */ {0, 0, 0, 1, 1, 1, 1, 1, 1, 3, 3, 3, 3, 3, 2, 4, 3, 3, 3, 3, 3, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 8, 8, 8, 9, 9, 8, 8, 8, 9, 9, 9, 10, 10, 10, 10, 10, 11, 11, 11, 11, 12, 12, 12, 13, 13, 12, 12, 12, 13, 13, 13, 13, 13, 14, 14, 14, 14, 14, 15, 15, 16, 16, 16, 17, 17, 17, 17, 18, 18, 18, 19, 19, 20, 20, 20, 20, 20, 21, 21, 21, 21, 22, 22, 22, 22, 23, 22, 23, 23, 24, 24, 24, 24, 25, 25, 26, 26, 26, 26, 27, 27, 28, 28, 28, 28, 29, 29, 30, 30, 31, 31, 31, 32, 32, 33, 33, 34, 34, 35, 36, 36, 36, 37, 37, 37, 38, 38, 40, 40, 40, 41, 41, 42, 43, 43, 43, 43, 44, 45, 45, 46, 47, 47, 48, 49, 49, 50, 52, 52, 53, 54, 54, 56, 56, 57, 58, 59, 60, 60, 61, 62, 63, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 72, 73, 75, 75, 76, 77, 78, 80, 81, 82, 82, 83, 84, 85, 86, 88, 89, 90, 91, 94, 95, 96, 98, 99, 100, 101, 103, 105, 106, 107, 110, 111, 112, 115, 116, 118, 120, 121, 124, 126, 127, 131, 133, 134, 138, 140, 141, 146, 148, 151, 154, 156, 160, 163, 166, 169, 174, 177, 182, 187, 194, 203, 215, 255}, };