1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
1568
1569
1570
1571
1572
1573
1574
1575
1576
1577
1578
1579
1580
1581
1582
1583
1584
1585
1586
1587
1588
1589
1590
1591
1592
1593
1594
1595
1596
1597
1598
1599
1600
1601
1602
1603
1604
1605
1606
1607
1608
1609
1610
1611
1612
1613
1614
1615
1616
1617
1618
1619
1620
1621
1622
1623
1624
1625
1626
1627
1628
1629
1630
1631
1632
1633
1634
1635
1636
1637
1638
1639
1640
1641
1642
1643
1644
1645
1646
1647
1648
1649
1650
1651
1652
1653
1654
1655
1656
1657
1658
1659
1660
1661
1662
1663
1664
1665
1666
1667
1668
1669
1670
1671
1672
1673
1674
1675
1676
1677
1678
1679
1680
1681
1682
1683
1684
1685
1686
1687
1688
1689
1690
1691
1692
1693
1694
1695
1696
1697
1698
1699
1700
1701
1702
1703
1704
1705
1706
1707
1708
1709
1710
1711
1712
1713
1714
1715
1716
1717
1718
1719
1720
1721
1722
1723
1724
1725
1726
1727
1728
1729
1730
1731
1732
1733
1734
1735
1736
1737
1738
1739
1740
1741
1742
1743
1744
1745
1746
1747
1748
1749
1750
1751
1752
1753
1754
1755
1756
1757
1758
1759
1760
1761
1762
1763
1764
1765
1766
1767
1768
1769
1770
1771
1772
1773
1774
1775
1776
1777
1778
1779
1780
1781
1782
1783
1784
1785
1786
1787
1788
1789
1790
1791
1792
1793
1794
1795
1796
1797
1798
1799
1800
1801
1802
1803
1804
1805
1806
1807
1808
1809
1810
1811
1812
1813
1814
1815
1816
1817
1818
1819
1820
1821
1822
1823
1824
1825
1826
1827
1828
1829
1830
1831
1832
1833
1834
1835
1836
1837
1838
1839
1840
1841
1842
1843
1844
1845
1846
1847
1848
1849
1850
1851
1852
1853
1854
1855
1856
1857
1858
1859
1860
1861
1862
1863
1864
1865
1866
1867
1868
1869
1870
1871
1872
1873
1874
1875
1876
1877
1878
1879
1880
1881
1882
1883
1884
1885
1886
1887
1888
1889
1890
1891
1892
1893
1894
1895
1896
1897
1898
1899
1900
1901
1902
1903
1904
1905
1906
1907
1908
1909
1910
1911
1912
1913
1914
1915
1916
1917
1918
1919
1920
1921
1922
1923
1924
1925
1926
1927
1928
1929
1930
1931
1932
1933
1934
1935
1936
1937
1938
1939
1940
1941
1942
1943
1944
1945
1946
1947
1948
1949
1950
1951
1952
1953
1954
1955
1956
1957
1958
1959
1960
1961
1962
1963
1964
1965
1966
1967
1968
1969
1970
1971
1972
1973
1974
1975
1976
1977
1978
1979
1980
1981
1982
1983
1984
1985
1986
1987
1988
1989
1990
1991
1992
1993
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
2027
2028
2029
2030
2031
2032
2033
2034
2035
2036
2037
2038
2039
2040
2041
2042
2043
2044
2045
2046
2047
2048
2049
2050
2051
2052
2053
2054
2055
2056
2057
2058
2059
2060
2061
2062
2063
2064
2065
2066
2067
2068
2069
2070
2071
2072
2073
2074
2075
2076
2077
2078
2079
2080
2081
2082
2083
2084
2085
2086
2087
2088
2089
2090
2091
2092
2093
2094
2095
2096
2097
2098
2099
2100
2101
2102
2103
2104
2105
2106
2107
2108
2109
2110
2111
2112
2113
2114
2115
2116
2117
2118
2119
2120
2121
2122
2123
2124
2125
2126
2127
2128
2129
2130
2131
2132
2133
2134
2135
2136
2137
2138
2139
2140
2141
2142
2143
2144
2145
2146
2147
2148
2149
2150
2151
2152
2153
2154
2155
2156
2157
2158
2159
2160
2161
2162
2163
2164
2165
2166
2167
2168
2169
2170
2171
2172
2173
2174
2175
2176
2177
2178
2179
2180
2181
2182
2183
2184
2185
2186
2187
2188
2189
2190
2191
2192
2193
2194
2195
2196
2197
2198
2199
2200
2201
2202
2203
2204
2205
2206
2207
2208
2209
2210
2211
2212
2213
2214
2215
2216
2217
2218
2219
2220
2221
2222
2223
2224
2225
2226
2227
2228
2229
2230
2231
2232
2233
2234
2235
2236
2237
2238
2239
2240
2241
2242
2243
2244
2245
2246
2247
2248
2249
2250
2251
2252
2253
2254
2255
2256
2257
2258
2259
2260
2261
2262
2263
2264
2265
2266
2267
2268
2269
2270
2271
2272
2273
2274
2275
2276
2277
2278
2279
2280
2281
2282
2283
2284
2285
2286
2287
2288
2289
2290
2291
2292
2293
2294
2295
2296
2297
2298
2299
2300
2301
2302
2303
2304
2305
2306
2307
2308
2309
2310
2311
2312
2313
2314
2315
2316
2317
2318
2319
2320
2321
2322
2323
2324
2325
2326
2327
2328
2329
2330
2331
2332
2333
2334
2335
2336
2337
2338
2339
2340
2341
2342
2343
2344
2345
2346
2347
2348
2349
2350
2351
2352
2353
2354
2355
2356
2357
2358
2359
2360
2361
2362
2363
2364
2365
2366
2367
2368
2369
2370
2371
2372
2373
2374
2375
2376
2377
2378
2379
2380
2381
2382
2383
2384
2385
2386
2387
2388
2389
2390
2391
2392
2393
2394
2395
2396
2397
2398
2399
2400
2401
2402
2403
2404
2405
2406
2407
2408
2409
2410
2411
2412
2413
2414
2415
2416
2417
2418
2419
2420
2421
2422
2423
2424
2425
2426
2427
2428
2429
2430
2431
2432
2433
2434
2435
2436
2437
2438
2439
2440
2441
2442
2443
2444
2445
2446
2447
2448
2449
2450
2451
2452
2453
2454
2455
2456
2457
2458
2459
2460
2461
2462
2463
2464
2465
2466
2467
2468
2469
2470
2471
2472
2473
2474
2475
2476
2477
2478
2479
2480
2481
2482
2483
2484
2485
2486
2487
2488
2489
2490
2491
2492
2493
2494
2495
2496
2497
2498
2499
2500
2501
2502
2503
2504
2505
2506
2507
2508
2509
2510
2511
2512
2513
2514
2515
2516
2517
2518
2519
2520
2521
2522
2523
2524
2525
2526
2527
2528
2529
2530
2531
2532
2533
2534
2535
2536
2537
2538
2539
2540
2541
2542
2543
2544
2545
2546
2547
2548
2549
2550
2551
2552
2553
2554
2555
2556
2557
2558
2559
2560
2561
2562
2563
2564
2565
2566
2567
2568
2569
2570
2571
2572
2573
2574
2575
2576
2577
2578
2579
2580
2581
2582
2583
2584
2585
2586
2587
2588
2589
2590
2591
2592
2593
2594
2595
2596
2597
2598
2599
2600
2601
2602
2603
2604
2605
2606
2607
2608
2609
2610
2611
2612
2613
2614
2615
2616
2617
2618
2619
2620
2621
2622
2623
2624
2625
2626
2627
2628
2629
2630
2631
2632
2633
2634
2635
2636
2637
2638
2639
2640
2641
2642
2643
2644
2645
2646
2647
2648
2649
2650
2651
2652
2653
2654
2655
2656
2657
2658
2659
2660
2661
2662
2663
2664
2665
2666
2667
2668
2669
2670
2671
2672
2673
2674
2675
2676
2677
2678
2679
2680
2681
2682
2683
2684
2685
2686
2687
2688
2689
2690
2691
2692
2693
2694
2695
2696
2697
2698
2699
2700
2701
2702
2703
2704
2705
2706
2707
2708
2709
2710
2711
2712
2713
2714
2715
2716
2717
2718
2719
2720
2721
2722
2723
2724
2725
2726
2727
2728
2729
2730
2731
2732
2733
2734
2735
2736
2737
2738
2739
2740
2741
2742
2743
2744
2745
2746
2747
2748
2749
2750
2751
2752
2753
2754
2755
2756
2757
2758
2759
2760
2761
2762
2763
2764
2765
2766
2767
2768
2769
2770
2771
2772
2773
2774
2775
2776
2777
2778
2779
2780
2781
2782
2783
2784
2785
2786
2787
2788
2789
2790
2791
2792
2793
2794
2795
2796
2797
2798
2799
2800
2801
2802
2803
2804
2805
2806
2807
2808
2809
2810
2811
2812
2813
2814
2815
2816
2817
2818
2819
2820
2821
2822
2823
2824
2825
2826
2827
2828
2829
2830
2831
2832
2833
2834
2835
2836
2837
2838
2839
2840
2841
2842
2843
2844
2845
2846
2847
2848
2849
2850
2851
2852
2853
2854
2855
2856
2857
2858
2859
|
/*
* render2d
*
* Simple 2D raster rendering support.
*
* Author: Graeme W. Gill
* Date: 28/12/2005
*
* Copyright 2005, 2008, 2012 Graeme W. Gill
* All rights reserved.
*
* This material is licenced under the GNU AFFERO GENERAL PUBLIC LICENSE Version 3 :-
* see the License.txt file for licencing details.
*/
/*
* TTBD: Should make this much more self contained in how
* it deals with errors - return an error code & string,
* and clean up resourcse.
*/
#undef DEBUG
#undef CCTEST_PATTERN /* Create ccast upsampling test pattern if */
/* "ARGYLL_CCAST_TEST_PATTERN" env variable is set */
#undef TEST_SCREENING /* For testing by making screen visible */
#define OVERLAP 0.1 /* Stocastic screening overlap between levels */
#define verbo stdout
#include <stdio.h>
#include <math.h>
#include <stdlib.h>
#include <fcntl.h>
#include "copyright.h"
#include "aconfig.h"
#include "sort.h"
#include "numlib.h"
#include "tiffio.h"
#include "png.h"
#include "render.h"
#include "thscreen.h"
/* ------------------------------------------------------------- */
/* Utilities */
/* Standard L*a*b* to TIFF 8 bit CIELAB */
static void cvt_Lab_to_CIELAB8(double *out, double *in) {
out[0] = in[0];
if (out[0] < 0.0)
out[0] = 0.0;
else if (out[0] > 100.0)
out[0] = 100.0;
out[0] = out[0] / 100.0 * 255.0;
out[1] = in[1];
if (out[1] < -128.0)
out[1] = -128.0;
else if (out[1] > 127.0)
out[1] = 127.0;
if (out[1] < 0.0)
out[1] = 256.0 + out[1];
out[2] = in[2];
if (out[2] < -128.0)
out[2] = -128.0;
else if (out[2] > 127.0)
out[2] = 127.0;
if (out[2] < 0.0)
out[2] = 256.0 + out[2];
}
/* Standard L*a*b* to TIFF 16 bit CIELAB */
static void cvt_Lab_to_CIELAB16(double *out, double *in) {
out[0] = in[0];
if (out[0] < 0.0)
out[0] = 0.0;
else if (out[0] > 100.0)
out[0] = 100.0;
out[0] = out[0] / 100.0 * 65535.0;
out[1] = in[1];
if (out[1] < -32768.0)
out[1] = -32768.0;
else if (out[1] > 32767.0)
out[1] = 32767.0;
if (out[1] < 0.0)
out[1] = 65536.0 + out[1];
out[2] = in[2];
if (out[2] < -32768.0)
out[2] = -32768.0;
else if (out[2] > 32767.0)
out[2] = 32767.0;
if (out[2] < 0.0)
out[2] = 65536.0 + out[2];
}
/* ------------------------------------------------------------- */
/* PNG memory write support */
typedef struct {
unsigned char *buf;
png_size_t len; /* Current length of the buffer */
png_size_t off; /* Current offset of the buffer */
} png_mem_info;
static void mem_write_data(png_structp png_ptr, png_bytep data, png_size_t length) {
png_mem_info *s = (png_mem_info *)png_get_io_ptr(png_ptr);
if ((s->off + length) > s->len) { /* Need more space */
png_size_t more = (s->off + length) - s->len;
if (more < (1024 * 80))
more = 1024 * 50 - 32; /* Increase 50K at a time */
s->len += more;
if ((s->buf = realloc(s->buf, s->len)) == NULL) {
png_error(png_ptr, "malloc failed in mem_write_data");
}
}
memcpy(s->buf + s->off, data, length);
s->off += length;
}
static void mem_flush_data(png_structp png_ptr) {
return;
}
/* ------------------------------------------------------------- */
#ifdef CCTEST_PATTERN
#define SG 9 // Spacing is 9 pixels
//#define SG 64 // 10 lines per half screen
static void test_value(render2d *s, tdata_t *outbuf, int xx, int yy) {
int x = xx, y = yy;
int i, j, v;
int oval[3]; /* 8 bit value */
if (x < s->pw/2) {
if (y < s->ph/2) {
/* Generate vertical white stripes */
/* Stripes are 5 pixels apart in groups of 2 of the same level, */
/* declining by 1 each group */
if ((x % SG) == 0) {
i = x / (2 * SG);
v = 255 - i;
if (v < 0)
v = 0;
oval[0] = oval[1] = oval[2] = v;
} else {
oval[0] = oval[1] = oval[2] = 0;
}
} else {
y -= s->ph/2;
/* Generate white dots */
if ((x % SG) == 0 && (y % SG) == 0) {
i = x / (2 * SG);
j = y / (2 * SG);
i += j * s->pw/2/(2 * SG);
oval[0] = oval[1] = oval[2] = 0;
for (j = 5; j >= 0; j--) {
oval[0] = (oval[0] << 1) | ((i >> (j * 3 + 0)) & 1);
oval[1] = (oval[1] << 1) | ((i >> (j * 3 + 1)) & 1);
oval[2] = (oval[2] << 1) | ((i >> (j * 3 + 2)) & 1);
}
oval[0] = 255 - oval[0];
oval[1] = 255 - oval[1];
oval[2] = 255 - oval[2];
} else {
oval[0] = oval[1] = oval[2] = 0;
}
}
} else {
x -= s->pw/2;
if (y < s->ph/2) {
/* Generate horizontal white stripes */
/* Stripes are 5 pixels apart in groups of 2 of the same level, */
/* declining by 1 each group */
if ((y % SG) == 0) {
j = y / (2 * SG);
v = 255 - j;
oval[0] = oval[1] = oval[2] = v;
} else {
oval[0] = oval[1] = oval[2] = 0;
}
} else {
y -= s->ph/2;
/* Generate black dots */
if ((x % SG) == 0 && (y % SG) == 0) {
i = x / (2 * SG);
j = y / (2 * SG);
i += j * s->pw/2/(2 * SG);
oval[0] = oval[1] = oval[2] = 0;
for (j = 5; j >= 0; j--) {
oval[0] = (oval[0] << 1) | ((i >> (j * 3 + 0)) & 1);
oval[1] = (oval[1] << 1) | ((i >> (j * 3 + 1)) & 1);
oval[2] = (oval[2] << 1) | ((i >> (j * 3 + 2)) & 1);
}
} else {
oval[0] = oval[1] = oval[2] = 255;
}
}
}
if (s->dpth == bpc8_2d) {
unsigned char *p = ((unsigned char *)outbuf) + xx * s->ncc;
p[0] = oval[0];
p[1] = oval[1];
p[2] = oval[2];
} else {
unsigned short *p = ((unsigned short *)outbuf) + xx * s->ncc;
p[0] = oval[0] * 256;
p[1] = oval[1] * 256;
p[2] = oval[2] * 256;
}
}
#undef SG
#endif
/* ------------------------------------------------------------- */
/* Main class implementation */
/* Free ourselves and all primitives */
static void render2d_del(render2d *s) {
prim2d *th, *nx;
/* Delete all the primitives */
for (th = s->head; th != NULL; th = nx) {
nx = th->next;
th->del(th);
}
/* And then ourselves */
free(s);
}
/* Add a primitive */
static void render2d_add(render2d *s, prim2d *p) {
if (p == NULL)
error("render2d: Adding NULL primitive");
p->next = s->head;
s->head = p;
p->ix = s->ix;
s->ix++;
}
/* Set the default color */
static void render2d_set_defc(render2d *s, color2d c) {
int j;
for (j = 0; j < s->ncc; j++)
s->defc[j] = c[j];
s->defc[PRIX2D] = c[PRIX2D];
}
/* Set background color function */
static void render2d_set_bg_func(render2d *s,
void (*func)(void *cntx, color2d c, double x, double y),
void *cntx
) {
s->bgfunc = func;
s->cntx = cntx;
}
/* Compute the length of a double nul terminated string, including */
/* the nuls. */
static int zzstrlen(char *s) {
int i;
for (i = 0;; i++) {
if (s[i] == '\000' && s[i+1] == '\000')
return i+2;
}
return 0;
}
/* Decide whether a color is different enough to need anti-aliasing */
static int colordiff(render2d *s, color2d c1, color2d c2) {
int j;
for (j = 0; j < s->ncc; j++) {
if (fabs(c1[j] - c2[j]) > 1e-5)
return 1;
}
return 0;
}
#define MIXPOW 1.3
#define OSAMLS 16
/* Render and write to a TIFF or PNG file or memory buffer */
/* Return NZ on error */
static int render2d_write(
render2d *s,
char *filename, /* Name of file for file output */
int comprn, /* nz to use compression */
unsigned char **obuf, /* pointer to returned buffer for mem output. Free after use */
size_t *olen, /* pointer to returned length of data in buffer */
rend_format fmt /* Output format, tiff/png, file/memory */
) {
TIFF *wh = NULL;
uint16 samplesperpixel = 0, bitspersample = 0;
uint16 extrasamples = 0; /* Extra "alpha" samples */
uint16 extrainfo[MXCH2D]; /* Info about extra samples */
uint16 photometric = 0;
uint16 inkset = 0xffff;
char *inknames = NULL;
tdata_t *outbuf = NULL;
FILE *png_fp = NULL;
png_mem_info png_minfo = { NULL, 0, 0 };
png_structp png_ptr = NULL;
png_infop png_info = NULL;
png_uint_32 png_width = 0, png_height = 0;
int png_bit_depth = 0, png_color_type = 0;
int png_samplesperpixel = 0;
unsigned char *dithbuf16 = NULL; /* 16 bit buffer for dithering */
thscreens *screen = NULL; /* dithering object */
int foundfg; /* Found a forground object in this line */
prim2d *th, **pthp;
prim2d **xlist, **ylist; /* X, Y sorted start lists */
int xli, yli; /* Indexes into X, Y list */
int noix; /* Number in x list */
color2d *pixv0, *_pixv0; /* Storage for pixel values around current */
color2d *pixv1, *_pixv1;
sobol *so; /* Random sampler for anti-aliasing */
int i, j;
double rx0, rx1, ry0, ry1; /* Box being processed, newest sample is rx1, ry1 */
int x, y; /* Pixel x & y index */
#ifdef CCTEST_PATTERN // For testing by making screen visible
#pragma message("######### render.c TEST_PATTERN defined ! ##")
int do_test_pattern = 0;
if (getenv("ARGYLL_CCAST_TEST_PATTERN") != NULL) {
verbose(0, "Substituting ChromeCast test pattern\n");
do_test_pattern = 1;
} else {
static int verbed = 0;
if (!verbed) {
verbose(0, "Set ARGYLL_CCAST_TEST_PATTERN to enable test pattern\n");
verbed = 1;
}
}
#endif
if ((so = new_sobol(2)) == NULL)
return 1;
if (fmt == tiff_file) {
switch (s->csp) {
case w_2d: /* Video style grey */
samplesperpixel = 1;
photometric = PHOTOMETRIC_MINISBLACK;
break;
case k_2d: /* Printing style grey */
samplesperpixel = 1;
photometric = PHOTOMETRIC_MINISWHITE;
break;
case lab_2d: /* TIFF CIE L*a*b* */
samplesperpixel = 3;
photometric = PHOTOMETRIC_CIELAB;
break;
case rgb_2d: /* RGB */
samplesperpixel = 3;
photometric = PHOTOMETRIC_RGB;
break;
case cmyk_2d: /* CMYK */
samplesperpixel = 4;
photometric = PHOTOMETRIC_SEPARATED;
inkset = INKSET_CMYK;
inknames = "cyan\000magenta\000yellow\000\000";
break;
case ncol_2d: /* N color */
samplesperpixel = s->ncc;
extrasamples = 0;
photometric = PHOTOMETRIC_SEPARATED;
inkset = 0; // ~~99 should fix this
inknames = NULL; // ~~99 should fix this
break;
case ncol_a_2d: /* N color with extras in alpha */
samplesperpixel = s->ncc;
extrasamples = 0;
if (samplesperpixel > 4) {
extrasamples = samplesperpixel - 4; /* Call samples > 4 "alpha" samples */
for (j = 0; j < extrasamples; j++)
extrainfo[j] = EXTRASAMPLE_UNASSALPHA;
}
photometric = PHOTOMETRIC_SEPARATED;
inkset = 0; // ~~99 should fix this
inknames = NULL; // ~~99 should fix this
break;
default:
error("render2d: Illegal colorspace for TIFF file '%s'",filename);
}
if (samplesperpixel != s->ncc)
error("render2d: mismatched number of color components");
switch (s->dpth) {
case bpc8_2d: /* 8 bits per component */
bitspersample = 8;
break;
case bpc16_2d: /* 16 bits per component */
bitspersample = 16;
break;
default:
error("render2d: Illegal bits per component for TIFF file '%s'",filename);
}
if ((wh = TIFFOpen(filename, "w")) == NULL)
error("render2d: Can\'t create TIFF file '%s'!",filename);
TIFFSetField(wh, TIFFTAG_IMAGEWIDTH, s->pw);
TIFFSetField(wh, TIFFTAG_IMAGELENGTH, s->ph);
TIFFSetField(wh, TIFFTAG_ORIENTATION, ORIENTATION_TOPLEFT);
TIFFSetField(wh, TIFFTAG_SAMPLESPERPIXEL, samplesperpixel);
TIFFSetField(wh, TIFFTAG_BITSPERSAMPLE, bitspersample);
TIFFSetField(wh, TIFFTAG_PLANARCONFIG, PLANARCONFIG_CONTIG);
TIFFSetField(wh, TIFFTAG_PHOTOMETRIC, photometric);
if (extrasamples > 0)
TIFFSetField(wh, TIFFTAG_EXTRASAMPLES, extrasamples, extrainfo);
if (inknames != NULL) {
int inlen = zzstrlen(inknames);
TIFFSetField(wh, TIFFTAG_INKSET, inkset);
TIFFSetField(wh, TIFFTAG_INKNAMES, inlen, inknames);
}
TIFFSetField(wh, TIFFTAG_COMPRESSION, COMPRESSION_NONE);
TIFFSetField(wh, TIFFTAG_RESOLUTIONUNIT, RESUNIT_CENTIMETER);
TIFFSetField(wh, TIFFTAG_XRESOLUTION, 10.0 * s->hres); /* Cvt. to pixels/cm */
TIFFSetField(wh, TIFFTAG_YRESOLUTION, 10.0 * s->vres);
TIFFSetField(wh, TIFFTAG_XPOSITION, 0.1 * s->lm); /* Cvt. to cm */
TIFFSetField(wh, TIFFTAG_YPOSITION, 0.1 * s->tm);
if (comprn) {
TIFFSetField(wh, TIFFTAG_COMPRESSION, COMPRESSION_LZW);
}
TIFFSetField(wh, TIFFTAG_IMAGEDESCRIPTION, "Test chart created with Argyll");
/* Allocate one TIFF line buffer */
outbuf = _TIFFmalloc(TIFFScanlineSize(wh));
} else if (fmt == png_file
|| fmt == png_mem) {
char *nmode = "w";
#if !defined(O_CREAT) && !defined(_O_CREAT)
# error "Need to #include fcntl.h!"
#endif
#if defined(O_BINARY) || defined(_O_BINARY)
nmode = "wb";
#endif
png_width = s->pw;
png_height = s->ph;
switch (s->dpth) {
case bpc8_2d: /* 8 bits per component */
png_bit_depth = 8;
break;
case bpc16_2d: /* 16 bits per component */
png_bit_depth = 16;
break;
default:
error("render2d: Illegal bits per component for PNG file '%s'",filename);
}
switch (s->csp) {
case w_2d: /* Video style grey */
png_color_type = PNG_COLOR_TYPE_GRAY;
png_samplesperpixel = 1;
break;
case rgb_2d: /* RGB */
png_color_type = PNG_COLOR_TYPE_RGB;
png_samplesperpixel = 3;
break;
default:
error("render2d: Illegal colorspace for PNG file '%s'",filename);
}
if (fmt == png_file) {
if ((png_fp = fopen(filename, nmode)) == NULL)
error("render2d: Can\'t create PNG file '%s'!",filename);
}
if ((png_ptr = png_create_write_struct(PNG_LIBPNG_VER_STRING,
NULL, NULL, NULL)) == NULL)
error("render2d: png_create_write_struct failed");
if (fmt == png_file) {
png_init_io(png_ptr, png_fp);
}
if ((png_info = png_create_info_struct(png_ptr)) == NULL) {
png_destroy_write_struct(&png_ptr, &png_info);
error("render2d: png_create_info_struct failed");
}
if (setjmp(png_jmpbuf(png_ptr))) {
a1loge(g_log, 1, "%s -> %s: render2d libpng write error\n", filename);
png_destroy_info_struct(png_ptr, &png_info);
png_destroy_write_struct(&png_ptr, &png_info);
if (png_fp != NULL)
fclose(png_fp);
else {
free(png_minfo.buf);
}
return (1);
}
if (fmt == png_mem) {
png_set_write_fn(png_ptr, &png_minfo, mem_write_data, mem_flush_data);
}
png_set_IHDR(png_ptr, png_info, png_width, png_height, png_bit_depth,
png_color_type, PNG_INTERLACE_NONE, PNG_COMPRESSION_TYPE_BASE, PNG_FILTER_TYPE_BASE);
/* pix/mm to pix/meter */
png_set_pHYs(png_ptr, png_info, (png_uint_32)(1000.0 * s->hres + 0.5),
(png_uint_32)(1000.0 * s->vres + 0.5),
PNG_RESOLUTION_METER);
/* mm to um */
png_set_oFFs(png_ptr, png_info, (png_uint_32)(1000.0 * 0.1 * s->lm),
(png_uint_32)(1000.0 * s->tm), PNG_OFFSET_MICROMETER);
{
png_text txt;
txt.compression = PNG_TEXT_COMPRESSION_NONE;
txt.key = "Description";
txt.text = "Test chart created with Argyll";
txt.text_length = strlen(txt.text);
#ifdef PNG_iTXt_SUPPORTED
txt.itxt_length = 0;
txt.lang = NULL;
txt.lang_key = NULL;
#endif
png_set_text(png_ptr, png_info, &txt, 1);
}
/* Write the header */
png_write_info(png_ptr, png_info);
/* PNG expects network (BE) 16 bit values */
if (png_bit_depth == 16) {
png_uint_16 tt = 0x0001;
if (*((unsigned char *)&tt) == 0x01) /* Little endian */
png_set_swap(png_ptr);
}
/* Allocate one PNG line buffer */
if ((outbuf = malloc((png_bit_depth >> 3) * png_samplesperpixel * s->pw) ) == NULL)
error("malloc of PNG line buffer failed");
} else {
error("render2d: Illegal output format %d",fmt);
}
/* Allocate pixel value storage for aliasing detection */
if ((_pixv0 = malloc(sizeof(color2d) * (s->pw+2))) == NULL)
return 1;
pixv0 = _pixv0+1;
if ((_pixv1 = malloc(sizeof(color2d) * (s->pw+2))) == NULL)
return 1;
pixv1 = _pixv1+1;
if (s->dpth == bpc8_2d && s->dither) {
#ifdef TEST_SCREENING // For testing by making screen visible
#pragma message("######### render TEST_SCREENING defined! ##")
# define LEVELS 4
int i, olevs[LEVELS];
for (i = 0; i < LEVELS; i++) {
olevs[i] = (int)(i/(LEVELS-1.0) * 255.0 + 0.5);
}
if ((screen = new_thscreens(0, s->ncc, 1.0, 79, scie_16, 8, LEVELS, olevs,
scoo_l, OVERLAP, s->pw, NULL, NULL,
s->dither == 2 ? 1 : 0, s->quant, s->qcntx)) == NULL)
#else
if ((screen = new_thscreens(0, s->ncc, 1.0, 79, scie_16, 8, 256, NULL,
scoo_l, OVERLAP, s->pw, NULL, NULL,
s->dither == 2 ? 1 : 0, s->quant, s->qcntx)) == NULL)
#endif
return 1;
if ((dithbuf16 = malloc(s->pw * s->ncc * 2)) == NULL)
return 1;
}
/* To accelerate rendering, we keep sorted Y and X lists, */
/* and Y and X active linked lists derived from them. */
/* Typically this means that we're calling render on */
/* none, 1 or a handful of the primitives, greatly speeding up */
/* rendering. */
/* Allocate X and Y ordered lists */
if ((ylist = malloc(sizeof(prim2d *) * s->ix)) == NULL)
return 1;
if ((xlist = malloc(sizeof(prim2d *) * s->ix)) == NULL)
return 1;
/* Initialise the Y list */
for (th = s->head, i = 0; th != NULL; th = th->next, i++)
ylist[i] = th;
/* Sort the Y lists by y1 (because we rasterise top to bottom) */
#define HEAP_COMPARE(A,B) (A->y1 > B->y1)
HEAPSORT(prim2d *,ylist,s->ix)
#undef HEAP_COMPARE
yli = 0;
s->yl = NULL;
/* Render each line and write it, in raster order. */
/* We sample +- half a pixel around the pixel we want. */
/* We make the active element list encompass this region, */
/* so that we can super sample it for anti-aliasing. */
for (y = -1; y < s->ph; y++) {
foundfg = 0;
/* Convert to coordinate order */
ry0 = (((s->ph-1) - y) - 0.5) / s->vres;
ry1 = (((s->ph-1) - y) + 0.5) / s->vres;
/* Remove any objects from the y list that are now out of range */
for (pthp = &s->yl, th = s->yl; th != NULL;) {
if (ry1 < th->y0) {
*pthp = th->yl;
th = th->yl;
} else {
pthp = &th->yl;
th = th->yl;
}
}
/* Add any objects that are now within this range to our y list */
for(; yli < s->ix && ry0 < ylist[yli]->y1; yli++) {
ylist[yli]->yl = s->yl;
s->yl = ylist[yli];
}
/* Initialise the current X list */
for (th = s->yl, noix = 0; th != NULL; th = th->yl, noix++)
xlist[noix] = th;
/* Sort the X lists by x0 */
#define HEAP_COMPARE(A,B) (A->x0 < B->x0)
HEAPSORT(prim2d *,xlist,noix)
#undef HEAP_COMPARE
xli = 0;
s->xl = NULL;
for (x = -1; x < s->pw; x++) {
int j;
color2d rv;
rx0 = (x - 0.5) / s->hres;
rx1 = (x + 0.5) / s->hres;
/* Add any objects that are now within this range to our x list */
for(; xli < noix && rx1 > xlist[xli]->x0; xli++) {
xlist[xli]->xl = s->xl;
s->xl = xlist[xli];
}
/* Set the default current color */
for (j = 0; j < s->ncc; j++)
pixv1[x][j] = s->defc[j];
pixv1[x][PRIX2D] = -1; /* Make sure all primitive ovewrite the default */
/* Allow callback to set per pixel background color (or not) */
if (s->bgfunc != NULL)
s->bgfunc(s->cntx, pixv1[x], x, y);
/* Overwrite it with any primitives, */
/* and remove any that are out of range now */
for (pthp = &s->xl, th = s->xl; th != NULL;) {
if (rx0 > th->x1) {
*pthp = th->xl;
th = th->xl;
} else {
//printf("x %d y %d, rx1 %f, ry0 %f\n",x,y,rx1, ry0);
if (th->rend(th, rv, rx1, ry0) && th->ix > pixv1[x][PRIX2D]) {
/* Overwrite the current color */
/* (This is where we should handle depth and opacity */
for (j = 0; j < s->ncc; j++)
pixv1[x][j] = rv[j];
pixv1[x][PRIX2D] = rv[PRIX2D];
}
pthp = &th->xl;
th = th->xl;
}
}
/* Check if anti-aliasing is needed for previous lines previous pixel */
if (y >= 0 && x >= 0) {
color2d cc;
for (j = 0; j < s->ncc; j++)
cc[j] = pixv1[x][j];
cc[PRIX2D] = pixv1[x][PRIX2D];
/* See if anti aliasing is needed */
if (!s->noavg
&& ((pixv0[x+0][PRIX2D] != cc[PRIX2D] && colordiff(s, pixv0[x+0], cc))
|| (pixv0[x-1][PRIX2D] != cc[PRIX2D] && colordiff(s, pixv0[x-1], cc))
|| (pixv1[x-1][PRIX2D] != cc[PRIX2D] && colordiff(s, pixv1[x-1], cc)))) {
double nn = 0;
so->reset(so);
for (j = 0; j < s->ncc; j++)
cc[j] = 0.0;
cc[PRIX2D] = -1;
/* Compute the sample value by re-sampling the region */
/* around the pixel. */
for (nn = 0; nn < OSAMLS; nn++) {
double pos[2];
double rx, ry;
color2d ccc;
so->next(so, pos);
rx = (rx1 - rx0) * pos[0] + rx0;
ry = (ry1 - ry0) * pos[1] + ry0;
/* Set the default current color */
for (j = 0; j < s->ncc; j++)
ccc[j] = s->defc[j];
ccc[PRIX2D] = -1;
for (th = s->xl; th != NULL; th = th->xl) {
if (th->rend(th, rv, rx, ry) && th->ix > ccc[PRIX2D]) {
/* Overwrite the current color */
/* (This is where we should handle depth and opacity */
for (j = 0; j < s->ncc; j++)
ccc[j] = rv[j];
ccc[PRIX2D] = rv[PRIX2D];
}
}
for (j = 0; j < s->ncc; j++)
cc[j] += pow(ccc[j], MIXPOW);
if (ccc[PRIX2D] > cc[PRIX2D])
cc[PRIX2D] = ccc[PRIX2D]; /* Note if not BG */
}
for (j = 0; j < s->ncc; j++)
cc[j] = pow(cc[j]/nn, 1.0/MIXPOW);
#ifdef NEVER /* Mark aliased pixels */
cc[0] = 0.5;
cc[1] = 0.0;
cc[2] = 1.0;
#endif
} else if (s->noavg) {
/* Compute output value directly from primitive */
for (j = 0; j < s->ncc; j++)
cc[j] = cc[j];
} else {
/* Compute output value as mean of surrounding samples */
for (j = 0; j < s->ncc; j++) {
cc[j] = cc[j]
+ pixv0[x-1][j]
+ pixv0[x][j]
+ pixv1[x-1][j];
cc[j] = cc[j] * 0.25;
}
/* Note if not BG */
if (pixv0[x-1][PRIX2D] > cc[PRIX2D])
cc[PRIX2D] = pixv0[x-1][PRIX2D];
if (pixv0[x][PRIX2D] > cc[PRIX2D])
cc[PRIX2D] = pixv0[x][PRIX2D];
if (pixv1[x-1][PRIX2D] > cc[PRIX2D])
cc[PRIX2D] = pixv1[x-1][PRIX2D];
}
if (cc[PRIX2D] != -1) /* Line is no longer background */
foundfg = 1;
/* Translate from render value to output pixel value */
if (s->dpth == bpc8_2d) {
/* if dithering and dithering all or found FG in line */
if (s->dither) {
unsigned short *p = ((unsigned short *)dithbuf16) + x * s->ncc;
if (s->csp == lab_2d) {
cvt_Lab_to_CIELAB16(cc, cc);
for (j = 0; j < s->ncc; j++)
p[j] = (int)(cc[j] + 0.5);
} else {
for (j = 0; j < s->ncc; j++)
p[j] = (int)(65535.0 * cc[j] + 0.5);
}
} else {
unsigned char *p = ((unsigned char *)outbuf) + x * s->ncc;
if (s->csp == lab_2d) {
cvt_Lab_to_CIELAB8(cc, cc);
for (j = 0; j < s->ncc; j++)
p[j] = (int)(cc[j] + 0.5);
} else {
for (j = 0; j < s->ncc; j++)
p[j] = (int)(255.0 * cc[j] + 0.5);
}
}
} else {
unsigned short *p = ((unsigned short *)outbuf) + x * s->ncc;
if (s->csp == lab_2d) {
cvt_Lab_to_CIELAB16(cc, cc);
for (j = 0; j < s->ncc; j++)
p[j] = (int)(cc[j] + 0.5);
} else {
for (j = 0; j < s->ncc; j++)
p[j] = (int)(65535.0 * cc[j] + 0.5);
}
}
}
}
if (y >= 0) {
/* if dithering and dithering all or found FG in line */
if (s->dpth == bpc8_2d && s->dither) {
// If we need to screen this line
if (!s->dithfgo || foundfg) {
/* If we are dithering only the foreground colors, */
/* Subsitute the quantized un-dithered color for any */
/* pixels soley from the background */
if (s->dithfgo) {
int st, ed;
unsigned short *ip = ((unsigned short *)dithbuf16);
unsigned char *op = ((unsigned char *)outbuf);
/* Copy pixels up to first non-BG */
for (x = 0; x < s->pw; x++, ip += s->ncc, op += s->ncc) {
if (pixv1[x][PRIX2D] == -1) {
for (j = 0; j < s->ncc; j++)
op[j] = (ip[j] * 255 + 128)/65535;
} else {
st = x;
break;
}
}
if (x < s->pw) { /* If there are FG pixels */
/* Copy down to first non-BG */
ip = ((unsigned short *)dithbuf16) + (s->pw-1) * s->ncc;
op = ((unsigned char *)outbuf) + (s->pw-1) * s->ncc;
for (x = s->pw-1; x > st; x--, ip -= s->ncc, op -= s->ncc) {
if (pixv1[x][PRIX2D] == -1) {
for (j = 0; j < s->ncc; j++)
op[j] = (ip[j] * 255 + 128)/65535;
} else {
ed = x;
break;
}
}
/* Screen just the FG pixels */
ip = ((unsigned short *)dithbuf16) + st * s->ncc;
op = ((unsigned char *)outbuf) + st * s->ncc;
screen->screen(screen, ed-st+1, 1, st, y,
op, s->pw * s->ncc,
(unsigned char*)ip, s->pw * s->ncc);
}
/* Dither/screen the whole lot */
} else {
screen->screen(screen, s->pw, 1, 0, y,
(unsigned char *)outbuf, s->pw * s->ncc,
dithbuf16, s->pw * s->ncc);
}
// Don't need to screen this line - quantize from 16 bit
} else {
unsigned short *ip = ((unsigned short *)dithbuf16);
unsigned char *op = ((unsigned char *)outbuf);
for (x = 0; x < s->pw; x++, ip += s->ncc, op += s->ncc) {
for (j = 0; j < s->ncc; j++)
op[j] = (ip[j] * 255 + 128)/65535;
}
}
}
#ifdef CCTEST_PATTERN // Substitute the testing pattern
if (do_test_pattern) {
for (x = 0; x < s->pw; x++)
test_value(s, outbuf, x, y);
}
#endif
if (fmt == tiff_file) {
if (TIFFWriteScanline(wh, outbuf, y, 0) < 0)
error ("Failed to write TIFF file '%s' line %d",filename,y);
} else if (fmt == png_file
|| fmt == png_mem) {
png_bytep pixdata = (png_bytep)outbuf;
png_write_rows(png_ptr, &pixdata, 1);
}
}
/* Shuffle the pointers */
{
color2d *ttt;
ttt = pixv0;
pixv0 = pixv1;
pixv1 = ttt;
}
}
free(ylist);
free(xlist);
free(_pixv0);
free(_pixv1);
if (dithbuf16 != NULL)
free(dithbuf16);
if (screen != NULL)
screen->del(screen);
if (fmt == tiff_file) {
_TIFFfree(outbuf);
TIFFClose(wh); /* Close Output file */
} else if (fmt == png_file
|| fmt == png_mem) {
free(outbuf);
png_write_end(png_ptr, NULL);
// png_destroy_info_struct(png_ptr, &png_info);
png_destroy_write_struct(&png_ptr, &png_info);
if (fmt == png_file) {
fclose(png_fp);
} else if (fmt == png_mem) {
*obuf = png_minfo.buf;
*olen = png_minfo.off;
}
}
so->del(so);
return 0;
}
/* Constructor */
render2d *new_render2d(
double w, /* width in mm */
double h, /* height in mm */
double ma[4], /* Margines, left, right, top, bottom, NULL for zero in mm */
double hres, /* horizontal resolution in pixels/mm */
double vres, /* horizontal resolution in pixels/mm */
colort2d csp, /* Color type */
int nd, /* Number of channels if c = ncol */
depth2d dpth, /* Pixel depth */
int dither, /* Dither flag, 1 = ordered, 2 = error diffusion, | 0x8000 to dither FG only */
void (*quant)(void *qcntx, double *out, double *in), /* optional quantization func. for edith */
void *qcntx
) {
render2d *s;
if ((s = (render2d *)calloc(1, sizeof(render2d))) == NULL) {
return NULL;
}
s->fw = w;
s->fh = h;
if (ma != NULL) {
s->lm = ma[0];
s->rm = ma[1];
s->tm = ma[2];
s->bm = ma[3];
}
w = s->fw - s->lm - s->rm;
h = s->fh - s->tm - s->bm;
if (w < 0.0)
error("render2d: Left & Right margines %f %f exceed width %f",s->lm,s->rm,s->fw);
if (h < 0.0)
error("render2d: Top & Bottom margines %f %f exceed height %f",s->tm,s->bm,s->fh);
s->hres = hres;
s->vres = vres;
s->csp = csp;
s->dpth = dpth;
s->dither = 0x0fff & dither;
s->noavg = 0x4000 & dither;
s->dithfgo = 0x8000 & dither;
s->quant = quant;
s->qcntx = qcntx;
s->del = render2d_del;
s->set_defc = render2d_set_defc;
s->set_bg_func = render2d_set_bg_func;
s->add = render2d_add;
s->write = render2d_write;
/* Figure the raster size and actuall size */
s->pw = (int)(s->hres * w + 0.5);
s->ph = (int)(s->vres * h + 0.5);
s->w = s->pw * s->hres;
s->h = s->ph * s->vres;
switch (s->csp) {
case w_2d: /* Video style grey */
case k_2d: /* Printing style grey */
s->ncc = 1;
break;
case lab_2d: /* TIFF CIE L*a*b* */
s->ncc = 3;
break;
case rgb_2d: /* RGB */
s->ncc = 3;
break;
case cmyk_2d: /* CMYK */
s->ncc = 4;
break;
case ncol_2d:
case ncol_a_2d:
if (nd > MXCH2D)
error("render2d: Too many color chanels %d, max is %d",nd,MXCH2D);
s->ncc = nd;
break;
default:
error("render2d: Illegal colorspace");
}
return s;
}
/* ------------------------------------------------------------- */
/* Primitive implementations */
/* Primitive destructor for no sub-allocation */
static void prim2d_del(prim2d *s) {
free(s);
}
/* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
/* Flat shaded rectangle */
/* Render the rectangle object at location. Return nz if in primitive */
static int rect2d_rend(prim2d *ss, color2d rv, double x, double y) {
rect2d *s = (rect2d *)ss;
int j;
if (y < s->ry0 || y > s->ry1
|| x < s->rx0 || x > s->rx1)
return 0;
if (s->dpat == NULL) {
for (j = 0; j < s->ncc; j++)
rv[j] = s->c[j];
/* We have a dither pattern */
} else {
int xi = ((int)floor(x)) % s->dp_w;
int yi = ((int)floor(y)) % s->dp_h;
double *val = (*s->dpat)[xi][yi];
for (j = 0; j < s->ncc; j++)
rv[j] = val[j];
}
rv[PRIX2D] = s->ix;
return 1;
}
static void rect2d_del(prim2d *ss) {
rect2d *s = (rect2d *)ss;
if (s->dpat != NULL)
free(s->dpat);
prim2d_del(ss);
}
prim2d *new_rect2d(
render2d *ss,
double x,
double y,
double w,
double h,
color2d c
) {
int j;
rect2d *s;
if ((s = (rect2d *)calloc(1, sizeof(rect2d))) == NULL) {
return NULL;
}
/* Account for margines */
x -= ss->lm;
y -= ss->bm;
s->ncc = ss->ncc;
s->del = rect2d_del;
s->rend = rect2d_rend;
/* Set bounding box */
s->x0 = x;
s->y0 = y;
s->x1 = x + w;
s->y1 = y + h;
/* Set rectangle extent */
s->rx0 = s->x0;
s->ry0 = s->y0;
s->rx1 = s->x1;
s->ry1 = s->y1;
for (j = 0; j < s->ncc; j++)
s->c[j] = c[j];
return (prim2d *)s;
}
/* Allocate pat using malloc(sizeof(double) * MXPATSIZE * MXPATSIZE * TOTC2D) */
void set_rect2d_dpat(rect2d *s, double (*pat)[MXPATSIZE][MXPATSIZE][TOTC2D], int w, int h) {
s->dpat = pat;
s->dp_w = w;
s->dp_h = h;
}
/* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
/* Vertex shaded rectangle */
/* Render the rectangle object at location. Return nz if in primitive */
static int rectvs2d_rend(prim2d *ss, color2d rv, double x, double y) {
rectvs2d *s = (rectvs2d *)ss;
double bx, by, b[4];
int i, j;
if (y < s->ry0 || y > s->ry1
|| x < s->rx0 || x > s->rx1)
return 0;
/* Compute linear blend */
bx = (x - s->x0)/(s->x1 - s->x0);
by = (y - s->y0)/(s->y1 - s->y0);
if (s->x_blend == 1) {
bx = bx * bx * (3.0 - 2.0 * bx); /* Cubic spline */
} else if (s->x_blend == 2) {
bx = bx - 0.5; /* Sine */
bx *= 3.141592654;
bx = sin(bx);
bx = 0.5 + (0.5 * bx);
}
if (s->y_blend == 1) {
by = by * by * (3.0 - 2.0 * by); /* Spline */
} else if (s->y_blend == 2) {
double ty;
ty = by * by * (3.0 - 2.0 * by); /* spline at y == 1, linear at y == 0 */
by = by * ty + (1.0 - by) * by;
} else if (s->y_blend == 3) {
double ty;
ty = by * by * (3.0 - 2.0 * by); /* linear at y == 1, spline at y == 0 */
by = (1.0 - by) * ty + by * by;
}
/* Compute 2d blend */
b[0] = (1.0 - by) * (1.0 - bx);
b[1] = (1.0 - by) * bx;
b[2] = by * (1.0 - bx);
b[3] = by * bx;
/* Compute the resulting color */
for (j = 0; j < s->ncc; j++) {
rv[j] = 0.0;
for (i = 0; i < 4; i++)
rv[j] += b[i] * s->c[i][j];
rv[j] = rv[j];
}
rv[PRIX2D] = s->ix;
return 1;
}
prim2d *new_rectvs2d(
render2d *ss,
double x,
double y,
double w,
double h,
color2d c[4]
) {
int i, j;
rectvs2d *s;
if ((s = (rectvs2d *)calloc(1, sizeof(rectvs2d))) == NULL) {
return NULL;
}
/* Account for margines */
x -= ss->lm;
y -= ss->bm;
s->ncc = ss->ncc;
s->del = prim2d_del;
s->rend = rectvs2d_rend;
/* Set bounding box */
s->x0 = x;
s->y0 = y;
s->x1 = x + w;
s->y1 = y + h;
/* Set rectangle extent */
s->rx0 = s->x0;
s->ry0 = s->y0;
s->rx1 = s->x1;
s->ry1 = s->y1;
for (i = 0; i < 4; i++)
for (j = 0; j < s->ncc; j++)
s->c[i][j] = c[i][j];
return (prim2d *)s;
}
/* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
/* Vertex shaded triangle */
/* Render the triangle object at location. Return nz if in primitive */
static int trivs2d_rend(prim2d *ss, color2d rv, double x, double y) {
trivs2d *s = (trivs2d *)ss;
double b[3];
int i, j;
/* Compute the baricentric values for the input point, */
/* and reject this point if it is outside the triangle */
for (i = 0; i < 3; i++) {
b[i] = s->be[i][0] * x + s->be[i][1] * y + s->be[i][2];
if (b[i] < 0.0 || b[i] > 1.0)
return 0;
}
#ifdef NEVER /* Experiment with smoothing hue blending */
{
double ss = b[1] + b[2];
if (ss > 1e-6) {
b[1] /= ss;
b[2] /= ss;
// b[1] = b[1] * b[1] * (3.0 - 2.0 * b[1]);
b[1] = b[1] - 0.5;
b[1] *= 3.141592654;
b[1] = sin(b[1]);
b[1] = 0.5 + (0.5 * b[1]);
b[2] = 1.0 - b[1];
b[1] *= ss;
b[2] *= ss;
}
}
#endif
/* Compute the resulting color */
for (j = 0; j < s->ncc; j++) {
rv[j] = 0.0;
for (i = 0; i < 3; i++)
rv[j] += b[i] * s->c[i][j];
}
rv[PRIX2D] = s->ix;
return 1;
}
static int inverse3x3(double out[3][3], double in[3][3]);
prim2d *new_trivs2d(
render2d *ss,
double v[3][2], /* Vertex locations */
color2d c[3] /* Corresponding colors */
) {
int i, j;
trivs2d *s;
double vv[3][2]; /* Margin adjusted vertex locations */
double tt[3][3];
if ((s = (trivs2d *)calloc(1, sizeof(trivs2d))) == NULL) {
return NULL;
}
/* Account for margines */
for (i = 0; i < 3; i++) {
vv[i][0] = v[i][0] - ss->lm;
vv[i][1] = v[i][1] - ss->bm;
}
s->ncc = ss->ncc;
s->del = prim2d_del;
s->rend = trivs2d_rend;
/* Set the bounding box values */
s->x0 = s->y0 = 1e38;
s->x1 = s->y1 = -1e38;
for (i = 0; i < 3; i++) {
if (vv[i][0] < s->x0)
s->x0 = vv[i][0];
if (vv[i][1] < s->y0)
s->y0 = vv[i][1];
if (vv[i][0] > s->x1)
s->x1 = vv[i][0];
if (vv[i][1] > s->y1)
s->y1 = vv[i][1];
}
/* Compute baricentric equations */
for (i = 0; i < 3; i++) {
tt[0][i] = vv[i][0];
tt[1][i] = vv[i][1];
tt[2][i] = 1.0;
}
if (inverse3x3(s->be, tt))
error("trivs2d: Matrix inversion failed");
/* Copy vertex colors */
for (i = 0; i < 3; i++) {
for (j = 0; j < s->ncc; j++)
s->c[i][j] = c[i][j];
}
return (prim2d *)s;
}
/* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
/* A single Rounded end line. Mainly for supporting Hershey text output. */
/* Render the line object at this location */
static int line2d_rend(prim2d *ss, color2d rv, double x, double y) {
line2d *s = (line2d *)ss;
double rr, px, py;
int j;
px = x - s->lx0; /* Input relative to x0 y0 */
py = y - s->ly0;
/* It's actually a point */
if (s->t) {
rr = (px * px) + (py * py) ;
if (s->cap != 1)
return 0;
if (rr > s->ww)
return 0;
} else {
/* Locate point on line between 0 and 1 closest to input point */
double t, nx, ny;
/* Closest point on line parametric value */
t = (s->vx * px + s->vy * py)/(s->vx * s->vx + s->vy * s->vy);
if (t < 0.0) { /* 0 side end cap */
if (s->cap != 1)
return 0;
rr = (px * px) + (py * py) ;
if (rr > s->ww)
return 0; /* 1 side end cap */
} else if (t > 1.0) {
if (s->cap != 1)
return 0;
rr = (x - s->lx1) * (x - s->lx1)
+ (y - s->ly1) * (y - s->ly1);
if (rr > s->ww)
return 0;
} else { /* Within rectangular part of line */
double nx, ny;
nx = t * s->vx; /* Closest point on line relative to x0 y0 */
ny = t * s->vy;
rr = (px - nx) * (px - nx) + (py - ny) * (py - ny);
if (rr > s->ww)
return 0;
}
}
for (j = 0; j < s->ncc; j++)
rv[j] = s->c[j];
rv[PRIX2D] = s->ix;
return 1;
}
prim2d *new_line2d(
render2d *ss,
double x0, double y0, double x1, double y1,
double w,
int cap, /* 0 = butt, 1 = round, 2 = square */
color2d c
) {
int i, j;
line2d *s;
double tt[3][3];
if ((s = (line2d *)calloc(1, sizeof(line2d))) == NULL) {
return NULL;
}
/* Account for margines */
x0 -= ss->lm;
y0 -= ss->bm;
x1 -= ss->lm;
y1 -= ss->bm;
s->ncc = ss->ncc;
s->del = prim2d_del;
s->rend = line2d_rend;
w *= 0.5; /* half width */
for (j = 0; j < s->ncc; j++)
s->c[j] = c[j];
/* Compute the line vector relative to x0 y0 */
s->vx = x1 - x0;
s->vy = y1 - y0;
/* For square, extend the line by w/2 and render as butt */
if (cap == 2) {
double nvx, nvy;
double ll = sqrt(s->vx * s->vx + s->vy * s->vy);
/* Compute normalized vector */
if (ll < 1e-6) {
nvx = 1.0;
nvy = 0.0;
} else {
nvx = s->vx/ll;
nvy = s->vy/ll;
}
x0 -= w * nvx;
y0 -= w * nvy;
x1 += w * nvx;
y1 += w * nvy;
s->vx = x1 - x0;
s->vy = y1 - y0;
}
s->lx0 = x0;
s->ly0 = y0;
s->lx1 = x1;
s->ly1 = y1;
s->ww = w * w;
s->cap = cap;
/* Set the bouding box values */
if (x1 > x0) {
s->x1 = x1 + w;
s->x0 = x0 - w;
} else {
s->x1 = x0 + w;
s->x0 = x1 - w;
}
if (y1 > y0) {
s->y1 = y1 + w;
s->y0 = y0 - w;
} else {
s->y1 = y0 + w;
s->y0 = y1 - w;
}
/* Figure out if the line is degenerate */
if (fabs(s->vx) < 1e-6 && fabs(s->vy) < 1e-6) {
s->t = 1;
}
return (prim2d *)s;
}
/* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
/* Primitive Macros. These shapes are composed of */
/* underlying primitives */
/* add a dashed line */
void add_dashed_line2d(
struct _render2d *s,
double x0, double y0,
double x1, double y1,
double w,
double on, double off,
int cap,
color2d c) {
double ll, rl; /* Line length, rounded length */
double vx, vy;
double nvx, nvy; /* Normalized vector */
vx = x1 - x0;
vy = y1 - y0;
ll = sqrt(vx * vx + vy * vy);
if (ll < 1e-6) {
s->add(s, new_line2d(s, x0, y0, x1, y1, w, cap, c));
return ;
}
nvx = vx/ll;
nvy = vy/ll;
for (;ll > 0.0;) {
rl = ll;
if (rl > on) {
rl = on;
}
x1 = x0 + rl * nvx;
y1 = y0 + rl * nvy;
s->add(s, new_line2d(s, x0, y0, x1, y1, w, cap, c));
x0 = x1;
y0 = y1;
ll -= rl;
if (ll <= 0.0)
return;
rl = ll;
if (rl > off) {
rl = off;
}
x0 += rl * nvx;
y0 += rl * nvy;
ll -= rl;
}
}
/* Text */
struct _hyfont {
char *name;
double sx, sy; /* X and Y scaling */
double sxi; /* X spacing extra scale */
double sw; /* Line width scale */
double ho; /* horizontal alignment offset */
double vo; /* vertical alignment offset */
char *enc[128]; /* Hershey encoded font */
}; typedef struct _hyfont hyfont;
hyfont fonts[];
double h2dbl(unsigned char c) { return (double)(c-'R'); }
/* Add a text character at the given location using lines */
static void add_char_imp(
render2d *s,
double *xinc, /* Add increment to next character */
double *yinc,
font2d fo, /* Font to use */
char ch, /* Character code to be printed */
double x, double y, /* Location of bottom left of normal orientation text */
double h, /* Height of text in normal orientation */
int or, /* Orintation, 0 = right, 1 = down, 2 = left, 3 = right */
color2d c, /* Color of text */
int add /* NZ if character is to be added */
) {
hyfont *fp = &fonts[fo];
char *cp = fp->enc[ch % 128];
double lm, rm;
double x0, y0, x1 = 0.0, y1 = 0.0;
int got1 = 0;
double w = fp->sw * h;
double tx, ty;
double mat[2][2]; /* Transformation matrix */
if (or == 0) {
mat[0][0] = 1.0;
mat[0][1] = 0.0;
mat[1][0] = 0.0;
mat[1][1] = 1.0;
} else if (or == 1) {
mat[0][0] = 0.0;
mat[0][1] = 1.0;
mat[1][0] = -1.0;
mat[1][1] = 0.0;
} else if (or == 2) {
mat[0][0] = -1.0;
mat[0][1] = 0.0;
mat[1][0] = 0.0;
mat[1][1] = -1.0;
} else {
mat[0][0] = 0.0;
mat[0][1] = -1.0;
mat[1][0] = 1.0;
mat[1][1] = 0.0;
}
if (cp[0] == '\000' || cp[1] == '\000') {
if (xinc != NULL && yinc != NULL) {
*xinc = 0.0;
*yinc = 0.0;
}
return;
}
lm = h2dbl(cp[0]);
rm = h2dbl(cp[1]);
cp += 2;
if (add) {
for (;; cp += 2) {
if (cp[0] == '\000' || cp[1] == '\000') {
break;
}
/* End of polyline */
if (cp[0] == ' ' && cp[1] == 'R' ) {
got1 = 0;
} else {
x0 = x1;
y0 = y1;
tx = h * fp->sx * (h2dbl(cp[0]) -lm + fp->ho);
ty = -h * fp->sy * (h2dbl(cp[1]) -fp->vo);
x1 = x + mat[0][0] * tx + mat[0][1] * ty;
y1 = y + mat[1][0] * tx + mat[1][1] * ty;
if (got1) {
s->add(s, new_line2d(s, x0, y0, x1, y1, w, 1, c));
}
got1 = 1;
}
}
}
tx = fp->sxi * h * fp->sx * (rm - lm);
ty = 0.0;
if (xinc != NULL)
*xinc += mat[0][0] * tx + mat[0][1] * ty;
if (yinc != NULL)
*yinc += mat[1][0] * tx + mat[1][1] * ty;
}
/* Add a text character at the given location using lines */
void add_char2d(
render2d *s,
double *xinc, /* Add increment to next character */
double *yinc,
font2d fo, /* Font to use */
char ch, /* Character code to be printed */
double x, double y, /* Location of bottom left of normal orientation text */
double h, /* Height of text in normal orientation */
int or, /* Orintation, 0 = right, 1 = down, 2 = left, 3 = right */
color2d c /* Color of text */
) {
add_char_imp(s, xinc, yinc, fo, ch, x, y, h, or, c, 1);
}
/* Return the total width of the character without adding it */
void meas_char2d(
render2d *s,
double *xinc, /* Add increment to next character */
double *yinc,
font2d fo, /* Font to use */
char ch, /* Character code to be printed */
double h, /* Height of text in normal orientation */
int or /* Orintation, 0 = right, 1 = down, 2 = left, 3 = right */
) {
color2d c;
add_char_imp(s, xinc, yinc, fo, ch, 0.0, 0.0, h, or, c, 0);
}
/* Add a string from the given location using lines. */
/* Return the total width of the string */
void add_string2d(
render2d *s,
double *xinc, /* Add increment to next character */
double *yinc,
font2d fo, /* Font to use */
char *string, /* Character code to be printed */
double x, double y, /* Location of bottom left of normal orientation text */
double h, /* Height of text in normal orientation */
int or, /* Orintation, 0 = right, 1 = down, 2 = left, 3 = right */
color2d c /* Color of text */
) {
char *ch;
double xoff = 0.0, yoff = 0.0;
for (ch = string; *ch != '\000'; ch++) {
add_char2d(s, &xoff, &yoff, fo, *ch, x + xoff, y + yoff, h, or, c);
}
if (xinc != NULL)
*xinc = xoff;
if (yinc != NULL)
*yinc = yoff;
}
/* Return the total width of the string without adding it */
void meas_string2d(
struct _render2d *s,
double *xinc, /* Add increment to next character */
double *yinc,
font2d fo, /* Font to use */
char *string, /* Character code to be printed */
double h, /* Height of text in normal orientation */
int or /* Orintation, 0 = right, 1 = down, 2 = left, 3 = right */
) {
char *ch;
double xoff = 0.0, yoff = 0.0;
for (ch = string; *ch != '\000'; ch++) {
meas_char2d(s, &xoff, &yoff, fo, *ch, h, or);
}
if (xinc != NULL)
*xinc = xoff;
if (yinc != NULL)
*yinc = yoff;
}
/* ==================================================== */
/* Misc. support functions. */
/*
Matrix Inversion
by Richard Carling
from "Graphics Gems", Academic Press, 1990
*/
/*
* adjoint( original_matrix, inverse_matrix )
*
* calculate the adjoint of a 3x3 matrix
*
* Let a denote the minor determinant of matrix A obtained by
* ij
*
* deleting the ith row and jth column from A.
*
* i+j
* Let b = (-1) a
* ij ji
*
* The matrix B = (b ) is the adjoint of A
* ij
*/
#define det2x2(a, b, c, d) (a * d - b * c)
static void adjoint(
double out[3][3],
double in[3][3]
) {
double a1, a2, a3, b1, b2, b3, c1, c2, c3;
/* assign to individual variable names to aid */
/* selecting correct values */
a1 = in[0][0]; b1 = in[0][1]; c1 = in[0][2];
a2 = in[1][0]; b2 = in[1][1]; c2 = in[1][2];
a3 = in[2][0]; b3 = in[2][1]; c3 = in[2][2];
/* row column labeling reversed since we transpose rows & columns */
out[0][0] = det2x2(b2, b3, c2, c3);
out[1][0] = - det2x2(a2, a3, c2, c3);
out[2][0] = det2x2(a2, a3, b2, b3);
out[0][1] = - det2x2(b1, b3, c1, c3);
out[1][1] = det2x2(a1, a3, c1, c3);
out[2][1] = - det2x2(a1, a3, b1, b3);
out[0][2] = det2x2(b1, b2, c1, c2);
out[1][2] = - det2x2(a1, a2, c1, c2);
out[2][2] = det2x2(a1, a2, b1, b2);
}
/*
* double = det3x3( a1, a2, a3, b1, b2, b3, c1, c2, c3 )
*
* calculate the determinant of a 3x3 matrix
* in the form
*
* | a1, b1, c1 |
* | a2, b2, c2 |
* | a3, b3, c3 |
*/
static double det3x3(double in[3][3]) {
double a1, a2, a3, b1, b2, b3, c1, c2, c3;
double ans;
a1 = in[0][0]; b1 = in[0][1]; c1 = in[0][2];
a2 = in[1][0]; b2 = in[1][1]; c2 = in[1][2];
a3 = in[2][0]; b3 = in[2][1]; c3 = in[2][2];
ans = a1 * det2x2(b2, b3, c2, c3)
- b1 * det2x2(a2, a3, c2, c3)
+ c1 * det2x2(a2, a3, b2, b3);
return ans;
}
#define SMALL_NUMBER 1.e-8
/*
* inverse( original_matrix, inverse_matrix )
*
* calculate the inverse of a 4x4 matrix
*
* -1
* A = ___1__ adjoint A
* det A
*/
/* Return non-zero if not invertable */
static int inverse3x3(
double out[3][3],
double in[3][3]
) {
int i, j;
double det;
/* calculate the 3x3 determinant
* if the determinant is zero,
* then the inverse matrix is not unique.
*/
det = det3x3(in);
if ( fabs(det) < SMALL_NUMBER)
return 1;
/* calculate the adjoint matrix */
adjoint(out, in);
/* scale the adjoint matrix to get the inverse */
for (i = 0; i < 3; i++)
for(j = 0; j < 3; j++)
out[i][j] /= det;
return 0;
}
/* ==================================================== */
// Hershey.C
// extracted from the hershey font
//
// Charles Schwieters 6/14/99
// Various tweaks and updates by John Stone
//
// font info:
//
//Peter Holzmann, Octopus Enterprises
//USPS: 19611 La Mar Court, Cupertino, CA 95014
//UUCP: {hplabs!hpdsd,pyramid}!octopus!pete
//Phone: 408/996-7746
//
//This distribution is made possible through the collective encouragement
//of the Usenet Font Consortium, a mailing list that sprang to life to get
//this accomplished and that will now most likely disappear into the mists
//of time... Thanks are especially due to Jim Hurt, who provided the packed
//font data for the distribution, along with a lot of other help.
//
//This file describes the Hershey Fonts in general, along with a description of
//the other files in this distribution and a simple re-distribution restriction.
//
//USE RESTRICTION:
// This distribution of the Hershey Fonts may be used by anyone for
// any purpose, commercial or otherwise, providing that:
// 1. The following acknowledgements must be distributed with
// the font data:
// - The Hershey Fonts were originally created by Dr.
// A. V. Hershey while working at the U. S.
// National Bureau of Standards.
// - The format of the Font data in this distribution
// was originally created by
// James Hurt
// Cognition, Inc.
// 900 Technology Park Drive
// Billerica, MA 01821
// (mit-eddie!ci-dandelion!hurt)
// 2. The font data in this distribution may be converted into
// any other format *EXCEPT* the format distributed by
// the U.S. NTIS (which organization holds the rights
// to the distribution and use of the font data in that
// particular format). Not that anybody would really
// *want* to use their format... each point is described
// in eight bytes as "xxx yyy:", where xxx and yyy are
// the coordinate values as ASCII numbers.
//
/*
* The Hershey romans font in ascii order (first 32 places held by space)
* NOTE: This font has been modified to yield fixed-width numeric
* characters. This makes it possible to produce justified numeric
* text that correctly lines up in columns.
* The font was specifically changed for:
* ' ' (ascii 32), '+' (ascii 43), '-' (ascii 45), and '.' (ascii 46)
*/
hyfont fonts[] = {
{
"Rowman Single",
0.040, /* X scale */
0.040, /* Y scale */
0.95, /* X spacing extra scale */
0.08, /* Line width scale */
1.1, /* horizontal offset */
11.0, /* vertical offset */
{
"JZ",
"JZ",
"JZ",
"JZ",
"JZ",
"JZ",
"JZ",
"JZ",
"JZ",
"JZ",
"JZ",
"JZ",
"JZ",
"JZ",
"JZ",
"J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QMONMPLSLUMXOZQ[T[VZXX",
"I[LSXSXQWOVNTMQMONMPLSLUMXOZQ[T[VZXX",
"MYWFUFSGRJR[ ROMVM",
"I\\XMX]W`VaTbQbOa RXPVNTMQMONMPLSLUMXOZQ[T[VZXX",
"I\\MFM[ RMQPNRMUMWNXQX[",
"NVQFRGSFREQF RRMR[",
"MWRFSGTFSERF RSMS^RaPbNb",
"IZMFM[ RWMMW RQSX[",
"NVRFR[",
"CaGMG[ RGQJNLMOMQNRQR[ RRQUNWMZM\\N]Q][",
"I\\MMM[ RMQPNRMUMWNXQX[",
"I\\QMONMPLSLUMXOZQ[T[VZXXYUYSXPVNTMQM",
"H[LMLb RLPNNPMSMUNWPXSXUWXUZS[P[NZLX",
"I\\XMXb RXPVNTMQMONMPLSLUMXOZQ[T[VZXX",
"KXOMO[ ROSPPRNTMWM",
"J[XPWNTMQMNNMPNRPSUTWUXWXXWZT[Q[NZMX",
"MYRFRWSZU[W[ ROMVM",
"I\\MMMWNZP[S[UZXW RXMX[",
"JZLMR[ RXMR[",
"G]JMN[ RRMN[ RRMV[ RZMV[",
"J[MMX[ RXMM[",
"JZLMR[ RXMR[P_NaLbKb",
"J[XMM[ RMMXM RM[X[",
"KYTBRCQDPFPHQJRKSMSOQQ RRCQEQGRISJTLTNSPORSTTVTXSZR[Q]Q_Ra RQSSU",
"NVRBRb",
"KYPBRCSDTFTHSJRKQMQOSQ RRCSESGRIQJPLPNQPURQTPVPXQZR[S]S_Ra RSSQU",
"F^IUISJPLONOPPTSVTXTZS[Q RISJQLPNPPQTTVUXUZT[Q[O",
"JZJFJ[K[KFLFL[M[MFNFN[O[OFPFP[Q[QFRFR[S[SFTFT[U[UFVFV[W[WFXFX[Y[YFZFZ["
}
},
{
"Rowman Double",
0.040, /* X scale */
0.040, /* Y scale */
0.95, /* X spacing extra scale */
0.08, /* Line width scale */
0.0, /* horizontal offset */
11.0, /* vertical offset */
{
"JZ",
"JZ",
"JZ",
"JZ",
"JZ",
"JZ",
"J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LMMMRY RXMWMRY RXMR[",
"F^IMN[ RIMJMNX RRMNX RRPN[ RRPV[ RRMVX R[MZMVX R[MV[",
"I[LMW[X[ RLMMMX[ RXMWML[ RXMM[L[",
"JZLMR[ RLMMMRY RXMWMRYNb RXMR[ObNb",
"I[VNL[ RXMNZ RLMXM RLMLNVN RNZXZX[ RL[X[",
"KYTBRCQDPFPHQJRKSMSOQQ RRCQEQGRISJTLTNSPORSTTVTXSZR[Q]Q_Ra RQSSUSWRYQZP\\P^Q`RaTb",
"NVRBRb",
"KYPBRCSDTFTHSJRKQMQOSQ RRCSESGRIQJPLPNQPURQTPVPXQZR[S]S_Ra RSSQUQWRYSZT\\T^S`RaPb",
"F^IUISJPLONOPPTSVTXTZS[Q RISJQLPNPPQTTVUXUZT[Q[O",
"KYQFOGNINKOMQNSNUMVKVIUGSFQF RQFNIOMSNVKUGQF RSFOGNKQNUMVISF"
}
},
{
"Rowman Triple",
0.040, /* X scale */
0.040, /* Y scale */
0.96, /* X spacing extra scale */
0.08, /* Line width scale */
0.3, /* horizontal offset */
11.0, /* vertical offset */
{
"JZ",
"JZ",
"JZ",
"JZ",
"JZ",
"JZ",
"JZ",
"JZ",
"JZ",
"JZ",
"JZ",
"JZ",
"JZ",
"JZ",
"JZ",
"JZ",
"JZ",
"JZ",
"JZ",
"JZ",
"JZ",
"JZ",
"JZ",
"JZ",
"JZ",
"JZ",
"JZ",
"JZ",
"JZ",
"JZ",
"JZ",
"JZ",
"JZ",
"MXRFQGQIRQ RRFRTST RRFSFST RSFTGTISQ RRXQYQZR[S[TZTYSXRX RRYRZSZSYRY",
"I[NFMGMM RNGMM RNFOGMM RWFVGVM RWGVM RWFXGVM",
"H]SFLb RYFRb RLQZQ RKWYW",
"H\\PBP_ RTBT_ RXKXJWJWLYLYJXHWGTFPFMGKIKLLNOPURWSXUXXWZ RLLMNOOUQWRXT RMGLILKMMONUPXRYTYWXYWZT[P[MZLYKWKUMUMWLWLV",
"F^[FI[ RNFPHPJOLMMK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VXYWZU[Q[OZNYMWM[NY",
"KZPHPVQYRZT[V[XZYX RQHQWRY RPHRFRWSZT[ RMMVM",
"G^LMLVMYNZP[S[UZVYWW RMNMWNY RIMNMNWOZP[ RWMW[\\[ RXNXZ RTMYMY[ RJMLN RKMLO RYYZ[ RYZ[[",
"I[LMR[ RMMRY RNMSY RXNSYR[ RJMQM RTMZM RKMNO RPMNN RVMXN RYMXN",
"F^JMN[ RKMNX RLMOX RRMOXN[ RRMV[ RSMVX RRMTMWX RZNWXV[ RGMOM RWM]M RHMKN RNMLN RXMZN R\\MZN",
"H\\LMV[ RMMW[ RNMX[ RWNMZ RJMQM RTMZM RJ[P[ RS[Z[ RKMMN RPMNN RUMWN RYMWN RMZK[ RMZO[ RVZT[ RWZY[",
"H[LMR[ RMMRY RNMSY RXNSYP_NaLbJbIaI_K_KaJaJ` RJMQM RTMZM RKMNO RPMNN RVMXN RYMXN",
"I[VML[ RWMM[ RXMN[ RXMLMLQ RL[X[XW RMMLQ RNMLP ROMLO RQMLN RS[XZ RU[XY RV[XX RW[XW",
"KYTBRCQDPFPHQJRKSMSOQQ RRCQEQGRISJTLTNSPORSTTVTXSZR[Q]Q_Ra RQSSUSWRYQZP\\P^Q`RaTb",
"NVRBRb",
"KYPBRCSDTFTHSJRKQMQOSQ RRCSESGRIQJPLPNQPURQTPVPXQZR[S]S_Ra RSSQUQWRYSZT\\T^S`RaPb",
"F^IUISJPLONOPPTSVTXTZS[Q RISJQLPNPPQTTVUXUZT[Q[O",
"KYQFOGNINKOMQNSNUMVKVIUGSFQF RQFNIOMSNVKUGQF RSFOGNKQNUMVISF"
}
},
{
"Times Roman",
0.041, /* X scale */
0.041, /* Y scale */
0.95, /* X spacing extra scale */
0.055, /* Line width scale */
0.0, /* horizontal offset */
10.5, /* vertical offset */
{
"JZ",
"JZ",
"JZ",
"JZ",
"JZ",
"JZ",
"JZ",
"JZ",
"JZ",
"JZ",
"JZ",
"JZ",
"JZ",
"JZ",
"JZ",
"JZ",
"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
0.041, /* Y scale */
0.95, /* X spacing extra scale */
0.055, /* Line width scale */
0.0, /* horizontal offset */
10.5, /* vertical offset */
{
"JZ",
"JZ",
"JZ",
"JZ",
"JZ",
"JZ",
"JZ",
"JZ",
"JZ",
"JZ",
"JZ",
"JZ",
"JZ",
"JZ",
"JZ",
"JZ",
"JZ",
"JZ",
"JZ",
"JZ",
"JZ",
"JZ",
"JZ",
"JZ",
"JZ",
"JZ",
"JZ",
"JZ",
"JZ",
"JZ",
"JZ",
"JZ",
"JZ",
"MXRFQGQIRQ RRFRTST RRFSFST RSFTGTISQ RRXQYQZR[S[TZTYSXRX RRYRZSZSYRY",
"I[NFMGMM RNGMM RNFOGMM RWFVGVM RWGVM RWFXGVM",
"H]SBLb RYBRb RLOZO RKUYU",
"H\\PBP_ RTBT_ RXKXJWJWLYLYJXHWGTFPFMGKIKLLNOPURWSXUXXWZ RLLMNOOUQWRXT RMGLILKMMONUPXRYTYWXYWZT[P[MZLYKWKUMUMWLWLV",
"F^[FI[ RNFPHPJOLMMKMIKIIJGLFNFPGSHVHYG[F RWTUUTWTYV[X[ZZ[X[VYTWT",
"E_[O[NZNZP\\P\\N[MZMYNXPVUTXRZP[L[JZIXIUJSPORMSKSIRGPFNGMIMLNOPRTWWZY[[[\\Y\\X RKZJXJUKSLR RRMSI RSKRG RNGMK RNNPQTVWYYZ RN[LZKXKULSPO RMINMQQUVXYZZ[Z\\Y",
"NWSFRGRM RSGRM RSFTGRM",
"KYUBSDQGOKNPNTOYQ]S`Ub RQHPKOOOUPYQ\\ RSDRFQIPOPUQ[R^S`",
"KYOBQDSGUKVPVTUYS]Q`Ob RSHTKUOUUTYS\\ RQDRFSITOTUS[R^Q`",
"JZRFQGSQRR RRFRR RRFSGQQRR RMINIVOWO RMIWO RMIMJWNWO RWIVINOMO RWIMO RWIWJMNMO",
"F_RIRZSZ RRISISZ RJQ[Q[R RJQJR[R",
"MXTZS[R[QZQYRXSXTYT\\S^Q_ RRYRZSZSYRY RS[T\\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RKSMSOQQ RRCQEQGRISJTLTNSPORSTTVTXSZR[Q]Q_Ra RQSSUSWRYQZP\\P^Q`RaTb",
"NVRBRb",
"KYPBRCSDTFTHSJRKQMQOSQ RRCSESGRIQJPLPNQPURQTPVPXQZR[S]S_Ra RSSQUQWRYSZT\\T^S`RaPb",
"F^IUISJPLONOPPTSVTXTZS[Q RISJQLPNPPQTTVUXUZT[Q[O",
"JZJFJ[K[KFLFL[M[MFNFN[O[OFPFP[Q[QFRFR[S[SFTFT[U[UFVFV[W[WFXFX[Y[YFZFZ["
}
},
{
"Futura Light",
0.041, /* X scale */
0.041, /* Y scale */
0.95, /* X spacing extra scale */
0.08, /* Line width scale */
0.9, /* horizontal offset */
10.5, /* vertical offset */
{
"JZ",
"JZ",
"JZ",
"JZ",
"JZ",
"JZ",
"JZ",
"JZ",
"JZ",
"JZ",
"JZ",
"JZ",
"JZ",
"JZ",
"JZ",
"JZ",
"JZ",
"JZ",
"JZ",
"JZ",
"JZ",
"JZ",
"JZ",
"JZ",
"JZ",
"JZ",
"JZ",
"JZ",
"JZ",
"JZ",
"JZ",
"JZ",
"JZ",
"MWRFRT RRYQZR[SZRY",
"JZNFNM RVFVM",
"H]SBLb RYBRb RLOZO RKUYU",
"H\\PBP_ RTBT_ RYIWGTFPFMGKIKKLMMNOOUQWRXSYUYXWZT[P[MZKX",
"F^[FI[ RNFPHPJOLMMKMIKIIJGLFNFPGSHVHYG[F RWTUUTWTYV[X[ZZ[X[VYTWT",
"E_\\O\\N[MZMYNXPVUTXRZP[L[JZIYHWHUISJRQNRMSKSIRGPFNGMIMKNNPQUXWZY[[[\\Z\\Y",
"MWRHQGRFSGSIRKQL",
"KYVBTDRGPKOPOTPYR]T`Vb",
"KYNBPDRGTKUPUTTYR]P`Nb",
"JZRLRX RMOWU RWOMU",
"E_RIR[ RIR[R",
"NVSWRXQWRVSWSYQ[",
"E_IR[R",
"NVRVQWRXSWRV",
"G][BIb",
"H\\QFNGLJKOKRLWNZQ[S[VZX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MVM",
"I\\MMMWNZP[S[UZXW RXMX[",
"JZLMR[ RXMR[",
"G]JMN[ RRMN[ RRMV[ RZMV[",
"J[MMX[ RXMM[",
"JZLMR[ RXMR[P_NaLbKb",
"J[XMM[ RMMXM RM[X[",
"KYTBRCQDPFPHQJRKSMSOQQ RRCQEQGRISJTLTNSPORSTTVTXSZR[Q]Q_Ra RQSSUSWRYQZP\\P^Q`RaTb",
"NVRBRb",
"KYPBRCSDTFTHSJRKQMQOSQ RRCSESGRIQJPLPNQPURQTPVPXQZR[S]S_Ra RSSQUQWRYSZT\\T^S`RaPb",
"F^IUISJPLONOPPTSVTXTZS[Q RISJQLPNPPQTTVUXUZT[Q[O",
"JZJFJ[K[KFLFL[M[MFNFN[O[OFPFP[Q[QFRFR[S[SFTFT[U[UFVFV[W[WFXFX[Y[YFZFZ[",
}
},
{
"Futura Medium",
0.041, /* X scale */
0.041, /* Y scale */
0.95, /* X spacing extra scale */
0.065, /* Line width scale */
0.1, /* horizontal offset */
10.5, /* vertical offset */
{
"JZ",
"JZ",
"JZ",
"JZ",
"JZ",
"JZ",
"JZ",
"JZ",
"JZ",
"JZ",
"JZ",
"JZ",
"JZ",
"JZ",
"JZ",
"JZ",
"JZ",
"JZ",
"JZ",
"JZ",
"JZ",
"JZ",
"JZ",
"JZ",
"JZ",
"JZ",
"JZ",
"JZ",
"JZ",
"JZ",
"JZ",
"JZ",
"JZ",
"MXRFRTST RRFSFST RRXQYQZR[S[TZTYSXRX RRYRZSZSYRY",
"I[NFMGMM RNGMM RNFOGMM RWFVGVM RWGVM RWFXGVM",
"H]SBLb RYBRb RLOZO RKUYU",
"I\\RBR_S_ RRBSBS_ RWIYIWGTFQFNGLILKMMNNVRWSXUXWWYTZQZOYNX RWIVHTGQGNHMIMKNMVQXSYUYWXYWZT[Q[NZLXNX RXXUZ",
"F^[FI[ RNFPHPJOLMMKMIKIIJGLFNFPGSHVHYG[F RWTUUTWTYV[X[ZZ[X[VYTWT",
"F_[NZO[P\\O\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