Offset 1, 5 lines modified | Offset 1, 5 lines modified | ||
1 | ·2ef3449d93e325ecf861cf23b4b29df5·61284·debug·optional·libsilly-dbgsym_0.1.0-8.1_i386.deb | 1 | ·2ef3449d93e325ecf861cf23b4b29df5·61284·debug·optional·libsilly-dbgsym_0.1.0-8.1_i386.deb |
2 | ·e4192f218b118219f46a2129b5f84f7f·25708·libdevel·extra·libsilly-dev_0.1.0-8.1_i386.deb | 2 | ·e4192f218b118219f46a2129b5f84f7f·25708·libdevel·extra·libsilly-dev_0.1.0-8.1_i386.deb |
3 | · | 3 | ·82d980667d82ab99344adeb7acdaa656·209372·doc·extra·libsilly-doc_0.1.0-8.1_all.deb |
4 | ·234eb91998d9b775fe0edff7780c3c0d·16008·libs·extra·libsilly_0.1.0-8.1_i386.deb | 4 | ·234eb91998d9b775fe0edff7780c3c0d·16008·libs·extra·libsilly_0.1.0-8.1_i386.deb |
Offset 1, 3 lines modified | Offset 1, 3 lines modified | ||
1 | -rw-r--r--···0········0········0········4·2021-01-03·15:26:07.000000·debian-binary | 1 | -rw-r--r--···0········0········0········4·2021-01-03·15:26:07.000000·debian-binary |
2 | -rw-r--r--···0········0········0·····385 | 2 | -rw-r--r--···0········0········0·····3856·2021-01-03·15:26:07.000000·control.tar.xz |
3 | -rw-r--r--···0········0········0···205 | 3 | -rw-r--r--···0········0········0···205324·2021-01-03·15:26:07.000000·data.tar.xz |
Offset 3, 56 lines modified | Offset 3, 56 lines modified | ||
3 | drwxr-xr-x···0·root·········(0)·root·········(0)········0·2021-01-03·15:26:07.000000·./usr/share/ | 3 | drwxr-xr-x···0·root·········(0)·root·········(0)········0·2021-01-03·15:26:07.000000·./usr/share/ |
4 | drwxr-xr-x···0·root·········(0)·root·········(0)········0·2021-01-03·15:26:07.000000·./usr/share/doc/ | 4 | drwxr-xr-x···0·root·········(0)·root·········(0)········0·2021-01-03·15:26:07.000000·./usr/share/doc/ |
5 | drwxr-xr-x···0·root·········(0)·root·········(0)········0·2021-01-03·15:26:07.000000·./usr/share/doc/libsilly-doc/ | 5 | drwxr-xr-x···0·root·········(0)·root·········(0)········0·2021-01-03·15:26:07.000000·./usr/share/doc/libsilly-doc/ |
6 | -rw-r--r--···0·root·········(0)·root·········(0)······643·2021-01-03·15:26:07.000000·./usr/share/doc/libsilly-doc/changelog.Debian.gz | 6 | -rw-r--r--···0·root·········(0)·root·········(0)······643·2021-01-03·15:26:07.000000·./usr/share/doc/libsilly-doc/changelog.Debian.gz |
7 | -rw-r--r--···0·root·········(0)·root·········(0)······387·2006-08-11·08:21:50.000000·./usr/share/doc/libsilly-doc/changelog.gz | 7 | -rw-r--r--···0·root·········(0)·root·········(0)······387·2006-08-11·08:21:50.000000·./usr/share/doc/libsilly-doc/changelog.gz |
8 | -rw-r--r--···0·root·········(0)·root·········(0)·····3404·2012-04-10·11:20:35.000000·./usr/share/doc/libsilly-doc/copyright | 8 | -rw-r--r--···0·root·········(0)·root·········(0)·····3404·2012-04-10·11:20:35.000000·./usr/share/doc/libsilly-doc/copyright |
9 | drwxr-xr-x···0·root·········(0)·root·········(0)········0·2021-01-03·15:26:07.000000·./usr/share/doc/libsilly-doc/html/ | 9 | drwxr-xr-x···0·root·········(0)·root·········(0)········0·2021-01-03·15:26:07.000000·./usr/share/doc/libsilly-doc/html/ |
10 | -rw-r--r--···0·root·········(0)·root·········(0)····23456·2021-01-03·15:26:07.000000·./usr/share/doc/libsilly-doc/html/a00002_source.html | ||
11 | -rw-r--r--···0·root·········(0)·root·········(0)····16110·2021-01-03·15:26:07.000000·./usr/share/doc/libsilly-doc/html/a00005_source.html | ||
12 | -rw-r--r--···0·root·········(0)·root·········(0)····10751·2021-01-03·15:26:07.000000·./usr/share/doc/libsilly-doc/html/a0000 | 10 | -rw-r--r--···0·root·········(0)·root·········(0)····10751·2021-01-03·15:26:07.000000·./usr/share/doc/libsilly-doc/html/a00002_source.html |
13 | -rw-r--r--···0·root·········(0)·root·········(0)····12614·2021-01-03·15:26:07.000000·./usr/share/doc/libsilly-doc/html/a00011_source.html | ||
14 | -rw-r--r--···0·root·········(0)·root·········(0)····22980·2021-01-03·15:26:07.000000·./usr/share/doc/libsilly-doc/html/a00014_source.html | ||
15 | -rw-r--r--···0·root·········(0)·root·········(0)····15793·2021-01-03·15:26:07.000000·./usr/share/doc/libsilly-doc/html/a00017_source.html | ||
16 | -rw-r--r--···0·root·········(0)·root·········(0)····10914·2021-01-03·15:26:07.000000·./usr/share/doc/libsilly-doc/html/a00020_source.html | ||
17 | -rw-r--r--···0·root·········(0)·root·········(0)····28761·2021-01-03·15:26:07.000000·./usr/share/doc/libsilly-doc/html/a00023_source.html | ||
18 | -rw-r--r--···0·root·········(0)·root·········(0)····54330·2021-01-03·15:26:07.000000·./usr/share/doc/libsilly-doc/html/a00026_source.html | ||
19 | -rw-r--r--···0·root·········(0)·root·········(0)····21484·2021-01-03·15:26:07.000000·./usr/share/doc/libsilly-doc/html/a00029_source.html | ||
20 | -rw-r--r--···0·root·········(0)·root·········(0)····35912·2021-01-03·15:26:07.000000·./usr/share/doc/libsilly-doc/html/a00032_source.html | ||
21 | -rw-r--r--···0·root·········(0)·root·········(0)····12352·2021-01-03·15:26:07.000000·./usr/share/doc/libsilly-doc/html/a000 | 11 | -rw-r--r--···0·root·········(0)·root·········(0)····12352·2021-01-03·15:26:07.000000·./usr/share/doc/libsilly-doc/html/a00005_source.html |
12 | -rw-r--r--···0·root·········(0)·root·········(0)····12614·2021-01-03·15:26:07.000000·./usr/share/doc/libsilly-doc/html/a00008_source.html | ||
13 | -rw-r--r--···0·root·········(0)·root·········(0)····22980·2021-01-03·15:26:07.000000·./usr/share/doc/libsilly-doc/html/a00011_source.html | ||
14 | -rw-r--r--···0·root·········(0)·root·········(0)····23456·2021-01-03·15:26:07.000000·./usr/share/doc/libsilly-doc/html/a00014_source.html | ||
22 | -rw-r--r--···0·root·········(0)·root·········(0)····17532·2021-01-03·15:26:07.000000·./usr/share/doc/libsilly-doc/html/a000 | 15 | -rw-r--r--···0·root·········(0)·root·········(0)····17532·2021-01-03·15:26:07.000000·./usr/share/doc/libsilly-doc/html/a00017_source.html |
23 | -rw-r--r--···0·root·········(0)·root·········(0)····10785·2021-01-03·15:26:07.000000·./usr/share/doc/libsilly-doc/html/a00041_source.html | ||
24 | -rw-r--r--···0·root·········(0)·root·········(0)····16404·2021-01-03·15:26:07.000000·./usr/share/doc/libsilly-doc/html/a00044_source.html | ||
25 | -rw-r--r--···0·root·········(0)·root·········(0)····15882·2021-01-03·15:26:07.000000·./usr/share/doc/libsilly-doc/html/a00047_source.html | ||
26 | -rw-r--r--···0·root·········(0)·root·········(0)·····7855·2021-01-03·15:26:07.000000·./usr/share/doc/libsilly-doc/html/a00050_source.html | ||
27 | -rw-r--r--···0·root·········(0)·root·········(0)····13840·2021-01-03·15:26:07.000000·./usr/share/doc/libsilly-doc/html/a00053_source.html | ||
28 | -rw-r--r--···0·root·········(0)·root·········(0)·····7845·2021-01-03·15:26:07.000000·./usr/share/doc/libsilly-doc/html/a00056_source.html | ||
29 | -rw-r--r--···0·root·········(0)·root·········(0)····15721·2021-01-03·15:26:07.000000·./usr/share/doc/libsilly-doc/html/a00059_source.html | ||
30 | -rw-r--r--···0·root·········(0)·root·········(0)·····7846·2021-01-03·15:26:07.000000·./usr/share/doc/libsilly-doc/html/a00062_source.html | ||
31 | -rw-r--r--···0·root·········(0)·root·········(0)····16006·2021-01-03·15:26:07.000000·./usr/share/doc/libsilly-doc/html/a00065_source.html | ||
32 | -rw-r--r--···0·root·········(0)·root·········(0)·····7850·2021-01-03·15:26:07.000000·./usr/share/doc/libsilly-doc/html/a00068_source.html | ||
33 | -rw-r--r--···0·root·········(0)·root·········(0)·····7850·2021-01-03·15:26:07.000000·./usr/share/doc/libsilly-doc/html/a00071_source.html | ||
34 | -rw-r--r--···0·root·········(0)·root·········(0)····14968·2021-01-03·15:26:07.000000·./usr/share/doc/libsilly-doc/html/a00074_source.html | ||
35 | -rw-r--r--···0·root·········(0)·root·········(0)·····8729·2021-01-03·15:26:07.000000·./usr/share/doc/libsilly-doc/html/a00077_source.html | ||
36 | -rw-r--r--···0·root·········(0)·root·········(0)····12945·2021-01-03·15:26:07.000000·./usr/share/doc/libsilly-doc/html/a00080_source.html | ||
37 | -rw-r--r--···0·root·········(0)·root·········(0)·····9222·2021-01-03·15:26:07.000000·./usr/share/doc/libsilly-doc/html/a00083_source.html | ||
38 | -rw-r--r--···0·root·········(0)·root·········(0)·····8821·2021-01-03·15:26:07.000000·./usr/share/doc/libsilly-doc/html/a00086_source.html | ||
39 | -rw-r--r--···0·root·········(0)·root·········(0)····14954·2021-01-03·15:26:07.000000·./usr/share/doc/libsilly-doc/html/a00089_source.html | ||
40 | -rw-r--r--···0·root·········(0)·root·········(0)····1 | 16 | -rw-r--r--···0·root·········(0)·root·········(0)····15793·2021-01-03·15:26:07.000000·./usr/share/doc/libsilly-doc/html/a00020_source.html |
17 | -rw-r--r--···0·root·········(0)·root·········(0)····21484·2021-01-03·15:26:07.000000·./usr/share/doc/libsilly-doc/html/a00023_source.html | ||
18 | -rw-r--r--···0·root·········(0)·root·········(0)····28761·2021-01-03·15:26:07.000000·./usr/share/doc/libsilly-doc/html/a00026_source.html | ||
41 | -rw-r--r--···0·root·········(0)·root·········(0)···· | 19 | -rw-r--r--···0·root·········(0)·root·········(0)····35912·2021-01-03·15:26:07.000000·./usr/share/doc/libsilly-doc/html/a00029_source.html |
42 | -rw-r--r--···0·root·········(0)·root·········(0)···· | 20 | -rw-r--r--···0·root·········(0)·root·········(0)····10914·2021-01-03·15:26:07.000000·./usr/share/doc/libsilly-doc/html/a00032_source.html |
21 | -rw-r--r--···0·root·········(0)·root·········(0)····54330·2021-01-03·15:26:07.000000·./usr/share/doc/libsilly-doc/html/a00035_source.html | ||
22 | -rw-r--r--···0·root·········(0)·root·········(0)····16110·2021-01-03·15:26:07.000000·./usr/share/doc/libsilly-doc/html/a00038_source.html | ||
43 | -rw-r--r--···0·root·········(0)·root·········(0)····1 | 23 | -rw-r--r--···0·root·········(0)·root·········(0)····15443·2021-01-03·15:26:07.000000·./usr/share/doc/libsilly-doc/html/a00041_source.html |
44 | -rw-r--r--···0·root·········(0)·root·········(0)····17517·2021-01-03·15:26:07.000000·./usr/share/doc/libsilly-doc/html/a00 | 24 | -rw-r--r--···0·root·········(0)·root·········(0)····17517·2021-01-03·15:26:07.000000·./usr/share/doc/libsilly-doc/html/a00044_source.html |
25 | -rw-r--r--···0·root·········(0)·root·········(0)····23504·2021-01-03·15:26:07.000000·./usr/share/doc/libsilly-doc/html/a00047_source.html | ||
26 | -rw-r--r--···0·root·········(0)·root·········(0)·····8816·2021-01-03·15:26:07.000000·./usr/share/doc/libsilly-doc/html/a00050_source.html | ||
27 | -rw-r--r--···0·root·········(0)·root·········(0)·····8821·2021-01-03·15:26:07.000000·./usr/share/doc/libsilly-doc/html/a00053_source.html | ||
45 | -rw-r--r--···0·root·········(0)·root·········(0)·····8925·2021-01-03·15:26:07.000000·./usr/share/doc/libsilly-doc/html/a00 | 28 | -rw-r--r--···0·root·········(0)·root·········(0)·····8925·2021-01-03·15:26:07.000000·./usr/share/doc/libsilly-doc/html/a00056_source.html |
46 | -rw-r--r--···0·root·········(0)·root·········(0)····18929·2021-01-03·15:26:07.000000·./usr/share/doc/libsilly-doc/html/a00110_source.html | ||
47 | -rw-r--r--···0·root·········(0)·root·········(0)·····9235·2021-01-03·15:26:07.000000·./usr/share/doc/libsilly-doc/html/a00113_source.html | ||
48 | -rw-r--r--···0·root·········(0)·root·········(0)·····8816·2021-01-03·15:26:07.000000·./usr/share/doc/libsilly-doc/html/a00116_source.html | ||
49 | -rw-r--r--···0·root·········(0)·root·········(0)····10749·2021-01-03·15:26:07.000000·./usr/share/doc/libsilly-doc/html/a00 | 29 | -rw-r--r--···0·root·········(0)·root·········(0)····10749·2021-01-03·15:26:07.000000·./usr/share/doc/libsilly-doc/html/a00059_source.html |
30 | -rw-r--r--···0·root·········(0)·root·········(0)·····9235·2021-01-03·15:26:07.000000·./usr/share/doc/libsilly-doc/html/a00062_source.html | ||
31 | -rw-r--r--···0·root·········(0)·root·········(0)····10785·2021-01-03·15:26:07.000000·./usr/share/doc/libsilly-doc/html/a00065_source.html | ||
32 | -rw-r--r--···0·root·········(0)·root·········(0)····14954·2021-01-03·15:26:07.000000·./usr/share/doc/libsilly-doc/html/a00068_source.html | ||
33 | -rw-r--r--···0·root·········(0)·root·········(0)····18192·2021-01-03·15:26:07.000000·./usr/share/doc/libsilly-doc/html/a00071_source.html | ||
34 | -rw-r--r--···0·root·········(0)·root·········(0)····18535·2021-01-03·15:26:07.000000·./usr/share/doc/libsilly-doc/html/a00074_source.html | ||
35 | -rw-r--r--···0·root·········(0)·root·········(0)····12945·2021-01-03·15:26:07.000000·./usr/share/doc/libsilly-doc/html/a00077_source.html | ||
36 | -rw-r--r--···0·root·········(0)·root·········(0)·····9222·2021-01-03·15:26:07.000000·./usr/share/doc/libsilly-doc/html/a00080_source.html | ||
37 | -rw-r--r--···0·root·········(0)·root·········(0)····13735·2021-01-03·15:26:07.000000·./usr/share/doc/libsilly-doc/html/a00083_source.html | ||
50 | -rw-r--r--···0·root·········(0)·root·········(0)····14314·2021-01-03·15:26:07.000000·./usr/share/doc/libsilly-doc/html/a00 | 38 | -rw-r--r--···0·root·········(0)·root·········(0)····14314·2021-01-03·15:26:07.000000·./usr/share/doc/libsilly-doc/html/a00086_source.html |
39 | -rw-r--r--···0·root·········(0)·root·········(0)····18929·2021-01-03·15:26:07.000000·./usr/share/doc/libsilly-doc/html/a00089_source.html | ||
40 | -rw-r--r--···0·root·········(0)·root·········(0)····15882·2021-01-03·15:26:07.000000·./usr/share/doc/libsilly-doc/html/a00092_source.html | ||
41 | -rw-r--r--···0·root·········(0)·root·········(0)·····7846·2021-01-03·15:26:07.000000·./usr/share/doc/libsilly-doc/html/a00095_source.html | ||
42 | -rw-r--r--···0·root·········(0)·root·········(0)····15721·2021-01-03·15:26:07.000000·./usr/share/doc/libsilly-doc/html/a00098_source.html | ||
43 | -rw-r--r--···0·root·········(0)·root·········(0)·····7850·2021-01-03·15:26:07.000000·./usr/share/doc/libsilly-doc/html/a00101_source.html | ||
51 | -rw-r--r--···0·root·········(0)·root·········(0)····1 | 44 | -rw-r--r--···0·root·········(0)·root·········(0)····16404·2021-01-03·15:26:07.000000·./usr/share/doc/libsilly-doc/html/a00104_source.html |
45 | -rw-r--r--···0·root·········(0)·root·········(0)····14968·2021-01-03·15:26:07.000000·./usr/share/doc/libsilly-doc/html/a00107_source.html | ||
46 | -rw-r--r--···0·root·········(0)·root·········(0)·····8729·2021-01-03·15:26:07.000000·./usr/share/doc/libsilly-doc/html/a00110_source.html | ||
47 | -rw-r--r--···0·root·········(0)·root·········(0)·····7855·2021-01-03·15:26:07.000000·./usr/share/doc/libsilly-doc/html/a00113_source.html | ||
48 | -rw-r--r--···0·root·········(0)·root·········(0)·····7845·2021-01-03·15:26:07.000000·./usr/share/doc/libsilly-doc/html/a00116_source.html | ||
49 | -rw-r--r--···0·root·········(0)·root·········(0)····13840·2021-01-03·15:26:07.000000·./usr/share/doc/libsilly-doc/html/a00119_source.html | ||
50 | -rw-r--r--···0·root·········(0)·root·········(0)····16006·2021-01-03·15:26:07.000000·./usr/share/doc/libsilly-doc/html/a00122_source.html | ||
51 | -rw-r--r--···0·root·········(0)·root·········(0)·····7850·2021-01-03·15:26:07.000000·./usr/share/doc/libsilly-doc/html/a00125_source.html | ||
52 | -rw-r--r--···0·root·········(0)·root·········(0)····32995·2021-01-03·15:26:07.000000·./usr/share/doc/libsilly-doc/html/a00129.html | 52 | -rw-r--r--···0·root·········(0)·root·········(0)····32995·2021-01-03·15:26:07.000000·./usr/share/doc/libsilly-doc/html/a00129.html |
53 | -rw-r--r--···0·root·········(0)·root·········(0)·····6976·2021-01-03·15:26:07.000000·./usr/share/doc/libsilly-doc/html/a00942.html | 53 | -rw-r--r--···0·root·········(0)·root·········(0)·····6976·2021-01-03·15:26:07.000000·./usr/share/doc/libsilly-doc/html/a00942.html |
54 | -rw-r--r--···0·root·········(0)·root·········(0)····21036·2021-01-03·15:26:07.000000·./usr/share/doc/libsilly-doc/html/a00943.png | 54 | -rw-r--r--···0·root·········(0)·root·········(0)····21036·2021-01-03·15:26:07.000000·./usr/share/doc/libsilly-doc/html/a00943.png |
55 | -rw-r--r--···0·root·········(0)·root·········(0)·····4742·2021-01-03·15:26:07.000000·./usr/share/doc/libsilly-doc/html/a00944.png | 55 | -rw-r--r--···0·root·········(0)·root·········(0)·····4742·2021-01-03·15:26:07.000000·./usr/share/doc/libsilly-doc/html/a00944.png |
56 | -rw-r--r--···0·root·········(0)·root·········(0)····19999·2021-01-03·15:26:07.000000·./usr/share/doc/libsilly-doc/html/a00945.html | 56 | -rw-r--r--···0·root·········(0)·root·········(0)····19999·2021-01-03·15:26:07.000000·./usr/share/doc/libsilly-doc/html/a00945.html |
57 | -rw-r--r--···0·root·········(0)·root·········(0)·····4488·2021-01-03·15:26:07.000000·./usr/share/doc/libsilly-doc/html/a00946.html | 57 | -rw-r--r--···0·root·········(0)·root·········(0)·····4488·2021-01-03·15:26:07.000000·./usr/share/doc/libsilly-doc/html/a00946.html |
58 | -rw-r--r--···0·root·········(0)·root·········(0)·····3997·2021-01-03·15:26:07.000000·./usr/share/doc/libsilly-doc/html/a00947.png | 58 | -rw-r--r--···0·root·········(0)·root·········(0)·····3997·2021-01-03·15:26:07.000000·./usr/share/doc/libsilly-doc/html/a00947.png |
Offset 1, 15 lines modified | Offset 1, 15 lines modified | ||
1 | <!DOCTYPE·html·PUBLIC·"-//W3C//DTD·XHTML·1.0·Transitional//EN"·"https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> | 1 | <!DOCTYPE·html·PUBLIC·"-//W3C//DTD·XHTML·1.0·Transitional//EN"·"https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> |
2 | <html·xmlns="http://www.w3.org/1999/xhtml"·lang="en-US"> | 2 | <html·xmlns="http://www.w3.org/1999/xhtml"·lang="en-US"> |
3 | <head> | 3 | <head> |
4 | <meta·http-equiv="Content-Type"·content="text/xhtml;charset=UTF-8"/> | 4 | <meta·http-equiv="Content-Type"·content="text/xhtml;charset=UTF-8"/> |
5 | <meta·http-equiv="X-UA-Compatible"·content="IE=11"/> | 5 | <meta·http-equiv="X-UA-Compatible"·content="IE=11"/> |
6 | <meta·name="generator"·content="Doxygen·1.9.8"/> | 6 | <meta·name="generator"·content="Doxygen·1.9.8"/> |
7 | <meta·name="viewport"·content="width=device-width,·initial-scale=1"/> | 7 | <meta·name="viewport"·content="width=device-width,·initial-scale=1"/> |
8 | <title>Simple·Image·Loading·LibrarY:·/build/reproducible-path/silly-0.1.0/src/SILLY | 8 | <title>Simple·Image·Loading·LibrarY:·/build/reproducible-path/silly-0.1.0/src/SILLYDataSource.cpp·Source·File</title> |
9 | <link·href="tabs.css"·rel="stylesheet"·type="text/css"/> | 9 | <link·href="tabs.css"·rel="stylesheet"·type="text/css"/> |
10 | <script·type="text/javascript"·src="jquery.js"></script> | 10 | <script·type="text/javascript"·src="jquery.js"></script> |
11 | <script·type="text/javascript"·src="dynsections.js"></script> | 11 | <script·type="text/javascript"·src="dynsections.js"></script> |
12 | <link·href="doxygen.css"·rel="stylesheet"·type="text/css"·/> | 12 | <link·href="doxygen.css"·rel="stylesheet"·type="text/css"·/> |
13 | </head> | 13 | </head> |
14 | <body> | 14 | <body> |
15 | <div·id="top"><!--·do·not·remove·this·div,·it·is·closed·by·doxygen!·--> | 15 | <div·id="top"><!--·do·not·remove·this·div,·it·is·closed·by·doxygen!·--> |
Offset 44, 23 lines modified | Offset 44, 23 lines modified | ||
44 | </script> | 44 | </script> |
45 | <div·id="nav-path"·class="navpath"> | 45 | <div·id="nav-path"·class="navpath"> |
46 | ··<ul> | 46 | ··<ul> |
47 | <li·class="navelem"><a·class="el"·href="dir_4fef79e7177ba769987a8da36c892c5f.html">build</a></li><li·class="navelem"><a·class="el"·href="dir_9def6061848686aab7e6212bb499d615.html">reproducible-path</a></li><li·class="navelem"><a·class="el"·href="dir_74170d5b58cefb7cb5a86fc552b183a3.html">silly-0.1.0</a></li><li·class="navelem"><a·class="el"·href="dir_7b53bc9a32849689d682eb098e891de5.html">src</a></li>··</ul> | 47 | <li·class="navelem"><a·class="el"·href="dir_4fef79e7177ba769987a8da36c892c5f.html">build</a></li><li·class="navelem"><a·class="el"·href="dir_9def6061848686aab7e6212bb499d615.html">reproducible-path</a></li><li·class="navelem"><a·class="el"·href="dir_74170d5b58cefb7cb5a86fc552b183a3.html">silly-0.1.0</a></li><li·class="navelem"><a·class="el"·href="dir_7b53bc9a32849689d682eb098e891de5.html">src</a></li>··</ul> |
48 | </div> | 48 | </div> |
49 | </div><!--·top·--> | 49 | </div><!--·top·--> |
50 | <div·class="header"> | 50 | <div·class="header"> |
51 | ··<div·class="headertitle"><div·class="title">SILLY | 51 | ··<div·class="headertitle"><div·class="title">SILLYDataSource.cpp</div></div> |
52 | </div><!--header--> | 52 | </div><!--header--> |
53 | <div·class="contents"> | 53 | <div·class="contents"> |
54 | <div·class="fragment"><div·class="line"><a·id="l00001"·name="l00001"></a><span·class="lineno">····1</span><span·class="comment">/***********************************************************************</span></div> | 54 | <div·class="fragment"><div·class="line"><a·id="l00001"·name="l00001"></a><span·class="lineno">····1</span><span·class="comment">/***********************************************************************</span></div> |
55 | <div·class="line"><a·id="l00002"·name="l00002"></a><span·class="lineno">····2</span><span·class="comment">····filename:···SILLY | 55 | <div·class="line"><a·id="l00002"·name="l00002"></a><span·class="lineno">····2</span><span·class="comment">····filename:···SILLYDataSource.cpp</span></div> |
56 | <div·class="line"><a·id="l00003"·name="l00003"></a><span·class="lineno">····3</span><span·class="comment">····created:····10·Jun·2006</span></div> | 56 | <div·class="line"><a·id="l00003"·name="l00003"></a><span·class="lineno">····3</span><span·class="comment">····created:····10·Jun·2006</span></div> |
57 | <div·class="line"><a·id="l00004"·name="l00004"></a><span·class="lineno">····4</span><span·class="comment">····author:·····Olivier·Delannoy | 57 | <div·class="line"><a·id="l00004"·name="l00004"></a><span·class="lineno">····4</span><span·class="comment">····author:·····Olivier·Delannoy</span></div> |
58 | <div·class="line"><a·id="l00005"·name="l00005"></a><span·class="lineno">····5</span><span·class="comment"></span>·</div> | 58 | <div·class="line"><a·id="l00005"·name="l00005"></a><span·class="lineno">····5</span><span·class="comment"></span>·</div> |
59 | <div·class="line"><a·id="l00006"·name="l00006"></a><span·class="lineno">····6</span><span·class="comment">····purpose:····I | 59 | <div·class="line"><a·id="l00006"·name="l00006"></a><span·class="lineno">····6</span><span·class="comment">····purpose:····SILLYDataSource·definition·for·the·SILLY·library·</span></div> |
60 | <div·class="line"><a·id="l00007"·name="l00007"></a><span·class="lineno">····7</span><span·class="comment">*************************************************************************/</span></div> | 60 | <div·class="line"><a·id="l00007"·name="l00007"></a><span·class="lineno">····7</span><span·class="comment">*************************************************************************/</span></div> |
61 | <div·class="line"><a·id="l00008"·name="l00008"></a><span·class="lineno">····8</span><span·class="comment">/***************************************************************************</span></div> | 61 | <div·class="line"><a·id="l00008"·name="l00008"></a><span·class="lineno">····8</span><span·class="comment">/***************************************************************************</span></div> |
62 | <div·class="line"><a·id="l00009"·name="l00009"></a><span·class="lineno">····9</span><span·class="comment">·*···Copyright·(C)·2004·-·2006·Paul·D·Turner·&·The·CEGUI·Development·Team</span></div> | 62 | <div·class="line"><a·id="l00009"·name="l00009"></a><span·class="lineno">····9</span><span·class="comment">·*···Copyright·(C)·2004·-·2006·Paul·D·Turner·&·The·CEGUI·Development·Team</span></div> |
63 | <div·class="line"><a·id="l00010"·name="l00010"></a><span·class="lineno">···10</span><span·class="comment">·*</span></div> | 63 | <div·class="line"><a·id="l00010"·name="l00010"></a><span·class="lineno">···10</span><span·class="comment">·*</span></div> |
64 | <div·class="line"><a·id="l00011"·name="l00011"></a><span·class="lineno">···11</span><span·class="comment">·*···Permission·is·hereby·granted,·free·of·charge,·to·any·person·obtaining</span></div> | 64 | <div·class="line"><a·id="l00011"·name="l00011"></a><span·class="lineno">···11</span><span·class="comment">·*···Permission·is·hereby·granted,·free·of·charge,·to·any·person·obtaining</span></div> |
65 | <div·class="line"><a·id="l00012"·name="l00012"></a><span·class="lineno">···12</span><span·class="comment">·*···a·copy·of·this·software·and·associated·documentation·files·(the</span></div> | 65 | <div·class="line"><a·id="l00012"·name="l00012"></a><span·class="lineno">···12</span><span·class="comment">·*···a·copy·of·this·software·and·associated·documentation·files·(the</span></div> |
66 | <div·class="line"><a·id="l00013"·name="l00013"></a><span·class="lineno">···13</span><span·class="comment">·*···"Software"),·to·deal·in·the·Software·without·restriction,·including</span></div> | 66 | <div·class="line"><a·id="l00013"·name="l00013"></a><span·class="lineno">···13</span><span·class="comment">·*···"Software"),·to·deal·in·the·Software·without·restriction,·including</span></div> |
Offset 80, 106 lines modified | Offset 80, 32 lines modified | ||
80 | <div·class="line"><a·id="l00027"·name="l00027"></a><span·class="lineno">···27</span><span·class="comment">·*···ARISING·FROM,·OUT·OF·OR·IN·CONNECTION·WITH·THE·SOFTWARE·OR·THE·USE·OR</span></div> | 80 | <div·class="line"><a·id="l00027"·name="l00027"></a><span·class="lineno">···27</span><span·class="comment">·*···ARISING·FROM,·OUT·OF·OR·IN·CONNECTION·WITH·THE·SOFTWARE·OR·THE·USE·OR</span></div> |
81 | <div·class="line"><a·id="l00028"·name="l00028"></a><span·class="lineno">···28</span><span·class="comment">·*···OTHER·DEALINGS·IN·THE·SOFTWARE.</span></div> | 81 | <div·class="line"><a·id="l00028"·name="l00028"></a><span·class="lineno">···28</span><span·class="comment">·*···OTHER·DEALINGS·IN·THE·SOFTWARE.</span></div> |
82 | <div·class="line"><a·id="l00029"·name="l00029"></a><span·class="lineno">···29</span><span·class="comment">·***************************************************************************/</span></div> | 82 | <div·class="line"><a·id="l00029"·name="l00029"></a><span·class="lineno">···29</span><span·class="comment">·***************************************************************************/</span></div> |
83 | <div·class="line"><a·id="l00030"·name="l00030"></a><span·class="lineno">···30</span><span·class="preprocessor">#ifdef·HAVE_CONFIG_H</span></div> | 83 | <div·class="line"><a·id="l00030"·name="l00030"></a><span·class="lineno">···30</span><span·class="preprocessor">#ifdef·HAVE_CONFIG_H</span></div> |
84 | <div·class="line"><a·id="l00031"·name="l00031"></a><span·class="lineno">···31</span><span·class="preprocessor">#include·<config.h></span></div> | 84 | <div·class="line"><a·id="l00031"·name="l00031"></a><span·class="lineno">···31</span><span·class="preprocessor">#include·<config.h></span></div> |
85 | <div·class="line"><a·id="l00032"·name="l00032"></a><span·class="lineno">···32</span><span·class="preprocessor">#endif</span></div> | 85 | <div·class="line"><a·id="l00032"·name="l00032"></a><span·class="lineno">···32</span><span·class="preprocessor">#endif</span></div> |
86 | <div·class="line"><a·id="l00033"·name="l00033"></a><span·class="lineno">···33</span>·</div> | 86 | <div·class="line"><a·id="l00033"·name="l00033"></a><span·class="lineno">···33</span>·</div> |
87 | <div·class="line"><a·id="l00034"·name="l00034"></a><span·class="lineno">···34</span><span·class="preprocessor">#include·"SILLY | 87 | <div·class="line"><a·id="l00034"·name="l00034"></a><span·class="lineno">···34</span><span·class="preprocessor">#include·"SILLYDataSource.h"</span></div> |
88 | <div·class="line"><a·id="l00035"·name="l00035"></a><span·class="lineno">···35</span>·</div> | 88 | <div·class="line"><a·id="l00035"·name="l00035"></a><span·class="lineno">···35</span>·</div> |
89 | <div·class="line"><a·id="l00036"·name="l00036"></a><span·class="lineno">···36</span><span·class="preprocessor">#ifndef·SILLY_OPT_INLINE</span></div> | 89 | <div·class="line"><a·id="l00036"·name="l00036"></a><span·class="lineno">···36</span><span·class="preprocessor">#ifndef·SILLY_OPT_INLINE</span></div> |
90 | <div·class="line"><a·id="l00037"·name="l00037"></a><span·class="lineno">···37</span><span·class="preprocessor">#define·inline·</span></div> | 90 | <div·class="line"><a·id="l00037"·name="l00037"></a><span·class="lineno">···37</span><span·class="preprocessor">#define·inline·</span></div> |
91 | <div·class="line"><a·id="l00038"·name="l00038"></a><span·class="lineno">···38</span><span·class="preprocessor">#include·"SILLY | 91 | <div·class="line"><a·id="l00038"·name="l00038"></a><span·class="lineno">···38</span><span·class="preprocessor">#include·"SILLYDataSource.icpp"</span></div> |
92 | <div·class="line"><a·id="l00039"·name="l00039"></a><span·class="lineno">···39</span><span·class="preprocessor">#undef·inline</span></div> | 92 | <div·class="line"><a·id="l00039"·name="l00039"></a><span·class="lineno">···39</span><span·class="preprocessor">#undef·inline</span></div> |
93 | <div·class="line"><a·id="l00040"·name="l00040"></a><span·class="lineno">···40</span><span·class="preprocessor">#endif·</span></div> | 93 | <div·class="line"><a·id="l00040"·name="l00040"></a><span·class="lineno">···40</span><span·class="preprocessor">#endif·</span></div> |
94 | <div·class="line"><a·id="l00041"·name="l00041"></a><span·class="lineno">···41</span><span·class="preprocessor">#include·"SILLYImageLoaderManager.h"</span></div> | ||
95 | <div·class="line"><a·id="l0004 | 94 | <div·class="line"><a·id="l00041"·name="l00041"></a><span·class="lineno">···41</span>·</div> |
96 | <div·class="line"><a·id="l00043"·name="l00043"></a><span·class="lineno">···43</span>·</div> | ||
97 | <div·class="line"><a·id="l0004 | 95 | <div·class="line"><a·id="l00042"·name="l00042"></a><span·class="lineno">···42</span><span·class="comment">//·Start·of·SILLY·namespace·section</span></div> |
98 | <div·class="line"><a·id="l0004 | 96 | <div·class="line"><a·id="l00043"·name="l00043"></a><span·class="lineno">···43</span><span·class="keyword">namespace·</span><a·class="code·hl_namespace"·href="a00129.html">SILLY</a></div> |
99 | <div·class="line"><a·id="l0004 | 97 | <div·class="line"><a·id="l00044"·name="l00044"></a><span·class="lineno">···44</span>{</div> |
98 | <div·class="line"><a·id="l00045"·name="l00045"></a><span·class="lineno">···45</span>··</div> | ||
99 | <div·class="line"><a·id="l00046"·name="l00046"></a><span·class="lineno">···46</span>}·<span·class="comment">//·End·of·SILLY·namespace·section·</span></div> | ||
100 | <div·class="line"><a·id="l00047"·name="l00047"></a><span·class="lineno">···47</span>·</div> | 100 | <div·class="line"><a·id="l00047"·name="l00047"></a><span·class="lineno">···47</span>·</div> |
101 | <div·class="line"><a·id="l00048"·name="l00048"></a><span·class="lineno">···48</span>·</div> | ||
102 | <div·class="line"><a·id="l00049"·name="l00049"></a><span·class="lineno">···49</span>·</div> | ||
101 | <div·class="foldopen"·id="foldopen00048"·data-start="{"·data-end="}"> | ||
102 | <div·class="line"><a·id="l00048"·name="l00048"></a><span·class="lineno"><a·class="line"·href="a00977.html#a03b8914e2a6b111009001ae06f895236">···48</a></span><a·class="code·hl_function"·href="a00977.html#a03b8914e2a6b111009001ae06f895236">Image::Image</a>(<a·class="code·hl_class"·href="a00969.html">DataSource</a>&·source)</div> | ||
103 | <div·class="line"><a·id="l00049"·name="l00049"></a><span·class="lineno">···49</span>··:··d_bpp(0),·d_pixels(0),·d_data(&source),·d_imageContext(0),·d_imageLoader(0)</div> | ||
104 | <div·class="line"><a·id="l00050"·name="l00050"></a><span·class="lineno">···50</span> | 103 | <div·class="line"><a·id="l00050"·name="l00050"></a><span·class="lineno">···50</span>·</div> |
105 | <div·class="line"><a·id="l00051"·name="l00051"></a><span·class="lineno">···51</span>}</div> | ||
106 | </div> | ||
107 | <div·class="line"><a·id="l00052"·name="l00052"></a><span·class="lineno">···52</span>·</div> | ||
108 | <div·class="line"><a·id="l00053"·name="l00053"></a><span·class="lineno">···53</span>·</div> | ||
109 | <div·class="foldopen"·id="foldopen00054"·data-start="{"·data-end="}"> | ||
110 | <div·class="line"><a·id="l00054"·name="l00054"></a><span·class="lineno"><a·class="line"·href="a00977.html#a0456197da83edd0e5c746e82642b6be9">···54</a></span><span·class="keywordtype">bool</span>·<a·class="code·hl_function"·href="a00977.html#a0456197da83edd0e5c746e82642b6be9">Image::loadImageHeader</a>()</div> | ||
111 | <div·class="line"><a·id="l00055"·name="l00055"></a><span·class="lineno">···55</span>{</div> | ||
112 | <div·class="line"><a·id="l00056"·name="l00056"></a><span·class="lineno">···56</span>····ImageLoaderList::iterator·iter·=·ImageLoaderManager::getSingleton().begin();</div> | ||
113 | <div·class="line"><a·id="l00057"·name="l00057"></a><span·class="lineno">···57</span>····<span·class="keywordflow">for</span>·(;·!·d_imageLoader·&&·iter·!=·ImageLoaderManager::getSingleton().end()·;·++iter)</div> | ||
114 | <div·class="line"><a·id="l00058"·name="l00058"></a><span·class="lineno">···58</span>····{</div> | ||
115 | <div·class="line"><a·id="l00059"·name="l00059"></a><span·class="lineno">···59</span>········d_imageContext·=·(*iter)->loadHeader(d_pfSource,·d_data);</div> | ||
116 | <div·class="line"><a·id="l00060"·name="l00060"></a><span·class="lineno">···60</span>········<span·class="keywordflow">if</span>·(d_imageContext)</div> | ||
117 | <div·class="line"><a·id="l00061"·name="l00061"></a><span·class="lineno">···61</span>············d_imageLoader·=·(*iter);</div> | ||
118 | <div·class="line"><a·id="l00062"·name="l00062"></a><span·class="lineno">···62</span>····}</div> | ||
119 | <div·class="line"><a·id="l00063"·name="l00063"></a><span·class="lineno">···63</span>····assert((!·d_imageLoader·||·d_imageContext)·&&·<span·class="stringliteral">"ASSERT:·Internal·state·of·image·invalid"</span>);</div> | ||
120 | <div·class="line"><a·id="l00064"·name="l00064"></a><span·class="lineno">···64</span>····<span·class="keywordflow">return</span>·d_imageLoader·!=·0;</div> | ||
121 | <div·class="line"><a·id="l00065"·name="l00065"></a><span·class="lineno">···65</span>····</div> | ||
122 | <div·class="line"><a·id="l00066"·name="l00066"></a><span·class="lineno">···66</span>}</div> | ||
123 | </div> | ||
124 | <div·class="line"><a·id="l00067"·name="l00067"></a><span·class="lineno">···67</span>·</div> | ||
125 | <div·class="foldopen"·id="foldopen00068"·data-start="{"·data-end="}"> | ||
126 | <div·class="line"><a·id="l00068"·name="l00068"></a><span·class="lineno"><a·class="line"·href="a00977.html#a86abdf05f0d3f64a20d1e0ad3ec91c8a">···68</a></span><span·class="keywordtype">bool</span>·<a·class="code·hl_function"·href="a00977.html#a86abdf05f0d3f64a20d1e0ad3ec91c8a">Image::loadImageData</a>(<a·class="code·hl_enumeration"·href="a00129.html#a60883d4958a60b91661e97027a85072a">PixelFormat</a>·resultFormat,·<a·class="code·hl_enumeration"·href="a00129.html#aebdd89f22790687ac264c1abd9f7fd38">PixelOrigin</a>·order)</div> | ||
127 | <div·class="line"><a·id="l00069"·name="l00069"></a><span·class="lineno">···69</span>{</div> | ||
128 | <div·class="line"><a·id="l00070"·name="l00070"></a><span·class="lineno">···70</span>····<span·class="keywordflow">switch</span>·(resultFormat)</div> | ||
129 | <div·class="line"><a·id="l00071"·name="l00071"></a><span·class="lineno">···71</span>····{</div> | ||
130 | <div·class="line"><a·id="l00072"·name="l00072"></a><span·class="lineno">···72</span>····<span·class="keywordflow">case</span>·PF_A1B5G5R5:</div> | ||
131 | <div·class="line"><a·id="l00073"·name="l00073"></a><span·class="lineno">···73</span>········d_bpp·=·2;</div> | ||
132 | <div·class="line"><a·id="l00074"·name="l00074"></a><span·class="lineno">···74</span>········<span·class="keywordflow">break</span>;</div> | ||
133 | <div·class="line"><a·id="l00075"·name="l00075"></a><span·class="lineno">···75</span>····<span·class="keywordflow">case</span>·PF_RGB:</div> | ||
134 | <div·class="line"><a·id="l00076"·name="l00076"></a><span·class="lineno">···76</span>········d_bpp·=·3;</div> | ||
135 | <div·class="line"><a·id="l00077"·name="l00077"></a><span·class="lineno">···77</span>········<span·class="keywordflow">break</span>;</div> | ||
136 | <div·class="line"><a·id="l00078"·name="l00078"></a><span·class="lineno">···78</span>·</div> | ||
137 | <div·class="line"><a·id="l00079"·name="l00079"></a><span·class="lineno">···79</span>····<span·class="keywordflow">case</span>·PF_RGBA:····</div> | ||
138 | <div·class="line"><a·id="l00080"·name="l00080"></a><span·class="lineno">···80</span>········d_bpp·=·4;</div> | ||
139 | <div·class="line"><a·id="l00081"·name="l00081"></a><span·class="lineno">···81</span>········<span·class="keywordflow">break</span>;</div> | ||
140 | <div·class="line"><a·id="l00082"·name="l00082"></a><span·class="lineno">···82</span>········<span·class="comment">//default:</span></div> | ||
141 | <div·class="line"><a·id="l00083"·name="l00083"></a><span·class="lineno">···83</span>········<span·class="comment">//·Unsupported·format·</span></div> | ||
142 | <div·class="line"><a·id="l00084"·name="l00084"></a><span·class="lineno">···84</span>····};</div> | ||
143 | <div·class="line"><a·id="l00085"·name="l00085"></a><span·class="lineno">···85</span>·</div> | ||
144 | <div·class="line"><a·id="l00086"·name="l00086"></a><span·class="lineno">···86</span>····<span·class="keywordflow">if</span>·(!·allocate())</div> | ||
145 | <div·class="line"><a·id="l00087"·name="l00087"></a><span·class="lineno">···87</span>····{</div> | ||
146 | <div·class="line"><a·id="l00088"·name="l00088"></a><span·class="lineno">···88</span>········<span·class="keywordflow">return</span>·<span·class="keyword">false</span>;</div> | ||
147 | <div·class="line"><a·id="l00089"·name="l00089"></a><span·class="lineno">···89</span>····}</div> | ||
148 | <div·class="line"><a·id="l00090"·name="l00090"></a><span·class="lineno">···90</span>····d_imageContext-><a·class="code·hl_function"·href="a00981.html#a16a47c38b10d37a0eff7abc7e17e7275">setDestination</a>(d_pixels,·<a·class="code·hl_function"·href="a00977.html#aa52477d2dcc839fafe8a8ee5026a2621">getWidth</a>()·*·<a·class="code·hl_function"·href="a00977.html#afdb56064ac644b85442a915c9fdf19f8">getHeight</a>()·*·d_bpp,·resultFormat);</div> | ||
149 | <div·class="line"><a·id="l00091"·name="l00091"></a><span·class="lineno">···91</span>·</div> | ||
150 | <div·class="line"><a·id="l00092"·name="l00092"></a><span·class="lineno">···92</span>····<span·class="keywordflow">if</span>·(!·d_imageLoader-><a·class="code·hl_function"·href="a00985.html#a7622e69834f644d7cf1201c1cabd80c6">loadImageData</a>(order,·d_data,·d_imageContext))</div> | ||
151 | <div·class="line"><a·id="l00093"·name="l00093"></a><span·class="lineno">···93</span>····{</div> | ||
152 | <div·class="line"><a·id="l00094"·name="l00094"></a><span·class="lineno">···94</span>········<span·class="keyword">delete</span>·[]·d_pixels;</div> | ||
153 | <div·class="line"><a·id="l00095"·name="l00095"></a><span·class="lineno">···95</span>········<span·class="keywordflow">return</span>·<span·class="keyword">false</span>;</div> | ||
154 | <div·class="line"><a·id="l00096"·name="l00096"></a><span·class="lineno">···96</span>····}</div> | ||
155 | <div·class="line"><a·id="l00097"·name="l00097"></a><span·class="lineno">···97</span>····<span·class="keywordflow">return</span>·<span·class="keyword">true</span>;</div> | ||
156 | <div·class="line"><a·id="l00098"·name="l00098"></a><span·class="lineno">···98</span>}</div> | ||
157 | </div> | ||
158 | <div·class="line"><a·id="l00099"·name="l00099"></a><span·class="lineno">···99</span>·</div> | ||
159 | <div·class="line"><a·id="l00100"·name="l00100"></a><span·class="lineno">··100</span><span·class="keywordtype">bool</span>·Image::allocate()</div> | ||
160 | <div·class="line"><a·id="l00101"·name="l00101"></a><span·class="lineno">··101</span>{</div> | ||
161 | <div·class="line"><a·id="l00102"·name="l00102"></a><span·class="lineno">··102</span>····<span·class="keyword">delete</span>·[]·d_pixels;</div> | ||
162 | <div·class="line"><a·id="l00103"·name="l00103"></a><span·class="lineno">··103</span>····d_pixels·=·0;</div> | ||
Max diff block lines reached; 271/22809 bytes (1.19%) of diff not shown. |
Offset 1, 19 lines modified | Offset 1, 19 lines modified | ||
1 | Simple·Image·Loading·LibrarY 0.1.0 | 1 | Simple·Image·Loading·LibrarY 0.1.0 |
2 | ····*·_\x8b_\x8u_\x8i_\x8l_\x8d | 2 | ····*·_\x8b_\x8u_\x8i_\x8l_\x8d |
3 | ····*·_\x8r_\x8e_\x8p_\x8r_\x8o_\x8d_\x8u_\x8c_\x8i_\x8b_\x8l_\x8e_\x8-_\x8p_\x8a_\x8t_\x8h | 3 | ····*·_\x8r_\x8e_\x8p_\x8r_\x8o_\x8d_\x8u_\x8c_\x8i_\x8b_\x8l_\x8e_\x8-_\x8p_\x8a_\x8t_\x8h |
4 | ····*·_\x8s_\x8i_\x8l_\x8l_\x8y_\x8-_\x80_\x8._\x81_\x8._\x80 | 4 | ····*·_\x8s_\x8i_\x8l_\x8l_\x8y_\x8-_\x80_\x8._\x81_\x8._\x80 |
5 | ····*·_\x8s_\x8r_\x8c | 5 | ····*·_\x8s_\x8r_\x8c |
6 | SILLY | 6 | SILLYDataSource.cpp |
7 | 1/*********************************************************************** | 7 | 1/*********************************************************************** |
8 | 2·filename:·SILLY | 8 | 2·filename:·SILLYDataSource.cpp |
9 | 3·created:·10·Jun·2006 | 9 | 3·created:·10·Jun·2006 |
10 | 4·author:·Olivier·Delannoy | 10 | 4·author:·Olivier·Delannoy |
11 | 5 | 11 | 5 |
12 | 6·purpose:·I | 12 | 6·purpose:·SILLYDataSource·definition·for·the·SILLY·library |
13 | 7*************************************************************************/ | 13 | 7*************************************************************************/ |
14 | 8/*************************************************************************** | 14 | 8/*************************************************************************** |
15 | 9·*·Copyright·(C)·2004·-·2006·Paul·D·Turner·&·The·CEGUI·Development·Team | 15 | 9·*·Copyright·(C)·2004·-·2006·Paul·D·Turner·&·The·CEGUI·Development·Team |
16 | 10·* | 16 | 10·* |
17 | 11·*·Permission·is·hereby·granted,·free·of·charge,·to·any·person·obtaining | 17 | 11·*·Permission·is·hereby·granted,·free·of·charge,·to·any·person·obtaining |
18 | 12·*·a·copy·of·this·software·and·associated·documentation·files·(the | 18 | 12·*·a·copy·of·this·software·and·associated·documentation·files·(the |
19 | 13·*·"Software"),·to·deal·in·the·Software·without·restriction,·including | 19 | 13·*·"Software"),·to·deal·in·the·Software·without·restriction,·including |
Offset 33, 128 lines modified | Offset 33, 29 lines modified | ||
33 | 27·*·ARISING·FROM,·OUT·OF·OR·IN·CONNECTION·WITH·THE·SOFTWARE·OR·THE·USE·OR | 33 | 27·*·ARISING·FROM,·OUT·OF·OR·IN·CONNECTION·WITH·THE·SOFTWARE·OR·THE·USE·OR |
34 | 28·*·OTHER·DEALINGS·IN·THE·SOFTWARE. | 34 | 28·*·OTHER·DEALINGS·IN·THE·SOFTWARE. |
35 | 29·***************************************************************************/ | 35 | 29·***************************************************************************/ |
36 | 30#ifdef·HAVE_CONFIG_H | 36 | 30#ifdef·HAVE_CONFIG_H |
37 | 31#include·<config.h> | 37 | 31#include·<config.h> |
38 | 32#endif | 38 | 32#endif |
39 | 33 | 39 | 33 |
40 | 34#include·"SILLY | 40 | 34#include·"SILLYDataSource.h" |
41 | 35 | 41 | 35 |
42 | 36#ifndef·SILLY_OPT_INLINE | 42 | 36#ifndef·SILLY_OPT_INLINE |
43 | 37#define·inline | 43 | 37#define·inline |
44 | 38#include·"SILLY | 44 | 38#include·"SILLYDataSource.icpp" |
45 | 39#undef·inline | 45 | 39#undef·inline |
46 | 40#endif | 46 | 40#endif |
47 | 41 | ||
48 | 42//·Start·of·SILLY·namespace·section | ||
47 | 41#include·"SILLYImageLoaderManager.h" | ||
48 | 42 | ||
49 | 43 | ||
50 | 44//·Start·section·of·namespace·SILLY | ||
51 | 4 | 49 | 43namespace·_\x8S_\x8I_\x8L_\x8L_\x8Y |
52 | 4 | 50 | 44{ |
51 | 45 | ||
52 | 46}·//·End·of·SILLY·namespace·section | ||
53 | 47 | 53 | 47 |
54 | 48 | ||
55 | 49 | ||
54 | _\x84_\x88_\x8I_\x8m_\x8a_\x8g_\x8e_\x8:_\x8:_\x8I_\x8m_\x8a_\x8g_\x8e(_\x8D_\x8a_\x8t_\x8a_\x8S_\x8o_\x8u_\x8r_\x8c_\x8e&·source) | ||
55 | 49·:·d_bpp(0),·d_pixels(0),·d_data(&source),·d_imageContext(0),·d_imageLoader | ||
56 | (0) | ||
57 | 50 | 56 | 50 |
58 | 51} | ||
59 | 52 | ||
60 | 53 | ||
61 | _\x85_\x84bool·_\x8I_\x8m_\x8a_\x8g_\x8e_\x8:_\x8:_\x8l_\x8o_\x8a_\x8d_\x8I_\x8m_\x8a_\x8g_\x8e_\x8H_\x8e_\x8a_\x8d_\x8e_\x8r() | ||
62 | 55{ | ||
63 | 56·ImageLoaderList::iterator·iter·=·ImageLoaderManager::getSingleton().begin(); | ||
64 | 57·for·(;·!·d_imageLoader·&&·iter·!=·ImageLoaderManager::getSingleton().end()·; | ||
65 | ++iter) | ||
66 | 58·{ | ||
67 | 59·d_imageContext·=·(*iter)->loadHeader(d_pfSource,·d_data); | ||
68 | 60·if·(d_imageContext) | ||
69 | 61·d_imageLoader·=·(*iter); | ||
70 | 62·} | ||
71 | 63·assert((!·d_imageLoader·||·d_imageContext)·&&·"ASSERT:·Internal·state·of | ||
72 | image·invalid"); | ||
73 | 64·return·d_imageLoader·!=·0; | ||
74 | 65 | ||
75 | 66} | ||
76 | 67 | ||
77 | _\x86_\x88bool·_\x8I_\x8m_\x8a_\x8g_\x8e_\x8:_\x8:_\x8l_\x8o_\x8a_\x8d_\x8I_\x8m_\x8a_\x8g_\x8e_\x8D_\x8a_\x8t_\x8a(_\x8P_\x8i_\x8x_\x8e_\x8l_\x8F_\x8o_\x8r_\x8m_\x8a_\x8t·resultFormat,·_\x8P_\x8i_\x8x_\x8e_\x8l_\x8O_\x8r_\x8i_\x8g_\x8i_\x8n·order) | ||
78 | 69{ | ||
79 | 70·switch·(resultFormat) | ||
80 | 71·{ | ||
81 | 72·case·PF_A1B5G5R5: | ||
82 | 73·d_bpp·=·2; | ||
83 | 74·break; | ||
84 | 75·case·PF_RGB: | ||
85 | 76·d_bpp·=·3; | ||
86 | 77·break; | ||
87 | 78 | ||
88 | 79·case·PF_RGBA: | ||
89 | 80·d_bpp·=·4; | ||
90 | 81·break; | ||
91 | 82·//default: | ||
92 | 83·//·Unsupported·format | ||
93 | 84·}; | ||
94 | 85 | ||
95 | 86·if·(!·allocate()) | ||
96 | 87·{ | ||
97 | 88·return·false; | ||
98 | 89·} | ||
99 | 90·d_imageContext->_\x8s_\x8e_\x8t_\x8D_\x8e_\x8s_\x8t_\x8i_\x8n_\x8a_\x8t_\x8i_\x8o_\x8n(d_pixels,·_\x8g_\x8e_\x8t_\x8W_\x8i_\x8d_\x8t_\x8h()·*·_\x8g_\x8e_\x8t_\x8H_\x8e_\x8i_\x8g_\x8h_\x8t()·*·d_bpp, | ||
100 | resultFormat); | ||
101 | 91 | ||
102 | 92·if·(!·d_imageLoader->_\x8l_\x8o_\x8a_\x8d_\x8I_\x8m_\x8a_\x8g_\x8e_\x8D_\x8a_\x8t_\x8a(order,·d_data,·d_imageContext)) | ||
103 | 93·{ | ||
104 | 94·delete·[]·d_pixels; | ||
105 | 95·return·false; | ||
106 | 96·} | ||
107 | 97·return·true; | ||
108 | 98} | ||
109 | 99 | ||
110 | 100bool·Image::allocate() | ||
111 | 101{ | ||
112 | 102·delete·[]·d_pixels; | ||
113 | 103·d_pixels·=·0; | ||
114 | 104·d_pixels·=·new·byte[d_bpp·*·_\x8g_\x8e_\x8t_\x8W_\x8i_\x8d_\x8t_\x8h()·*·_\x8g_\x8e_\x8t_\x8H_\x8e_\x8i_\x8g_\x8h_\x8t()]; | ||
115 | 105·return·d_pixels·!=·0; | ||
116 | 106} | ||
117 | 107 | ||
118 | 108}·//·End·section·of·namespace·SILLY | ||
119 | _\x8S_\x8I_\x8L_\x8L_\x8Y | 57 | _\x8S_\x8I_\x8L_\x8L_\x8Y |
120 | Simple·Image·Loading·LibrarY·namespace. | 58 | Simple·Image·Loading·LibrarY·namespace. |
121 | D\x8De\x8ef\x8fi\x8in\x8ni\x8it\x8ti\x8io\x8on\x8n·_\x8S_\x8I_\x8L_\x8L_\x8Y_\x8J_\x8P_\x8G_\x8I_\x8m_\x8a_\x8g_\x8e_\x8C_\x8o_\x8n_\x8t_\x8e_\x8x_\x8t_\x8._\x8c_\x8p_\x8p_\x8:_\x84_\x86 | 59 | D\x8De\x8ef\x8fi\x8in\x8ni\x8it\x8ti\x8io\x8on\x8n·_\x8S_\x8I_\x8L_\x8L_\x8Y_\x8J_\x8P_\x8G_\x8I_\x8m_\x8a_\x8g_\x8e_\x8C_\x8o_\x8n_\x8t_\x8e_\x8x_\x8t_\x8._\x8c_\x8p_\x8p_\x8:_\x84_\x86 |
122 | _\x8S_\x8I_\x8L_\x8L_\x8Y_\x8:_\x8:_\x8P_\x8i_\x8x_\x8e_\x8l_\x8F_\x8o_\x8r_\x8m_\x8a_\x8t | ||
123 | PixelFormat | ||
124 | List·all·pixel·format·supported. | ||
125 | D\x8De\x8ef\x8fi\x8in\x8ni\x8it\x8ti\x8io\x8on\x8n·_\x8S_\x8I_\x8L_\x8L_\x8Y_\x8B_\x8a_\x8s_\x8e_\x8._\x8h_\x8:_\x86_\x80 | ||
126 | _\x8S_\x8I_\x8L_\x8L_\x8Y_\x8:_\x8:_\x8P_\x8i_\x8x_\x8e_\x8l_\x8O_\x8r_\x8i_\x8g_\x8i_\x8n | ||
127 | PixelOrigin | ||
128 | List·all·pixel·origin·supported. | ||
129 | D\x8De\x8ef\x8fi\x8in\x8ni\x8it\x8ti\x8io\x8on\x8n·_\x8S_\x8I_\x8L_\x8L_\x8Y_\x8B_\x8a_\x8s_\x8e_\x8._\x8h_\x8:_\x87_\x81 | ||
130 | _\x8S_\x8I_\x8L_\x8L_\x8Y_\x8:_\x8:_\x8D_\x8a_\x8t_\x8a_\x8S_\x8o_\x8u_\x8r_\x8c_\x8e | ||
131 | This·is·an·abstract·class·used·to·provide·data·to·the·loader. | ||
132 | D\x8De\x8ef\x8fi\x8in\x8ni\x8it\x8ti\x8io\x8on\x8n·_\x8S_\x8I_\x8L_\x8L_\x8Y_\x8D_\x8a_\x8t_\x8a_\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8._\x8h_\x8:_\x84_\x87 | ||
133 | _\x8S_\x8I_\x8L_\x8L_\x8Y_\x8:_\x8:_\x8I_\x8m_\x8a_\x8g_\x8e_\x8:_\x8:_\x8I_\x8m_\x8a_\x8g_\x8e | ||
Max diff block lines reached; 53/5812 bytes (0.91%) of diff not shown. |
Offset 1, 15 lines modified | Offset 1, 15 lines modified | ||
1 | <!DOCTYPE·html·PUBLIC·"-//W3C//DTD·XHTML·1.0·Transitional//EN"·"https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> | 1 | <!DOCTYPE·html·PUBLIC·"-//W3C//DTD·XHTML·1.0·Transitional//EN"·"https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> |
2 | <html·xmlns="http://www.w3.org/1999/xhtml"·lang="en-US"> | 2 | <html·xmlns="http://www.w3.org/1999/xhtml"·lang="en-US"> |
3 | <head> | 3 | <head> |
4 | <meta·http-equiv="Content-Type"·content="text/xhtml;charset=UTF-8"/> | 4 | <meta·http-equiv="Content-Type"·content="text/xhtml;charset=UTF-8"/> |
5 | <meta·http-equiv="X-UA-Compatible"·content="IE=11"/> | 5 | <meta·http-equiv="X-UA-Compatible"·content="IE=11"/> |
6 | <meta·name="generator"·content="Doxygen·1.9.8"/> | 6 | <meta·name="generator"·content="Doxygen·1.9.8"/> |
7 | <meta·name="viewport"·content="width=device-width,·initial-scale=1"/> | 7 | <meta·name="viewport"·content="width=device-width,·initial-scale=1"/> |
8 | <title>Simple·Image·Loading·LibrarY:·/build/reproducible-path/silly-0.1.0/src/SILLY | 8 | <title>Simple·Image·Loading·LibrarY:·/build/reproducible-path/silly-0.1.0/src/SILLYMemoryDataSource.cpp·Source·File</title> |
9 | <link·href="tabs.css"·rel="stylesheet"·type="text/css"/> | 9 | <link·href="tabs.css"·rel="stylesheet"·type="text/css"/> |
10 | <script·type="text/javascript"·src="jquery.js"></script> | 10 | <script·type="text/javascript"·src="jquery.js"></script> |
11 | <script·type="text/javascript"·src="dynsections.js"></script> | 11 | <script·type="text/javascript"·src="dynsections.js"></script> |
12 | <link·href="doxygen.css"·rel="stylesheet"·type="text/css"·/> | 12 | <link·href="doxygen.css"·rel="stylesheet"·type="text/css"·/> |
13 | </head> | 13 | </head> |
14 | <body> | 14 | <body> |
15 | <div·id="top"><!--·do·not·remove·this·div,·it·is·closed·by·doxygen!·--> | 15 | <div·id="top"><!--·do·not·remove·this·div,·it·is·closed·by·doxygen!·--> |
Offset 44, 23 lines modified | Offset 44, 23 lines modified | ||
44 | </script> | 44 | </script> |
45 | <div·id="nav-path"·class="navpath"> | 45 | <div·id="nav-path"·class="navpath"> |
46 | ··<ul> | 46 | ··<ul> |
47 | <li·class="navelem"><a·class="el"·href="dir_4fef79e7177ba769987a8da36c892c5f.html">build</a></li><li·class="navelem"><a·class="el"·href="dir_9def6061848686aab7e6212bb499d615.html">reproducible-path</a></li><li·class="navelem"><a·class="el"·href="dir_74170d5b58cefb7cb5a86fc552b183a3.html">silly-0.1.0</a></li><li·class="navelem"><a·class="el"·href="dir_7b53bc9a32849689d682eb098e891de5.html">src</a></li>··</ul> | 47 | <li·class="navelem"><a·class="el"·href="dir_4fef79e7177ba769987a8da36c892c5f.html">build</a></li><li·class="navelem"><a·class="el"·href="dir_9def6061848686aab7e6212bb499d615.html">reproducible-path</a></li><li·class="navelem"><a·class="el"·href="dir_74170d5b58cefb7cb5a86fc552b183a3.html">silly-0.1.0</a></li><li·class="navelem"><a·class="el"·href="dir_7b53bc9a32849689d682eb098e891de5.html">src</a></li>··</ul> |
48 | </div> | 48 | </div> |
49 | </div><!--·top·--> | 49 | </div><!--·top·--> |
50 | <div·class="header"> | 50 | <div·class="header"> |
51 | ··<div·class="headertitle"><div·class="title">SILLY | 51 | ··<div·class="headertitle"><div·class="title">SILLYMemoryDataSource.cpp</div></div> |
52 | </div><!--header--> | 52 | </div><!--header--> |
53 | <div·class="contents"> | 53 | <div·class="contents"> |
54 | <div·class="fragment"><div·class="line"><a·id="l00001"·name="l00001"></a><span·class="lineno">····1</span><span·class="comment">/***********************************************************************</span></div> | 54 | <div·class="fragment"><div·class="line"><a·id="l00001"·name="l00001"></a><span·class="lineno">····1</span><span·class="comment">/***********************************************************************</span></div> |
55 | <div·class="line"><a·id="l00002"·name="l00002"></a><span·class="lineno">····2</span><span·class="comment">····filename:···SILLY | 55 | <div·class="line"><a·id="l00002"·name="l00002"></a><span·class="lineno">····2</span><span·class="comment">····filename:···SILLYMemoryDataSource.cpp</span></div> |
56 | <div·class="line"><a·id="l00003"·name="l00003"></a><span·class="lineno">····3</span><span·class="comment">····created:····10·Jun·2006</span></div> | 56 | <div·class="line"><a·id="l00003"·name="l00003"></a><span·class="lineno">····3</span><span·class="comment">····created:····10·Jun·2006</span></div> |
57 | <div·class="line"><a·id="l00004"·name="l00004"></a><span·class="lineno">····4</span><span·class="comment">····author:·····Olivier·Delannoy·</span></div> | 57 | <div·class="line"><a·id="l00004"·name="l00004"></a><span·class="lineno">····4</span><span·class="comment">····author:·····Olivier·Delannoy·</span></div> |
58 | <div·class="line"><a·id="l00005"·name="l00005"></a><span·class="lineno">····5</span><span·class="comment"></span>·</div> | 58 | <div·class="line"><a·id="l00005"·name="l00005"></a><span·class="lineno">····5</span><span·class="comment"></span>·</div> |
59 | <div·class="line"><a·id="l00006"·name="l00006"></a><span·class="lineno">····6</span><span·class="comment">····purpose:····I | 59 | <div·class="line"><a·id="l00006"·name="l00006"></a><span·class="lineno">····6</span><span·class="comment">····purpose:····SILLYMemoryDataSource·definition·for·the·SILLY·library·</span></div> |
60 | <div·class="line"><a·id="l00007"·name="l00007"></a><span·class="lineno">····7</span><span·class="comment">*************************************************************************/</span></div> | 60 | <div·class="line"><a·id="l00007"·name="l00007"></a><span·class="lineno">····7</span><span·class="comment">*************************************************************************/</span></div> |
61 | <div·class="line"><a·id="l00008"·name="l00008"></a><span·class="lineno">····8</span><span·class="comment">/***************************************************************************</span></div> | 61 | <div·class="line"><a·id="l00008"·name="l00008"></a><span·class="lineno">····8</span><span·class="comment">/***************************************************************************</span></div> |
62 | <div·class="line"><a·id="l00009"·name="l00009"></a><span·class="lineno">····9</span><span·class="comment">·*···Copyright·(C)·2004·-·2006·Paul·D·Turner·&·The·CEGUI·Development·Team</span></div> | 62 | <div·class="line"><a·id="l00009"·name="l00009"></a><span·class="lineno">····9</span><span·class="comment">·*···Copyright·(C)·2004·-·2006·Paul·D·Turner·&·The·CEGUI·Development·Team</span></div> |
63 | <div·class="line"><a·id="l00010"·name="l00010"></a><span·class="lineno">···10</span><span·class="comment">·*</span></div> | 63 | <div·class="line"><a·id="l00010"·name="l00010"></a><span·class="lineno">···10</span><span·class="comment">·*</span></div> |
64 | <div·class="line"><a·id="l00011"·name="l00011"></a><span·class="lineno">···11</span><span·class="comment">·*···Permission·is·hereby·granted,·free·of·charge,·to·any·person·obtaining</span></div> | 64 | <div·class="line"><a·id="l00011"·name="l00011"></a><span·class="lineno">···11</span><span·class="comment">·*···Permission·is·hereby·granted,·free·of·charge,·to·any·person·obtaining</span></div> |
65 | <div·class="line"><a·id="l00012"·name="l00012"></a><span·class="lineno">···12</span><span·class="comment">·*···a·copy·of·this·software·and·associated·documentation·files·(the</span></div> | 65 | <div·class="line"><a·id="l00012"·name="l00012"></a><span·class="lineno">···12</span><span·class="comment">·*···a·copy·of·this·software·and·associated·documentation·files·(the</span></div> |
66 | <div·class="line"><a·id="l00013"·name="l00013"></a><span·class="lineno">···13</span><span·class="comment">·*···"Software"),·to·deal·in·the·Software·without·restriction,·including</span></div> | 66 | <div·class="line"><a·id="l00013"·name="l00013"></a><span·class="lineno">···13</span><span·class="comment">·*···"Software"),·to·deal·in·the·Software·without·restriction,·including</span></div> |
Offset 80, 69 lines modified | Offset 80, 40 lines modified | ||
80 | <div·class="line"><a·id="l00027"·name="l00027"></a><span·class="lineno">···27</span><span·class="comment">·*···ARISING·FROM,·OUT·OF·OR·IN·CONNECTION·WITH·THE·SOFTWARE·OR·THE·USE·OR</span></div> | 80 | <div·class="line"><a·id="l00027"·name="l00027"></a><span·class="lineno">···27</span><span·class="comment">·*···ARISING·FROM,·OUT·OF·OR·IN·CONNECTION·WITH·THE·SOFTWARE·OR·THE·USE·OR</span></div> |
81 | <div·class="line"><a·id="l00028"·name="l00028"></a><span·class="lineno">···28</span><span·class="comment">·*···OTHER·DEALINGS·IN·THE·SOFTWARE.</span></div> | 81 | <div·class="line"><a·id="l00028"·name="l00028"></a><span·class="lineno">···28</span><span·class="comment">·*···OTHER·DEALINGS·IN·THE·SOFTWARE.</span></div> |
82 | <div·class="line"><a·id="l00029"·name="l00029"></a><span·class="lineno">···29</span><span·class="comment">·***************************************************************************/</span></div> | 82 | <div·class="line"><a·id="l00029"·name="l00029"></a><span·class="lineno">···29</span><span·class="comment">·***************************************************************************/</span></div> |
83 | <div·class="line"><a·id="l00030"·name="l00030"></a><span·class="lineno">···30</span><span·class="preprocessor">#ifdef·HAVE_CONFIG_H</span></div> | 83 | <div·class="line"><a·id="l00030"·name="l00030"></a><span·class="lineno">···30</span><span·class="preprocessor">#ifdef·HAVE_CONFIG_H</span></div> |
84 | <div·class="line"><a·id="l00031"·name="l00031"></a><span·class="lineno">···31</span><span·class="preprocessor">#include·<config.h></span></div> | 84 | <div·class="line"><a·id="l00031"·name="l00031"></a><span·class="lineno">···31</span><span·class="preprocessor">#include·<config.h></span></div> |
85 | <div·class="line"><a·id="l00032"·name="l00032"></a><span·class="lineno">···32</span><span·class="preprocessor">#endif</span></div> | 85 | <div·class="line"><a·id="l00032"·name="l00032"></a><span·class="lineno">···32</span><span·class="preprocessor">#endif</span></div> |
86 | <div·class="line"><a·id="l00033"·name="l00033"></a><span·class="lineno">···33</span>·</div> | 86 | <div·class="line"><a·id="l00033"·name="l00033"></a><span·class="lineno">···33</span>·</div> |
87 | <div·class="line"><a·id="l00034"·name="l00034"></a><span·class="lineno">···34</span><span·class="preprocessor">#include·"SILLY | 87 | <div·class="line"><a·id="l00034"·name="l00034"></a><span·class="lineno">···34</span><span·class="preprocessor">#include·"SILLYMemoryDataSource.h"</span></div> |
88 | <div·class="line"><a·id="l00035"·name="l00035"></a><span·class="lineno">···35</span>·</div> | ||
88 | <div·class="line"><a·id="l0003 | 89 | <div·class="line"><a·id="l00036"·name="l00036"></a><span·class="lineno">···36</span><span·class="preprocessor">#ifndef·SILLY_OPT_INLINE</span></div> |
89 | <div·class="line"><a·id="l0003 | 90 | <div·class="line"><a·id="l00037"·name="l00037"></a><span·class="lineno">···37</span><span·class="preprocessor">#define·inline·</span></div> |
90 | <div·class="line"><a·id="l0003 | 91 | <div·class="line"><a·id="l00038"·name="l00038"></a><span·class="lineno">···38</span><span·class="preprocessor">#include·"SILLYMemoryDataSource.icpp"</span></div> |
91 | <div·class="line"><a·id="l0003 | 92 | <div·class="line"><a·id="l00039"·name="l00039"></a><span·class="lineno">···39</span><span·class="preprocessor">#undef·inline</span></div> |
92 | <div·class="line"><a·id="l000 | 93 | <div·class="line"><a·id="l00040"·name="l00040"></a><span·class="lineno">···40</span><span·class="preprocessor">#endif·</span></div> |
93 | <div·class="line"><a·id="l0004 | 94 | <div·class="line"><a·id="l00041"·name="l00041"></a><span·class="lineno">···41</span>·</div> |
94 | <div·class="line"><a·id="l0004 | 95 | <div·class="line"><a·id="l00042"·name="l00042"></a><span·class="lineno">···42</span><span·class="comment">//·Start·of·SILLY·namespace·section·</span></div> |
95 | <div·class="line"><a·id="l0004 | 96 | <div·class="line"><a·id="l00043"·name="l00043"></a><span·class="lineno">···43</span><span·class="keyword">namespace·</span><a·class="code·hl_namespace"·href="a00129.html">SILLY</a></div> |
96 | <div·class="line"><a·id="l00043"·name="l00043"></a><span·class="lineno">···43</span>{·</div> | ||
97 | <div·class="line"><a·id="l00044"·name="l00044"></a><span·class="lineno">···44</span> | 97 | <div·class="line"><a·id="l00044"·name="l00044"></a><span·class="lineno">···44</span>{</div> |
98 | <div·class="line"><a·id="l00045"·name="l00045"></a><span·class="lineno">···45</span>··</div> | ||
98 | <div·class="foldopen"·id="foldopen0004 | 99 | <div·class="foldopen"·id="foldopen00046"·data-start="{"·data-end="}"> |
99 | <div·class="line"><a·id="l0004 | 100 | <div·class="line"><a·id="l00046"·name="l00046"></a><span·class="lineno"><a·class="line"·href="a00993.html#aaf9b064e68ab0cd091926faf2ac8ab11">···46</a></span><a·class="code·hl_function"·href="a00993.html#aaf9b064e68ab0cd091926faf2ac8ab11">MemoryDataSource::MemoryDataSource</a>(<span·cla[·...·truncated·by·diffoscope;·len:·115,·SHA:·dbdf9ad6dcdb63f97e54dc7054e125c176d729e1b57d2ef23927f943800b1e98·...·])</div> |
101 | <div·class="line"><a·id="l00047"·name="l00047"></a><span·class="lineno">···47</span>····:·d_bytes(data),·d_size(size)</div> | ||
100 | <div·class="line"><a·id="l0004 | 102 | <div·class="line"><a·id="l00048"·name="l00048"></a><span·class="lineno">···48</span>{</div> |
103 | <div·class="line"><a·id="l00049"·name="l00049"></a><span·class="lineno">···49</span>····assert(data·&&·<span·class="stringliteral">"ASSERT:·data·point·to·an·invalid·memory"</span>);</div> | ||
104 | <div·class="line"><a·id="l00050"·name="l00050"></a><span·class="lineno">···50</span>····assert(size·&&·<span·class="stringliteral">"ASSERT:·size·is·equal·to·0"</span>);</div> | ||
101 | <div·class="line"><a·id="l00047"·name="l00047"></a><span·class="lineno">···47</span>····<span·class="keywordtype">size_t</span>·depth;</div> | ||
102 | <div·class="line"><a·id="l00048"·name="l00048"></a><span·class="lineno">···48</span>····<span·class="keywordflow">switch</span>(d_format)</div> | ||
103 | <div·class="line"><a·id="l00049"·name="l00049"></a><span·class="lineno">···49</span>····{</div> | ||
104 | <div·class="line"><a·id="l00050"·name="l00050"></a><span·class="lineno">···50</span>····<span·class="keywordflow">case</span>·PF_A1B5G5R5:</div> | ||
105 | <div·class="line"><a·id="l00051"·name="l00051"></a><span·class="lineno">···51</span>········depth·=·2;</div> | ||
106 | <div·class="line"><a·id="l00052"·name="l00052"></a><span·class="lineno">···52</span>········<span·class="keywordflow">break</span>;</div> | ||
107 | <div·class="line"><a·id="l00053"·name="l00053"></a><span·class="lineno">···53</span>····<span·class="keywordflow">case</span>·PF_RGB:</div> | ||
108 | <div·class="line"><a·id="l00054"·name="l00054"></a><span·class="lineno">···54</span>········depth·=·3;</div> | ||
109 | <div·class="line"><a·id="l00055"·name="l00055"></a><span·class="lineno">···55</span>········<span·class="keywordflow">break</span>;</div> | ||
110 | <div·class="line"><a·id="l00056"·name="l00056"></a><span·class="lineno">···56</span>····<span·class="keywordflow">case</span>·PF_RGBA:</div> | ||
111 | <div·class="line"><a·id="l00057"·name="l00057"></a><span·class="lineno">···57</span>········depth·=·4;</div> | ||
112 | <div·class="line"><a·id="l00058"·name="l00058"></a><span·class="lineno">···58</span>········<span·class="keywordflow">break</span>;</div> | ||
113 | <div·class="line"><a·id="l00059"·name="l00059"></a><span·class="lineno">···59</span>····}</div> | ||
114 | <div·class="line"><a·id="l00060"·name="l00060"></a><span·class="lineno">···60</span>·······</div> | ||
115 | <div·class="line"><a·id="l00061"·name="l00061"></a><span·class="lineno">···61</span>····<span·class="comment">//·Do·the·flipping·</span></div> | ||
116 | <div·class="line"><a·id="l00062"·name="l00062"></a><span·class="lineno">···62</span>····<span·class="keywordtype">byte</span>·*p1,*p2,*tmp;······<span·class="comment">//·tmp·pointers</span></div> | ||
117 | <div·class="line"><a·id="l00063"·name="l00063"></a><span·class="lineno">···63</span>····<span·class="keywordtype">size_t</span>·len·=·d_width·*·depth;·<span·class="comment">//·length·of·horizontal·line·in·bytes</span></div> | ||
118 | <div·class="line"><a·id="l00064"·name="l00064"></a><span·class="lineno">···64</span>····tmp·=·<span·class="keyword">new</span>·<span·class="keywordtype">byte</span>[len];····<span·class="comment">//·Allocate·a·temporary·line</span></div> | ||
119 | <div·class="line"><a·id="l00065"·name="l00065"></a><span·class="lineno">···65</span>····<span·class="keywordflow">if</span>·(·!tmp·)</div> | ||
120 | <div·class="line"><a·id="l00066"·name="l00066"></a><span·class="lineno">···66</span>········<span·class="keywordflow">return</span>·<span·class="keyword">false</span>;</div> | ||
121 | <div·class="line"><a·id="l00067"·name="l00067"></a><span·class="lineno">···67</span>····</div> | ||
122 | <div·class="line"><a·id="l00068"·name="l00068"></a><span·class="lineno">···68</span>····<span·class="keywordtype">size_t</span>·y·,·y2;</div> | ||
123 | <div·class="line"><a·id="l00069"·name="l00069"></a><span·class="lineno">···69</span>····y2·=·d_height·-·1;</div> | ||
124 | <div·class="line"><a·id="l00070"·name="l00070"></a><span·class="lineno">···70</span>····<span·class="keywordflow">for</span>·(·y·=·0;·y·<·d_height·>>·1;·y++·)</div> | ||
125 | <div·class="line"><a·id="l00071"·name="l00071"></a><span·class="lineno">···71</span>····{</div> | ||
126 | <div·class="line"><a·id="l00072"·name="l00072"></a><span·class="lineno">···72</span>········p1·=·(d_pixels)·+·len·*·y;</div> | ||
127 | <div·class="line"><a·id="l00073"·name="l00073"></a><span·class="lineno">···73</span>········p2·=·(d_pixels)·+·len·*·y2;</div> | ||
128 | <div·class="line"><a·id="l00074"·name="l00074"></a><span·class="lineno">···74</span>········memcpy(·tmp,·p1,·len·);</div> | ||
129 | <div·class="line"><a·id="l00075"·name="l00075"></a><span·class="lineno">···75</span>········memcpy(·p1,·p2,·len·);</div> | ||
130 | <div·class="line"><a·id="l00076"·name="l00076"></a><span·class="lineno">···76</span>········memcpy(·p2,·tmp,·len·);</div> | ||
131 | <div·class="line"><a·id="l00077"·name="l00077"></a><span·class="lineno">···77</span>········y2--;</div> | ||
132 | <div·class="line"><a·id="l00078"·name="l00078"></a><span·class="lineno">···78</span>····}</div> | ||
133 | <div·class="line"><a·id="l00079"·name="l00079"></a><span·class="lineno">···79</span>····<span·class="keyword">delete</span>·[]·tmp;</div> | ||
134 | <div·class="line"><a·id="l00080"·name="l00080"></a><span·class="lineno">···80</span>····<span·class="keywordflow">return</span>·<span·class="keyword">true</span>;</div> | ||
135 | <div·class="line"><a·id="l000 | 105 | <div·class="line"><a·id="l00051"·name="l00051"></a><span·class="lineno">···51</span>}</div> |
136 | </div> | 106 | </div> |
137 | <div·class="line"><a·id="l000 | 107 | <div·class="line"><a·id="l00052"·name="l00052"></a><span·class="lineno">···52</span>·</div> |
108 | <div·class="line"><a·id="l00053"·name="l00053"></a><span·class="lineno">···53</span>}·<span·class="comment">//·End·of·SILLY·namespace·section·</span></div> | ||
138 | <div·class="line"><a·id="l000 | 109 | <div·class="line"><a·id="l00054"·name="l00054"></a><span·class="lineno">···54</span>·</div> |
139 | <div·class="line"><a·id="l000 | 110 | <div·class="line"><a·id="l00055"·name="l00055"></a><span·class="lineno">···55</span>·</div> |
140 | <div·class="ttc"·id="aa00129_html"><div·class="ttname"><a·href="a00129.html">SILLY</a></div><div·class="ttdoc">Simple·Image·Loading·LibrarY·namespace.</div><div·class="ttdef"><b>Definition</b>·<a·href="a0002 | 111 | <div·class="ttc"·id="aa00129_html"><div·class="ttname"><a·href="a00129.html">SILLY</a></div><div·class="ttdoc">Simple·Image·Loading·LibrarY·namespace.</div><div·class="ttdef"><b>Definition</b>·<a·href="a00023_source.html#l00045">SILLYJPGImageContext.cpp:46</a></div></div> |
141 | <div·class="ttc"·id="aa009 | 112 | <div·class="ttc"·id="aa00993_html_aaf9b064e68ab0cd091926faf2ac8ab11"><div·class="ttname"><a·href="a00993.html#aaf9b064e68ab0cd091926faf2ac8ab11">SILLY::MemoryDataSource::MemoryDataSource</a></div><div·class="ttdeci">MemoryDataSource(const·byte·*data,·size_t·size)</div><div·class="t[·...·truncated·by·diffoscope;·len:·163,·SHA:·eac5054c7f2e30b6d1f4c6ea2fad83f03c7270cafe3b7db25f44575cefdcc4a8·...·]</a></div></div> |
142 | </div><!--·fragment·--></div><!--·contents·--> | 113 | </div><!--·fragment·--></div><!--·contents·--> |
143 | <!--·start·footer·part·--> | 114 | <!--·start·footer·part·--> |
144 | <hr·class="footer"/><address·class="footer"><small> | 115 | <hr·class="footer"/><address·class="footer"><small> |
145 | Generated·by <a·href="https://www.doxygen.org/index.html"><img·class="footer"·src="doxygen.svg"·width="104"·height="31"·alt="doxygen"/></a>·1.9.8 | 116 | Generated·by <a·href="https://www.doxygen.org/index.html"><img·class="footer"·src="doxygen.svg"·width="104"·height="31"·alt="doxygen"/></a>·1.9.8 |
146 | </small></address> | 117 | </small></address> |
147 | </body> | 118 | </body> |
148 | </html> | 119 | </html> |
Offset 1, 19 lines modified | Offset 1, 19 lines modified | ||
1 | Simple·Image·Loading·LibrarY 0.1.0 | 1 | Simple·Image·Loading·LibrarY 0.1.0 |
2 | ····*·_\x8b_\x8u_\x8i_\x8l_\x8d | 2 | ····*·_\x8b_\x8u_\x8i_\x8l_\x8d |
3 | ····*·_\x8r_\x8e_\x8p_\x8r_\x8o_\x8d_\x8u_\x8c_\x8i_\x8b_\x8l_\x8e_\x8-_\x8p_\x8a_\x8t_\x8h | 3 | ····*·_\x8r_\x8e_\x8p_\x8r_\x8o_\x8d_\x8u_\x8c_\x8i_\x8b_\x8l_\x8e_\x8-_\x8p_\x8a_\x8t_\x8h |
4 | ····*·_\x8s_\x8i_\x8l_\x8l_\x8y_\x8-_\x80_\x8._\x81_\x8._\x80 | 4 | ····*·_\x8s_\x8i_\x8l_\x8l_\x8y_\x8-_\x80_\x8._\x81_\x8._\x80 |
5 | ····*·_\x8s_\x8r_\x8c | 5 | ····*·_\x8s_\x8r_\x8c |
6 | SILLY | 6 | SILLYMemoryDataSource.cpp |
7 | 1/*********************************************************************** | 7 | 1/*********************************************************************** |
8 | 2·filename:·SILLY | 8 | 2·filename:·SILLYMemoryDataSource.cpp |
9 | 3·created:·10·Jun·2006 | 9 | 3·created:·10·Jun·2006 |
10 | 4·author:·Olivier·Delannoy | 10 | 4·author:·Olivier·Delannoy |
11 | 5 | 11 | 5 |
12 | 6·purpose:·I | 12 | 6·purpose:·SILLYMemoryDataSource·definition·for·the·SILLY·library |
13 | 7*************************************************************************/ | 13 | 7*************************************************************************/ |
14 | 8/*************************************************************************** | 14 | 8/*************************************************************************** |
15 | 9·*·Copyright·(C)·2004·-·2006·Paul·D·Turner·&·The·CEGUI·Development·Team | 15 | 9·*·Copyright·(C)·2004·-·2006·Paul·D·Turner·&·The·CEGUI·Development·Team |
16 | 10·* | 16 | 10·* |
17 | 11·*·Permission·is·hereby·granted,·free·of·charge,·to·any·person·obtaining | 17 | 11·*·Permission·is·hereby·granted,·free·of·charge,·to·any·person·obtaining |
18 | 12·*·a·copy·of·this·software·and·associated·documentation·files·(the | 18 | 12·*·a·copy·of·this·software·and·associated·documentation·files·(the |
19 | 13·*·"Software"),·to·deal·in·the·Software·without·restriction,·including | 19 | 13·*·"Software"),·to·deal·in·the·Software·without·restriction,·including |
Offset 33, 67 lines modified | Offset 33, 38 lines modified | ||
33 | 27·*·ARISING·FROM,·OUT·OF·OR·IN·CONNECTION·WITH·THE·SOFTWARE·OR·THE·USE·OR | 33 | 27·*·ARISING·FROM,·OUT·OF·OR·IN·CONNECTION·WITH·THE·SOFTWARE·OR·THE·USE·OR |
34 | 28·*·OTHER·DEALINGS·IN·THE·SOFTWARE. | 34 | 28·*·OTHER·DEALINGS·IN·THE·SOFTWARE. |
35 | 29·***************************************************************************/ | 35 | 29·***************************************************************************/ |
36 | 30#ifdef·HAVE_CONFIG_H | 36 | 30#ifdef·HAVE_CONFIG_H |
37 | 31#include·<config.h> | 37 | 31#include·<config.h> |
38 | 32#endif | 38 | 32#endif |
39 | 33 | 39 | 33 |
40 | 34#include·"SILLY | 40 | 34#include·"SILLYMemoryDataSource.h" |
41 | 35 | ||
41 | 3 | 42 | 36#ifndef·SILLY_OPT_INLINE |
42 | 3 | 43 | 37#define·inline |
43 | 3 | 44 | 38#include·"SILLYMemoryDataSource.icpp" |
44 | 3 | 45 | 39#undef·inline |
45 | 46 | 40#endif | |
46 | 40#include·<cstring> | ||
47 | 41 | 47 | 41 |
48 | 42//·Start·of·SILLY·namespace·section | ||
48 | 4 | 49 | 43namespace·_\x8S_\x8I_\x8L_\x8L_\x8Y |
49 | 43{ | ||
50 | 44 | 50 | 44{ |
51 | 45 | ||
52 | _\x84_\x86_\x8M_\x8e_\x8m_\x8o_\x8r_\x8y_\x8D_\x8a_\x8t_\x8a_\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8:_\x8:_\x8M_\x8e_\x8m_\x8o_\x8r_\x8y_\x8D_\x8a_\x8t_\x8a_\x8S_\x8o_\x8u_\x8r_\x8c_\x8e(const·byte*·data,·size_t·size) | ||
53 | 47·:·d_bytes(data),·d_size(size) | ||
54 | 48{ | ||
55 | 49·assert(data·&&·"ASSERT:·data·point·to·an·invalid·memory"); | ||
56 | 50·assert(size·&&·"ASSERT:·size·is·equal·to·0"); | ||
57 | 51} | ||
58 | 52 | ||
59 | 53}·//·End·of·SILLY·namespace·section | ||
60 | 54 | ||
61 | 55 | ||
51 | _\x84_\x85bool·_\x8I_\x8m_\x8a_\x8g_\x8e_\x8C_\x8o_\x8n_\x8t_\x8e_\x8x_\x8t_\x8:_\x8:_\x8f_\x8l_\x8i_\x8p_\x8V_\x8e_\x8r_\x8t_\x8i_\x8c_\x8a_\x8l_\x8l_\x8y() | ||
52 | 46{ | ||
53 | 47·size_t·depth; | ||
54 | 48·switch(d_format) | ||
55 | 49·{ | ||
56 | 50·case·PF_A1B5G5R5: | ||
57 | 51·depth·=·2; | ||
58 | 52·break; | ||
59 | 53·case·PF_RGB: | ||
60 | 54·depth·=·3; | ||
61 | 55·break; | ||
62 | 56·case·PF_RGBA: | ||
63 | 57·depth·=·4; | ||
64 | 58·break; | ||
65 | 59·} | ||
66 | 60 | ||
67 | 61·//·Do·the·flipping | ||
68 | 62·byte·*p1,*p2,*tmp;·//·tmp·pointers | ||
69 | 63·size_t·len·=·d_width·*·depth;·//·length·of·horizontal·line·in·bytes | ||
70 | 64·tmp·=·new·byte[len];·//·Allocate·a·temporary·line | ||
71 | 65·if·(·!tmp·) | ||
72 | 66·return·false; | ||
73 | 67 | ||
74 | 68·size_t·y·,·y2; | ||
75 | 69·y2·=·d_height·-·1; | ||
76 | 70·for·(·y·=·0;·y·<·d_height·>>·1;·y++·) | ||
77 | 71·{ | ||
78 | 72·p1·=·(d_pixels)·+·len·*·y; | ||
79 | 73·p2·=·(d_pixels)·+·len·*·y2; | ||
80 | 74·memcpy(·tmp,·p1,·len·); | ||
81 | 75·memcpy(·p1,·p2,·len·); | ||
82 | 76·memcpy(·p2,·tmp,·len·); | ||
83 | 77·y2--; | ||
84 | 78·} | ||
85 | 79·delete·[]·tmp; | ||
86 | 80·return·true; | ||
87 | 81} | ||
88 | 82 | ||
89 | 83 | ||
90 | 84}·//·End·section·of·namespace·SILLY | ||
91 | _\x8S_\x8I_\x8L_\x8L_\x8Y | 62 | _\x8S_\x8I_\x8L_\x8L_\x8Y |
92 | Simple·Image·Loading·LibrarY·namespace. | 63 | Simple·Image·Loading·LibrarY·namespace. |
93 | D\x8De\x8ef\x8fi\x8in\x8ni\x8it\x8ti\x8io\x8on\x8n·_\x8S_\x8I_\x8L_\x8L_\x8Y_\x8J_\x8P_\x8G_\x8I_\x8m_\x8a_\x8g_\x8e_\x8C_\x8o_\x8n_\x8t_\x8e_\x8x_\x8t_\x8._\x8c_\x8p_\x8p_\x8:_\x84_\x86 | 64 | D\x8De\x8ef\x8fi\x8in\x8ni\x8it\x8ti\x8io\x8on\x8n·_\x8S_\x8I_\x8L_\x8L_\x8Y_\x8J_\x8P_\x8G_\x8I_\x8m_\x8a_\x8g_\x8e_\x8C_\x8o_\x8n_\x8t_\x8e_\x8x_\x8t_\x8._\x8c_\x8p_\x8p_\x8:_\x84_\x86 |
94 | _\x8S_\x8I_\x8L_\x8L_\x8Y_\x8:_\x8:_\x8I_\x8m_\x8a_\x8g_\x8e_\x8C_\x8o_\x8n_\x8t_\x8e_\x8x_\x8t_\x8:_\x8:_\x8f_\x8l_\x8i_\x8p_\x8V_\x8e_\x8r_\x8t_\x8i_\x8c_\x8a_\x8l_\x8l_\x8y | ||
95 | bool·flipVertically() | ||
96 | 65 | _.S_.I_.L_.L_.Y_.:_.:_.M_.e_.m_.o_.r_.y_.D_.a_.t_.a_.S_.o_.u_.r_.c_.e_.:_.:_.M_.e_.m_.o_.r_.y_.D_.a_.t_.a_.S_.o_.u_.r_.c_.e | |
66 | MemoryDataSource(const·byte·*data,·size_t·size) | ||
67 | Create·a·data·source·from·an·existing·memory·area. | ||
97 | D\x8De\x8ef\x8fi\x8in\x8ni\x8it\x8ti\x8io\x8on\x8n·_\x8S_\x8I_\x8L_\x8L_\x8Y_\x8 | 68 | D\x8De\x8ef\x8fi\x8in\x8ni\x8it\x8ti\x8io\x8on\x8n·_\x8S_\x8I_\x8L_\x8L_\x8Y_\x8M_.e_.m_.o_.r_.y_.D_.a_.t_.a_.S_.o_.u_.r_.c_.e_.._.c_.p_.p_.:_.4_.6 |
98 | =============================================================================== | 69 | =============================================================================== |
99 | ·····Generated·by _\x8[_\x8d_\x8o_\x8x_\x8y_\x8g_\x8e_\x8n_\x8]·1.9.8 | 70 | ·····Generated·by _\x8[_\x8d_\x8o_\x8x_\x8y_\x8g_\x8e_\x8n_\x8]·1.9.8 |
Offset 1, 15 lines modified | Offset 1, 15 lines modified | ||
1 | <!DOCTYPE·html·PUBLIC·"-//W3C//DTD·XHTML·1.0·Transitional//EN"·"https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> | 1 | <!DOCTYPE·html·PUBLIC·"-//W3C//DTD·XHTML·1.0·Transitional//EN"·"https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> |
2 | <html·xmlns="http://www.w3.org/1999/xhtml"·lang="en-US"> | 2 | <html·xmlns="http://www.w3.org/1999/xhtml"·lang="en-US"> |
3 | <head> | 3 | <head> |
4 | <meta·http-equiv="Content-Type"·content="text/xhtml;charset=UTF-8"/> | 4 | <meta·http-equiv="Content-Type"·content="text/xhtml;charset=UTF-8"/> |
5 | <meta·http-equiv="X-UA-Compatible"·content="IE=11"/> | 5 | <meta·http-equiv="X-UA-Compatible"·content="IE=11"/> |
6 | <meta·name="generator"·content="Doxygen·1.9.8"/> | 6 | <meta·name="generator"·content="Doxygen·1.9.8"/> |
7 | <meta·name="viewport"·content="width=device-width,·initial-scale=1"/> | 7 | <meta·name="viewport"·content="width=device-width,·initial-scale=1"/> |
8 | <title>Simple·Image·Loading·LibrarY:·/build/reproducible-path/silly-0.1.0/src/SILLY | 8 | <title>Simple·Image·Loading·LibrarY:·/build/reproducible-path/silly-0.1.0/src/SILLYImageLoader.cpp·Source·File</title> |
9 | <link·href="tabs.css"·rel="stylesheet"·type="text/css"/> | 9 | <link·href="tabs.css"·rel="stylesheet"·type="text/css"/> |
10 | <script·type="text/javascript"·src="jquery.js"></script> | 10 | <script·type="text/javascript"·src="jquery.js"></script> |
11 | <script·type="text/javascript"·src="dynsections.js"></script> | 11 | <script·type="text/javascript"·src="dynsections.js"></script> |
12 | <link·href="doxygen.css"·rel="stylesheet"·type="text/css"·/> | 12 | <link·href="doxygen.css"·rel="stylesheet"·type="text/css"·/> |
13 | </head> | 13 | </head> |
14 | <body> | 14 | <body> |
15 | <div·id="top"><!--·do·not·remove·this·div,·it·is·closed·by·doxygen!·--> | 15 | <div·id="top"><!--·do·not·remove·this·div,·it·is·closed·by·doxygen!·--> |
Offset 44, 23 lines modified | Offset 44, 23 lines modified | ||
44 | </script> | 44 | </script> |
45 | <div·id="nav-path"·class="navpath"> | 45 | <div·id="nav-path"·class="navpath"> |
46 | ··<ul> | 46 | ··<ul> |
47 | <li·class="navelem"><a·class="el"·href="dir_4fef79e7177ba769987a8da36c892c5f.html">build</a></li><li·class="navelem"><a·class="el"·href="dir_9def6061848686aab7e6212bb499d615.html">reproducible-path</a></li><li·class="navelem"><a·class="el"·href="dir_74170d5b58cefb7cb5a86fc552b183a3.html">silly-0.1.0</a></li><li·class="navelem"><a·class="el"·href="dir_7b53bc9a32849689d682eb098e891de5.html">src</a></li>··</ul> | 47 | <li·class="navelem"><a·class="el"·href="dir_4fef79e7177ba769987a8da36c892c5f.html">build</a></li><li·class="navelem"><a·class="el"·href="dir_9def6061848686aab7e6212bb499d615.html">reproducible-path</a></li><li·class="navelem"><a·class="el"·href="dir_74170d5b58cefb7cb5a86fc552b183a3.html">silly-0.1.0</a></li><li·class="navelem"><a·class="el"·href="dir_7b53bc9a32849689d682eb098e891de5.html">src</a></li>··</ul> |
48 | </div> | 48 | </div> |
49 | </div><!--·top·--> | 49 | </div><!--·top·--> |
50 | <div·class="header"> | 50 | <div·class="header"> |
51 | ··<div·class="headertitle"><div·class="title">SILLY | 51 | ··<div·class="headertitle"><div·class="title">SILLYImageLoader.cpp</div></div> |
52 | </div><!--header--> | 52 | </div><!--header--> |
53 | <div·class="contents"> | 53 | <div·class="contents"> |
54 | <div·class="fragment"><div·class="line"><a·id="l00001"·name="l00001"></a><span·class="lineno">····1</span><span·class="comment">/***********************************************************************</span></div> | 54 | <div·class="fragment"><div·class="line"><a·id="l00001"·name="l00001"></a><span·class="lineno">····1</span><span·class="comment">/***********************************************************************</span></div> |
55 | <div·class="line"><a·id="l00002"·name="l00002"></a><span·class="lineno">····2</span><span·class="comment">····filename:··· | 55 | <div·class="line"><a·id="l00002"·name="l00002"></a><span·class="lineno">····2</span><span·class="comment">····filename:···ImageLoader.cpp</span></div> |
56 | <div·class="line"><a·id="l00003"·name="l00003"></a><span·class="lineno">····3</span><span·class="comment">····created:····10·Jun·2006</span></div> | 56 | <div·class="line"><a·id="l00003"·name="l00003"></a><span·class="lineno">····3</span><span·class="comment">····created:····10·Jun·2006</span></div> |
57 | <div·class="line"><a·id="l00004"·name="l00004"></a><span·class="lineno">····4</span><span·class="comment">····author:·····Olivier·Delannoy</span></div> | 57 | <div·class="line"><a·id="l00004"·name="l00004"></a><span·class="lineno">····4</span><span·class="comment">····author:·····Olivier·Delannoy·</span></div> |
58 | <div·class="line"><a·id="l00005"·name="l00005"></a><span·class="lineno">····5</span><span·class="comment"></span>·</div> | 58 | <div·class="line"><a·id="l00005"·name="l00005"></a><span·class="lineno">····5</span><span·class="comment"></span>·</div> |
59 | <div·class="line"><a·id="l00006"·name="l00006"></a><span·class="lineno">····6</span><span·class="comment">····purpose:···· | 59 | <div·class="line"><a·id="l00006"·name="l00006"></a><span·class="lineno">····6</span><span·class="comment">····purpose:····Implementation·of·the·ImageLoader··</span></div> |
60 | <div·class="line"><a·id="l00007"·name="l00007"></a><span·class="lineno">····7</span><span·class="comment">*************************************************************************/</span></div> | 60 | <div·class="line"><a·id="l00007"·name="l00007"></a><span·class="lineno">····7</span><span·class="comment">*************************************************************************/</span></div> |
61 | <div·class="line"><a·id="l00008"·name="l00008"></a><span·class="lineno">····8</span><span·class="comment">/***************************************************************************</span></div> | 61 | <div·class="line"><a·id="l00008"·name="l00008"></a><span·class="lineno">····8</span><span·class="comment">/***************************************************************************</span></div> |
62 | <div·class="line"><a·id="l00009"·name="l00009"></a><span·class="lineno">····9</span><span·class="comment">·*···Copyright·(C)·2004·-·2006·Paul·D·Turner·&·The·CEGUI·Development·Team</span></div> | 62 | <div·class="line"><a·id="l00009"·name="l00009"></a><span·class="lineno">····9</span><span·class="comment">·*···Copyright·(C)·2004·-·2006·Paul·D·Turner·&·The·CEGUI·Development·Team</span></div> |
63 | <div·class="line"><a·id="l00010"·name="l00010"></a><span·class="lineno">···10</span><span·class="comment">·*</span></div> | 63 | <div·class="line"><a·id="l00010"·name="l00010"></a><span·class="lineno">···10</span><span·class="comment">·*</span></div> |
64 | <div·class="line"><a·id="l00011"·name="l00011"></a><span·class="lineno">···11</span><span·class="comment">·*···Permission·is·hereby·granted,·free·of·charge,·to·any·person·obtaining</span></div> | 64 | <div·class="line"><a·id="l00011"·name="l00011"></a><span·class="lineno">···11</span><span·class="comment">·*···Permission·is·hereby·granted,·free·of·charge,·to·any·person·obtaining</span></div> |
65 | <div·class="line"><a·id="l00012"·name="l00012"></a><span·class="lineno">···12</span><span·class="comment">·*···a·copy·of·this·software·and·associated·documentation·files·(the</span></div> | 65 | <div·class="line"><a·id="l00012"·name="l00012"></a><span·class="lineno">···12</span><span·class="comment">·*···a·copy·of·this·software·and·associated·documentation·files·(the</span></div> |
66 | <div·class="line"><a·id="l00013"·name="l00013"></a><span·class="lineno">···13</span><span·class="comment">·*···"Software"),·to·deal·in·the·Software·without·restriction,·including</span></div> | 66 | <div·class="line"><a·id="l00013"·name="l00013"></a><span·class="lineno">···13</span><span·class="comment">·*···"Software"),·to·deal·in·the·Software·without·restriction,·including</span></div> |
Offset 80, 32 lines modified | Offset 80, 43 lines modified | ||
80 | <div·class="line"><a·id="l00027"·name="l00027"></a><span·class="lineno">···27</span><span·class="comment">·*···ARISING·FROM,·OUT·OF·OR·IN·CONNECTION·WITH·THE·SOFTWARE·OR·THE·USE·OR</span></div> | 80 | <div·class="line"><a·id="l00027"·name="l00027"></a><span·class="lineno">···27</span><span·class="comment">·*···ARISING·FROM,·OUT·OF·OR·IN·CONNECTION·WITH·THE·SOFTWARE·OR·THE·USE·OR</span></div> |
81 | <div·class="line"><a·id="l00028"·name="l00028"></a><span·class="lineno">···28</span><span·class="comment">·*···OTHER·DEALINGS·IN·THE·SOFTWARE.</span></div> | 81 | <div·class="line"><a·id="l00028"·name="l00028"></a><span·class="lineno">···28</span><span·class="comment">·*···OTHER·DEALINGS·IN·THE·SOFTWARE.</span></div> |
82 | <div·class="line"><a·id="l00029"·name="l00029"></a><span·class="lineno">···29</span><span·class="comment">·***************************************************************************/</span></div> | 82 | <div·class="line"><a·id="l00029"·name="l00029"></a><span·class="lineno">···29</span><span·class="comment">·***************************************************************************/</span></div> |
83 | <div·class="line"><a·id="l00030"·name="l00030"></a><span·class="lineno">···30</span><span·class="preprocessor">#ifdef·HAVE_CONFIG_H</span></div> | 83 | <div·class="line"><a·id="l00030"·name="l00030"></a><span·class="lineno">···30</span><span·class="preprocessor">#ifdef·HAVE_CONFIG_H</span></div> |
84 | <div·class="line"><a·id="l00031"·name="l00031"></a><span·class="lineno">···31</span><span·class="preprocessor">#include·<config.h></span></div> | 84 | <div·class="line"><a·id="l00031"·name="l00031"></a><span·class="lineno">···31</span><span·class="preprocessor">#include·<config.h></span></div> |
85 | <div·class="line"><a·id="l00032"·name="l00032"></a><span·class="lineno">···32</span><span·class="preprocessor">#endif</span></div> | 85 | <div·class="line"><a·id="l00032"·name="l00032"></a><span·class="lineno">···32</span><span·class="preprocessor">#endif</span></div> |
86 | <div·class="line"><a·id="l00033"·name="l00033"></a><span·class="lineno">···33</span>·</div> | 86 | <div·class="line"><a·id="l00033"·name="l00033"></a><span·class="lineno">···33</span>·</div> |
87 | <div·class="line"><a·id="l00034"·name="l00034"></a><span·class="lineno">···34</span><span·class="preprocessor">#include·"SILLY | 87 | <div·class="line"><a·id="l00034"·name="l00034"></a><span·class="lineno">···34</span><span·class="preprocessor">#include·"SILLYImageLoader.h"</span></div> |
88 | <div·class="line"><a·id="l00035"·name="l00035"></a><span·class="lineno">···35</span>·</div> | ||
89 | <div·class="line"><a·id="l0003 | 88 | <div·class="line"><a·id="l00035"·name="l00035"></a><span·class="lineno">···35</span><span·class="preprocessor">#ifndef·SILLY_OPT_INLINE</span></div> |
90 | <div·class="line"><a·id="l0003 | 89 | <div·class="line"><a·id="l00036"·name="l00036"></a><span·class="lineno">···36</span><span·class="preprocessor">#define·inline·</span></div> |
91 | <div·class="line"><a·id="l0003 | 90 | <div·class="line"><a·id="l00037"·name="l00037"></a><span·class="lineno">···37</span><span·class="preprocessor">#include·"SILLYImageLoader.icpp"</span></div> |
92 | <div·class="line"><a·id="l0003 | 91 | <div·class="line"><a·id="l00038"·name="l00038"></a><span·class="lineno">···38</span><span·class="preprocessor">#undef·inline</span></div> |
93 | <div·class="line"><a·id="l000 | 92 | <div·class="line"><a·id="l00039"·name="l00039"></a><span·class="lineno">···39</span><span·class="preprocessor">#endif·</span></div> |
93 | <div·class="line"><a·id="l00040"·name="l00040"></a><span·class="lineno">···40</span><span·class="preprocessor">#include·"SILLYImageContext.h"</span>·</div> | ||
94 | <div·class="line"><a·id="l00041"·name="l00041"></a><span·class="lineno">···41</span>·</div> | 94 | <div·class="line"><a·id="l00041"·name="l00041"></a><span·class="lineno">···41</span>·</div> |
95 | <div·class="line"><a·id="l00042"·name="l00042"></a><span·class="lineno">···42</span><span·class="comment">//·Start·of·SILLY·namespace·section</span></div> | 95 | <div·class="line"><a·id="l00042"·name="l00042"></a><span·class="lineno">···42</span><span·class="comment">//·Start·of·SILLY·namespace·section</span></div> |
96 | <div·class="line"><a·id="l00043"·name="l00043"></a><span·class="lineno">···43</span><span·class="keyword">namespace·</span><a·class="code·hl_namespace"·href="a00129.html">SILLY</a></div> | 96 | <div·class="line"><a·id="l00043"·name="l00043"></a><span·class="lineno">···43</span><span·class="keyword">namespace·</span><a·class="code·hl_namespace"·href="a00129.html">SILLY</a></div> |
97 | <div·class="line"><a·id="l00044"·name="l00044"></a><span·class="lineno">···44</span>{</div> | 97 | <div·class="line"><a·id="l00044"·name="l00044"></a><span·class="lineno">···44</span>{</div> |
98 | <div·class="line"><a·id="l00045"·name="l00045"></a><span·class="lineno">···45</span>· | 98 | <div·class="line"><a·id="l00045"·name="l00045"></a><span·class="lineno">···45</span>·</div> |
99 | <div·class="line"><a·id="l00046"·name="l00046"></a><span·class="lineno">···46</span>}·<span·class="comment">//·End·of·SILLY·namespace·section·</span></div> | ||
100 | <div·class="line"><a·id="l0004 | 99 | <div·class="line"><a·id="l00046"·name="l00046"></a><span·class="lineno">···46</span>·</div> |
100 | <div·class="foldopen"·id="foldopen00047"·data-start="{"·data-end="}"> | ||
101 | <div·class="line"><a·id="l00047"·name="l00047"></a><span·class="lineno"><a·class="line"·href="a00985.html#a439f9065fd9a935d7f53b30b2242e924">···47</a></span><span·class="keywordtype">void</span>·<a·class="code·hl_function"·href="a00985.html#a439f9065fd9a935d7f53b30b2242e924">ImageLoader::destroyContext</a>(<a·class="code·hl_class"·href="a00981.html">ImageContext</a>*·context)</div> | ||
101 | <div·class="line"><a·id="l00048"·name="l00048"></a><span·class="lineno">···48</span> | 102 | <div·class="line"><a·id="l00048"·name="l00048"></a><span·class="lineno">···48</span>{</div> |
102 | <div·class="line"><a·id="l00049"·name="l00049"></a><span·class="lineno">···49</span>·</div> | 103 | <div·class="line"><a·id="l00049"·name="l00049"></a><span·class="lineno">···49</span>····<span·class="keyword">delete</span>·context;</div> |
103 | <div·class="line"><a·id="l00050"·name="l00050"></a><span·class="lineno">···50</span> | 104 | <div·class="line"><a·id="l00050"·name="l00050"></a><span·class="lineno">···50</span>}</div> |
105 | </div> | ||
106 | <div·class="line"><a·id="l00051"·name="l00051"></a><span·class="lineno">···51</span>·</div> | ||
107 | <div·class="line"><a·id="l00052"·name="l00052"></a><span·class="lineno">···52</span>·</div> | ||
108 | <div·class="line"><a·id="l00053"·name="l00053"></a><span·class="lineno">···53</span>}·<span·class="comment">//·end·of·SILLY·namespace·section·</span></div> | ||
109 | <div·class="line"><a·id="l00054"·name="l00054"></a><span·class="lineno">···54</span>·</div> | ||
110 | <div·class="line"><a·id="l00055"·name="l00055"></a><span·class="lineno">···55</span>·</div> | ||
111 | <div·class="line"><a·id="l00056"·name="l00056"></a><span·class="lineno">···56</span>·</div> | ||
112 | <div·class="line"><a·id="l00057"·name="l00057"></a><span·class="lineno">···57</span>·</div> | ||
104 | <div·class="ttc"·id="aa00129_html"><div·class="ttname"><a·href="a00129.html">SILLY</a></div><div·class="ttdoc">Simple·Image·Loading·LibrarY·namespace.</div><div·class="ttdef"><b>Definition</b>·<a·href="a0002 | 113 | <div·class="ttc"·id="aa00129_html"><div·class="ttname"><a·href="a00129.html">SILLY</a></div><div·class="ttdoc">Simple·Image·Loading·LibrarY·namespace.</div><div·class="ttdef"><b>Definition</b>·<a·href="a00023_source.html#l00045">SILLYJPGImageContext.cpp:46</a></div></div> |
114 | <div·class="ttc"·id="aa00981_html"><div·class="ttname"><a·href="a00981.html">SILLY::ImageContext</a></div><div·class="ttdoc">Store·the·data·needed·by·an·ImageLoader·object·during·the·parsing·of·an·image.</div><div·class="ttdef"><b>Definition</b>·<a·href="a00074_source.html#l00043">SILLYImageContext.h:44</a></div></div> | ||
115 | <div·class="ttc"·id="aa00985_html_a439f9065fd9a935d7f53b30b2242e924"><div·class="ttname"><a·href="a00985.html#a439f9065fd9a935d7f53b30b2242e924">SILLY::ImageLoader::destroyContext</a></div><div·class="ttdeci">void·destroyContext(ImageContext·*context)</div><div·class="ttdoc">Destroy·the·image·context.</div><div·class="ttdef"><b>Definition</b>·<a·href="a00008_source.html#l00047">SILLYImageLoader.cpp:47</a></div></div> | ||
105 | </div><!--·fragment·--></div><!--·contents·--> | 116 | </div><!--·fragment·--></div><!--·contents·--> |
106 | <!--·start·footer·part·--> | 117 | <!--·start·footer·part·--> |
107 | <hr·class="footer"/><address·class="footer"><small> | 118 | <hr·class="footer"/><address·class="footer"><small> |
108 | Generated·by <a·href="https://www.doxygen.org/index.html"><img·class="footer"·src="doxygen.svg"·width="104"·height="31"·alt="doxygen"/></a>·1.9.8 | 119 | Generated·by <a·href="https://www.doxygen.org/index.html"><img·class="footer"·src="doxygen.svg"·width="104"·height="31"·alt="doxygen"/></a>·1.9.8 |
109 | </small></address> | 120 | </small></address> |
110 | </body> | 121 | </body> |
111 | </html> | 122 | </html> |
Offset 1, 19 lines modified | Offset 1, 19 lines modified | ||
1 | Simple·Image·Loading·LibrarY 0.1.0 | 1 | Simple·Image·Loading·LibrarY 0.1.0 |
2 | ····*·_\x8b_\x8u_\x8i_\x8l_\x8d | 2 | ····*·_\x8b_\x8u_\x8i_\x8l_\x8d |
3 | ····*·_\x8r_\x8e_\x8p_\x8r_\x8o_\x8d_\x8u_\x8c_\x8i_\x8b_\x8l_\x8e_\x8-_\x8p_\x8a_\x8t_\x8h | 3 | ····*·_\x8r_\x8e_\x8p_\x8r_\x8o_\x8d_\x8u_\x8c_\x8i_\x8b_\x8l_\x8e_\x8-_\x8p_\x8a_\x8t_\x8h |
4 | ····*·_\x8s_\x8i_\x8l_\x8l_\x8y_\x8-_\x80_\x8._\x81_\x8._\x80 | 4 | ····*·_\x8s_\x8i_\x8l_\x8l_\x8y_\x8-_\x80_\x8._\x81_\x8._\x80 |
5 | ····*·_\x8s_\x8r_\x8c | 5 | ····*·_\x8s_\x8r_\x8c |
6 | SILLY | 6 | SILLYImageLoader.cpp |
7 | 1/*********************************************************************** | 7 | 1/*********************************************************************** |
8 | 2·filename:· | 8 | 2·filename:·ImageLoader.cpp |
9 | 3·created:·10·Jun·2006 | 9 | 3·created:·10·Jun·2006 |
10 | 4·author:·Olivier·Delannoy | 10 | 4·author:·Olivier·Delannoy |
11 | 5 | 11 | 5 |
12 | 6·purpose:· | 12 | 6·purpose:·Implementation·of·the·ImageLoader |
13 | 7*************************************************************************/ | 13 | 7*************************************************************************/ |
14 | 8/*************************************************************************** | 14 | 8/*************************************************************************** |
15 | 9·*·Copyright·(C)·2004·-·2006·Paul·D·Turner·&·The·CEGUI·Development·Team | 15 | 9·*·Copyright·(C)·2004·-·2006·Paul·D·Turner·&·The·CEGUI·Development·Team |
16 | 10·* | 16 | 10·* |
17 | 11·*·Permission·is·hereby·granted,·free·of·charge,·to·any·person·obtaining | 17 | 11·*·Permission·is·hereby·granted,·free·of·charge,·to·any·person·obtaining |
18 | 12·*·a·copy·of·this·software·and·associated·documentation·files·(the | 18 | 12·*·a·copy·of·this·software·and·associated·documentation·files·(the |
19 | 13·*·"Software"),·to·deal·in·the·Software·without·restriction,·including | 19 | 13·*·"Software"),·to·deal·in·the·Software·without·restriction,·including |
Offset 33, 29 lines modified | Offset 33, 43 lines modified | ||
33 | 27·*·ARISING·FROM,·OUT·OF·OR·IN·CONNECTION·WITH·THE·SOFTWARE·OR·THE·USE·OR | 33 | 27·*·ARISING·FROM,·OUT·OF·OR·IN·CONNECTION·WITH·THE·SOFTWARE·OR·THE·USE·OR |
34 | 28·*·OTHER·DEALINGS·IN·THE·SOFTWARE. | 34 | 28·*·OTHER·DEALINGS·IN·THE·SOFTWARE. |
35 | 29·***************************************************************************/ | 35 | 29·***************************************************************************/ |
36 | 30#ifdef·HAVE_CONFIG_H | 36 | 30#ifdef·HAVE_CONFIG_H |
37 | 31#include·<config.h> | 37 | 31#include·<config.h> |
38 | 32#endif | 38 | 32#endif |
39 | 33 | 39 | 33 |
40 | 34#include·"SILLY | 40 | 34#include·"SILLYImageLoader.h" |
41 | 35 | ||
42 | 3 | 41 | 35#ifndef·SILLY_OPT_INLINE |
43 | 3 | 42 | 36#define·inline |
44 | 3 | 43 | 37#include·"SILLYImageLoader.icpp" |
45 | 3 | 44 | 38#undef·inline |
46 | 45 | 39#endif | |
46 | 40#include·"SILLYImageContext.h" | ||
47 | 41 | 47 | 41 |
48 | 42//·Start·of·SILLY·namespace·section | 48 | 42//·Start·of·SILLY·namespace·section |
49 | 43namespace·_\x8S_\x8I_\x8L_\x8L_\x8Y | 49 | 43namespace·_\x8S_\x8I_\x8L_\x8L_\x8Y |
50 | 44{ | 50 | 44{ |
51 | 45 | 51 | 45 |
52 | 46 | ||
53 | _\x84_\x87void·_\x8I_\x8m_\x8a_\x8g_\x8e_\x8L_\x8o_\x8a_\x8d_\x8e_\x8r_\x8:_\x8:_\x8d_\x8e_\x8s_\x8t_\x8r_\x8o_\x8y_\x8C_\x8o_\x8n_\x8t_\x8e_\x8x_\x8t(_\x8I_\x8m_\x8a_\x8g_\x8e_\x8C_\x8o_\x8n_\x8t_\x8e_\x8x_\x8t*·context) | ||
54 | 48{ | ||
55 | 49·delete·context; | ||
56 | 50} | ||
57 | 51 | ||
58 | 52 | ||
52 | 59 | 53}·//·end·of·SILLY·namespace·section | |
53 | 47 | ||
54 | 48 | ||
55 | 49 | ||
56 | 5 | 60 | 54 |
61 | 55 | ||
62 | 56 | ||
63 | 57 | ||
57 | _\x8S_\x8I_\x8L_\x8L_\x8Y | 64 | _\x8S_\x8I_\x8L_\x8L_\x8Y |
58 | Simple·Image·Loading·LibrarY·namespace. | 65 | Simple·Image·Loading·LibrarY·namespace. |
59 | D\x8De\x8ef\x8fi\x8in\x8ni\x8it\x8ti\x8io\x8on\x8n·_\x8S_\x8I_\x8L_\x8L_\x8Y_\x8J_\x8P_\x8G_\x8I_\x8m_\x8a_\x8g_\x8e_\x8C_\x8o_\x8n_\x8t_\x8e_\x8x_\x8t_\x8._\x8c_\x8p_\x8p_\x8:_\x84_\x86 | 66 | D\x8De\x8ef\x8fi\x8in\x8ni\x8it\x8ti\x8io\x8on\x8n·_\x8S_\x8I_\x8L_\x8L_\x8Y_\x8J_\x8P_\x8G_\x8I_\x8m_\x8a_\x8g_\x8e_\x8C_\x8o_\x8n_\x8t_\x8e_\x8x_\x8t_\x8._\x8c_\x8p_\x8p_\x8:_\x84_\x86 |
67 | _\x8S_\x8I_\x8L_\x8L_\x8Y_\x8:_\x8:_\x8I_\x8m_\x8a_\x8g_\x8e_\x8C_\x8o_\x8n_\x8t_\x8e_\x8x_\x8t | ||
68 | Store·the·data·needed·by·an·ImageLoader·object·during·the·parsing·of·an·image. | ||
69 | D\x8De\x8ef\x8fi\x8in\x8ni\x8it\x8ti\x8io\x8on\x8n·_\x8S_\x8I_\x8L_\x8L_\x8Y_\x8I_\x8m_\x8a_\x8g_\x8e_\x8C_\x8o_\x8n_\x8t_\x8e_\x8x_\x8t_\x8._\x8h_\x8:_\x84_\x84 | ||
70 | _\x8S_\x8I_\x8L_\x8L_\x8Y_\x8:_\x8:_\x8I_\x8m_\x8a_\x8g_\x8e_\x8L_\x8o_\x8a_\x8d_\x8e_\x8r_\x8:_\x8:_\x8d_\x8e_\x8s_\x8t_\x8r_\x8o_\x8y_\x8C_\x8o_\x8n_\x8t_\x8e_\x8x_\x8t | ||
71 | void·destroyContext(ImageContext·*context) | ||
72 | Destroy·the·image·context. | ||
73 | D\x8De\x8ef\x8fi\x8in\x8ni\x8it\x8ti\x8io\x8on\x8n·_\x8S_\x8I_\x8L_\x8L_\x8Y_\x8I_\x8m_\x8a_\x8g_\x8e_\x8L_\x8o_\x8a_\x8d_\x8e_\x8r_\x8._\x8c_\x8p_\x8p_\x8:_\x84_\x87 | ||
60 | =============================================================================== | 74 | =============================================================================== |
61 | ·····Generated·by _\x8[_\x8d_\x8o_\x8x_\x8y_\x8g_\x8e_\x8n_\x8]·1.9.8 | 75 | ·····Generated·by _\x8[_\x8d_\x8o_\x8x_\x8y_\x8g_\x8e_\x8n_\x8]·1.9.8 |
Offset 1, 15 lines modified | Offset 1, 15 lines modified | ||
1 | <!DOCTYPE·html·PUBLIC·"-//W3C//DTD·XHTML·1.0·Transitional//EN"·"https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> | 1 | <!DOCTYPE·html·PUBLIC·"-//W3C//DTD·XHTML·1.0·Transitional//EN"·"https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> |
2 | <html·xmlns="http://www.w3.org/1999/xhtml"·lang="en-US"> | 2 | <html·xmlns="http://www.w3.org/1999/xhtml"·lang="en-US"> |
3 | <head> | 3 | <head> |
4 | <meta·http-equiv="Content-Type"·content="text/xhtml;charset=UTF-8"/> | 4 | <meta·http-equiv="Content-Type"·content="text/xhtml;charset=UTF-8"/> |
5 | <meta·http-equiv="X-UA-Compatible"·content="IE=11"/> | 5 | <meta·http-equiv="X-UA-Compatible"·content="IE=11"/> |
6 | <meta·name="generator"·content="Doxygen·1.9.8"/> | 6 | <meta·name="generator"·content="Doxygen·1.9.8"/> |
7 | <meta·name="viewport"·content="width=device-width,·initial-scale=1"/> | 7 | <meta·name="viewport"·content="width=device-width,·initial-scale=1"/> |
8 | <title>Simple·Image·Loading·LibrarY:·/build/reproducible-path/silly-0.1.0/src/SILLYImageLoader.cpp·Source·File</title> | 8 | <title>Simple·Image·Loading·LibrarY:·/build/reproducible-path/silly-0.1.0/src/SILLYImageLoaderManager.cpp·Source·File</title> |
9 | <link·href="tabs.css"·rel="stylesheet"·type="text/css"/> | 9 | <link·href="tabs.css"·rel="stylesheet"·type="text/css"/> |
10 | <script·type="text/javascript"·src="jquery.js"></script> | 10 | <script·type="text/javascript"·src="jquery.js"></script> |
11 | <script·type="text/javascript"·src="dynsections.js"></script> | 11 | <script·type="text/javascript"·src="dynsections.js"></script> |
12 | <link·href="doxygen.css"·rel="stylesheet"·type="text/css"·/> | 12 | <link·href="doxygen.css"·rel="stylesheet"·type="text/css"·/> |
13 | </head> | 13 | </head> |
14 | <body> | 14 | <body> |
15 | <div·id="top"><!--·do·not·remove·this·div,·it·is·closed·by·doxygen!·--> | 15 | <div·id="top"><!--·do·not·remove·this·div,·it·is·closed·by·doxygen!·--> |
Offset 44, 23 lines modified | Offset 44, 23 lines modified | ||
44 | </script> | 44 | </script> |
45 | <div·id="nav-path"·class="navpath"> | 45 | <div·id="nav-path"·class="navpath"> |
46 | ··<ul> | 46 | ··<ul> |
47 | <li·class="navelem"><a·class="el"·href="dir_4fef79e7177ba769987a8da36c892c5f.html">build</a></li><li·class="navelem"><a·class="el"·href="dir_9def6061848686aab7e6212bb499d615.html">reproducible-path</a></li><li·class="navelem"><a·class="el"·href="dir_74170d5b58cefb7cb5a86fc552b183a3.html">silly-0.1.0</a></li><li·class="navelem"><a·class="el"·href="dir_7b53bc9a32849689d682eb098e891de5.html">src</a></li>··</ul> | 47 | <li·class="navelem"><a·class="el"·href="dir_4fef79e7177ba769987a8da36c892c5f.html">build</a></li><li·class="navelem"><a·class="el"·href="dir_9def6061848686aab7e6212bb499d615.html">reproducible-path</a></li><li·class="navelem"><a·class="el"·href="dir_74170d5b58cefb7cb5a86fc552b183a3.html">silly-0.1.0</a></li><li·class="navelem"><a·class="el"·href="dir_7b53bc9a32849689d682eb098e891de5.html">src</a></li>··</ul> |
48 | </div> | 48 | </div> |
49 | </div><!--·top·--> | 49 | </div><!--·top·--> |
50 | <div·class="header"> | 50 | <div·class="header"> |
51 | ··<div·class="headertitle"><div·class="title">SILLYImageLoader.cpp</div></div> | 51 | ··<div·class="headertitle"><div·class="title">SILLYImageLoaderManager.cpp</div></div> |
52 | </div><!--header--> | 52 | </div><!--header--> |
53 | <div·class="contents"> | 53 | <div·class="contents"> |
54 | <div·class="fragment"><div·class="line"><a·id="l00001"·name="l00001"></a><span·class="lineno">····1</span><span·class="comment">/***********************************************************************</span></div> | 54 | <div·class="fragment"><div·class="line"><a·id="l00001"·name="l00001"></a><span·class="lineno">····1</span><span·class="comment">/***********************************************************************</span></div> |
55 | <div·class="line"><a·id="l00002"·name="l00002"></a><span·class="lineno">····2</span><span·class="comment">····filename:···ImageLoader.cpp</span></div> | 55 | <div·class="line"><a·id="l00002"·name="l00002"></a><span·class="lineno">····2</span><span·class="comment">····filename:···ImageLoaderManager.cpp</span></div> |
56 | <div·class="line"><a·id="l00003"·name="l00003"></a><span·class="lineno">····3</span><span·class="comment">····created:····10·Jun·2006</span></div> | 56 | <div·class="line"><a·id="l00003"·name="l00003"></a><span·class="lineno">····3</span><span·class="comment">····created:····10·Jun·2006</span></div> |
57 | <div·class="line"><a·id="l00004"·name="l00004"></a><span·class="lineno">····4</span><span·class="comment">····author:·····Olivier·Delannoy·</span></div> | 57 | <div·class="line"><a·id="l00004"·name="l00004"></a><span·class="lineno">····4</span><span·class="comment">····author:·····Olivier·Delannoy·</span></div> |
58 | <div·class="line"><a·id="l00005"·name="l00005"></a><span·class="lineno">····5</span><span·class="comment"></span>·</div> | 58 | <div·class="line"><a·id="l00005"·name="l00005"></a><span·class="lineno">····5</span><span·class="comment"></span>·</div> |
59 | <div·class="line"><a·id="l00006"·name="l00006"></a><span·class="lineno">····6</span><span·class="comment">····purpose:···· | 59 | <div·class="line"><a·id="l00006"·name="l00006"></a><span·class="lineno">····6</span><span·class="comment">····purpose:····Manage·the·list·of·existing·ImageLoader··</span></div> |
60 | <div·class="line"><a·id="l00007"·name="l00007"></a><span·class="lineno">····7</span><span·class="comment">*************************************************************************/</span></div> | 60 | <div·class="line"><a·id="l00007"·name="l00007"></a><span·class="lineno">····7</span><span·class="comment">*************************************************************************/</span></div> |
61 | <div·class="line"><a·id="l00008"·name="l00008"></a><span·class="lineno">····8</span><span·class="comment">/***************************************************************************</span></div> | 61 | <div·class="line"><a·id="l00008"·name="l00008"></a><span·class="lineno">····8</span><span·class="comment">/***************************************************************************</span></div> |
62 | <div·class="line"><a·id="l00009"·name="l00009"></a><span·class="lineno">····9</span><span·class="comment">·*···Copyright·(C)·2004·-·2006·Paul·D·Turner·&·The·CEGUI·Development·Team</span></div> | 62 | <div·class="line"><a·id="l00009"·name="l00009"></a><span·class="lineno">····9</span><span·class="comment">·*···Copyright·(C)·2004·-·2006·Paul·D·Turner·&·The·CEGUI·Development·Team</span></div> |
63 | <div·class="line"><a·id="l00010"·name="l00010"></a><span·class="lineno">···10</span><span·class="comment">·*</span></div> | 63 | <div·class="line"><a·id="l00010"·name="l00010"></a><span·class="lineno">···10</span><span·class="comment">·*</span></div> |
64 | <div·class="line"><a·id="l00011"·name="l00011"></a><span·class="lineno">···11</span><span·class="comment">·*···Permission·is·hereby·granted,·free·of·charge,·to·any·person·obtaining</span></div> | 64 | <div·class="line"><a·id="l00011"·name="l00011"></a><span·class="lineno">···11</span><span·class="comment">·*···Permission·is·hereby·granted,·free·of·charge,·to·any·person·obtaining</span></div> |
65 | <div·class="line"><a·id="l00012"·name="l00012"></a><span·class="lineno">···12</span><span·class="comment">·*···a·copy·of·this·software·and·associated·documentation·files·(the</span></div> | 65 | <div·class="line"><a·id="l00012"·name="l00012"></a><span·class="lineno">···12</span><span·class="comment">·*···a·copy·of·this·software·and·associated·documentation·files·(the</span></div> |
66 | <div·class="line"><a·id="l00013"·name="l00013"></a><span·class="lineno">···13</span><span·class="comment">·*···"Software"),·to·deal·in·the·Software·without·restriction,·including</span></div> | 66 | <div·class="line"><a·id="l00013"·name="l00013"></a><span·class="lineno">···13</span><span·class="comment">·*···"Software"),·to·deal·in·the·Software·without·restriction,·including</span></div> |
Offset 80, 43 lines modified | Offset 80, 109 lines modified | ||
80 | <div·class="line"><a·id="l00027"·name="l00027"></a><span·class="lineno">···27</span><span·class="comment">·*···ARISING·FROM,·OUT·OF·OR·IN·CONNECTION·WITH·THE·SOFTWARE·OR·THE·USE·OR</span></div> | 80 | <div·class="line"><a·id="l00027"·name="l00027"></a><span·class="lineno">···27</span><span·class="comment">·*···ARISING·FROM,·OUT·OF·OR·IN·CONNECTION·WITH·THE·SOFTWARE·OR·THE·USE·OR</span></div> |
81 | <div·class="line"><a·id="l00028"·name="l00028"></a><span·class="lineno">···28</span><span·class="comment">·*···OTHER·DEALINGS·IN·THE·SOFTWARE.</span></div> | 81 | <div·class="line"><a·id="l00028"·name="l00028"></a><span·class="lineno">···28</span><span·class="comment">·*···OTHER·DEALINGS·IN·THE·SOFTWARE.</span></div> |
82 | <div·class="line"><a·id="l00029"·name="l00029"></a><span·class="lineno">···29</span><span·class="comment">·***************************************************************************/</span></div> | 82 | <div·class="line"><a·id="l00029"·name="l00029"></a><span·class="lineno">···29</span><span·class="comment">·***************************************************************************/</span></div> |
83 | <div·class="line"><a·id="l00030"·name="l00030"></a><span·class="lineno">···30</span><span·class="preprocessor">#ifdef·HAVE_CONFIG_H</span></div> | 83 | <div·class="line"><a·id="l00030"·name="l00030"></a><span·class="lineno">···30</span><span·class="preprocessor">#ifdef·HAVE_CONFIG_H</span></div> |
84 | <div·class="line"><a·id="l00031"·name="l00031"></a><span·class="lineno">···31</span><span·class="preprocessor">#include·<config.h></span></div> | 84 | <div·class="line"><a·id="l00031"·name="l00031"></a><span·class="lineno">···31</span><span·class="preprocessor">#include·<config.h></span></div> |
85 | <div·class="line"><a·id="l00032"·name="l00032"></a><span·class="lineno">···32</span><span·class="preprocessor">#endif</span></div> | 85 | <div·class="line"><a·id="l00032"·name="l00032"></a><span·class="lineno">···32</span><span·class="preprocessor">#endif</span></div> |
86 | <div·class="line"><a·id="l00033"·name="l00033"></a><span·class="lineno">···33</span>·</div> | 86 | <div·class="line"><a·id="l00033"·name="l00033"></a><span·class="lineno">···33</span>·</div> |
87 | <div·class="line"><a·id="l00034"·name="l00034"></a><span·class="lineno">···34</span><span·class="preprocessor">#include·"SILLYImageLoaderManager.h"</span></div> | ||
88 | <div·class="line"><a·id="l00035"·name="l00035"></a><span·class="lineno">···35</span>·</div> | ||
89 | <div·class="line"><a·id="l00036"·name="l00036"></a><span·class="lineno">···36</span><span·class="preprocessor">#ifndef·SILLY_OPT_INLINE</span></div> | ||
90 | <div·class="line"><a·id="l00037"·name="l00037"></a><span·class="lineno">···37</span><span·class="preprocessor">#define·inline·</span></div> | ||
91 | <div·class="line"><a·id="l00038"·name="l00038"></a><span·class="lineno">···38</span><span·class="preprocessor">#include·"SILLYImageLoaderManager.icpp"</span></div> | ||
92 | <div·class="line"><a·id="l00039"·name="l00039"></a><span·class="lineno">···39</span><span·class="preprocessor">#undef·inline</span></div> | ||
93 | <div·class="line"><a·id="l00040"·name="l00040"></a><span·class="lineno">···40</span><span·class="preprocessor">#endif·</span></div> | ||
87 | <div·class="line"><a·id="l000 | 94 | <div·class="line"><a·id="l00041"·name="l00041"></a><span·class="lineno">···41</span><span·class="preprocessor">#include·"SILLYImageLoader.h"</span></div> |
88 | <div·class="line"><a·id="l00035"·name="l00035"></a><span·class="lineno">···35</span><span·class="preprocessor">#ifndef·SILLY_OPT_INLINE</span></div> | ||
89 | <div·class="line"><a·id="l00036"·name="l00036"></a><span·class="lineno">···36</span><span·class="preprocessor">#define·inline·</span></div> | ||
90 | <div·class="line"><a·id="l00037"·name="l00037"></a><span·class="lineno">···37</span><span·class="preprocessor">#include·"SILLYImageLoader.icpp"</span></div> | ||
91 | <div·class="line"><a·id="l00038"·name="l00038"></a><span·class="lineno">···38</span><span·class="preprocessor">#undef·inline</span></div> | ||
92 | <div·class="line"><a·id="l00039"·name="l00039"></a><span·class="lineno">···39</span><span·class="preprocessor">#endif·</span></div> | ||
93 | <div·class="line"><a·id="l0004 | 95 | <div·class="line"><a·id="l00042"·name="l00042"></a><span·class="lineno">···42</span><span·class="preprocessor">#include·"loaders/SILLYTGAImageLoader.h"</span></div> |
94 | <div·class="line"><a·id="l0004 | 96 | <div·class="line"><a·id="l00043"·name="l00043"></a><span·class="lineno">···43</span>·</div> |
97 | <div·class="line"><a·id="l00044"·name="l00044"></a><span·class="lineno">···44</span><span·class="preprocessor">#ifdef·SILLY_HAVE_JPG</span></div> | ||
98 | <div·class="line"><a·id="l00045"·name="l00045"></a><span·class="lineno">···45</span><span·class="preprocessor">#include·"loaders/SILLYJPGImageLoader.h"</span>·</div> | ||
95 | <div·class="line"><a·id="l0004 | 99 | <div·class="line"><a·id="l00046"·name="l00046"></a><span·class="lineno">···46</span><span·class="preprocessor">#endif·</span></div> |
96 | <div·class="line"><a·id="l00043"·name="l00043"></a><span·class="lineno">···43</span><span·class="keyword">namespace·</span><a·class="code·hl_namespace"·href="a00129.html">SILLY</a></div> | ||
97 | <div·class="line"><a·id="l00044"·name="l00044"></a><span·class="lineno">···44</span>{</div> | ||
98 | <div·class="line"><a·id="l0004 | 100 | <div·class="line"><a·id="l00047"·name="l00047"></a><span·class="lineno">···47</span>·</div> |
99 | <div·class="line"><a·id="l00046"·name="l00046"></a><span·class="lineno">···46</span>·</div> | ||
100 | <div·class="foldopen"·id="foldopen00047"·data-start="{"·data-end="}"> | ||
101 | <div·class="line"><a·id="l00047"·name="l00047"></a><span·class="lineno"><a·class="line"·href="a00985.html#a439f9065fd9a935d7f53b30b2242e924">···47</a></span><span·class="keywordtype">void</span>·<a·class="code·hl_function"·href="a00985.html#a439f9065fd9a935d7f53b30b2242e924">ImageLoader::destroyContext</a>(<a·class="code·hl_class"·href="a00981.html">ImageContext</a>*·context)</div> | ||
102 | <div·class="line"><a·id="l00048"·name="l00048"></a><span·class="lineno">···48</span> | 101 | <div·class="line"><a·id="l00048"·name="l00048"></a><span·class="lineno">···48</span><span·class="preprocessor">#ifdef·SILLY_HAVE_PNG</span></div> |
102 | <div·class="line"><a·id="l00049"·name="l00049"></a><span·class="lineno">···49</span><span·class="preprocessor">#include·"loaders/SILLYPNGImageLoader.h"</span>·</div> | ||
103 | <div·class="line"><a·id="l000 | 103 | <div·class="line"><a·id="l00050"·name="l00050"></a><span·class="lineno">···50</span><span·class="preprocessor">#endif·</span></div> |
104 | <div·class="line"><a·id="l00050"·name="l00050"></a><span·class="lineno">···50</span>}</div> | ||
105 | </div> | ||
106 | <div·class="line"><a·id="l00051"·name="l00051"></a><span·class="lineno">···51</span>·</div> | 104 | <div·class="line"><a·id="l00051"·name="l00051"></a><span·class="lineno">···51</span>·</div> |
107 | <div·class="line"><a·id="l00052"·name="l00052"></a><span·class="lineno">···52</span>·</div> | ||
108 | <div·class="line"><a·id="l0005 | 105 | <div·class="line"><a·id="l00052"·name="l00052"></a><span·class="lineno">···52</span><span·class="comment">//·Start·of·SILLY·namespace·section·</span></div> |
106 | <div·class="line"><a·id="l00053"·name="l00053"></a><span·class="lineno">···53</span><span·class="keyword">namespace·</span><a·class="code·hl_namespace"·href="a00129.html">SILLY</a></div> | ||
109 | <div·class="line"><a·id="l00054"·name="l00054"></a><span·class="lineno">···54</span> | 107 | <div·class="line"><a·id="l00054"·name="l00054"></a><span·class="lineno">···54</span>{</div> |
110 | <div·class="line"><a·id="l00055"·name="l00055"></a><span·class="lineno">···55</span>·</div> | 108 | <div·class="line"><a·id="l00055"·name="l00055"></a><span·class="lineno">···55</span>·</div> |
109 | <div·class="line"><a·id="l00056"·name="l00056"></a><span·class="lineno">···56</span><span·class="comment">//·we·need·to·do·"reference·counting"·for·init/exit·to·allow·silly·to·be·used</span></div> | ||
110 | <div·class="line"><a·id="l00057"·name="l00057"></a><span·class="lineno">···57</span><span·class="comment">//·from·inside·multiple·independent·libraries·simultaneously.</span></div> | ||
111 | <div·class="line"><a·id="l00058"·name="l00058"></a><span·class="lineno">···58</span><span·class="keyword">static</span>·<span·class="keywordtype">size_t</span>·silly_init_counter·=·0;</div> | ||
111 | <div·class="line"><a·id="l0005 | 112 | <div·class="line"><a·id="l00059"·name="l00059"></a><span·class="lineno">···59</span>·</div> |
113 | <div·class="line"><a·id="l00060"·name="l00060"></a><span·class="lineno">···60</span>ImageLoaderManager*·ImageLoaderManager::d_instance·=·0;</div> | ||
114 | <div·class="line"><a·id="l00061"·name="l00061"></a><span·class="lineno">···61</span>·</div> | ||
115 | <div·class="foldopen"·id="foldopen00062"·data-start="{"·data-end="}"> | ||
116 | <div·class="line"><a·id="l00062"·name="l00062"></a><span·class="lineno"><a·class="line"·href="a00989.html#a3f46e55dada1357eddf5f0711b1cedd7">···62</a></span><a·class="code·hl_function"·href="a00989.html#a3f46e55dada1357eddf5f0711b1cedd7">ImageLoaderManager::ImageLoaderManager</a>()</div> | ||
117 | <div·class="line"><a·id="l00063"·name="l00063"></a><span·class="lineno">···63</span>{</div> | ||
118 | <div·class="line"><a·id="l00064"·name="l00064"></a><span·class="lineno">···64</span>····assert(d_instance·==·0);</div> | ||
119 | <div·class="line"><a·id="l00065"·name="l00065"></a><span·class="lineno">···65</span>····d_instance·=·<span·class="keyword">this</span>;</div> | ||
120 | <div·class="line"><a·id="l00066"·name="l00066"></a><span·class="lineno">···66</span>····<a·class="code·hl_function"·href="a00989.html#a38aa5b3d86db46f24cd330bda6d0b696">add</a>(<span·class="keyword">new</span>·<a·class="code·hl_class"·href="a00965.html">TGAImageLoader</a>);</div> | ||
121 | <div·class="line"><a·id="l00067"·name="l00067"></a><span·class="lineno">···67</span><span·class="preprocessor">#ifdef·SILLY_HAVE_JPG</span></div> | ||
122 | <div·class="line"><a·id="l00068"·name="l00068"></a><span·class="lineno">···68</span>····<a·class="code·hl_function"·href="a00989.html#a38aa5b3d86db46f24cd330bda6d0b696">add</a>(<span·class="keyword">new</span>·<a·class="code·hl_class"·href="a00949.html">JPGImageLoader</a>);</div> | ||
123 | <div·class="line"><a·id="l00069"·name="l00069"></a><span·class="lineno">···69</span><span·class="preprocessor">#endif</span></div> | ||
124 | <div·class="line"><a·id="l00070"·name="l00070"></a><span·class="lineno">···70</span><span·class="preprocessor">#ifdef·SILLY_HAVE_PNG</span></div> | ||
125 | <div·class="line"><a·id="l00071"·name="l00071"></a><span·class="lineno">···71</span>····<a·class="code·hl_function"·href="a00989.html#a38aa5b3d86db46f24cd330bda6d0b696">add</a>(<span·class="keyword">new</span>·<a·class="code·hl_class"·href="a00957.html">PNGImageLoader</a>);</div> | ||
126 | <div·class="line"><a·id="l00072"·name="l00072"></a><span·class="lineno">···72</span><span·class="preprocessor">#endif·</span></div> | ||
127 | <div·class="line"><a·id="l00073"·name="l00073"></a><span·class="lineno">···73</span><span·class="comment">//·Add·other·builtins·loader·here·</span></div> | ||
112 | <div·class="line"><a·id="l000 | 128 | <div·class="line"><a·id="l00074"·name="l00074"></a><span·class="lineno">···74</span>·</div> |
129 | <div·class="line"><a·id="l00075"·name="l00075"></a><span·class="lineno">···75</span>}</div> | ||
130 | </div> | ||
131 | <div·class="line"><a·id="l00076"·name="l00076"></a><span·class="lineno">···76</span>·</div> | ||
132 | <div·class="foldopen"·id="foldopen00077"·data-start="{"·data-end="}"> | ||
133 | <div·class="line"><a·id="l00077"·name="l00077"></a><span·class="lineno"><a·class="line"·href="a00989.html#a299773628984ffbc492d5e7c3b2356ba">···77</a></span><a·class="code·hl_function"·href="a00989.html#a299773628984ffbc492d5e7c3b2356ba">ImageLoaderManager::~ImageLoaderManager</a>()</div> | ||
134 | <div·class="line"><a·id="l00078"·name="l00078"></a><span·class="lineno">···78</span>{</div> | ||
135 | <div·class="line"><a·id="l00079"·name="l00079"></a><span·class="lineno">···79</span>····<span·class="keywordflow">for</span>(ImageLoaderList::iterator·iter·=·d_loaders.begin()·;·iter·!=·d_loaders.end()·;·++iter)·</div> | ||
136 | <div·class="line"><a·id="l00080"·name="l00080"></a><span·class="lineno">···80</span>····{</div> | ||
137 | <div·class="line"><a·id="l00081"·name="l00081"></a><span·class="lineno">···81</span>········<span·class="keyword">delete</span>·(*iter);</div> | ||
138 | <div·class="line"><a·id="l00082"·name="l00082"></a><span·class="lineno">···82</span>····}</div> | ||
139 | <div·class="line"><a·id="l00083"·name="l00083"></a><span·class="lineno">···83</span>····d_instance·=·0;</div> | ||
140 | <div·class="line"><a·id="l00084"·name="l00084"></a><span·class="lineno">···84</span>}</div> | ||
141 | </div> | ||
142 | <div·class="line"><a·id="l00085"·name="l00085"></a><span·class="lineno">···85</span>·</div> | ||
143 | <div·class="line"><a·id="l00086"·name="l00086"></a><span·class="lineno">···86</span>·</div> | ||
144 | <div·class="foldopen"·id="foldopen00087"·data-start="{"·data-end="}"> | ||
145 | <div·class="line"><a·id="l00087"·name="l00087"></a><span·class="lineno"><a·class="line"·href="a00129.html#a61417e4f09222c4b4b96bfc1cd2b62fe">···87</a></span><span·class="keywordtype">bool</span>·<a·class="code·hl_function"·href="a00129.html#a61417e4f09222c4b4b96bfc1cd2b62fe">SILLYInit</a>()</div> | ||
146 | <div·class="line"><a·id="l00088"·name="l00088"></a><span·class="lineno">···88</span>{</div> | ||
147 | <div·class="line"><a·id="l00089"·name="l00089"></a><span·class="lineno">···89</span>····<span·class="keywordflow">if</span>·(ImageLoaderManager::getSingletonPtr()·==·0)</div> | ||
148 | <div·class="line"><a·id="l00090"·name="l00090"></a><span·class="lineno">···90</span>····{</div> | ||
149 | <div·class="line"><a·id="l00091"·name="l00091"></a><span·class="lineno">···91</span>········<span·class="keywordflow">if</span>·(!<span·class="keyword">new</span>·<a·class="code·hl_class"·href="a00989.html">ImageLoaderManager</a>)</div> | ||
150 | <div·class="line"><a·id="l00092"·name="l00092"></a><span·class="lineno">···92</span>········{</div> | ||
151 | <div·class="line"><a·id="l00093"·name="l00093"></a><span·class="lineno">···93</span>············<span·class="keywordflow">return</span>·<span·class="keyword">false</span>;</div> | ||
152 | <div·class="line"><a·id="l00094"·name="l00094"></a><span·class="lineno">···94</span>········}</div> | ||
153 | <div·class="line"><a·id="l00095"·name="l00095"></a><span·class="lineno">···95</span>····}</div> | ||
Max diff block lines reached; 271/24619 bytes (1.10%) of diff not shown. |
Offset 1, 19 lines modified | Offset 1, 19 lines modified | ||
1 | Simple·Image·Loading·LibrarY 0.1.0 | 1 | Simple·Image·Loading·LibrarY 0.1.0 |
2 | ····*·_\x8b_\x8u_\x8i_\x8l_\x8d | 2 | ····*·_\x8b_\x8u_\x8i_\x8l_\x8d |
3 | ····*·_\x8r_\x8e_\x8p_\x8r_\x8o_\x8d_\x8u_\x8c_\x8i_\x8b_\x8l_\x8e_\x8-_\x8p_\x8a_\x8t_\x8h | 3 | ····*·_\x8r_\x8e_\x8p_\x8r_\x8o_\x8d_\x8u_\x8c_\x8i_\x8b_\x8l_\x8e_\x8-_\x8p_\x8a_\x8t_\x8h |
4 | ····*·_\x8s_\x8i_\x8l_\x8l_\x8y_\x8-_\x80_\x8._\x81_\x8._\x80 | 4 | ····*·_\x8s_\x8i_\x8l_\x8l_\x8y_\x8-_\x80_\x8._\x81_\x8._\x80 |
5 | ····*·_\x8s_\x8r_\x8c | 5 | ····*·_\x8s_\x8r_\x8c |
6 | SILLYImageLoader.cpp | 6 | SILLYImageLoaderManager.cpp |
7 | 1/*********************************************************************** | 7 | 1/*********************************************************************** |
8 | 2·filename:·ImageLoader.cpp | 8 | 2·filename:·ImageLoaderManager.cpp |
9 | 3·created:·10·Jun·2006 | 9 | 3·created:·10·Jun·2006 |
10 | 4·author:·Olivier·Delannoy | 10 | 4·author:·Olivier·Delannoy |
11 | 5 | 11 | 5 |
12 | 6·purpose:· | 12 | 6·purpose:·Manage·the·list·of·existing·ImageLoader |
13 | 7*************************************************************************/ | 13 | 7*************************************************************************/ |
14 | 8/*************************************************************************** | 14 | 8/*************************************************************************** |
15 | 9·*·Copyright·(C)·2004·-·2006·Paul·D·Turner·&·The·CEGUI·Development·Team | 15 | 9·*·Copyright·(C)·2004·-·2006·Paul·D·Turner·&·The·CEGUI·Development·Team |
16 | 10·* | 16 | 10·* |
17 | 11·*·Permission·is·hereby·granted,·free·of·charge,·to·any·person·obtaining | 17 | 11·*·Permission·is·hereby·granted,·free·of·charge,·to·any·person·obtaining |
18 | 12·*·a·copy·of·this·software·and·associated·documentation·files·(the | 18 | 12·*·a·copy·of·this·software·and·associated·documentation·files·(the |
19 | 13·*·"Software"),·to·deal·in·the·Software·without·restriction,·including | 19 | 13·*·"Software"),·to·deal·in·the·Software·without·restriction,·including |
Offset 33, 43 lines modified | Offset 33, 121 lines modified | ||
33 | 27·*·ARISING·FROM,·OUT·OF·OR·IN·CONNECTION·WITH·THE·SOFTWARE·OR·THE·USE·OR | 33 | 27·*·ARISING·FROM,·OUT·OF·OR·IN·CONNECTION·WITH·THE·SOFTWARE·OR·THE·USE·OR |
34 | 28·*·OTHER·DEALINGS·IN·THE·SOFTWARE. | 34 | 28·*·OTHER·DEALINGS·IN·THE·SOFTWARE. |
35 | 29·***************************************************************************/ | 35 | 29·***************************************************************************/ |
36 | 30#ifdef·HAVE_CONFIG_H | 36 | 30#ifdef·HAVE_CONFIG_H |
37 | 31#include·<config.h> | 37 | 31#include·<config.h> |
38 | 32#endif | 38 | 32#endif |
39 | 33 | 39 | 33 |
40 | 34#include·"SILLYImageLoaderManager.h" | ||
41 | 35 | ||
42 | 36#ifndef·SILLY_OPT_INLINE | ||
43 | 37#define·inline | ||
44 | 38#include·"SILLYImageLoaderManager.icpp" | ||
45 | 39#undef·inline | ||
46 | 40#endif | ||
40 | 47 | 41#include·"SILLYImageLoader.h" | |
41 | 35#ifndef·SILLY_OPT_INLINE | ||
42 | 36#define·inline | ||
43 | 37#include·"SILLYImageLoader.icpp" | ||
44 | 48 | 42#include·"loaders/SILLYTGAImageLoader.h" | |
49 | 43 | ||
50 | 44#ifdef·SILLY_HAVE_JPG | ||
51 | 45#include·"loaders/SILLYJPGImageLoader.h" | ||
45 | 52 | 46#endif | |
53 | 47 | ||
54 | 48#ifdef·SILLY_HAVE_PNG | ||
55 | 49#include·"loaders/SILLYPNGImageLoader.h" | ||
56 | 50#endif | ||
46 | 40#include·"SILLYImageContext.h" | ||
47 | 41 | ||
48 | 42//·Start·of·SILLY·namespace·section | ||
49 | 43namespace·_\x8S_\x8I_\x8L_\x8L_\x8Y | ||
50 | 44{ | ||
51 | 45 | ||
52 | 46 | ||
53 | _\x84_\x87void·_\x8I_\x8m_\x8a_\x8g_\x8e_\x8L_\x8o_\x8a_\x8d_\x8e_\x8r_\x8:_\x8:_\x8d_\x8e_\x8s_\x8t_\x8r_\x8o_\x8y_\x8C_\x8o_\x8n_\x8t_\x8e_\x8x_\x8t(_\x8I_\x8m_\x8a_\x8g_\x8e_\x8C_\x8o_\x8n_\x8t_\x8e_\x8x_\x8t*·context) | ||
54 | 48{ | ||
55 | 49·delete·context; | ||
56 | 50} | ||
57 | 51 | 57 | 51 |
58 | 52 | ||
59 | 5 | 58 | 52//·Start·of·SILLY·namespace·section |
59 | 53namespace·_\x8S_\x8I_\x8L_\x8L_\x8Y | ||
60 | 54 | 60 | 54{ |
61 | 55 | 61 | 55 |
62 | 56 | ||
63 | 5 | 62 | 56//·we·need·to·do·"reference·counting"·for·init/exit·to·allow·silly·to·be·used |
63 | 57//·from·inside·multiple·independent·libraries·simultaneously. | ||
64 | 58static·size_t·silly_init_counter·=·0; | ||
65 | 59 | ||
66 | 60ImageLoaderManager*·ImageLoaderManager::d_instance·=·0; | ||
67 | 61 | ||
68 | _\x86_\x82_\x8I_\x8m_\x8a_\x8g_\x8e_\x8L_\x8o_\x8a_\x8d_\x8e_\x8r_\x8M_\x8a_\x8n_\x8a_\x8g_\x8e_\x8r_\x8:_\x8:_\x8I_\x8m_\x8a_\x8g_\x8e_\x8L_\x8o_\x8a_\x8d_\x8e_\x8r_\x8M_\x8a_\x8n_\x8a_\x8g_\x8e_\x8r() | ||
69 | 63{ | ||
70 | 64·assert(d_instance·==·0); | ||
71 | 65·d_instance·=·this; | ||
72 | 66·_\x8a_\x8d_\x8d(new·_\x8T_\x8G_\x8A_\x8I_\x8m_\x8a_\x8g_\x8e_\x8L_\x8o_\x8a_\x8d_\x8e_\x8r); | ||
73 | 67#ifdef·SILLY_HAVE_JPG | ||
74 | 68·_\x8a_\x8d_\x8d(new·_\x8J_\x8P_\x8G_\x8I_\x8m_\x8a_\x8g_\x8e_\x8L_\x8o_\x8a_\x8d_\x8e_\x8r); | ||
75 | 69#endif | ||
76 | 70#ifdef·SILLY_HAVE_PNG | ||
77 | 71·_\x8a_\x8d_\x8d(new·_\x8P_\x8N_\x8G_\x8I_\x8m_\x8a_\x8g_\x8e_\x8L_\x8o_\x8a_\x8d_\x8e_\x8r); | ||
78 | 72#endif | ||
79 | 73//·Add·other·builtins·loader·here | ||
80 | 74 | ||
81 | 75} | ||
82 | 76 | ||
83 | _\x87_\x87_\x8I_\x8m_\x8a_\x8g_\x8e_\x8L_\x8o_\x8a_\x8d_\x8e_\x8r_\x8M_\x8a_\x8n_\x8a_\x8g_\x8e_\x8r_\x8:_\x8:_\x8~_\x8I_\x8m_\x8a_\x8g_\x8e_\x8L_\x8o_\x8a_\x8d_\x8e_\x8r_\x8M_\x8a_\x8n_\x8a_\x8g_\x8e_\x8r() | ||
84 | 78{ | ||
85 | 79·for(ImageLoaderList::iterator·iter·=·d_loaders.begin()·;·iter·!= | ||
86 | d_loaders.end()·;·++iter) | ||
87 | 80·{ | ||
88 | 81·delete·(*iter); | ||
89 | 82·} | ||
90 | 83·d_instance·=·0; | ||
91 | 84} | ||
92 | 85 | ||
93 | 86 | ||
94 | _\x88_\x87bool·_\x8S_\x8I_\x8L_\x8L_\x8Y_\x8I_\x8n_\x8i_\x8t() | ||
95 | 88{ | ||
96 | 89·if·(ImageLoaderManager::getSingletonPtr()·==·0) | ||
97 | 90·{ | ||
98 | 91·if·(!new·_\x8I_\x8m_\x8a_\x8g_\x8e_\x8L_\x8o_\x8a_\x8d_\x8e_\x8r_\x8M_\x8a_\x8n_\x8a_\x8g_\x8e_\x8r) | ||
99 | 92·{ | ||
100 | 93·return·false; | ||
101 | 94·} | ||
102 | 95·} | ||
103 | 96·++silly_init_counter; | ||
104 | 97·return·true; | ||
105 | 98} | ||
106 | 99 | ||
107 | _\x81_\x80_\x80void·_\x8S_\x8I_\x8L_\x8L_\x8Y_\x8C_\x8l_\x8e_\x8a_\x8n_\x8u_\x8p() | ||
108 | 101{ | ||
109 | 102·if·(--silly_init_counter·==·0) | ||
110 | 103·{ | ||
111 | 104·delete·ImageLoaderManager::getSingletonPtr(); | ||
112 | 105·} | ||
113 | 106} | ||
114 | 107 | ||
115 | 108}·//·End·of·SILLY·namespace·section | ||
116 | 109 | ||
117 | 110 | ||
64 | _\x8S_\x8I_\x8L_\x8L_\x8Y | 118 | _\x8S_\x8I_\x8L_\x8L_\x8Y |
65 | Simple·Image·Loading·LibrarY·namespace. | 119 | Simple·Image·Loading·LibrarY·namespace. |
66 | D\x8De\x8ef\x8fi\x8in\x8ni\x8it\x8ti\x8io\x8on\x8n·_\x8S_\x8I_\x8L_\x8L_\x8Y_\x8J_\x8P_\x8G_\x8I_\x8m_\x8a_\x8g_\x8e_\x8C_\x8o_\x8n_\x8t_\x8e_\x8x_\x8t_\x8._\x8c_\x8p_\x8p_\x8:_\x84_\x86 | 120 | D\x8De\x8ef\x8fi\x8in\x8ni\x8it\x8ti\x8io\x8on\x8n·_\x8S_\x8I_\x8L_\x8L_\x8Y_\x8J_\x8P_\x8G_\x8I_\x8m_\x8a_\x8g_\x8e_\x8C_\x8o_\x8n_\x8t_\x8e_\x8x_\x8t_\x8._\x8c_\x8p_\x8p_\x8:_\x84_\x86 |
121 | _\x8S_\x8I_\x8L_\x8L_\x8Y_\x8:_\x8:_\x8S_\x8I_\x8L_\x8L_\x8Y_\x8C_\x8l_\x8e_\x8a_\x8n_\x8u_\x8p | ||
122 | void·SILLYCleanup() | ||
123 | Cleanup·SILLY·library·internal. | ||
Max diff block lines reached; 53/6625 bytes (0.80%) of diff not shown. |
Offset 1, 15 lines modified | Offset 1, 15 lines modified | ||
1 | <!DOCTYPE·html·PUBLIC·"-//W3C//DTD·XHTML·1.0·Transitional//EN"·"https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> | 1 | <!DOCTYPE·html·PUBLIC·"-//W3C//DTD·XHTML·1.0·Transitional//EN"·"https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> |
2 | <html·xmlns="http://www.w3.org/1999/xhtml"·lang="en-US"> | 2 | <html·xmlns="http://www.w3.org/1999/xhtml"·lang="en-US"> |
3 | <head> | 3 | <head> |
4 | <meta·http-equiv="Content-Type"·content="text/xhtml;charset=UTF-8"/> | 4 | <meta·http-equiv="Content-Type"·content="text/xhtml;charset=UTF-8"/> |
5 | <meta·http-equiv="X-UA-Compatible"·content="IE=11"/> | 5 | <meta·http-equiv="X-UA-Compatible"·content="IE=11"/> |
6 | <meta·name="generator"·content="Doxygen·1.9.8"/> | 6 | <meta·name="generator"·content="Doxygen·1.9.8"/> |
7 | <meta·name="viewport"·content="width=device-width,·initial-scale=1"/> | 7 | <meta·name="viewport"·content="width=device-width,·initial-scale=1"/> |
8 | <title>Simple·Image·Loading·LibrarY:·/build/reproducible-path/silly-0.1.0/src/SILLYImage | 8 | <title>Simple·Image·Loading·LibrarY:·/build/reproducible-path/silly-0.1.0/src/SILLYImage.cpp·Source·File</title> |
9 | <link·href="tabs.css"·rel="stylesheet"·type="text/css"/> | 9 | <link·href="tabs.css"·rel="stylesheet"·type="text/css"/> |
10 | <script·type="text/javascript"·src="jquery.js"></script> | 10 | <script·type="text/javascript"·src="jquery.js"></script> |
11 | <script·type="text/javascript"·src="dynsections.js"></script> | 11 | <script·type="text/javascript"·src="dynsections.js"></script> |
12 | <link·href="doxygen.css"·rel="stylesheet"·type="text/css"·/> | 12 | <link·href="doxygen.css"·rel="stylesheet"·type="text/css"·/> |
13 | </head> | 13 | </head> |
14 | <body> | 14 | <body> |
15 | <div·id="top"><!--·do·not·remove·this·div,·it·is·closed·by·doxygen!·--> | 15 | <div·id="top"><!--·do·not·remove·this·div,·it·is·closed·by·doxygen!·--> |
Offset 44, 23 lines modified | Offset 44, 23 lines modified | ||
44 | </script> | 44 | </script> |
45 | <div·id="nav-path"·class="navpath"> | 45 | <div·id="nav-path"·class="navpath"> |
46 | ··<ul> | 46 | ··<ul> |
47 | <li·class="navelem"><a·class="el"·href="dir_4fef79e7177ba769987a8da36c892c5f.html">build</a></li><li·class="navelem"><a·class="el"·href="dir_9def6061848686aab7e6212bb499d615.html">reproducible-path</a></li><li·class="navelem"><a·class="el"·href="dir_74170d5b58cefb7cb5a86fc552b183a3.html">silly-0.1.0</a></li><li·class="navelem"><a·class="el"·href="dir_7b53bc9a32849689d682eb098e891de5.html">src</a></li>··</ul> | 47 | <li·class="navelem"><a·class="el"·href="dir_4fef79e7177ba769987a8da36c892c5f.html">build</a></li><li·class="navelem"><a·class="el"·href="dir_9def6061848686aab7e6212bb499d615.html">reproducible-path</a></li><li·class="navelem"><a·class="el"·href="dir_74170d5b58cefb7cb5a86fc552b183a3.html">silly-0.1.0</a></li><li·class="navelem"><a·class="el"·href="dir_7b53bc9a32849689d682eb098e891de5.html">src</a></li>··</ul> |
48 | </div> | 48 | </div> |
49 | </div><!--·top·--> | 49 | </div><!--·top·--> |
50 | <div·class="header"> | 50 | <div·class="header"> |
51 | ··<div·class="headertitle"><div·class="title">SILLYImage | 51 | ··<div·class="headertitle"><div·class="title">SILLYImage.cpp</div></div> |
52 | </div><!--header--> | 52 | </div><!--header--> |
53 | <div·class="contents"> | 53 | <div·class="contents"> |
54 | <div·class="fragment"><div·class="line"><a·id="l00001"·name="l00001"></a><span·class="lineno">····1</span><span·class="comment">/***********************************************************************</span></div> | 54 | <div·class="fragment"><div·class="line"><a·id="l00001"·name="l00001"></a><span·class="lineno">····1</span><span·class="comment">/***********************************************************************</span></div> |
55 | <div·class="line"><a·id="l00002"·name="l00002"></a><span·class="lineno">····2</span><span·class="comment">····filename:··· | 55 | <div·class="line"><a·id="l00002"·name="l00002"></a><span·class="lineno">····2</span><span·class="comment">····filename:···SILLYImage.cpp</span></div> |
56 | <div·class="line"><a·id="l00003"·name="l00003"></a><span·class="lineno">····3</span><span·class="comment">····created:····10·Jun·2006</span></div> | 56 | <div·class="line"><a·id="l00003"·name="l00003"></a><span·class="lineno">····3</span><span·class="comment">····created:····10·Jun·2006</span></div> |
57 | <div·class="line"><a·id="l00004"·name="l00004"></a><span·class="lineno">····4</span><span·class="comment">····author:·····Olivier·Delannoy·</span></div> | 57 | <div·class="line"><a·id="l00004"·name="l00004"></a><span·class="lineno">····4</span><span·class="comment">····author:·····Olivier·Delannoy·</span></div> |
58 | <div·class="line"><a·id="l00005"·name="l00005"></a><span·class="lineno">····5</span><span·class="comment"></span>·</div> | 58 | <div·class="line"><a·id="l00005"·name="l00005"></a><span·class="lineno">····5</span><span·class="comment"></span>·</div> |
59 | <div·class="line"><a·id="l00006"·name="l00006"></a><span·class="lineno">····6</span><span·class="comment">····purpose:···· | 59 | <div·class="line"><a·id="l00006"·name="l00006"></a><span·class="lineno">····6</span><span·class="comment">····purpose:····Implementation·of·the·Image·class··</span></div> |
60 | <div·class="line"><a·id="l00007"·name="l00007"></a><span·class="lineno">····7</span><span·class="comment">*************************************************************************/</span></div> | 60 | <div·class="line"><a·id="l00007"·name="l00007"></a><span·class="lineno">····7</span><span·class="comment">*************************************************************************/</span></div> |
61 | <div·class="line"><a·id="l00008"·name="l00008"></a><span·class="lineno">····8</span><span·class="comment">/***************************************************************************</span></div> | 61 | <div·class="line"><a·id="l00008"·name="l00008"></a><span·class="lineno">····8</span><span·class="comment">/***************************************************************************</span></div> |
62 | <div·class="line"><a·id="l00009"·name="l00009"></a><span·class="lineno">····9</span><span·class="comment">·*···Copyright·(C)·2004·-·2006·Paul·D·Turner·&·The·CEGUI·Development·Team</span></div> | 62 | <div·class="line"><a·id="l00009"·name="l00009"></a><span·class="lineno">····9</span><span·class="comment">·*···Copyright·(C)·2004·-·2006·Paul·D·Turner·&·The·CEGUI·Development·Team</span></div> |
63 | <div·class="line"><a·id="l00010"·name="l00010"></a><span·class="lineno">···10</span><span·class="comment">·*</span></div> | 63 | <div·class="line"><a·id="l00010"·name="l00010"></a><span·class="lineno">···10</span><span·class="comment">·*</span></div> |
64 | <div·class="line"><a·id="l00011"·name="l00011"></a><span·class="lineno">···11</span><span·class="comment">·*···Permission·is·hereby·granted,·free·of·charge,·to·any·person·obtaining</span></div> | 64 | <div·class="line"><a·id="l00011"·name="l00011"></a><span·class="lineno">···11</span><span·class="comment">·*···Permission·is·hereby·granted,·free·of·charge,·to·any·person·obtaining</span></div> |
65 | <div·class="line"><a·id="l00012"·name="l00012"></a><span·class="lineno">···12</span><span·class="comment">·*···a·copy·of·this·software·and·associated·documentation·files·(the</span></div> | 65 | <div·class="line"><a·id="l00012"·name="l00012"></a><span·class="lineno">···12</span><span·class="comment">·*···a·copy·of·this·software·and·associated·documentation·files·(the</span></div> |
66 | <div·class="line"><a·id="l00013"·name="l00013"></a><span·class="lineno">···13</span><span·class="comment">·*···"Software"),·to·deal·in·the·Software·without·restriction,·including</span></div> | 66 | <div·class="line"><a·id="l00013"·name="l00013"></a><span·class="lineno">···13</span><span·class="comment">·*···"Software"),·to·deal·in·the·Software·without·restriction,·including</span></div> |
Offset 80, 109 lines modified | Offset 80, 106 lines modified | ||
80 | <div·class="line"><a·id="l00027"·name="l00027"></a><span·class="lineno">···27</span><span·class="comment">·*···ARISING·FROM,·OUT·OF·OR·IN·CONNECTION·WITH·THE·SOFTWARE·OR·THE·USE·OR</span></div> | 80 | <div·class="line"><a·id="l00027"·name="l00027"></a><span·class="lineno">···27</span><span·class="comment">·*···ARISING·FROM,·OUT·OF·OR·IN·CONNECTION·WITH·THE·SOFTWARE·OR·THE·USE·OR</span></div> |
81 | <div·class="line"><a·id="l00028"·name="l00028"></a><span·class="lineno">···28</span><span·class="comment">·*···OTHER·DEALINGS·IN·THE·SOFTWARE.</span></div> | 81 | <div·class="line"><a·id="l00028"·name="l00028"></a><span·class="lineno">···28</span><span·class="comment">·*···OTHER·DEALINGS·IN·THE·SOFTWARE.</span></div> |
82 | <div·class="line"><a·id="l00029"·name="l00029"></a><span·class="lineno">···29</span><span·class="comment">·***************************************************************************/</span></div> | 82 | <div·class="line"><a·id="l00029"·name="l00029"></a><span·class="lineno">···29</span><span·class="comment">·***************************************************************************/</span></div> |
83 | <div·class="line"><a·id="l00030"·name="l00030"></a><span·class="lineno">···30</span><span·class="preprocessor">#ifdef·HAVE_CONFIG_H</span></div> | 83 | <div·class="line"><a·id="l00030"·name="l00030"></a><span·class="lineno">···30</span><span·class="preprocessor">#ifdef·HAVE_CONFIG_H</span></div> |
84 | <div·class="line"><a·id="l00031"·name="l00031"></a><span·class="lineno">···31</span><span·class="preprocessor">#include·<config.h></span></div> | 84 | <div·class="line"><a·id="l00031"·name="l00031"></a><span·class="lineno">···31</span><span·class="preprocessor">#include·<config.h></span></div> |
85 | <div·class="line"><a·id="l00032"·name="l00032"></a><span·class="lineno">···32</span><span·class="preprocessor">#endif</span></div> | 85 | <div·class="line"><a·id="l00032"·name="l00032"></a><span·class="lineno">···32</span><span·class="preprocessor">#endif</span></div> |
86 | <div·class="line"><a·id="l00033"·name="l00033"></a><span·class="lineno">···33</span>·</div> | 86 | <div·class="line"><a·id="l00033"·name="l00033"></a><span·class="lineno">···33</span>·</div> |
87 | <div·class="line"><a·id="l00034"·name="l00034"></a><span·class="lineno">···34</span><span·class="preprocessor">#include·"SILLYImage | 87 | <div·class="line"><a·id="l00034"·name="l00034"></a><span·class="lineno">···34</span><span·class="preprocessor">#include·"SILLYImage.h"</span></div> |
88 | <div·class="line"><a·id="l00035"·name="l00035"></a><span·class="lineno">···35</span>·</div> | 88 | <div·class="line"><a·id="l00035"·name="l00035"></a><span·class="lineno">···35</span>·</div> |
89 | <div·class="line"><a·id="l00036"·name="l00036"></a><span·class="lineno">···36</span><span·class="preprocessor">#ifndef·SILLY_OPT_INLINE</span></div> | 89 | <div·class="line"><a·id="l00036"·name="l00036"></a><span·class="lineno">···36</span><span·class="preprocessor">#ifndef·SILLY_OPT_INLINE</span></div> |
90 | <div·class="line"><a·id="l00037"·name="l00037"></a><span·class="lineno">···37</span><span·class="preprocessor">#define·inline·</span></div> | 90 | <div·class="line"><a·id="l00037"·name="l00037"></a><span·class="lineno">···37</span><span·class="preprocessor">#define·inline·</span></div> |
91 | <div·class="line"><a·id="l00038"·name="l00038"></a><span·class="lineno">···38</span><span·class="preprocessor">#include·"SILLYImage | 91 | <div·class="line"><a·id="l00038"·name="l00038"></a><span·class="lineno">···38</span><span·class="preprocessor">#include·"SILLYImage.icpp"</span></div> |
92 | <div·class="line"><a·id="l00039"·name="l00039"></a><span·class="lineno">···39</span><span·class="preprocessor">#undef·inline</span></div> | 92 | <div·class="line"><a·id="l00039"·name="l00039"></a><span·class="lineno">···39</span><span·class="preprocessor">#undef·inline</span></div> |
93 | <div·class="line"><a·id="l00040"·name="l00040"></a><span·class="lineno">···40</span><span·class="preprocessor">#endif·</span></div> | 93 | <div·class="line"><a·id="l00040"·name="l00040"></a><span·class="lineno">···40</span><span·class="preprocessor">#endif·</span></div> |
94 | <div·class="line"><a·id="l00041"·name="l00041"></a><span·class="lineno">···41</span><span·class="preprocessor">#include·"SILLYImageLoader.h"</span></div> | 94 | <div·class="line"><a·id="l00041"·name="l00041"></a><span·class="lineno">···41</span><span·class="preprocessor">#include·"SILLYImageLoaderManager.h"</span></div> |
95 | <div·class="line"><a·id="l00042"·name="l00042"></a><span·class="lineno">···42</span> | 95 | <div·class="line"><a·id="l00042"·name="l00042"></a><span·class="lineno">···42</span>·</div> |
96 | <div·class="line"><a·id="l00043"·name="l00043"></a><span·class="lineno">···43</span>·</div> | 96 | <div·class="line"><a·id="l00043"·name="l00043"></a><span·class="lineno">···43</span>·</div> |
97 | <div·class="line"><a·id="l00044"·name="l00044"></a><span·class="lineno">···44</span><span·class=" | 97 | <div·class="line"><a·id="l00044"·name="l00044"></a><span·class="lineno">···44</span><span·class="comment">//·Start·section·of·namespace·SILLY</span></div> |
98 | <div·class="line"><a·id="l00045"·name="l00045"></a><span·class="lineno">···45</span><span·class=" | 98 | <div·class="line"><a·id="l00045"·name="l00045"></a><span·class="lineno">···45</span><span·class="keyword">namespace·</span><a·class="code·hl_namespace"·href="a00129.html">SILLY</a></div> |
99 | <div·class="line"><a·id="l00046"·name="l00046"></a><span·class="lineno">···46</span> | 99 | <div·class="line"><a·id="l00046"·name="l00046"></a><span·class="lineno">···46</span>{</div> |
100 | <div·class="line"><a·id="l00047"·name="l00047"></a><span·class="lineno">···47</span>·</div> | 100 | <div·class="line"><a·id="l00047"·name="l00047"></a><span·class="lineno">···47</span>·</div> |
101 | <div·class="line"><a·id="l00048"·name="l00048"></a><span·class="lineno">···48</span><span·class="preprocessor">#ifdef·SILLY_HAVE_PNG</span></div> | ||
102 | <div·class=" | 101 | <div·class="foldopen"·id="foldopen00048"·data-start="{"·data-end="}"> |
102 | <div·class="line"><a·id="l00048"·name="l00048"></a><span·class="lineno"><a·class="line"·href="a00977.html#a03b8914e2a6b111009001ae06f895236">···48</a></span><a·class="code·hl_function"·href="a00977.html#a03b8914e2a6b111009001ae06f895236">Image::Image</a>(<a·class="code·hl_class"·href="a00969.html">DataSource</a>&·source)</div> | ||
103 | <div·class="line"><a·id="l00049"·name="l00049"></a><span·class="lineno">···49</span>··:··d_bpp(0),·d_pixels(0),·d_data(&source),·d_imageContext(0),·d_imageLoader(0)</div> | ||
103 | <div·class="line"><a·id="l00050"·name="l00050"></a><span·class="lineno">···50</span> | 104 | <div·class="line"><a·id="l00050"·name="l00050"></a><span·class="lineno">···50</span>{</div> |
104 | <div·class="line"><a·id="l00051"·name="l00051"></a><span·class="lineno">···51</span> | 105 | <div·class="line"><a·id="l00051"·name="l00051"></a><span·class="lineno">···51</span>}</div> |
105 | <div·class="line"><a·id="l00052"·name="l00052"></a><span·class="lineno">···52</span><span·class="comment">//·Start·of·SILLY·namespace·section·</span></div> | ||
106 | <div·class="line"><a·id="l00053"·name="l00053"></a><span·class="lineno">···53</span><span·class="keyword">namespace·</span><a·class="code·hl_namespace"·href="a00129.html">SILLY</a></div> | ||
107 | <div·class="line"><a·id="l00054"·name="l00054"></a><span·class="lineno">···54</span>{</div> | ||
108 | <div·class="line"><a·id="l00055"·name="l00055"></a><span·class="lineno">···55</span>·</div> | ||
109 | <div·class="line"><a·id="l00056"·name="l00056"></a><span·class="lineno">···56</span><span·class="comment">//·we·need·to·do·"reference·counting"·for·init/exit·to·allow·silly·to·be·used</span></div> | ||
110 | <div·class="line"><a·id="l00057"·name="l00057"></a><span·class="lineno">···57</span><span·class="comment">//·from·inside·multiple·independent·libraries·simultaneously.</span></div> | ||
111 | <div·class="line"><a·id="l00058"·name="l00058"></a><span·class="lineno">···58</span><span·class="keyword">static</span>·<span·class="keywordtype">size_t</span>·silly_init_counter·=·0;</div> | ||
112 | <div·class="line"><a·id="l00059"·name="l00059"></a><span·class="lineno">···59</span>·</div> | ||
113 | <div·class="line"><a·id="l00060"·name="l00060"></a><span·class="lineno">···60</span>ImageLoaderManager*·ImageLoaderManager::d_instance·=·0;</div> | ||
114 | <div·class="line"><a·id="l00061"·name="l00061"></a><span·class="lineno">···61</span>·</div> | ||
115 | <div·class="foldopen"·id="foldopen00062"·data-start="{"·data-end="}"> | ||
116 | <div·class="line"><a·id="l00062"·name="l00062"></a><span·class="lineno"><a·class="line"·href="a00989.html#a3f46e55dada1357eddf5f0711b1cedd7">···62</a></span><a·class="code·hl_function"·href="a00989.html#a3f46e55dada1357eddf5f0711b1cedd7">ImageLoaderManager::ImageLoaderManager</a>()</div> | ||
117 | <div·class="line"><a·id="l00063"·name="l00063"></a><span·class="lineno">···63</span>{</div> | ||
118 | <div·class="line"><a·id="l00064"·name="l00064"></a><span·class="lineno">···64</span>····assert(d_instance·==·0);</div> | ||
119 | <div·class="line"><a·id="l00065"·name="l00065"></a><span·class="lineno">···65</span>····d_instance·=·<span·class="keyword">this</span>;</div> | ||
120 | <div·class="line"><a·id="l00066"·name="l00066"></a><span·class="lineno">···66</span>····<a·class="code·hl_function"·href="a00989.html#a38aa5b3d86db46f24cd330bda6d0b696">add</a>(<span·class="keyword">new</span>·<a·class="code·hl_class"·href="a00965.html">TGAImageLoader</a>);</div> | ||
121 | <div·class="line"><a·id="l00067"·name="l00067"></a><span·class="lineno">···67</span><span·class="preprocessor">#ifdef·SILLY_HAVE_JPG</span></div> | ||
122 | <div·class="line"><a·id="l00068"·name="l00068"></a><span·class="lineno">···68</span>····<a·class="code·hl_function"·href="a00989.html#a38aa5b3d86db46f24cd330bda6d0b696">add</a>(<span·class="keyword">new</span>·<a·class="code·hl_class"·href="a00949.html">JPGImageLoader</a>);</div> | ||
123 | <div·class="line"><a·id="l00069"·name="l00069"></a><span·class="lineno">···69</span><span·class="preprocessor">#endif</span></div> | ||
124 | <div·class="line"><a·id="l00070"·name="l00070"></a><span·class="lineno">···70</span><span·class="preprocessor">#ifdef·SILLY_HAVE_PNG</span></div> | ||
125 | <div·class="line"><a·id="l00071"·name="l00071"></a><span·class="lineno">···71</span>····<a·class="code·hl_function"·href="a00989.html#a38aa5b3d86db46f24cd330bda6d0b696">add</a>(<span·class="keyword">new</span>·<a·class="code·hl_class"·href="a00957.html">PNGImageLoader</a>);</div> | ||
126 | <div·class="line"><a·id="l00072"·name="l00072"></a><span·class="lineno">···72</span><span·class="preprocessor">#endif·</span></div> | ||
127 | <div·class="line"><a·id="l00073"·name="l00073"></a><span·class="lineno">···73</span><span·class="comment">//·Add·other·builtins·loader·here·</span></div> | ||
128 | <div·class="line"><a·id="l00074"·name="l00074"></a><span·class="lineno">···74</span>·</div> | ||
129 | <div·class="line"><a·id="l00075"·name="l00075"></a><span·class="lineno">···75</span>}</div> | ||
130 | </div> | 106 | </div> |
131 | <div·class="line"><a·id="l000 | 107 | <div·class="line"><a·id="l00052"·name="l00052"></a><span·class="lineno">···52</span>·</div> |
108 | <div·class="line"><a·id="l00053"·name="l00053"></a><span·class="lineno">···53</span>·</div> | ||
132 | <div·class="foldopen"·id="foldopen000 | 109 | <div·class="foldopen"·id="foldopen00054"·data-start="{"·data-end="}"> |
133 | <div·class="line"><a·id="l000 | 110 | <div·class="line"><a·id="l00054"·name="l00054"></a><span·class="lineno"><a·class="line"·href="a00977.html#a0456197da83edd0e5c746e82642b6be9">···54</a></span><span·class="keywordtype">bool</span>·<a·class="code·hl_function"·href="a00977.html#a0456197da83edd0e5c746e82642b6be9">Image::lo[·...·truncated·by·diffoscope;·len:·11,·SHA:·2218ca43de5713b88e912b6351a85e8d5b96d8e9980ed0ce7ed408030499d83e·...·]er</a>()</div> |
134 | <div·class="line"><a·id="l000 | 111 | <div·class="line"><a·id="l00055"·name="l00055"></a><span·class="lineno">···55</span>{</div> |
135 | <div·class="line"><a·id="l000 | 112 | <div·class="line"><a·id="l00056"·name="l00056"></a><span·class="lineno">···56</span>····ImageLoaderList::iterator·iter·=·ImageLoaderManager::getSingleton().begin();</div> |
113 | <div·class="line"><a·id="l00057"·name="l00057"></a><span·class="lineno">···57</span>····<span·class="keywordflow">for</span>·(;·!·d_imageLoader·&&·iter·!=·ImageLoaderManager::getSingleton().end()·;·++iter)</div> | ||
136 | <div·class="line"><a·id="l000 | 114 | <div·class="line"><a·id="l00058"·name="l00058"></a><span·class="lineno">···58</span>····{</div> |
115 | <div·class="line"><a·id="l00059"·name="l00059"></a><span·class="lineno">···59</span>········d_imageContext·=·(*iter)->loadHeader(d_pfSource,·d_data);</div> | ||
137 | <div·class="line"><a·id="l000 | 116 | <div·class="line"><a·id="l00060"·name="l00060"></a><span·class="lineno">···60</span>········<span·class="keywordflow">if</span>·(d_imageContext)</div> |
117 | <div·class="line"><a·id="l00061"·name="l00061"></a><span·class="lineno">···61</span>············d_imageLoader·=·(*iter);</div> | ||
138 | <div·class="line"><a·id="l000 | 118 | <div·class="line"><a·id="l00062"·name="l00062"></a><span·class="lineno">···62</span>····}</div> |
119 | <div·class="line"><a·id="l00063"·name="l00063"></a><span·class="lineno">···63</span>····assert((!·d_imageLoader·||·d_imageContext)·&&·<span·class="stringliteral">"ASSERT:·Internal·state·of·image·invalid"</span>);</div> | ||
120 | <div·class="line"><a·id="l00064"·name="l00064"></a><span·class="lineno">···64</span>····<span·class="keywordflow">return</span>·d_imageLoader·!=·0;</div> | ||
139 | <div·class="line"><a·id="l000 | 121 | <div·class="line"><a·id="l00065"·name="l00065"></a><span·class="lineno">···65</span>····</div> |
140 | <div·class="line"><a·id="l000 | 122 | <div·class="line"><a·id="l00066"·name="l00066"></a><span·class="lineno">···66</span>}</div> |
141 | </div> | 123 | </div> |
124 | <div·class="line"><a·id="l00067"·name="l00067"></a><span·class="lineno">···67</span>·</div> | ||
125 | <div·class="foldopen"·id="foldopen00068"·data-start="{"·data-end="}"> | ||
126 | <div·class="line"><a·id="l00068"·name="l00068"></a><span·class="lineno"><a·class="line"·href="a00977.html#a86abdf05f0d3f64a20d1e0ad3ec91c8a">···68</a></span><span·class="keywordtype">bool</span>·<a·class="code·hl_function"·href="a00977.html#a86abdf05f0d3f64a20d1e0ad3ec91c8a">Image::loadImageData</a>(<a·class="code·hl_enumeration"·href="a00129.html#a60883d4958a60b91661e97027a85072a">PixelFormat</a>·resultFormat,·<a·class="code·hl_enumeration"·href="a00129.html#aebdd89f22790687ac264c1abd9f7fd38">PixelOrigin</a>·order)</div> | ||
127 | <div·class="line"><a·id="l00069"·name="l00069"></a><span·class="lineno">···69</span>{</div> | ||
128 | <div·class="line"><a·id="l00070"·name="l00070"></a><span·class="lineno">···70</span>····<span·class="keywordflow">switch</span>·(resultFormat)</div> | ||
129 | <div·class="line"><a·id="l00071"·name="l00071"></a><span·class="lineno">···71</span>····{</div> | ||
130 | <div·class="line"><a·id="l00072"·name="l00072"></a><span·class="lineno">···72</span>····<span·class="keywordflow">case</span>·PF_A1B5G5R5:</div> | ||
131 | <div·class="line"><a·id="l00073"·name="l00073"></a><span·class="lineno">···73</span>········d_bpp·=·2;</div> | ||
132 | <div·class="line"><a·id="l00074"·name="l00074"></a><span·class="lineno">···74</span>········<span·class="keywordflow">break</span>;</div> | ||
133 | <div·class="line"><a·id="l00075"·name="l00075"></a><span·class="lineno">···75</span>····<span·class="keywordflow">case</span>·PF_RGB:</div> | ||
134 | <div·class="line"><a·id="l00076"·name="l00076"></a><span·class="lineno">···76</span>········d_bpp·=·3;</div> | ||
135 | <div·class="line"><a·id="l00077"·name="l00077"></a><span·class="lineno">···77</span>········<span·class="keywordflow">break</span>;</div> | ||
136 | <div·class="line"><a·id="l00078"·name="l00078"></a><span·class="lineno">···78</span>·</div> | ||
137 | <div·class="line"><a·id="l00079"·name="l00079"></a><span·class="lineno">···79</span>····<span·class="keywordflow">case</span>·PF_RGBA:····</div> | ||
138 | <div·class="line"><a·id="l00080"·name="l00080"></a><span·class="lineno">···80</span>········d_bpp·=·4;</div> | ||
139 | <div·class="line"><a·id="l00081"·name="l00081"></a><span·class="lineno">···81</span>········<span·class="keywordflow">break</span>;</div> | ||
140 | <div·class="line"><a·id="l00082"·name="l00082"></a><span·class="lineno">···82</span>········<span·class="comment">//default:</span></div> | ||
Max diff block lines reached; 14035/34133 bytes (41.12%) of diff not shown. |
Offset 1, 19 lines modified | Offset 1, 19 lines modified | ||
1 | Simple·Image·Loading·LibrarY 0.1.0 | 1 | Simple·Image·Loading·LibrarY 0.1.0 |
2 | ····*·_\x8b_\x8u_\x8i_\x8l_\x8d | 2 | ····*·_\x8b_\x8u_\x8i_\x8l_\x8d |
3 | ····*·_\x8r_\x8e_\x8p_\x8r_\x8o_\x8d_\x8u_\x8c_\x8i_\x8b_\x8l_\x8e_\x8-_\x8p_\x8a_\x8t_\x8h | 3 | ····*·_\x8r_\x8e_\x8p_\x8r_\x8o_\x8d_\x8u_\x8c_\x8i_\x8b_\x8l_\x8e_\x8-_\x8p_\x8a_\x8t_\x8h |
4 | ····*·_\x8s_\x8i_\x8l_\x8l_\x8y_\x8-_\x80_\x8._\x81_\x8._\x80 | 4 | ····*·_\x8s_\x8i_\x8l_\x8l_\x8y_\x8-_\x80_\x8._\x81_\x8._\x80 |
5 | ····*·_\x8s_\x8r_\x8c | 5 | ····*·_\x8s_\x8r_\x8c |
6 | SILLYImage | 6 | SILLYImage.cpp |
7 | 1/*********************************************************************** | 7 | 1/*********************************************************************** |
8 | 2·filename:· | 8 | 2·filename:·SILLYImage.cpp |
9 | 3·created:·10·Jun·2006 | 9 | 3·created:·10·Jun·2006 |
10 | 4·author:·Olivier·Delannoy | 10 | 4·author:·Olivier·Delannoy |
11 | 5 | 11 | 5 |
12 | 6·purpose:· | 12 | 6·purpose:·Implementation·of·the·Image·class |
13 | 7*************************************************************************/ | 13 | 7*************************************************************************/ |
14 | 8/*************************************************************************** | 14 | 8/*************************************************************************** |
15 | 9·*·Copyright·(C)·2004·-·2006·Paul·D·Turner·&·The·CEGUI·Development·Team | 15 | 9·*·Copyright·(C)·2004·-·2006·Paul·D·Turner·&·The·CEGUI·Development·Team |
16 | 10·* | 16 | 10·* |
17 | 11·*·Permission·is·hereby·granted,·free·of·charge,·to·any·person·obtaining | 17 | 11·*·Permission·is·hereby·granted,·free·of·charge,·to·any·person·obtaining |
18 | 12·*·a·copy·of·this·software·and·associated·documentation·files·(the | 18 | 12·*·a·copy·of·this·software·and·associated·documentation·files·(the |
19 | 13·*·"Software"),·to·deal·in·the·Software·without·restriction,·including | 19 | 13·*·"Software"),·to·deal·in·the·Software·without·restriction,·including |
Offset 33, 121 lines modified | Offset 33, 128 lines modified | ||
33 | 27·*·ARISING·FROM,·OUT·OF·OR·IN·CONNECTION·WITH·THE·SOFTWARE·OR·THE·USE·OR | 33 | 27·*·ARISING·FROM,·OUT·OF·OR·IN·CONNECTION·WITH·THE·SOFTWARE·OR·THE·USE·OR |
34 | 28·*·OTHER·DEALINGS·IN·THE·SOFTWARE. | 34 | 28·*·OTHER·DEALINGS·IN·THE·SOFTWARE. |
35 | 29·***************************************************************************/ | 35 | 29·***************************************************************************/ |
36 | 30#ifdef·HAVE_CONFIG_H | 36 | 30#ifdef·HAVE_CONFIG_H |
37 | 31#include·<config.h> | 37 | 31#include·<config.h> |
38 | 32#endif | 38 | 32#endif |
39 | 33 | 39 | 33 |
40 | 34#include·"SILLYImage | 40 | 34#include·"SILLYImage.h" |
41 | 35 | 41 | 35 |
42 | 36#ifndef·SILLY_OPT_INLINE | 42 | 36#ifndef·SILLY_OPT_INLINE |
43 | 37#define·inline | 43 | 37#define·inline |
44 | 38#include·"SILLYImage | 44 | 38#include·"SILLYImage.icpp" |
45 | 39#undef·inline | 45 | 39#undef·inline |
46 | 40#endif | 46 | 40#endif |
47 | 41#include·"SILLYImageLoader.h" | 47 | 41#include·"SILLYImageLoaderManager.h" |
48 | 42 | 48 | 42 |
49 | 43 | 49 | 43 |
50 | 44#ifdef·SILLY_HAVE_JPG | ||
51 | 45#include·"loaders/SILLYJPGImageLoader.h" | ||
52 | 4 | 50 | 44//·Start·section·of·namespace·SILLY |
51 | 45namespace·_\x8S_\x8I_\x8L_\x8L_\x8Y | ||
52 | 46{ | ||
53 | 47 | 53 | 47 |
54 | 48#ifdef·SILLY_HAVE_PNG | ||
55 | 49#include·"loaders/SILLYPNGImageLoader.h" | ||
56 | 54 | _.4_.8_.I_.m_.a_.g_.e_.:_.:_.I_.m_.a_.g_.e(_.D_.a_.t_.a_.S_.o_.u_.r_.c_.e&·source) | |
55 | 49·:·d_bpp(0),·d_pixels(0),·d_data(&source),·d_imageContext(0),·d_imageLoader | ||
56 | (0) | ||
57 | 50{ | ||
57 | 51 | 58 | 51} |
58 | 52//·Start·of·SILLY·namespace·section | ||
59 | 53namespace·_\x8S_\x8I_\x8L_\x8L_\x8Y | ||
60 | 5 | 59 | 52 |
60 | 53 | ||
61 | _\x85_\x84bool·_\x8I_\x8m_\x8a_\x8g_\x8e_\x8:_\x8:_\x8l_\x8o_\x8a_\x8d_\x8I_\x8m_\x8a_\x8g_\x8e_\x8H_\x8e_\x8a_\x8d_\x8e_\x8r() | ||
61 | 55 | 62 | 55{ |
62 | 56//·we·need·to·do·"reference·counting"·for·init/exit·to·allow·silly·to·be·used | ||
63 | 57//·from·inside·multiple·independent·libraries·simultaneously. | ||
64 | 58static·size_t·silly_init_counter·=·0; | ||
65 | 59 | ||
66 | 60ImageLoaderManager*·ImageLoaderManager::d_instance·=·0; | ||
67 | 61 | ||
68 | _\x86_\x82_\x8I_\x8m_\x8a_\x8g_\x8e_\x8L_\x8o_\x8a_\x8d_\x8e_\x8r_\x8M_\x8a_\x8n_\x8a_\x8g_\x8e_\x8r_\x8:_\x8:_\x8I_\x8m_\x8a_\x8g_\x8e_\x8L_\x8o_\x8a_\x8d_\x8e_\x8r_\x8M_\x8a_\x8n_\x8a_\x8g_\x8e_\x8r() | ||
69 | 63{ | ||
70 | 64·assert(d_instance·==·0); | ||
71 | 65·d_instance·=·this; | ||
72 | 66·_\x8a_\x8d_\x8d(new·_\x8T_\x8G_\x8A_\x8I_\x8m_\x8a_\x8g_\x8e_\x8L_\x8o_\x8a_\x8d_\x8e_\x8r); | ||
73 | 67#ifdef·SILLY_HAVE_JPG | ||
74 | 68·_\x8a_\x8d_\x8d(new·_\x8J_\x8P_\x8G_\x8I_\x8m_\x8a_\x8g_\x8e_\x8L_\x8o_\x8a_\x8d_\x8e_\x8r); | ||
75 | 69#endif | ||
76 | 70#ifdef·SILLY_HAVE_PNG | ||
77 | 71·_\x8a_\x8d_\x8d(new·_\x8P_\x8N_\x8G_\x8I_\x8m_\x8a_\x8g_\x8e_\x8L_\x8o_\x8a_\x8d_\x8e_\x8r); | ||
78 | 72#endif | ||
79 | 73//·Add·other·builtins·loader·here | ||
80 | 74 | ||
81 | 75} | ||
82 | 76 | ||
83 | 63 | 56·ImageLoaderList::iterator·iter·=·ImageLoaderManager::getSingleton().begin(); | |
64 | 57·for·(;·!·d_imageLoader·&&·iter·!=·ImageLoaderManager::getSingleton().end()·; | ||
65 | ++iter) | ||
66 | 58·{ | ||
67 | 59·d_imageContext·=·(*iter)->loadHeader(d_pfSource,·d_data); | ||
68 | 60·if·(d_imageContext) | ||
69 | 61·d_imageLoader·=·(*iter); | ||
70 | 62·} | ||
71 | 63·assert((!·d_imageLoader·||·d_imageContext)·&&·"ASSERT:·Internal·state·of | ||
72 | image·invalid"); | ||
73 | 64·return·d_imageLoader·!=·0; | ||
74 | 65 | ||
75 | 66} | ||
76 | 67 | ||
77 | _\x86_\x88bool·_\x8I_\x8m_\x8a_\x8g_\x8e_\x8:_\x8:_\x8l_\x8o_\x8a_\x8d_\x8I_\x8m_\x8a_\x8g_\x8e_\x8D_\x8a_\x8t_\x8a(_\x8P_\x8i_\x8x_\x8e_\x8l_\x8F_\x8o_\x8r_\x8m_\x8a_\x8t·resultFormat,·_\x8P_\x8i_\x8x_\x8e_\x8l_\x8O_\x8r_\x8i_\x8g_\x8i_\x8n·order) | ||
78 | 69{ | ||
79 | 70·switch·(resultFormat) | ||
80 | 71·{ | ||
81 | 72·case·PF_A1B5G5R5: | ||
82 | 73·d_bpp·=·2; | ||
83 | 74·break; | ||
84 | 75·case·PF_RGB: | ||
85 | 76·d_bpp·=·3; | ||
86 | 77·break; | ||
84 | 78 | 87 | 78 |
88 | 79·case·PF_RGBA: | ||
89 | 80·d_bpp·=·4; | ||
90 | 81·break; | ||
91 | 82·//default: | ||
92 | 83·//·Unsupported·format | ||
85 | 79·for(ImageLoaderList::iterator·iter·=·d_loaders.begin()·;·iter·!= | ||
86 | d_loaders.end()·;·++iter) | ||
87 | 80·{ | ||
88 | 81·delete·(*iter); | ||
89 | 82·} | ||
90 | 83·d_instance·=·0; | ||
91 | 84} | 93 | 84·}; |
92 | 85 | 94 | 85 |
93 | 86 | ||
94 | _\x88_\x87bool·_\x8S_\x8I_\x8L_\x8L_\x8Y_\x8I_\x8n_\x8i_\x8t() | ||
95 | 88{ | ||
96 | 8 | 95 | 86·if·(!·allocate()) |
96 | 87·{ | ||
97 | 88·return·false; | ||
98 | 89·} | ||
99 | 90·d_imageContext->_\x8s_\x8e_\x8t_\x8D_\x8e_\x8s_\x8t_\x8i_\x8n_\x8a_\x8t_\x8i_\x8o_\x8n(d_pixels,·_\x8g_\x8e_\x8t_\x8W_\x8i_\x8d_\x8t_\x8h()·*·_\x8g_\x8e_\x8t_\x8H_\x8e_\x8i_\x8g_\x8h_\x8t()·*·d_bpp, | ||
100 | resultFormat); | ||
101 | 91 | ||
102 | 92·if·(!·d_imageLoader->_\x8l_\x8o_\x8a_\x8d_\x8I_\x8m_\x8a_\x8g_\x8e_\x8D_\x8a_\x8t_\x8a(order,·d_data,·d_imageContext)) | ||
97 | 9 | 103 | 93·{ |
Max diff block lines reached; 4843/9515 bytes (50.90%) of diff not shown. |
Offset 1, 15 lines modified | Offset 1, 15 lines modified | ||
1 | <!DOCTYPE·html·PUBLIC·"-//W3C//DTD·XHTML·1.0·Transitional//EN"·"https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> | 1 | <!DOCTYPE·html·PUBLIC·"-//W3C//DTD·XHTML·1.0·Transitional//EN"·"https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> |
2 | <html·xmlns="http://www.w3.org/1999/xhtml"·lang="en-US"> | 2 | <html·xmlns="http://www.w3.org/1999/xhtml"·lang="en-US"> |
3 | <head> | 3 | <head> |
4 | <meta·http-equiv="Content-Type"·content="text/xhtml;charset=UTF-8"/> | 4 | <meta·http-equiv="Content-Type"·content="text/xhtml;charset=UTF-8"/> |
5 | <meta·http-equiv="X-UA-Compatible"·content="IE=11"/> | 5 | <meta·http-equiv="X-UA-Compatible"·content="IE=11"/> |
6 | <meta·name="generator"·content="Doxygen·1.9.8"/> | 6 | <meta·name="generator"·content="Doxygen·1.9.8"/> |
7 | <meta·name="viewport"·content="width=device-width,·initial-scale=1"/> | 7 | <meta·name="viewport"·content="width=device-width,·initial-scale=1"/> |
8 | <title>Simple·Image·Loading·LibrarY:·/build/reproducible-path/silly-0.1.0/src/ | 8 | <title>Simple·Image·Loading·LibrarY:·/build/reproducible-path/silly-0.1.0/src/SILLYFileDataSource.cpp·Source·File</title> |
9 | <link·href="tabs.css"·rel="stylesheet"·type="text/css"/> | 9 | <link·href="tabs.css"·rel="stylesheet"·type="text/css"/> |
10 | <script·type="text/javascript"·src="jquery.js"></script> | 10 | <script·type="text/javascript"·src="jquery.js"></script> |
11 | <script·type="text/javascript"·src="dynsections.js"></script> | 11 | <script·type="text/javascript"·src="dynsections.js"></script> |
12 | <link·href="doxygen.css"·rel="stylesheet"·type="text/css"·/> | 12 | <link·href="doxygen.css"·rel="stylesheet"·type="text/css"·/> |
13 | </head> | 13 | </head> |
14 | <body> | 14 | <body> |
15 | <div·id="top"><!--·do·not·remove·this·div,·it·is·closed·by·doxygen!·--> | 15 | <div·id="top"><!--·do·not·remove·this·div,·it·is·closed·by·doxygen!·--> |
Offset 40, 27 lines modified | Offset 40, 27 lines modified | ||
40 | <script·type="text/javascript"> | 40 | <script·type="text/javascript"> |
41 | /*·@license·magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt·MIT·*/ | 41 | /*·@license·magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt·MIT·*/ |
42 | $(document).ready(function()·{·init_codefold(0);·}); | 42 | $(document).ready(function()·{·init_codefold(0);·}); |
43 | /*·@license-end·*/ | 43 | /*·@license-end·*/ |
44 | </script> | 44 | </script> |
45 | <div·id="nav-path"·class="navpath"> | 45 | <div·id="nav-path"·class="navpath"> |
46 | ··<ul> | 46 | ··<ul> |
47 | <li·class="navelem"><a·class="el"·href="dir_4fef79e7177ba769987a8da36c892c5f.html">build</a></li><li·class="navelem"><a·class="el"·href="dir_9def6061848686aab7e6212bb499d615.html">reproducible-path</a></li><li·class="navelem"><a·class="el"·href="dir_74170d5b58cefb7cb5a86fc552b183a3.html">silly-0.1.0</a></li><li·class="navelem"><a·class="el"·href="dir_7b53bc9a32849689d682eb098e891de5.html">src</a></li> | 47 | <li·class="navelem"><a·class="el"·href="dir_4fef79e7177ba769987a8da36c892c5f.html">build</a></li><li·class="navelem"><a·class="el"·href="dir_9def6061848686aab7e6212bb499d615.html">reproducible-path</a></li><li·class="navelem"><a·class="el"·href="dir_74170d5b58cefb7cb5a86fc552b183a3.html">silly-0.1.0</a></li><li·class="navelem"><a·class="el"·href="dir_7b53bc9a32849689d682eb098e891de5.html">src</a></li>··</ul> |
48 | </div> | 48 | </div> |
49 | </div><!--·top·--> | 49 | </div><!--·top·--> |
50 | <div·class="header"> | 50 | <div·class="header"> |
51 | ··<div·class="headertitle"><div·class="title">SILLY | 51 | ··<div·class="headertitle"><div·class="title">SILLYFileDataSource.cpp</div></div> |
52 | </div><!--header--> | 52 | </div><!--header--> |
53 | <div·class="contents"> | 53 | <div·class="contents"> |
54 | <div·class="fragment"><div·class="line"><a·id="l00001"·name="l00001"></a><span·class="lineno">····1</span><span·class="comment">/***********************************************************************</span></div> | 54 | <div·class="fragment"><div·class="line"><a·id="l00001"·name="l00001"></a><span·class="lineno">····1</span><span·class="comment">/***********************************************************************</span></div> |
55 | <div·class="line"><a·id="l00002"·name="l00002"></a><span·class="lineno">····2</span><span·class="comment">····filename:···SILLY | 55 | <div·class="line"><a·id="l00002"·name="l00002"></a><span·class="lineno">····2</span><span·class="comment">····filename:···SILLYFileDataSource.cpp</span></div> |
56 | <div·class="line"><a·id="l00003"·name="l00003"></a><span·class="lineno">····3</span><span·class="comment">····created:···· | 56 | <div·class="line"><a·id="l00003"·name="l00003"></a><span·class="lineno">····3</span><span·class="comment">····created:····20·Jul·2006</span></div> |
57 | <div·class="line"><a·id="l00004"·name="l00004"></a><span·class="lineno">····4</span><span·class="comment">····author:·····Olivier·Delannoy·</span></div> | 57 | <div·class="line"><a·id="l00004"·name="l00004"></a><span·class="lineno">····4</span><span·class="comment">····author:·····Olivier·Delannoy·</span></div> |
58 | <div·class="line"><a·id="l00005"·name="l00005"></a><span·class="lineno">····5</span><span·class="comment"></span>·</div> | 58 | <div·class="line"><a·id="l00005"·name="l00005"></a><span·class="lineno">····5</span><span·class="comment"></span>·</div> |
59 | <div·class="line"><a·id="l00006"·name="l00006"></a><span·class="lineno">····6</span><span·class="comment">····purpose:···· | 59 | <div·class="line"><a·id="l00006"·name="l00006"></a><span·class="lineno">····6</span><span·class="comment">····purpose:····Implementation·of·the·FileDataSource·methods··</span></div> |
60 | <div·class="line"><a·id="l00007"·name="l00007"></a><span·class="lineno">····7</span><span·class="comment">*************************************************************************/</span></div> | 60 | <div·class="line"><a·id="l00007"·name="l00007"></a><span·class="lineno">····7</span><span·class="comment">*************************************************************************/</span></div> |
61 | <div·class="line"><a·id="l00008"·name="l00008"></a><span·class="lineno">····8</span><span·class="comment">/***************************************************************************</span></div> | 61 | <div·class="line"><a·id="l00008"·name="l00008"></a><span·class="lineno">····8</span><span·class="comment">/***************************************************************************</span></div> |
62 | <div·class="line"><a·id="l00009"·name="l00009"></a><span·class="lineno">····9</span><span·class="comment">·*···Copyright·(C)·2004·-·2006·Paul·D·Turner·&·The·CEGUI·Development·Team</span></div> | 62 | <div·class="line"><a·id="l00009"·name="l00009"></a><span·class="lineno">····9</span><span·class="comment">·*···Copyright·(C)·2004·-·2006·Paul·D·Turner·&·The·CEGUI·Development·Team</span></div> |
63 | <div·class="line"><a·id="l00010"·name="l00010"></a><span·class="lineno">···10</span><span·class="comment">·*</span></div> | 63 | <div·class="line"><a·id="l00010"·name="l00010"></a><span·class="lineno">···10</span><span·class="comment">·*</span></div> |
64 | <div·class="line"><a·id="l00011"·name="l00011"></a><span·class="lineno">···11</span><span·class="comment">·*···Permission·is·hereby·granted,·free·of·charge,·to·any·person·obtaining</span></div> | 64 | <div·class="line"><a·id="l00011"·name="l00011"></a><span·class="lineno">···11</span><span·class="comment">·*···Permission·is·hereby·granted,·free·of·charge,·to·any·person·obtaining</span></div> |
65 | <div·class="line"><a·id="l00012"·name="l00012"></a><span·class="lineno">···12</span><span·class="comment">·*···a·copy·of·this·software·and·associated·documentation·files·(the</span></div> | 65 | <div·class="line"><a·id="l00012"·name="l00012"></a><span·class="lineno">···12</span><span·class="comment">·*···a·copy·of·this·software·and·associated·documentation·files·(the</span></div> |
66 | <div·class="line"><a·id="l00013"·name="l00013"></a><span·class="lineno">···13</span><span·class="comment">·*···"Software"),·to·deal·in·the·Software·without·restriction,·including</span></div> | 66 | <div·class="line"><a·id="l00013"·name="l00013"></a><span·class="lineno">···13</span><span·class="comment">·*···"Software"),·to·deal·in·the·Software·without·restriction,·including</span></div> |
Offset 80, 66 lines modified | Offset 80, 80 lines modified | ||
80 | <div·class="line"><a·id="l00027"·name="l00027"></a><span·class="lineno">···27</span><span·class="comment">·*···ARISING·FROM,·OUT·OF·OR·IN·CONNECTION·WITH·THE·SOFTWARE·OR·THE·USE·OR</span></div> | 80 | <div·class="line"><a·id="l00027"·name="l00027"></a><span·class="lineno">···27</span><span·class="comment">·*···ARISING·FROM,·OUT·OF·OR·IN·CONNECTION·WITH·THE·SOFTWARE·OR·THE·USE·OR</span></div> |
81 | <div·class="line"><a·id="l00028"·name="l00028"></a><span·class="lineno">···28</span><span·class="comment">·*···OTHER·DEALINGS·IN·THE·SOFTWARE.</span></div> | 81 | <div·class="line"><a·id="l00028"·name="l00028"></a><span·class="lineno">···28</span><span·class="comment">·*···OTHER·DEALINGS·IN·THE·SOFTWARE.</span></div> |
82 | <div·class="line"><a·id="l00029"·name="l00029"></a><span·class="lineno">···29</span><span·class="comment">·***************************************************************************/</span></div> | 82 | <div·class="line"><a·id="l00029"·name="l00029"></a><span·class="lineno">···29</span><span·class="comment">·***************************************************************************/</span></div> |
83 | <div·class="line"><a·id="l00030"·name="l00030"></a><span·class="lineno">···30</span><span·class="preprocessor">#ifdef·HAVE_CONFIG_H</span></div> | 83 | <div·class="line"><a·id="l00030"·name="l00030"></a><span·class="lineno">···30</span><span·class="preprocessor">#ifdef·HAVE_CONFIG_H</span></div> |
84 | <div·class="line"><a·id="l00031"·name="l00031"></a><span·class="lineno">···31</span><span·class="preprocessor">#include·<config.h></span></div> | 84 | <div·class="line"><a·id="l00031"·name="l00031"></a><span·class="lineno">···31</span><span·class="preprocessor">#include·<config.h></span></div> |
85 | <div·class="line"><a·id="l00032"·name="l00032"></a><span·class="lineno">···32</span><span·class="preprocessor">#endif</span></div> | 85 | <div·class="line"><a·id="l00032"·name="l00032"></a><span·class="lineno">···32</span><span·class="preprocessor">#endif</span></div> |
86 | <div·class="line"><a·id="l00033"·name="l00033"></a><span·class="lineno">···33</span>·</div> | 86 | <div·class="line"><a·id="l00033"·name="l00033"></a><span·class="lineno">···33</span>·</div> |
87 | <div·class="line"><a·id="l00034"·name="l00034"></a><span·class="lineno">···34</span><span·class="preprocessor">#include·" | 87 | <div·class="line"><a·id="l00034"·name="l00034"></a><span·class="lineno">···34</span><span·class="preprocessor">#include·"SILLYFileDataSource.h"</span></div> |
88 | <div·class="line"><a·id="l00035"·name="l00035"></a><span·class="lineno">···35</span>·</div> | 88 | <div·class="line"><a·id="l00035"·name="l00035"></a><span·class="lineno">···35</span>·</div> |
89 | <div·class="line"><a·id="l00036"·name="l00036"></a><span·class="lineno">···36</span><span·class="preprocessor">#ifndef·SILLY_OPT_INLINE</span></div> | 89 | <div·class="line"><a·id="l00036"·name="l00036"></a><span·class="lineno">···36</span><span·class="preprocessor">#ifndef·SILLY_OPT_INLINE</span></div> |
90 | <div·class="line"><a·id="l00037"·name="l00037"></a><span·class="lineno">···37</span><span·class="preprocessor">#define·inline·</span></div> | 90 | <div·class="line"><a·id="l00037"·name="l00037"></a><span·class="lineno">···37</span><span·class="preprocessor">#define·inline·</span></div> |
91 | <div·class="line"><a·id="l00038"·name="l00038"></a><span·class="lineno">···38</span><span·class="preprocessor">#include·" | 91 | <div·class="line"><a·id="l00038"·name="l00038"></a><span·class="lineno">···38</span><span·class="preprocessor">#include·"SILLYFileDataSource.icpp"</span></div> |
92 | <div·class="line"><a·id="l00039"·name="l00039"></a><span·class="lineno">···39</span><span·class="preprocessor">#undef·inline</span></div> | 92 | <div·class="line"><a·id="l00039"·name="l00039"></a><span·class="lineno">···39</span><span·class="preprocessor">#undef·inline</span></div> |
93 | <div·class="line"><a·id="l00040"·name="l00040"></a><span·class="lineno">···40</span><span·class="preprocessor">#endif</span></div> | 93 | <div·class="line"><a·id="l00040"·name="l00040"></a><span·class="lineno">···40</span><span·class="preprocessor">#endif·</span></div> |
94 | <div·class="line"><a·id="l00041"·name="l00041"></a><span·class="lineno">···41</span><span·class="preprocessor">#include·<st | 94 | <div·class="line"><a·id="l00041"·name="l00041"></a><span·class="lineno">···41</span><span·class="preprocessor">#include·<stdio.h></span>·</div> |
95 | <div·class="line"><a·id="l00042"·name="l00042"></a><span·class="lineno">···42</span>·</div> | ||
96 | <div·class="line"><a·id="l0004 | 95 | <div·class="line"><a·id="l00042"·name="l00042"></a><span·class="lineno">···42</span><span·class="comment">//·Start·section·of·namespace·SILLY</span></div> |
97 | <div·class="line"><a·id="l0004 | 96 | <div·class="line"><a·id="l00043"·name="l00043"></a><span·class="lineno">···43</span><span·class="keyword">namespace·</span><a·class="code·hl_namespace"·href="a00129.html">SILLY</a></div> |
97 | <div·class="line"><a·id="l00044"·name="l00044"></a><span·class="lineno">···44</span>{</div> | ||
98 | <div·class="line"><a·id="l00045"·name="l00045"></a><span·class="lineno">···45</span> | 98 | <div·class="line"><a·id="l00045"·name="l00045"></a><span·class="lineno">···45</span>·</div> |
99 | <div·class=" | 99 | <div·class="foldopen"·id="foldopen00046"·data-start="{"·data-end="}"> |
100 | <div·class="line"><a·id="l00046"·name="l00046"></a><span·class="lineno"><a·class="line"·href="a00973.html#a0e751eeffe45217140e97ea89d65b4d7">···46</a></span><a·class="code·hl_function"·href="a00973.html#a0e751eeffe45217140e97ea89d65b4d7">FileDataSource::FileDataSource</a>(<span·class="keyword">const</span>·<span·class="keywordtype">char</span>*·filename)</div> | ||
101 | <div·class="line"><a·id="l00047"·name="l00047"></a><span·class="lineno">···47</span>····:·d_error(true),·d_bytes(0),·d_size(0)</div> | ||
100 | <div·class="line"><a·id="l0004 | 102 | <div·class="line"><a·id="l00048"·name="l00048"></a><span·class="lineno">···48</span>{</div> |
101 | <div·class="line"><a·id="l00048"·name="l00048"></a><span·class="lineno">···48</span>····<span·class="comment">//printf("PNG·Read:·%d·bytes·offset:·%d,·size·%d\n",·</span></div> | ||
102 | <div·class="line"><a·id="l00049"·name="l00049"></a><span·class="lineno">···49</span>···· | 103 | <div·class="line"><a·id="l00049"·name="l00049"></a><span·class="lineno">···49</span>····FILE*·data·=·fopen(filename,·<span·class="stringliteral">"rb"</span>);</div> |
104 | <div·class="line"><a·id="l00050"·name="l00050"></a><span·class="lineno">···50</span>····<span·class="keywordflow">if</span>·(data)</div> | ||
103 | <div·class="line"><a·id="l0005 | 105 | <div·class="line"><a·id="l00051"·name="l00051"></a><span·class="lineno">···51</span>····{</div> |
104 | <div·class="line"><a·id="l0005 | 106 | <div·class="line"><a·id="l00052"·name="l00052"></a><span·class="lineno">···52</span>········<span·class="keywordtype">long</span>·status·=·fseek(data,·0,·SEEK_END);</div> |
107 | <div·class="line"><a·id="l00053"·name="l00053"></a><span·class="lineno">···53</span>········<span·class="keywordflow">if</span>·(status·==·-1)</div> | ||
108 | <div·class="line"><a·id="l00054"·name="l00054"></a><span·class="lineno">···54</span>········{</div> | ||
109 | <div·class="line"><a·id="l00055"·name="l00055"></a><span·class="lineno">···55</span>············fclose(data);</div> | ||
105 | <div·class="line"><a·id="l0005 | 110 | <div·class="line"><a·id="l00056"·name="l00056"></a><span·class="lineno">···56</span>············<span·class="keywordflow">return</span>;</div> |
106 | <div·class="line"><a·id="l00053"·name="l00053"></a><span·class="lineno">···53</span>····memcpy(data,·d_data-><a·class="code·hl_function"·href="a00969.html#a3ae74c9d90450a3d9aa45191e1c21c13">getDataPtr</a>()·+·d_offset,·length);</div> | ||
107 | <div·class="line"><a·id="l00054"·name="l00054"></a><span·class="lineno">···54</span>····d_offset·+=·length;</div> | ||
108 | <div·class="line"><a·id="l00055"·name="l00055"></a><span·class="lineno">···55</span>····<span·class="keywordflow">return</span>·length;</div> | ||
109 | <div·class="line"><a·id="l00056"·name="l00056"></a><span·class="lineno">···56</span>}</div> | ||
110 | <div·class="line"><a·id="l00057"·name="l00057"></a><span·class="lineno">···57</span>·</div> | 111 | <div·class="line"><a·id="l00057"·name="l00057"></a><span·class="lineno">···57</span>········}</div> |
112 | <div·class="line"><a·id="l00058"·name="l00058"></a><span·class="lineno">···58</span>········status··=·ftell(data);</div> | ||
113 | <div·class="line"><a·id="l00059"·name="l00059"></a><span·class="lineno">···59</span>········<span·class="keywordflow">if</span>·(status·==·-1)</div> | ||
114 | <div·class="line"><a·id="l00060"·name="l00060"></a><span·class="lineno">···60</span>········{</div> | ||
115 | <div·class="line"><a·id="l00061"·name="l00061"></a><span·class="lineno">···61</span>············fclose(data);</div> | ||
116 | <div·class="line"><a·id="l00062"·name="l00062"></a><span·class="lineno">···62</span>············<span·class="keywordflow">return</span>;</div> | ||
117 | <div·class="line"><a·id="l00063"·name="l00063"></a><span·class="lineno">···63</span>········}</div> | ||
118 | <div·class="line"><a·id="l00064"·name="l00064"></a><span·class="lineno">···64</span>········d_size·=·status;</div> | ||
119 | <div·class="line"><a·id="l00065"·name="l00065"></a><span·class="lineno">···65</span>········<span·class="keywordflow">if</span>·(d_size)</div> | ||
120 | <div·class="line"><a·id="l00066"·name="l00066"></a><span·class="lineno">···66</span>············d_bytes·=·<span·class="keyword">new</span>·<span·class="keywordtype">byte</span>[d_size];</div> | ||
121 | <div·class="line"><a·id="l00067"·name="l00067"></a><span·class="lineno">···67</span>········<span·class="keywordflow">if</span>·(!·d_bytes)</div> | ||
111 | <div·class="line"><a·id="l000 | 122 | <div·class="line"><a·id="l00068"·name="l00068"></a><span·class="lineno">···68</span>········{</div> |
112 | <div·class="line"><a·id="l00059"·name="l00059"></a><span·class="lineno">···59</span>PNGImageContext::PNGImageContext(DataSource*·data)</div> | ||
113 | <div·class="line"><a·id="l0006 | 123 | <div·class="line"><a·id="l00069"·name="l00069"></a><span·class="lineno">···69</span>············fclose(data);</div> |
124 | <div·class="line"><a·id="l00070"·name="l00070"></a><span·class="lineno">···70</span>············<span·class="keywordflow">return</span>;</div> | ||
114 | <div·class="line"><a·id="l000 | 125 | <div·class="line"><a·id="l00071"·name="l00071"></a><span·class="lineno">···71</span>········}</div> |
126 | <div·class="line"><a·id="l00072"·name="l00072"></a><span·class="lineno">···72</span>········rewind(data);</div> | ||
127 | <div·class="line"><a·id="l00073"·name="l00073"></a><span·class="lineno">···73</span>········status·=·fread(<span·class="keyword">reinterpret_cast<</span><span·class="keywordtype">void</span>*<span·class="keyword">></span>(d_bytes),·1,·d_size,·data);</div> | ||
128 | <div·class="line"><a·id="l00074"·name="l00074"></a><span·class="lineno">···74</span>········<span·class="keywordflow">if</span>·(status·!=·d_size)</div> | ||
129 | <div·class="line"><a·id="l00075"·name="l00075"></a><span·class="lineno">···75</span>········{</div> | ||
130 | <div·class="line"><a·id="l00076"·name="l00076"></a><span·class="lineno">···76</span>············<span·class="keyword">delete</span>·[]·d_bytes;</div> | ||
131 | <div·class="line"><a·id="l00077"·name="l00077"></a><span·class="lineno">···77</span>············d_bytes·=·0;</div> | ||
132 | <div·class="line"><a·id="l00078"·name="l00078"></a><span·class="lineno">···78</span>············fclose(data);</div> | ||
133 | <div·class="line"><a·id="l00079"·name="l00079"></a><span·class="lineno">···79</span>········}</div> | ||
134 | <div·class="line"><a·id="l00080"·name="l00080"></a><span·class="lineno">···80</span>········fclose(data);</div> | ||
135 | <div·class="line"><a·id="l00081"·name="l00081"></a><span·class="lineno">···81</span>········d_error·=·<span·class="keyword">false</span>;········</div> | ||
115 | <div·class="line"><a·id="l000 | 136 | <div·class="line"><a·id="l00082"·name="l00082"></a><span·class="lineno">···82</span>····}</div> |
116 | <div·class="line"><a·id="l000 | 137 | <div·class="line"><a·id="l00083"·name="l00083"></a><span·class="lineno">···83</span>}</div> |
138 | </div> | ||
117 | <div·class="line"><a·id="l000 | 139 | <div·class="line"><a·id="l00084"·name="l00084"></a><span·class="lineno">···84</span>·</div> |
118 | <div·class="line"><a·id="l00065"·name="l00065"></a><span·class="lineno">···65</span>PNGImageContext::~PNGImageContext()</div> | ||
119 | <div·class="line"><a·id="l00066"·name="l00066"></a><span·class="lineno">···66</span>{</div> | ||
120 | <div·class="line"><a·id="l00067"·name="l00067"></a><span·class="lineno">···67</span>····<span·class="keywordflow">if</span>·(d_info_ptr)</div> | ||
121 | <div·class="line"><a·id="l00068"·name="l00068"></a><span·class="lineno">···68</span>········png_destroy_read_struct(&d_png_ptr,·&d_info_ptr,·0);····</div> | ||
122 | <div·class="line"><a·id="l00069"·name="l00069"></a><span·class="lineno">···69</span>····<span·class="keywordflow">if</span>·(d_png_ptr)</div> | ||
123 | <div·class="line"><a·id="l00070"·name="l00070"></a><span·class="lineno">···70</span>········png_destroy_read_struct(&d_png_ptr,·0,·0);····</div> | ||
124 | <div·class="line"><a·id="l00071"·name="l00071"></a><span·class="lineno">···71</span>}</div> | ||
125 | <div·class="line"><a·id="l00072"·name="l00072"></a><span·class="lineno">···72</span>·</div> | ||
126 | <div·class="line"><a·id="l00073"·name="l00073"></a><span·class="lineno">···73</span>·</div> | ||
127 | <div·class="line"><a·id="l00074"·name="l00074"></a><span·class="lineno">···74</span><span·class="keywordtype">void</span>·PNGImageContext::setImageSize()</div> | ||
128 | <div·class="line"><a·id="l00075"·name="l00075"></a><span·class="lineno">···75</span>{</div> | ||
129 | <div·class="line"><a·id="l00076"·name="l00076"></a><span·class="lineno">···76</span>····setWidth(png_get_image_width(d_png_ptr,·d_info_ptr));</div> | ||
130 | <div·class="line"><a·id="l00077"·name="l00077"></a><span·class="lineno">···77</span>····setHeight(png_get_image_height(d_png_ptr,·d_info_ptr));</div> | ||
131 | <div·class="line"><a·id="l00078"·name="l00078"></a><span·class="lineno">···78</span>····</div> | ||
132 | <div·class="line"><a·id="l00079"·name="l00079"></a><span·class="lineno">···79</span>}</div> | ||
133 | <div·class="line"><a·id="l0008 | 140 | <div·class="line"><a·id="l00085"·name="l00085"></a><span·class="lineno">···85</span>·</div> |
Max diff block lines reached; 271/22772 bytes (1.19%) of diff not shown. |
Offset 1, 20 lines modified | Offset 1, 19 lines modified | ||
1 | Simple·Image·Loading·LibrarY 0.1.0 | 1 | Simple·Image·Loading·LibrarY 0.1.0 |
2 | ····*·_\x8b_\x8u_\x8i_\x8l_\x8d | 2 | ····*·_\x8b_\x8u_\x8i_\x8l_\x8d |
3 | ····*·_\x8r_\x8e_\x8p_\x8r_\x8o_\x8d_\x8u_\x8c_\x8i_\x8b_\x8l_\x8e_\x8-_\x8p_\x8a_\x8t_\x8h | 3 | ····*·_\x8r_\x8e_\x8p_\x8r_\x8o_\x8d_\x8u_\x8c_\x8i_\x8b_\x8l_\x8e_\x8-_\x8p_\x8a_\x8t_\x8h |
4 | ····*·_\x8s_\x8i_\x8l_\x8l_\x8y_\x8-_\x80_\x8._\x81_\x8._\x80 | 4 | ····*·_\x8s_\x8i_\x8l_\x8l_\x8y_\x8-_\x80_\x8._\x81_\x8._\x80 |
5 | ····*·_\x8s_\x8r_\x8c | 5 | ····*·_\x8s_\x8r_\x8c |
6 | SILLYFileDataSource.cpp | ||
6 | ····*·_\x8l_\x8o_\x8a_\x8d_\x8e_\x8r_\x8s | ||
7 | SILLYPNGImageContext.cpp | ||
8 | 1/*********************************************************************** | 7 | 1/*********************************************************************** |
9 | 2·filename:·SILLY | 8 | 2·filename:·SILLYFileDataSource.cpp |
10 | 3·created:· | 9 | 3·created:·20·Jul·2006 |
11 | 4·author:·Olivier·Delannoy | 10 | 4·author:·Olivier·Delannoy |
12 | 5 | 11 | 5 |
13 | 6·purpose:· | 12 | 6·purpose:·Implementation·of·the·FileDataSource·methods |
14 | 7*************************************************************************/ | 13 | 7*************************************************************************/ |
15 | 8/*************************************************************************** | 14 | 8/*************************************************************************** |
16 | 9·*·Copyright·(C)·2004·-·2006·Paul·D·Turner·&·The·CEGUI·Development·Team | 15 | 9·*·Copyright·(C)·2004·-·2006·Paul·D·Turner·&·The·CEGUI·Development·Team |
17 | 10·* | 16 | 10·* |
18 | 11·*·Permission·is·hereby·granted,·free·of·charge,·to·any·person·obtaining | 17 | 11·*·Permission·is·hereby·granted,·free·of·charge,·to·any·person·obtaining |
19 | 12·*·a·copy·of·this·software·and·associated·documentation·files·(the | 18 | 12·*·a·copy·of·this·software·and·associated·documentation·files·(the |
20 | 13·*·"Software"),·to·deal·in·the·Software·without·restriction,·including | 19 | 13·*·"Software"),·to·deal·in·the·Software·without·restriction,·including |
Offset 34, 67 lines modified | Offset 33, 79 lines modified | ||
34 | 27·*·ARISING·FROM,·OUT·OF·OR·IN·CONNECTION·WITH·THE·SOFTWARE·OR·THE·USE·OR | 33 | 27·*·ARISING·FROM,·OUT·OF·OR·IN·CONNECTION·WITH·THE·SOFTWARE·OR·THE·USE·OR |
35 | 28·*·OTHER·DEALINGS·IN·THE·SOFTWARE. | 34 | 28·*·OTHER·DEALINGS·IN·THE·SOFTWARE. |
36 | 29·***************************************************************************/ | 35 | 29·***************************************************************************/ |
37 | 30#ifdef·HAVE_CONFIG_H | 36 | 30#ifdef·HAVE_CONFIG_H |
38 | 31#include·<config.h> | 37 | 31#include·<config.h> |
39 | 32#endif | 38 | 32#endif |
40 | 33 | 39 | 33 |
41 | 34#include·" | 40 | 34#include·"SILLYFileDataSource.h" |
42 | 35 | 41 | 35 |
43 | 36#ifndef·SILLY_OPT_INLINE | 42 | 36#ifndef·SILLY_OPT_INLINE |
44 | 37#define·inline | 43 | 37#define·inline |
45 | 38#include·" | 44 | 38#include·"SILLYFileDataSource.icpp" |
46 | 39#undef·inline | 45 | 39#undef·inline |
47 | 40#endif | 46 | 40#endif |
48 | 41#include·<st | 47 | 41#include·<stdio.h> |
49 | 42 | ||
50 | 4 | 48 | 42//·Start·section·of·namespace·SILLY |
51 | 4 | 49 | 43namespace·_\x8S_\x8I_\x8L_\x8L_\x8Y |
50 | 44{ | ||
52 | 45 | 51 | 45 |
53 | 46int·PNGImageContext::read(png_bytep·data,·png_size_t·length) | ||
54 | 47{ | ||
55 | 48·//printf("PNG·Read:·%d·bytes·offset:·%d,·size·%d\n", | ||
56 | 49·//·length,·d_offset,·d_data->getSize()); | ||
57 | 50 | ||
58 | 52 | _.4_.6_.F_.i_.l_.e_.D_.a_.t_.a_.S_.o_.u_.r_.c_.e_.:_.:_.F_.i_.l_.e_.D_.a_.t_.a_.S_.o_.u_.r_.c_.e(const·char*·filename) | |
53 | 47·:·d_error(true),·d_bytes(0),·d_size(0) | ||
54 | 48{ | ||
55 | 49·FILE*·data·=·fopen(filename,·"rb"); | ||
56 | 50·if·(data) | ||
57 | 51·{ | ||
58 | 52·long·status·=·fseek(data,·0,·SEEK_END); | ||
59 | 53·if·(status·==·-1) | ||
60 | 54·{ | ||
61 | 55·fclose(data); | ||
59 | 5 | 62 | 56·return; |
63 | 57·} | ||
64 | 58·status·=·ftell(data); | ||
65 | 59·if·(status·==·-1) | ||
66 | 60·{ | ||
67 | 61·fclose(data); | ||
68 | 62·return; | ||
60 | 53·memcpy(data,·d_data->_\x8g_\x8e_\x8t_\x8D_\x8a_\x8t_\x8a_\x8P_\x8t_\x8r()·+·d_offset,·length); | ||
61 | 54·d_offset·+=·length; | ||
62 | 55·return·length; | ||
63 | 56} | ||
64 | 57 | ||
65 | 58 | ||
66 | 59PNGImageContext::PNGImageContext(DataSource*·data) | ||
67 | 60·:·ImageContext(0,0),·d_offset(0),·d_data(data),·d_png_ptr(0),·d_info_ptr(0) | ||
68 | 61{ | ||
69 | 62 | ||
70 | 63} | 69 | 63·} |
71 | 64 | ||
72 | 65PNGImageContext::~PNGImageContext() | ||
73 | 66{ | ||
74 | 67·if·(d_info_ptr) | ||
75 | 68·png_destroy_read_struct(&d_png_ptr,·&d_info_ptr,·0); | ||
76 | 69·if·(d_png_ptr) | ||
77 | 70 | 64·d_size·=·status; | |
71 | 65·if·(d_size) | ||
72 | 66·d_bytes·=·new·byte[d_size]; | ||
73 | 67·if·(!·d_bytes) | ||
74 | 68·{ | ||
75 | 69·fclose(data); | ||
76 | 70·return; | ||
78 | 71} | 77 | 71·} |
79 | 72 | ||
80 | 73 | ||
81 | 7 | 78 | 72·rewind(data); |
79 | 73·status·=·fread(reinterpret_cast<void*>(d_bytes),·1,·d_size,·data); | ||
80 | 74·if·(status·!=·d_size) | ||
82 | 75{ | 81 | 75·{ |
83 | 76·setWidth(png_get_image_width(d_png_ptr,·d_info_ptr)); | ||
84 | 77·setHeight(png_get_image_height(d_png_ptr,·d_info_ptr)); | ||
85 | 7 | 82 | 76·delete·[]·d_bytes; |
83 | 77·d_bytes·=·0; | ||
84 | 78·fclose(data); | ||
86 | 79} | 85 | 79·} |
87 | 80 | ||
88 | 8 | 86 | 80·fclose(data); |
87 | 81·d_error·=·false; | ||
88 | 82·} | ||
89 | 83} | ||
90 | 84 | ||
91 | 85 | ||
92 | _\x88_\x86_\x8F_\x8i_\x8l_\x8e_\x8D_\x8a_\x8t_\x8a_\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8:_\x8:_\x8~_\x8F_\x8i_\x8l_\x8e_\x8D_\x8a_\x8t_\x8a_\x8S_\x8o_\x8u_\x8r_\x8c_\x8e() | ||
93 | 87{ | ||
94 | 88·delete·[]·d_bytes; | ||
95 | 89} | ||
96 | 90 | ||
97 | 91 | ||
89 | 98 | 92}·//·End·section·of·namespace·SILLY | |
90 | _\x8S_\x8I_\x8L_\x8L_\x8Y | 99 | _\x8S_\x8I_\x8L_\x8L_\x8Y |
91 | Simple·Image·Loading·LibrarY·namespace. | 100 | Simple·Image·Loading·LibrarY·namespace. |
92 | D\x8De\x8ef\x8fi\x8in\x8ni\x8it\x8ti\x8io\x8on\x8n·_\x8S_\x8I_\x8L_\x8L_\x8Y_\x8J_\x8P_\x8G_\x8I_\x8m_\x8a_\x8g_\x8e_\x8C_\x8o_\x8n_\x8t_\x8e_\x8x_\x8t_\x8._\x8c_\x8p_\x8p_\x8:_\x84_\x86 | 101 | D\x8De\x8ef\x8fi\x8in\x8ni\x8it\x8ti\x8io\x8on\x8n·_\x8S_\x8I_\x8L_\x8L_\x8Y_\x8J_\x8P_\x8G_\x8I_\x8m_\x8a_\x8g_\x8e_\x8C_\x8o_\x8n_\x8t_\x8e_\x8x_\x8t_\x8._\x8c_\x8p_\x8p_\x8:_\x84_\x86 |
93 | _\x8S_\x8I_\x8L_\x8L_\x8Y_\x8:_\x8:_\x8D_\x8a_\x8t_\x8a_\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8:_\x8:_\x8g_\x8e_\x8t_\x8S_\x8i_\x8z_\x8e | ||
94 | virtual·size_t·getSize()·const·=0 | ||
95 | Return·the·size·of·the·data. | ||
96 | _\x8S_\x8I_\x8L_\x8L_\x8Y_\x8:_\x8:_\x8D_.a_.t_.a_.S_.o_.u_.r_.c_.e_.:_.:_. | 102 | _\x8S_\x8I_\x8L_\x8L_\x8Y_\x8:_\x8:_\x8F_.i_.l_.e_.D_.a_.t_.a_.S_.o_.u_.r_.c_.e_.:_.:_.F_.i_.l_.e_.D_.a_.t_.a_.S_.o_.u_.r_.c_.e |
97 | virtual·const·byte·*·getDataPtr()·const·=0 | ||
98 | 103 | FileDataSource(const·char·*filename) | |
104 | Create·a·data·source·from·an·existing·file. | ||
105 | D\x8De\x8ef\x8fi\x8in\x8ni\x8it\x8ti\x8io\x8on\x8n·_\x8S_\x8I_\x8L_\x8L_\x8Y_\x8F_\x8i_\x8l_\x8e_\x8D_\x8a_\x8t_\x8a_\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8._\x8c_\x8p_\x8p_\x8:_\x84_\x86 | ||
106 | _\x8S_\x8I_\x8L_\x8L_\x8Y_\x8:_\x8:_\x8F_\x8i_\x8l_\x8e_\x8D_\x8a_\x8t_\x8a_\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8:_\x8:_\x8~_\x8F_\x8i_\x8l_\x8e_\x8D_\x8a_\x8t_\x8a_\x8S_\x8o_\x8u_\x8r_\x8c_\x8e | ||
Max diff block lines reached; 53/4909 bytes (1.08%) of diff not shown. |
Offset 1, 15 lines modified | Offset 1, 15 lines modified | ||
1 | <!DOCTYPE·html·PUBLIC·"-//W3C//DTD·XHTML·1.0·Transitional//EN"·"https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> | 1 | <!DOCTYPE·html·PUBLIC·"-//W3C//DTD·XHTML·1.0·Transitional//EN"·"https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> |
2 | <html·xmlns="http://www.w3.org/1999/xhtml"·lang="en-US"> | 2 | <html·xmlns="http://www.w3.org/1999/xhtml"·lang="en-US"> |
3 | <head> | 3 | <head> |
4 | <meta·http-equiv="Content-Type"·content="text/xhtml;charset=UTF-8"/> | 4 | <meta·http-equiv="Content-Type"·content="text/xhtml;charset=UTF-8"/> |
5 | <meta·http-equiv="X-UA-Compatible"·content="IE=11"/> | 5 | <meta·http-equiv="X-UA-Compatible"·content="IE=11"/> |
6 | <meta·name="generator"·content="Doxygen·1.9.8"/> | 6 | <meta·name="generator"·content="Doxygen·1.9.8"/> |
7 | <meta·name="viewport"·content="width=device-width,·initial-scale=1"/> | 7 | <meta·name="viewport"·content="width=device-width,·initial-scale=1"/> |
8 | <title>Simple·Image·Loading·LibrarY:·/build/reproducible-path/silly-0.1.0/src/loaders/SILLY | 8 | <title>Simple·Image·Loading·LibrarY:·/build/reproducible-path/silly-0.1.0/src/loaders/SILLYPNGImageContext.cpp·Source·File</title> |
9 | <link·href="tabs.css"·rel="stylesheet"·type="text/css"/> | 9 | <link·href="tabs.css"·rel="stylesheet"·type="text/css"/> |
10 | <script·type="text/javascript"·src="jquery.js"></script> | 10 | <script·type="text/javascript"·src="jquery.js"></script> |
11 | <script·type="text/javascript"·src="dynsections.js"></script> | 11 | <script·type="text/javascript"·src="dynsections.js"></script> |
12 | <link·href="doxygen.css"·rel="stylesheet"·type="text/css"·/> | 12 | <link·href="doxygen.css"·rel="stylesheet"·type="text/css"·/> |
13 | </head> | 13 | </head> |
14 | <body> | 14 | <body> |
15 | <div·id="top"><!--·do·not·remove·this·div,·it·is·closed·by·doxygen!·--> | 15 | <div·id="top"><!--·do·not·remove·this·div,·it·is·closed·by·doxygen!·--> |
Offset 44, 23 lines modified | Offset 44, 23 lines modified | ||
44 | </script> | 44 | </script> |
45 | <div·id="nav-path"·class="navpath"> | 45 | <div·id="nav-path"·class="navpath"> |
46 | ··<ul> | 46 | ··<ul> |
47 | <li·class="navelem"><a·class="el"·href="dir_4fef79e7177ba769987a8da36c892c5f.html">build</a></li><li·class="navelem"><a·class="el"·href="dir_9def6061848686aab7e6212bb499d615.html">reproducible-path</a></li><li·class="navelem"><a·class="el"·href="dir_74170d5b58cefb7cb5a86fc552b183a3.html">silly-0.1.0</a></li><li·class="navelem"><a·class="el"·href="dir_7b53bc9a32849689d682eb098e891de5.html">src</a></li><li·class="navelem"><a·class="el"·href="dir_7b011f4828cd5682692dd5e7c066fc3b.html">loaders</a></li>··</ul> | 47 | <li·class="navelem"><a·class="el"·href="dir_4fef79e7177ba769987a8da36c892c5f.html">build</a></li><li·class="navelem"><a·class="el"·href="dir_9def6061848686aab7e6212bb499d615.html">reproducible-path</a></li><li·class="navelem"><a·class="el"·href="dir_74170d5b58cefb7cb5a86fc552b183a3.html">silly-0.1.0</a></li><li·class="navelem"><a·class="el"·href="dir_7b53bc9a32849689d682eb098e891de5.html">src</a></li><li·class="navelem"><a·class="el"·href="dir_7b011f4828cd5682692dd5e7c066fc3b.html">loaders</a></li>··</ul> |
48 | </div> | 48 | </div> |
49 | </div><!--·top·--> | 49 | </div><!--·top·--> |
50 | <div·class="header"> | 50 | <div·class="header"> |
51 | ··<div·class="headertitle"><div·class="title">SILLY | 51 | ··<div·class="headertitle"><div·class="title">SILLYPNGImageContext.cpp</div></div> |
52 | </div><!--header--> | 52 | </div><!--header--> |
53 | <div·class="contents"> | 53 | <div·class="contents"> |
54 | <div·class="fragment"><div·class="line"><a·id="l00001"·name="l00001"></a><span·class="lineno">····1</span><span·class="comment">/***********************************************************************</span></div> | 54 | <div·class="fragment"><div·class="line"><a·id="l00001"·name="l00001"></a><span·class="lineno">····1</span><span·class="comment">/***********************************************************************</span></div> |
55 | <div·class="line"><a·id="l00002"·name="l00002"></a><span·class="lineno">····2</span><span·class="comment">····filename:···SILLY | 55 | <div·class="line"><a·id="l00002"·name="l00002"></a><span·class="lineno">····2</span><span·class="comment">····filename:···SILLYPNGImageContext.cpp</span></div> |
56 | <div·class="line"><a·id="l00003"·name="l00003"></a><span·class="lineno">····3</span><span·class="comment">····created:····11·Jun·2006</span></div> | 56 | <div·class="line"><a·id="l00003"·name="l00003"></a><span·class="lineno">····3</span><span·class="comment">····created:····11·Jun·2006</span></div> |
57 | <div·class="line"><a·id="l00004"·name="l00004"></a><span·class="lineno">····4</span><span·class="comment">····author:·····Olivier·Delannoy·</span></div> | 57 | <div·class="line"><a·id="l00004"·name="l00004"></a><span·class="lineno">····4</span><span·class="comment">····author:·····Olivier·Delannoy·</span></div> |
58 | <div·class="line"><a·id="l00005"·name="l00005"></a><span·class="lineno">····5</span><span·class="comment"></span>·</div> | 58 | <div·class="line"><a·id="l00005"·name="l00005"></a><span·class="lineno">····5</span><span·class="comment"></span>·</div> |
59 | <div·class="line"><a·id="l00006"·name="l00006"></a><span·class="lineno">····6</span><span·class="comment">····purpose:····Definition·of· | 59 | <div·class="line"><a·id="l00006"·name="l00006"></a><span·class="lineno">····6</span><span·class="comment">····purpose:····Definition·of·PNGImageContext·methods··</span></div> |
60 | <div·class="line"><a·id="l00007"·name="l00007"></a><span·class="lineno">····7</span><span·class="comment">*************************************************************************/</span></div> | 60 | <div·class="line"><a·id="l00007"·name="l00007"></a><span·class="lineno">····7</span><span·class="comment">*************************************************************************/</span></div> |
61 | <div·class="line"><a·id="l00008"·name="l00008"></a><span·class="lineno">····8</span><span·class="comment">/***************************************************************************</span></div> | 61 | <div·class="line"><a·id="l00008"·name="l00008"></a><span·class="lineno">····8</span><span·class="comment">/***************************************************************************</span></div> |
62 | <div·class="line"><a·id="l00009"·name="l00009"></a><span·class="lineno">····9</span><span·class="comment">·*···Copyright·(C)·2004·-·2006·Paul·D·Turner·&·The·CEGUI·Development·Team</span></div> | 62 | <div·class="line"><a·id="l00009"·name="l00009"></a><span·class="lineno">····9</span><span·class="comment">·*···Copyright·(C)·2004·-·2006·Paul·D·Turner·&·The·CEGUI·Development·Team</span></div> |
63 | <div·class="line"><a·id="l00010"·name="l00010"></a><span·class="lineno">···10</span><span·class="comment">·*</span></div> | 63 | <div·class="line"><a·id="l00010"·name="l00010"></a><span·class="lineno">···10</span><span·class="comment">·*</span></div> |
64 | <div·class="line"><a·id="l00011"·name="l00011"></a><span·class="lineno">···11</span><span·class="comment">·*···Permission·is·hereby·granted,·free·of·charge,·to·any·person·obtaining</span></div> | 64 | <div·class="line"><a·id="l00011"·name="l00011"></a><span·class="lineno">···11</span><span·class="comment">·*···Permission·is·hereby·granted,·free·of·charge,·to·any·person·obtaining</span></div> |
65 | <div·class="line"><a·id="l00012"·name="l00012"></a><span·class="lineno">···12</span><span·class="comment">·*···a·copy·of·this·software·and·associated·documentation·files·(the</span></div> | 65 | <div·class="line"><a·id="l00012"·name="l00012"></a><span·class="lineno">···12</span><span·class="comment">·*···a·copy·of·this·software·and·associated·documentation·files·(the</span></div> |
66 | <div·class="line"><a·id="l00013"·name="l00013"></a><span·class="lineno">···13</span><span·class="comment">·*···"Software"),·to·deal·in·the·Software·without·restriction,·including</span></div> | 66 | <div·class="line"><a·id="l00013"·name="l00013"></a><span·class="lineno">···13</span><span·class="comment">·*···"Software"),·to·deal·in·the·Software·without·restriction,·including</span></div> |
Offset 80, 31 lines modified | Offset 80, 66 lines modified | ||
80 | <div·class="line"><a·id="l00027"·name="l00027"></a><span·class="lineno">···27</span><span·class="comment">·*···ARISING·FROM,·OUT·OF·OR·IN·CONNECTION·WITH·THE·SOFTWARE·OR·THE·USE·OR</span></div> | 80 | <div·class="line"><a·id="l00027"·name="l00027"></a><span·class="lineno">···27</span><span·class="comment">·*···ARISING·FROM,·OUT·OF·OR·IN·CONNECTION·WITH·THE·SOFTWARE·OR·THE·USE·OR</span></div> |
81 | <div·class="line"><a·id="l00028"·name="l00028"></a><span·class="lineno">···28</span><span·class="comment">·*···OTHER·DEALINGS·IN·THE·SOFTWARE.</span></div> | 81 | <div·class="line"><a·id="l00028"·name="l00028"></a><span·class="lineno">···28</span><span·class="comment">·*···OTHER·DEALINGS·IN·THE·SOFTWARE.</span></div> |
82 | <div·class="line"><a·id="l00029"·name="l00029"></a><span·class="lineno">···29</span><span·class="comment">·***************************************************************************/</span></div> | 82 | <div·class="line"><a·id="l00029"·name="l00029"></a><span·class="lineno">···29</span><span·class="comment">·***************************************************************************/</span></div> |
83 | <div·class="line"><a·id="l00030"·name="l00030"></a><span·class="lineno">···30</span><span·class="preprocessor">#ifdef·HAVE_CONFIG_H</span></div> | 83 | <div·class="line"><a·id="l00030"·name="l00030"></a><span·class="lineno">···30</span><span·class="preprocessor">#ifdef·HAVE_CONFIG_H</span></div> |
84 | <div·class="line"><a·id="l00031"·name="l00031"></a><span·class="lineno">···31</span><span·class="preprocessor">#include·<config.h></span></div> | 84 | <div·class="line"><a·id="l00031"·name="l00031"></a><span·class="lineno">···31</span><span·class="preprocessor">#include·<config.h></span></div> |
85 | <div·class="line"><a·id="l00032"·name="l00032"></a><span·class="lineno">···32</span><span·class="preprocessor">#endif</span></div> | 85 | <div·class="line"><a·id="l00032"·name="l00032"></a><span·class="lineno">···32</span><span·class="preprocessor">#endif</span></div> |
86 | <div·class="line"><a·id="l00033"·name="l00033"></a><span·class="lineno">···33</span>·</div> | 86 | <div·class="line"><a·id="l00033"·name="l00033"></a><span·class="lineno">···33</span>·</div> |
87 | <div·class="line"><a·id="l00034"·name="l00034"></a><span·class="lineno">···34</span><span·class="preprocessor">#include·"loaders/SILLY | 87 | <div·class="line"><a·id="l00034"·name="l00034"></a><span·class="lineno">···34</span><span·class="preprocessor">#include·"loaders/SILLYPNGImageContext.h"</span></div> |
88 | <div·class="line"><a·id="l00035"·name="l00035"></a><span·class="lineno">···35</span>·</div> | 88 | <div·class="line"><a·id="l00035"·name="l00035"></a><span·class="lineno">···35</span>·</div> |
89 | <div·class="line"><a·id="l00036"·name="l00036"></a><span·class="lineno">···36</span><span·class="preprocessor">#ifndef·SILLY_OPT_INLINE</span></div> | 89 | <div·class="line"><a·id="l00036"·name="l00036"></a><span·class="lineno">···36</span><span·class="preprocessor">#ifndef·SILLY_OPT_INLINE</span></div> |
90 | <div·class="line"><a·id="l00037"·name="l00037"></a><span·class="lineno">···37</span><span·class="preprocessor">#define·inline·</span></div> | 90 | <div·class="line"><a·id="l00037"·name="l00037"></a><span·class="lineno">···37</span><span·class="preprocessor">#define·inline·</span></div> |
91 | <div·class="line"><a·id="l00038"·name="l00038"></a><span·class="lineno">···38</span><span·class="preprocessor">#include·"loaders/SILLY | 91 | <div·class="line"><a·id="l00038"·name="l00038"></a><span·class="lineno">···38</span><span·class="preprocessor">#include·"loaders/SILLYPNGImageContext.icpp"</span></div> |
92 | <div·class="line"><a·id="l00039"·name="l00039"></a><span·class="lineno">···39</span><span·class="preprocessor">#undef·inline</span></div> | 92 | <div·class="line"><a·id="l00039"·name="l00039"></a><span·class="lineno">···39</span><span·class="preprocessor">#undef·inline</span></div> |
93 | <div·class="line"><a·id="l00040"·name="l00040"></a><span·class="lineno">···40</span><span·class="preprocessor">#endif | 93 | <div·class="line"><a·id="l00040"·name="l00040"></a><span·class="lineno">···40</span><span·class="preprocessor">#endif</span></div> |
94 | <div·class="line"><a·id="l00041"·name="l00041"></a><span·class="lineno">···41</span><span·class="preprocessor">#include·< | 94 | <div·class="line"><a·id="l00041"·name="l00041"></a><span·class="lineno">···41</span><span·class="preprocessor">#include·<string.h></span></div> |
95 | <div·class="line"><a·id="l00042"·name="l00042"></a><span·class="lineno">···42</span> | 95 | <div·class="line"><a·id="l00042"·name="l00042"></a><span·class="lineno">···42</span>·</div> |
96 | <div·class="line"><a·id="l00043"·name="l00043"></a><span·class="lineno">···43</span><span·class="comment">//·Start·section·of·namespace·SILLY</span></div> | 96 | <div·class="line"><a·id="l00043"·name="l00043"></a><span·class="lineno">···43</span><span·class="comment">//·Start·section·of·namespace·SILLY</span></div> |
97 | <div·class="line"><a·id="l00044"·name="l00044"></a><span·class="lineno">···44</span><span·class="keyword">namespace·</span><a·class="code·hl_namespace"·href="a00129.html">SILLY</a></div> | 97 | <div·class="line"><a·id="l00044"·name="l00044"></a><span·class="lineno">···44</span><span·class="keyword">namespace·</span><a·class="code·hl_namespace"·href="a00129.html">SILLY</a></div> |
98 | <div·class="line"><a·id="l00045"·name="l00045"></a><span·class="lineno">···45</span>{</div> | 98 | <div·class="line"><a·id="l00045"·name="l00045"></a><span·class="lineno">···45</span>{</div> |
99 | <div·class="line"><a·id="l00046"·name="l00046"></a><span·class="lineno">···46</span>·</div> | 99 | <div·class="line"><a·id="l00046"·name="l00046"></a><span·class="lineno">···46</span><span·class="keywordtype">int</span>·PNGImageContext::read(png_bytep·data,·png_size_t·length)</div> |
100 | <div·class="line"><a·id="l00047"·name="l00047"></a><span·class="lineno">···47</span> | 100 | <div·class="line"><a·id="l00047"·name="l00047"></a><span·class="lineno">···47</span>{</div> |
101 | <div·class="line"><a·id="l00048"·name="l00048"></a><span·class="lineno">···48</span>····<span·class="comment">//printf("PNG·Read:·%d·bytes·offset:·%d,·size·%d\n",·</span></div> | ||
102 | <div·class="line"><a·id="l00049"·name="l00049"></a><span·class="lineno">···49</span>····<span·class="comment">//·······length,·d_offset,·d_data->getSize());</span></div> | ||
103 | <div·class="line"><a·id="l00050"·name="l00050"></a><span·class="lineno">···50</span>····</div> | ||
104 | <div·class="line"><a·id="l00051"·name="l00051"></a><span·class="lineno">···51</span>····<span·class="keywordflow">if</span>·(d_offset·+·length·>·d_data-><a·class="code·hl_function"·href="a00969.html#a319cde5b2ea76e92e922845ecfa5c615">getSize</a>())</div> | ||
105 | <div·class="line"><a·id="l00052"·name="l00052"></a><span·class="lineno">···52</span>········<span·class="keywordflow">return</span>·-1;</div> | ||
106 | <div·class="line"><a·id="l00053"·name="l00053"></a><span·class="lineno">···53</span>····memcpy(data,·d_data-><a·class="code·hl_function"·href="a00969.html#a3ae74c9d90450a3d9aa45191e1c21c13">getDataPtr</a>()·+·d_offset,·length);</div> | ||
107 | <div·class="line"><a·id="l00054"·name="l00054"></a><span·class="lineno">···54</span>····d_offset·+=·length;</div> | ||
108 | <div·class="line"><a·id="l00055"·name="l00055"></a><span·class="lineno">···55</span>····<span·class="keywordflow">return</span>·length;</div> | ||
109 | <div·class="line"><a·id="l00056"·name="l00056"></a><span·class="lineno">···56</span>}</div> | ||
110 | <div·class="line"><a·id="l00057"·name="l00057"></a><span·class="lineno">···57</span>·</div> | ||
111 | <div·class="line"><a·id="l00058"·name="l00058"></a><span·class="lineno">···58</span>··</div> | ||
112 | <div·class="line"><a·id="l00059"·name="l00059"></a><span·class="lineno">···59</span>PNGImageContext::PNGImageContext(DataSource*·data)</div> | ||
113 | <div·class="line"><a·id="l00060"·name="l00060"></a><span·class="lineno">···60</span>····:·ImageContext(0,0),·d_offset(0),·d_data(data),·d_png_ptr(0),·d_info_ptr(0)</div> | ||
114 | <div·class="line"><a·id="l00061"·name="l00061"></a><span·class="lineno">···61</span>{</div> | ||
115 | <div·class="line"><a·id="l00062"·name="l00062"></a><span·class="lineno">···62</span>····</div> | ||
116 | <div·class="line"><a·id="l00063"·name="l00063"></a><span·class="lineno">···63</span>}</div> | ||
101 | <div·class="line"><a·id="l000 | 117 | <div·class="line"><a·id="l00064"·name="l00064"></a><span·class="lineno">···64</span>·</div> |
118 | <div·class="line"><a·id="l00065"·name="l00065"></a><span·class="lineno">···65</span>PNGImageContext::~PNGImageContext()</div> | ||
119 | <div·class="line"><a·id="l00066"·name="l00066"></a><span·class="lineno">···66</span>{</div> | ||
120 | <div·class="line"><a·id="l00067"·name="l00067"></a><span·class="lineno">···67</span>····<span·class="keywordflow">if</span>·(d_info_ptr)</div> | ||
121 | <div·class="line"><a·id="l00068"·name="l00068"></a><span·class="lineno">···68</span>········png_destroy_read_struct(&d_png_ptr,·&d_info_ptr,·0);····</div> | ||
122 | <div·class="line"><a·id="l00069"·name="l00069"></a><span·class="lineno">···69</span>····<span·class="keywordflow">if</span>·(d_png_ptr)</div> | ||
123 | <div·class="line"><a·id="l00070"·name="l00070"></a><span·class="lineno">···70</span>········png_destroy_read_struct(&d_png_ptr,·0,·0);····</div> | ||
124 | <div·class="line"><a·id="l00071"·name="l00071"></a><span·class="lineno">···71</span>}</div> | ||
125 | <div·class="line"><a·id="l00072"·name="l00072"></a><span·class="lineno">···72</span>·</div> | ||
126 | <div·class="line"><a·id="l00073"·name="l00073"></a><span·class="lineno">···73</span>·</div> | ||
127 | <div·class="line"><a·id="l00074"·name="l00074"></a><span·class="lineno">···74</span><span·class="keywordtype">void</span>·PNGImageContext::setImageSize()</div> | ||
128 | <div·class="line"><a·id="l00075"·name="l00075"></a><span·class="lineno">···75</span>{</div> | ||
129 | <div·class="line"><a·id="l00076"·name="l00076"></a><span·class="lineno">···76</span>····setWidth(png_get_image_width(d_png_ptr,·d_info_ptr));</div> | ||
130 | <div·class="line"><a·id="l00077"·name="l00077"></a><span·class="lineno">···77</span>····setHeight(png_get_image_height(d_png_ptr,·d_info_ptr));</div> | ||
131 | <div·class="line"><a·id="l00078"·name="l00078"></a><span·class="lineno">···78</span>····</div> | ||
132 | <div·class="line"><a·id="l00079"·name="l00079"></a><span·class="lineno">···79</span>}</div> | ||
133 | <div·class="line"><a·id="l00080"·name="l00080"></a><span·class="lineno">···80</span>·</div> | ||
134 | <div·class="line"><a·id="l00081"·name="l00081"></a><span·class="lineno">···81</span>·</div> | ||
102 | <div·class="line"><a·id="l000 | 135 | <div·class="line"><a·id="l00082"·name="l00082"></a><span·class="lineno">···82</span>}·<span·class="comment">//·End·section·of·namespace·SILLY·</span></div> |
103 | <div·class="ttc"·id="aa00129_html"><div·class="ttname"><a·href="a00129.html">SILLY</a></div><div·class="ttdoc">Simple·Image·Loading·LibrarY·namespace.</div><div·class="ttdef"><b>Definition</b>·<a·href="a0002 | 136 | <div·class="ttc"·id="aa00129_html"><div·class="ttname"><a·href="a00129.html">SILLY</a></div><div·class="ttdoc">Simple·Image·Loading·LibrarY·namespace.</div><div·class="ttdef"><b>Definition</b>·<a·href="a00023_source.html#l00045">SILLYJPGImageContext.cpp:46</a></div></div> |
137 | <div·class="ttc"·id="aa00969_html_a319cde5b2ea76e92e922845ecfa5c615"><div·class="ttname"><a·href="a00969.html#a319cde5b2ea76e92e922845ecfa5c615">SILLY::DataSource::getSize</a></div><div·class="ttdeci">virtual·size_t·getSize()·const·=0</div><div·class="ttdoc">Return·the·size·of·the·data.</div></div> | ||
138 | <div·class="ttc"·id="aa00969_html_a3ae74c9d90450a3d9aa45191e1c21c13"><div·class="ttname"><a·href="a00969.html#a3ae74c9d90450a3d9aa45191e1c21c13">SILLY::DataSource::getDataPtr</a></div><div·class="ttdeci">virtual·const·byte·*·getDataPtr()·const·=0</div><div·class="ttdoc">Get·raw·access·to·the·image·data.</div></div> | ||
104 | </div><!--·fragment·--></div><!--·contents·--> | 139 | </div><!--·fragment·--></div><!--·contents·--> |
105 | <!--·start·footer·part·--> | 140 | <!--·start·footer·part·--> |
106 | <hr·class="footer"/><address·class="footer"><small> | 141 | <hr·class="footer"/><address·class="footer"><small> |
107 | Generated·by <a·href="https://www.doxygen.org/index.html"><img·class="footer"·src="doxygen.svg"·width="104"·height="31"·alt="doxygen"/></a>·1.9.8 | 142 | Generated·by <a·href="https://www.doxygen.org/index.html"><img·class="footer"·src="doxygen.svg"·width="104"·height="31"·alt="doxygen"/></a>·1.9.8 |
108 | </small></address> | 143 | </small></address> |
109 | </body> | 144 | </body> |
110 | </html> | 145 | </html> |
Offset 1, 20 lines modified | Offset 1, 20 lines modified | ||
1 | Simple·Image·Loading·LibrarY 0.1.0 | 1 | Simple·Image·Loading·LibrarY 0.1.0 |
2 | ····*·_\x8b_\x8u_\x8i_\x8l_\x8d | 2 | ····*·_\x8b_\x8u_\x8i_\x8l_\x8d |
3 | ····*·_\x8r_\x8e_\x8p_\x8r_\x8o_\x8d_\x8u_\x8c_\x8i_\x8b_\x8l_\x8e_\x8-_\x8p_\x8a_\x8t_\x8h | 3 | ····*·_\x8r_\x8e_\x8p_\x8r_\x8o_\x8d_\x8u_\x8c_\x8i_\x8b_\x8l_\x8e_\x8-_\x8p_\x8a_\x8t_\x8h |
4 | ····*·_\x8s_\x8i_\x8l_\x8l_\x8y_\x8-_\x80_\x8._\x81_\x8._\x80 | 4 | ····*·_\x8s_\x8i_\x8l_\x8l_\x8y_\x8-_\x80_\x8._\x81_\x8._\x80 |
5 | ····*·_\x8s_\x8r_\x8c | 5 | ····*·_\x8s_\x8r_\x8c |
6 | ····*·_\x8l_\x8o_\x8a_\x8d_\x8e_\x8r_\x8s | 6 | ····*·_\x8l_\x8o_\x8a_\x8d_\x8e_\x8r_\x8s |
7 | SILLY | 7 | SILLYPNGImageContext.cpp |
8 | 1/*********************************************************************** | 8 | 1/*********************************************************************** |
9 | 2·filename:·SILLY | 9 | 2·filename:·SILLYPNGImageContext.cpp |
10 | 3·created:·11·Jun·2006 | 10 | 3·created:·11·Jun·2006 |
11 | 4·author:·Olivier·Delannoy | 11 | 4·author:·Olivier·Delannoy |
12 | 5 | 12 | 5 |
13 | 6·purpose:·Definition·of· | 13 | 6·purpose:·Definition·of·PNGImageContext·methods |
14 | 7*************************************************************************/ | 14 | 7*************************************************************************/ |
15 | 8/*************************************************************************** | 15 | 8/*************************************************************************** |
16 | 9·*·Copyright·(C)·2004·-·2006·Paul·D·Turner·&·The·CEGUI·Development·Team | 16 | 9·*·Copyright·(C)·2004·-·2006·Paul·D·Turner·&·The·CEGUI·Development·Team |
17 | 10·* | 17 | 10·* |
18 | 11·*·Permission·is·hereby·granted,·free·of·charge,·to·any·person·obtaining | 18 | 11·*·Permission·is·hereby·granted,·free·of·charge,·to·any·person·obtaining |
19 | 12·*·a·copy·of·this·software·and·associated·documentation·files·(the | 19 | 12·*·a·copy·of·this·software·and·associated·documentation·files·(the |
20 | 13·*·"Software"),·to·deal·in·the·Software·without·restriction,·including | 20 | 13·*·"Software"),·to·deal·in·the·Software·without·restriction,·including |
Offset 34, 28 lines modified | Offset 34, 67 lines modified | ||
34 | 27·*·ARISING·FROM,·OUT·OF·OR·IN·CONNECTION·WITH·THE·SOFTWARE·OR·THE·USE·OR | 34 | 27·*·ARISING·FROM,·OUT·OF·OR·IN·CONNECTION·WITH·THE·SOFTWARE·OR·THE·USE·OR |
35 | 28·*·OTHER·DEALINGS·IN·THE·SOFTWARE. | 35 | 28·*·OTHER·DEALINGS·IN·THE·SOFTWARE. |
36 | 29·***************************************************************************/ | 36 | 29·***************************************************************************/ |
37 | 30#ifdef·HAVE_CONFIG_H | 37 | 30#ifdef·HAVE_CONFIG_H |
38 | 31#include·<config.h> | 38 | 31#include·<config.h> |
39 | 32#endif | 39 | 32#endif |
40 | 33 | 40 | 33 |
41 | 34#include·"loaders/SILLY | 41 | 34#include·"loaders/SILLYPNGImageContext.h" |
42 | 35 | 42 | 35 |
43 | 36#ifndef·SILLY_OPT_INLINE | 43 | 36#ifndef·SILLY_OPT_INLINE |
44 | 37#define·inline | 44 | 37#define·inline |
45 | 38#include·"loaders/SILLY | 45 | 38#include·"loaders/SILLYPNGImageContext.icpp" |
46 | 39#undef·inline | 46 | 39#undef·inline |
47 | 40#endif | 47 | 40#endif |
48 | 41#include·< | 48 | 41#include·<string.h> |
49 | 42 | 49 | 42 |
50 | 43//·Start·section·of·namespace·SILLY | 50 | 43//·Start·section·of·namespace·SILLY |
51 | 44namespace·_\x8S_\x8I_\x8L_\x8L_\x8Y | 51 | 44namespace·_\x8S_\x8I_\x8L_\x8L_\x8Y |
52 | 45{ | 52 | 45{ |
53 | 46 | 53 | 46int·PNGImageContext::read(png_bytep·data,·png_size_t·length) |
54 | 47 | 54 | 47{ |
55 | 48 | 55 | 48·//printf("PNG·Read:·%d·bytes·offset:·%d,·size·%d\n", |
56 | 49·//·length,·d_offset,·d_data->getSize()); | ||
57 | 50 | ||
58 | 51·if·(d_offset·+·length·>·d_data->_\x8g_\x8e_\x8t_\x8S_\x8i_\x8z_\x8e()) | ||
59 | 52·return·-1; | ||
60 | 53·memcpy(data,·d_data->_\x8g_\x8e_\x8t_\x8D_\x8a_\x8t_\x8a_\x8P_\x8t_\x8r()·+·d_offset,·length); | ||
61 | 54·d_offset·+=·length; | ||
62 | 55·return·length; | ||
63 | 56} | ||
64 | 57 | ||
65 | 58 | ||
66 | 59PNGImageContext::PNGImageContext(DataSource*·data) | ||
67 | 60·:·ImageContext(0,0),·d_offset(0),·d_data(data),·d_png_ptr(0),·d_info_ptr(0) | ||
68 | 61{ | ||
69 | 62 | ||
70 | 63} | ||
71 | 64 | ||
72 | 65PNGImageContext::~PNGImageContext() | ||
73 | 66{ | ||
74 | 67·if·(d_info_ptr) | ||
75 | 68·png_destroy_read_struct(&d_png_ptr,·&d_info_ptr,·0); | ||
76 | 69·if·(d_png_ptr) | ||
77 | 70·png_destroy_read_struct(&d_png_ptr,·0,·0); | ||
78 | 71} | ||
79 | 72 | ||
80 | 73 | ||
81 | 74void·PNGImageContext::setImageSize() | ||
82 | 75{ | ||
83 | 76·setWidth(png_get_image_width(d_png_ptr,·d_info_ptr)); | ||
84 | 77·setHeight(png_get_image_height(d_png_ptr,·d_info_ptr)); | ||
85 | 78 | ||
86 | 79} | ||
87 | 80 | ||
88 | 81 | ||
56 | 89 | 82}·//·End·section·of·namespace·SILLY | |
57 | _\x8S_\x8I_\x8L_\x8L_\x8Y | 90 | _\x8S_\x8I_\x8L_\x8L_\x8Y |
58 | Simple·Image·Loading·LibrarY·namespace. | 91 | Simple·Image·Loading·LibrarY·namespace. |
59 | D\x8De\x8ef\x8fi\x8in\x8ni\x8it\x8ti\x8io\x8on\x8n·_\x8S_\x8I_\x8L_\x8L_\x8Y_\x8J_\x8P_\x8G_\x8I_\x8m_\x8a_\x8g_\x8e_\x8C_\x8o_\x8n_\x8t_\x8e_\x8x_\x8t_\x8._\x8c_\x8p_\x8p_\x8:_\x84_\x86 | 92 | D\x8De\x8ef\x8fi\x8in\x8ni\x8it\x8ti\x8io\x8on\x8n·_\x8S_\x8I_\x8L_\x8L_\x8Y_\x8J_\x8P_\x8G_\x8I_\x8m_\x8a_\x8g_\x8e_\x8C_\x8o_\x8n_\x8t_\x8e_\x8x_\x8t_\x8._\x8c_\x8p_\x8p_\x8:_\x84_\x86 |
93 | _\x8S_\x8I_\x8L_\x8L_\x8Y_\x8:_\x8:_\x8D_\x8a_\x8t_\x8a_\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8:_\x8:_\x8g_\x8e_\x8t_\x8S_\x8i_\x8z_\x8e | ||
94 | virtual·size_t·getSize()·const·=0 | ||
95 | Return·the·size·of·the·data. | ||
96 | _\x8S_\x8I_\x8L_\x8L_\x8Y_\x8:_\x8:_\x8D_\x8a_\x8t_\x8a_\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8:_\x8:_\x8g_\x8e_\x8t_\x8D_\x8a_\x8t_\x8a_\x8P_\x8t_\x8r | ||
97 | virtual·const·byte·*·getDataPtr()·const·=0 | ||
98 | Get·raw·access·to·the·image·data. | ||
60 | =============================================================================== | 99 | =============================================================================== |
61 | ·····Generated·by _\x8[_\x8d_\x8o_\x8x_\x8y_\x8g_\x8e_\x8n_\x8]·1.9.8 | 100 | ·····Generated·by _\x8[_\x8d_\x8o_\x8x_\x8y_\x8g_\x8e_\x8n_\x8]·1.9.8 |
Offset 1, 15 lines modified | Offset 1, 15 lines modified | ||
1 | <!DOCTYPE·html·PUBLIC·"-//W3C//DTD·XHTML·1.0·Transitional//EN"·"https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> | 1 | <!DOCTYPE·html·PUBLIC·"-//W3C//DTD·XHTML·1.0·Transitional//EN"·"https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> |
2 | <html·xmlns="http://www.w3.org/1999/xhtml"·lang="en-US"> | 2 | <html·xmlns="http://www.w3.org/1999/xhtml"·lang="en-US"> |
3 | <head> | 3 | <head> |
4 | <meta·http-equiv="Content-Type"·content="text/xhtml;charset=UTF-8"/> | 4 | <meta·http-equiv="Content-Type"·content="text/xhtml;charset=UTF-8"/> |
5 | <meta·http-equiv="X-UA-Compatible"·content="IE=11"/> | 5 | <meta·http-equiv="X-UA-Compatible"·content="IE=11"/> |
6 | <meta·name="generator"·content="Doxygen·1.9.8"/> | 6 | <meta·name="generator"·content="Doxygen·1.9.8"/> |
7 | <meta·name="viewport"·content="width=device-width,·initial-scale=1"/> | 7 | <meta·name="viewport"·content="width=device-width,·initial-scale=1"/> |
8 | <title>Simple·Image·Loading·LibrarY:·/build/reproducible-path/silly-0.1.0/src/loaders/SILLYJPGImage | 8 | <title>Simple·Image·Loading·LibrarY:·/build/reproducible-path/silly-0.1.0/src/loaders/SILLYJPGImageContext.cpp·Source·File</title> |
9 | <link·href="tabs.css"·rel="stylesheet"·type="text/css"/> | 9 | <link·href="tabs.css"·rel="stylesheet"·type="text/css"/> |
10 | <script·type="text/javascript"·src="jquery.js"></script> | 10 | <script·type="text/javascript"·src="jquery.js"></script> |
11 | <script·type="text/javascript"·src="dynsections.js"></script> | 11 | <script·type="text/javascript"·src="dynsections.js"></script> |
12 | <link·href="doxygen.css"·rel="stylesheet"·type="text/css"·/> | 12 | <link·href="doxygen.css"·rel="stylesheet"·type="text/css"·/> |
13 | </head> | 13 | </head> |
14 | <body> | 14 | <body> |
15 | <div·id="top"><!--·do·not·remove·this·div,·it·is·closed·by·doxygen!·--> | 15 | <div·id="top"><!--·do·not·remove·this·div,·it·is·closed·by·doxygen!·--> |
Offset 44, 23 lines modified | Offset 44, 23 lines modified | ||
44 | </script> | 44 | </script> |
45 | <div·id="nav-path"·class="navpath"> | 45 | <div·id="nav-path"·class="navpath"> |
46 | ··<ul> | 46 | ··<ul> |
47 | <li·class="navelem"><a·class="el"·href="dir_4fef79e7177ba769987a8da36c892c5f.html">build</a></li><li·class="navelem"><a·class="el"·href="dir_9def6061848686aab7e6212bb499d615.html">reproducible-path</a></li><li·class="navelem"><a·class="el"·href="dir_74170d5b58cefb7cb5a86fc552b183a3.html">silly-0.1.0</a></li><li·class="navelem"><a·class="el"·href="dir_7b53bc9a32849689d682eb098e891de5.html">src</a></li><li·class="navelem"><a·class="el"·href="dir_7b011f4828cd5682692dd5e7c066fc3b.html">loaders</a></li>··</ul> | 47 | <li·class="navelem"><a·class="el"·href="dir_4fef79e7177ba769987a8da36c892c5f.html">build</a></li><li·class="navelem"><a·class="el"·href="dir_9def6061848686aab7e6212bb499d615.html">reproducible-path</a></li><li·class="navelem"><a·class="el"·href="dir_74170d5b58cefb7cb5a86fc552b183a3.html">silly-0.1.0</a></li><li·class="navelem"><a·class="el"·href="dir_7b53bc9a32849689d682eb098e891de5.html">src</a></li><li·class="navelem"><a·class="el"·href="dir_7b011f4828cd5682692dd5e7c066fc3b.html">loaders</a></li>··</ul> |
48 | </div> | 48 | </div> |
49 | </div><!--·top·--> | 49 | </div><!--·top·--> |
50 | <div·class="header"> | 50 | <div·class="header"> |
51 | ··<div·class="headertitle"><div·class="title">SILLYJPGImage | 51 | ··<div·class="headertitle"><div·class="title">SILLYJPGImageContext.cpp</div></div> |
52 | </div><!--header--> | 52 | </div><!--header--> |
53 | <div·class="contents"> | 53 | <div·class="contents"> |
54 | <div·class="fragment"><div·class="line"><a·id="l00001"·name="l00001"></a><span·class="lineno">····1</span><span·class="comment">/***********************************************************************</span></div> | 54 | <div·class="fragment"><div·class="line"><a·id="l00001"·name="l00001"></a><span·class="lineno">····1</span><span·class="comment">/***********************************************************************</span></div> |
55 | <div·class="line"><a·id="l00002"·name="l00002"></a><span·class="lineno">····2</span><span·class="comment">····filename:···SILLYJPGImage | 55 | <div·class="line"><a·id="l00002"·name="l00002"></a><span·class="lineno">····2</span><span·class="comment">····filename:···SILLYJPGImageContext.cpp</span></div> |
56 | <div·class="line"><a·id="l00003"·name="l00003"></a><span·class="lineno">····3</span><span·class="comment">····created:····11·Jun·2006</span></div> | 56 | <div·class="line"><a·id="l00003"·name="l00003"></a><span·class="lineno">····3</span><span·class="comment">····created:····11·Jun·2006</span></div> |
57 | <div·class="line"><a·id="l00004"·name="l00004"></a><span·class="lineno">····4</span><span·class="comment">····author:·····Olivier·Delannoy·</span></div> | 57 | <div·class="line"><a·id="l00004"·name="l00004"></a><span·class="lineno">····4</span><span·class="comment">····author:·····Olivier·Delannoy·</span></div> |
58 | <div·class="line"><a·id="l00005"·name="l00005"></a><span·class="lineno">····5</span><span·class="comment"></span>·</div> | 58 | <div·class="line"><a·id="l00005"·name="l00005"></a><span·class="lineno">····5</span><span·class="comment"></span>·</div> |
59 | <div·class="line"><a·id="l00006"·name="l00006"></a><span·class="lineno">····6</span><span·class="comment">····purpose:····Definition·of·JPGImage | 59 | <div·class="line"><a·id="l00006"·name="l00006"></a><span·class="lineno">····6</span><span·class="comment">····purpose:····Definition·of·the·JPGImageContext·class·methods·</span></div> |
60 | <div·class="line"><a·id="l00007"·name="l00007"></a><span·class="lineno">····7</span><span·class="comment">*************************************************************************/</span></div> | 60 | <div·class="line"><a·id="l00007"·name="l00007"></a><span·class="lineno">····7</span><span·class="comment">*************************************************************************/</span></div> |
61 | <div·class="line"><a·id="l00008"·name="l00008"></a><span·class="lineno">····8</span><span·class="comment">/***************************************************************************</span></div> | 61 | <div·class="line"><a·id="l00008"·name="l00008"></a><span·class="lineno">····8</span><span·class="comment">/***************************************************************************</span></div> |
62 | <div·class="line"><a·id="l00009"·name="l00009"></a><span·class="lineno">····9</span><span·class="comment">·*···Copyright·(C)·2004·-·2006·Paul·D·Turner·&·The·CEGUI·Development·Team</span></div> | 62 | <div·class="line"><a·id="l00009"·name="l00009"></a><span·class="lineno">····9</span><span·class="comment">·*···Copyright·(C)·2004·-·2006·Paul·D·Turner·&·The·CEGUI·Development·Team</span></div> |
63 | <div·class="line"><a·id="l00010"·name="l00010"></a><span·class="lineno">···10</span><span·class="comment">·*</span></div> | 63 | <div·class="line"><a·id="l00010"·name="l00010"></a><span·class="lineno">···10</span><span·class="comment">·*</span></div> |
64 | <div·class="line"><a·id="l00011"·name="l00011"></a><span·class="lineno">···11</span><span·class="comment">·*···Permission·is·hereby·granted,·free·of·charge,·to·any·person·obtaining</span></div> | 64 | <div·class="line"><a·id="l00011"·name="l00011"></a><span·class="lineno">···11</span><span·class="comment">·*···Permission·is·hereby·granted,·free·of·charge,·to·any·person·obtaining</span></div> |
65 | <div·class="line"><a·id="l00012"·name="l00012"></a><span·class="lineno">···12</span><span·class="comment">·*···a·copy·of·this·software·and·associated·documentation·files·(the</span></div> | 65 | <div·class="line"><a·id="l00012"·name="l00012"></a><span·class="lineno">···12</span><span·class="comment">·*···a·copy·of·this·software·and·associated·documentation·files·(the</span></div> |
66 | <div·class="line"><a·id="l00013"·name="l00013"></a><span·class="lineno">···13</span><span·class="comment">·*···"Software"),·to·deal·in·the·Software·without·restriction,·including</span></div> | 66 | <div·class="line"><a·id="l00013"·name="l00013"></a><span·class="lineno">···13</span><span·class="comment">·*···"Software"),·to·deal·in·the·Software·without·restriction,·including</span></div> |
Offset 80, 150 lines modified | Offset 80, 109 lines modified | ||
80 | <div·class="line"><a·id="l00027"·name="l00027"></a><span·class="lineno">···27</span><span·class="comment">·*···ARISING·FROM,·OUT·OF·OR·IN·CONNECTION·WITH·THE·SOFTWARE·OR·THE·USE·OR</span></div> | 80 | <div·class="line"><a·id="l00027"·name="l00027"></a><span·class="lineno">···27</span><span·class="comment">·*···ARISING·FROM,·OUT·OF·OR·IN·CONNECTION·WITH·THE·SOFTWARE·OR·THE·USE·OR</span></div> |
81 | <div·class="line"><a·id="l00028"·name="l00028"></a><span·class="lineno">···28</span><span·class="comment">·*···OTHER·DEALINGS·IN·THE·SOFTWARE.</span></div> | 81 | <div·class="line"><a·id="l00028"·name="l00028"></a><span·class="lineno">···28</span><span·class="comment">·*···OTHER·DEALINGS·IN·THE·SOFTWARE.</span></div> |
82 | <div·class="line"><a·id="l00029"·name="l00029"></a><span·class="lineno">···29</span><span·class="comment">·***************************************************************************/</span></div> | 82 | <div·class="line"><a·id="l00029"·name="l00029"></a><span·class="lineno">···29</span><span·class="comment">·***************************************************************************/</span></div> |
83 | <div·class="line"><a·id="l00030"·name="l00030"></a><span·class="lineno">···30</span><span·class="preprocessor">#ifdef·HAVE_CONFIG_H</span></div> | 83 | <div·class="line"><a·id="l00030"·name="l00030"></a><span·class="lineno">···30</span><span·class="preprocessor">#ifdef·HAVE_CONFIG_H</span></div> |
84 | <div·class="line"><a·id="l00031"·name="l00031"></a><span·class="lineno">···31</span><span·class="preprocessor">#include·<config.h></span></div> | 84 | <div·class="line"><a·id="l00031"·name="l00031"></a><span·class="lineno">···31</span><span·class="preprocessor">#include·<config.h></span></div> |
85 | <div·class="line"><a·id="l00032"·name="l00032"></a><span·class="lineno">···32</span><span·class="preprocessor">#endif</span></div> | 85 | <div·class="line"><a·id="l00032"·name="l00032"></a><span·class="lineno">···32</span><span·class="preprocessor">#endif</span></div> |
86 | <div·class="line"><a·id="l00033"·name="l00033"></a><span·class="lineno">···33</span>·</div> | 86 | <div·class="line"><a·id="l00033"·name="l00033"></a><span·class="lineno">···33</span>·</div> |
87 | <div·class="line"><a·id="l00034"·name="l00034"></a><span·class="lineno">···34</span><span·class="preprocessor">#include·"loaders/SILLYJPGImage | 87 | <div·class="line"><a·id="l00034"·name="l00034"></a><span·class="lineno">···34</span><span·class="preprocessor">#include·"loaders/SILLYJPGImageContext.h"</span></div> |
88 | <div·class="line"><a·id="l00035"·name="l00035"></a><span·class="lineno">···35</span>·</div> | 88 | <div·class="line"><a·id="l00035"·name="l00035"></a><span·class="lineno">···35</span>·</div> |
89 | <div·class="line"><a·id="l00036"·name="l00036"></a><span·class="lineno">···36</span><span·class="preprocessor">#ifndef·SILLY_OPT_INLINE</span></div> | 89 | <div·class="line"><a·id="l00036"·name="l00036"></a><span·class="lineno">···36</span><span·class="preprocessor">#ifndef·SILLY_OPT_INLINE</span></div> |
90 | <div·class="line"><a·id="l00037"·name="l00037"></a><span·class="lineno">···37</span><span·class="preprocessor">#define·inline·</span></div> | 90 | <div·class="line"><a·id="l00037"·name="l00037"></a><span·class="lineno">···37</span><span·class="preprocessor">#define·inline·</span></div> |
91 | <div·class="line"><a·id="l00038"·name="l00038"></a><span·class="lineno">···38</span><span·class="preprocessor">#include·"loaders/SILLYJPGImage | 91 | <div·class="line"><a·id="l00038"·name="l00038"></a><span·class="lineno">···38</span><span·class="preprocessor">#include·"loaders/SILLYJPGImageContext.icpp"</span></div> |
92 | <div·class="line"><a·id="l00039"·name="l00039"></a><span·class="lineno">···39</span><span·class="preprocessor">#undef·inline</span></div> | 92 | <div·class="line"><a·id="l00039"·name="l00039"></a><span·class="lineno">···39</span><span·class="preprocessor">#undef·inline</span></div> |
93 | <div·class="line"><a·id="l00040"·name="l00040"></a><span·class="lineno">···40</span><span·class="preprocessor">#endif</span></div> | 93 | <div·class="line"><a·id="l00040"·name="l00040"></a><span·class="lineno">···40</span><span·class="preprocessor">#endif</span></div> |
94 | <div·class="line"><a·id="l00041"·name="l00041"></a><span·class="lineno">···41</span><span·class="preprocessor">#include·"loaders/SILLYJPGImageContext.h"</span>·</div> | ||
95 | <div·class="line"><a·id="l0004 | 94 | <div·class="line"><a·id="l00041"·name="l00041"></a><span·class="lineno">···41</span>·</div> |
95 | <div·class="line"><a·id="l00042"·name="l00042"></a><span·class="lineno">···42</span><span·class="preprocessor">#include·<jpeglib.h></span>·</div> | ||
96 | <div·class="line"><a·id="l00043"·name="l00043"></a><span·class="lineno">···43</span>·</div> | ||
96 | <div·class="line"><a·id="l0004 | 97 | <div·class="line"><a·id="l00044"·name="l00044"></a><span·class="lineno">···44</span><span·class="comment">//·Start·section·of·namespace·SILLY</span></div> |
97 | <div·class=" | 98 | <div·class="foldopen"·id="foldopen00045"·data-start="{"·data-end="}"> |
99 | <div·class="line"><a·id="l00045"·name="l00045"></a><span·class="lineno"><a·class="line"·href="a00129.html">···45</a></span><span·class="keyword">namespace·</span><a·class="code·hl_namespace"·href="a00129.html">SILLY</a></div> | ||
98 | <div·class="line"><a·id="l0004 | 100 | <div·class="line"><a·id="l00046"·name="l00046"></a><span·class="lineno">···46</span>{</div> |
99 | <div·class="line"><a·id="l0004 | 101 | <div·class="line"><a·id="l00047"·name="l00047"></a><span·class="lineno">···47</span>·</div> |
100 | <div·class="line"><a·id="l00047"·name="l00047"></a><span·class="lineno">···47</span>····:·ImageLoader(<span·class="stringliteral">"JPG·Image·Loader·based·on·jpeg-6b"</span>)</div> | ||
101 | <div·class="line"><a·id="l00048"·name="l00048"></a><span·class="lineno">···48</span> | 102 | <div·class="line"><a·id="l00048"·name="l00048"></a><span·class="lineno">···48</span>·</div> |
102 | <div·class="line"><a·id="l00049"·name="l00049"></a><span·class="lineno">···49</span> | 103 | <div·class="line"><a·id="l00049"·name="l00049"></a><span·class="lineno">···49</span><span·class="keywordtype">void</span>·JPG_init_source(j_decompress_ptr·cinfo)</div> |
103 | <div·class="line"><a·id="l00050"·name="l00050"></a><span·class="lineno">···50</span> | 104 | <div·class="line"><a·id="l00050"·name="l00050"></a><span·class="lineno">···50</span>{</div> |
104 | <div·class="line"><a·id="l00051"·name="l00051"></a><span·class="lineno">···51</span> | 105 | <div·class="line"><a·id="l00051"·name="l00051"></a><span·class="lineno">···51</span>····<span·class="comment">//·Nothing·to·do·</span></div> |
105 | <div·class="line"><a·id="l00052"·name="l00052"></a><span·class="lineno">···52</span> | 106 | <div·class="line"><a·id="l00052"·name="l00052"></a><span·class="lineno">···52</span>}</div> |
106 | <div·class="line"><a·id="l00053"·name="l00053"></a><span·class="lineno">···53</span> | 107 | <div·class="line"><a·id="l00053"·name="l00053"></a><span·class="lineno">···53</span>·</div> |
107 | <div·class="line"><a·id="l00054"·name="l00054"></a><span·class="lineno">···54</span>·</div> | 108 | <div·class="line"><a·id="l00054"·name="l00054"></a><span·class="lineno">···54</span><span·class="keywordtype">boolean</span>·JPG_fill_input_buffer(j_decompress_ptr·cinfo)····</div> |
108 | <div·class="line"><a·id="l00055"·name="l00055"></a><span·class="lineno">···55</span> | 109 | <div·class="line"><a·id="l00055"·name="l00055"></a><span·class="lineno">···55</span>{</div> |
110 | <div·class="line"><a·id="l00056"·name="l00056"></a><span·class="lineno">···56</span>····<a·class="code·hl_class"·href="a00945.html">JPGImageContext</a>*·jpg·=·<span·class="keyword">reinterpret_cast<</span><a·class="code·hl_class"·href="a00945.html">JPGImageContext</a>*<span·class="keyword">></span>(cinfo->client_data);</div> | ||
111 | <div·class="line"><a·id="l00057"·name="l00057"></a><span·class="lineno">···57</span>····cinfo->src->next_input_byte·=·jpg->d_source-><a·class="code·hl_function"·href="a00969.html#a3ae74c9d90450a3d9aa45191e1c21c13">getDataPtr</a>();</div> | ||
112 | <div·class="line"><a·id="l00058"·name="l00058"></a><span·class="lineno">···58</span>····cinfo->src->bytes_in_buffer·=·jpg->d_source-><a·class="code·hl_function"·href="a00969.html#a319cde5b2ea76e92e922845ecfa5c615">getSize</a>();</div> | ||
109 | <div·class="foldopen"·id="foldopen00056"·data-start="{"·data-end="}"> | ||
110 | <div·class="line"><a·id="l00056"·name="l00056"></a><span·class="lineno"><a·class="line"·href="a00949.html#a919eb05f6df058544657e865a1590d5a">···56</a></span><a·class="code·hl_class"·href="a00981.html">ImageContext</a>*·JPGImageLoader::loadHeader(<a·class="code·hl_enumeration"·href="a00129.html#a60883d4958a60b91661e97027a85072a">PixelFormat</a>&·formatSource,·<a·class="code·hl_class"·href="a00969.html">DataSource</a>*·data)</div> | ||
111 | <div·class="line"><a·id="l00057"·name="l00057"></a><span·class="lineno">···57</span>{</div> | ||
112 | <div·class="line"><a·id="l00058"·name="l00058"></a><span·class="lineno">···58</span>····<a·class="code·hl_class"·href="a00945.html">JPGImageContext</a>*·jpg·=·<span·class="keyword">new</span>·<a·class="code·hl_class"·href="a00945.html">JPGImageContext</a>;</div> | ||
113 | <div·class="line"><a·id="l00059"·name="l00059"></a><span·class="lineno">···59</span>···· | 113 | <div·class="line"><a·id="l00059"·name="l00059"></a><span·class="lineno">···59</span>····<span·class="keywordflow">return</span>·TRUE;</div> |
114 | <div·class="line"><a·id="l00060"·name="l00060"></a><span·class="lineno">···60</span> | 114 | <div·class="line"><a·id="l00060"·name="l00060"></a><span·class="lineno">···60</span>}</div> |
115 | <div·class="line"><a·id="l00061"·name="l00061"></a><span·class="lineno">···61</span>·</div> | ||
116 | <div·class="line"><a·id="l00062"·name="l00062"></a><span·class="lineno">···62</span><span·class="keywordtype">void</span>·JPG_skip_input_data(j_decompress_ptr·cinfo,·<span·class="keywordtype">long</span>·num_bytes)</div> | ||
117 | <div·class="line"><a·id="l00063"·name="l00063"></a><span·class="lineno">···63</span>{</div> | ||
115 | <div·class="line"><a·id="l0006 | 118 | <div·class="line"><a·id="l00064"·name="l00064"></a><span·class="lineno">···64</span>····<span·class="keywordflow">if</span>·(num_bytes·>·0)</div> |
116 | <div·class="line"><a·id="l00062"·name="l00062"></a><span·class="lineno">···62</span>········<span·class="keywordflow">return</span>·0;</div> | ||
117 | <div·class="line"><a·id="l00063"·name="l00063"></a><span·class="lineno">···63</span>····<span·class="keywordflow">if</span>·(setjmp(jpg->setjmp_buffer))</div> | ||
118 | <div·class="line"><a·id="l0006 | 119 | <div·class="line"><a·id="l00065"·name="l00065"></a><span·class="lineno">···65</span>····{</div> |
119 | <div·class="line"><a·id="l00065"·name="l00065"></a><span·class="lineno">···65</span>········<span·class="keyword">delete</span>·jpg;</div> | ||
120 | <div·class="line"><a·id="l00066"·name="l00066"></a><span·class="lineno">···66</span>········ | 120 | <div·class="line"><a·id="l00066"·name="l00066"></a><span·class="lineno">···66</span>········cinfo->src->next_input_byte·+=·(size_t)num_bytes;</div> |
121 | <div·class="line"><a·id="l00067"·name="l00067"></a><span·class="lineno">···67</span>········cinfo->src->bytes_in_buffer·-=·(size_t)num_bytes;</div> | ||
121 | <div·class="line"><a·id="l0006 | 122 | <div·class="line"><a·id="l00068"·name="l00068"></a><span·class="lineno">···68</span>····}····</div> |
122 | <div·class="line"><a·id="l0006 | 123 | <div·class="line"><a·id="l00069"·name="l00069"></a><span·class="lineno">···69</span>}</div> |
123 | <div·class="line"><a·id="l00069"·name="l00069"></a><span·class="lineno">···69</span>····<span·class="keywordflow">if</span>·(!·jpeg_start_decompress(&(jpg->cinfo)))</div> | ||
124 | <div·class="line"><a·id="l00070"·name="l00070"></a><span·class="lineno">···70</span>· | 124 | <div·class="line"><a·id="l00070"·name="l00070"></a><span·class="lineno">···70</span>·</div> |
125 | <div·class="line"><a·id="l00071"·name="l00071"></a><span·class="lineno">···71</span> | 125 | <div·class="line"><a·id="l00071"·name="l00071"></a><span·class="lineno">···71</span><span·class="keywordtype">void</span>·JPG_term_source(j_decompress_ptr·cinfo)····</div> |
126 | <div·class="line"><a·id="l00072"·name="l00072"></a><span·class="lineno">···72</span>········<span·class="keywordflow">return</span>·0;</div> | ||
127 | <div·class="line"><a·id="l0007 | 126 | <div·class="line"><a·id="l00072"·name="l00072"></a><span·class="lineno">···72</span>{</div> |
127 | <div·class="line"><a·id="l00073"·name="l00073"></a><span·class="lineno">···73</span>····<span·class="comment">//·Nothing·to·do·</span></div> | ||
128 | <div·class="line"><a·id="l00074"·name="l00074"></a><span·class="lineno">···74</span> | 128 | <div·class="line"><a·id="l00074"·name="l00074"></a><span·class="lineno">···74</span>}</div> |
129 | <div·class="line"><a·id="l00075"·name="l00075"></a><span·class="lineno">···75</span>· | 129 | <div·class="line"><a·id="l00075"·name="l00075"></a><span·class="lineno">···75</span>·</div> |
130 | <div·class="line"><a·id="l00076"·name="l00076"></a><span·class="lineno">···76</span> | 130 | <div·class="line"><a·id="l00076"·name="l00076"></a><span·class="lineno">···76</span><span·class="keywordtype">void</span>·JPG_error_exit(j_common_ptr·cinfo)</div> |
131 | <div·class="line"><a·id="l00077"·name="l00077"></a><span·class="lineno">···77</span> | 131 | <div·class="line"><a·id="l00077"·name="l00077"></a><span·class="lineno">···77</span>{</div> |
132 | <div·class="line"><a·id="l00078"·name="l00078"></a><span·class="lineno">···78</span>····<a·class="code·hl_class"·href="a00945.html">JPGImageContext</a>*·jpg·=·<span·class="keyword">reinterpret_cast<</span><a·class="code·hl_class"·href="a00945.html">JPGImageContext</a>*<span·class="keyword">></span>(cinfo->client_data);</div> | ||
132 | <div·class="line"><a·id="l00078"·name="l00078"></a><span·class="lineno">···78</span>········printf(<span·class="stringliteral">"JPG·unsupported·bpp:·%d\n"</span>,·jpg->cinfo.output_components·);</div> | ||
133 | <div·class="line"><a·id="l00079"·name="l00079"></a><span·class="lineno">···79</span>········jpeg_finish_decompress(&·jpg->cinfo);</div> | ||
134 | <div·class="line"><a·id="l000 | 133 | <div·class="line"><a·id="l00079"·name="l00079"></a><span·class="lineno">···79</span>····<span·class="comment">//·TODO·</span></div> |
134 | <div·class="line"><a·id="l00080"·name="l00080"></a><span·class="lineno">···80</span>····longjmp(jpg->setjmp_buffer,·1);</div> | ||
135 | <div·class="line"><a·id="l00081"·name="l00081"></a><span·class="lineno">···81</span>···· | 135 | <div·class="line"><a·id="l00081"·name="l00081"></a><span·class="lineno">···81</span>····</div> |
136 | <div·class="line"><a·id="l00082"·name="l00082"></a><span·class="lineno">···82</span> | 136 | <div·class="line"><a·id="l00082"·name="l00082"></a><span·class="lineno">···82</span>}</div> |
137 | <div·class="line"><a·id="l00083"·name="l00083"></a><span·class="lineno">···83</span>····formatSource··=·PF_RGB;·<span·class="comment">//·It's·not·true·but·we·handle·both·the·same·way</span></div> | ||
138 | <div·class="line"><a·id="l0008 | 137 | <div·class="line"><a·id="l00083"·name="l00083"></a><span·class="lineno">···83</span>·</div> |
138 | <div·class="line"><a·id="l00084"·name="l00084"></a><span·class="lineno">···84</span><span·class="keywordtype">void</span>·JPG_emit_message(j_common_ptr·cinfo,·<span·class="keywordtype">int</span>·msg_level)</div> | ||
139 | <div·class="line"><a·id="l00085"·name="l00085"></a><span·class="lineno">···85</span> | 139 | <div·class="line"><a·id="l00085"·name="l00085"></a><span·class="lineno">···85</span>{</div> |
140 | <div·class="line"><a·id="l00086"·name="l00086"></a><span·class="lineno">···86</span>····jpg->setImageSize();</div> | ||
141 | <div·class="line"><a·id="l0008 | 140 | <div·class="line"><a·id="l00086"·name="l00086"></a><span·class="lineno">···86</span>····<span·class="comment">//·Ignore·</span></div> |
141 | <div·class="line"><a·id="l00087"·name="l00087"></a><span·class="lineno">···87</span>}</div> | ||
142 | <div·class="line"><a·id="l00088"·name="l00088"></a><span·class="lineno">···88</span> | 142 | <div·class="line"><a·id="l00088"·name="l00088"></a><span·class="lineno">···88</span>·</div> |
143 | </div> | ||
144 | <div·class="line"><a·id="l00089"·name="l00089"></a><span·class="lineno">···89</span>·</div> | 143 | <div·class="line"><a·id="l00089"·name="l00089"></a><span·class="lineno">···89</span>·</div> |
144 | <div·class="line"><a·id="l00090"·name="l00090"></a><span·class="lineno">···90</span>JPGImageContext::JPGImageContext()</div> | ||
145 | <div·class="foldopen"·id="foldopen00090"·data-start="{"·data-end="}"> | ||
146 | <div·class="line"><a·id="l00090"·name="l00090"></a><span·class="lineno"><a·class="line"·href="a00949.html#a4a4d6df5dcc08cb493855fcfc1956fca">···90</a></span><span·class="keywordtype">bool</span>·JPGImageLoader::loadImageData(<a·class="code·hl_enumeration"·href="a00129.html#aebdd89f22790687ac264c1abd9f7fd38">PixelOrigin</a>·origin,·</div> | ||
147 | <div·class="line"><a·id="l00091"·name="l00091"></a><span·class="lineno">···91</span>···································<a·class="code·hl_class"·href="a00969.html">DataSource</a>*·data,·</div> | ||
148 | <div·class="line"><a·id="l0009 | 145 | <div·class="line"><a·id="l00091"·name="l00091"></a><span·class="lineno">···91</span>····:·<a·class="code·hl_class"·href="a00981.html">ImageContext</a>(0,·0)</div> |
149 | <div·class="line"><a·id="l0009 | 146 | <div·class="line"><a·id="l00092"·name="l00092"></a><span·class="lineno">···92</span>{</div> |
150 | <div·class="line"><a·id="l0009 | 147 | <div·class="line"><a·id="l00093"·name="l00093"></a><span·class="lineno">···93</span>····src_mgr.bytes_in_buffer·=·0;</div> |
Max diff block lines reached; 5238/38709 bytes (13.53%) of diff not shown. |
Offset 1, 20 lines modified | Offset 1, 20 lines modified | ||
1 | Simple·Image·Loading·LibrarY 0.1.0 | 1 | Simple·Image·Loading·LibrarY 0.1.0 |
2 | ····*·_\x8b_\x8u_\x8i_\x8l_\x8d | 2 | ····*·_\x8b_\x8u_\x8i_\x8l_\x8d |
3 | ····*·_\x8r_\x8e_\x8p_\x8r_\x8o_\x8d_\x8u_\x8c_\x8i_\x8b_\x8l_\x8e_\x8-_\x8p_\x8a_\x8t_\x8h | 3 | ····*·_\x8r_\x8e_\x8p_\x8r_\x8o_\x8d_\x8u_\x8c_\x8i_\x8b_\x8l_\x8e_\x8-_\x8p_\x8a_\x8t_\x8h |
4 | ····*·_\x8s_\x8i_\x8l_\x8l_\x8y_\x8-_\x80_\x8._\x81_\x8._\x80 | 4 | ····*·_\x8s_\x8i_\x8l_\x8l_\x8y_\x8-_\x80_\x8._\x81_\x8._\x80 |
5 | ····*·_\x8s_\x8r_\x8c | 5 | ····*·_\x8s_\x8r_\x8c |
6 | ····*·_\x8l_\x8o_\x8a_\x8d_\x8e_\x8r_\x8s | 6 | ····*·_\x8l_\x8o_\x8a_\x8d_\x8e_\x8r_\x8s |
7 | SILLYJPGImage | 7 | SILLYJPGImageContext.cpp |
8 | 1/*********************************************************************** | 8 | 1/*********************************************************************** |
9 | 2·filename:·SILLYJPGImage | 9 | 2·filename:·SILLYJPGImageContext.cpp |
10 | 3·created:·11·Jun·2006 | 10 | 3·created:·11·Jun·2006 |
11 | 4·author:·Olivier·Delannoy | 11 | 4·author:·Olivier·Delannoy |
12 | 5 | 12 | 5 |
13 | 6·purpose:·Definition·of·JPGImage | 13 | 6·purpose:·Definition·of·the·JPGImageContext·class·methods |
14 | 7*************************************************************************/ | 14 | 7*************************************************************************/ |
15 | 8/*************************************************************************** | 15 | 8/*************************************************************************** |
16 | 9·*·Copyright·(C)·2004·-·2006·Paul·D·Turner·&·The·CEGUI·Development·Team | 16 | 9·*·Copyright·(C)·2004·-·2006·Paul·D·Turner·&·The·CEGUI·Development·Team |
17 | 10·* | 17 | 10·* |
18 | 11·*·Permission·is·hereby·granted,·free·of·charge,·to·any·person·obtaining | 18 | 11·*·Permission·is·hereby·granted,·free·of·charge,·to·any·person·obtaining |
19 | 12·*·a·copy·of·this·software·and·associated·documentation·files·(the | 19 | 12·*·a·copy·of·this·software·and·associated·documentation·files·(the |
20 | 13·*·"Software"),·to·deal·in·the·Software·without·restriction,·including | 20 | 13·*·"Software"),·to·deal·in·the·Software·without·restriction,·including |
Offset 34, 162 lines modified | Offset 34, 114 lines modified | ||
34 | 27·*·ARISING·FROM,·OUT·OF·OR·IN·CONNECTION·WITH·THE·SOFTWARE·OR·THE·USE·OR | 34 | 27·*·ARISING·FROM,·OUT·OF·OR·IN·CONNECTION·WITH·THE·SOFTWARE·OR·THE·USE·OR |
35 | 28·*·OTHER·DEALINGS·IN·THE·SOFTWARE. | 35 | 28·*·OTHER·DEALINGS·IN·THE·SOFTWARE. |
36 | 29·***************************************************************************/ | 36 | 29·***************************************************************************/ |
37 | 30#ifdef·HAVE_CONFIG_H | 37 | 30#ifdef·HAVE_CONFIG_H |
38 | 31#include·<config.h> | 38 | 31#include·<config.h> |
39 | 32#endif | 39 | 32#endif |
40 | 33 | 40 | 33 |
41 | 34#include·"loaders/SILLYJPGImage | 41 | 34#include·"loaders/SILLYJPGImageContext.h" |
42 | 35 | 42 | 35 |
43 | 36#ifndef·SILLY_OPT_INLINE | 43 | 36#ifndef·SILLY_OPT_INLINE |
44 | 37#define·inline | 44 | 37#define·inline |
45 | 38#include·"loaders/SILLYJPGImage | 45 | 38#include·"loaders/SILLYJPGImageContext.icpp" |
46 | 39#undef·inline | 46 | 39#undef·inline |
47 | 40#endif | 47 | 40#endif |
48 | 41#include·"loaders/SILLYJPGImageContext.h" | ||
49 | 4 | 48 | 41 |
49 | 42#include·<jpeglib.h> | ||
50 | 43 | ||
50 | 4 | 51 | 44//·Start·section·of·namespace·SILLY |
51 | 4 | 52 | _.4_.5namespace·_\x8S_\x8I_\x8L_\x8L_\x8Y |
53 | 46{ | ||
54 | 47 | ||
52 | 45{ | ||
53 | 46JPGImageLoader::JPGImageLoader() | ||
54 | 47·:·ImageLoader("JPG·Image·Loader·based·on·jpeg-6b") | ||
55 | 48 | 55 | 48 |
56 | 49 | 56 | 49void·JPG_init_source(j_decompress_ptr·cinfo) |
57 | 50 | 57 | 50{ |
58 | 51JPGImageLoader::~JPGImageLoader() | ||
59 | 5 | 58 | 51·//·Nothing·to·do |
59 | 52} | ||
60 | 53 | 60 | 53 |
61 | 54 | 61 | 54boolean·JPG_fill_input_buffer(j_decompress_ptr·cinfo) |
62 | 55 | 62 | 55{ |
63 | _\x85_\x86_\x8I_\x8m_\x8a_\x8g_\x8e_\x8C_\x8o_\x8n_\x8t_\x8e_\x8x_\x8t*·JPGImageLoader::loadHeader(_\x8P_\x8i_\x8x_\x8e_\x8l_\x8F_\x8o_\x8r_\x8m_\x8a_\x8t&·formatSource, | ||
64 | _\x8D_\x8a_\x8t_\x8a_\x8S_\x8o_\x8u_\x8r_\x8c_\x8e*·data) | ||
65 | 57{ | ||
66 | 5 | 63 | 56·_.J_.P_.G_.I_.m_.a_.g_.e_.C_.o_.n_.t_.e_.x_.t*·jpg·=·reinterpret_cast<_.J_.P_.G_.I_.m_.a_.g_.e_.C_.o_.n_.t_.e_.x_.t*>(cinfo- |
67 | 64 | >client_data); | |
65 | 57·cinfo->src->next_input_byte·=·jpg->d_source->_\x8g_\x8e_\x8t_\x8D_\x8a_\x8t_\x8a_\x8P_\x8t_\x8r(); | ||
66 | 58·cinfo->src->bytes_in_buffer·=·jpg->d_source->_\x8g_\x8e_\x8t_\x8S_\x8i_\x8z_\x8e(); | ||
67 | 59·return·TRUE; | ||
68 | 60 | 68 | 60} |
69 | 61·if·(!·jpg) | ||
70 | 62·return·0; | ||
71 | 6 | 69 | 61 |
70 | 62void·JPG_skip_input_data(j_decompress_ptr·cinfo,·long·num_bytes) | ||
71 | 63{ | ||
72 | 64·if·(num_bytes·>·0) | ||
72 | 6 | 73 | 65·{ |
73 | 65·delete·jpg; | ||
74 | 66·retu | 74 | 66·cinfo->src->next_input_byte·+=·(size_t)num_bytes; |
75 | 67·cinfo->src->bytes_in_buffer·-=·(size_t)num_bytes; | ||
75 | 6 | 76 | 68·} |
77 | 69} | ||
78 | 70 | ||
79 | 71void·JPG_term_source(j_decompress_ptr·cinfo) | ||
80 | 72{ | ||
81 | 73·//·Nothing·to·do | ||
76 | 68·jpeg_read_header(&(jpg->cinfo),·TRUE); | ||
77 | 69·if·(!·jpeg_start_decompress(&(jpg->cinfo))) | ||
78 | 70·{ | ||
79 | 71·delete·jpg; | ||
80 | 72·return·0; | ||
81 | 73·} | ||
82 | 74 | 82 | 74} |
83 | 75 | 83 | 75 |
84 | 76 | 84 | 76void·JPG_error_exit(j_common_ptr·cinfo) |
85 | 77 | 85 | 77{ |
86 | 78·printf("JPG·unsupported·bpp:·%d\n",·jpg->cinfo.output_components·); | ||
87 | 79·jpeg_finish_decompress(&·jpg->cinfo); | ||
88 | 80·delete·jpg; | ||
89 | 8 | 86 | 78·_.J_.P_.G_.I_.m_.a_.g_.e_.C_.o_.n_.t_.e_.x_.t*·jpg·=·reinterpret_cast<_.J_.P_.G_.I_.m_.a_.g_.e_.C_.o_.n_.t_.e_.x_.t*>(cinfo- |
87 | >client_data); | ||
88 | 79·//·TODO | ||
89 | 80·longjmp(jpg->setjmp_buffer,·1); | ||
90 | 81 | ||
90 | 82 | 91 | 82} |
92 | 83 | ||
93 | 84void·JPG_emit_message(j_common_ptr·cinfo,·int·msg_level) | ||
91 | 83·formatSource·=·PF_RGB;·//·It's·not·true·but·we·handle·both·the·same·way | ||
92 | 84·//printf("Image·info:·size:·%dx%d·-·bpp:·%d\n",·jpg->cinfo.output_width, | ||
93 | jpg->cinfo.output_height,·jpg->cinfo.output_components); | ||
94 | 85 | 94 | 85{ |
95 | 86·jpg->setImageSize(); | ||
96 | 8 | 95 | 86·//·Ignore |
96 | 87} | ||
97 | 88 | 97 | 88 |
98 | 89 | 98 | 89 |
99 | 90JPGImageContext::JPGImageContext() | ||
99 | _\x89_\x80bool·JPGImageLoader::loadImageData(_\x8P_\x8i_\x8x_\x8e_\x8l_\x8O_\x8r_\x8i_\x8g_\x8i_\x8n·origin, | ||
100 | 91·_\x8D_\x8a_\x8t_\x8a_\x8S_\x8o_\x8u_\x8r_\x8c_\x8e*·data, | ||
101 | 9 | 100 | 91·:·_.I_.m_.a_.g_.e_.C_.o_.n_.t_.e_.x_.t(0,·0) |
102 | 93{ | ||
103 | 94·_\x8J_\x8P_\x8G_\x8I_\x8m_\x8a_\x8g_\x8e_\x8C_\x8o_\x8n_\x8t_\x8e_\x8x_\x8t*·jpg·=·static_cast<_\x8J_\x8P_\x8G_\x8I_\x8m_\x8a_\x8g_\x8e_\x8C_\x8o_\x8n_\x8t_\x8e_\x8x_\x8t*>(context); | ||
104 | 95 | ||
105 | 96·//·Allocate·a·buffer | ||
106 | 97·int·row_stride·=·jpg->getWidth()·*·jpg->cinfo.output_components; | ||
107 | 98·JSAMPARRAY·buffer·=·(*·jpg->cinfo.mem->alloc_sarray)( | ||
108 | 99·(j_common_ptr)(&·jpg->cinfo), | ||
109 | 100·JPOOL_IMAGE, | ||
110 | 101·row_stride, | ||
111 | 102·1); | ||
112 | 103·bool·finished·=·true; | ||
113 | 104·size_t·height·=·jpg->getHeight(); | ||
114 | 101 | 92{ | |
Max diff block lines reached; 3476/8890 bytes (39.10%) of diff not shown. |
Offset 1, 15 lines modified | Offset 1, 15 lines modified | ||
1 | <!DOCTYPE·html·PUBLIC·"-//W3C//DTD·XHTML·1.0·Transitional//EN"·"https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> | 1 | <!DOCTYPE·html·PUBLIC·"-//W3C//DTD·XHTML·1.0·Transitional//EN"·"https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> |
2 | <html·xmlns="http://www.w3.org/1999/xhtml"·lang="en-US"> | 2 | <html·xmlns="http://www.w3.org/1999/xhtml"·lang="en-US"> |
3 | <head> | 3 | <head> |
4 | <meta·http-equiv="Content-Type"·content="text/xhtml;charset=UTF-8"/> | 4 | <meta·http-equiv="Content-Type"·content="text/xhtml;charset=UTF-8"/> |
5 | <meta·http-equiv="X-UA-Compatible"·content="IE=11"/> | 5 | <meta·http-equiv="X-UA-Compatible"·content="IE=11"/> |
6 | <meta·name="generator"·content="Doxygen·1.9.8"/> | 6 | <meta·name="generator"·content="Doxygen·1.9.8"/> |
7 | <meta·name="viewport"·content="width=device-width,·initial-scale=1"/> | 7 | <meta·name="viewport"·content="width=device-width,·initial-scale=1"/> |
8 | <title>Simple·Image·Loading·LibrarY:·/build/reproducible-path/silly-0.1.0/src/loaders/SILLY | 8 | <title>Simple·Image·Loading·LibrarY:·/build/reproducible-path/silly-0.1.0/src/loaders/SILLYJPGImageLoader.cpp·Source·File</title> |
9 | <link·href="tabs.css"·rel="stylesheet"·type="text/css"/> | 9 | <link·href="tabs.css"·rel="stylesheet"·type="text/css"/> |
10 | <script·type="text/javascript"·src="jquery.js"></script> | 10 | <script·type="text/javascript"·src="jquery.js"></script> |
11 | <script·type="text/javascript"·src="dynsections.js"></script> | 11 | <script·type="text/javascript"·src="dynsections.js"></script> |
12 | <link·href="doxygen.css"·rel="stylesheet"·type="text/css"·/> | 12 | <link·href="doxygen.css"·rel="stylesheet"·type="text/css"·/> |
13 | </head> | 13 | </head> |
14 | <body> | 14 | <body> |
15 | <div·id="top"><!--·do·not·remove·this·div,·it·is·closed·by·doxygen!·--> | 15 | <div·id="top"><!--·do·not·remove·this·div,·it·is·closed·by·doxygen!·--> |
Offset 44, 23 lines modified | Offset 44, 23 lines modified | ||
44 | </script> | 44 | </script> |
45 | <div·id="nav-path"·class="navpath"> | 45 | <div·id="nav-path"·class="navpath"> |
46 | ··<ul> | 46 | ··<ul> |
47 | <li·class="navelem"><a·class="el"·href="dir_4fef79e7177ba769987a8da36c892c5f.html">build</a></li><li·class="navelem"><a·class="el"·href="dir_9def6061848686aab7e6212bb499d615.html">reproducible-path</a></li><li·class="navelem"><a·class="el"·href="dir_74170d5b58cefb7cb5a86fc552b183a3.html">silly-0.1.0</a></li><li·class="navelem"><a·class="el"·href="dir_7b53bc9a32849689d682eb098e891de5.html">src</a></li><li·class="navelem"><a·class="el"·href="dir_7b011f4828cd5682692dd5e7c066fc3b.html">loaders</a></li>··</ul> | 47 | <li·class="navelem"><a·class="el"·href="dir_4fef79e7177ba769987a8da36c892c5f.html">build</a></li><li·class="navelem"><a·class="el"·href="dir_9def6061848686aab7e6212bb499d615.html">reproducible-path</a></li><li·class="navelem"><a·class="el"·href="dir_74170d5b58cefb7cb5a86fc552b183a3.html">silly-0.1.0</a></li><li·class="navelem"><a·class="el"·href="dir_7b53bc9a32849689d682eb098e891de5.html">src</a></li><li·class="navelem"><a·class="el"·href="dir_7b011f4828cd5682692dd5e7c066fc3b.html">loaders</a></li>··</ul> |
48 | </div> | 48 | </div> |
49 | </div><!--·top·--> | 49 | </div><!--·top·--> |
50 | <div·class="header"> | 50 | <div·class="header"> |
51 | ··<div·class="headertitle"><div·class="title">SILLY | 51 | ··<div·class="headertitle"><div·class="title">SILLYJPGImageLoader.cpp</div></div> |
52 | </div><!--header--> | 52 | </div><!--header--> |
53 | <div·class="contents"> | 53 | <div·class="contents"> |
54 | <div·class="fragment"><div·class="line"><a·id="l00001"·name="l00001"></a><span·class="lineno">····1</span><span·class="comment">/***********************************************************************</span></div> | 54 | <div·class="fragment"><div·class="line"><a·id="l00001"·name="l00001"></a><span·class="lineno">····1</span><span·class="comment">/***********************************************************************</span></div> |
55 | <div·class="line"><a·id="l00002"·name="l00002"></a><span·class="lineno">····2</span><span·class="comment">····filename:···SILLY | 55 | <div·class="line"><a·id="l00002"·name="l00002"></a><span·class="lineno">····2</span><span·class="comment">····filename:···SILLYJPGImageLoader.cpp</span></div> |
56 | <div·class="line"><a·id="l00003"·name="l00003"></a><span·class="lineno">····3</span><span·class="comment">····created:····11·Jun·2006</span></div> | 56 | <div·class="line"><a·id="l00003"·name="l00003"></a><span·class="lineno">····3</span><span·class="comment">····created:····11·Jun·2006</span></div> |
57 | <div·class="line"><a·id="l00004"·name="l00004"></a><span·class="lineno">····4</span><span·class="comment">····author:·····Olivier·Delannoy·</span></div> | 57 | <div·class="line"><a·id="l00004"·name="l00004"></a><span·class="lineno">····4</span><span·class="comment">····author:·····Olivier·Delannoy·</span></div> |
58 | <div·class="line"><a·id="l00005"·name="l00005"></a><span·class="lineno">····5</span><span·class="comment"></span>·</div> | 58 | <div·class="line"><a·id="l00005"·name="l00005"></a><span·class="lineno">····5</span><span·class="comment"></span>·</div> |
59 | <div·class="line"><a·id="l00006"·name="l00006"></a><span·class="lineno">····6</span><span·class="comment">····purpose:···· | 59 | <div·class="line"><a·id="l00006"·name="l00006"></a><span·class="lineno">····6</span><span·class="comment">····purpose:····Definition·of·JPGImageLoader·methods··</span></div> |
60 | <div·class="line"><a·id="l00007"·name="l00007"></a><span·class="lineno">····7</span><span·class="comment">*************************************************************************/</span></div> | 60 | <div·class="line"><a·id="l00007"·name="l00007"></a><span·class="lineno">····7</span><span·class="comment">*************************************************************************/</span></div> |
61 | <div·class="line"><a·id="l00008"·name="l00008"></a><span·class="lineno">····8</span><span·class="comment">/***************************************************************************</span></div> | 61 | <div·class="line"><a·id="l00008"·name="l00008"></a><span·class="lineno">····8</span><span·class="comment">/***************************************************************************</span></div> |
62 | <div·class="line"><a·id="l00009"·name="l00009"></a><span·class="lineno">····9</span><span·class="comment">·*···Copyright·(C)·2004·-·2006·Paul·D·Turner·&·The·CEGUI·Development·Team</span></div> | 62 | <div·class="line"><a·id="l00009"·name="l00009"></a><span·class="lineno">····9</span><span·class="comment">·*···Copyright·(C)·2004·-·2006·Paul·D·Turner·&·The·CEGUI·Development·Team</span></div> |
63 | <div·class="line"><a·id="l00010"·name="l00010"></a><span·class="lineno">···10</span><span·class="comment">·*</span></div> | 63 | <div·class="line"><a·id="l00010"·name="l00010"></a><span·class="lineno">···10</span><span·class="comment">·*</span></div> |
64 | <div·class="line"><a·id="l00011"·name="l00011"></a><span·class="lineno">···11</span><span·class="comment">·*···Permission·is·hereby·granted,·free·of·charge,·to·any·person·obtaining</span></div> | 64 | <div·class="line"><a·id="l00011"·name="l00011"></a><span·class="lineno">···11</span><span·class="comment">·*···Permission·is·hereby·granted,·free·of·charge,·to·any·person·obtaining</span></div> |
65 | <div·class="line"><a·id="l00012"·name="l00012"></a><span·class="lineno">···12</span><span·class="comment">·*···a·copy·of·this·software·and·associated·documentation·files·(the</span></div> | 65 | <div·class="line"><a·id="l00012"·name="l00012"></a><span·class="lineno">···12</span><span·class="comment">·*···a·copy·of·this·software·and·associated·documentation·files·(the</span></div> |
66 | <div·class="line"><a·id="l00013"·name="l00013"></a><span·class="lineno">···13</span><span·class="comment">·*···"Software"),·to·deal·in·the·Software·without·restriction,·including</span></div> | 66 | <div·class="line"><a·id="l00013"·name="l00013"></a><span·class="lineno">···13</span><span·class="comment">·*···"Software"),·to·deal·in·the·Software·without·restriction,·including</span></div> |
Offset 80, 313 lines modified | Offset 80, 150 lines modified | ||
80 | <div·class="line"><a·id="l00027"·name="l00027"></a><span·class="lineno">···27</span><span·class="comment">·*···ARISING·FROM,·OUT·OF·OR·IN·CONNECTION·WITH·THE·SOFTWARE·OR·THE·USE·OR</span></div> | 80 | <div·class="line"><a·id="l00027"·name="l00027"></a><span·class="lineno">···27</span><span·class="comment">·*···ARISING·FROM,·OUT·OF·OR·IN·CONNECTION·WITH·THE·SOFTWARE·OR·THE·USE·OR</span></div> |
81 | <div·class="line"><a·id="l00028"·name="l00028"></a><span·class="lineno">···28</span><span·class="comment">·*···OTHER·DEALINGS·IN·THE·SOFTWARE.</span></div> | 81 | <div·class="line"><a·id="l00028"·name="l00028"></a><span·class="lineno">···28</span><span·class="comment">·*···OTHER·DEALINGS·IN·THE·SOFTWARE.</span></div> |
82 | <div·class="line"><a·id="l00029"·name="l00029"></a><span·class="lineno">···29</span><span·class="comment">·***************************************************************************/</span></div> | 82 | <div·class="line"><a·id="l00029"·name="l00029"></a><span·class="lineno">···29</span><span·class="comment">·***************************************************************************/</span></div> |
83 | <div·class="line"><a·id="l00030"·name="l00030"></a><span·class="lineno">···30</span><span·class="preprocessor">#ifdef·HAVE_CONFIG_H</span></div> | 83 | <div·class="line"><a·id="l00030"·name="l00030"></a><span·class="lineno">···30</span><span·class="preprocessor">#ifdef·HAVE_CONFIG_H</span></div> |
84 | <div·class="line"><a·id="l00031"·name="l00031"></a><span·class="lineno">···31</span><span·class="preprocessor">#include·<config.h></span></div> | 84 | <div·class="line"><a·id="l00031"·name="l00031"></a><span·class="lineno">···31</span><span·class="preprocessor">#include·<config.h></span></div> |
85 | <div·class="line"><a·id="l00032"·name="l00032"></a><span·class="lineno">···32</span><span·class="preprocessor">#endif</span></div> | 85 | <div·class="line"><a·id="l00032"·name="l00032"></a><span·class="lineno">···32</span><span·class="preprocessor">#endif</span></div> |
86 | <div·class="line"><a·id="l00033"·name="l00033"></a><span·class="lineno">···33</span>·</div> | 86 | <div·class="line"><a·id="l00033"·name="l00033"></a><span·class="lineno">···33</span>·</div> |
87 | <div·class="line"><a·id="l00034"·name="l00034"></a><span·class="lineno">···34</span><span·class="preprocessor">#include·"loaders/SILLY | 87 | <div·class="line"><a·id="l00034"·name="l00034"></a><span·class="lineno">···34</span><span·class="preprocessor">#include·"loaders/SILLYJPGImageLoader.h"</span></div> |
88 | <div·class="line"><a·id="l00035"·name="l00035"></a><span·class="lineno">···35</span>·</div> | 88 | <div·class="line"><a·id="l00035"·name="l00035"></a><span·class="lineno">···35</span>·</div> |
89 | <div·class="line"><a·id="l00036"·name="l00036"></a><span·class="lineno">···36</span><span·class="preprocessor">#ifndef·SILLY_OPT_INLINE</span></div> | 89 | <div·class="line"><a·id="l00036"·name="l00036"></a><span·class="lineno">···36</span><span·class="preprocessor">#ifndef·SILLY_OPT_INLINE</span></div> |
90 | <div·class="line"><a·id="l00037"·name="l00037"></a><span·class="lineno">···37</span><span·class="preprocessor">#define·inline·</span></div> | 90 | <div·class="line"><a·id="l00037"·name="l00037"></a><span·class="lineno">···37</span><span·class="preprocessor">#define·inline·</span></div> |
91 | <div·class="line"><a·id="l00038"·name="l00038"></a><span·class="lineno">···38</span><span·class="preprocessor">#include·"loaders/SILLY | 91 | <div·class="line"><a·id="l00038"·name="l00038"></a><span·class="lineno">···38</span><span·class="preprocessor">#include·"loaders/SILLYJPGImageLoader.icpp"</span></div> |
92 | <div·class="line"><a·id="l00039"·name="l00039"></a><span·class="lineno">···39</span><span·class="preprocessor">#undef·inline</span></div> | 92 | <div·class="line"><a·id="l00039"·name="l00039"></a><span·class="lineno">···39</span><span·class="preprocessor">#undef·inline</span></div> |
93 | <div·class="line"><a·id="l00040"·name="l00040"></a><span·class="lineno">···40</span><span·class="preprocessor">#endif | 93 | <div·class="line"><a·id="l00040"·name="l00040"></a><span·class="lineno">···40</span><span·class="preprocessor">#endif</span></div> |
94 | <div·class="line"><a·id="l00041"·name="l00041"></a><span·class="lineno">···41</span><span·class="preprocessor">#include·"SILLYDataSource.h"</span>·</div> | ||
95 | <div·class="line"><a·id="l0004 | 94 | <div·class="line"><a·id="l00041"·name="l00041"></a><span·class="lineno">···41</span><span·class="preprocessor">#include·"loaders/SILLYJPGImageContext.h"</span>·</div> |
96 | <div·class="line"><a·id="l0004 | 95 | <div·class="line"><a·id="l00042"·name="l00042"></a><span·class="lineno">···42</span>·</div> |
97 | <div·class="line"><a·id="l00044"·name="l00044"></a><span·class="lineno">···44</span><span·class="preprocessor">#include·<cstring></span>·</div> | ||
98 | <div·class="line"><a·id="l00045"·name="l00045"></a><span·class="lineno">···45</span><span·class="preprocessor">#include·<cstdio></span></div> | ||
99 | <div·class="line"><a·id="l00046"·name="l00046"></a><span·class="lineno">···46</span>·</div> | ||
100 | <div·class="line"><a·id="l0004 | 96 | <div·class="line"><a·id="l00043"·name="l00043"></a><span·class="lineno">···43</span><span·class="comment">//·Start·section·of·namespace·SILLY</span></div> |
101 | <div·class="line"><a·id="l0004 | 97 | <div·class="line"><a·id="l00044"·name="l00044"></a><span·class="lineno">···44</span><span·class="keyword">namespace·</span><a·class="code·hl_namespace"·href="a00129.html">SILLY</a></div> |
98 | <div·class="line"><a·id="l00045"·name="l00045"></a><span·class="lineno">···45</span>{</div> | ||
99 | <div·class="line"><a·id="l00046"·name="l00046"></a><span·class="lineno">···46</span>JPGImageLoader::JPGImageLoader()</div> | ||
100 | <div·class="line"><a·id="l00047"·name="l00047"></a><span·class="lineno">···47</span>····:·ImageLoader(<span·class="stringliteral">"JPG·Image·Loader·based·on·jpeg-6b"</span>)</div> | ||
101 | <div·class="line"><a·id="l00048"·name="l00048"></a><span·class="lineno">···48</span>{</div> | ||
102 | <div·class="line"><a·id="l00049"·name="l00049"></a><span·class="lineno">···49</span> | 102 | <div·class="line"><a·id="l00049"·name="l00049"></a><span·class="lineno">···49</span>}</div> |
103 | <div·class="line"><a·id="l00050"·name="l00050"></a><span·class="lineno">···50</span>·</div> | 103 | <div·class="line"><a·id="l00050"·name="l00050"></a><span·class="lineno">···50</span>·</div> |
104 | <div·class="line"><a·id="l00051"·name="l00051"></a><span·class="lineno">···51</span> | 104 | <div·class="line"><a·id="l00051"·name="l00051"></a><span·class="lineno">···51</span>JPGImageLoader::~JPGImageLoader()</div> |
105 | <div·class="line"><a·id="l00052"·name="l00052"></a><span·class="lineno">···52</span> | 105 | <div·class="line"><a·id="l00052"·name="l00052"></a><span·class="lineno">···52</span>{</div> |
106 | <div·class="line"><a·id="l00053"·name="l00053"></a><span·class="lineno">···53</span> | 106 | <div·class="line"><a·id="l00053"·name="l00053"></a><span·class="lineno">···53</span>}</div> |
107 | <div·class="line"><a·id="l00054"·name="l00054"></a><span·class="lineno">···54</span> | 107 | <div·class="line"><a·id="l00054"·name="l00054"></a><span·class="lineno">···54</span>·</div> |
108 | <div·class="line"><a·id="l00055"·name="l00055"></a><span·class="lineno">···55</span>·</div> | 108 | <div·class="line"><a·id="l00055"·name="l00055"></a><span·class="lineno">···55</span>·</div> |
109 | <div·class=" | 109 | <div·class="foldopen"·id="foldopen00056"·data-start="{"·data-end="}"> |
110 | <div·class="line"><a·id="l00056"·name="l00056"></a><span·class="lineno"><a·class="line"·href="a00949.html#a919eb05f6df058544657e865a1590d5a">···56</a></span><a·class="code·hl_class"·href="a00981.html">ImageContext</a>*·JPGImageLoader::loadHeader(<a·class="code·hl_enumeration"·href="a00129.html#a60883d4958a60b91661e97027a85072a">PixelFormat</a>&·formatSource,·<a·class="code·hl_class"·href="a00969.html">DataSource</a>*·data)</div> | ||
110 | <div·class="line"><a·id="l00057"·name="l00057"></a><span·class="lineno">···57</span>{</div> | 111 | <div·class="line"><a·id="l00057"·name="l00057"></a><span·class="lineno">···57</span>{</div> |
111 | <div·class="line"><a·id="l00058"·name="l00058"></a><span·class="lineno">···58</span> | 112 | <div·class="line"><a·id="l00058"·name="l00058"></a><span·class="lineno">···58</span>····<a·class="code·hl_class"·href="a00945.html">JPGImageContext</a>*·jpg·=·<span·class="keyword">new</span>·<a·class="code·hl_class"·href="a00945.html">JPGImageContext</a>;</div> |
112 | <div·class="line"><a·id="l00059"·name="l00059"></a><span·class="lineno">···59</span>·</div> | 113 | <div·class="line"><a·id="l00059"·name="l00059"></a><span·class="lineno">···59</span>····jpg->d_source·=·data;</div> |
113 | <div·class="line"><a·id="l00060"·name="l00060"></a><span·class="lineno">···60</span><span·class="preprocessor">#ifdef·SILLY_BE</span></div> | ||
114 | <div·class="line"><a·id="l00061"·name="l00061"></a><span·class="lineno">···61</span><span·class="preprocessor">#define·READ_WORD(res,·start)···················\</span></div> | ||
115 | <div·class="line"><a·id="l00062"·name="l00062"></a><span·class="lineno">···62</span><span·class="preprocessor">····(res)·=·0;··································\</span></div> | ||
116 | <div·class="line"><a·id="l00063"·name="l00063"></a><span·class="lineno">···63</span><span·class="preprocessor">····(res)·=·data->getDataPtr()[(start)·+·1];···············\</span></div> | ||
117 | <div·class="line"><a·id="l00064"·name="l00064"></a><span·class="lineno">···64</span><span·class="preprocessor">····(res)·=·(res)·<<·8;·························\</span></div> | ||
118 | <div·class="line"><a·id="l00065"·name="l00065"></a><span·class="lineno">···65</span><span·class="preprocessor">····(res)·|=·data->getDataPtr()[(start)];</span></div> | ||
119 | <div·class="line"><a·id="l00066"·name="l00066"></a><span·class="lineno">···66</span><span·class="preprocessor">#else·</span></div> | ||
120 | <div·class="line"><a·id="l00067"·name="l00067"></a><span·class="lineno">···67</span><span·class="preprocessor">#define·READ_WORD(res,·start)···················\</span></div> | ||
121 | <div·class="line"><a·id="l00068"·name="l00068"></a><span·class="lineno">···68</span><span·class="preprocessor">····(res)·=·0;··································\</span></div> | ||
122 | <div·class="line"><a·id="l00069"·name="l00069"></a><span·class="lineno">···69</span><span·class="preprocessor">····(res)·=·data->getDataPtr()[(start)];···················\</span></div> | ||
123 | <div·class="line"><a·id="l00070"·name="l00070"></a><span·class="lineno">···70</span><span·class="preprocessor">····(res)·=·(res)·<<·8;··························\</span></div> | ||
124 | <div·class="line"><a·id="l00071"·name="l00071"></a><span·class="lineno">···71</span><span·class="preprocessor">····(res)·|=·data->getDataPtr()[(start)·+·1];</span></div> | ||
125 | <div·class="line"><a·id="l00072"·name="l00072"></a><span·class="lineno">···72</span><span·class="preprocessor">#endif·</span></div> | ||
126 | <div·class="line"><a·id="l00073"·name="l00073"></a><span·class="lineno">···73</span>·</div> | ||
127 | <div·class="foldopen"·id="foldopen00074"·data-start="{"·data-end="}"> | ||
128 | <div·class="line"><a·id="l00074"·name="l00074"></a><span·class="lineno"><a·class="line"·href="a00965.html#a1f83c2e6e4960b05c1b5bd61b0635f8c">···74</a></span><a·class="code·hl_class"·href="a00981.html">ImageContext</a>*·TGAImageLoader::loadHeader(<a·class="code·hl_enumeration"·href="a00129.html#a60883d4958a60b91661e97027a85072a">PixelFormat</a>&·formatSource,·<a·class="code·hl_class"·href="a00969.html">DataSource</a>*·data)</div> | ||
129 | <div·class="line"><a·id="l00075"·name="l00075"></a><span·class="lineno">···75</span>{</div> | ||
130 | <div·class="line"><a·id="l00076"·name="l00076"></a><span·class="lineno">···76</span>····<span·class="keywordtype">byte</span>·idLength·=·data-><a·class="code·hl_function"·href="a00969.html#a3ae74c9d90450a3d9aa45191e1c21c13">getDataPtr</a>()[0];</div> | ||
131 | <div·class="line"><a·id="l00077"·name="l00077"></a><span·class="lineno">···77</span>····<span·class="keywordtype">byte</span>·colorMapType·=·data-><a·class="code·hl_function"·href="a00969.html#a3ae74c9d90450a3d9aa45191e1c21c13">getDataPtr</a>()[1];</div> | ||
132 | <div·class="line"><a·id="l00078"·name="l00078"></a><span·class="lineno">···78</span>····<span·class="keywordtype">byte</span>·imageType·=·data-><a·class="code·hl_function"·href="a00969.html#a3ae74c9d90450a3d9aa45191e1c21c13">getDataPtr</a>()[2];</div> | ||
133 | <div·class="line"><a·id="l00079"·name="l00079"></a><span·class="lineno">···79</span>····<span·class="keywordtype">size_t</span>·width;</div> | ||
134 | <div·class="line"><a·id="l00080"·name="l00080"></a><span·class="lineno">···80</span>····<span·class="keywordtype">size_t</span>·height;</div> | ||
135 | <div·class="line"><a·id="l00081"·name="l00081"></a><span·class="lineno">···81</span>····<span·class="keywordtype">byte</span>·depth;</div> | ||
136 | <div·class="line"><a·id="l00082"·name="l00082"></a><span·class="lineno">···82</span>····<span·class="keywordtype">byte</span>·description;</div> | ||
137 | <div·class="line"><a·id="l00083"·name="l00083"></a><span·class="lineno">···83</span>····<span·class="keywordflow">if</span>·((imageType·!=·2·&&·imageType·!=·10)·||·colorMapType)</div> | ||
138 | <div·class="line"><a·id="l000 | 114 | <div·class="line"><a·id="l00060"·name="l00060"></a><span·class="lineno">···60</span>····</div> |
139 | <div·class="line"><a·id="l000 | 115 | <div·class="line"><a·id="l00061"·name="l00061"></a><span·class="lineno">···61</span>····<span·class="keywordflow">if</span>·(!·jpg)</div> |
140 | <div·class="line"><a·id="l000 | 116 | <div·class="line"><a·id="l00062"·name="l00062"></a><span·class="lineno">···62</span>········<span·class="keywordflow">return</span>·0;</div> |
117 | <div·class="line"><a·id="l00063"·name="l00063"></a><span·class="lineno">···63</span>····<span·class="keywordflow">if</span>·(setjmp(jpg->setjmp_buffer))</div> | ||
118 | <div·class="line"><a·id="l00064"·name="l00064"></a><span·class="lineno">···64</span>····{</div> | ||
119 | <div·class="line"><a·id="l00065"·name="l00065"></a><span·class="lineno">···65</span>········<span·class="keyword">delete</span>·jpg;</div> | ||
120 | <div·class="line"><a·id="l00066"·name="l00066"></a><span·class="lineno">···66</span>········<span·class="keywordflow">return</span>·0;</div> | ||
141 | <div·class="line"><a·id="l000 | 121 | <div·class="line"><a·id="l00067"·name="l00067"></a><span·class="lineno">···67</span>····}</div> |
122 | <div·class="line"><a·id="l00068"·name="l00068"></a><span·class="lineno">···68</span>····jpeg_read_header(&(jpg->cinfo),·TRUE);</div> | ||
142 | <div·class="line"><a·id="l00088"·name="l00088"></a><span·class="lineno">···88</span>····<span·class="comment">//·offset:·3·Skip·color·map·+·5·bytes·</span></div> | ||
143 | <div·class="line"><a·id="l00089"·name="l00089"></a><span·class="lineno">···89</span>····<span·class="comment">//·offset:·8·Skip·xorg·/·yorg·+·4·bytes·</span></div> | ||
144 | <div·class="line"><a·id="l00090"·name="l00090"></a><span·class="lineno">···90</span><span·class="preprocessor">#ifdef·SILLY_BE·</span></div> | ||
145 | <div·class="line"><a·id="l00091"·name="l00091"></a><span·class="lineno">···91</span>····width·=·data-><a·class="code·hl_function"·href="a00969.html#a3ae74c9d90450a3d9aa45191e1c21c13">getDataPtr</a>()[12];</div> | ||
146 | <div·class="line"><a·id="l00092"·name="l00092"></a><span·class="lineno">···92</span>····width·=·width·<<·8;</div> | ||
147 | <div·class="line"><a·id="l00093"·name="l00093"></a><span·class="lineno">···93</span>····width·|=·data-><a·class="code·hl_function"·href="a00969.html#a3ae74c9d90450a3d9aa45191e1c21c13">getDataPtr</a>()[13];</div> | ||
148 | <div·class="line"><a·id="l00094"·name="l00094"></a><span·class="lineno">···94</span>····height·=··data-><a·class="code·hl_function"·href="a00969.html#a3ae74c9d90450a3d9aa45191e1c21c13">getDataPtr</a>()[14];</div> | ||
149 | <div·class="line"><a·id="l00095"·name="l00095"></a><span·class="lineno">···95</span>····height·=·height·<<·8;</div> | ||
150 | <div·class="line"><a·id="l00096"·name="l00096"></a><span·class="lineno">···96</span>····height·|=·data-><a·class="code·hl_function"·href="a00969.html#a3ae74c9d90450a3d9aa45191e1c21c13">getDataPtr</a>()[15];</div> | ||
151 | <div·class="line"><a·id="l00097"·name="l00097"></a><span·class="lineno">···97</span><span·class="preprocessor">#else·</span></div> | ||
152 | <div·class="line"><a·id="l00098"·name="l00098"></a><span·class="lineno">···98</span>····width·=·data-><a·class="code·hl_function"·href="a00969.html#a3ae74c9d90450a3d9aa45191e1c21c13">getDataPtr</a>()[13];</div> | ||
153 | <div·class="line"><a·id="l00099"·name="l00099"></a><span·class="lineno">···99</span>····width·=·width·<<·8;</div> | ||
154 | <div·class="line"><a·id="l00100"·name="l00100"></a><span·class="lineno">··100</span>····width·|=·data-><a·class="code·hl_function"·href="a00969.html#a3ae74c9d90450a3d9aa45191e1c21c13">getDataPtr</a>()[12];</div> | ||
155 | <div·class="line"><a·id="l00101"·name="l00101"></a><span·class="lineno">··101</span>····height·=·data-><a·class="code·hl_function"·href="a00969.html#a3ae74c9d90450a3d9aa45191e1c21c13">getDataPtr</a>()[15];</div> | ||
156 | <div·class="line"><a·id="l00102"·name="l00102"></a><span·class="lineno">··102</span>····height·=·height·<<·8;</div> | ||
Max diff block lines reached; 43830/71356 bytes (61.42%) of diff not shown. |
Offset 1, 20 lines modified | Offset 1, 20 lines modified | ||
1 | Simple·Image·Loading·LibrarY 0.1.0 | 1 | Simple·Image·Loading·LibrarY 0.1.0 |
2 | ····*·_\x8b_\x8u_\x8i_\x8l_\x8d | 2 | ····*·_\x8b_\x8u_\x8i_\x8l_\x8d |
3 | ····*·_\x8r_\x8e_\x8p_\x8r_\x8o_\x8d_\x8u_\x8c_\x8i_\x8b_\x8l_\x8e_\x8-_\x8p_\x8a_\x8t_\x8h | 3 | ····*·_\x8r_\x8e_\x8p_\x8r_\x8o_\x8d_\x8u_\x8c_\x8i_\x8b_\x8l_\x8e_\x8-_\x8p_\x8a_\x8t_\x8h |
4 | ····*·_\x8s_\x8i_\x8l_\x8l_\x8y_\x8-_\x80_\x8._\x81_\x8._\x80 | 4 | ····*·_\x8s_\x8i_\x8l_\x8l_\x8y_\x8-_\x80_\x8._\x81_\x8._\x80 |
5 | ····*·_\x8s_\x8r_\x8c | 5 | ····*·_\x8s_\x8r_\x8c |
6 | ····*·_\x8l_\x8o_\x8a_\x8d_\x8e_\x8r_\x8s | 6 | ····*·_\x8l_\x8o_\x8a_\x8d_\x8e_\x8r_\x8s |
7 | SILLY | 7 | SILLYJPGImageLoader.cpp |
8 | 1/*********************************************************************** | 8 | 1/*********************************************************************** |
9 | 2·filename:·SILLY | 9 | 2·filename:·SILLYJPGImageLoader.cpp |
10 | 3·created:·11·Jun·2006 | 10 | 3·created:·11·Jun·2006 |
11 | 4·author:·Olivier·Delannoy | 11 | 4·author:·Olivier·Delannoy |
12 | 5 | 12 | 5 |
13 | 6·purpose:· | 13 | 6·purpose:·Definition·of·JPGImageLoader·methods |
14 | 7*************************************************************************/ | 14 | 7*************************************************************************/ |
15 | 8/*************************************************************************** | 15 | 8/*************************************************************************** |
16 | 9·*·Copyright·(C)·2004·-·2006·Paul·D·Turner·&·The·CEGUI·Development·Team | 16 | 9·*·Copyright·(C)·2004·-·2006·Paul·D·Turner·&·The·CEGUI·Development·Team |
17 | 10·* | 17 | 10·* |
18 | 11·*·Permission·is·hereby·granted,·free·of·charge,·to·any·person·obtaining | 18 | 11·*·Permission·is·hereby·granted,·free·of·charge,·to·any·person·obtaining |
19 | 12·*·a·copy·of·this·software·and·associated·documentation·files·(the | 19 | 12·*·a·copy·of·this·software·and·associated·documentation·files·(the |
20 | 13·*·"Software"),·to·deal·in·the·Software·without·restriction,·including | 20 | 13·*·"Software"),·to·deal·in·the·Software·without·restriction,·including |
Offset 34, 322 lines modified | Offset 34, 157 lines modified | ||
34 | 27·*·ARISING·FROM,·OUT·OF·OR·IN·CONNECTION·WITH·THE·SOFTWARE·OR·THE·USE·OR | 34 | 27·*·ARISING·FROM,·OUT·OF·OR·IN·CONNECTION·WITH·THE·SOFTWARE·OR·THE·USE·OR |
35 | 28·*·OTHER·DEALINGS·IN·THE·SOFTWARE. | 35 | 28·*·OTHER·DEALINGS·IN·THE·SOFTWARE. |
36 | 29·***************************************************************************/ | 36 | 29·***************************************************************************/ |
37 | 30#ifdef·HAVE_CONFIG_H | 37 | 30#ifdef·HAVE_CONFIG_H |
38 | 31#include·<config.h> | 38 | 31#include·<config.h> |
39 | 32#endif | 39 | 32#endif |
40 | 33 | 40 | 33 |
41 | 34#include·"loaders/SILLY | 41 | 34#include·"loaders/SILLYJPGImageLoader.h" |
42 | 35 | 42 | 35 |
43 | 36#ifndef·SILLY_OPT_INLINE | 43 | 36#ifndef·SILLY_OPT_INLINE |
44 | 37#define·inline | 44 | 37#define·inline |
45 | 38#include·"loaders/SILLY | 45 | 38#include·"loaders/SILLYJPGImageLoader.icpp" |
46 | 39#undef·inline | 46 | 39#undef·inline |
47 | 40#endif | 47 | 40#endif |
48 | 41#include·"SILLYDataSource.h" | ||
49 | 4 | 48 | 41#include·"loaders/SILLYJPGImageContext.h" |
49 | 42 | ||
50 | 43 | ||
51 | 44#include·<cstring> | ||
52 | 45#include·<cstdio> | ||
53 | 46 | ||
54 | 4 | 50 | 43//·Start·section·of·namespace·SILLY |
55 | 4 | 51 | 44namespace·_\x8S_\x8I_\x8L_\x8L_\x8Y |
56 | 4 | 52 | 45{ |
53 | 46JPGImageLoader::JPGImageLoader() | ||
54 | 47·:·ImageLoader("JPG·Image·Loader·based·on·jpeg-6b") | ||
55 | 48{ | ||
56 | 49} | ||
57 | 50 | 57 | 50 |
58 | 51 | 58 | 51JPGImageLoader::~JPGImageLoader() |
59 | 52·:·ImageLoader("TGA·Image·loader·(builtin)") | ||
60 | 5 | 59 | 52{ |
60 | 53} | ||
61 | 54 | 61 | 54 |
62 | 55 | 62 | 55 |
63 | 56TGAImageLoader::~TGAImageLoader() | ||
64 | 57{ | ||
65 | 58} | ||
66 | 59 | ||
67 | 60#ifdef·SILLY_BE | ||
68 | 61#define·READ_WORD(res,·start)·\ | ||
69 | 62·(res)·=·0;·\ | ||
70 | 63·(res)·=·data->getDataPtr()[(start)·+·1];·\ | ||
71 | 64·(res)·=·(res)·<<·8;·\ | ||
72 | 65·(res)·|=·data->getDataPtr()[(start)]; | ||
73 | 66#else | ||
74 | 67#define·READ_WORD(res,·start)·\ | ||
75 | 68·(res)·=·0;·\ | ||
76 | 69·(res)·=·data->getDataPtr()[(start)];·\ | ||
77 | 70·(res)·=·(res)·<<·8;·\ | ||
78 | 71·(res)·|=·data->getDataPtr()[(start)·+·1]; | ||
79 | 72#endif | ||
80 | 73 | ||
81 | _\x8 | 63 | _\x85_.6_.I_.m_.a_.g_.e_.C_.o_.n_.t_.e_.x_.t*·JPGImageLoader::loadHeader(_\x8P_\x8i_\x8x_\x8e_\x8l_\x8F_\x8o_\x8r_\x8m_\x8a_\x8t&·formatSource, |
82 | _\x8D_\x8a_\x8t_\x8a_\x8S_\x8o_\x8u_\x8r_\x8c_\x8e*·data) | 64 | _\x8D_\x8a_\x8t_\x8a_\x8S_\x8o_\x8u_\x8r_\x8c_\x8e*·data) |
65 | 57{ | ||
66 | 58·_\x8J_\x8P_\x8G_\x8I_\x8m_\x8a_\x8g_\x8e_\x8C_\x8o_\x8n_\x8t_\x8e_\x8x_\x8t*·jpg·=·new·_\x8J_\x8P_\x8G_\x8I_\x8m_\x8a_\x8g_\x8e_\x8C_\x8o_\x8n_\x8t_\x8e_\x8x_\x8t; | ||
67 | 59·jpg->d_source·=·data; | ||
68 | 60 | ||
69 | 61·if·(!·jpg) | ||
83 | 75{ | ||
84 | 76·byte·idLength·=·data->_\x8g_\x8e_\x8t_\x8D_\x8a_\x8t_\x8a_\x8P_\x8t_\x8r()[0]; | ||
85 | 77·byte·colorMapType·=·data->_\x8g_\x8e_\x8t_\x8D_\x8a_\x8t_\x8a_\x8P_\x8t_\x8r()[1]; | ||
86 | 78·byte·imageType·=·data->_\x8g_\x8e_\x8t_\x8D_\x8a_\x8t_\x8a_\x8P_\x8t_\x8r()[2]; | ||
87 | 79·size_t·width; | ||
88 | 80·size_t·height; | ||
89 | 81·byte·depth; | ||
90 | 82·byte·description; | ||
91 | 83·if·((imageType·!=·2·&&·imageType·!=·10)·||·colorMapType) | ||
92 | 84·{ | ||
93 | 85·//·Unsupported·image·format | ||
94 | 70 | 62·return·0; | |
71 | 63·if·(setjmp(jpg->setjmp_buffer)) | ||
72 | 64·{ | ||
73 | 65·delete·jpg; | ||
74 | 66·return·0; | ||
95 | 75 | 67·} | |
76 | 68·jpeg_read_header(&(jpg->cinfo),·TRUE); | ||
77 | 69·if·(!·jpeg_start_decompress(&(jpg->cinfo))) | ||
78 | 70·{ | ||
79 | 71·delete·jpg; | ||
80 | 72·return·0; | ||
81 | 73·} | ||
82 | 74 | ||
83 | 75 | ||
84 | 76·if·(jpg->cinfo.output_components·!=·1·&&·jpg->cinfo.output_components·!=·3) | ||
85 | 77·{ | ||
86 | 78·printf("JPG·unsupported·bpp:·%d\n",·jpg->cinfo.output_components·); | ||
87 | 79·jpeg_finish_decompress(&·jpg->cinfo); | ||
88 | 80·delete·jpg; | ||
96 | 88·//·offset:·3·Skip·color·map·+·5·bytes | ||
97 | 89·//·offset:·8·Skip·xorg·/·yorg·+·4·bytes | ||
98 | 90#ifdef·SILLY_BE | ||
99 | 91·width·=·data->_\x8g_\x8e_\x8t_\x8D_\x8a_\x8t_\x8a_\x8P_\x8t_\x8r()[12]; | ||
100 | 92·width·=·width·<<·8; | ||
101 | 93·width·|=·data->_\x8g_\x8e_\x8t_\x8D_\x8a_\x8t_\x8a_\x8P_\x8t_\x8r()[13]; | ||
102 | 94·height·=·data->_\x8g_\x8e_\x8t_\x8D_\x8a_\x8t_\x8a_\x8P_\x8t_\x8r()[14]; | ||
103 | 95·height·=·height·<<·8; | ||
104 | 96·height·|=·data->_\x8g_\x8e_\x8t_\x8D_\x8a_\x8t_\x8a_\x8P_\x8t_\x8r()[15]; | ||
105 | 97#else | ||
106 | 98·width·=·data->_\x8g_\x8e_\x8t_\x8D_\x8a_\x8t_\x8a_\x8P_\x8t_\x8r()[13]; | ||
107 | 99·width·=·width·<<·8; | ||
108 | 100·width·|=·data->_\x8g_\x8e_\x8t_\x8D_\x8a_\x8t_\x8a_\x8P_\x8t_\x8r()[12]; | ||
109 | 101·height·=·data->_\x8g_\x8e_\x8t_\x8D_\x8a_\x8t_\x8a_\x8P_\x8t_\x8r()[15]; | ||
110 | 102·height·=·height·<<·8; | ||
111 | 103·height·|=·data->_\x8g_\x8e_\x8t_\x8D_\x8a_\x8t_\x8a_\x8P_\x8t_\x8r()[14]; | ||
Max diff block lines reached; 7483/13885 bytes (53.89%) of diff not shown. |
Offset 1, 15 lines modified | Offset 1, 15 lines modified | ||
1 | <!DOCTYPE·html·PUBLIC·"-//W3C//DTD·XHTML·1.0·Transitional//EN"·"https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> | 1 | <!DOCTYPE·html·PUBLIC·"-//W3C//DTD·XHTML·1.0·Transitional//EN"·"https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> |
2 | <html·xmlns="http://www.w3.org/1999/xhtml"·lang="en-US"> | 2 | <html·xmlns="http://www.w3.org/1999/xhtml"·lang="en-US"> |
3 | <head> | 3 | <head> |
4 | <meta·http-equiv="Content-Type"·content="text/xhtml;charset=UTF-8"/> | 4 | <meta·http-equiv="Content-Type"·content="text/xhtml;charset=UTF-8"/> |
5 | <meta·http-equiv="X-UA-Compatible"·content="IE=11"/> | 5 | <meta·http-equiv="X-UA-Compatible"·content="IE=11"/> |
6 | <meta·name="generator"·content="Doxygen·1.9.8"/> | 6 | <meta·name="generator"·content="Doxygen·1.9.8"/> |
7 | <meta·name="viewport"·content="width=device-width,·initial-scale=1"/> | 7 | <meta·name="viewport"·content="width=device-width,·initial-scale=1"/> |
8 | <title>Simple·Image·Loading·LibrarY:·/build/reproducible-path/silly-0.1.0/src/loaders/SILLY | 8 | <title>Simple·Image·Loading·LibrarY:·/build/reproducible-path/silly-0.1.0/src/loaders/SILLYPNGImageLoader.cpp·Source·File</title> |
9 | <link·href="tabs.css"·rel="stylesheet"·type="text/css"/> | 9 | <link·href="tabs.css"·rel="stylesheet"·type="text/css"/> |
10 | <script·type="text/javascript"·src="jquery.js"></script> | 10 | <script·type="text/javascript"·src="jquery.js"></script> |
11 | <script·type="text/javascript"·src="dynsections.js"></script> | 11 | <script·type="text/javascript"·src="dynsections.js"></script> |
12 | <link·href="doxygen.css"·rel="stylesheet"·type="text/css"·/> | 12 | <link·href="doxygen.css"·rel="stylesheet"·type="text/css"·/> |
13 | </head> | 13 | </head> |
14 | <body> | 14 | <body> |
15 | <div·id="top"><!--·do·not·remove·this·div,·it·is·closed·by·doxygen!·--> | 15 | <div·id="top"><!--·do·not·remove·this·div,·it·is·closed·by·doxygen!·--> |
Offset 44, 23 lines modified | Offset 44, 23 lines modified | ||
44 | </script> | 44 | </script> |
45 | <div·id="nav-path"·class="navpath"> | 45 | <div·id="nav-path"·class="navpath"> |
46 | ··<ul> | 46 | ··<ul> |
47 | <li·class="navelem"><a·class="el"·href="dir_4fef79e7177ba769987a8da36c892c5f.html">build</a></li><li·class="navelem"><a·class="el"·href="dir_9def6061848686aab7e6212bb499d615.html">reproducible-path</a></li><li·class="navelem"><a·class="el"·href="dir_74170d5b58cefb7cb5a86fc552b183a3.html">silly-0.1.0</a></li><li·class="navelem"><a·class="el"·href="dir_7b53bc9a32849689d682eb098e891de5.html">src</a></li><li·class="navelem"><a·class="el"·href="dir_7b011f4828cd5682692dd5e7c066fc3b.html">loaders</a></li>··</ul> | 47 | <li·class="navelem"><a·class="el"·href="dir_4fef79e7177ba769987a8da36c892c5f.html">build</a></li><li·class="navelem"><a·class="el"·href="dir_9def6061848686aab7e6212bb499d615.html">reproducible-path</a></li><li·class="navelem"><a·class="el"·href="dir_74170d5b58cefb7cb5a86fc552b183a3.html">silly-0.1.0</a></li><li·class="navelem"><a·class="el"·href="dir_7b53bc9a32849689d682eb098e891de5.html">src</a></li><li·class="navelem"><a·class="el"·href="dir_7b011f4828cd5682692dd5e7c066fc3b.html">loaders</a></li>··</ul> |
48 | </div> | 48 | </div> |
49 | </div><!--·top·--> | 49 | </div><!--·top·--> |
50 | <div·class="header"> | 50 | <div·class="header"> |
51 | ··<div·class="headertitle"><div·class="title">SILLY | 51 | ··<div·class="headertitle"><div·class="title">SILLYPNGImageLoader.cpp</div></div> |
52 | </div><!--header--> | 52 | </div><!--header--> |
53 | <div·class="contents"> | 53 | <div·class="contents"> |
54 | <div·class="fragment"><div·class="line"><a·id="l00001"·name="l00001"></a><span·class="lineno">····1</span><span·class="comment">/***********************************************************************</span></div> | 54 | <div·class="fragment"><div·class="line"><a·id="l00001"·name="l00001"></a><span·class="lineno">····1</span><span·class="comment">/***********************************************************************</span></div> |
55 | <div·class="line"><a·id="l00002"·name="l00002"></a><span·class="lineno">····2</span><span·class="comment">····filename:···SILLY | 55 | <div·class="line"><a·id="l00002"·name="l00002"></a><span·class="lineno">····2</span><span·class="comment">····filename:···SILLYPNGImageLoader.cpp</span></div> |
56 | <div·class="line"><a·id="l00003"·name="l00003"></a><span·class="lineno">····3</span><span·class="comment">····created:····11·Jun·2006</span></div> | 56 | <div·class="line"><a·id="l00003"·name="l00003"></a><span·class="lineno">····3</span><span·class="comment">····created:····11·Jun·2006</span></div> |
57 | <div·class="line"><a·id="l00004"·name="l00004"></a><span·class="lineno">····4</span><span·class="comment">····author:·····Olivier·Delannoy | 57 | <div·class="line"><a·id="l00004"·name="l00004"></a><span·class="lineno">····4</span><span·class="comment">····author:·····Olivier·Delannoy</span></div> |
58 | <div·class="line"><a·id="l00005"·name="l00005"></a><span·class="lineno">····5</span><span·class="comment"></span>·</div> | 58 | <div·class="line"><a·id="l00005"·name="l00005"></a><span·class="lineno">····5</span><span·class="comment"></span>·</div> |
59 | <div·class="line"><a·id="l00006"·name="l00006"></a><span·class="lineno">····6</span><span·class="comment">····purpose:····Definition·of·the· | 59 | <div·class="line"><a·id="l00006"·name="l00006"></a><span·class="lineno">····6</span><span·class="comment">····purpose:····Definition·of·the·PNGImageLoader·methods</span></div> |
60 | <div·class="line"><a·id="l00007"·name="l00007"></a><span·class="lineno">····7</span><span·class="comment">*************************************************************************/</span></div> | 60 | <div·class="line"><a·id="l00007"·name="l00007"></a><span·class="lineno">····7</span><span·class="comment">*************************************************************************/</span></div> |
61 | <div·class="line"><a·id="l00008"·name="l00008"></a><span·class="lineno">····8</span><span·class="comment">/***************************************************************************</span></div> | 61 | <div·class="line"><a·id="l00008"·name="l00008"></a><span·class="lineno">····8</span><span·class="comment">/***************************************************************************</span></div> |
62 | <div·class="line"><a·id="l00009"·name="l00009"></a><span·class="lineno">····9</span><span·class="comment">·*···Copyright·(C)·2004·-·2006·Paul·D·Turner·&·The·CEGUI·Development·Team</span></div> | 62 | <div·class="line"><a·id="l00009"·name="l00009"></a><span·class="lineno">····9</span><span·class="comment">·*···Copyright·(C)·2004·-·2006·Paul·D·Turner·&·The·CEGUI·Development·Team</span></div> |
63 | <div·class="line"><a·id="l00010"·name="l00010"></a><span·class="lineno">···10</span><span·class="comment">·*</span></div> | 63 | <div·class="line"><a·id="l00010"·name="l00010"></a><span·class="lineno">···10</span><span·class="comment">·*</span></div> |
64 | <div·class="line"><a·id="l00011"·name="l00011"></a><span·class="lineno">···11</span><span·class="comment">·*···Permission·is·hereby·granted,·free·of·charge,·to·any·person·obtaining</span></div> | 64 | <div·class="line"><a·id="l00011"·name="l00011"></a><span·class="lineno">···11</span><span·class="comment">·*···Permission·is·hereby·granted,·free·of·charge,·to·any·person·obtaining</span></div> |
65 | <div·class="line"><a·id="l00012"·name="l00012"></a><span·class="lineno">···12</span><span·class="comment">·*···a·copy·of·this·software·and·associated·documentation·files·(the</span></div> | 65 | <div·class="line"><a·id="l00012"·name="l00012"></a><span·class="lineno">···12</span><span·class="comment">·*···a·copy·of·this·software·and·associated·documentation·files·(the</span></div> |
66 | <div·class="line"><a·id="l00013"·name="l00013"></a><span·class="lineno">···13</span><span·class="comment">·*···"Software"),·to·deal·in·the·Software·without·restriction,·including</span></div> | 66 | <div·class="line"><a·id="l00013"·name="l00013"></a><span·class="lineno">···13</span><span·class="comment">·*···"Software"),·to·deal·in·the·Software·without·restriction,·including</span></div> |
Offset 78, 111 lines modified | Offset 78, 202 lines modified | ||
78 | <div·class="line"><a·id="l00025"·name="l00025"></a><span·class="lineno">···25</span><span·class="comment">·*···IN·NO·EVENT·SHALL·THE·AUTHORS·BE·LIABLE·FOR·ANY·CLAIM,·DAMAGES·OR</span></div> | 78 | <div·class="line"><a·id="l00025"·name="l00025"></a><span·class="lineno">···25</span><span·class="comment">·*···IN·NO·EVENT·SHALL·THE·AUTHORS·BE·LIABLE·FOR·ANY·CLAIM,·DAMAGES·OR</span></div> |
79 | <div·class="line"><a·id="l00026"·name="l00026"></a><span·class="lineno">···26</span><span·class="comment">·*···OTHER·LIABILITY,·WHETHER·IN·AN·ACTION·OF·CONTRACT,·TORT·OR·OTHERWISE,</span></div> | 79 | <div·class="line"><a·id="l00026"·name="l00026"></a><span·class="lineno">···26</span><span·class="comment">·*···OTHER·LIABILITY,·WHETHER·IN·AN·ACTION·OF·CONTRACT,·TORT·OR·OTHERWISE,</span></div> |
80 | <div·class="line"><a·id="l00027"·name="l00027"></a><span·class="lineno">···27</span><span·class="comment">·*···ARISING·FROM,·OUT·OF·OR·IN·CONNECTION·WITH·THE·SOFTWARE·OR·THE·USE·OR</span></div> | 80 | <div·class="line"><a·id="l00027"·name="l00027"></a><span·class="lineno">···27</span><span·class="comment">·*···ARISING·FROM,·OUT·OF·OR·IN·CONNECTION·WITH·THE·SOFTWARE·OR·THE·USE·OR</span></div> |
81 | <div·class="line"><a·id="l00028"·name="l00028"></a><span·class="lineno">···28</span><span·class="comment">·*···OTHER·DEALINGS·IN·THE·SOFTWARE.</span></div> | 81 | <div·class="line"><a·id="l00028"·name="l00028"></a><span·class="lineno">···28</span><span·class="comment">·*···OTHER·DEALINGS·IN·THE·SOFTWARE.</span></div> |
82 | <div·class="line"><a·id="l00029"·name="l00029"></a><span·class="lineno">···29</span><span·class="comment">·***************************************************************************/</span></div> | 82 | <div·class="line"><a·id="l00029"·name="l00029"></a><span·class="lineno">···29</span><span·class="comment">·***************************************************************************/</span></div> |
83 | <div·class="line"><a·id="l00030"·name="l00030"></a><span·class="lineno">···30</span><span·class="preprocessor">#ifdef·HAVE_CONFIG_H</span></div> | 83 | <div·class="line"><a·id="l00030"·name="l00030"></a><span·class="lineno">···30</span><span·class="preprocessor">#ifdef·HAVE_CONFIG_H</span></div> |
84 | <div·class="line"><a·id="l00031"·name="l00031"></a><span·class="lineno">···31</span><span·class="preprocessor">#include·<config.h></span></div> | 84 | <div·class="line"><a·id="l00031"·name="l00031"></a><span·class="lineno">···31</span><span·class="preprocessor">#include·<config.h></span></div> |
85 | <div·class="line"><a·id="l00032"·name="l00032"></a><span·class="lineno">···32</span><span·class="preprocessor">#include·<string.h></span></div> | ||
85 | <div·class="line"><a·id="l0003 | 86 | <div·class="line"><a·id="l00033"·name="l00033"></a><span·class="lineno">···33</span><span·class="preprocessor">#endif</span></div> |
86 | <div·class="line"><a·id="l0003 | 87 | <div·class="line"><a·id="l00034"·name="l00034"></a><span·class="lineno">···34</span>·</div> |
87 | <div·class="line"><a·id="l0003 | 88 | <div·class="line"><a·id="l00035"·name="l00035"></a><span·class="lineno">···35</span><span·class="preprocessor">#include·"loaders/SILLYPNGImageLoader.h"</span></div> |
88 | <div·class="line"><a·id="l0003 | 89 | <div·class="line"><a·id="l00036"·name="l00036"></a><span·class="lineno">···36</span>·</div> |
89 | <div·class="line"><a·id="l0003 | 90 | <div·class="line"><a·id="l00037"·name="l00037"></a><span·class="lineno">···37</span><span·class="preprocessor">#ifndef·SILLY_OPT_INLINE</span></div> |
90 | <div·class="line"><a·id="l0003 | 91 | <div·class="line"><a·id="l00038"·name="l00038"></a><span·class="lineno">···38</span><span·class="preprocessor">#define·inline</span></div> |
91 | <div·class="line"><a·id="l0003 | 92 | <div·class="line"><a·id="l00039"·name="l00039"></a><span·class="lineno">···39</span><span·class="preprocessor">#include·"loaders/SILLYPNGImageLoader.icpp"</span></div> |
92 | <div·class="line"><a·id="l000 | 93 | <div·class="line"><a·id="l00040"·name="l00040"></a><span·class="lineno">···40</span><span·class="preprocessor">#undef·inline</span></div> |
93 | <div·class="line"><a·id="l0004 | 94 | <div·class="line"><a·id="l00041"·name="l00041"></a><span·class="lineno">···41</span><span·class="preprocessor">#endif</span></div> |
94 | <div·class="line"><a·id="l0004 | 95 | <div·class="line"><a·id="l00042"·name="l00042"></a><span·class="lineno">···42</span>·</div> |
96 | <div·class="line"><a·id="l00043"·name="l00043"></a><span·class="lineno">···43</span><span·class="preprocessor">#include·"loaders/SILLYPNGImageContext.h"</span></div> | ||
95 | <div·class="line"><a·id="l0004 | 97 | <div·class="line"><a·id="l00044"·name="l00044"></a><span·class="lineno">···44</span><span·class="preprocessor">#include·<png.h></span></div> |
96 | <div·class="line"><a·id="l00043"·name="l00043"></a><span·class="lineno">···43</span>·</div> | ||
97 | <div·class="line"><a·id="l0004 | 98 | <div·class="line"><a·id="l00045"·name="l00045"></a><span·class="lineno">···45</span><span·class="comment">//·Start·section·of·namespace·SILLY</span></div> |
98 | <div·class="foldopen"·id="foldopen00045"·data-start="{"·data-end="}"> | ||
99 | <div·class="line"><a·id="l0004 | 99 | <div·class="line"><a·id="l00046"·name="l00046"></a><span·class="lineno">···46</span><span·class="keyword">namespace·</span><a·class="code·hl_namespace"·href="a00129.html">SILLY</a></div> |
100 | <div·class="line"><a·id="l00046"·name="l00046"></a><span·class="lineno">···46</span>{</div> | ||
101 | <div·class="line"><a·id="l00047"·name="l00047"></a><span·class="lineno">···47</span> | 100 | <div·class="line"><a·id="l00047"·name="l00047"></a><span·class="lineno">···47</span>{</div> |
101 | <div·class="line"><a·id="l00048"·name="l00048"></a><span·class="lineno">···48</span><span·class="keywordtype">void</span>·PNG_read_function(png_structp·png_ptr,·png_bytep·data,·png_size_t·length)</div> | ||
102 | <div·class="line"><a·id="l0004 | 102 | <div·class="line"><a·id="l00049"·name="l00049"></a><span·class="lineno">···49</span>{</div> |
103 | <div·class="line"><a·id="l00050"·name="l00050"></a><span·class="lineno">···50</span>····PNGImageContext*·png·=·<span·class="keyword">reinterpret_cast<</span>PNGImageContext*<span·class="keyword">></span>(png_get_io_ptr(png_ptr));</div> | ||
103 | <div·class="line"><a·id="l000 | 104 | <div·class="line"><a·id="l00051"·name="l00051"></a><span·class="lineno">···51</span>····<span·class="keywordtype">int</span>·readed·=·png->read(data,·length);</div> |
105 | <div·class="line"><a·id="l00052"·name="l00052"></a><span·class="lineno">···52</span>····<span·class="keywordflow">if</span>·(readed·!=·(<span·class="keywordtype">int</span>)length)</div> | ||
104 | <div·class="line"><a·id="l00050"·name="l00050"></a><span·class="lineno">···50</span>{</div> | ||
105 | <div·class="line"><a·id="l00051"·name="l00051"></a><span·class="lineno">···51</span>····<span·class="comment">//·Nothing·to·do·</span></div> | ||
106 | <div·class="line"><a·id="l00052"·name="l00052"></a><span·class="lineno">···52</span>}</div> | ||
107 | <div·class="line"><a·id="l00053"·name="l00053"></a><span·class="lineno">···53</span>·</div> | 106 | <div·class="line"><a·id="l00053"·name="l00053"></a><span·class="lineno">···53</span>····{</div> |
108 | <div·class="line"><a·id="l00054"·name="l00054"></a><span·class="lineno">···54</span> | 107 | <div·class="line"><a·id="l00054"·name="l00054"></a><span·class="lineno">···54</span>········png_error(png_ptr,·<span·class="stringliteral">"PNG_read_function·error"</span>);</div> |
109 | <div·class="line"><a·id="l00055"·name="l00055"></a><span·class="lineno">···55</span> | 108 | <div·class="line"><a·id="l00055"·name="l00055"></a><span·class="lineno">···55</span>····}</div> |
109 | <div·class="line"><a·id="l00056"·name="l00056"></a><span·class="lineno">···56</span>}</div> | ||
110 | <div·class="line"><a·id="l00056"·name="l00056"></a><span·class="lineno">···56</span>····<a·class="code·hl_class"·href="a00945.html">JPGImageContext</a>*·jpg·=·<span·class="keyword">reinterpret_cast<</span><a·class="code·hl_class"·href="a00945.html">JPGImageContext</a>*<span·class="keyword">></span>(cinfo->client_data);</div> | ||
111 | <div·class="line"><a·id="l00057"·name="l00057"></a><span·class="lineno">···57</span>····cinfo->src->next_input_byte·=·jpg->d_source-><a·class="code·hl_function"·href="a00969.html#a3ae74c9d90450a3d9aa45191e1c21c13">getDataPtr</a>();</div> | ||
112 | <div·class="line"><a·id="l00058"·name="l00058"></a><span·class="lineno">···58</span>····cinfo->src->bytes_in_buffer·=·jpg->d_source-><a·class="code·hl_function"·href="a00969.html#a319cde5b2ea76e92e922845ecfa5c615">getSize</a>();</div> | ||
113 | <div·class="line"><a·id="l0005 | 110 | <div·class="line"><a·id="l00057"·name="l00057"></a><span·class="lineno">···57</span>·</div> |
111 | <div·class="line"><a·id="l00058"·name="l00058"></a><span·class="lineno">···58</span><span·class="keywordtype">void</span>·PNG_warning_function(png_structp·png_ptr,</div> | ||
112 | <div·class="line"><a·id="l00059"·name="l00059"></a><span·class="lineno">···59</span>·················png_const_charp·error)</div> | ||
114 | <div·class="line"><a·id="l00060"·name="l00060"></a><span·class="lineno">···60</span> | 113 | <div·class="line"><a·id="l00060"·name="l00060"></a><span·class="lineno">···60</span>{</div> |
114 | <div·class="line"><a·id="l00061"·name="l00061"></a><span·class="lineno">···61</span><span·class="comment">//····printf("PNG·Warning:·%s\n",·error);</span></div> | ||
115 | <div·class="line"><a·id="l0006 | 115 | <div·class="line"><a·id="l00062"·name="l00062"></a><span·class="lineno">···62</span>}</div> |
116 | <div·class="line"><a·id="l00062"·name="l00062"></a><span·class="lineno">···62</span><span·class="keywordtype">void</span>·JPG_skip_input_data(j_decompress_ptr·cinfo,·<span·class="keywordtype">long</span>·num_bytes)</div> | ||
117 | <div·class="line"><a·id="l00063"·name="l00063"></a><span·class="lineno">···63</span> | 116 | <div·class="line"><a·id="l00063"·name="l00063"></a><span·class="lineno">···63</span>·</div> |
118 | <div·class="line"><a·id="l00064"·name="l00064"></a><span·class="lineno">···64</span> | 117 | <div·class="line"><a·id="l00064"·name="l00064"></a><span·class="lineno">···64</span><span·class="keywordtype">void</span>·PNG_error_function(png_structp·png_ptr,</div> |
118 | <div·class="line"><a·id="l00065"·name="l00065"></a><span·class="lineno">···65</span>························png_const_charp·error)</div> | ||
119 | <div·class="line"><a·id="l0006 | 119 | <div·class="line"><a·id="l00066"·name="l00066"></a><span·class="lineno">···66</span>{</div> |
120 | <div·class="line"><a·id="l00066"·name="l00066"></a><span·class="lineno">···66</span>········cinfo->src->next_input_byte·+=·(size_t)num_bytes;</div> | ||
121 | <div·class="line"><a·id="l00067"·name="l00067"></a><span·class="lineno">···67</span>···· | 120 | <div·class="line"><a·id="l00067"·name="l00067"></a><span·class="lineno">···67</span>····<span·class="comment">//··printf("PNG·Error:·%s\n",·error);</span></div> |
121 | <div·class="line"><a·id="l00068"·name="l00068"></a><span·class="lineno">···68</span>····<span·class="comment">//·copied·from·libpng's·pngerror.cpp</span></div> | ||
122 | <div·class="line"><a·id="l0006 | 122 | <div·class="line"><a·id="l00069"·name="l00069"></a><span·class="lineno">···69</span>····jmp_buf·buf;</div> |
123 | <div·class="line"><a·id="l00070"·name="l00070"></a><span·class="lineno">···70</span><span·class="preprocessor">#if·PNG_LIBPNG_VER_MAJOR·>=·1·&&·PNG_LIBPNG_VER_MINOR·>=·4</span></div> | ||
124 | <div·class="line"><a·id="l00071"·name="l00071"></a><span·class="lineno">···71</span>····memcpy(buf,·png_jmpbuf((png_ptr)),·<span·class="keyword">sizeof</span>(jmp_buf));</div> | ||
125 | <div·class="line"><a·id="l00072"·name="l00072"></a><span·class="lineno">···72</span><span·class="preprocessor">#else</span></div> | ||
126 | <div·class="line"><a·id="l00073"·name="l00073"></a><span·class="lineno">···73</span>····memcpy(buf,·png_ptr->jmpbuf,·<span·class="keyword">sizeof</span>(jmp_buf));</div> | ||
127 | <div·class="line"><a·id="l00074"·name="l00074"></a><span·class="lineno">···74</span><span·class="preprocessor">#endif</span></div> | ||
128 | <div·class="line"><a·id="l00075"·name="l00075"></a><span·class="lineno">···75</span>····longjmp(buf,·1);</div> | ||
123 | <div·class="line"><a·id="l000 | 129 | <div·class="line"><a·id="l00076"·name="l00076"></a><span·class="lineno">···76</span>}</div> |
124 | <div·class="line"><a·id="l00070"·name="l00070"></a><span·class="lineno">···70</span>·</div> | ||
125 | <div·class="line"><a·id="l00071"·name="l00071"></a><span·class="lineno">···71</span><span·class="keywordtype">void</span>·JPG_term_source(j_decompress_ptr·cinfo)····</div> | ||
126 | <div·class="line"><a·id="l00072"·name="l00072"></a><span·class="lineno">···72</span>{</div> | ||
127 | <div·class="line"><a·id="l00073"·name="l00073"></a><span·class="lineno">···73</span>····<span·class="comment">//·Nothing·to·do·</span></div> | ||
128 | <div·class="line"><a·id="l00074"·name="l00074"></a><span·class="lineno">···74</span>}</div> | ||
129 | <div·class="line"><a·id="l00075"·name="l00075"></a><span·class="lineno">···75</span>·</div> | ||
130 | <div·class="line"><a·id="l00076"·name="l00076"></a><span·class="lineno">···76</span><span·class="keywordtype">void</span>·JPG_error_exit(j_common_ptr·cinfo)</div> | ||
131 | <div·class="line"><a·id="l00077"·name="l00077"></a><span·class="lineno">···77</span> | 130 | <div·class="line"><a·id="l00077"·name="l00077"></a><span·class="lineno">···77</span>·</div> |
132 | <div·class="line"><a·id="l00078"·name="l00078"></a><span·class="lineno">···78</span>····<a·class="code·hl_class"·href="a00945.html">JPGImageContext</a>*·jpg·=·<span·class="keyword">reinterpret_cast<</span><a·class="code·hl_class"·href="a00945.html">JPGImageContext</a>*<span·class="keyword">></span>(cinfo->client_data);</div> | ||
133 | <div·class="line"><a·id="l00079"·name="l00079"></a><span·class="lineno">···79</span>····<span·class="comment">//·TODO·</span></div> | ||
134 | <div·class="line"><a·id="l000 | 131 | <div·class="line"><a·id="l00078"·name="l00078"></a><span·class="lineno">···78</span>·</div> |
132 | <div·class="line"><a·id="l00079"·name="l00079"></a><span·class="lineno">···79</span>PNGImageLoader::PNGImageLoader()</div> | ||
133 | <div·class="line"><a·id="l00080"·name="l00080"></a><span·class="lineno">···80</span>····:·ImageLoader(<span·class="stringliteral">"PNG·Image·Loader·based·on·libpng"</span>)</div> | ||
135 | <div·class="line"><a·id="l00081"·name="l00081"></a><span·class="lineno">···81</span> | 134 | <div·class="line"><a·id="l00081"·name="l00081"></a><span·class="lineno">···81</span>{</div> |
136 | <div·class="line"><a·id="l00082"·name="l00082"></a><span·class="lineno">···82</span>}</div> | 135 | <div·class="line"><a·id="l00082"·name="l00082"></a><span·class="lineno">···82</span>}</div> |
136 | <div·class="line"><a·id="l00083"·name="l00083"></a><span·class="lineno">···83</span>PNGImageLoader::~PNGImageLoader()</div> | ||
137 | <div·class="line"><a·id="l0008 | 137 | <div·class="line"><a·id="l00084"·name="l00084"></a><span·class="lineno">···84</span>{</div> |
138 | <div·class="line"><a·id="l00084"·name="l00084"></a><span·class="lineno">···84</span><span·class="keywordtype">void</span>·JPG_emit_message(j_common_ptr·cinfo,·<span·class="keywordtype">int</span>·msg_level)</div> | ||
139 | <div·class="line"><a·id="l00085"·name="l00085"></a><span·class="lineno">···85</span> | 138 | <div·class="line"><a·id="l00085"·name="l00085"></a><span·class="lineno">···85</span>}</div> |
140 | <div·class="line"><a·id="l00086"·name="l00086"></a><span·class="lineno">···86</span>· | 139 | <div·class="line"><a·id="l00086"·name="l00086"></a><span·class="lineno">···86</span>·</div> |
141 | <div·class="line"><a·id="l00087"·name="l00087"></a><span·class="lineno">···87</span> | 140 | <div·class="line"><a·id="l00087"·name="l00087"></a><span·class="lineno">···87</span>·</div> |
142 | <div·class=" | 141 | <div·class="foldopen"·id="foldopen00088"·data-start="{"·data-end="}"> |
142 | <div·class="line"><a·id="l00088"·name="l00088"></a><span·class="lineno"><a·class="line"·href="a00957.html#a1f83c2e6e4960b05c1b5bd61b0635f8c">···88</a></span><a·class="code·hl_class"·href="a00981.html">ImageContext</a>*·PNGImageLoader::loadHeader(<a·class="code·hl_enumeration"·href="a00129.html#a60883d4958a60b91661e97027a85072a">PixelFormat</a>&·formatSource,·<a·class="code·hl_class"·href="a00969.html">DataSource</a>*·data)</div> | ||
143 | <div·class="line"><a·id="l00089"·name="l00089"></a><span·class="lineno">···89</span> | 143 | <div·class="line"><a·id="l00089"·name="l00089"></a><span·class="lineno">···89</span>{</div> |
Max diff block lines reached; 13065/47330 bytes (27.60%) of diff not shown. |
Offset 1, 20 lines modified | Offset 1, 20 lines modified | ||
1 | Simple·Image·Loading·LibrarY 0.1.0 | 1 | Simple·Image·Loading·LibrarY 0.1.0 |
2 | ····*·_\x8b_\x8u_\x8i_\x8l_\x8d | 2 | ····*·_\x8b_\x8u_\x8i_\x8l_\x8d |
3 | ····*·_\x8r_\x8e_\x8p_\x8r_\x8o_\x8d_\x8u_\x8c_\x8i_\x8b_\x8l_\x8e_\x8-_\x8p_\x8a_\x8t_\x8h | 3 | ····*·_\x8r_\x8e_\x8p_\x8r_\x8o_\x8d_\x8u_\x8c_\x8i_\x8b_\x8l_\x8e_\x8-_\x8p_\x8a_\x8t_\x8h |
4 | ····*·_\x8s_\x8i_\x8l_\x8l_\x8y_\x8-_\x80_\x8._\x81_\x8._\x80 | 4 | ····*·_\x8s_\x8i_\x8l_\x8l_\x8y_\x8-_\x80_\x8._\x81_\x8._\x80 |
5 | ····*·_\x8s_\x8r_\x8c | 5 | ····*·_\x8s_\x8r_\x8c |
6 | ····*·_\x8l_\x8o_\x8a_\x8d_\x8e_\x8r_\x8s | 6 | ····*·_\x8l_\x8o_\x8a_\x8d_\x8e_\x8r_\x8s |
7 | SILLY | 7 | SILLYPNGImageLoader.cpp |
8 | 1/*********************************************************************** | 8 | 1/*********************************************************************** |
9 | 2·filename:·SILLY | 9 | 2·filename:·SILLYPNGImageLoader.cpp |
10 | 3·created:·11·Jun·2006 | 10 | 3·created:·11·Jun·2006 |
11 | 4·author:·Olivier·Delannoy | 11 | 4·author:·Olivier·Delannoy |
12 | 5 | 12 | 5 |
13 | 6·purpose:·Definition·of·the· | 13 | 6·purpose:·Definition·of·the·PNGImageLoader·methods |
14 | 7*************************************************************************/ | 14 | 7*************************************************************************/ |
15 | 8/*************************************************************************** | 15 | 8/*************************************************************************** |
16 | 9·*·Copyright·(C)·2004·-·2006·Paul·D·Turner·&·The·CEGUI·Development·Team | 16 | 9·*·Copyright·(C)·2004·-·2006·Paul·D·Turner·&·The·CEGUI·Development·Team |
17 | 10·* | 17 | 10·* |
18 | 11·*·Permission·is·hereby·granted,·free·of·charge,·to·any·person·obtaining | 18 | 11·*·Permission·is·hereby·granted,·free·of·charge,·to·any·person·obtaining |
19 | 12·*·a·copy·of·this·software·and·associated·documentation·files·(the | 19 | 12·*·a·copy·of·this·software·and·associated·documentation·files·(the |
20 | 13·*·"Software"),·to·deal·in·the·Software·without·restriction,·including | 20 | 13·*·"Software"),·to·deal·in·the·Software·without·restriction,·including |
Offset 32, 116 lines modified | Offset 32, 217 lines modified | ||
32 | 25·*·IN·NO·EVENT·SHALL·THE·AUTHORS·BE·LIABLE·FOR·ANY·CLAIM,·DAMAGES·OR | 32 | 25·*·IN·NO·EVENT·SHALL·THE·AUTHORS·BE·LIABLE·FOR·ANY·CLAIM,·DAMAGES·OR |
33 | 26·*·OTHER·LIABILITY,·WHETHER·IN·AN·ACTION·OF·CONTRACT,·TORT·OR·OTHERWISE, | 33 | 26·*·OTHER·LIABILITY,·WHETHER·IN·AN·ACTION·OF·CONTRACT,·TORT·OR·OTHERWISE, |
34 | 27·*·ARISING·FROM,·OUT·OF·OR·IN·CONNECTION·WITH·THE·SOFTWARE·OR·THE·USE·OR | 34 | 27·*·ARISING·FROM,·OUT·OF·OR·IN·CONNECTION·WITH·THE·SOFTWARE·OR·THE·USE·OR |
35 | 28·*·OTHER·DEALINGS·IN·THE·SOFTWARE. | 35 | 28·*·OTHER·DEALINGS·IN·THE·SOFTWARE. |
36 | 29·***************************************************************************/ | 36 | 29·***************************************************************************/ |
37 | 30#ifdef·HAVE_CONFIG_H | 37 | 30#ifdef·HAVE_CONFIG_H |
38 | 31#include·<config.h> | 38 | 31#include·<config.h> |
39 | 32#include·<string.h> | ||
39 | 3 | 40 | 33#endif |
40 | 3 | 41 | 34 |
41 | 3 | 42 | 35#include·"loaders/SILLYPNGImageLoader.h" |
42 | 3 | 43 | 36 |
43 | 3 | 44 | 37#ifndef·SILLY_OPT_INLINE |
44 | 3 | 45 | 38#define·inline |
46 | 39#include·"loaders/SILLYPNGImageLoader.icpp" | ||
47 | 40#undef·inline | ||
48 | 41#endif | ||
49 | 42 | ||
45 | 50 | 43#include·"loaders/SILLYPNGImageContext.h" | |
46 | 39#undef·inline | ||
47 | 40#endif | ||
48 | 41 | ||
49 | 4 | 51 | 44#include·<png.h> |
50 | 43 | ||
51 | 4 | 52 | 45//·Start·section·of·namespace·SILLY |
52 | 53 | 46namespace·_\x8S_\x8I_\x8L_\x8L_\x8Y | |
53 | 46{ | ||
54 | 47 | 54 | 47{ |
55 | 48 | ||
56 | 49void·JPG_init_source(j_decompress_ptr·cinfo) | ||
57 | 50{ | ||
58 | 51·//·Nothing·to·do | ||
59 | 52} | ||
60 | 53 | ||
61 | 54boolean·JPG_fill_input_buffer(j_decompress_ptr·cinfo) | ||
62 | 55{ | ||
63 | 56·_\x8J_\x8P_\x8G_\x8I_\x8m_\x8a_\x8g_\x8e_\x8C_\x8o_\x8n_\x8t_\x8e_\x8x_\x8t*·jpg·=·reinterpret_cast<_\x8J_\x8P_\x8G_\x8I_\x8m_\x8a_\x8g_\x8e_\x8C_\x8o_\x8n_\x8t_\x8e_\x8x_\x8t*>(cinfo- | ||
64 | >client_data); | ||
65 | 57·cinfo->src->next_input_byte·=·jpg->d_source->_\x8g_\x8e_\x8t_\x8D_\x8a_\x8t_\x8a_\x8P_\x8t_\x8r(); | ||
66 | 58·cinfo->src->bytes_in_buffer·=·jpg->d_source->_\x8g_\x8e_\x8t_\x8S_\x8i_\x8z_\x8e(); | ||
67 | 59·return·TRUE; | ||
68 | 60} | ||
69 | 61 | ||
70 | 55 | 48void·PNG_read_function(png_structp·png_ptr,·png_bytep·data,·png_size_t | |
56 | length) | ||
57 | 49{ | ||
58 | 50·PNGImageContext*·png·=·reinterpret_cast<PNGImageContext*>(png_get_io_ptr | ||
59 | (png_ptr)); | ||
60 | 51·int·readed·=·png->read(data,·length); | ||
61 | 52·if·(readed·!=·(int)length) | ||
62 | 53·{ | ||
63 | 54·png_error(png_ptr,·"PNG_read_function·error"); | ||
64 | 55·} | ||
65 | 56} | ||
66 | 57 | ||
67 | 58void·PNG_warning_function(png_structp·png_ptr, | ||
68 | 59·png_const_charp·error) | ||
69 | 60{ | ||
70 | 61//·printf("PNG·Warning:·%s\n",·error); | ||
71 | 62} | ||
71 | 63 | 72 | 63 |
72 | 64·if·(num_bytes·>·0) | ||
73 | 65·{ | ||
74 | 66·cinfo->src->next_input_byte·+=·(size_t)num_bytes; | ||
75 | 67·cinfo->src->bytes_in_buffer·-=·(size_t)num_bytes; | ||
76 | 68·} | ||
77 | 69} | ||
78 | 70 | ||
79 | 71void·JPG_term_source(j_decompress_ptr·cinfo) | ||
80 | 72{ | ||
81 | 73·//·Nothing·to·do | ||
82 | 74} | ||
83 | 75 | ||
84 | 73 | 64void·PNG_error_function(png_structp·png_ptr, | |
74 | 65·png_const_charp·error) | ||
75 | 66{ | ||
76 | 67·//·printf("PNG·Error:·%s\n",·error); | ||
77 | 68·//·copied·from·libpng's·pngerror.cpp | ||
78 | 69·jmp_buf·buf; | ||
79 | 70#if·PNG_LIBPNG_VER_MAJOR·>=·1·&&·PNG_LIBPNG_VER_MINOR·>=·4 | ||
80 | 71·memcpy(buf,·png_jmpbuf((png_ptr)),·sizeof(jmp_buf)); | ||
81 | 72#else | ||
82 | 73·memcpy(buf,·png_ptr->jmpbuf,·sizeof(jmp_buf)); | ||
83 | 74#endif | ||
84 | 75·longjmp(buf,·1); | ||
85 | 76} | ||
85 | 77 | 86 | 77 |
87 | 78 | ||
88 | 79PNGImageLoader::PNGImageLoader() | ||
89 | 80·:·ImageLoader("PNG·Image·Loader·based·on·libpng") | ||
86 | 78·_\x8J_\x8P_\x8G_\x8I_\x8m_\x8a_\x8g_\x8e_\x8C_\x8o_\x8n_\x8t_\x8e_\x8x_\x8t*·jpg·=·reinterpret_cast<_\x8J_\x8P_\x8G_\x8I_\x8m_\x8a_\x8g_\x8e_\x8C_\x8o_\x8n_\x8t_\x8e_\x8x_\x8t*>(cinfo- | ||
87 | >client_data); | ||
88 | 79·//·TODO | ||
89 | 80·longjmp(jpg->setjmp_buffer,·1); | ||
90 | 81 | 90 | 81{ |
91 | 82} | 91 | 82} |
92 | 83 | ||
93 | 84void·JPG_emit_message(j_common_ptr·cinfo,·int·msg_level) | ||
94 | 85{ | ||
95 | 8 | 92 | 83PNGImageLoader::~PNGImageLoader() |
93 | 84{ | ||
94 | 85} | ||
95 | 86 | ||
96 | 87 | 96 | 87 |
97 | 88 | 97 | _.8_.8_.I_.m_.a_.g_.e_.C_.o_.n_.t_.e_.x_.t*·PNGImageLoader::loadHeader(_.P_.i_.x_.e_.l_.F_.o_.r_.m_.a_.t&·formatSource, |
98 | _\x8D_\x8a_\x8t_\x8a_\x8S_\x8o_\x8u_\x8r_\x8c_\x8e*·data) | ||
Max diff block lines reached; 2287/11037 bytes (20.72%) of diff not shown. |
Offset 1, 15 lines modified | Offset 1, 15 lines modified | ||
1 | <!DOCTYPE·html·PUBLIC·"-//W3C//DTD·XHTML·1.0·Transitional//EN"·"https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> | 1 | <!DOCTYPE·html·PUBLIC·"-//W3C//DTD·XHTML·1.0·Transitional//EN"·"https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> |
2 | <html·xmlns="http://www.w3.org/1999/xhtml"·lang="en-US"> | 2 | <html·xmlns="http://www.w3.org/1999/xhtml"·lang="en-US"> |
3 | <head> | 3 | <head> |
4 | <meta·http-equiv="Content-Type"·content="text/xhtml;charset=UTF-8"/> | 4 | <meta·http-equiv="Content-Type"·content="text/xhtml;charset=UTF-8"/> |
5 | <meta·http-equiv="X-UA-Compatible"·content="IE=11"/> | 5 | <meta·http-equiv="X-UA-Compatible"·content="IE=11"/> |
6 | <meta·name="generator"·content="Doxygen·1.9.8"/> | 6 | <meta·name="generator"·content="Doxygen·1.9.8"/> |
7 | <meta·name="viewport"·content="width=device-width,·initial-scale=1"/> | 7 | <meta·name="viewport"·content="width=device-width,·initial-scale=1"/> |
8 | <title>Simple·Image·Loading·LibrarY:·/build/reproducible-path/silly-0.1.0/src/loaders/SILLY | 8 | <title>Simple·Image·Loading·LibrarY:·/build/reproducible-path/silly-0.1.0/src/loaders/SILLYTGAImageContext.cpp·Source·File</title> |
9 | <link·href="tabs.css"·rel="stylesheet"·type="text/css"/> | 9 | <link·href="tabs.css"·rel="stylesheet"·type="text/css"/> |
10 | <script·type="text/javascript"·src="jquery.js"></script> | 10 | <script·type="text/javascript"·src="jquery.js"></script> |
11 | <script·type="text/javascript"·src="dynsections.js"></script> | 11 | <script·type="text/javascript"·src="dynsections.js"></script> |
12 | <link·href="doxygen.css"·rel="stylesheet"·type="text/css"·/> | 12 | <link·href="doxygen.css"·rel="stylesheet"·type="text/css"·/> |
13 | </head> | 13 | </head> |
14 | <body> | 14 | <body> |
15 | <div·id="top"><!--·do·not·remove·this·div,·it·is·closed·by·doxygen!·--> | 15 | <div·id="top"><!--·do·not·remove·this·div,·it·is·closed·by·doxygen!·--> |
Offset 44, 23 lines modified | Offset 44, 23 lines modified | ||
44 | </script> | 44 | </script> |
45 | <div·id="nav-path"·class="navpath"> | 45 | <div·id="nav-path"·class="navpath"> |
46 | ··<ul> | 46 | ··<ul> |
47 | <li·class="navelem"><a·class="el"·href="dir_4fef79e7177ba769987a8da36c892c5f.html">build</a></li><li·class="navelem"><a·class="el"·href="dir_9def6061848686aab7e6212bb499d615.html">reproducible-path</a></li><li·class="navelem"><a·class="el"·href="dir_74170d5b58cefb7cb5a86fc552b183a3.html">silly-0.1.0</a></li><li·class="navelem"><a·class="el"·href="dir_7b53bc9a32849689d682eb098e891de5.html">src</a></li><li·class="navelem"><a·class="el"·href="dir_7b011f4828cd5682692dd5e7c066fc3b.html">loaders</a></li>··</ul> | 47 | <li·class="navelem"><a·class="el"·href="dir_4fef79e7177ba769987a8da36c892c5f.html">build</a></li><li·class="navelem"><a·class="el"·href="dir_9def6061848686aab7e6212bb499d615.html">reproducible-path</a></li><li·class="navelem"><a·class="el"·href="dir_74170d5b58cefb7cb5a86fc552b183a3.html">silly-0.1.0</a></li><li·class="navelem"><a·class="el"·href="dir_7b53bc9a32849689d682eb098e891de5.html">src</a></li><li·class="navelem"><a·class="el"·href="dir_7b011f4828cd5682692dd5e7c066fc3b.html">loaders</a></li>··</ul> |
48 | </div> | 48 | </div> |
49 | </div><!--·top·--> | 49 | </div><!--·top·--> |
50 | <div·class="header"> | 50 | <div·class="header"> |
51 | ··<div·class="headertitle"><div·class="title">SILLY | 51 | ··<div·class="headertitle"><div·class="title">SILLYTGAImageContext.cpp</div></div> |
52 | </div><!--header--> | 52 | </div><!--header--> |
53 | <div·class="contents"> | 53 | <div·class="contents"> |
54 | <div·class="fragment"><div·class="line"><a·id="l00001"·name="l00001"></a><span·class="lineno">····1</span><span·class="comment">/***********************************************************************</span></div> | 54 | <div·class="fragment"><div·class="line"><a·id="l00001"·name="l00001"></a><span·class="lineno">····1</span><span·class="comment">/***********************************************************************</span></div> |
55 | <div·class="line"><a·id="l00002"·name="l00002"></a><span·class="lineno">····2</span><span·class="comment">····filename:···SILLY | 55 | <div·class="line"><a·id="l00002"·name="l00002"></a><span·class="lineno">····2</span><span·class="comment">····filename:···SILLYTGAImageContext.cpp</span></div> |
56 | <div·class="line"><a·id="l00003"·name="l00003"></a><span·class="lineno">····3</span><span·class="comment">····created:····11·Jun·2006</span></div> | 56 | <div·class="line"><a·id="l00003"·name="l00003"></a><span·class="lineno">····3</span><span·class="comment">····created:····11·Jun·2006</span></div> |
57 | <div·class="line"><a·id="l00004"·name="l00004"></a><span·class="lineno">····4</span><span·class="comment">····author:·····Olivier·Delannoy</span></div> | 57 | <div·class="line"><a·id="l00004"·name="l00004"></a><span·class="lineno">····4</span><span·class="comment">····author:·····Olivier·Delannoy·</span></div> |
58 | <div·class="line"><a·id="l00005"·name="l00005"></a><span·class="lineno">····5</span><span·class="comment"></span>·</div> | 58 | <div·class="line"><a·id="l00005"·name="l00005"></a><span·class="lineno">····5</span><span·class="comment"></span>·</div> |
59 | <div·class="line"><a·id="l00006"·name="l00006"></a><span·class="lineno">····6</span><span·class="comment">····purpose:····Definition·of·the· | 59 | <div·class="line"><a·id="l00006"·name="l00006"></a><span·class="lineno">····6</span><span·class="comment">····purpose:····Definition·of·the·TGAImageContext·methods··</span></div> |
60 | <div·class="line"><a·id="l00007"·name="l00007"></a><span·class="lineno">····7</span><span·class="comment">*************************************************************************/</span></div> | 60 | <div·class="line"><a·id="l00007"·name="l00007"></a><span·class="lineno">····7</span><span·class="comment">*************************************************************************/</span></div> |
61 | <div·class="line"><a·id="l00008"·name="l00008"></a><span·class="lineno">····8</span><span·class="comment">/***************************************************************************</span></div> | 61 | <div·class="line"><a·id="l00008"·name="l00008"></a><span·class="lineno">····8</span><span·class="comment">/***************************************************************************</span></div> |
62 | <div·class="line"><a·id="l00009"·name="l00009"></a><span·class="lineno">····9</span><span·class="comment">·*···Copyright·(C)·2004·-·2006·Paul·D·Turner·&·The·CEGUI·Development·Team</span></div> | 62 | <div·class="line"><a·id="l00009"·name="l00009"></a><span·class="lineno">····9</span><span·class="comment">·*···Copyright·(C)·2004·-·2006·Paul·D·Turner·&·The·CEGUI·Development·Team</span></div> |
63 | <div·class="line"><a·id="l00010"·name="l00010"></a><span·class="lineno">···10</span><span·class="comment">·*</span></div> | 63 | <div·class="line"><a·id="l00010"·name="l00010"></a><span·class="lineno">···10</span><span·class="comment">·*</span></div> |
64 | <div·class="line"><a·id="l00011"·name="l00011"></a><span·class="lineno">···11</span><span·class="comment">·*···Permission·is·hereby·granted,·free·of·charge,·to·any·person·obtaining</span></div> | 64 | <div·class="line"><a·id="l00011"·name="l00011"></a><span·class="lineno">···11</span><span·class="comment">·*···Permission·is·hereby·granted,·free·of·charge,·to·any·person·obtaining</span></div> |
65 | <div·class="line"><a·id="l00012"·name="l00012"></a><span·class="lineno">···12</span><span·class="comment">·*···a·copy·of·this·software·and·associated·documentation·files·(the</span></div> | 65 | <div·class="line"><a·id="l00012"·name="l00012"></a><span·class="lineno">···12</span><span·class="comment">·*···a·copy·of·this·software·and·associated·documentation·files·(the</span></div> |
66 | <div·class="line"><a·id="l00013"·name="l00013"></a><span·class="lineno">···13</span><span·class="comment">·*···"Software"),·to·deal·in·the·Software·without·restriction,·including</span></div> | 66 | <div·class="line"><a·id="l00013"·name="l00013"></a><span·class="lineno">···13</span><span·class="comment">·*···"Software"),·to·deal·in·the·Software·without·restriction,·including</span></div> |
Offset 78, 202 lines modified | Offset 78, 33 lines modified | ||
78 | <div·class="line"><a·id="l00025"·name="l00025"></a><span·class="lineno">···25</span><span·class="comment">·*···IN·NO·EVENT·SHALL·THE·AUTHORS·BE·LIABLE·FOR·ANY·CLAIM,·DAMAGES·OR</span></div> | 78 | <div·class="line"><a·id="l00025"·name="l00025"></a><span·class="lineno">···25</span><span·class="comment">·*···IN·NO·EVENT·SHALL·THE·AUTHORS·BE·LIABLE·FOR·ANY·CLAIM,·DAMAGES·OR</span></div> |
79 | <div·class="line"><a·id="l00026"·name="l00026"></a><span·class="lineno">···26</span><span·class="comment">·*···OTHER·LIABILITY,·WHETHER·IN·AN·ACTION·OF·CONTRACT,·TORT·OR·OTHERWISE,</span></div> | 79 | <div·class="line"><a·id="l00026"·name="l00026"></a><span·class="lineno">···26</span><span·class="comment">·*···OTHER·LIABILITY,·WHETHER·IN·AN·ACTION·OF·CONTRACT,·TORT·OR·OTHERWISE,</span></div> |
80 | <div·class="line"><a·id="l00027"·name="l00027"></a><span·class="lineno">···27</span><span·class="comment">·*···ARISING·FROM,·OUT·OF·OR·IN·CONNECTION·WITH·THE·SOFTWARE·OR·THE·USE·OR</span></div> | 80 | <div·class="line"><a·id="l00027"·name="l00027"></a><span·class="lineno">···27</span><span·class="comment">·*···ARISING·FROM,·OUT·OF·OR·IN·CONNECTION·WITH·THE·SOFTWARE·OR·THE·USE·OR</span></div> |
81 | <div·class="line"><a·id="l00028"·name="l00028"></a><span·class="lineno">···28</span><span·class="comment">·*···OTHER·DEALINGS·IN·THE·SOFTWARE.</span></div> | 81 | <div·class="line"><a·id="l00028"·name="l00028"></a><span·class="lineno">···28</span><span·class="comment">·*···OTHER·DEALINGS·IN·THE·SOFTWARE.</span></div> |
82 | <div·class="line"><a·id="l00029"·name="l00029"></a><span·class="lineno">···29</span><span·class="comment">·***************************************************************************/</span></div> | 82 | <div·class="line"><a·id="l00029"·name="l00029"></a><span·class="lineno">···29</span><span·class="comment">·***************************************************************************/</span></div> |
83 | <div·class="line"><a·id="l00030"·name="l00030"></a><span·class="lineno">···30</span><span·class="preprocessor">#ifdef·HAVE_CONFIG_H</span></div> | 83 | <div·class="line"><a·id="l00030"·name="l00030"></a><span·class="lineno">···30</span><span·class="preprocessor">#ifdef·HAVE_CONFIG_H</span></div> |
84 | <div·class="line"><a·id="l00031"·name="l00031"></a><span·class="lineno">···31</span><span·class="preprocessor">#include·<config.h></span></div> | 84 | <div·class="line"><a·id="l00031"·name="l00031"></a><span·class="lineno">···31</span><span·class="preprocessor">#include·<config.h></span></div> |
85 | <div·class="line"><a·id="l00032"·name="l00032"></a><span·class="lineno">···32</span><span·class="preprocessor">#include·<string.h></span></div> | ||
86 | <div·class="line"><a·id="l0003 | 85 | <div·class="line"><a·id="l00032"·name="l00032"></a><span·class="lineno">···32</span><span·class="preprocessor">#endif</span></div> |
87 | <div·class="line"><a·id="l0003 | 86 | <div·class="line"><a·id="l00033"·name="l00033"></a><span·class="lineno">···33</span>·</div> |
88 | <div·class="line"><a·id="l0003 | 87 | <div·class="line"><a·id="l00034"·name="l00034"></a><span·class="lineno">···34</span><span·class="preprocessor">#include·"loaders/SILLYTGAImageContext.h"</span></div> |
89 | <div·class="line"><a·id="l0003 | 88 | <div·class="line"><a·id="l00035"·name="l00035"></a><span·class="lineno">···35</span>·</div> |
90 | <div·class="line"><a·id="l0003 | 89 | <div·class="line"><a·id="l00036"·name="l00036"></a><span·class="lineno">···36</span><span·class="preprocessor">#ifndef·SILLY_OPT_INLINE</span></div> |
91 | <div·class="line"><a·id="l0003 | 90 | <div·class="line"><a·id="l00037"·name="l00037"></a><span·class="lineno">···37</span><span·class="preprocessor">#define·inline·</span></div> |
92 | <div·class="line"><a·id="l0003 | 91 | <div·class="line"><a·id="l00038"·name="l00038"></a><span·class="lineno">···38</span><span·class="preprocessor">#include·"loaders/SILLYTGAImageContext.icpp"</span></div> |
93 | <div·class="line"><a·id="l000 | 92 | <div·class="line"><a·id="l00039"·name="l00039"></a><span·class="lineno">···39</span><span·class="preprocessor">#undef·inline</span></div> |
94 | <div·class="line"><a·id="l0004 | 93 | <div·class="line"><a·id="l00040"·name="l00040"></a><span·class="lineno">···40</span><span·class="preprocessor">#endif·</span></div> |
95 | <div·class="line"><a·id="l00042"·name="l00042"></a><span·class="lineno">···42</span>·</div> | ||
96 | <div·class="line"><a·id="l00043"·name="l00043"></a><span·class="lineno">···43</span><span·class="preprocessor">#include·"loaders/SILLYPNGImageContext.h"</span></div> | ||
97 | <div·class="line"><a·id="l0004 | 94 | <div·class="line"><a·id="l00041"·name="l00041"></a><span·class="lineno">···41</span><span·class="preprocessor">#include·<cstring></span></div> |
95 | <div·class="line"><a·id="l00042"·name="l00042"></a><span·class="lineno">···42</span><span·class="preprocessor">#include·<cstdio></span></div> | ||
98 | <div·class="line"><a·id="l0004 | 96 | <div·class="line"><a·id="l00043"·name="l00043"></a><span·class="lineno">···43</span><span·class="comment">//·Start·section·of·namespace·SILLY</span></div> |
99 | <div·class="line"><a·id="l0004 | 97 | <div·class="line"><a·id="l00044"·name="l00044"></a><span·class="lineno">···44</span><span·class="keyword">namespace·</span><a·class="code·hl_namespace"·href="a00129.html">SILLY</a></div> |
98 | <div·class="line"><a·id="l00045"·name="l00045"></a><span·class="lineno">···45</span>{</div> | ||
99 | <div·class="line"><a·id="l00046"·name="l00046"></a><span·class="lineno">···46</span>·</div> | ||
100 | <div·class="line"><a·id="l00047"·name="l00047"></a><span·class="lineno">···47</span> | 100 | <div·class="line"><a·id="l00047"·name="l00047"></a><span·class="lineno">···47</span>·</div> |
101 | <div·class="line"><a·id="l00048"·name="l00048"></a><span·class="lineno">···48</span><span·class="keywordtype">void</span>·PNG_read_function(png_structp·png_ptr,·png_bytep·data,·png_size_t·length)</div> | ||
102 | <div·class="line"><a·id="l00049"·name="l00049"></a><span·class="lineno">···49</span>{</div> | ||
103 | <div·class="line"><a·id="l00050"·name="l00050"></a><span·class="lineno">···50</span>····PNGImageContext*·png·=·<span·class="keyword">reinterpret_cast<</span>PNGImageContext*<span·class="keyword">></span>(png_get_io_ptr(png_ptr));</div> | ||
104 | <div·class="line"><a·id="l00051"·name="l00051"></a><span·class="lineno">···51</span>····<span·class="keywordtype">int</span>·readed·=·png->read(data,·length);</div> | ||
105 | <div·class="line"><a·id="l00052"·name="l00052"></a><span·class="lineno">···52</span>····<span·class="keywordflow">if</span>·(readed·!=·(<span·class="keywordtype">int</span>)length)</div> | ||
106 | <div·class="line"><a·id="l00053"·name="l00053"></a><span·class="lineno">···53</span>····{</div> | ||
107 | <div·class="line"><a·id="l00054"·name="l00054"></a><span·class="lineno">···54</span>········png_error(png_ptr,·<span·class="stringliteral">"PNG_read_function·error"</span>);</div> | ||
108 | <div·class="line"><a·id="l00055"·name="l00055"></a><span·class="lineno">···55</span>····}</div> | ||
109 | <div·class="line"><a·id="l00056"·name="l00056"></a><span·class="lineno">···56</span>}</div> | ||
110 | <div·class="line"><a·id="l00057"·name="l00057"></a><span·class="lineno">···57</span>·</div> | ||
111 | <div·class="line"><a·id="l00058"·name="l00058"></a><span·class="lineno">···58</span><span·class="keywordtype">void</span>·PNG_warning_function(png_structp·png_ptr,</div> | ||
112 | <div·class="line"><a·id="l00059"·name="l00059"></a><span·class="lineno">···59</span>·················png_const_charp·error)</div> | ||
113 | <div·class="line"><a·id="l00060"·name="l00060"></a><span·class="lineno">···60</span>{</div> | ||
114 | <div·class="line"><a·id="l00061"·name="l00061"></a><span·class="lineno">···61</span><span·class="comment">//····printf("PNG·Warning:·%s\n",·error);</span></div> | ||
115 | <div·class="line"><a·id="l00062"·name="l00062"></a><span·class="lineno">···62</span>}</div> | ||
116 | <div·class="line"><a·id="l00063"·name="l00063"></a><span·class="lineno">···63</span>·</div> | ||
117 | <div·class="line"><a·id="l00064"·name="l00064"></a><span·class="lineno">···64</span><span·class="keywordtype">void</span>·PNG_error_function(png_structp·png_ptr,</div> | ||
118 | <div·class="line"><a·id="l00065"·name="l00065"></a><span·class="lineno">···65</span>························png_const_charp·error)</div> | ||
119 | <div·class="line"><a·id="l00066"·name="l00066"></a><span·class="lineno">···66</span>{</div> | ||
120 | <div·class="line"><a·id="l00067"·name="l00067"></a><span·class="lineno">···67</span>····<span·class="comment">//··printf("PNG·Error:·%s\n",·error);</span></div> | ||
121 | <div·class="line"><a·id="l00068"·name="l00068"></a><span·class="lineno">···68</span>····<span·class="comment">//·copied·from·libpng's·pngerror.cpp</span></div> | ||
122 | <div·class="line"><a·id="l00069"·name="l00069"></a><span·class="lineno">···69</span>····jmp_buf·buf;</div> | ||
123 | <div·class="line"><a·id="l00070"·name="l00070"></a><span·class="lineno">···70</span><span·class="preprocessor">#if·PNG_LIBPNG_VER_MAJOR·>=·1·&&·PNG_LIBPNG_VER_MINOR·>=·4</span></div> | ||
124 | <div·class="line"><a·id="l00071"·name="l00071"></a><span·class="lineno">···71</span>····memcpy(buf,·png_jmpbuf((png_ptr)),·<span·class="keyword">sizeof</span>(jmp_buf));</div> | ||
125 | <div·class="line"><a·id="l00072"·name="l00072"></a><span·class="lineno">···72</span><span·class="preprocessor">#else</span></div> | ||
126 | <div·class="line"><a·id="l00073"·name="l00073"></a><span·class="lineno">···73</span>····memcpy(buf,·png_ptr->jmpbuf,·<span·class="keyword">sizeof</span>(jmp_buf));</div> | ||
127 | <div·class="line"><a·id="l00074"·name="l00074"></a><span·class="lineno">···74</span><span·class="preprocessor">#endif</span></div> | ||
128 | <div·class="line"><a·id="l00075"·name="l00075"></a><span·class="lineno">···75</span>····longjmp(buf,·1);</div> | ||
129 | <div·class="line"><a·id="l00076"·name="l00076"></a><span·class="lineno">···76</span>}</div> | ||
130 | <div·class="line"><a·id="l00077"·name="l00077"></a><span·class="lineno">···77</span>·</div> | ||
131 | <div·class="line"><a·id="l000 | 101 | <div·class="line"><a·id="l00048"·name="l00048"></a><span·class="lineno">···48</span>·</div> |
132 | <div·class="line"><a·id="l00079"·name="l00079"></a><span·class="lineno">···79</span>PNGImageLoader::PNGImageLoader()</div> | ||
133 | <div·class="line"><a·id="l00080"·name="l00080"></a><span·class="lineno">···80</span>····:·ImageLoader(<span·class="stringliteral">"PNG·Image·Loader·based·on·libpng"</span>)</div> | ||
134 | <div·class="line"><a·id="l00081"·name="l00081"></a><span·class="lineno">···81</span>{</div> | ||
135 | <div·class="line"><a·id="l00082"·name="l00082"></a><span·class="lineno">···82</span>}</div> | ||
136 | <div·class="line"><a·id="l00083"·name="l00083"></a><span·class="lineno">···83</span>PNGImageLoader::~PNGImageLoader()</div> | ||
137 | <div·class="line"><a·id="l00084"·name="l00084"></a><span·class="lineno">···84</span>{</div> | ||
138 | <div·class="line"><a·id="l00085"·name="l00085"></a><span·class="lineno">···85</span>}</div> | ||
139 | <div·class="line"><a·id="l00086"·name="l00086"></a><span·class="lineno">···86</span>·</div> | ||
140 | <div·class="line"><a·id="l00087"·name="l00087"></a><span·class="lineno">···87</span>·</div> | ||
141 | <div·class="foldopen"·id="foldopen00088"·data-start="{"·data-end="}"> | ||
142 | <div·class="line"><a·id="l00088"·name="l00088"></a><span·class="lineno"><a·class="line"·href="a00957.html#a1f83c2e6e4960b05c1b5bd61b0635f8c">···88</a></span><a·class="code·hl_class"·href="a00981.html">ImageContext</a>*·PNGImageLoader::loadHeader(<a·class="code·hl_enumeration"·href="a00129.html#a60883d4958a60b91661e97027a85072a">PixelFormat</a>&·formatSource,·<a·class="code·hl_class"·href="a00969.html">DataSource</a>*·data)</div> | ||
143 | <div·class="line"><a·id="l00089"·name="l00089"></a><span·class="lineno">···89</span>{</div> | ||
144 | <div·class="line"><a·id="l00090"·name="l00090"></a><span·class="lineno">···90</span>····<a·class="code·hl_class"·href="a00953.html">PNGImageContext</a>*·png·=·<span·class="keyword">new</span>·<a·class="code·hl_class"·href="a00953.html">PNGImageContext</a>(data);</div> | ||
145 | <div·class="line"><a·id="l00091"·name="l00091"></a><span·class="lineno">···91</span>····<span·class="keywordflow">if</span>·(!png)</div> | ||
146 | <div·class="line"><a·id="l00092"·name="l00092"></a><span·class="lineno">···92</span>····{</div> | ||
147 | <div·class="line"><a·id="l00093"·name="l00093"></a><span·class="lineno">···93</span>········<span·class="keywordflow">return</span>·0;</div> | ||
148 | <div·class="line"><a·id="l00094"·name="l00094"></a><span·class="lineno">···94</span>·</div> | ||
149 | <div·class="line"><a·id="l00095"·name="l00095"></a><span·class="lineno">···95</span>····}</div> | ||
150 | <div·class="line"><a·id="l00096"·name="l00096"></a><span·class="lineno">···96</span>····<span·class="comment">//·Prepare·png·loading</span></div> | ||
151 | <div·class="line"><a·id="l00097"·name="l00097"></a><span·class="lineno">···97</span>····png->d_png_ptr·=·png_create_read_struct(PNG_LIBPNG_VER_STRING,·0,·0,·0);</div> | ||
152 | <div·class="line"><a·id="l00098"·name="l00098"></a><span·class="lineno">···98</span>····<span·class="keywordflow">if</span>·(png->d_png_ptr·==·0)</div> | ||
153 | <div·class="line"><a·id="l00099"·name="l00099"></a><span·class="lineno">···99</span>····{</div> | ||
154 | <div·class="line"><a·id="l00100"·name="l00100"></a><span·class="lineno">··100</span>········<span·class="keyword">delete</span>·png;</div> | ||
155 | <div·class="line"><a·id="l00101"·name="l00101"></a><span·class="lineno">··101</span>········<span·class="keywordflow">return</span>·0;</div> | ||
156 | <div·class="line"><a·id="l00102"·name="l00102"></a><span·class="lineno">··102</span>····}</div> | ||
157 | <div·class="line"><a·id="l00103"·name="l00103"></a><span·class="lineno">··103</span>····png->d_info_ptr·=·png_create_info_struct(png->d_png_ptr);</div> | ||
158 | <div·class="line"><a·id="l00104"·name="l00104"></a><span·class="lineno">··104</span>····<span·class="keywordflow">if</span>·(png->d_info_ptr·==·0)</div> | ||
159 | <div·class="line"><a·id="l00105"·name="l00105"></a><span·class="lineno">··105</span>····{</div> | ||
160 | <div·class="line"><a·id="l00106"·name="l00106"></a><span·class="lineno">··106</span>········<span·class="keyword">delete</span>·png;</div> | ||
161 | <div·class="line"><a·id="l00107"·name="l00107"></a><span·class="lineno">··107</span>········<span·class="keywordflow">return</span>·0;</div> | ||
Max diff block lines reached; 271/36782 bytes (0.74%) of diff not shown. |
Offset 1, 20 lines modified | Offset 1, 20 lines modified | ||
1 | Simple·Image·Loading·LibrarY 0.1.0 | 1 | Simple·Image·Loading·LibrarY 0.1.0 |
2 | ····*·_\x8b_\x8u_\x8i_\x8l_\x8d | 2 | ····*·_\x8b_\x8u_\x8i_\x8l_\x8d |
3 | ····*·_\x8r_\x8e_\x8p_\x8r_\x8o_\x8d_\x8u_\x8c_\x8i_\x8b_\x8l_\x8e_\x8-_\x8p_\x8a_\x8t_\x8h | 3 | ····*·_\x8r_\x8e_\x8p_\x8r_\x8o_\x8d_\x8u_\x8c_\x8i_\x8b_\x8l_\x8e_\x8-_\x8p_\x8a_\x8t_\x8h |
4 | ····*·_\x8s_\x8i_\x8l_\x8l_\x8y_\x8-_\x80_\x8._\x81_\x8._\x80 | 4 | ····*·_\x8s_\x8i_\x8l_\x8l_\x8y_\x8-_\x80_\x8._\x81_\x8._\x80 |
5 | ····*·_\x8s_\x8r_\x8c | 5 | ····*·_\x8s_\x8r_\x8c |
6 | ····*·_\x8l_\x8o_\x8a_\x8d_\x8e_\x8r_\x8s | 6 | ····*·_\x8l_\x8o_\x8a_\x8d_\x8e_\x8r_\x8s |
7 | SILLY | 7 | SILLYTGAImageContext.cpp |
8 | 1/*********************************************************************** | 8 | 1/*********************************************************************** |
9 | 2·filename:·SILLY | 9 | 2·filename:·SILLYTGAImageContext.cpp |
10 | 3·created:·11·Jun·2006 | 10 | 3·created:·11·Jun·2006 |
11 | 4·author:·Olivier·Delannoy | 11 | 4·author:·Olivier·Delannoy |
12 | 5 | 12 | 5 |
13 | 6·purpose:·Definition·of·the· | 13 | 6·purpose:·Definition·of·the·TGAImageContext·methods |
14 | 7*************************************************************************/ | 14 | 7*************************************************************************/ |
15 | 8/*************************************************************************** | 15 | 8/*************************************************************************** |
16 | 9·*·Copyright·(C)·2004·-·2006·Paul·D·Turner·&·The·CEGUI·Development·Team | 16 | 9·*·Copyright·(C)·2004·-·2006·Paul·D·Turner·&·The·CEGUI·Development·Team |
17 | 10·* | 17 | 10·* |
18 | 11·*·Permission·is·hereby·granted,·free·of·charge,·to·any·person·obtaining | 18 | 11·*·Permission·is·hereby·granted,·free·of·charge,·to·any·person·obtaining |
19 | 12·*·a·copy·of·this·software·and·associated·documentation·files·(the | 19 | 12·*·a·copy·of·this·software·and·associated·documentation·files·(the |
20 | 13·*·"Software"),·to·deal·in·the·Software·without·restriction,·including | 20 | 13·*·"Software"),·to·deal·in·the·Software·without·restriction,·including |
Offset 32, 217 lines modified | Offset 32, 30 lines modified | ||
32 | 25·*·IN·NO·EVENT·SHALL·THE·AUTHORS·BE·LIABLE·FOR·ANY·CLAIM,·DAMAGES·OR | 32 | 25·*·IN·NO·EVENT·SHALL·THE·AUTHORS·BE·LIABLE·FOR·ANY·CLAIM,·DAMAGES·OR |
33 | 26·*·OTHER·LIABILITY,·WHETHER·IN·AN·ACTION·OF·CONTRACT,·TORT·OR·OTHERWISE, | 33 | 26·*·OTHER·LIABILITY,·WHETHER·IN·AN·ACTION·OF·CONTRACT,·TORT·OR·OTHERWISE, |
34 | 27·*·ARISING·FROM,·OUT·OF·OR·IN·CONNECTION·WITH·THE·SOFTWARE·OR·THE·USE·OR | 34 | 27·*·ARISING·FROM,·OUT·OF·OR·IN·CONNECTION·WITH·THE·SOFTWARE·OR·THE·USE·OR |
35 | 28·*·OTHER·DEALINGS·IN·THE·SOFTWARE. | 35 | 28·*·OTHER·DEALINGS·IN·THE·SOFTWARE. |
36 | 29·***************************************************************************/ | 36 | 29·***************************************************************************/ |
37 | 30#ifdef·HAVE_CONFIG_H | 37 | 30#ifdef·HAVE_CONFIG_H |
38 | 31#include·<config.h> | 38 | 31#include·<config.h> |
39 | 32#include·<string.h> | ||
40 | 3 | 39 | 32#endif |
41 | 3 | 40 | 33 |
42 | 3 | 41 | 34#include·"loaders/SILLYTGAImageContext.h" |
43 | 3 | 42 | 35 |
44 | 3 | 43 | 36#ifndef·SILLY_OPT_INLINE |
45 | 3 | 44 | 37#define·inline |
46 | 39#include·"loaders/SILLYPNGImageLoader.icpp" | ||
47 | 40#undef·inline | ||
48 | 41#endif | ||
49 | 42 | ||
50 | 45 | 38#include·"loaders/SILLYTGAImageContext.icpp" | |
51 | 46 | 39#undef·inline | |
47 | 40#endif | ||
48 | 41#include·<cstring> | ||
49 | 42#include·<cstdio> | ||
52 | 4 | 50 | 43//·Start·section·of·namespace·SILLY |
53 | 4 | 51 | 44namespace·_\x8S_\x8I_\x8L_\x8L_\x8Y |
52 | 45{ | ||
53 | 46 | ||
54 | 47 | 54 | 47 |
55 | 48 | ||
55 | 48void·PNG_read_function(png_structp·png_ptr,·png_bytep·data,·png_size_t | ||
56 | length) | ||
57 | 49{ | ||
58 | 50·PNGImageContext*·png·=·reinterpret_cast<PNGImageContext*>(png_get_io_ptr | ||
59 | (png_ptr)); | ||
60 | 51·int·readed·=·png->read(data,·length); | ||
61 | 52·if·(readed·!=·(int)length) | ||
62 | 53·{ | ||
63 | 54·png_error(png_ptr,·"PNG_read_function·error"); | ||
64 | 55·} | ||
65 | 56} | ||
66 | 57 | ||
67 | 58void·PNG_warning_function(png_structp·png_ptr, | ||
68 | 59·png_const_charp·error) | ||
69 | 60{ | ||
70 | 61//·printf("PNG·Warning:·%s\n",·error); | ||
71 | 62} | ||
72 | 63 | ||
73 | 64void·PNG_error_function(png_structp·png_ptr, | ||
74 | 65·png_const_charp·error) | ||
75 | 66{ | ||
76 | 67·//·printf("PNG·Error:·%s\n",·error); | ||
77 | 68·//·copied·from·libpng's·pngerror.cpp | ||
78 | 69·jmp_buf·buf; | ||
79 | 70#if·PNG_LIBPNG_VER_MAJOR·>=·1·&&·PNG_LIBPNG_VER_MINOR·>=·4 | ||
80 | 71·memcpy(buf,·png_jmpbuf((png_ptr)),·sizeof(jmp_buf)); | ||
81 | 72#else | ||
82 | 73·memcpy(buf,·png_ptr->jmpbuf,·sizeof(jmp_buf)); | ||
83 | 74#endif | ||
84 | 75·longjmp(buf,·1); | ||
85 | 76} | ||
86 | 77 | ||
87 | 78 | ||
88 | 79PNGImageLoader::PNGImageLoader() | ||
89 | 80·:·ImageLoader("PNG·Image·Loader·based·on·libpng") | ||
90 | 81{ | ||
91 | 82} | ||
92 | 83PNGImageLoader::~PNGImageLoader() | ||
93 | 84{ | ||
94 | 85} | ||
95 | 86 | ||
96 | 87 | ||
97 | _\x88_\x88_\x8I_\x8m_\x8a_\x8g_\x8e_\x8C_\x8o_\x8n_\x8t_\x8e_\x8x_\x8t*·PNGImageLoader::loadHeader(_\x8P_\x8i_\x8x_\x8e_\x8l_\x8F_\x8o_\x8r_\x8m_\x8a_\x8t&·formatSource, | ||
98 | _\x8D_\x8a_\x8t_\x8a_\x8S_\x8o_\x8u_\x8r_\x8c_\x8e*·data) | ||
99 | 89{ | ||
100 | 90·_\x8P_\x8N_\x8G_\x8I_\x8m_\x8a_\x8g_\x8e_\x8C_\x8o_\x8n_\x8t_\x8e_\x8x_\x8t*·png·=·new·_\x8P_\x8N_\x8G_\x8I_\x8m_\x8a_\x8g_\x8e_\x8C_\x8o_\x8n_\x8t_\x8e_\x8x_\x8t(data); | ||
101 | 91·if·(!png) | ||
102 | 92·{ | ||
103 | 93·return·0; | ||
104 | 94 | ||
105 | 95·} | ||
106 | 96·//·Prepare·png·loading | ||
107 | 97·png->d_png_ptr·=·png_create_read_struct(PNG_LIBPNG_VER_STRING,·0,·0,·0); | ||
108 | 98·if·(png->d_png_ptr·==·0) | ||
109 | 99·{ | ||
110 | 100·delete·png; | ||
111 | 101·return·0; | ||
112 | 102·} | ||
113 | 103·png->d_info_ptr·=·png_create_info_struct(png->d_png_ptr); | ||
114 | 104·if·(png->d_info_ptr·==·0) | ||
115 | 105·{ | ||
116 | 106·delete·png; | ||
117 | 107·return·0; | ||
118 | 108·} | ||
119 | 109·if·(setjmp(png_jmpbuf(png->d_png_ptr))) | ||
120 | 110·{ | ||
121 | 111·delete·png; | ||
122 | 112·return·0; | ||
123 | 113·} | ||
124 | 114·png_set_error_fn(png->d_png_ptr,·0,·PNG_error_function, | ||
125 | PNG_warning_function); | ||
126 | 115·png_set_read_fn(png->d_png_ptr,·png,·PNG_read_function); | ||
127 | 116·//png_set_sig_bytes(png->d_png_ptr,·8); | ||
128 | 117 | ||
129 | 118 | ||
130 | 119 | ||
131 | 120·//·Read·header·Check·whether·PNG·can·depaletize·transparently·or·not | ||
Max diff block lines reached; 1761/8547 bytes (20.60%) of diff not shown. |
Offset 1, 15 lines modified | Offset 1, 15 lines modified | ||
1 | <!DOCTYPE·html·PUBLIC·"-//W3C//DTD·XHTML·1.0·Transitional//EN"·"https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> | 1 | <!DOCTYPE·html·PUBLIC·"-//W3C//DTD·XHTML·1.0·Transitional//EN"·"https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> |
2 | <html·xmlns="http://www.w3.org/1999/xhtml"·lang="en-US"> | 2 | <html·xmlns="http://www.w3.org/1999/xhtml"·lang="en-US"> |
3 | <head> | 3 | <head> |
4 | <meta·http-equiv="Content-Type"·content="text/xhtml;charset=UTF-8"/> | 4 | <meta·http-equiv="Content-Type"·content="text/xhtml;charset=UTF-8"/> |
5 | <meta·http-equiv="X-UA-Compatible"·content="IE=11"/> | 5 | <meta·http-equiv="X-UA-Compatible"·content="IE=11"/> |
6 | <meta·name="generator"·content="Doxygen·1.9.8"/> | 6 | <meta·name="generator"·content="Doxygen·1.9.8"/> |
7 | <meta·name="viewport"·content="width=device-width,·initial-scale=1"/> | 7 | <meta·name="viewport"·content="width=device-width,·initial-scale=1"/> |
8 | <title>Simple·Image·Loading·LibrarY:·/build/reproducible-path/silly-0.1.0/src/SILLY | 8 | <title>Simple·Image·Loading·LibrarY:·/build/reproducible-path/silly-0.1.0/src/loaders/SILLYTGAImageLoader.cpp·Source·File</title> |
9 | <link·href="tabs.css"·rel="stylesheet"·type="text/css"/> | 9 | <link·href="tabs.css"·rel="stylesheet"·type="text/css"/> |
10 | <script·type="text/javascript"·src="jquery.js"></script> | 10 | <script·type="text/javascript"·src="jquery.js"></script> |
11 | <script·type="text/javascript"·src="dynsections.js"></script> | 11 | <script·type="text/javascript"·src="dynsections.js"></script> |
12 | <link·href="doxygen.css"·rel="stylesheet"·type="text/css"·/> | 12 | <link·href="doxygen.css"·rel="stylesheet"·type="text/css"·/> |
13 | </head> | 13 | </head> |
14 | <body> | 14 | <body> |
15 | <div·id="top"><!--·do·not·remove·this·div,·it·is·closed·by·doxygen!·--> | 15 | <div·id="top"><!--·do·not·remove·this·div,·it·is·closed·by·doxygen!·--> |
Offset 40, 27 lines modified | Offset 40, 27 lines modified | ||
40 | <script·type="text/javascript"> | 40 | <script·type="text/javascript"> |
41 | /*·@license·magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt·MIT·*/ | 41 | /*·@license·magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt·MIT·*/ |
42 | $(document).ready(function()·{·init_codefold(0);·}); | 42 | $(document).ready(function()·{·init_codefold(0);·}); |
43 | /*·@license-end·*/ | 43 | /*·@license-end·*/ |
44 | </script> | 44 | </script> |
45 | <div·id="nav-path"·class="navpath"> | 45 | <div·id="nav-path"·class="navpath"> |
46 | ··<ul> | 46 | ··<ul> |
47 | <li·class="navelem"><a·class="el"·href="dir_4fef79e7177ba769987a8da36c892c5f.html">build</a></li><li·class="navelem"><a·class="el"·href="dir_9def6061848686aab7e6212bb499d615.html">reproducible-path</a></li><li·class="navelem"><a·class="el"·href="dir_74170d5b58cefb7cb5a86fc552b183a3.html">silly-0.1.0</a></li><li·class="navelem"><a·class="el"·href="dir_7b53bc9a32849689d682eb098e891de5.html">src</a></li>··</ul> | 47 | <li·class="navelem"><a·class="el"·href="dir_4fef79e7177ba769987a8da36c892c5f.html">build</a></li><li·class="navelem"><a·class="el"·href="dir_9def6061848686aab7e6212bb499d615.html">reproducible-path</a></li><li·class="navelem"><a·class="el"·href="dir_74170d5b58cefb7cb5a86fc552b183a3.html">silly-0.1.0</a></li><li·class="navelem"><a·class="el"·href="dir_7b53bc9a32849689d682eb098e891de5.html">src</a></li><li·class="navelem"><a·class="el"·href="dir_7b011f4828cd5682692dd5e7c066fc3b.html">loaders</a></li>··</ul> |
48 | </div> | 48 | </div> |
49 | </div><!--·top·--> | 49 | </div><!--·top·--> |
50 | <div·class="header"> | 50 | <div·class="header"> |
51 | ··<div·class="headertitle"><div·class="title">SILLY | 51 | ··<div·class="headertitle"><div·class="title">SILLYTGAImageLoader.cpp</div></div> |
52 | </div><!--header--> | 52 | </div><!--header--> |
53 | <div·class="contents"> | 53 | <div·class="contents"> |
54 | <div·class="fragment"><div·class="line"><a·id="l00001"·name="l00001"></a><span·class="lineno">····1</span><span·class="comment">/***********************************************************************</span></div> | 54 | <div·class="fragment"><div·class="line"><a·id="l00001"·name="l00001"></a><span·class="lineno">····1</span><span·class="comment">/***********************************************************************</span></div> |
55 | <div·class="line"><a·id="l00002"·name="l00002"></a><span·class="lineno">····2</span><span·class="comment">····filename:···SILLY | 55 | <div·class="line"><a·id="l00002"·name="l00002"></a><span·class="lineno">····2</span><span·class="comment">····filename:···SILLYTGAImageLoader.cpp</span></div> |
56 | <div·class="line"><a·id="l00003"·name="l00003"></a><span·class="lineno">····3</span><span·class="comment">····created:····1 | 56 | <div·class="line"><a·id="l00003"·name="l00003"></a><span·class="lineno">····3</span><span·class="comment">····created:····11·Jun·2006</span></div> |
57 | <div·class="line"><a·id="l00004"·name="l00004"></a><span·class="lineno">····4</span><span·class="comment">····author:·····Olivier·Delannoy·</span></div> | 57 | <div·class="line"><a·id="l00004"·name="l00004"></a><span·class="lineno">····4</span><span·class="comment">····author:·····Olivier·Delannoy·</span></div> |
58 | <div·class="line"><a·id="l00005"·name="l00005"></a><span·class="lineno">····5</span><span·class="comment"></span>·</div> | 58 | <div·class="line"><a·id="l00005"·name="l00005"></a><span·class="lineno">····5</span><span·class="comment"></span>·</div> |
59 | <div·class="line"><a·id="l00006"·name="l00006"></a><span·class="lineno">····6</span><span·class="comment">····purpose:···· | 59 | <div·class="line"><a·id="l00006"·name="l00006"></a><span·class="lineno">····6</span><span·class="comment">····purpose:····Load·TGA·Image··</span></div> |
60 | <div·class="line"><a·id="l00007"·name="l00007"></a><span·class="lineno">····7</span><span·class="comment">*************************************************************************/</span></div> | 60 | <div·class="line"><a·id="l00007"·name="l00007"></a><span·class="lineno">····7</span><span·class="comment">*************************************************************************/</span></div> |
61 | <div·class="line"><a·id="l00008"·name="l00008"></a><span·class="lineno">····8</span><span·class="comment">/***************************************************************************</span></div> | 61 | <div·class="line"><a·id="l00008"·name="l00008"></a><span·class="lineno">····8</span><span·class="comment">/***************************************************************************</span></div> |
62 | <div·class="line"><a·id="l00009"·name="l00009"></a><span·class="lineno">····9</span><span·class="comment">·*···Copyright·(C)·2004·-·2006·Paul·D·Turner·&·The·CEGUI·Development·Team</span></div> | 62 | <div·class="line"><a·id="l00009"·name="l00009"></a><span·class="lineno">····9</span><span·class="comment">·*···Copyright·(C)·2004·-·2006·Paul·D·Turner·&·The·CEGUI·Development·Team</span></div> |
63 | <div·class="line"><a·id="l00010"·name="l00010"></a><span·class="lineno">···10</span><span·class="comment">·*</span></div> | 63 | <div·class="line"><a·id="l00010"·name="l00010"></a><span·class="lineno">···10</span><span·class="comment">·*</span></div> |
64 | <div·class="line"><a·id="l00011"·name="l00011"></a><span·class="lineno">···11</span><span·class="comment">·*···Permission·is·hereby·granted,·free·of·charge,·to·any·person·obtaining</span></div> | 64 | <div·class="line"><a·id="l00011"·name="l00011"></a><span·class="lineno">···11</span><span·class="comment">·*···Permission·is·hereby·granted,·free·of·charge,·to·any·person·obtaining</span></div> |
65 | <div·class="line"><a·id="l00012"·name="l00012"></a><span·class="lineno">···12</span><span·class="comment">·*···a·copy·of·this·software·and·associated·documentation·files·(the</span></div> | 65 | <div·class="line"><a·id="l00012"·name="l00012"></a><span·class="lineno">···12</span><span·class="comment">·*···a·copy·of·this·software·and·associated·documentation·files·(the</span></div> |
66 | <div·class="line"><a·id="l00013"·name="l00013"></a><span·class="lineno">···13</span><span·class="comment">·*···"Software"),·to·deal·in·the·Software·without·restriction,·including</span></div> | 66 | <div·class="line"><a·id="l00013"·name="l00013"></a><span·class="lineno">···13</span><span·class="comment">·*···"Software"),·to·deal·in·the·Software·without·restriction,·including</span></div> |
Offset 80, 40 lines modified | Offset 80, 313 lines modified | ||
80 | <div·class="line"><a·id="l00027"·name="l00027"></a><span·class="lineno">···27</span><span·class="comment">·*···ARISING·FROM,·OUT·OF·OR·IN·CONNECTION·WITH·THE·SOFTWARE·OR·THE·USE·OR</span></div> | 80 | <div·class="line"><a·id="l00027"·name="l00027"></a><span·class="lineno">···27</span><span·class="comment">·*···ARISING·FROM,·OUT·OF·OR·IN·CONNECTION·WITH·THE·SOFTWARE·OR·THE·USE·OR</span></div> |
81 | <div·class="line"><a·id="l00028"·name="l00028"></a><span·class="lineno">···28</span><span·class="comment">·*···OTHER·DEALINGS·IN·THE·SOFTWARE.</span></div> | 81 | <div·class="line"><a·id="l00028"·name="l00028"></a><span·class="lineno">···28</span><span·class="comment">·*···OTHER·DEALINGS·IN·THE·SOFTWARE.</span></div> |
82 | <div·class="line"><a·id="l00029"·name="l00029"></a><span·class="lineno">···29</span><span·class="comment">·***************************************************************************/</span></div> | 82 | <div·class="line"><a·id="l00029"·name="l00029"></a><span·class="lineno">···29</span><span·class="comment">·***************************************************************************/</span></div> |
83 | <div·class="line"><a·id="l00030"·name="l00030"></a><span·class="lineno">···30</span><span·class="preprocessor">#ifdef·HAVE_CONFIG_H</span></div> | 83 | <div·class="line"><a·id="l00030"·name="l00030"></a><span·class="lineno">···30</span><span·class="preprocessor">#ifdef·HAVE_CONFIG_H</span></div> |
84 | <div·class="line"><a·id="l00031"·name="l00031"></a><span·class="lineno">···31</span><span·class="preprocessor">#include·<config.h></span></div> | 84 | <div·class="line"><a·id="l00031"·name="l00031"></a><span·class="lineno">···31</span><span·class="preprocessor">#include·<config.h></span></div> |
85 | <div·class="line"><a·id="l00032"·name="l00032"></a><span·class="lineno">···32</span><span·class="preprocessor">#endif</span></div> | 85 | <div·class="line"><a·id="l00032"·name="l00032"></a><span·class="lineno">···32</span><span·class="preprocessor">#endif</span></div> |
86 | <div·class="line"><a·id="l00033"·name="l00033"></a><span·class="lineno">···33</span>·</div> | 86 | <div·class="line"><a·id="l00033"·name="l00033"></a><span·class="lineno">···33</span>·</div> |
87 | <div·class="line"><a·id="l00034"·name="l00034"></a><span·class="lineno">···34</span><span·class="preprocessor">#include·"SILLY | 87 | <div·class="line"><a·id="l00034"·name="l00034"></a><span·class="lineno">···34</span><span·class="preprocessor">#include·"loaders/SILLYTGAImageLoader.h"</span></div> |
88 | <div·class="line"><a·id="l00035"·name="l00035"></a><span·class="lineno">···35</span>·</div> | 88 | <div·class="line"><a·id="l00035"·name="l00035"></a><span·class="lineno">···35</span>·</div> |
89 | <div·class="line"><a·id="l00036"·name="l00036"></a><span·class="lineno">···36</span><span·class="preprocessor">#ifndef·SILLY_OPT_INLINE</span></div> | 89 | <div·class="line"><a·id="l00036"·name="l00036"></a><span·class="lineno">···36</span><span·class="preprocessor">#ifndef·SILLY_OPT_INLINE</span></div> |
90 | <div·class="line"><a·id="l00037"·name="l00037"></a><span·class="lineno">···37</span><span·class="preprocessor">#define·inline·</span></div> | 90 | <div·class="line"><a·id="l00037"·name="l00037"></a><span·class="lineno">···37</span><span·class="preprocessor">#define·inline·</span></div> |
91 | <div·class="line"><a·id="l00038"·name="l00038"></a><span·class="lineno">···38</span><span·class="preprocessor">#include·"SILLY | 91 | <div·class="line"><a·id="l00038"·name="l00038"></a><span·class="lineno">···38</span><span·class="preprocessor">#include·"loaders/SILLYTGAImageLoader.icpp"</span></div> |
92 | <div·class="line"><a·id="l00039"·name="l00039"></a><span·class="lineno">···39</span><span·class="preprocessor">#undef·inline</span></div> | 92 | <div·class="line"><a·id="l00039"·name="l00039"></a><span·class="lineno">···39</span><span·class="preprocessor">#undef·inline</span></div> |
93 | <div·class="line"><a·id="l00040"·name="l00040"></a><span·class="lineno">···40</span><span·class="preprocessor">#endif·</span></div> | 93 | <div·class="line"><a·id="l00040"·name="l00040"></a><span·class="lineno">···40</span><span·class="preprocessor">#endif·</span></div> |
94 | <div·class="line"><a·id="l00041"·name="l00041"></a><span·class="lineno">···41</span><span·class="preprocessor">#include·"SILLYDataSource.h"</span>·</div> | ||
95 | <div·class="line"><a·id="l00042"·name="l00042"></a><span·class="lineno">···42</span><span·class="preprocessor">#include·"loaders/SILLYTGAImageContext.h"</span>·</div> | ||
94 | <div·class="line"><a·id="l0004 | 96 | <div·class="line"><a·id="l00043"·name="l00043"></a><span·class="lineno">···43</span>·</div> |
97 | <div·class="line"><a·id="l00044"·name="l00044"></a><span·class="lineno">···44</span><span·class="preprocessor">#include·<cstring></span>·</div> | ||
98 | <div·class="line"><a·id="l00045"·name="l00045"></a><span·class="lineno">···45</span><span·class="preprocessor">#include·<cstdio></span></div> | ||
99 | <div·class="line"><a·id="l00046"·name="l00046"></a><span·class="lineno">···46</span>·</div> | ||
95 | <div·class="line"><a·id="l0004 | 100 | <div·class="line"><a·id="l00047"·name="l00047"></a><span·class="lineno">···47</span><span·class="comment">//·Start·section·of·namespace·SILLY</span></div> |
96 | <div·class="line"><a·id="l0004 | 101 | <div·class="line"><a·id="l00048"·name="l00048"></a><span·class="lineno">···48</span><span·class="keyword">namespace·</span><a·class="code·hl_namespace"·href="a00129.html">SILLY</a></div> |
97 | <div·class="line"><a·id="l0004 | 102 | <div·class="line"><a·id="l00049"·name="l00049"></a><span·class="lineno">···49</span>{</div> |
98 | <div·class="line"><a·id="l00045"·name="l00045"></a><span·class="lineno">···45</span>··</div> | ||
99 | <div·class="foldopen"·id="foldopen00046"·data-start="{"·data-end="}"> | ||
100 | <div·class="line"><a·id="l00046"·name="l00046"></a><span·class="lineno"><a·class="line"·href="a00993.html#aaf9b064e68ab0cd091926faf2ac8ab11">···46</a></span><a·class="code·hl_function"·href="a00993.html#aaf9b064e68ab0cd091926faf2ac8ab11">MemoryDataSource::MemoryDataSource</a>(<span·class="keyword">const</span>·<span·class="keywordtype">byte</span>*·data,·<span·class="keywordtype">size_t</span>·size)</div> | ||
101 | <div·class="line"><a·id="l00047"·name="l00047"></a><span·class="lineno">···47</span>····:·d_bytes(data),·d_size(size)</div> | ||
102 | <div·class="line"><a·id="l00048"·name="l00048"></a><span·class="lineno">···48</span>{</div> | ||
103 | <div·class="line"><a·id="l00049"·name="l00049"></a><span·class="lineno">···49</span>····assert(data·&&·<span·class="stringliteral">"ASSERT:·data·point·to·an·invalid·memory"</span>);</div> | ||
104 | <div·class="line"><a·id="l00050"·name="l00050"></a><span·class="lineno">···50</span>····assert(size·&&·<span·class="stringliteral">"ASSERT:·size·is·equal·to·0"</span>);</div> | ||
105 | <div·class="line"><a·id="l00051"·name="l00051"></a><span·class="lineno">···51</span>}</div> | ||
106 | </div> | ||
107 | <div·class="line"><a·id="l0005 | 103 | <div·class="line"><a·id="l00050"·name="l00050"></a><span·class="lineno">···50</span>·</div> |
108 | <div·class="line"><a·id="l0005 | 104 | <div·class="line"><a·id="l00051"·name="l00051"></a><span·class="lineno">···51</span>TGAImageLoader::TGAImageLoader()</div> |
105 | <div·class="line"><a·id="l00052"·name="l00052"></a><span·class="lineno">···52</span>····:·ImageLoader(<span·class="stringliteral">"TGA·Image·loader·(builtin)"</span>)</div> | ||
106 | <div·class="line"><a·id="l00053"·name="l00053"></a><span·class="lineno">···53</span>{</div> | ||
109 | <div·class="line"><a·id="l00054"·name="l00054"></a><span·class="lineno">···54</span> | 107 | <div·class="line"><a·id="l00054"·name="l00054"></a><span·class="lineno">···54</span>}</div> |
110 | <div·class="line"><a·id="l00055"·name="l00055"></a><span·class="lineno">···55</span>·</div> | 108 | <div·class="line"><a·id="l00055"·name="l00055"></a><span·class="lineno">···55</span>·</div> |
109 | <div·class="line"><a·id="l00056"·name="l00056"></a><span·class="lineno">···56</span>TGAImageLoader::~TGAImageLoader()</div> | ||
110 | <div·class="line"><a·id="l00057"·name="l00057"></a><span·class="lineno">···57</span>{</div> | ||
111 | <div·class="line"><a·id="l00058"·name="l00058"></a><span·class="lineno">···58</span>}</div> | ||
112 | <div·class="line"><a·id="l00059"·name="l00059"></a><span·class="lineno">···59</span>·</div> | ||
113 | <div·class="line"><a·id="l00060"·name="l00060"></a><span·class="lineno">···60</span><span·class="preprocessor">#ifdef·SILLY_BE</span></div> | ||
114 | <div·class="line"><a·id="l00061"·name="l00061"></a><span·class="lineno">···61</span><span·class="preprocessor">#define·READ_WORD(res,·start)···················\</span></div> | ||
115 | <div·class="line"><a·id="l00062"·name="l00062"></a><span·class="lineno">···62</span><span·class="preprocessor">····(res)·=·0;··································\</span></div> | ||
116 | <div·class="line"><a·id="l00063"·name="l00063"></a><span·class="lineno">···63</span><span·class="preprocessor">····(res)·=·data->getDataPtr()[(start)·+·1];···············\</span></div> | ||
117 | <div·class="line"><a·id="l00064"·name="l00064"></a><span·class="lineno">···64</span><span·class="preprocessor">····(res)·=·(res)·<<·8;·························\</span></div> | ||
118 | <div·class="line"><a·id="l00065"·name="l00065"></a><span·class="lineno">···65</span><span·class="preprocessor">····(res)·|=·data->getDataPtr()[(start)];</span></div> | ||
119 | <div·class="line"><a·id="l00066"·name="l00066"></a><span·class="lineno">···66</span><span·class="preprocessor">#else·</span></div> | ||
120 | <div·class="line"><a·id="l00067"·name="l00067"></a><span·class="lineno">···67</span><span·class="preprocessor">#define·READ_WORD(res,·start)···················\</span></div> | ||
121 | <div·class="line"><a·id="l00068"·name="l00068"></a><span·class="lineno">···68</span><span·class="preprocessor">····(res)·=·0;··································\</span></div> | ||
122 | <div·class="line"><a·id="l00069"·name="l00069"></a><span·class="lineno">···69</span><span·class="preprocessor">····(res)·=·data->getDataPtr()[(start)];···················\</span></div> | ||
123 | <div·class="line"><a·id="l00070"·name="l00070"></a><span·class="lineno">···70</span><span·class="preprocessor">····(res)·=·(res)·<<·8;··························\</span></div> | ||
124 | <div·class="line"><a·id="l00071"·name="l00071"></a><span·class="lineno">···71</span><span·class="preprocessor">····(res)·|=·data->getDataPtr()[(start)·+·1];</span></div> | ||
125 | <div·class="line"><a·id="l00072"·name="l00072"></a><span·class="lineno">···72</span><span·class="preprocessor">#endif·</span></div> | ||
126 | <div·class="line"><a·id="l00073"·name="l00073"></a><span·class="lineno">···73</span>·</div> | ||
127 | <div·class="foldopen"·id="foldopen00074"·data-start="{"·data-end="}"> | ||
128 | <div·class="line"><a·id="l00074"·name="l00074"></a><span·class="lineno"><a·class="line"·href="a00965.html#a1f83c2e6e4960b05c1b5bd61b0635f8c">···74</a></span><a·class="code·hl_class"·href="a00981.html">ImageContext</a>*·TGAImageLoader::loadHeader(<a·class="code·hl_enumeration"·href="a00129.html#a60883d4958a60b91661e97027a85072a">PixelFormat</a>&·formatSource,·<a·class="code·hl_class"·href="a00969.html">DataSource</a>*·data)</div> | ||
129 | <div·class="line"><a·id="l00075"·name="l00075"></a><span·class="lineno">···75</span>{</div> | ||
130 | <div·class="line"><a·id="l00076"·name="l00076"></a><span·class="lineno">···76</span>····<span·class="keywordtype">byte</span>·idLength·=·data-><a·class="code·hl_function"·href="a00969.html#a3ae74c9d90450a3d9aa45191e1c21c13">getDataPtr</a>()[0];</div> | ||
131 | <div·class="line"><a·id="l00077"·name="l00077"></a><span·class="lineno">···77</span>····<span·class="keywordtype">byte</span>·colorMapType·=·data-><a·class="code·hl_function"·href="a00969.html#a3ae74c9d90450a3d9aa45191e1c21c13">getDataPtr</a>()[1];</div> | ||
132 | <div·class="line"><a·id="l00078"·name="l00078"></a><span·class="lineno">···78</span>····<span·class="keywordtype">byte</span>·imageType·=·data-><a·class="code·hl_function"·href="a00969.html#a3ae74c9d90450a3d9aa45191e1c21c13">getDataPtr</a>()[2];</div> | ||
133 | <div·class="line"><a·id="l00079"·name="l00079"></a><span·class="lineno">···79</span>····<span·class="keywordtype">size_t</span>·width;</div> | ||
134 | <div·class="line"><a·id="l00080"·name="l00080"></a><span·class="lineno">···80</span>····<span·class="keywordtype">size_t</span>·height;</div> | ||
135 | <div·class="line"><a·id="l00081"·name="l00081"></a><span·class="lineno">···81</span>····<span·class="keywordtype">byte</span>·depth;</div> | ||
136 | <div·class="line"><a·id="l00082"·name="l00082"></a><span·class="lineno">···82</span>····<span·class="keywordtype">byte</span>·description;</div> | ||
137 | <div·class="line"><a·id="l00083"·name="l00083"></a><span·class="lineno">···83</span>····<span·class="keywordflow">if</span>·((imageType·!=·2·&&·imageType·!=·10)·||·colorMapType)</div> | ||
138 | <div·class="line"><a·id="l00084"·name="l00084"></a><span·class="lineno">···84</span>····{</div> | ||
139 | <div·class="line"><a·id="l00085"·name="l00085"></a><span·class="lineno">···85</span>········<span·class="comment">//·Unsupported·image·format</span></div> | ||
140 | <div·class="line"><a·id="l00086"·name="l00086"></a><span·class="lineno">···86</span>········<span·class="keywordflow">return</span>·0;</div> | ||
141 | <div·class="line"><a·id="l00087"·name="l00087"></a><span·class="lineno">···87</span>····}</div> | ||
142 | <div·class="line"><a·id="l00088"·name="l00088"></a><span·class="lineno">···88</span>····<span·class="comment">//·offset:·3·Skip·color·map·+·5·bytes·</span></div> | ||
143 | <div·class="line"><a·id="l00089"·name="l00089"></a><span·class="lineno">···89</span>····<span·class="comment">//·offset:·8·Skip·xorg·/·yorg·+·4·bytes·</span></div> | ||
144 | <div·class="line"><a·id="l00090"·name="l00090"></a><span·class="lineno">···90</span><span·class="preprocessor">#ifdef·SILLY_BE·</span></div> | ||
145 | <div·class="line"><a·id="l00091"·name="l00091"></a><span·class="lineno">···91</span>····width·=·data-><a·class="code·hl_function"·href="a00969.html#a3ae74c9d90450a3d9aa45191e1c21c13">getDataPtr</a>()[12];</div> | ||
146 | <div·class="line"><a·id="l00092"·name="l00092"></a><span·class="lineno">···92</span>····width·=·width·<<·8;</div> | ||
147 | <div·class="line"><a·id="l00093"·name="l00093"></a><span·class="lineno">···93</span>····width·|=·data-><a·class="code·hl_function"·href="a00969.html#a3ae74c9d90450a3d9aa45191e1c21c13">getDataPtr</a>()[13];</div> | ||
148 | <div·class="line"><a·id="l00094"·name="l00094"></a><span·class="lineno">···94</span>····height·=··data-><a·class="code·hl_function"·href="a00969.html#a3ae74c9d90450a3d9aa45191e1c21c13">getDataPtr</a>()[14];</div> | ||
149 | <div·class="line"><a·id="l00095"·name="l00095"></a><span·class="lineno">···95</span>····height·=·height·<<·8;</div> | ||
150 | <div·class="line"><a·id="l00096"·name="l00096"></a><span·class="lineno">···96</span>····height·|=·data-><a·class="code·hl_function"·href="a00969.html#a3ae74c9d90450a3d9aa45191e1c21c13">getDataPtr</a>()[15];</div> | ||
151 | <div·class="line"><a·id="l00097"·name="l00097"></a><span·class="lineno">···97</span><span·class="preprocessor">#else·</span></div> | ||
152 | <div·class="line"><a·id="l00098"·name="l00098"></a><span·class="lineno">···98</span>····width·=·data-><a·class="code·hl_function"·href="a00969.html#a3ae74c9d90450a3d9aa45191e1c21c13">getDataPtr</a>()[13];</div> | ||
153 | <div·class="line"><a·id="l00099"·name="l00099"></a><span·class="lineno">···99</span>····width·=·width·<<·8;</div> | ||
Max diff block lines reached; 271/56111 bytes (0.48%) of diff not shown. |
Offset 1, 19 lines modified | Offset 1, 20 lines modified | ||
1 | Simple·Image·Loading·LibrarY 0.1.0 | 1 | Simple·Image·Loading·LibrarY 0.1.0 |
2 | ····*·_\x8b_\x8u_\x8i_\x8l_\x8d | 2 | ····*·_\x8b_\x8u_\x8i_\x8l_\x8d |
3 | ····*·_\x8r_\x8e_\x8p_\x8r_\x8o_\x8d_\x8u_\x8c_\x8i_\x8b_\x8l_\x8e_\x8-_\x8p_\x8a_\x8t_\x8h | 3 | ····*·_\x8r_\x8e_\x8p_\x8r_\x8o_\x8d_\x8u_\x8c_\x8i_\x8b_\x8l_\x8e_\x8-_\x8p_\x8a_\x8t_\x8h |
4 | ····*·_\x8s_\x8i_\x8l_\x8l_\x8y_\x8-_\x80_\x8._\x81_\x8._\x80 | 4 | ····*·_\x8s_\x8i_\x8l_\x8l_\x8y_\x8-_\x80_\x8._\x81_\x8._\x80 |
5 | ····*·_\x8s_\x8r_\x8c | 5 | ····*·_\x8s_\x8r_\x8c |
6 | 6 | ····*·_.l_.o_.a_.d_.e_.r_.s | |
7 | SILLYTGAImageLoader.cpp | ||
7 | 1/*********************************************************************** | 8 | 1/*********************************************************************** |
8 | 2·filename:·SILLY | 9 | 2·filename:·SILLYTGAImageLoader.cpp |
9 | 3·created:·1 | 10 | 3·created:·11·Jun·2006 |
10 | 4·author:·Olivier·Delannoy | 11 | 4·author:·Olivier·Delannoy |
11 | 5 | 12 | 5 |
12 | 6·purpose:· | 13 | 6·purpose:·Load·TGA·Image |
13 | 7*************************************************************************/ | 14 | 7*************************************************************************/ |
14 | 8/*************************************************************************** | 15 | 8/*************************************************************************** |
15 | 9·*·Copyright·(C)·2004·-·2006·Paul·D·Turner·&·The·CEGUI·Development·Team | 16 | 9·*·Copyright·(C)·2004·-·2006·Paul·D·Turner·&·The·CEGUI·Development·Team |
16 | 10·* | 17 | 10·* |
17 | 11·*·Permission·is·hereby·granted,·free·of·charge,·to·any·person·obtaining | 18 | 11·*·Permission·is·hereby·granted,·free·of·charge,·to·any·person·obtaining |
18 | 12·*·a·copy·of·this·software·and·associated·documentation·files·(the | 19 | 12·*·a·copy·of·this·software·and·associated·documentation·files·(the |
19 | 13·*·"Software"),·to·deal·in·the·Software·without·restriction,·including | 20 | 13·*·"Software"),·to·deal·in·the·Software·without·restriction,·including |
Offset 33, 38 lines modified | Offset 34, 327 lines modified | ||
33 | 27·*·ARISING·FROM,·OUT·OF·OR·IN·CONNECTION·WITH·THE·SOFTWARE·OR·THE·USE·OR | 34 | 27·*·ARISING·FROM,·OUT·OF·OR·IN·CONNECTION·WITH·THE·SOFTWARE·OR·THE·USE·OR |
34 | 28·*·OTHER·DEALINGS·IN·THE·SOFTWARE. | 35 | 28·*·OTHER·DEALINGS·IN·THE·SOFTWARE. |
35 | 29·***************************************************************************/ | 36 | 29·***************************************************************************/ |
36 | 30#ifdef·HAVE_CONFIG_H | 37 | 30#ifdef·HAVE_CONFIG_H |
37 | 31#include·<config.h> | 38 | 31#include·<config.h> |
38 | 32#endif | 39 | 32#endif |
39 | 33 | 40 | 33 |
40 | 34#include·"SILLY | 41 | 34#include·"loaders/SILLYTGAImageLoader.h" |
41 | 35 | 42 | 35 |
42 | 36#ifndef·SILLY_OPT_INLINE | 43 | 36#ifndef·SILLY_OPT_INLINE |
43 | 37#define·inline | 44 | 37#define·inline |
44 | 38#include·"SILLY | 45 | 38#include·"loaders/SILLYTGAImageLoader.icpp" |
45 | 39#undef·inline | 46 | 39#undef·inline |
46 | 40#endif | 47 | 40#endif |
47 | 41 | ||
48 | 4 | 48 | 41#include·"SILLYDataSource.h" |
49 | 42#include·"loaders/SILLYTGAImageContext.h" | ||
50 | 43 | ||
51 | 44#include·<cstring> | ||
52 | 45#include·<cstdio> | ||
53 | 46 | ||
54 | 47//·Start·section·of·namespace·SILLY | ||
49 | 4 | 55 | 48namespace·_\x8S_\x8I_\x8L_\x8L_\x8Y |
56 | 49{ | ||
57 | 50 | ||
58 | 51TGAImageLoader::TGAImageLoader() | ||
59 | 52·:·ImageLoader("TGA·Image·loader·(builtin)") | ||
60 | 53{ | ||
50 | 44{ | ||
51 | 45 | ||
52 | _\x84_\x86_\x8M_\x8e_\x8m_\x8o_\x8r_\x8y_\x8D_\x8a_\x8t_\x8a_\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8:_\x8:_\x8M_\x8e_\x8m_\x8o_\x8r_\x8y_\x8D_\x8a_\x8t_\x8a_\x8S_\x8o_\x8u_\x8r_\x8c_\x8e(const·byte*·data,·size_t·size) | ||
53 | 47·:·d_bytes(data),·d_size(size) | ||
54 | 48{ | ||
55 | 49·assert(data·&&·"ASSERT:·data·point·to·an·invalid·memory"); | ||
56 | 50·assert(size·&&·"ASSERT:·size·is·equal·to·0"); | ||
57 | 51} | ||
58 | 52 | ||
59 | 53}·//·End·of·SILLY·namespace·section | ||
60 | 54 | 61 | 54} |
61 | 55 | 62 | 55 |
63 | 56TGAImageLoader::~TGAImageLoader() | ||
64 | 57{ | ||
65 | 58} | ||
66 | 59 | ||
67 | 60#ifdef·SILLY_BE | ||
68 | 61#define·READ_WORD(res,·start)·\ | ||
69 | 62·(res)·=·0;·\ | ||
70 | 63·(res)·=·data->getDataPtr()[(start)·+·1];·\ | ||
71 | 64·(res)·=·(res)·<<·8;·\ | ||
72 | 65·(res)·|=·data->getDataPtr()[(start)]; | ||
73 | 66#else | ||
74 | 67#define·READ_WORD(res,·start)·\ | ||
75 | 68·(res)·=·0;·\ | ||
76 | 69·(res)·=·data->getDataPtr()[(start)];·\ | ||
77 | 70·(res)·=·(res)·<<·8;·\ | ||
78 | 71·(res)·|=·data->getDataPtr()[(start)·+·1]; | ||
79 | 72#endif | ||
80 | 73 | ||
81 | _\x87_\x84_\x8I_\x8m_\x8a_\x8g_\x8e_\x8C_\x8o_\x8n_\x8t_\x8e_\x8x_\x8t*·TGAImageLoader::loadHeader(_\x8P_\x8i_\x8x_\x8e_\x8l_\x8F_\x8o_\x8r_\x8m_\x8a_\x8t&·formatSource, | ||
82 | _\x8D_\x8a_\x8t_\x8a_\x8S_\x8o_\x8u_\x8r_\x8c_\x8e*·data) | ||
83 | 75{ | ||
84 | 76·byte·idLength·=·data->_\x8g_\x8e_\x8t_\x8D_\x8a_\x8t_\x8a_\x8P_\x8t_\x8r()[0]; | ||
85 | 77·byte·colorMapType·=·data->_\x8g_\x8e_\x8t_\x8D_\x8a_\x8t_\x8a_\x8P_\x8t_\x8r()[1]; | ||
86 | 78·byte·imageType·=·data->_\x8g_\x8e_\x8t_\x8D_\x8a_\x8t_\x8a_\x8P_\x8t_\x8r()[2]; | ||
87 | 79·size_t·width; | ||
88 | 80·size_t·height; | ||
89 | 81·byte·depth; | ||
90 | 82·byte·description; | ||
91 | 83·if·((imageType·!=·2·&&·imageType·!=·10)·||·colorMapType) | ||
92 | 84·{ | ||
93 | 85·//·Unsupported·image·format | ||
94 | 86·return·0; | ||
95 | 87·} | ||
96 | 88·//·offset:·3·Skip·color·map·+·5·bytes | ||
97 | 89·//·offset:·8·Skip·xorg·/·yorg·+·4·bytes | ||
98 | 90#ifdef·SILLY_BE | ||
99 | 91·width·=·data->_\x8g_\x8e_\x8t_\x8D_\x8a_\x8t_\x8a_\x8P_\x8t_\x8r()[12]; | ||
100 | 92·width·=·width·<<·8; | ||
101 | 93·width·|=·data->_\x8g_\x8e_\x8t_\x8D_\x8a_\x8t_\x8a_\x8P_\x8t_\x8r()[13]; | ||
102 | 94·height·=·data->_\x8g_\x8e_\x8t_\x8D_\x8a_\x8t_\x8a_\x8P_\x8t_\x8r()[14]; | ||
103 | 95·height·=·height·<<·8; | ||
104 | 96·height·|=·data->_\x8g_\x8e_\x8t_\x8D_\x8a_\x8t_\x8a_\x8P_\x8t_\x8r()[15]; | ||
105 | 97#else | ||
106 | 98·width·=·data->_\x8g_\x8e_\x8t_\x8D_\x8a_\x8t_\x8a_\x8P_\x8t_\x8r()[13]; | ||
107 | 99·width·=·width·<<·8; | ||
108 | 100·width·|=·data->_\x8g_\x8e_\x8t_\x8D_\x8a_\x8t_\x8a_\x8P_\x8t_\x8r()[12]; | ||
109 | 101·height·=·data->_\x8g_\x8e_\x8t_\x8D_\x8a_\x8t_\x8a_\x8P_\x8t_\x8r()[15]; | ||
110 | 102·height·=·height·<<·8; | ||
111 | 103·height·|=·data->_\x8g_\x8e_\x8t_\x8D_\x8a_\x8t_\x8a_\x8P_\x8t_\x8r()[14]; | ||
112 | 104#endif | ||
113 | 105·depth·=·data->_\x8g_\x8e_\x8t_\x8D_\x8a_\x8t_\x8a_\x8P_\x8t_\x8r()[16]·>>·3; | ||
114 | 106·switch·(depth) | ||
115 | 107·{ | ||
116 | 108·case·2: | ||
117 | 109·formatSource·=·PF_A1B5G5R5; | ||
118 | 110·break; | ||
119 | 111·case·3: | ||
120 | 112·formatSource·=·PF_RGB; | ||
121 | 113·break; | ||
122 | 114·case·4: | ||
123 | 115·formatSource·=·PF_RGBA; | ||
124 | 116·break; | ||
125 | 117·default: | ||
126 | 118·return·0; | ||
127 | 119·} | ||
128 | 120·description·=·(*data)[17]; | ||
Max diff block lines reached; 2267/11717 bytes (19.35%) of diff not shown. |
Offset 1, 15 lines modified | Offset 1, 15 lines modified | ||
1 | <!DOCTYPE·html·PUBLIC·"-//W3C//DTD·XHTML·1.0·Transitional//EN"·"https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> | 1 | <!DOCTYPE·html·PUBLIC·"-//W3C//DTD·XHTML·1.0·Transitional//EN"·"https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> |
2 | <html·xmlns="http://www.w3.org/1999/xhtml"·lang="en-US"> | 2 | <html·xmlns="http://www.w3.org/1999/xhtml"·lang="en-US"> |
3 | <head> | 3 | <head> |
4 | <meta·http-equiv="Content-Type"·content="text/xhtml;charset=UTF-8"/> | 4 | <meta·http-equiv="Content-Type"·content="text/xhtml;charset=UTF-8"/> |
5 | <meta·http-equiv="X-UA-Compatible"·content="IE=11"/> | 5 | <meta·http-equiv="X-UA-Compatible"·content="IE=11"/> |
6 | <meta·name="generator"·content="Doxygen·1.9.8"/> | 6 | <meta·name="generator"·content="Doxygen·1.9.8"/> |
7 | <meta·name="viewport"·content="width=device-width,·initial-scale=1"/> | 7 | <meta·name="viewport"·content="width=device-width,·initial-scale=1"/> |
8 | <title>Simple·Image·Loading·LibrarY:·/build/reproducible-path/silly-0.1.0/src/SILLY | 8 | <title>Simple·Image·Loading·LibrarY:·/build/reproducible-path/silly-0.1.0/src/SILLYImageContext.cpp·Source·File</title> |
9 | <link·href="tabs.css"·rel="stylesheet"·type="text/css"/> | 9 | <link·href="tabs.css"·rel="stylesheet"·type="text/css"/> |
10 | <script·type="text/javascript"·src="jquery.js"></script> | 10 | <script·type="text/javascript"·src="jquery.js"></script> |
11 | <script·type="text/javascript"·src="dynsections.js"></script> | 11 | <script·type="text/javascript"·src="dynsections.js"></script> |
12 | <link·href="doxygen.css"·rel="stylesheet"·type="text/css"·/> | 12 | <link·href="doxygen.css"·rel="stylesheet"·type="text/css"·/> |
13 | </head> | 13 | </head> |
14 | <body> | 14 | <body> |
15 | <div·id="top"><!--·do·not·remove·this·div,·it·is·closed·by·doxygen!·--> | 15 | <div·id="top"><!--·do·not·remove·this·div,·it·is·closed·by·doxygen!·--> |
Offset 44, 23 lines modified | Offset 44, 23 lines modified | ||
44 | </script> | 44 | </script> |
45 | <div·id="nav-path"·class="navpath"> | 45 | <div·id="nav-path"·class="navpath"> |
46 | ··<ul> | 46 | ··<ul> |
47 | <li·class="navelem"><a·class="el"·href="dir_4fef79e7177ba769987a8da36c892c5f.html">build</a></li><li·class="navelem"><a·class="el"·href="dir_9def6061848686aab7e6212bb499d615.html">reproducible-path</a></li><li·class="navelem"><a·class="el"·href="dir_74170d5b58cefb7cb5a86fc552b183a3.html">silly-0.1.0</a></li><li·class="navelem"><a·class="el"·href="dir_7b53bc9a32849689d682eb098e891de5.html">src</a></li>··</ul> | 47 | <li·class="navelem"><a·class="el"·href="dir_4fef79e7177ba769987a8da36c892c5f.html">build</a></li><li·class="navelem"><a·class="el"·href="dir_9def6061848686aab7e6212bb499d615.html">reproducible-path</a></li><li·class="navelem"><a·class="el"·href="dir_74170d5b58cefb7cb5a86fc552b183a3.html">silly-0.1.0</a></li><li·class="navelem"><a·class="el"·href="dir_7b53bc9a32849689d682eb098e891de5.html">src</a></li>··</ul> |
48 | </div> | 48 | </div> |
49 | </div><!--·top·--> | 49 | </div><!--·top·--> |
50 | <div·class="header"> | 50 | <div·class="header"> |
51 | ··<div·class="headertitle"><div·class="title">SILLY | 51 | ··<div·class="headertitle"><div·class="title">SILLYImageContext.cpp</div></div> |
52 | </div><!--header--> | 52 | </div><!--header--> |
53 | <div·class="contents"> | 53 | <div·class="contents"> |
54 | <div·class="fragment"><div·class="line"><a·id="l00001"·name="l00001"></a><span·class="lineno">····1</span><span·class="comment">/***********************************************************************</span></div> | 54 | <div·class="fragment"><div·class="line"><a·id="l00001"·name="l00001"></a><span·class="lineno">····1</span><span·class="comment">/***********************************************************************</span></div> |
55 | <div·class="line"><a·id="l00002"·name="l00002"></a><span·class="lineno">····2</span><span·class="comment">····filename:···SILLY | 55 | <div·class="line"><a·id="l00002"·name="l00002"></a><span·class="lineno">····2</span><span·class="comment">····filename:···SILLYImageContext.cpp</span></div> |
56 | <div·class="line"><a·id="l00003"·name="l00003"></a><span·class="lineno">····3</span><span·class="comment">····created:···· | 56 | <div·class="line"><a·id="l00003"·name="l00003"></a><span·class="lineno">····3</span><span·class="comment">····created:····10·Jun·2006</span></div> |
57 | <div·class="line"><a·id="l00004"·name="l00004"></a><span·class="lineno">····4</span><span·class="comment">····author:·····Olivier·Delannoy·</span></div> | 57 | <div·class="line"><a·id="l00004"·name="l00004"></a><span·class="lineno">····4</span><span·class="comment">····author:·····Olivier·Delannoy·</span></div> |
58 | <div·class="line"><a·id="l00005"·name="l00005"></a><span·class="lineno">····5</span><span·class="comment"></span>·</div> | 58 | <div·class="line"><a·id="l00005"·name="l00005"></a><span·class="lineno">····5</span><span·class="comment"></span>·</div> |
59 | <div·class="line"><a·id="l00006"·name="l00006"></a><span·class="lineno">····6</span><span·class="comment">····purpose:····Implementation· | 59 | <div·class="line"><a·id="l00006"·name="l00006"></a><span·class="lineno">····6</span><span·class="comment">····purpose:····Implementation·file·for·ImageContext·class··</span></div> |
60 | <div·class="line"><a·id="l00007"·name="l00007"></a><span·class="lineno">····7</span><span·class="comment">*************************************************************************/</span></div> | 60 | <div·class="line"><a·id="l00007"·name="l00007"></a><span·class="lineno">····7</span><span·class="comment">*************************************************************************/</span></div> |
61 | <div·class="line"><a·id="l00008"·name="l00008"></a><span·class="lineno">····8</span><span·class="comment">/***************************************************************************</span></div> | 61 | <div·class="line"><a·id="l00008"·name="l00008"></a><span·class="lineno">····8</span><span·class="comment">/***************************************************************************</span></div> |
62 | <div·class="line"><a·id="l00009"·name="l00009"></a><span·class="lineno">····9</span><span·class="comment">·*···Copyright·(C)·2004·-·2006·Paul·D·Turner·&·The·CEGUI·Development·Team</span></div> | 62 | <div·class="line"><a·id="l00009"·name="l00009"></a><span·class="lineno">····9</span><span·class="comment">·*···Copyright·(C)·2004·-·2006·Paul·D·Turner·&·The·CEGUI·Development·Team</span></div> |
63 | <div·class="line"><a·id="l00010"·name="l00010"></a><span·class="lineno">···10</span><span·class="comment">·*</span></div> | 63 | <div·class="line"><a·id="l00010"·name="l00010"></a><span·class="lineno">···10</span><span·class="comment">·*</span></div> |
64 | <div·class="line"><a·id="l00011"·name="l00011"></a><span·class="lineno">···11</span><span·class="comment">·*···Permission·is·hereby·granted,·free·of·charge,·to·any·person·obtaining</span></div> | 64 | <div·class="line"><a·id="l00011"·name="l00011"></a><span·class="lineno">···11</span><span·class="comment">·*···Permission·is·hereby·granted,·free·of·charge,·to·any·person·obtaining</span></div> |
65 | <div·class="line"><a·id="l00012"·name="l00012"></a><span·class="lineno">···12</span><span·class="comment">·*···a·copy·of·this·software·and·associated·documentation·files·(the</span></div> | 65 | <div·class="line"><a·id="l00012"·name="l00012"></a><span·class="lineno">···12</span><span·class="comment">·*···a·copy·of·this·software·and·associated·documentation·files·(the</span></div> |
66 | <div·class="line"><a·id="l00013"·name="l00013"></a><span·class="lineno">···13</span><span·class="comment">·*···"Software"),·to·deal·in·the·Software·without·restriction,·including</span></div> | 66 | <div·class="line"><a·id="l00013"·name="l00013"></a><span·class="lineno">···13</span><span·class="comment">·*···"Software"),·to·deal·in·the·Software·without·restriction,·including</span></div> |
Offset 80, 80 lines modified | Offset 80, 69 lines modified | ||
80 | <div·class="line"><a·id="l00027"·name="l00027"></a><span·class="lineno">···27</span><span·class="comment">·*···ARISING·FROM,·OUT·OF·OR·IN·CONNECTION·WITH·THE·SOFTWARE·OR·THE·USE·OR</span></div> | 80 | <div·class="line"><a·id="l00027"·name="l00027"></a><span·class="lineno">···27</span><span·class="comment">·*···ARISING·FROM,·OUT·OF·OR·IN·CONNECTION·WITH·THE·SOFTWARE·OR·THE·USE·OR</span></div> |
81 | <div·class="line"><a·id="l00028"·name="l00028"></a><span·class="lineno">···28</span><span·class="comment">·*···OTHER·DEALINGS·IN·THE·SOFTWARE.</span></div> | 81 | <div·class="line"><a·id="l00028"·name="l00028"></a><span·class="lineno">···28</span><span·class="comment">·*···OTHER·DEALINGS·IN·THE·SOFTWARE.</span></div> |
82 | <div·class="line"><a·id="l00029"·name="l00029"></a><span·class="lineno">···29</span><span·class="comment">·***************************************************************************/</span></div> | 82 | <div·class="line"><a·id="l00029"·name="l00029"></a><span·class="lineno">···29</span><span·class="comment">·***************************************************************************/</span></div> |
83 | <div·class="line"><a·id="l00030"·name="l00030"></a><span·class="lineno">···30</span><span·class="preprocessor">#ifdef·HAVE_CONFIG_H</span></div> | 83 | <div·class="line"><a·id="l00030"·name="l00030"></a><span·class="lineno">···30</span><span·class="preprocessor">#ifdef·HAVE_CONFIG_H</span></div> |
84 | <div·class="line"><a·id="l00031"·name="l00031"></a><span·class="lineno">···31</span><span·class="preprocessor">#include·<config.h></span></div> | 84 | <div·class="line"><a·id="l00031"·name="l00031"></a><span·class="lineno">···31</span><span·class="preprocessor">#include·<config.h></span></div> |
85 | <div·class="line"><a·id="l00032"·name="l00032"></a><span·class="lineno">···32</span><span·class="preprocessor">#endif</span></div> | 85 | <div·class="line"><a·id="l00032"·name="l00032"></a><span·class="lineno">···32</span><span·class="preprocessor">#endif</span></div> |
86 | <div·class="line"><a·id="l00033"·name="l00033"></a><span·class="lineno">···33</span>·</div> | 86 | <div·class="line"><a·id="l00033"·name="l00033"></a><span·class="lineno">···33</span>·</div> |
87 | <div·class="line"><a·id="l00034"·name="l00034"></a><span·class="lineno">···34</span><span·class="preprocessor">#include·"SILLY | 87 | <div·class="line"><a·id="l00034"·name="l00034"></a><span·class="lineno">···34</span><span·class="preprocessor">#include·"SILLYImageContext.h"</span></div> |
88 | <div·class="line"><a·id="l00035"·name="l00035"></a><span·class="lineno">···35</span>·</div> | ||
89 | <div·class="line"><a·id="l0003 | 88 | <div·class="line"><a·id="l00035"·name="l00035"></a><span·class="lineno">···35</span><span·class="preprocessor">#ifndef·SILLY_OPT_INLINE</span></div> |
90 | <div·class="line"><a·id="l0003 | 89 | <div·class="line"><a·id="l00036"·name="l00036"></a><span·class="lineno">···36</span><span·class="preprocessor">#define·inline·</span></div> |
91 | <div·class="line"><a·id="l0003 | 90 | <div·class="line"><a·id="l00037"·name="l00037"></a><span·class="lineno">···37</span><span·class="preprocessor">#include·"SILLYImageContext.icpp"</span></div> |
92 | <div·class="line"><a·id="l0003 | 91 | <div·class="line"><a·id="l00038"·name="l00038"></a><span·class="lineno">···38</span><span·class="preprocessor">#undef·inline</span></div> |
93 | <div·class="line"><a·id="l000 | 92 | <div·class="line"><a·id="l00039"·name="l00039"></a><span·class="lineno">···39</span><span·class="preprocessor">#endif</span></div> |
94 | <div·class="line"><a·id="l0004 | 93 | <div·class="line"><a·id="l00040"·name="l00040"></a><span·class="lineno">···40</span><span·class="preprocessor">#include·<cstring></span></div> |
95 | <div·class="line"><a·id="l0004 | 94 | <div·class="line"><a·id="l00041"·name="l00041"></a><span·class="lineno">···41</span><span·class="comment">//·Start·section·of·namespace·SILLY</span></div> |
96 | <div·class="line"><a·id="l0004 | 95 | <div·class="line"><a·id="l00042"·name="l00042"></a><span·class="lineno">···42</span><span·class="keyword">namespace·</span><a·class="code·hl_namespace"·href="a00129.html">SILLY</a></div> |
96 | <div·class="line"><a·id="l00043"·name="l00043"></a><span·class="lineno">···43</span>{·</div> | ||
97 | <div·class="line"><a·id="l00044"·name="l00044"></a><span·class="lineno">···44</span> | 97 | <div·class="line"><a·id="l00044"·name="l00044"></a><span·class="lineno">···44</span>·</div> |
98 | <div·class="line"><a·id="l00045"·name="l00045"></a><span·class="lineno">···45</span>·</div> | ||
99 | <div·class="foldopen"·id="foldopen0004 | 98 | <div·class="foldopen"·id="foldopen00045"·data-start="{"·data-end="}"> |
99 | <div·class="line"><a·id="l00045"·name="l00045"></a><span·class="lineno"><a·class="line"·href="a00981.html#a23cd315e8ce80deeb7a06e268f65412f">···45</a></span><span·class="keywordtype">bool</span>·<a·class="code·hl_function"·href="a00981.html#a23cd315e8ce80deeb7a06e268f65412f">ImageContext::flipVertically</a>()</div> | ||
100 | <div·class="line"><a·id="l00046"·name="l00046"></a><span·class="lineno"><a·class="line"·href="a00973.html#a0e751eeffe45217140e97ea89d65b4d7">···46</a></span><a·class="code·hl_function"·href="a00973.html#a0e751eeffe45217140e97ea89d65b4d7">FileDataSource::FileDataSource</a>(<span·class="keyword">const</span>·<span·class="keywordtype">char</span>*·filename)</div> | ||
101 | <div·class="line"><a·id="l00047"·name="l00047"></a><span·class="lineno">···47</span>····:·d_error(true),·d_bytes(0),·d_size(0)</div> | ||
102 | <div·class="line"><a·id="l0004 | 100 | <div·class="line"><a·id="l00046"·name="l00046"></a><span·class="lineno">···46</span>{</div> |
103 | <div·class="line"><a·id="l0004 | 101 | <div·class="line"><a·id="l00047"·name="l00047"></a><span·class="lineno">···47</span>····<span·class="keywordtype">size_t</span>·depth;</div> |
102 | <div·class="line"><a·id="l00048"·name="l00048"></a><span·class="lineno">···48</span>····<span·class="keywordflow">switch</span>(d_format)</div> | ||
103 | <div·class="line"><a·id="l00049"·name="l00049"></a><span·class="lineno">···49</span>····{</div> | ||
104 | <div·class="line"><a·id="l00050"·name="l00050"></a><span·class="lineno">···50</span>····<span·class="keywordflow"> | 104 | <div·class="line"><a·id="l00050"·name="l00050"></a><span·class="lineno">···50</span>····<span·class="keywordflow">case</span>·PF_A1B5G5R5:</div> |
105 | <div·class="line"><a·id="l00051"·name="l00051"></a><span·class="lineno">···51</span>········depth·=·2;</div> | ||
106 | <div·class="line"><a·id="l00052"·name="l00052"></a><span·class="lineno">···52</span>········<span·class="keywordflow">break</span>;</div> | ||
107 | <div·class="line"><a·id="l00053"·name="l00053"></a><span·class="lineno">···53</span>····<span·class="keywordflow">case</span>·PF_RGB:</div> | ||
108 | <div·class="line"><a·id="l00054"·name="l00054"></a><span·class="lineno">···54</span>········depth·=·3;</div> | ||
109 | <div·class="line"><a·id="l00055"·name="l00055"></a><span·class="lineno">···55</span>········<span·class="keywordflow">break</span>;</div> | ||
110 | <div·class="line"><a·id="l00056"·name="l00056"></a><span·class="lineno">···56</span>····<span·class="keywordflow">case</span>·PF_RGBA:</div> | ||
111 | <div·class="line"><a·id="l00057"·name="l00057"></a><span·class="lineno">···57</span>········depth·=·4;</div> | ||
112 | <div·class="line"><a·id="l00058"·name="l00058"></a><span·class="lineno">···58</span>········<span·class="keywordflow">break</span>;</div> | ||
105 | <div·class="line"><a·id="l0005 | 113 | <div·class="line"><a·id="l00059"·name="l00059"></a><span·class="lineno">···59</span>····}</div> |
106 | <div·class="line"><a·id="l00052"·name="l00052"></a><span·class="lineno">···52</span>········<span·class="keywordtype">long</span>·status·=·fseek(data,·0,·SEEK_END);</div> | ||
107 | <div·class="line"><a·id="l00053"·name="l00053"></a><span·class="lineno">···53</span>········<span·class="keywordflow">if</span>·(status·==·-1)</div> | ||
108 | <div·class="line"><a·id="l00054"·name="l00054"></a><span·class="lineno">···54</span>········{</div> | ||
109 | <div·class="line"><a·id="l00055"·name="l00055"></a><span·class="lineno">···55</span>············fclose(data);</div> | ||
110 | <div·class="line"><a·id="l00056"·name="l00056"></a><span·class="lineno">···56</span>············<span·class="keywordflow">return</span>;</div> | ||
111 | <div·class="line"><a·id="l00057"·name="l00057"></a><span·class="lineno">···57</span>········}</div> | ||
112 | <div·class="line"><a·id="l00058"·name="l00058"></a><span·class="lineno">···58</span>········status··=·ftell(data);</div> | ||
113 | <div·class="line"><a·id="l00059"·name="l00059"></a><span·class="lineno">···59</span>········<span·class="keywordflow">if</span>·(status·==·-1)</div> | ||
114 | <div·class="line"><a·id="l00060"·name="l00060"></a><span·class="lineno">···60</span>······· | 114 | <div·class="line"><a·id="l00060"·name="l00060"></a><span·class="lineno">···60</span>·······</div> |
115 | <div·class="line"><a·id="l00061"·name="l00061"></a><span·class="lineno">···61</span>······ | 115 | <div·class="line"><a·id="l00061"·name="l00061"></a><span·class="lineno">···61</span>····<span·class="comment">//·Do·the·flipping·</span></div> |
116 | <div·class="line"><a·id="l00062"·name="l00062"></a><span·class="lineno">···62</span>····<span·class="keywordtype">byte</span>·*p1,*p2,*tmp;······<span·class="comment">//·tmp·pointers</span></div> | ||
117 | <div·class="line"><a·id="l00063"·name="l00063"></a><span·class="lineno">···63</span>····<span·class="keywordtype">size_t</span>·len·=·d_width·*·depth;·<span·class="comment">//·length·of·horizontal·line·in·bytes</span></div> | ||
118 | <div·class="line"><a·id="l00064"·name="l00064"></a><span·class="lineno">···64</span>····tmp·=·<span·class="keyword">new</span>·<span·class="keywordtype">byte</span>[len];····<span·class="comment">//·Allocate·a·temporary·line</span></div> | ||
116 | <div·class="line"><a·id="l0006 | 119 | <div·class="line"><a·id="l00065"·name="l00065"></a><span·class="lineno">···65</span>····<span·class="keywordflow">if</span>·(·!tmp·)</div> |
120 | <div·class="line"><a·id="l00066"·name="l00066"></a><span·class="lineno">···66</span>········<span·class="keywordflow">return</span>·<span·class="keyword">false</span>;</div> | ||
117 | <div·class="line"><a·id="l0006 | 121 | <div·class="line"><a·id="l00067"·name="l00067"></a><span·class="lineno">···67</span>····</div> |
118 | <div·class="line"><a·id="l00064"·name="l00064"></a><span·class="lineno">···64</span>········d_size·=·status;</div> | ||
119 | <div·class="line"><a·id="l00065"·name="l00065"></a><span·class="lineno">···65</span>········<span·class="keywordflow">if</span>·(d_size)</div> | ||
120 | <div·class="line"><a·id="l00066"·name="l00066"></a><span·class="lineno">···66</span>············d_bytes·=·<span·class="keyword">new</span>·<span·class="keywordtype">byte</span>[d_size];</div> | ||
121 | <div·class="line"><a·id="l0006 | 122 | <div·class="line"><a·id="l00068"·name="l00068"></a><span·class="lineno">···68</span>····<span·class="keywordtype">size_t</span>·y·,·y2;</div> |
122 | <div·class="line"><a·id="l0006 | 123 | <div·class="line"><a·id="l00069"·name="l00069"></a><span·class="lineno">···69</span>····y2·=·d_height·-·1;</div> |
123 | <div·class="line"><a·id="l00069"·name="l00069"></a><span·class="lineno">···69</span>············fclose(data);</div> | ||
124 | <div·class="line"><a·id="l00070"·name="l00070"></a><span·class="lineno">···70</span>···· | 124 | <div·class="line"><a·id="l00070"·name="l00070"></a><span·class="lineno">···70</span>····<span·class="keywordflow">for</span>·(·y·=·0;·y·<·d_height·>>·1;·y++·)</div> |
125 | <div·class="line"><a·id="l00071"·name="l00071"></a><span·class="lineno">···71</span>···· | 125 | <div·class="line"><a·id="l00071"·name="l00071"></a><span·class="lineno">···71</span>····{</div> |
126 | <div·class="line"><a·id="l00072"·name="l00072"></a><span·class="lineno">···72</span>········ | 126 | <div·class="line"><a·id="l00072"·name="l00072"></a><span·class="lineno">···72</span>········p1·=·(d_pixels)·+·len·*·y;</div> |
127 | <div·class="line"><a·id="l00073"·name="l00073"></a><span·class="lineno">···73</span>········status·=·fread(<span·class="keyword">reinterpret_cast<</span><span·class="keywordtype">void</span>*<span·class="keyword">></span>(d_bytes),·1,·d_size,·data);</div> | ||
128 | <div·class="line"><a·id="l0007 | 127 | <div·class="line"><a·id="l00073"·name="l00073"></a><span·class="lineno">···73</span>········p2·=·(d_pixels)·+·len·*·y2;</div> |
128 | <div·class="line"><a·id="l00074"·name="l00074"></a><span·class="lineno">···74</span>········memcpy(·tmp,·p1,·len·);</div> | ||
129 | <div·class="line"><a·id="l00075"·name="l00075"></a><span·class="lineno">···75</span>········memcpy(·p1,·p2,·len·);</div> | ||
130 | <div·class="line"><a·id="l00076"·name="l00076"></a><span·class="lineno">···76</span>········memcpy(·p2,·tmp,·len·);</div> | ||
129 | <div·class="line"><a·id="l0007 | 131 | <div·class="line"><a·id="l00077"·name="l00077"></a><span·class="lineno">···77</span>········y2--;</div> |
130 | <div·class="line"><a·id="l00076"·name="l00076"></a><span·class="lineno">···76</span>············<span·class="keyword">delete</span>·[]·d_bytes;</div> | ||
131 | <div·class="line"><a·id="l00077"·name="l00077"></a><span·class="lineno">···77</span>············d_bytes·=·0;</div> | ||
132 | <div·class="line"><a·id="l00078"·name="l00078"></a><span·class="lineno">···78</span>············fclose(data);</div> | ||
133 | <div·class="line"><a·id="l00079"·name="l00079"></a><span·class="lineno">···79</span>········}</div> | ||
134 | <div·class="line"><a·id="l00080"·name="l00080"></a><span·class="lineno">···80</span>········fclose(data);</div> | ||
135 | <div·class="line"><a·id="l00081"·name="l00081"></a><span·class="lineno">···81</span>········d_error·=·<span·class="keyword">false</span>;········</div> | ||
136 | <div·class="line"><a·id="l000 | 132 | <div·class="line"><a·id="l00078"·name="l00078"></a><span·class="lineno">···78</span>····}</div> |
133 | <div·class="line"><a·id="l00079"·name="l00079"></a><span·class="lineno">···79</span>····<span·class="keyword">delete</span>·[]·tmp;</div> | ||
134 | <div·class="line"><a·id="l00080"·name="l00080"></a><span·class="lineno">···80</span>····<span·class="keywordflow">return</span>·<span·class="keyword">true</span>;</div> | ||
137 | <div·class="line"><a·id="l0008 | 135 | <div·class="line"><a·id="l00081"·name="l00081"></a><span·class="lineno">···81</span>}</div> |
138 | </div> | 136 | </div> |
139 | <div·class="line"><a·id="l0008 | 137 | <div·class="line"><a·id="l00082"·name="l00082"></a><span·class="lineno">···82</span>·</div> |
140 | <div·class="line"><a·id="l0008 | 138 | <div·class="line"><a·id="l00083"·name="l00083"></a><span·class="lineno">···83</span>·</div> |
141 | <div·class="foldopen"·id="foldopen00086"·data-start="{"·data-end="}"> | ||
142 | <div·class="line"><a·id="l00086"·name="l00086"></a><span·class="lineno"><a·class="line"·href="a00973.html#a376d8b1791d5ab33e4c2674b9541901d">···86</a></span><a·class="code·hl_function"·href="a00973.html#a376d8b1791d5ab33e4c2674b9541901d">FileDataSource::~FileDataSource</a>()</div> | ||
143 | <div·class="line"><a·id="l00087"·name="l00087"></a><span·class="lineno">···87</span>{</div> | ||
144 | <div·class="line"><a·id="l00088"·name="l00088"></a><span·class="lineno">···88</span>····<span·class="keyword">delete</span>·[]·d_bytes;</div> | ||
145 | <div·class="line"><a·id="l00089"·name="l00089"></a><span·class="lineno">···89</span>}</div> | ||
Max diff block lines reached; 271/22989 bytes (1.18%) of diff not shown. |
Offset 1, 19 lines modified | Offset 1, 19 lines modified | ||
1 | Simple·Image·Loading·LibrarY 0.1.0 | 1 | Simple·Image·Loading·LibrarY 0.1.0 |
2 | ····*·_\x8b_\x8u_\x8i_\x8l_\x8d | 2 | ····*·_\x8b_\x8u_\x8i_\x8l_\x8d |
3 | ····*·_\x8r_\x8e_\x8p_\x8r_\x8o_\x8d_\x8u_\x8c_\x8i_\x8b_\x8l_\x8e_\x8-_\x8p_\x8a_\x8t_\x8h | 3 | ····*·_\x8r_\x8e_\x8p_\x8r_\x8o_\x8d_\x8u_\x8c_\x8i_\x8b_\x8l_\x8e_\x8-_\x8p_\x8a_\x8t_\x8h |
4 | ····*·_\x8s_\x8i_\x8l_\x8l_\x8y_\x8-_\x80_\x8._\x81_\x8._\x80 | 4 | ····*·_\x8s_\x8i_\x8l_\x8l_\x8y_\x8-_\x80_\x8._\x81_\x8._\x80 |
5 | ····*·_\x8s_\x8r_\x8c | 5 | ····*·_\x8s_\x8r_\x8c |
6 | SILLY | 6 | SILLYImageContext.cpp |
7 | 1/*********************************************************************** | 7 | 1/*********************************************************************** |
8 | 2·filename:·SILLY | 8 | 2·filename:·SILLYImageContext.cpp |
9 | 3·created:· | 9 | 3·created:·10·Jun·2006 |
10 | 4·author:·Olivier·Delannoy | 10 | 4·author:·Olivier·Delannoy |
11 | 5 | 11 | 5 |
12 | 6·purpose:·Implementation· | 12 | 6·purpose:·Implementation·file·for·ImageContext·class |
13 | 7*************************************************************************/ | 13 | 7*************************************************************************/ |
14 | 8/*************************************************************************** | 14 | 8/*************************************************************************** |
15 | 9·*·Copyright·(C)·2004·-·2006·Paul·D·Turner·&·The·CEGUI·Development·Team | 15 | 9·*·Copyright·(C)·2004·-·2006·Paul·D·Turner·&·The·CEGUI·Development·Team |
16 | 10·* | 16 | 10·* |
17 | 11·*·Permission·is·hereby·granted,·free·of·charge,·to·any·person·obtaining | 17 | 11·*·Permission·is·hereby·granted,·free·of·charge,·to·any·person·obtaining |
18 | 12·*·a·copy·of·this·software·and·associated·documentation·files·(the | 18 | 12·*·a·copy·of·this·software·and·associated·documentation·files·(the |
19 | 13·*·"Software"),·to·deal·in·the·Software·without·restriction,·including | 19 | 13·*·"Software"),·to·deal·in·the·Software·without·restriction,·including |
Offset 33, 79 lines modified | Offset 33, 67 lines modified | ||
33 | 27·*·ARISING·FROM,·OUT·OF·OR·IN·CONNECTION·WITH·THE·SOFTWARE·OR·THE·USE·OR | 33 | 27·*·ARISING·FROM,·OUT·OF·OR·IN·CONNECTION·WITH·THE·SOFTWARE·OR·THE·USE·OR |
34 | 28·*·OTHER·DEALINGS·IN·THE·SOFTWARE. | 34 | 28·*·OTHER·DEALINGS·IN·THE·SOFTWARE. |
35 | 29·***************************************************************************/ | 35 | 29·***************************************************************************/ |
36 | 30#ifdef·HAVE_CONFIG_H | 36 | 30#ifdef·HAVE_CONFIG_H |
37 | 31#include·<config.h> | 37 | 31#include·<config.h> |
38 | 32#endif | 38 | 32#endif |
39 | 33 | 39 | 33 |
40 | 34#include·"SILLYImageContext.h" | ||
40 | 34#include·"SILLYFileDataSource.h" | ||
41 | 35 | ||
42 | 3 | 41 | 35#ifndef·SILLY_OPT_INLINE |
43 | 3 | 42 | 36#define·inline |
44 | 3 | 43 | 37#include·"SILLYImageContext.icpp" |
45 | 3 | 44 | 38#undef·inline |
46 | 45 | 39#endif | |
47 | 4 | 46 | 40#include·<cstring> |
48 | 4 | 47 | 41//·Start·section·of·namespace·SILLY |
49 | 4 | 48 | 42namespace·_\x8S_\x8I_\x8L_\x8L_\x8Y |
49 | 43{ | ||
50 | 44 | 50 | 44 |
51 | _\x84_\x85bool·_\x8I_\x8m_\x8a_\x8g_\x8e_\x8C_\x8o_\x8n_\x8t_\x8e_\x8x_\x8t_\x8:_\x8:_\x8f_\x8l_\x8i_\x8p_\x8V_\x8e_\x8r_\x8t_\x8i_\x8c_\x8a_\x8l_\x8l_\x8y() | ||
52 | 46{ | ||
53 | 47·size_t·depth; | ||
54 | 48·switch(d_format) | ||
51 | 45 | ||
52 | _\x84_\x86_\x8F_\x8i_\x8l_\x8e_\x8D_\x8a_\x8t_\x8a_\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8:_\x8:_\x8F_\x8i_\x8l_\x8e_\x8D_\x8a_\x8t_\x8a_\x8S_\x8o_\x8u_\x8r_\x8c_\x8e(const·char*·filename) | ||
53 | 47·:·d_error(true),·d_bytes(0),·d_size(0) | ||
54 | 48{ | ||
55 | 49·FILE*·data·=·fopen(filename,·"rb"); | ||
56 | 50·if·(data) | ||
57 | 51·{ | ||
58 | 52·long·status·=·fseek(data,·0,·SEEK_END); | ||
59 | 53·if·(status·==·-1) | ||
60 | 55 | 49·{ | |
61 | 55·fclose(data); | ||
62 | 5 | 56 | 50·case·PF_A1B5G5R5: |
57 | 51·depth·=·2; | ||
58 | 52·break; | ||
59 | 53·case·PF_RGB: | ||
60 | 54·depth·=·3; | ||
61 | 55·break; | ||
62 | 56·case·PF_RGBA: | ||
63 | 57·depth·=·4; | ||
64 | 58·break; | ||
63 | 5 | 65 | 59·} |
66 | 60 | ||
67 | 61·//·Do·the·flipping | ||
68 | 62·byte·*p1,*p2,*tmp;·//·tmp·pointers | ||
69 | 63·size_t·len·=·d_width·*·depth;·//·length·of·horizontal·line·in·bytes | ||
70 | 64·tmp·=·new·byte[len];·//·Allocate·a·temporary·line | ||
71 | 65·if·(·!tmp·) | ||
72 | 66·return·false; | ||
73 | 67 | ||
74 | 68·size_t·y·,·y2; | ||
75 | 69·y2·=·d_height·-·1; | ||
76 | 70·for·(·y·=·0;·y·<·d_height·>>·1;·y++·) | ||
64 | 58·status·=·ftell(data); | ||
65 | 59·if·(status·==·-1) | ||
66 | 60·{ | ||
67 | 61·fclose(data); | ||
68 | 62·return; | ||
69 | 63·} | ||
70 | 64·d_size·=·status; | ||
71 | 65·if·(d_size) | ||
72 | 66·d_bytes·=·new·byte[d_size]; | ||
73 | 67·if·(!·d_bytes) | ||
74 | 68·{ | ||
75 | 69·fclose(data); | ||
76 | 70·return; | ||
77 | 71· | 77 | 71·{ |
78 | 72·p1·=·(d_pixels)·+·len·*·y; | ||
79 | 73·p2·=·(d_pixels)·+·len·*·y2; | ||
80 | 74·memcpy(·tmp,·p1,·len·); | ||
81 | 75·memcpy(·p1,·p2,·len·); | ||
82 | 76·memcpy(·p2,·tmp,·len·); | ||
83 | 77·y2--; | ||
78 | 72·rewind(data); | ||
79 | 73·status·=·fread(reinterpret_cast<void*>(d_bytes),·1,·d_size,·data); | ||
80 | 74·if·(status·!=·d_size) | ||
81 | 75·{ | ||
82 | 76·delete·[]·d_bytes; | ||
83 | 77·d_bytes·=·0; | ||
84 | 78·fclose(data); | ||
85 | 7 | 84 | 78·} |
86 | 80·fclose(data); | ||
87 | 81·d_error·=·false; | ||
88 | 85 | 79·delete·[]·tmp; | |
86 | 80·return·true; | ||
87 | 81} | ||
88 | 82 | ||
89 | 83 | 89 | 83 |
90 | 84 | ||
91 | 85 | ||
92 | _\x88_\x86_\x8F_\x8i_\x8l_\x8e_\x8D_\x8a_\x8t_\x8a_\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8:_\x8:_\x8~_\x8F_\x8i_\x8l_\x8e_\x8D_\x8a_\x8t_\x8a_\x8S_\x8o_\x8u_\x8r_\x8c_\x8e() | ||
93 | 87{ | ||
94 | 88·delete·[]·d_bytes; | ||
95 | 89} | ||
96 | 90 | ||
97 | 91 | ||
98 | 90 | 84}·//·End·section·of·namespace·SILLY | |
99 | _\x8S_\x8I_\x8L_\x8L_\x8Y | 91 | _\x8S_\x8I_\x8L_\x8L_\x8Y |
100 | Simple·Image·Loading·LibrarY·namespace. | 92 | Simple·Image·Loading·LibrarY·namespace. |
101 | D\x8De\x8ef\x8fi\x8in\x8ni\x8it\x8ti\x8io\x8on\x8n·_\x8S_\x8I_\x8L_\x8L_\x8Y_\x8J_\x8P_\x8G_\x8I_\x8m_\x8a_\x8g_\x8e_\x8C_\x8o_\x8n_\x8t_\x8e_\x8x_\x8t_\x8._\x8c_\x8p_\x8p_\x8:_\x84_\x86 | 93 | D\x8De\x8ef\x8fi\x8in\x8ni\x8it\x8ti\x8io\x8on\x8n·_\x8S_\x8I_\x8L_\x8L_\x8Y_\x8J_\x8P_\x8G_\x8I_\x8m_\x8a_\x8g_\x8e_\x8C_\x8o_\x8n_\x8t_\x8e_\x8x_\x8t_\x8._\x8c_\x8p_\x8p_\x8:_\x84_\x86 |
102 | _\x8S_\x8I_\x8L_\x8L_\x8Y_\x8:_\x8:_\x8F_\x8i_\x8l_\x8e_\x8D_\x8a_\x8t_\x8a_\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8:_\x8:_\x8F_\x8i_\x8l_\x8e_\x8D_\x8a_\x8t_\x8a_\x8S_\x8o_\x8u_\x8r_\x8c_\x8e | ||
103 | FileDataSource(const·char·*filename) | ||
104 | 94 | _.S_.I_.L_.L_.Y_.:_.:_.I_.m_.a_.g_.e_.C_.o_.n_.t_.e_.x_.t_.:_.:_.f_.l_.i_.p_.V_.e_.r_.t_.i_.c_.a_.l_.l_.y | |
95 | bool·flipVertically() | ||
Max diff block lines reached; 53/4776 bytes (1.11%) of diff not shown. |
Offset 1, 15 lines modified | Offset 1, 15 lines modified | ||
1 | <!DOCTYPE·html·PUBLIC·"-//W3C//DTD·XHTML·1.0·Transitional//EN"·"https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> | 1 | <!DOCTYPE·html·PUBLIC·"-//W3C//DTD·XHTML·1.0·Transitional//EN"·"https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> |
2 | <html·xmlns="http://www.w3.org/1999/xhtml"·lang="en-US"> | 2 | <html·xmlns="http://www.w3.org/1999/xhtml"·lang="en-US"> |
3 | <head> | 3 | <head> |
4 | <meta·http-equiv="Content-Type"·content="text/xhtml;charset=UTF-8"/> | 4 | <meta·http-equiv="Content-Type"·content="text/xhtml;charset=UTF-8"/> |
5 | <meta·http-equiv="X-UA-Compatible"·content="IE=11"/> | 5 | <meta·http-equiv="X-UA-Compatible"·content="IE=11"/> |
6 | <meta·name="generator"·content="Doxygen·1.9.8"/> | 6 | <meta·name="generator"·content="Doxygen·1.9.8"/> |
7 | <meta·name="viewport"·content="width=device-width,·initial-scale=1"/> | 7 | <meta·name="viewport"·content="width=device-width,·initial-scale=1"/> |
8 | <title>Simple·Image·Loading·LibrarY:·/build/reproducible-path/silly-0.1.0/include/SILLY. | 8 | <title>Simple·Image·Loading·LibrarY:·/build/reproducible-path/silly-0.1.0/include/SILLYImageContext.icpp·Source·File</title> |
9 | <link·href="tabs.css"·rel="stylesheet"·type="text/css"/> | 9 | <link·href="tabs.css"·rel="stylesheet"·type="text/css"/> |
10 | <script·type="text/javascript"·src="jquery.js"></script> | 10 | <script·type="text/javascript"·src="jquery.js"></script> |
11 | <script·type="text/javascript"·src="dynsections.js"></script> | 11 | <script·type="text/javascript"·src="dynsections.js"></script> |
12 | <link·href="doxygen.css"·rel="stylesheet"·type="text/css"·/> | 12 | <link·href="doxygen.css"·rel="stylesheet"·type="text/css"·/> |
13 | </head> | 13 | </head> |
14 | <body> | 14 | <body> |
15 | <div·id="top"><!--·do·not·remove·this·div,·it·is·closed·by·doxygen!·--> | 15 | <div·id="top"><!--·do·not·remove·this·div,·it·is·closed·by·doxygen!·--> |
Offset 44, 67 lines modified | Offset 44, 121 lines modified | ||
44 | </script> | 44 | </script> |
45 | <div·id="nav-path"·class="navpath"> | 45 | <div·id="nav-path"·class="navpath"> |
46 | ··<ul> | 46 | ··<ul> |
47 | <li·class="navelem"><a·class="el"·href="dir_4fef79e7177ba769987a8da36c892c5f.html">build</a></li><li·class="navelem"><a·class="el"·href="dir_9def6061848686aab7e6212bb499d615.html">reproducible-path</a></li><li·class="navelem"><a·class="el"·href="dir_74170d5b58cefb7cb5a86fc552b183a3.html">silly-0.1.0</a></li><li·class="navelem"><a·class="el"·href="dir_0d87e2e7ddaae8a2a8572c0afc59fe0d.html">include</a></li>··</ul> | 47 | <li·class="navelem"><a·class="el"·href="dir_4fef79e7177ba769987a8da36c892c5f.html">build</a></li><li·class="navelem"><a·class="el"·href="dir_9def6061848686aab7e6212bb499d615.html">reproducible-path</a></li><li·class="navelem"><a·class="el"·href="dir_74170d5b58cefb7cb5a86fc552b183a3.html">silly-0.1.0</a></li><li·class="navelem"><a·class="el"·href="dir_0d87e2e7ddaae8a2a8572c0afc59fe0d.html">include</a></li>··</ul> |
48 | </div> | 48 | </div> |
49 | </div><!--·top·--> | 49 | </div><!--·top·--> |
50 | <div·class="header"> | 50 | <div·class="header"> |
51 | ··<div·class="headertitle"><div·class="title">SILLY. | 51 | ··<div·class="headertitle"><div·class="title">SILLYImageContext.icpp</div></div> |
52 | </div><!--header--> | 52 | </div><!--header--> |
53 | <div·class="contents"> | 53 | <div·class="contents"> |
54 | <div·class="fragment"><div·class="line"><a·id="l00001"·name="l00001"></a><span·class="lineno">····1</span> | 54 | <div·class="fragment"><div·class="line"><a·id="l00001"·name="l00001"></a><span·class="lineno">····1</span>/***********************************************************************</div> |
55 | <div·class="line"><a·id="l00002"·name="l00002"></a><span·class="lineno">····2</span> | 55 | <div·class="line"><a·id="l00002"·name="l00002"></a><span·class="lineno">····2</span>····filename:···SILLYImageContext.icpp·</div> |
56 | <div·class="line"><a·id="l00003"·name="l00003"></a><span·class="lineno">····3</span> | 56 | <div·class="line"><a·id="l00003"·name="l00003"></a><span·class="lineno">····3</span>····created:····10·Jun·2006</div> |
57 | <div·class="line"><a·id="l00004"·name="l00004"></a><span·class="lineno">····4</span> | 57 | <div·class="line"><a·id="l00004"·name="l00004"></a><span·class="lineno">····4</span>····author:·····Olivier·Delannoy</div> |
58 | <div·class="line"><a·id="l00005"·name="l00005"></a><span·class="lineno">····5</span> | 58 | <div·class="line"><a·id="l00005"·name="l00005"></a><span·class="lineno">····5</span>·</div> |
59 | <div·class="line"><a·id="l00006"·name="l00006"></a><span·class="lineno">····6</span> | 59 | <div·class="line"><a·id="l00006"·name="l00006"></a><span·class="lineno">····6</span>····purpose:····Inline·definition·for·ImageContext··</div> |
60 | <div·class="line"><a·id="l00007"·name="l00007"></a><span·class="lineno">····7</span> | 60 | <div·class="line"><a·id="l00007"·name="l00007"></a><span·class="lineno">····7</span>*************************************************************************/</div> |
61 | <div·class="line"><a·id="l00008"·name="l00008"></a><span·class="lineno">····8</span> | 61 | <div·class="line"><a·id="l00008"·name="l00008"></a><span·class="lineno">····8</span>/***************************************************************************</div> |
62 | <div·class="line"><a·id="l00009"·name="l00009"></a><span·class="lineno">····9</span> | 62 | <div·class="line"><a·id="l00009"·name="l00009"></a><span·class="lineno">····9</span>·*···Copyright·(C)·2004·-·2006·Paul·D·Turner·&·The·CEGUI·Development·Team</div> |
63 | <div·class="line"><a·id="l00010"·name="l00010"></a><span·class="lineno">···10</span><span·class="comment">·*</span></div> | ||
64 | <div·class="line"><a·id="l00011"·name="l00011"></a><span·class="lineno">···11</span><span·class="comment">·*···Permission·is·hereby·granted,·free·of·charge,·to·any·person·obtaining</span></div> | ||
65 | <div·class="line"><a·id="l00012"·name="l00012"></a><span·class="lineno">···12</span><span·class="comment">·*···a·copy·of·this·software·and·associated·documentation·files·(the</span></div> | ||
66 | <div·class="line"><a·id="l00013"·name="l00013"></a><span·class="lineno">···13</span><span·class="comment">·*···"Software"),·to·deal·in·the·Software·without·restriction,·including</span></div> | ||
67 | <div·class="line"><a·id="l00014"·name="l00014"></a><span·class="lineno">···14</span><span·class="comment">·*···without·limitation·the·rights·to·use,·copy,·modify,·merge,·publish,</span></div> | ||
68 | <div·class="line"><a·id="l00015"·name="l00015"></a><span·class="lineno">···15</span><span·class="comment">·*···distribute,·sublicense,·and/or·sell·copies·of·the·Software,·and·to</span></div> | ||
69 | <div·class="line"><a·id="l00016"·name="l00016"></a><span·class="lineno">···16</span><span·class="comment">·*···permit·persons·to·whom·the·Software·is·furnished·to·do·so,·subject·to</span></div> | ||
70 | <div·class="line"><a·id="l00017"·name="l00017"></a><span·class="lineno">···17</span><span·class="comment">·*···the·following·conditions:</span></div> | ||
71 | <div·class="line"><a·id="l00018"·name="l00018"></a><span·class="lineno">···18</span><span·class="comment">·*</span></div> | ||
72 | <div·class="line"><a·id="l00019"·name="l00019"></a><span·class="lineno">···19</span><span·class="comment">·*···The·above·copyright·notice·and·this·permission·notice·shall·be</span></div> | ||
73 | <div·class="line"><a·id="l00020"·name="l00020"></a><span·class="lineno">···20</span><span·class="comment">·*···included·in·all·copies·or·substantial·portions·of·the·Software.</span></div> | ||
74 | <div·class="line"><a·id="l00021"·name="l00021"></a><span·class="lineno">···21</span><span·class="comment">·*</span></div> | ||
75 | <div·class="line"><a·id="l00022"·name="l00022"></a><span·class="lineno">···22</span><span·class="comment">·*···THE·SOFTWARE·IS·PROVIDED·"AS·IS",·WITHOUT·WARRANTY·OF·ANY·KIND,</span></div> | ||
76 | <div·class="line"><a·id="l00023"·name="l00023"></a><span·class="lineno">···23</span><span·class="comment">·*···EXPRESS·OR·IMPLIED,·INCLUDING·BUT·NOT·LIMITED·TO·THE·WARRANTIES·OF</span></div> | ||
77 | <div·class="line"><a·id="l00024"·name="l00024"></a><span·class="lineno">···24</span><span·class="comment">·*···MERCHANTABILITY,·FITNESS·FOR·A·PARTICULAR·PURPOSE·AND·NONINFRINGEMENT.</span></div> | ||
78 | <div·class="line"><a·id="l00025"·name="l00025"></a><span·class="lineno">···25</span><span·class="comment">·*···IN·NO·EVENT·SHALL·THE·AUTHORS·BE·LIABLE·FOR·ANY·CLAIM,·DAMAGES·OR</span></div> | ||
79 | <div·class="line"><a·id="l00026"·name="l00026"></a><span·class="lineno">···26</span><span·class="comment">·*···OTHER·LIABILITY,·WHETHER·IN·AN·ACTION·OF·CONTRACT,·TORT·OR·OTHERWISE,</span></div> | ||
80 | <div·class="line"><a·id="l00027"·name="l00027"></a><span·class="lineno">···27</span><span·class="comment">·*···ARISING·FROM,·OUT·OF·OR·IN·CONNECTION·WITH·THE·SOFTWARE·OR·THE·USE·OR</span></div> | ||
81 | <div·class="line"><a·id="l00028"·name="l00028"></a><span·class="lineno">···28</span><span·class="comment">·*···OTHER·DEALINGS·IN·THE·SOFTWARE.</span></div> | ||
82 | <div·class="line"><a·id="l00029"·name="l00029"></a><span·class="lineno">···29</span><span·class="comment">·***************************************************************************/</span></div> | ||
83 | <div·class="line"><a·id="l00030"·name="l00030"></a><span·class="lineno">···30</span><span·class="preprocessor">#ifndef·_SILLY_h_·</span></div> | ||
84 | <div·class="line"><a·id="l00031"·name="l00031"></a><span·class="lineno">···31</span><span·class="preprocessor">#define·_SILLY_h_</span></div> | ||
85 | <div·class="line"><a·id="l00109"·name="l00109"></a><span·class="lineno">··109</span><span·class="keyword">namespace·</span><a·class="code·hl_namespace"·href="a00129.html">SILLY</a></div> | ||
86 | <div·class="line"><a·id="l00 | 63 | <div·class="line"><a·id="l00010"·name="l00010"></a><span·class="lineno">···10</span>·*</div> |
64 | <div·class="line"><a·id="l00011"·name="l00011"></a><span·class="lineno">···11</span>·*···Permission·is·hereby·granted,·free·of·charge,·to·any·person·obtaining</div> | ||
65 | <div·class="line"><a·id="l00012"·name="l00012"></a><span·class="lineno">···12</span>·*···a·copy·of·this·software·and·associated·documentation·files·(the</div> | ||
66 | <div·class="line"><a·id="l00013"·name="l00013"></a><span·class="lineno">···13</span>·*···"Software"),·to·deal·in·the·Software·without·restriction,·including</div> | ||
67 | <div·class="line"><a·id="l00014"·name="l00014"></a><span·class="lineno">···14</span>·*···without·limitation·the·rights·to·use,·copy,·modify,·merge,·publish,</div> | ||
68 | <div·class="line"><a·id="l00015"·name="l00015"></a><span·class="lineno">···15</span>·*···distribute,·sublicense,·and/or·sell·copies·of·the·Software,·and·to</div> | ||
69 | <div·class="line"><a·id="l00016"·name="l00016"></a><span·class="lineno">···16</span>·*···permit·persons·to·whom·the·Software·is·furnished·to·do·so,·subject·to</div> | ||
70 | <div·class="line"><a·id="l00017"·name="l00017"></a><span·class="lineno">···17</span>·*···the·following·conditions:</div> | ||
87 | <div·class="line"><a·id="l00 | 71 | <div·class="line"><a·id="l00018"·name="l00018"></a><span·class="lineno">···18</span>·*</div> |
72 | <div·class="line"><a·id="l00019"·name="l00019"></a><span·class="lineno">···19</span>·*···The·above·copyright·notice·and·this·permission·notice·shall·be</div> | ||
73 | <div·class="line"><a·id="l00020"·name="l00020"></a><span·class="lineno">···20</span>·*···included·in·all·copies·or·substantial·portions·of·the·Software.</div> | ||
74 | <div·class="line"><a·id="l00021"·name="l00021"></a><span·class="lineno">···21</span>·*</div> | ||
75 | <div·class="line"><a·id="l00022"·name="l00022"></a><span·class="lineno">···22</span>·*···THE·SOFTWARE·IS·PROVIDED·"AS·IS",·WITHOUT·WARRANTY·OF·ANY·KIND,</div> | ||
76 | <div·class="line"><a·id="l00023"·name="l00023"></a><span·class="lineno">···23</span>·*···EXPRESS·OR·IMPLIED,·INCLUDING·BUT·NOT·LIMITED·TO·THE·WARRANTIES·OF</div> | ||
77 | <div·class="line"><a·id="l00024"·name="l00024"></a><span·class="lineno">···24</span>·*···MERCHANTABILITY,·FITNESS·FOR·A·PARTICULAR·PURPOSE·AND·NONINFRINGEMENT.</div> | ||
78 | <div·class="line"><a·id="l00025"·name="l00025"></a><span·class="lineno">···25</span>·*···IN·NO·EVENT·SHALL·THE·AUTHORS·BE·LIABLE·FOR·ANY·CLAIM,·DAMAGES·OR</div> | ||
79 | <div·class="line"><a·id="l00026"·name="l00026"></a><span·class="lineno">···26</span>·*···OTHER·LIABILITY,·WHETHER·IN·AN·ACTION·OF·CONTRACT,·TORT·OR·OTHERWISE,</div> | ||
80 | <div·class="line"><a·id="l00027"·name="l00027"></a><span·class="lineno">···27</span>·*···ARISING·FROM,·OUT·OF·OR·IN·CONNECTION·WITH·THE·SOFTWARE·OR·THE·USE·OR</div> | ||
81 | <div·class="line"><a·id="l00028"·name="l00028"></a><span·class="lineno">···28</span>·*···OTHER·DEALINGS·IN·THE·SOFTWARE.</div> | ||
82 | <div·class="line"><a·id="l00029"·name="l00029"></a><span·class="lineno">···29</span>·***************************************************************************/</div> | ||
83 | <div·class="line"><a·id="l00030"·name="l00030"></a><span·class="lineno">···30</span>·</div> | ||
84 | <div·class="line"><a·id="l00031"·name="l00031"></a><span·class="lineno">···31</span>//·Start·of·section·namespace·SILLY</div> | ||
85 | <div·class="line"><a·id="l00032"·name="l00032"></a><span·class="lineno">···32</span>namespace·SILLY</div> | ||
86 | <div·class="line"><a·id="l00033"·name="l00033"></a><span·class="lineno">···33</span>{</div> | ||
87 | <div·class="line"><a·id="l00034"·name="l00034"></a><span·class="lineno">···34</span>·</div> | ||
88 | <div·class="line"><a·id="l00035"·name="l00035"></a><span·class="lineno">···35</span>inline·ImageContext::ImageContext(size_t·width,·size_t·height)</div> | ||
89 | <div·class="line"><a·id="l00036"·name="l00036"></a><span·class="lineno">···36</span>····:·d_pixels(0),·d_length(0),·d_width(width),·d_height(height),·d_currentOffset(0),·d_format(PF_RGBA)·</div> | ||
90 | <div·class="line"><a·id="l00037"·name="l00037"></a><span·class="lineno">···37</span>{</div> | ||
91 | <div·class="line"><a·id="l00038"·name="l00038"></a><span·class="lineno">···38</span>}</div> | ||
92 | <div·class="line"><a·id="l00039"·name="l00039"></a><span·class="lineno">···39</span>·</div> | ||
93 | <div·class="line"><a·id="l00040"·name="l00040"></a><span·class="lineno">···40</span>·</div> | ||
94 | <div·class="line"><a·id="l00041"·name="l00041"></a><span·class="lineno">···41</span>inline·ImageContext::~ImageContext()·</div> | ||
95 | <div·class="line"><a·id="l00042"·name="l00042"></a><span·class="lineno">···42</span>{</div> | ||
96 | <div·class="line"><a·id="l00043"·name="l00043"></a><span·class="lineno">···43</span>}·······</div> | ||
97 | <div·class="line"><a·id="l00044"·name="l00044"></a><span·class="lineno">···44</span>·</div> | ||
98 | <div·class="line"><a·id="l00045"·name="l00045"></a><span·class="lineno">···45</span>·</div> | ||
99 | <div·class="line"><a·id="l00046"·name="l00046"></a><span·class="lineno">···46</span>inline·void·ImageContext::setDestination(byte*·pixels,·size_t·length,·PixelFormat·format)</div> | ||
100 | <div·class="line"><a·id="l00047"·name="l00047"></a><span·class="lineno">···47</span>{</div> | ||
101 | <div·class="line"><a·id="l00048"·name="l00048"></a><span·class="lineno">···48</span>····d_pixels·=·pixels;</div> | ||
102 | <div·class="line"><a·id="l00049"·name="l00049"></a><span·class="lineno">···49</span>····d_length·=·length;</div> | ||
103 | <div·class="line"><a·id="l00050"·name="l00050"></a><span·class="lineno">···50</span>····d_currentOffset·=·0;</div> | ||
104 | <div·class="line"><a·id="l00051"·name="l00051"></a><span·class="lineno">···51</span>····d_format·=·format;</div> | ||
105 | <div·class="line"><a·id="l00052"·name="l00052"></a><span·class="lineno">···52</span>}</div> | ||
106 | <div·class="line"><a·id="l00053"·name="l00053"></a><span·class="lineno">···53</span>·</div> | ||
107 | <div·class="line"><a·id="l00054"·name="l00054"></a><span·class="lineno">···54</span>inline·void·ImageContext::setNextPixel(byte·red,·byte·green,·byte·bleu,·byte·alpha)</div> | ||
108 | <div·class="line"><a·id="l00055"·name="l00055"></a><span·class="lineno">···55</span>{</div> | ||
109 | <div·class="line"><a·id="l00056"·name="l00056"></a><span·class="lineno">···56</span>····//assert(d_currentOffset·<·d_length·&&·"ASSERT:·try·to·set·a·pixel·outside·of·the·image");</div> | ||
110 | <div·class="line"><a·id="l00057"·name="l00057"></a><span·class="lineno">···57</span>····switch(d_format)</div> | ||
111 | <div·class="line"><a·id="l00058"·name="l00058"></a><span·class="lineno">···58</span>····{</div> | ||
112 | <div·class="line"><a·id="l00059"·name="l00059"></a><span·class="lineno">···59</span>····case·PF_A1B5G5R5:</div> | ||
113 | <div·class="line"><a·id="l00060"·name="l00060"></a><span·class="lineno">···60</span>········//·The·hard·part·</div> | ||
114 | <div·class="line"><a·id="l00061"·name="l00061"></a><span·class="lineno">···61</span>········assert(0·&&·"ASSERT:·Not·yet·implemented");</div> | ||
115 | <div·class="line"><a·id="l00062"·name="l00062"></a><span·class="lineno">···62</span>········break;</div> | ||
116 | <div·class="line"><a·id="l00063"·name="l00063"></a><span·class="lineno">···63</span>····case·PF_RGB:</div> | ||
117 | <div·class="line"><a·id="l00064"·name="l00064"></a><span·class="lineno">···64</span>········//·Ignore·alpha·channel·</div> | ||
118 | <div·class="line"><a·id="l00065"·name="l00065"></a><span·class="lineno">···65</span>········d_pixels[d_currentOffset++]·=·red;</div> | ||
119 | <div·class="line"><a·id="l00066"·name="l00066"></a><span·class="lineno">···66</span>········d_pixels[d_currentOffset++]·=·green;</div> | ||
120 | <div·class="line"><a·id="l00067"·name="l00067"></a><span·class="lineno">···67</span>········d_pixels[d_currentOffset++]·=·bleu;</div> | ||
121 | <div·class="line"><a·id="l00068"·name="l00068"></a><span·class="lineno">···68</span>········break;</div> | ||
122 | <div·class="line"><a·id="l00069"·name="l00069"></a><span·class="lineno">···69</span>·</div> | ||
123 | <div·class="line"><a·id="l00070"·name="l00070"></a><span·class="lineno">···70</span>····case·PF_RGBA:····</div> | ||
124 | <div·class="line"><a·id="l00071"·name="l00071"></a><span·class="lineno">···71</span>········d_pixels[d_currentOffset++]·=·red;</div> | ||
125 | <div·class="line"><a·id="l00072"·name="l00072"></a><span·class="lineno">···72</span>········d_pixels[d_currentOffset++]·=·green;</div> | ||
126 | <div·class="line"><a·id="l00073"·name="l00073"></a><span·class="lineno">···73</span>········d_pixels[d_currentOffset++]·=·bleu;</div> | ||
127 | <div·class="line"><a·id="l00074"·name="l00074"></a><span·class="lineno">···74</span>········d_pixels[d_currentOffset++]·=·alpha;</div> | ||
128 | <div·class="line"><a·id="l00075"·name="l00075"></a><span·class="lineno">···75</span>········break;···</div> | ||
129 | <div·class="line"><a·id="l00076"·name="l00076"></a><span·class="lineno">···76</span>····</div> | ||
130 | <div·class="line"><a·id="l00077"·name="l00077"></a><span·class="lineno">···77</span>····}</div> | ||
131 | <div·class="line"><a·id="l00078"·name="l00078"></a><span·class="lineno">···78</span>}</div> | ||
Max diff block lines reached; 271/23044 bytes (1.18%) of diff not shown. |
Offset 1, 19 lines modified | Offset 1, 19 lines modified | ||
1 | Simple·Image·Loading·LibrarY 0.1.0 | 1 | Simple·Image·Loading·LibrarY 0.1.0 |
2 | ····*·_\x8b_\x8u_\x8i_\x8l_\x8d | 2 | ····*·_\x8b_\x8u_\x8i_\x8l_\x8d |
3 | ····*·_\x8r_\x8e_\x8p_\x8r_\x8o_\x8d_\x8u_\x8c_\x8i_\x8b_\x8l_\x8e_\x8-_\x8p_\x8a_\x8t_\x8h | 3 | ····*·_\x8r_\x8e_\x8p_\x8r_\x8o_\x8d_\x8u_\x8c_\x8i_\x8b_\x8l_\x8e_\x8-_\x8p_\x8a_\x8t_\x8h |
4 | ····*·_\x8s_\x8i_\x8l_\x8l_\x8y_\x8-_\x80_\x8._\x81_\x8._\x80 | 4 | ····*·_\x8s_\x8i_\x8l_\x8l_\x8y_\x8-_\x80_\x8._\x81_\x8._\x80 |
5 | ····*·_\x8i_\x8n_\x8c_\x8l_\x8u_\x8d_\x8e | 5 | ····*·_\x8i_\x8n_\x8c_\x8l_\x8u_\x8d_\x8e |
6 | SILLY. | 6 | SILLYImageContext.icpp |
7 | 1/*********************************************************************** | 7 | 1/*********************************************************************** |
8 | 2·filename:·SILLY. | 8 | 2·filename:·SILLYImageContext.icpp |
9 | 3·created:·10·Jun·2006 | 9 | 3·created:·10·Jun·2006 |
10 | 4·author:·Olivier·Delannoy | 10 | 4·author:·Olivier·Delannoy |
11 | 5 | 11 | 5 |
12 | 6·purpose:· | 12 | 6·purpose:·Inline·definition·for·ImageContext |
13 | 7*************************************************************************/ | 13 | 7*************************************************************************/ |
14 | 8/*************************************************************************** | 14 | 8/*************************************************************************** |
15 | 9·*·Copyright·(C)·2004·-·2006·Paul·D·Turner·&·The·CEGUI·Development·Team | 15 | 9·*·Copyright·(C)·2004·-·2006·Paul·D·Turner·&·The·CEGUI·Development·Team |
16 | 10·* | 16 | 10·* |
17 | 11·*·Permission·is·hereby·granted,·free·of·charge,·to·any·person·obtaining | 17 | 11·*·Permission·is·hereby·granted,·free·of·charge,·to·any·person·obtaining |
18 | 12·*·a·copy·of·this·software·and·associated·documentation·files·(the | 18 | 12·*·a·copy·of·this·software·and·associated·documentation·files·(the |
19 | 13·*·"Software"),·to·deal·in·the·Software·without·restriction,·including | 19 | 13·*·"Software"),·to·deal·in·the·Software·without·restriction,·including |
Offset 29, 32 lines modified | Offset 29, 88 lines modified | ||
29 | 23·*·EXPRESS·OR·IMPLIED,·INCLUDING·BUT·NOT·LIMITED·TO·THE·WARRANTIES·OF | 29 | 23·*·EXPRESS·OR·IMPLIED,·INCLUDING·BUT·NOT·LIMITED·TO·THE·WARRANTIES·OF |
30 | 24·*·MERCHANTABILITY,·FITNESS·FOR·A·PARTICULAR·PURPOSE·AND·NONINFRINGEMENT. | 30 | 24·*·MERCHANTABILITY,·FITNESS·FOR·A·PARTICULAR·PURPOSE·AND·NONINFRINGEMENT. |
31 | 25·*·IN·NO·EVENT·SHALL·THE·AUTHORS·BE·LIABLE·FOR·ANY·CLAIM,·DAMAGES·OR | 31 | 25·*·IN·NO·EVENT·SHALL·THE·AUTHORS·BE·LIABLE·FOR·ANY·CLAIM,·DAMAGES·OR |
32 | 26·*·OTHER·LIABILITY,·WHETHER·IN·AN·ACTION·OF·CONTRACT,·TORT·OR·OTHERWISE, | 32 | 26·*·OTHER·LIABILITY,·WHETHER·IN·AN·ACTION·OF·CONTRACT,·TORT·OR·OTHERWISE, |
33 | 27·*·ARISING·FROM,·OUT·OF·OR·IN·CONNECTION·WITH·THE·SOFTWARE·OR·THE·USE·OR | 33 | 27·*·ARISING·FROM,·OUT·OF·OR·IN·CONNECTION·WITH·THE·SOFTWARE·OR·THE·USE·OR |
34 | 28·*·OTHER·DEALINGS·IN·THE·SOFTWARE. | 34 | 28·*·OTHER·DEALINGS·IN·THE·SOFTWARE. |
35 | 29·***************************************************************************/ | 35 | 29·***************************************************************************/ |
36 | 30#ifndef·_SILLY_h_ | ||
37 | 31#define·_SILLY_h_ | ||
38 | 109namespace·_\x8S_\x8I_\x8L_\x8L_\x8Y | ||
39 | 110{ | ||
40 | 36 | 30 | |
37 | 31//·Start·of·section·namespace·SILLY | ||
38 | 32namespace·SILLY | ||
39 | 33{ | ||
40 | 34 | ||
41 | 35inline·ImageContext::ImageContext(size_t·width,·size_t·height) | ||
42 | 36·:·d_pixels(0),·d_length(0),·d_width(width),·d_height(height), | ||
43 | d_currentOffset(0),·d_format(PF_RGBA) | ||
44 | 37{ | ||
45 | 38} | ||
46 | 39 | ||
47 | 40 | ||
48 | 41inline·ImageContext::~ImageContext() | ||
49 | 42{ | ||
50 | 43} | ||
51 | 44 | ||
52 | 45 | ||
53 | 46inline·void·ImageContext::setDestination(byte*·pixels,·size_t·length, | ||
54 | PixelFormat·format) | ||
55 | 47{ | ||
56 | 48·d_pixels·=·pixels; | ||
57 | 49·d_length·=·length; | ||
58 | 50·d_currentOffset·=·0; | ||
59 | 51·d_format·=·format; | ||
60 | 52} | ||
61 | 53 | ||
62 | 54inline·void·ImageContext::setNextPixel(byte·red,·byte·green,·byte·bleu,·byte | ||
63 | alpha) | ||
64 | 55{ | ||
65 | 56·//assert(d_currentOffset·<·d_length·&&·"ASSERT:·try·to·set·a·pixel·outside | ||
66 | of·the·image"); | ||
67 | 57·switch(d_format) | ||
68 | 58·{ | ||
69 | 59·case·PF_A1B5G5R5: | ||
70 | 60·//·The·hard·part | ||
71 | 61·assert(0·&&·"ASSERT:·Not·yet·implemented"); | ||
72 | 62·break; | ||
73 | 63·case·PF_RGB: | ||
74 | 64·//·Ignore·alpha·channel | ||
75 | 65·d_pixels[d_currentOffset++]·=·red; | ||
76 | 66·d_pixels[d_currentOffset++]·=·green; | ||
77 | 67·d_pixels[d_currentOffset++]·=·bleu; | ||
78 | 68·break; | ||
79 | 69 | ||
80 | 70·case·PF_RGBA: | ||
81 | 71·d_pixels[d_currentOffset++]·=·red; | ||
82 | 72·d_pixels[d_currentOffset++]·=·green; | ||
83 | 73·d_pixels[d_currentOffset++]·=·bleu; | ||
84 | 74·d_pixels[d_currentOffset++]·=·alpha; | ||
85 | 75·break; | ||
86 | 76 | ||
87 | 77·} | ||
88 | 78} | ||
89 | 79inline·size_t·ImageContext::getWidth()·const | ||
90 | 80{ | ||
91 | 81·return·d_width; | ||
92 | 82} | ||
93 | 83 | ||
94 | 84inline·void·ImageContext::setWidth(size_t·width) | ||
95 | 85{ | ||
96 | 86·d_width·=·width; | ||
97 | 87} | ||
98 | 88 | ||
99 | 89inline·size_t·ImageContext::getHeight()·const | ||
100 | 90{ | ||
101 | 91·return·d_height; | ||
102 | 92} | ||
103 | 93 | ||
104 | 94inline·void·ImageContext::setHeight(size_t·height) | ||
105 | 95{ | ||
106 | 96·d_height·=·height; | ||
107 | 97} | ||
108 | 98inline·PixelFormat·ImageContext::getPixelFormat()·const | ||
109 | 99{ | ||
110 | 100·return·d_format; | ||
41 | 1 | 111 | 101} |
112 | 102 | ||
113 | 103}·//·End·of·section·namespace·SILLY | ||
114 | 104 | ||
42 | 113 | ||
43 | 114 | ||
44 | 115 | ||
45 | 116 | ||
46 | 117#include·"SILLYBase.h" | ||
47 | 118#include·"SILLYDataSource.h" | ||
48 | 119#include·"SILLYFileDataSource.h" | ||
49 | 120#include·"SILLYMemoryDataSource.h" | ||
50 | 121#include·"SILLYImageLoader.h" | ||
51 | 122#include·"SILLYImageContext.h" | ||
52 | 123#include·"SILLYImageLoaderManager.h" | ||
53 | 124#include·"SILLYImage.h" | ||
54 | 125 | ||
55 | 126#endif·//·end·of·guard·_SILLY_h_ | ||
56 | _\x8S_\x8I_\x8L_\x8L_\x8Y | ||
57 | Simple·Image·Loading·LibrarY·namespace. | ||
58 | D\x8De\x8ef\x8fi\x8in\x8ni\x8it\x8ti\x8io\x8on\x8n·_\x8S_\x8I_\x8L_\x8L_\x8Y_\x8J_\x8P_\x8G_\x8I_\x8m_\x8a_\x8g_\x8e_\x8C_\x8o_\x8n_\x8t_\x8e_\x8x_\x8t_\x8._\x8c_\x8p_\x8p_\x8:_\x84_\x86 | ||
Max diff block lines reached; 53/3927 bytes (1.35%) of diff not shown. |
Offset 1, 15 lines modified | Offset 1, 15 lines modified | ||
1 | <!DOCTYPE·html·PUBLIC·"-//W3C//DTD·XHTML·1.0·Transitional//EN"·"https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> | 1 | <!DOCTYPE·html·PUBLIC·"-//W3C//DTD·XHTML·1.0·Transitional//EN"·"https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> |
2 | <html·xmlns="http://www.w3.org/1999/xhtml"·lang="en-US"> | 2 | <html·xmlns="http://www.w3.org/1999/xhtml"·lang="en-US"> |
3 | <head> | 3 | <head> |
4 | <meta·http-equiv="Content-Type"·content="text/xhtml;charset=UTF-8"/> | 4 | <meta·http-equiv="Content-Type"·content="text/xhtml;charset=UTF-8"/> |
5 | <meta·http-equiv="X-UA-Compatible"·content="IE=11"/> | 5 | <meta·http-equiv="X-UA-Compatible"·content="IE=11"/> |
6 | <meta·name="generator"·content="Doxygen·1.9.8"/> | 6 | <meta·name="generator"·content="Doxygen·1.9.8"/> |
7 | <meta·name="viewport"·content="width=device-width,·initial-scale=1"/> | 7 | <meta·name="viewport"·content="width=device-width,·initial-scale=1"/> |
8 | <title>Simple·Image·Loading·LibrarY:·/build/reproducible-path/silly-0.1.0/include/ | 8 | <title>Simple·Image·Loading·LibrarY:·/build/reproducible-path/silly-0.1.0/include/SILLYBase.h·Source·File</title> |
9 | <link·href="tabs.css"·rel="stylesheet"·type="text/css"/> | 9 | <link·href="tabs.css"·rel="stylesheet"·type="text/css"/> |
10 | <script·type="text/javascript"·src="jquery.js"></script> | 10 | <script·type="text/javascript"·src="jquery.js"></script> |
11 | <script·type="text/javascript"·src="dynsections.js"></script> | 11 | <script·type="text/javascript"·src="dynsections.js"></script> |
12 | <link·href="doxygen.css"·rel="stylesheet"·type="text/css"·/> | 12 | <link·href="doxygen.css"·rel="stylesheet"·type="text/css"·/> |
13 | </head> | 13 | </head> |
14 | <body> | 14 | <body> |
15 | <div·id="top"><!--·do·not·remove·this·div,·it·is·closed·by·doxygen!·--> | 15 | <div·id="top"><!--·do·not·remove·this·div,·it·is·closed·by·doxygen!·--> |
Offset 40, 27 lines modified | Offset 40, 27 lines modified | ||
40 | <script·type="text/javascript"> | 40 | <script·type="text/javascript"> |
41 | /*·@license·magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt·MIT·*/ | 41 | /*·@license·magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt·MIT·*/ |
42 | $(document).ready(function()·{·init_codefold(0);·}); | 42 | $(document).ready(function()·{·init_codefold(0);·}); |
43 | /*·@license-end·*/ | 43 | /*·@license-end·*/ |
44 | </script> | 44 | </script> |
45 | <div·id="nav-path"·class="navpath"> | 45 | <div·id="nav-path"·class="navpath"> |
46 | ··<ul> | 46 | ··<ul> |
47 | <li·class="navelem"><a·class="el"·href="dir_4fef79e7177ba769987a8da36c892c5f.html">build</a></li><li·class="navelem"><a·class="el"·href="dir_9def6061848686aab7e6212bb499d615.html">reproducible-path</a></li><li·class="navelem"><a·class="el"·href="dir_74170d5b58cefb7cb5a86fc552b183a3.html">silly-0.1.0</a></li><li·class="navelem"><a·class="el"·href="dir_0d87e2e7ddaae8a2a8572c0afc59fe0d.html">include</a></li> | 47 | <li·class="navelem"><a·class="el"·href="dir_4fef79e7177ba769987a8da36c892c5f.html">build</a></li><li·class="navelem"><a·class="el"·href="dir_9def6061848686aab7e6212bb499d615.html">reproducible-path</a></li><li·class="navelem"><a·class="el"·href="dir_74170d5b58cefb7cb5a86fc552b183a3.html">silly-0.1.0</a></li><li·class="navelem"><a·class="el"·href="dir_0d87e2e7ddaae8a2a8572c0afc59fe0d.html">include</a></li>··</ul> |
48 | </div> | 48 | </div> |
49 | </div><!--·top·--> | 49 | </div><!--·top·--> |
50 | <div·class="header"> | 50 | <div·class="header"> |
51 | ··<div·class="headertitle"><div·class="title">SILLY | 51 | ··<div·class="headertitle"><div·class="title">SILLYBase.h</div></div> |
52 | </div><!--header--> | 52 | </div><!--header--> |
53 | <div·class="contents"> | 53 | <div·class="contents"> |
54 | <div·class="fragment"><div·class="line"><a·id="l00001"·name="l00001"></a><span·class="lineno">····1</span><span·class="comment">/***********************************************************************</span></div> | 54 | <div·class="fragment"><div·class="line"><a·id="l00001"·name="l00001"></a><span·class="lineno">····1</span><span·class="comment">/***********************************************************************</span></div> |
55 | <div·class="line"><a·id="l00002"·name="l00002"></a><span·class="lineno">····2</span><span·class="comment">····filename:···SILLY | 55 | <div·class="line"><a·id="l00002"·name="l00002"></a><span·class="lineno">····2</span><span·class="comment">····filename:···SILLYBase.h</span></div> |
56 | <div·class="line"><a·id="l00003"·name="l00003"></a><span·class="lineno">····3</span><span·class="comment">····created:···· | 56 | <div·class="line"><a·id="l00003"·name="l00003"></a><span·class="lineno">····3</span><span·class="comment">····created:····2006/06/10</span></div> |
57 | <div·class="line"><a·id="l00004"·name="l00004"></a><span·class="lineno">····4</span><span·class="comment">····author:·····Olivier·Delannoy</span></div> | 57 | <div·class="line"><a·id="l00004"·name="l00004"></a><span·class="lineno">····4</span><span·class="comment">····author:·····Olivier·Delannoy</span></div> |
58 | <div·class="line"><a·id="l00005"·name="l00005"></a><span·class="lineno">····5</span><span·class="comment"></span>·</div> | 58 | <div·class="line"><a·id="l00005"·name="l00005"></a><span·class="lineno">····5</span><span·class="comment"></span>·</div> |
59 | <div·class="line"><a·id="l00006"·name="l00006"></a><span·class="lineno">····6</span><span·class="comment">····purpose:···· | 59 | <div·class="line"><a·id="l00006"·name="l00006"></a><span·class="lineno">····6</span><span·class="comment">····purpose:····Common·header·for·the·SILLY·library·</span></div> |
60 | <div·class="line"><a·id="l00007"·name="l00007"></a><span·class="lineno">····7</span><span·class="comment">*************************************************************************/</span></div> | 60 | <div·class="line"><a·id="l00007"·name="l00007"></a><span·class="lineno">····7</span><span·class="comment">*************************************************************************/</span></div> |
61 | <div·class="line"><a·id="l00008"·name="l00008"></a><span·class="lineno">····8</span><span·class="comment">/***************************************************************************</span></div> | 61 | <div·class="line"><a·id="l00008"·name="l00008"></a><span·class="lineno">····8</span><span·class="comment">/***************************************************************************</span></div> |
62 | <div·class="line"><a·id="l00009"·name="l00009"></a><span·class="lineno">····9</span><span·class="comment">·*···Copyright·(C)·2004·-·2006·Paul·D·Turner·&·The·CEGUI·Development·Team</span></div> | 62 | <div·class="line"><a·id="l00009"·name="l00009"></a><span·class="lineno">····9</span><span·class="comment">·*···Copyright·(C)·2004·-·2006·Paul·D·Turner·&·The·CEGUI·Development·Team</span></div> |
63 | <div·class="line"><a·id="l00010"·name="l00010"></a><span·class="lineno">···10</span><span·class="comment">·*</span></div> | 63 | <div·class="line"><a·id="l00010"·name="l00010"></a><span·class="lineno">···10</span><span·class="comment">·*</span></div> |
64 | <div·class="line"><a·id="l00011"·name="l00011"></a><span·class="lineno">···11</span><span·class="comment">·*···Permission·is·hereby·granted,·free·of·charge,·to·any·person·obtaining</span></div> | 64 | <div·class="line"><a·id="l00011"·name="l00011"></a><span·class="lineno">···11</span><span·class="comment">·*···Permission·is·hereby·granted,·free·of·charge,·to·any·person·obtaining</span></div> |
65 | <div·class="line"><a·id="l00012"·name="l00012"></a><span·class="lineno">···12</span><span·class="comment">·*···a·copy·of·this·software·and·associated·documentation·files·(the</span></div> | 65 | <div·class="line"><a·id="l00012"·name="l00012"></a><span·class="lineno">···12</span><span·class="comment">·*···a·copy·of·this·software·and·associated·documentation·files·(the</span></div> |
66 | <div·class="line"><a·id="l00013"·name="l00013"></a><span·class="lineno">···13</span><span·class="comment">·*···"Software"),·to·deal·in·the·Software·without·restriction,·including</span></div> | 66 | <div·class="line"><a·id="l00013"·name="l00013"></a><span·class="lineno">···13</span><span·class="comment">·*···"Software"),·to·deal·in·the·Software·without·restriction,·including</span></div> |
Offset 76, 58 lines modified | Offset 76, 71 lines modified | ||
76 | <div·class="line"><a·id="l00023"·name="l00023"></a><span·class="lineno">···23</span><span·class="comment">·*···EXPRESS·OR·IMPLIED,·INCLUDING·BUT·NOT·LIMITED·TO·THE·WARRANTIES·OF</span></div> | 76 | <div·class="line"><a·id="l00023"·name="l00023"></a><span·class="lineno">···23</span><span·class="comment">·*···EXPRESS·OR·IMPLIED,·INCLUDING·BUT·NOT·LIMITED·TO·THE·WARRANTIES·OF</span></div> |
77 | <div·class="line"><a·id="l00024"·name="l00024"></a><span·class="lineno">···24</span><span·class="comment">·*···MERCHANTABILITY,·FITNESS·FOR·A·PARTICULAR·PURPOSE·AND·NONINFRINGEMENT.</span></div> | 77 | <div·class="line"><a·id="l00024"·name="l00024"></a><span·class="lineno">···24</span><span·class="comment">·*···MERCHANTABILITY,·FITNESS·FOR·A·PARTICULAR·PURPOSE·AND·NONINFRINGEMENT.</span></div> |
78 | <div·class="line"><a·id="l00025"·name="l00025"></a><span·class="lineno">···25</span><span·class="comment">·*···IN·NO·EVENT·SHALL·THE·AUTHORS·BE·LIABLE·FOR·ANY·CLAIM,·DAMAGES·OR</span></div> | 78 | <div·class="line"><a·id="l00025"·name="l00025"></a><span·class="lineno">···25</span><span·class="comment">·*···IN·NO·EVENT·SHALL·THE·AUTHORS·BE·LIABLE·FOR·ANY·CLAIM,·DAMAGES·OR</span></div> |
79 | <div·class="line"><a·id="l00026"·name="l00026"></a><span·class="lineno">···26</span><span·class="comment">·*···OTHER·LIABILITY,·WHETHER·IN·AN·ACTION·OF·CONTRACT,·TORT·OR·OTHERWISE,</span></div> | 79 | <div·class="line"><a·id="l00026"·name="l00026"></a><span·class="lineno">···26</span><span·class="comment">·*···OTHER·LIABILITY,·WHETHER·IN·AN·ACTION·OF·CONTRACT,·TORT·OR·OTHERWISE,</span></div> |
80 | <div·class="line"><a·id="l00027"·name="l00027"></a><span·class="lineno">···27</span><span·class="comment">·*···ARISING·FROM,·OUT·OF·OR·IN·CONNECTION·WITH·THE·SOFTWARE·OR·THE·USE·OR</span></div> | 80 | <div·class="line"><a·id="l00027"·name="l00027"></a><span·class="lineno">···27</span><span·class="comment">·*···ARISING·FROM,·OUT·OF·OR·IN·CONNECTION·WITH·THE·SOFTWARE·OR·THE·USE·OR</span></div> |
81 | <div·class="line"><a·id="l00028"·name="l00028"></a><span·class="lineno">···28</span><span·class="comment">·*···OTHER·DEALINGS·IN·THE·SOFTWARE.</span></div> | 81 | <div·class="line"><a·id="l00028"·name="l00028"></a><span·class="lineno">···28</span><span·class="comment">·*···OTHER·DEALINGS·IN·THE·SOFTWARE.</span></div> |
82 | <div·class="line"><a·id="l00029"·name="l00029"></a><span·class="lineno">···29</span><span·class="comment">·***************************************************************************/</span></div> | 82 | <div·class="line"><a·id="l00029"·name="l00029"></a><span·class="lineno">···29</span><span·class="comment">·***************************************************************************/</span></div> |
83 | <div·class="line"><a·id="l00030"·name="l00030"></a><span·class="lineno">···30</span><span·class="preprocessor">#ifndef·_SILLY | 83 | <div·class="line"><a·id="l00030"·name="l00030"></a><span·class="lineno">···30</span><span·class="preprocessor">#ifndef·_SILLYBase_h_·</span></div> |
84 | <div·class="line"><a·id="l00031"·name="l00031"></a><span·class="lineno">···31</span><span·class="preprocessor">#define·_SILLY | 84 | <div·class="line"><a·id="l00031"·name="l00031"></a><span·class="lineno">···31</span><span·class="preprocessor">#define·_SILLYBase_h_·</span></div> |
85 | <div·class="line"><a·id="l00032"·name="l00032"></a><span·class="lineno">···32</span><span·class="preprocessor">#include·& | 85 | <div·class="line"><a·id="l00032"·name="l00032"></a><span·class="lineno">···32</span><span·class="preprocessor">#include·<cassert></span></div> |
86 | <div·class="line"><a·id="l00033"·name="l00033"></a><span·class="lineno">···33</span><span·class="preprocessor">#include·& | 86 | <div·class="line"><a·id="l00033"·name="l00033"></a><span·class="lineno">···33</span><span·class="preprocessor">#include·<cstddef></span></div> |
87 | <div·class="line"><a·id="l00034"·name="l00034"></a><span·class="lineno">···34</span><span·class="preprocessor">#include·"SILLYDataSource.h"</span>·</div> | ||
88 | <div·class="line"><a·id="l00035"·name="l00035"></a><span·class="lineno">···35</span><span·class="comment">//·Start·of·section·namespace·SILLY·</span></div> | ||
89 | <div·class="line"><a·id="l00036"·name="l00036"></a><span·class="lineno">···36</span><span·class="keyword">namespace·</span><a·class="code·hl_namespace"·href="a00129.html">SILLY</a></div> | ||
90 | <div·class="line"><a·id="l0003 | 87 | <div·class="line"><a·id="l00034"·name="l00034"></a><span·class="lineno">···34</span>·</div> |
91 | <div·class="foldopen"·id="foldopen00042"·data-start="{"·data-end="};"> | ||
92 | <div·class="line"><a·id="l000 | 88 | <div·class="line"><a·id="l00035"·name="l00035"></a><span·class="lineno">···35</span><span·class="preprocessor">#if·defined(USE_SILLYOPTIONS_H)</span></div> |
89 | <div·class="line"><a·id="l00036"·name="l00036"></a><span·class="lineno">···36</span><span·class="preprocessor">#include·"SILLYOptions.h"</span></div> | ||
90 | <div·class="line"><a·id="l00037"·name="l00037"></a><span·class="lineno">···37</span><span·class="preprocessor">#endif</span></div> | ||
93 | <div·class="line"><a·id="l000 | 91 | <div·class="line"><a·id="l00038"·name="l00038"></a><span·class="lineno">···38</span>·</div> |
92 | <div·class="line"><a·id="l00039"·name="l00039"></a><span·class="lineno">···39</span><span·class="preprocessor">#if·defined(_WIN32)·||·defined(__WIN32__)</span></div> | ||
93 | <div·class="line"><a·id="l00040"·name="l00040"></a><span·class="lineno">···40</span><span·class="preprocessor">#···undef·SILLY_OPT_INLINE·</span><span·class="comment">//·No·inlining·</span></div> | ||
94 | <div·class="line"><a·id="l00041"·name="l00041"></a><span·class="lineno">···41</span><span·class="preprocessor">#···undef·SILLY_BE·</span><span·class="comment">//·Little·Endian·</span></div> | ||
95 | <div·class="line"><a·id="l00042"·name="l00042"></a><span·class="lineno">···42</span><span·class="preprocessor">#···ifdef·SILLY_EXPORTS</span></div> | ||
96 | <div·class="line"><a·id="l00043"·name="l00043"></a><span·class="lineno">···43</span><span·class="preprocessor">#·······define·SILLY_EXPORT·__declspec(dllexport)</span></div> | ||
94 | <div·class="line"><a·id="l00044"·name="l00044"></a><span·class="lineno">···44</span><span·class=" | 97 | <div·class="line"><a·id="l00044"·name="l00044"></a><span·class="lineno">···44</span><span·class="preprocessor">#···else</span></div> |
95 | <div·class="line"><a·id="l00045"·name="l00045"></a><span·class="lineno">···45</span> | 98 | <div·class="line"><a·id="l00045"·name="l00045"></a><span·class="lineno">···45</span><span·class="preprocessor">#·······define·SILLY_EXPORT·__declspec(dllimport)</span></div> |
96 | <div·class="line"><a·id="l00046"·name="l00046"></a><span·class="lineno">···46</span>····</div> | 99 | <div·class="line"><a·id="l00046"·name="l00046"></a><span·class="lineno">···46</span><span·class="preprocessor">#···endif</span></div> |
97 | <div·class="line"><a·id="l00047"·name="l00047"></a><span·class="lineno">···47</span>····<a·class="code·hl_class"·href="a00957.html">~PNGImageLoader</a>();</div> | ||
98 | <div·class="line"><a·id="l0004 | 100 | <div·class="line"><a·id="l00047"·name="l00047"></a><span·class="lineno">···47</span><span·class="preprocessor">#else</span></div> |
99 | <div·class="line"><a·id="l0004 | 101 | <div·class="line"><a·id="l00048"·name="l00048"></a><span·class="lineno">···48</span><span·class="preprocessor">#···define·SILLY_EXPORT</span></div> |
102 | <div·class="line"><a·id="l00049"·name="l00049"></a><span·class="lineno">···49</span><span·class="preprocessor">#endif</span></div> | ||
100 | <div·class="line"><a·id="l00050"·name="l00050"></a><span·class="lineno">···50</span>· | 103 | <div·class="line"><a·id="l00050"·name="l00050"></a><span·class="lineno">···50</span>·</div> |
101 | <div·class="line"><a·id="l00051"·name="l00051"></a><span·class="lineno">···51</span>····<span·class="keywordtype">bool</span>·<a·class="code·hl_function"·href="a00957.html#a4a4d6df5dcc08cb493855fcfc1956fca">loadImageData</a>(<a·class="code·hl_enumeration"·href="a00129.html#aebdd89f22790687ac264c1abd9f7fd38">PixelOrigin</a>·origin,·</div> | ||
102 | <div·class="line"><a·id="l00052"·name="l00052"></a><span·class="lineno">···52</span>·······················<a·class="code·hl_class"·href="a00969.html">DataSource</a>*·data,·</div> | ||
103 | <div·class="line"><a·id="l00053"·name="l00053"></a><span·class="lineno">···53</span>·······················<a·class="code·hl_class"·href="a00981.html">ImageContext</a>*·context);</div> | ||
104 | <div·class="line"><a·id="l0005 | 104 | <div·class="line"><a·id="l00051"·name="l00051"></a><span·class="lineno">···51</span><span·class="comment">//·Start·of·section·namespace·SILLY·</span></div> |
105 | <div·class="line"><a·id="l00052"·name="l00052"></a><span·class="lineno">···52</span><span·class="keyword">namespace·</span><a·class="code·hl_namespace"·href="a00129.html">SILLY</a></div> | ||
106 | <div·class="line"><a·id="l00053"·name="l00053"></a><span·class="lineno">···53</span>{</div> | ||
105 | <div·class="line"><a·id="l0005 | 107 | <div·class="line"><a·id="l00054"·name="l00054"></a><span·class="lineno">···54</span>·</div> |
108 | <div·class="foldopen"·id="foldopen00059"·data-start="{"·data-end="};"> | ||
109 | <div·class="line"><a·id="l00059"·name="l00059"></a><span·class="lineno"><a·class="line"·href="a00129.html#a60883d4958a60b91661e97027a85072a">···59</a></span><span·class="keyword">enum</span>·<a·class="code·hl_enumeration"·href="a00129.html#a60883d4958a60b91661e97027a85072a">PixelFormat</a></div> | ||
110 | <div·class="line"><a·id="l00060"·name="l00060"></a><span·class="lineno">···60</span>{</div> | ||
111 | <div·class="line"><a·id="l00061"·name="l00061"></a><span·class="lineno">···61</span>····PF_A1B5G5R5,····<span·class="comment">//<!·16·bits,·pixel·format·is·A1R5G5B5·(GGGBBBBB,ARRRRRGG·on·disk)</span></div> | ||
112 | <div·class="line"><a·id="l00062"·name="l00062"></a><span·class="lineno">···62</span>····PF_RGB,·········<span·class="comment">//<!·24·bits,·pixel·format·is·8·bits·for·R,·G,·B·</span></div> | ||
113 | <div·class="line"><a·id="l00063"·name="l00063"></a><span·class="lineno">···63</span>····PF_RGBA,········<span·class="comment">//<!·32·bits,·pixel·format·is·8·bits·for·R,·G,·B·and·A·channel·····</span></div> | ||
114 | <div·class="line"><a·id="l00064"·name="l00064"></a><span·class="lineno">···64</span>····PF_ORIGIN,······<span·class="comment">//<!·This·format·is·used·when·the·input·storage·use·a·specific·pixel·format·</span></div> | ||
106 | <div·class="line"><a·id="l000 | 115 | <div·class="line"><a·id="l00065"·name="l00065"></a><span·class="lineno">···65</span>};</div> |
107 | </div> | 116 | </div> |
117 | <div·class="foldopen"·id="foldopen00070"·data-start="{"·data-end="};"> | ||
118 | <div·class="line"><a·id="l00070"·name="l00070"></a><span·class="lineno"><a·class="line"·href="a00129.html#aebdd89f22790687ac264c1abd9f7fd38">···70</a></span><span·class="keyword">enum</span>·<a·class="code·hl_enumeration"·href="a00129.html#aebdd89f22790687ac264c1abd9f7fd38">PixelOrigin</a>·</div> | ||
119 | <div·class="line"><a·id="l00071"·name="l00071"></a><span·class="lineno">···71</span>{</div> | ||
120 | <div·class="line"><a·id="l00072"·name="l00072"></a><span·class="lineno">···72</span>····PO_TOP_LEFT,·····<span·class="comment">//<!·The·resulting·image·origine·is·Top·Left</span></div> | ||
121 | <div·class="line"><a·id="l00073"·name="l00073"></a><span·class="lineno">···73</span>····PO_BOTTOM_LEFT,··<span·class="comment">//<!·The·resulting·image·origine·is·Bottom·Left</span></div> | ||
122 | <div·class="line"><a·id="l00074"·name="l00074"></a><span·class="lineno">···74</span>};</div> | ||
123 | </div> | ||
108 | <div·class="line"><a·id="l000 | 124 | <div·class="line"><a·id="l00075"·name="l00075"></a><span·class="lineno">···75</span>·</div> |
125 | <div·class="line"><a·id="l00080"·name="l00080"></a><span·class="lineno"><a·class="line"·href="a00129.html#a0c8186d9b9b7880309c27230bbb5e69d">···80</a></span><span·class="keyword">typedef</span>·<span·class="keywordtype">unsigned</span>·<span·class="keywordtype">char</span>·<a·class="code·hl_typedef"·href="a00129.html#a0c8186d9b9b7880309c27230bbb5e69d">byte</a>;</div> | ||
126 | <div·class="line"><a·id="l00088"·name="l00088"></a><span·class="lineno">···88</span><span·class="keywordtype">bool</span>·SILLY_EXPORT·<a·class="code·hl_function"·href="a00129.html#a61417e4f09222c4b4b96bfc1cd2b62fe">SILLYInit</a>();</div> | ||
109 | <div·class="line"><a·id="l000 | 127 | <div·class="line"><a·id="l00089"·name="l00089"></a><span·class="lineno">···89</span>·</div> |
128 | <div·class="line"><a·id="l00094"·name="l00094"></a><span·class="lineno">···94</span><span·class="keywordtype">void</span>·SILLY_EXPORT·<a·class="code·hl_function"·href="a00129.html#a33a519b8226fd733e2ef294f894411f9">SILLYCleanup</a>();</div> | ||
129 | <div·class="line"><a·id="l00095"·name="l00095"></a><span·class="lineno">···95</span>·</div> | ||
110 | <div·class="line"><a·id="l000 | 130 | <div·class="line"><a·id="l00096"·name="l00096"></a><span·class="lineno">···96</span>}·<span·class="comment">//·End·of·section·namespace·SILLY·</span></div> |
111 | <div·class="line"><a·id="l000 | 131 | <div·class="line"><a·id="l00097"·name="l00097"></a><span·class="lineno">···97</span>·</div> |
112 | <div·class="line"><a·id="l00061"·name="l00061"></a><span·class="lineno">···61</span><span·class="comment">//·Inclue·inline·function·when·needed·</span></div> | ||
113 | <div·class="line"><a·id="l00062"·name="l00062"></a><span·class="lineno">···62</span><span·class="preprocessor">#ifdef·SILLY_OPT_INLINE</span></div> | ||
114 | <div·class="line"><a·id="l00063"·name="l00063"></a><span·class="lineno">···63</span><span·class="preprocessor">#include·"SILLYPNGImageLoader.icpp"</span></div> | ||
115 | <div·class="line"><a·id="l000 | 132 | <div·class="line"><a·id="l00098"·name="l00098"></a><span·class="lineno">···98</span><span·class="preprocessor">#endif·</span><span·class="comment">//·end·of·guard·_SILLYBase_h_</span></div> |
116 | <div·class="line"><a·id="l000 | 133 | <div·class="line"><a·id="l00099"·name="l00099"></a><span·class="lineno">···99</span>·</div> |
117 | <div·class="line"><a·id="l00066"·name="l00066"></a><span·class="lineno">···66</span><span·class="preprocessor">#endif·</span><span·class="comment">//·end·of·guard·_SILLYPNGImageLoader_h_</span></div> | ||
118 | <div·class="ttc"·id="aa00129_html"><div·class="ttname"><a·href="a00129.html">SILLY</a></div><div·class="ttdoc">Simple·Image·Loading·LibrarY·namespace.</div><div·class="ttdef"><b>Definition</b>·<a·href="a0002 | 134 | <div·class="ttc"·id="aa00129_html"><div·class="ttname"><a·href="a00129.html">SILLY</a></div><div·class="ttdoc">Simple·Image·Loading·LibrarY·namespace.</div><div·class="ttdef"><b>Definition</b>·<a·href="a00023_source.html#l00045">SILLYJPGImageContext.cpp:46</a></div></div> |
135 | <div·class="ttc"·id="aa00129_html_a0c8186d9b9b7880309c27230bbb5e69d"><div·class="ttname"><a·href="a00129.html#a0c8186d9b9b7880309c27230bbb5e69d">SILLY::byte</a></div><div·class="ttdeci">unsigned·char·byte</div><div·class="ttdoc">Typename·for·a·byte.</div><div·class="ttdef"><b>Definition</b>·<a·href="a00044_source.html#l00080">SILLYBase.h:80</a></div></div> | ||
136 | <div·class="ttc"·id="aa00129_html_a33a519b8226fd733e2ef294f894411f9"><div·class="ttname"><a·href="a00129.html#a33a519b8226fd733e2ef294f894411f9">SILLY::SILLYCleanup</a></div><div·class="ttdeci">void·SILLYCleanup()</div><div·class="ttdoc">Cleanup·SILLY·library·internal.</div><div·class="ttdef"><b>Definition</b>·<a·href="a00011_source.html#l00100">SILLYImageLoaderManager.cpp:100</a></div></div> | ||
119 | <div·class="ttc"·id="aa00129_html_a60883d4958a60b91661e97027a85072a"><div·class="ttname"><a·href="a00129.html#a60883d4958a60b91661e97027a85072a">SILLY::PixelFormat</a></div><div·class="ttdeci">PixelFormat</div><div·class="ttdoc">List·all·pixel·format·supported.</div><div·class="ttdef"><b>Definition</b>·<a·href="a00 | 137 | <div·class="ttc"·id="aa00129_html_a60883d4958a60b91661e97027a85072a"><div·class="ttname"><a·href="a00129.html#a60883d4958a60b91661e97027a85072a">SILLY::PixelFormat</a></div><div·class="ttdeci">PixelFormat</div><div·class="ttdoc">List·all·pixel·format·supported.</div><div·class="ttdef"><b>Definition</b>·<a·href="a00044_source.html#l00059">SILLYBase.h:60</a></div></div> |
138 | <div·class="ttc"·id="aa00129_html_a61417e4f09222c4b4b96bfc1cd2b62fe"><div·class="ttname"><a·href="a00129.html#a61417e4f09222c4b4b96bfc1cd2b62fe">SILLY::SILLYInit</a></div><div·class="ttdeci">bool·SILLYInit()</div><div·class="ttdoc">Initialize·the·SILLY·Library.</div><div·class="ttdef"><b>Definition</b>·<a·href="a00011_source.html#l00087">SILLYImageLoaderManager.cpp:87</a></div></div> | ||
120 | <div·class="ttc"·id="aa00129_html_aebdd89f22790687ac264c1abd9f7fd38"><div·class="ttname"><a·href="a00129.html#aebdd89f22790687ac264c1abd9f7fd38">SILLY::PixelOrigin</a></div><div·class="ttdeci">PixelOrigin</div><div·class="ttdoc">List·all·pixel·origin·supported.</div><div·class="ttdef"><b>Definition</b>·<a·href="a00 | 139 | <div·class="ttc"·id="aa00129_html_aebdd89f22790687ac264c1abd9f7fd38"><div·class="ttname"><a·href="a00129.html#aebdd89f22790687ac264c1abd9f7fd38">SILLY::PixelOrigin</a></div><div·class="ttdeci">PixelOrigin</div><div·class="ttdoc">List·all·pixel·origin·supported.</div><div·class="ttdef"><b>Definition</b>·<a·href="a00044_source.html#l00070">SILLYBase.h:71</a></div></div> |
121 | <div·class="ttc"·id="aa00957_html"><div·class="ttname"><a·href="a00957.html">SILLY::PNGImageLoader</a></div><div·class="ttdoc">Loader·for·PNG·Image.</div><div·class="ttdef"><b>Definition</b>·<a·href="a00044_source.html#l00042">SILLYPNGImageLoader.h:43</a></div></div> | ||
122 | <div·class="ttc"·id="aa00957_html_a1f83c2e6e4960b05c1b5bd61b0635f8c"><div·class="ttname"><a·href="a00957.html#a1f83c2e6e4960b05c1b5bd61b0635f8c">SILLY::PNGImageLoader::loadHeader</a></div><div·class="ttdeci">ImageContext·*·loadHeader(PixelFormat·&formatSource,·DataSource·*data)</div><div·class="ttdoc">Parse·the·header·of·the·image·and·fill·the·header·struct.</div><div·class="ttdef"><b>Definition</b>·<a·href="a00032_source.html#l00088">SILLYPNGImageLoader.cpp:88</a></div></div> | ||
123 | <div·class="ttc"·id="aa00957_html_a4a4d6df5dcc08cb493855fcfc1956fca"><div·class="ttname"><a·href="a00957.html#a4a4d6df5dcc08cb493855fcfc1956fca">SILLY::PNGImageLoader::loadImageData</a></div><div·class="ttdeci">bool·loadImageData(PixelOrigin·origin,·DataSource·*data,·ImageContext·*context)</div><div·class="ttdoc">Parse·the·pixels·data·of·the·image·and·fill·the·header·struct.</div><div·class="ttdef"><b>Definition</b>·<a·href="a00032_source.html#l00154">SILLYPNGImageLoader.cpp:154</a></div></div> | ||
124 | <div·class="ttc"·id="aa00969_html"><div·class="ttname"><a·href="a00969.html">SILLY::DataSource</a></div><div·class="ttdoc">This·is·an·abstract·class·used·to·provide·data·to·the·loader.</div><div·class="ttdef"><b>Definition</b>·<a·href="a00101_source.html#l00046">SILLYDataSource.h:47</a></div></div> | ||
125 | <div·class="ttc"·id="aa00981_html"><div·class="ttname"><a·href="a00981.html">SILLY::ImageContext</a></div><div·class="ttdoc">Store·the·data·needed·by·an·ImageLoader·object·during·the·parsing·of·an·image.</div><div·class="ttdef"><b>Definition</b>·<a·href="a00092_source.html#l00043">SILLYImageContext.h:44</a></div></div> | ||
126 | <div·class="ttc"·id="aa00985_html"><div·class="ttname"><a·href="a00985.html">SILLY::ImageLoader</a></div><div·class="ttdoc">This·is·an·abstract·class·that·define·the·interface·of·all·image·loader.</div><div·class="ttdef"><b>Definition</b>·<a·href="a00095_source.html#l00046">SILLYImageLoader.h:47</a></div></div> | ||
127 | </div><!--·fragment·--></div><!--·contents·--> | 140 | </div><!--·fragment·--></div><!--·contents·--> |
Max diff block lines reached; 243/25155 bytes (0.97%) of diff not shown. |
Offset 1, 20 lines modified | Offset 1, 19 lines modified | ||
1 | Simple·Image·Loading·LibrarY 0.1.0 | 1 | Simple·Image·Loading·LibrarY 0.1.0 |
2 | ····*·_\x8b_\x8u_\x8i_\x8l_\x8d | 2 | ····*·_\x8b_\x8u_\x8i_\x8l_\x8d |
3 | ····*·_\x8r_\x8e_\x8p_\x8r_\x8o_\x8d_\x8u_\x8c_\x8i_\x8b_\x8l_\x8e_\x8-_\x8p_\x8a_\x8t_\x8h | 3 | ····*·_\x8r_\x8e_\x8p_\x8r_\x8o_\x8d_\x8u_\x8c_\x8i_\x8b_\x8l_\x8e_\x8-_\x8p_\x8a_\x8t_\x8h |
4 | ····*·_\x8s_\x8i_\x8l_\x8l_\x8y_\x8-_\x80_\x8._\x81_\x8._\x80 | 4 | ····*·_\x8s_\x8i_\x8l_\x8l_\x8y_\x8-_\x80_\x8._\x81_\x8._\x80 |
5 | ····*·_\x8i_\x8n_\x8c_\x8l_\x8u_\x8d_\x8e | 5 | ····*·_\x8i_\x8n_\x8c_\x8l_\x8u_\x8d_\x8e |
6 | SILLYBase.h | ||
6 | ····*·_\x8l_\x8o_\x8a_\x8d_\x8e_\x8r_\x8s | ||
7 | SILLYPNGImageLoader.h | ||
8 | 1/*********************************************************************** | 7 | 1/*********************************************************************** |
9 | 2·filename:·SILLY | 8 | 2·filename:·SILLYBase.h |
10 | 3·created:· | 9 | 3·created:·2006/06/10 |
11 | 4·author:·Olivier·Delannoy | 10 | 4·author:·Olivier·Delannoy |
12 | 5 | 11 | 5 |
13 | 6·purpose:· | 12 | 6·purpose:·Common·header·for·the·SILLY·library |
14 | 7*************************************************************************/ | 13 | 7*************************************************************************/ |
15 | 8/*************************************************************************** | 14 | 8/*************************************************************************** |
16 | 9·*·Copyright·(C)·2004·-·2006·Paul·D·Turner·&·The·CEGUI·Development·Team | 15 | 9·*·Copyright·(C)·2004·-·2006·Paul·D·Turner·&·The·CEGUI·Development·Team |
17 | 10·* | 16 | 10·* |
18 | 11·*·Permission·is·hereby·granted,·free·of·charge,·to·any·person·obtaining | 17 | 11·*·Permission·is·hereby·granted,·free·of·charge,·to·any·person·obtaining |
19 | 12·*·a·copy·of·this·software·and·associated·documentation·files·(the | 18 | 12·*·a·copy·of·this·software·and·associated·documentation·files·(the |
20 | 13·*·"Software"),·to·deal·in·the·Software·without·restriction,·including | 19 | 13·*·"Software"),·to·deal·in·the·Software·without·restriction,·including |
Offset 30, 73 lines modified | Offset 29, 81 lines modified | ||
30 | 23·*·EXPRESS·OR·IMPLIED,·INCLUDING·BUT·NOT·LIMITED·TO·THE·WARRANTIES·OF | 29 | 23·*·EXPRESS·OR·IMPLIED,·INCLUDING·BUT·NOT·LIMITED·TO·THE·WARRANTIES·OF |
31 | 24·*·MERCHANTABILITY,·FITNESS·FOR·A·PARTICULAR·PURPOSE·AND·NONINFRINGEMENT. | 30 | 24·*·MERCHANTABILITY,·FITNESS·FOR·A·PARTICULAR·PURPOSE·AND·NONINFRINGEMENT. |
32 | 25·*·IN·NO·EVENT·SHALL·THE·AUTHORS·BE·LIABLE·FOR·ANY·CLAIM,·DAMAGES·OR | 31 | 25·*·IN·NO·EVENT·SHALL·THE·AUTHORS·BE·LIABLE·FOR·ANY·CLAIM,·DAMAGES·OR |
33 | 26·*·OTHER·LIABILITY,·WHETHER·IN·AN·ACTION·OF·CONTRACT,·TORT·OR·OTHERWISE, | 32 | 26·*·OTHER·LIABILITY,·WHETHER·IN·AN·ACTION·OF·CONTRACT,·TORT·OR·OTHERWISE, |
34 | 27·*·ARISING·FROM,·OUT·OF·OR·IN·CONNECTION·WITH·THE·SOFTWARE·OR·THE·USE·OR | 33 | 27·*·ARISING·FROM,·OUT·OF·OR·IN·CONNECTION·WITH·THE·SOFTWARE·OR·THE·USE·OR |
35 | 28·*·OTHER·DEALINGS·IN·THE·SOFTWARE. | 34 | 28·*·OTHER·DEALINGS·IN·THE·SOFTWARE. |
36 | 29·***************************************************************************/ | 35 | 29·***************************************************************************/ |
37 | 30#ifndef·_SILLY | 36 | 30#ifndef·_SILLYBase_h_ |
38 | 31#define·_SILLY | 37 | 31#define·_SILLYBase_h_ |
38 | 32#include·<cassert> | ||
39 | 33#include·<cstddef> | ||
40 | 34 | ||
41 | 35#if·defined(USE_SILLYOPTIONS_H) | ||
39 | 3 | 42 | 36#include·"SILLYOptions.h" |
40 | 33#include·"SILLYImageLoader.h" | ||
41 | 34#include·"SILLYDataSource.h" | ||
42 | 35//·Start·of·section·namespace·SILLY | ||
43 | 36namespace·_\x8S_\x8I_\x8L_\x8L_\x8Y | ||
44 | 37{ | ||
45 | _\x84_\x82class·_\x8P_\x8N_\x8G_\x8I_\x8m_\x8a_\x8g_\x8e_\x8L_\x8o_\x8a_\x8d_\x8e_\x8r·:·public·_\x8I_\x8m_\x8a_\x8g_\x8e_\x8L_\x8o_\x8a_\x8d_\x8e_\x8r | ||
46 | 43{ | ||
47 | 44public: | ||
48 | 45·_\x8P_\x8N_\x8G_\x8I_\x8m_\x8a_\x8g_\x8e_\x8L_\x8o_\x8a_\x8d_\x8e_\x8r(); | ||
49 | 46 | ||
50 | 47·_\x8~_\x8P_\x8N_\x8G_\x8I_\x8m_\x8a_\x8g_\x8e_\x8L_\x8o_\x8a_\x8d_\x8e_\x8r(); | ||
51 | 48 | ||
52 | 43 | 37#endif | |
44 | 38 | ||
45 | 39#if·defined(_WIN32)·||·defined(__WIN32__) | ||
46 | 40#·undef·SILLY_OPT_INLINE·//·No·inlining | ||
47 | 41#·undef·SILLY_BE·//·Little·Endian | ||
48 | 42#·ifdef·SILLY_EXPORTS | ||
49 | 43#·define·SILLY_EXPORT·__declspec(dllexport) | ||
50 | 44#·else | ||
51 | 45#·define·SILLY_EXPORT·__declspec(dllimport) | ||
52 | 46#·endif | ||
53 | 47#else | ||
54 | 48#·define·SILLY_EXPORT | ||
55 | 49#endif | ||
53 | 50 | 56 | 50 |
54 | 51·bool·_\x8l_\x8o_\x8a_\x8d_\x8I_\x8m_\x8a_\x8g_\x8e_\x8D_\x8a_\x8t_\x8a(_\x8P_\x8i_\x8x_\x8e_\x8l_\x8O_\x8r_\x8i_\x8g_\x8i_\x8n·origin, | ||
55 | 52·_\x8D_\x8a_\x8t_\x8a_\x8S_\x8o_\x8u_\x8r_\x8c_\x8e*·data, | ||
56 | 53·_\x8I_\x8m_\x8a_\x8g_\x8e_\x8C_\x8o_\x8n_\x8t_\x8e_\x8x_\x8t*·context); | ||
57 | 54private: | ||
58 | 5 | 57 | 51//·Start·of·section·namespace·SILLY |
58 | 52namespace·_\x8S_\x8I_\x8L_\x8L_\x8Y | ||
59 | 53{ | ||
60 | 54 | ||
61 | _\x85_\x89enum·_\x8P_\x8i_\x8x_\x8e_\x8l_\x8F_\x8o_\x8r_\x8m_\x8a_\x8t | ||
62 | 60{ | ||
63 | 61·PF_A1B5G5R5,·//<!·16·bits,·pixel·format·is·A1R5G5B5·(GGGBBBBB,ARRRRRGG·on | ||
64 | disk) | ||
65 | 62·PF_RGB,·//<!·24·bits,·pixel·format·is·8·bits·for·R,·G,·B | ||
66 | 63·PF_RGBA,·//<!·32·bits,·pixel·format·is·8·bits·for·R,·G,·B·and·A·channel | ||
67 | 64·PF_ORIGIN,·//<!·This·format·is·used·when·the·input·storage·use·a·specific | ||
68 | pixel·format | ||
59 | 69 | 65}; | |
60 | 57 | ||
61 | 70 | _.7_.0enum·_.P_.i_.x_.e_.l_.O_.r_.i_.g_.i_.n | |
71 | 71{ | ||
72 | 72·PO_TOP_LEFT,·//<!·The·resulting·image·origine·is·Top·Left | ||
73 | 73·PO_BOTTOM_LEFT,·//<!·The·resulting·image·origine·is·Bottom·Left | ||
74 | 74}; | ||
75 | 75 | ||
76 | _\x88_\x80typedef·unsigned·char·_\x8b_\x8y_\x8t_\x8e; | ||
77 | 88bool·SILLY_EXPORT·_\x8S_\x8I_\x8L_\x8L_\x8Y_\x8I_\x8n_\x8i_\x8t(); | ||
78 | 89 | ||
79 | 94void·SILLY_EXPORT·_\x8S_\x8I_\x8L_\x8L_\x8Y_\x8C_\x8l_\x8e_\x8a_\x8n_\x8u_\x8p(); | ||
80 | 95 | ||
62 | 81 | 96}·//·End·of·section·namespace·SILLY | |
82 | 97 | ||
63 | 60 | ||
64 | 61//·Inclue·inline·function·when·needed | ||
65 | 62#ifdef·SILLY_OPT_INLINE | ||
66 | 63#include·"SILLYPNGImageLoader.icpp" | ||
67 | 64#endif | ||
68 | 65 | ||
69 | 83 | 98#endif·//·end·of·guard·_SILLYBase_h_ | |
84 | 99 | ||
70 | _\x8S_\x8I_\x8L_\x8L_\x8Y | 85 | _\x8S_\x8I_\x8L_\x8L_\x8Y |
71 | Simple·Image·Loading·LibrarY·namespace. | 86 | Simple·Image·Loading·LibrarY·namespace. |
72 | D\x8De\x8ef\x8fi\x8in\x8ni\x8it\x8ti\x8io\x8on\x8n·_\x8S_\x8I_\x8L_\x8L_\x8Y_\x8J_\x8P_\x8G_\x8I_\x8m_\x8a_\x8g_\x8e_\x8C_\x8o_\x8n_\x8t_\x8e_\x8x_\x8t_\x8._\x8c_\x8p_\x8p_\x8:_\x84_\x86 | 87 | D\x8De\x8ef\x8fi\x8in\x8ni\x8it\x8ti\x8io\x8on\x8n·_\x8S_\x8I_\x8L_\x8L_\x8Y_\x8J_\x8P_\x8G_\x8I_\x8m_\x8a_\x8g_\x8e_\x8C_\x8o_\x8n_\x8t_\x8e_\x8x_\x8t_\x8._\x8c_\x8p_\x8p_\x8:_\x84_\x86 |
88 | _\x8S_\x8I_\x8L_\x8L_\x8Y_\x8:_\x8:_\x8b_\x8y_\x8t_\x8e | ||
89 | unsigned·char·byte | ||
90 | Typename·for·a·byte. | ||
91 | D\x8De\x8ef\x8fi\x8in\x8ni\x8it\x8ti\x8io\x8on\x8n·_\x8S_\x8I_\x8L_\x8L_\x8Y_\x8B_\x8a_\x8s_\x8e_\x8._\x8h_\x8:_\x88_\x80 | ||
92 | _\x8S_\x8I_\x8L_\x8L_\x8Y_\x8:_\x8:_\x8S_\x8I_\x8L_\x8L_\x8Y_\x8C_\x8l_\x8e_\x8a_\x8n_\x8u_\x8p | ||
93 | void·SILLYCleanup() | ||
94 | Cleanup·SILLY·library·internal. | ||
95 | D\x8De\x8ef\x8fi\x8in\x8ni\x8it\x8ti\x8io\x8on\x8n·_\x8S_\x8I_\x8L_\x8L_\x8Y_\x8I_\x8m_\x8a_\x8g_\x8e_\x8L_\x8o_\x8a_\x8d_\x8e_\x8r_\x8M_\x8a_\x8n_\x8a_\x8g_\x8e_\x8r_\x8._\x8c_\x8p_\x8p_\x8:_\x81_\x80_\x80 | ||
73 | _\x8S_\x8I_\x8L_\x8L_\x8Y_\x8:_\x8:_\x8P_\x8i_\x8x_\x8e_\x8l_\x8F_\x8o_\x8r_\x8m_\x8a_\x8t | 96 | _\x8S_\x8I_\x8L_\x8L_\x8Y_\x8:_\x8:_\x8P_\x8i_\x8x_\x8e_\x8l_\x8F_\x8o_\x8r_\x8m_\x8a_\x8t |
74 | PixelFormat | 97 | PixelFormat |
75 | List·all·pixel·format·supported. | 98 | List·all·pixel·format·supported. |
76 | D\x8De\x8ef\x8fi\x8in\x8ni\x8it\x8ti\x8io\x8on\x8n·_\x8S_\x8I_\x8L_\x8L_\x8Y_\x8B_\x8a_\x8s_\x8e_\x8._\x8h_\x8:_\x86_\x80 | 99 | D\x8De\x8ef\x8fi\x8in\x8ni\x8it\x8ti\x8io\x8on\x8n·_\x8S_\x8I_\x8L_\x8L_\x8Y_\x8B_\x8a_\x8s_\x8e_\x8._\x8h_\x8:_\x86_\x80 |
100 | _\x8S_\x8I_\x8L_\x8L_\x8Y_\x8:_\x8:_\x8S_\x8I_\x8L_\x8L_\x8Y_\x8I_\x8n_\x8i_\x8t | ||
101 | bool·SILLYInit() | ||
102 | Initialize·the·SILLY·Library. | ||
103 | D\x8De\x8ef\x8fi\x8in\x8ni\x8it\x8ti\x8io\x8on\x8n·_\x8S_\x8I_\x8L_\x8L_\x8Y_\x8I_\x8m_\x8a_\x8g_\x8e_\x8L_\x8o_\x8a_\x8d_\x8e_\x8r_\x8M_\x8a_\x8n_\x8a_\x8g_\x8e_\x8r_\x8._\x8c_\x8p_\x8p_\x8:_\x88_\x87 | ||
77 | _\x8S_\x8I_\x8L_\x8L_\x8Y_\x8:_\x8:_\x8P_\x8i_\x8x_\x8e_\x8l_\x8O_\x8r_\x8i_\x8g_\x8i_\x8n | 104 | _\x8S_\x8I_\x8L_\x8L_\x8Y_\x8:_\x8:_\x8P_\x8i_\x8x_\x8e_\x8l_\x8O_\x8r_\x8i_\x8g_\x8i_\x8n |
78 | PixelOrigin | 105 | PixelOrigin |
79 | List·all·pixel·origin·supported. | 106 | List·all·pixel·origin·supported. |
80 | D\x8De\x8ef\x8fi\x8in\x8ni\x8it\x8ti\x8io\x8on\x8n·_\x8S_\x8I_\x8L_\x8L_\x8Y_\x8B_\x8a_\x8s_\x8e_\x8._\x8h_\x8:_\x87_\x81 | 107 | D\x8De\x8ef\x8fi\x8in\x8ni\x8it\x8ti\x8io\x8on\x8n·_\x8S_\x8I_\x8L_\x8L_\x8Y_\x8B_\x8a_\x8s_\x8e_\x8._\x8h_\x8:_\x87_\x81 |
81 | _\x8S_\x8I_\x8L_\x8L_\x8Y_\x8:_\x8:_\x8P_\x8N_\x8G_\x8I_\x8m_\x8a_\x8g_\x8e_\x8L_\x8o_\x8a_\x8d_\x8e_\x8r | ||
82 | Loader·for·PNG·Image. | ||
83 | D\x8De\x8ef\x8fi\x8in\x8ni\x8it\x8ti\x8io\x8on\x8n·_\x8S_\x8I_\x8L_\x8L_\x8Y_\x8P_\x8N_\x8G_\x8I_\x8m_\x8a_\x8g_\x8e_\x8L_\x8o_\x8a_\x8d_\x8e_\x8r_\x8._\x8h_\x8:_\x84_\x83 | ||
Max diff block lines reached; 53/6835 bytes (0.78%) of diff not shown. |
Offset 1, 15 lines modified | Offset 1, 15 lines modified | ||
1 | <!DOCTYPE·html·PUBLIC·"-//W3C//DTD·XHTML·1.0·Transitional//EN"·"https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> | 1 | <!DOCTYPE·html·PUBLIC·"-//W3C//DTD·XHTML·1.0·Transitional//EN"·"https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> |
2 | <html·xmlns="http://www.w3.org/1999/xhtml"·lang="en-US"> | 2 | <html·xmlns="http://www.w3.org/1999/xhtml"·lang="en-US"> |
3 | <head> | 3 | <head> |
4 | <meta·http-equiv="Content-Type"·content="text/xhtml;charset=UTF-8"/> | 4 | <meta·http-equiv="Content-Type"·content="text/xhtml;charset=UTF-8"/> |
5 | <meta·http-equiv="X-UA-Compatible"·content="IE=11"/> | 5 | <meta·http-equiv="X-UA-Compatible"·content="IE=11"/> |
6 | <meta·name="generator"·content="Doxygen·1.9.8"/> | 6 | <meta·name="generator"·content="Doxygen·1.9.8"/> |
7 | <meta·name="viewport"·content="width=device-width,·initial-scale=1"/> | 7 | <meta·name="viewport"·content="width=device-width,·initial-scale=1"/> |
8 | <title>Simple·Image·Loading·LibrarY:·/build/reproducible-path/silly-0.1.0/include/ | 8 | <title>Simple·Image·Loading·LibrarY:·/build/reproducible-path/silly-0.1.0/include/SILLYImage.h·Source·File</title> |
9 | <link·href="tabs.css"·rel="stylesheet"·type="text/css"/> | 9 | <link·href="tabs.css"·rel="stylesheet"·type="text/css"/> |
10 | <script·type="text/javascript"·src="jquery.js"></script> | 10 | <script·type="text/javascript"·src="jquery.js"></script> |
11 | <script·type="text/javascript"·src="dynsections.js"></script> | 11 | <script·type="text/javascript"·src="dynsections.js"></script> |
12 | <link·href="doxygen.css"·rel="stylesheet"·type="text/css"·/> | 12 | <link·href="doxygen.css"·rel="stylesheet"·type="text/css"·/> |
13 | </head> | 13 | </head> |
14 | <body> | 14 | <body> |
15 | <div·id="top"><!--·do·not·remove·this·div,·it·is·closed·by·doxygen!·--> | 15 | <div·id="top"><!--·do·not·remove·this·div,·it·is·closed·by·doxygen!·--> |
Offset 40, 104 lines modified | Offset 40, 130 lines modified | ||
40 | <script·type="text/javascript"> | 40 | <script·type="text/javascript"> |
41 | /*·@license·magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt·MIT·*/ | 41 | /*·@license·magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt·MIT·*/ |
42 | $(document).ready(function()·{·init_codefold(0);·}); | 42 | $(document).ready(function()·{·init_codefold(0);·}); |
43 | /*·@license-end·*/ | 43 | /*·@license-end·*/ |
44 | </script> | 44 | </script> |
45 | <div·id="nav-path"·class="navpath"> | 45 | <div·id="nav-path"·class="navpath"> |
46 | ··<ul> | 46 | ··<ul> |
47 | <li·class="navelem"><a·class="el"·href="dir_4fef79e7177ba769987a8da36c892c5f.html">build</a></li><li·class="navelem"><a·class="el"·href="dir_9def6061848686aab7e6212bb499d615.html">reproducible-path</a></li><li·class="navelem"><a·class="el"·href="dir_74170d5b58cefb7cb5a86fc552b183a3.html">silly-0.1.0</a></li><li·class="navelem"><a·class="el"·href="dir_0d87e2e7ddaae8a2a8572c0afc59fe0d.html">include</a></li> | 47 | <li·class="navelem"><a·class="el"·href="dir_4fef79e7177ba769987a8da36c892c5f.html">build</a></li><li·class="navelem"><a·class="el"·href="dir_9def6061848686aab7e6212bb499d615.html">reproducible-path</a></li><li·class="navelem"><a·class="el"·href="dir_74170d5b58cefb7cb5a86fc552b183a3.html">silly-0.1.0</a></li><li·class="navelem"><a·class="el"·href="dir_0d87e2e7ddaae8a2a8572c0afc59fe0d.html">include</a></li>··</ul> |
48 | </div> | 48 | </div> |
49 | </div><!--·top·--> | 49 | </div><!--·top·--> |
50 | <div·class="header"> | 50 | <div·class="header"> |
51 | ··<div·class="headertitle"><div·class="title">SILLY | 51 | ··<div·class="headertitle"><div·class="title">SILLYImage.h</div></div> |
52 | </div><!--header--> | 52 | </div><!--header--> |
53 | <div·class="contents"> | 53 | <div·class="contents"> |
54 | <div·class="fragment"><div·class="line"><a·id="l00001"·name="l00001"></a><span·class="lineno">····1</span>·</div> | ||
54 | <div·class=" | 55 | <div·class="line"><a·id="l00002"·name="l00002"></a><span·class="lineno">····2</span><span·class="comment">/***********************************************************************</span></div> |
55 | <div·class="line"><a·id="l0000 | 56 | <div·class="line"><a·id="l00003"·name="l00003"></a><span·class="lineno">····3</span><span·class="comment">····filename:···SILLYImage.h</span></div> |
56 | <div·class="line"><a·id="l0000 | 57 | <div·class="line"><a·id="l00004"·name="l00004"></a><span·class="lineno">····4</span><span·class="comment">····created:····10·Jun·2006</span></div> |
57 | <div·class="line"><a·id="l0000 | 58 | <div·class="line"><a·id="l00005"·name="l00005"></a><span·class="lineno">····5</span><span·class="comment">····author:·····Olivier·Delannoy</span></div> |
58 | <div·class="line"><a·id="l0000 | 59 | <div·class="line"><a·id="l00006"·name="l00006"></a><span·class="lineno">····6</span><span·class="comment"></span>·</div> |
59 | <div·class="line"><a·id="l0000 | 60 | <div·class="line"><a·id="l00007"·name="l00007"></a><span·class="lineno">····7</span><span·class="comment">····purpose:····Image·class·definition</span></div> |
60 | <div·class="line"><a·id="l00007"·name="l00007"></a><span·class="lineno">····7</span><span·class="comment">*************************************************************************/</span></div> | ||
61 | <div·class="line"><a·id="l00008"·name="l00008"></a><span·class="lineno">····8</span><span·class="comment"> | 61 | <div·class="line"><a·id="l00008"·name="l00008"></a><span·class="lineno">····8</span><span·class="comment">*************************************************************************/</span></div> |
62 | <div·class="line"><a·id="l00009"·name="l00009"></a><span·class="lineno">····9</span><span·class="comment">/***************************************************************************</span></div> | ||
62 | <div·class="line"><a·id="l000 | 63 | <div·class="line"><a·id="l00010"·name="l00010"></a><span·class="lineno">···10</span><span·class="comment">·*···Copyright·(C)·2004·-·2006·Paul·D·Turner·&·The·CEGUI·Development·Team</span></div> |
63 | <div·class="line"><a·id="l0001 | 64 | <div·class="line"><a·id="l00011"·name="l00011"></a><span·class="lineno">···11</span><span·class="comment">·*</span></div> |
64 | <div·class="line"><a·id="l0001 | 65 | <div·class="line"><a·id="l00012"·name="l00012"></a><span·class="lineno">···12</span><span·class="comment">·*···Permission·is·hereby·granted,·free·of·charge,·to·any·person·obtaining</span></div> |
65 | <div·class="line"><a·id="l0001 | 66 | <div·class="line"><a·id="l00013"·name="l00013"></a><span·class="lineno">···13</span><span·class="comment">·*···a·copy·of·this·software·and·associated·documentation·files·(the</span></div> |
66 | <div·class="line"><a·id="l0001 | 67 | <div·class="line"><a·id="l00014"·name="l00014"></a><span·class="lineno">···14</span><span·class="comment">·*···"Software"),·to·deal·in·the·Software·without·restriction,·including</span></div> |
67 | <div·class="line"><a·id="l0001 | 68 | <div·class="line"><a·id="l00015"·name="l00015"></a><span·class="lineno">···15</span><span·class="comment">·*···without·limitation·the·rights·to·use,·copy,·modify,·merge,·publish,</span></div> |
68 | <div·class="line"><a·id="l0001 | 69 | <div·class="line"><a·id="l00016"·name="l00016"></a><span·class="lineno">···16</span><span·class="comment">·*···distribute,·sublicense,·and/or·sell·copies·of·the·Software,·and·to</span></div> |
69 | <div·class="line"><a·id="l0001 | 70 | <div·class="line"><a·id="l00017"·name="l00017"></a><span·class="lineno">···17</span><span·class="comment">·*···permit·persons·to·whom·the·Software·is·furnished·to·do·so,·subject·to</span></div> |
70 | <div·class="line"><a·id="l0001 | 71 | <div·class="line"><a·id="l00018"·name="l00018"></a><span·class="lineno">···18</span><span·class="comment">·*···the·following·conditions:</span></div> |
71 | <div·class="line"><a·id="l0001 | 72 | <div·class="line"><a·id="l00019"·name="l00019"></a><span·class="lineno">···19</span><span·class="comment">·*</span></div> |
72 | <div·class="line"><a·id="l000 | 73 | <div·class="line"><a·id="l00020"·name="l00020"></a><span·class="lineno">···20</span><span·class="comment">·*···The·above·copyright·notice·and·this·permission·notice·shall·be</span></div> |
73 | <div·class="line"><a·id="l0002 | 74 | <div·class="line"><a·id="l00021"·name="l00021"></a><span·class="lineno">···21</span><span·class="comment">·*···included·in·all·copies·or·substantial·portions·of·the·Software.</span></div> |
74 | <div·class="line"><a·id="l0002 | 75 | <div·class="line"><a·id="l00022"·name="l00022"></a><span·class="lineno">···22</span><span·class="comment">·*</span></div> |
75 | <div·class="line"><a·id="l0002 | 76 | <div·class="line"><a·id="l00023"·name="l00023"></a><span·class="lineno">···23</span><span·class="comment">·*···THE·SOFTWARE·IS·PROVIDED·"AS·IS",·WITHOUT·WARRANTY·OF·ANY·KIND,</span></div> |
76 | <div·class="line"><a·id="l0002 | 77 | <div·class="line"><a·id="l00024"·name="l00024"></a><span·class="lineno">···24</span><span·class="comment">·*···EXPRESS·OR·IMPLIED,·INCLUDING·BUT·NOT·LIMITED·TO·THE·WARRANTIES·OF</span></div> |
77 | <div·class="line"><a·id="l0002 | 78 | <div·class="line"><a·id="l00025"·name="l00025"></a><span·class="lineno">···25</span><span·class="comment">·*···MERCHANTABILITY,·FITNESS·FOR·A·PARTICULAR·PURPOSE·AND·NONINFRINGEMENT.</span></div> |
78 | <div·class="line"><a·id="l0002 | 79 | <div·class="line"><a·id="l00026"·name="l00026"></a><span·class="lineno">···26</span><span·class="comment">·*···IN·NO·EVENT·SHALL·THE·AUTHORS·BE·LIABLE·FOR·ANY·CLAIM,·DAMAGES·OR</span></div> |
79 | <div·class="line"><a·id="l0002 | 80 | <div·class="line"><a·id="l00027"·name="l00027"></a><span·class="lineno">···27</span><span·class="comment">·*···OTHER·LIABILITY,·WHETHER·IN·AN·ACTION·OF·CONTRACT,·TORT·OR·OTHERWISE,</span></div> |
80 | <div·class="line"><a·id="l0002 | 81 | <div·class="line"><a·id="l00028"·name="l00028"></a><span·class="lineno">···28</span><span·class="comment">·*···ARISING·FROM,·OUT·OF·OR·IN·CONNECTION·WITH·THE·SOFTWARE·OR·THE·USE·OR</span></div> |
81 | <div·class="line"><a·id="l0002 | 82 | <div·class="line"><a·id="l00029"·name="l00029"></a><span·class="lineno">···29</span><span·class="comment">·*···OTHER·DEALINGS·IN·THE·SOFTWARE.</span></div> |
82 | <div·class="line"><a·id="l000 | 83 | <div·class="line"><a·id="l00030"·name="l00030"></a><span·class="lineno">···30</span><span·class="comment">·***************************************************************************/</span></div> |
83 | <div·class="line"><a·id="l0003 | 84 | <div·class="line"><a·id="l00031"·name="l00031"></a><span·class="lineno">···31</span><span·class="preprocessor">#ifndef·_SILLYImage_h_·</span></div> |
84 | <div·class="line"><a·id="l0003 | 85 | <div·class="line"><a·id="l00032"·name="l00032"></a><span·class="lineno">···32</span><span·class="preprocessor">#define·_SILLYImage_h_</span></div> |
85 | <div·class="line"><a·id="l0003 | 86 | <div·class="line"><a·id="l00033"·name="l00033"></a><span·class="lineno">···33</span><span·class="preprocessor">#include·"SILLYBase.h"</span>·</div> |
86 | <div·class="line"><a·id="l0003 | 87 | <div·class="line"><a·id="l00034"·name="l00034"></a><span·class="lineno">···34</span><span·class="preprocessor">#include·"SILLYImageContext.h"</span></div> |
87 | <div·class="line"><a·id="l0003 | 88 | <div·class="line"><a·id="l00035"·name="l00035"></a><span·class="lineno">···35</span><span·class="preprocessor">#include·"SILLYDataSource.h"</span></div> |
88 | <div·class="line"><a·id="l0003 | 89 | <div·class="line"><a·id="l00036"·name="l00036"></a><span·class="lineno">···36</span><span·class="preprocessor">#include·"SILLYImageLoader.h"</span>·</div> |
90 | <div·class="line"><a·id="l00037"·name="l00037"></a><span·class="lineno">···37</span>·</div> | ||
89 | <div·class="line"><a·id="l0003 | 91 | <div·class="line"><a·id="l00038"·name="l00038"></a><span·class="lineno">···38</span><span·class="comment">//·Start·of·section·namespace·SILLY·</span></div> |
90 | <div·class="line"><a·id="l0003 | 92 | <div·class="line"><a·id="l00039"·name="l00039"></a><span·class="lineno">···39</span><span·class="keyword">namespace·</span><a·class="code·hl_namespace"·href="a00129.html">SILLY</a></div> |
91 | <div·class="line"><a·id="l000 | 93 | <div·class="line"><a·id="l00040"·name="l00040"></a><span·class="lineno">···40</span>{</div> |
92 | <div·class="line"><a·id="l000 | 94 | <div·class="line"><a·id="l00041"·name="l00041"></a><span·class="lineno">···41</span>·</div> |
93 | <div·class="foldopen"·id="foldopen0004 | 95 | <div·class="foldopen"·id="foldopen00046"·data-start="{"·data-end="};"> |
94 | <div·class="line"><a·id="l0004 | 96 | <div·class="line"><a·id="l00046"·name="l00046"></a><span·class="lineno"><a·class="line"·href="a00977.html">···46</a></span><span·class="keyword">class·</span>SILLY_EXPORT·<a·class="code·hl_class"·href="a00977.html">Image</a></div> |
95 | <div·class="line"><a·id="l0004 | 97 | <div·class="line"><a·id="l00047"·name="l00047"></a><span·class="lineno">···47</span>{</div> |
96 | <div·class="line"><a·id="l0004 | 98 | <div·class="line"><a·id="l00048"·name="l00048"></a><span·class="lineno">···48</span><span·class="keyword">public</span>:</div> |
97 | <div·class="line"><a·id="l000 | 99 | <div·class="line"><a·id="l00055"·name="l00055"></a><span·class="lineno">···55</span>····<a·class="code·hl_class"·href="a00977.html">Image</a>(<a·class="code·hl_class"·href="a00969.html">DataSource</a>&·data);</div> |
98 | <div·class="line"><a·id="l00049"·name="l00049"></a><span·class="lineno">···49</span>····<a·class="code·hl_class"·href="a00953.html">~PNGImageContext</a>();</div> | ||
99 | <div·class="line"><a·id="l00050"·name="l00050"></a><span·class="lineno">···50</span>····</div> | ||
100 | <div·class="line"><a·id="l00051"·name="l00051"></a><span·class="lineno">···51</span>····<span·class="keywordtype">int</span>·read(png_bytep·data,·png_size_t·length);</div> | ||
101 | <div·class="line"><a·id="l00052"·name="l00052"></a><span·class="lineno">···52</span>··</div> | ||
102 | <div·class="line"><a·id="l00053"·name="l00053"></a><span·class="lineno">···53</span>····</div> | ||
103 | <div·class="line"><a·id="l00054"·name="l00054"></a><span·class="lineno">···54</span>····</div> | ||
104 | <div·class="line"><a·id="l00055"·name="l00055"></a><span·class="lineno">···55</span><span·class="keyword">private</span>:</div> | ||
105 | <div·class="line"><a·id="l00056"·name="l00056"></a><span·class="lineno">···56</span>····<span·class="keywordtype">void</span>·setImageSize();</div> | ||
106 | <div·class="line"><a·id="l00057"·name="l00057"></a><span·class="lineno">···57</span>····</div> | ||
107 | <div·class="line"><a·id="l00058"·name="l00058"></a><span·class="lineno">···58</span>····<span·class="keywordtype">size_t</span>·d_offset;</div> | ||
108 | <div·class="line"><a·id="l00059"·name="l00059"></a><span·class="lineno">···59</span>····</div> | ||
109 | <div·class="line"><a·id="l00060"·name="l00060"></a><span·class="lineno">···60</span>····<a·class="code·hl_class"·href="a00969.html">DataSource</a>*·d_data;</div> | ||
110 | <div·class="line"><a·id="l00061"·name="l00061"></a><span·class="lineno">···61</span>····</div> | ||
111 | <div·class="line"><a·id="l00062"·name="l00062"></a><span·class="lineno">···62</span>····png_structp·d_png_ptr;</div> | ||
112 | <div·class="line"><a·id="l000 | 100 | <div·class="line"><a·id="l00056"·name="l00056"></a><span·class="lineno">···56</span>·</div> |
113 | <div·class="line"><a·id="l0006 | 101 | <div·class="line"><a·id="l00061"·name="l00061"></a><span·class="lineno"><a·class="line"·href="a00977.html#a70dc073ff2e26a6752dee2a6d2b609a8">···61</a></span>····<a·class="code·hl_function"·href="a00977.html#a70dc073ff2e26a6752dee2a6d2b609a8">~Image</a>();</div> |
114 | <div·class="line"><a·id="l0006 | 102 | <div·class="line"><a·id="l00062"·name="l00062"></a><span·class="lineno">···62</span>·</div> |
103 | <div·class="line"><a·id="l00067"·name="l00067"></a><span·class="lineno"><a·class="line"·href="a00977.html#a5bc2a781be2586924afce4e4a4ea6697">···67</a></span>····<span·class="keywordtype">bool</span>·<a·class="code·hl_function"·href="a00977.html#a5bc2a781be2586924afce4e4a4ea6697">isValid</a>()·<span·class="keyword">const</span>;</div> | ||
115 | <div·class="line"><a·id="l00066"·name="l00066"></a><span·class="lineno">···66</span>····<span·class="keywordtype">size_t</span>·d_bit_depth;</div> | ||
116 | <div·class="line"><a·id="l00067"·name="l00067"></a><span·class="lineno">···67</span>····<span·class="keywordtype">size_t</span>·d_num_channels;</div> | ||
117 | <div·class="line"><a·id="l00068"·name="l00068"></a><span·class="lineno">···68</span>····</div> | 104 | <div·class="line"><a·id="l00068"·name="l00068"></a><span·class="lineno">···68</span>····</div> |
118 | <div·class="line"><a·id="l00069"·name="l00069"></a><span·class="lineno">···69</span>· | 105 | <div·class="line"><a·id="l00069"·name="l00069"></a><span·class="lineno">···69</span>·</div> |
119 | <div·class="line"><a·id="l0007 | 106 | <div·class="line"><a·id="l00076"·name="l00076"></a><span·class="lineno">···76</span>····<span·class="keywordtype">bool</span>·loadImageHeader();</div> |
120 | <div·class="line"><a·id="l0007 | 107 | <div·class="line"><a·id="l00077"·name="l00077"></a><span·class="lineno">···77</span>·</div> |
108 | <div·class="line"><a·id="l00091"·name="l00091"></a><span·class="lineno">···91</span>····<span·class="keywordtype">bool</span>·loadImageData(<a·class="code·hl_enumeration"·href="a00129.html#a60883d4958a60b91661e97027a85072a">PixelFormat</a>·resultFormat·=·PF_RGBA,·<a·class="code·hl_enumeration"·href="a00129.html#aebdd89f22790687ac264c1abd9f7fd38">PixelOrigin</a>·origin·=·PO_TOP_LEFT);</div> | ||
109 | <div·class="line"><a·id="l00092"·name="l00092"></a><span·class="lineno">···92</span>·</div> | ||
110 | <div·class="line"><a·id="l00097"·name="l00097"></a><span·class="lineno"><a·class="line"·href="a00977.html#aa52477d2dcc839fafe8a8ee5026a2621">···97</a></span>····<span·class="keywordtype">size_t</span>·<a·class="code·hl_function"·href="a00977.html#aa52477d2dcc839fafe8a8ee5026a2621">getWidth</a>()·<span·class="keyword">const</span>;</div> | ||
111 | <div·class="line"><a·id="l00098"·name="l00098"></a><span·class="lineno">···98</span>····</div> | ||
112 | <div·class="line"><a·id="l00103"·name="l00103"></a><span·class="lineno"><a·class="line"·href="a00977.html#afdb56064ac644b85442a915c9fdf19f8">··103</a></span>····<span·class="keywordtype">size_t</span>·<a·class="code·hl_function"·href="a00977.html#afdb56064ac644b85442a915c9fdf19f8">getHeight</a>()·<span·class="keyword">const</span>;</div> | ||
113 | <div·class="line"><a·id="l00104"·name="l00104"></a><span·class="lineno">··104</span>····</div> | ||
114 | <div·class="line"><a·id="l00109"·name="l00109"></a><span·class="lineno"><a·class="line"·href="a00977.html#a0fb19005666b0208bf6565bbef853327">··109</a></span>····<a·class="code·hl_enumeration"·href="a00129.html#a60883d4958a60b91661e97027a85072a">PixelFormat</a>·<a·class="code·hl_function"·href="a00977.html#a0fb19005666b0208bf6565bbef853327">getSourcePixelFormat</a>()·<span·class="keyword">const</span>;</div> | ||
115 | <div·class="line"><a·id="l00110"·name="l00110"></a><span·class="lineno">··110</span>·</div> | ||
116 | <div·class="line"><a·id="l00115"·name="l00115"></a><span·class="lineno"><a·class="line"·href="a00977.html#ad62167a7dc43f898f5ff80dc72f6a2e4">··115</a></span>····<a·class="code·hl_enumeration"·href="a00129.html#a60883d4958a60b91661e97027a85072a">PixelFormat</a>·<a·class="code·hl_function"·href="a00977.html#ad62167a7dc43f898f5ff80dc72f6a2e4">getPixelFormat</a>()·<span·class="keyword">const</span>;</div> | ||
117 | <div·class="line"><a·id="l00116"·name="l00116"></a><span·class="lineno">··116</span>····</div> | ||
118 | <div·class="line"><a·id="l00120"·name="l00120"></a><span·class="lineno"><a·class="line"·href="a00977.html#a36936c9b3cb83ffe6b2b6a603b4c1cf3">··120</a></span>····<span·class="keyword">const</span>·<span·class="keywordtype">byte</span>*·<a·class="code·hl_function"·href="a00977.html#a36936c9b3cb83ffe6b2b6a603b4c1cf3">getPixelsDataPtr</a>()·<span·class="keyword">const</span>;</div> | ||
119 | <div·class="line"><a·id="l00125"·name="l00125"></a><span·class="lineno"><a·class="line"·href="a00977.html#a5db5066bb9efee83299ba2a3d89b610d">··125</a></span>····<span·class="keywordtype">size_t</span>·<a·class="code·hl_function"·href="a00977.html#a5db5066bb9efee83299ba2a3d89b610d">getPixelsDataSize</a>()·<span·class="keyword">const</span>;</div> | ||
120 | <div·class="line"><a·id="l00130"·name="l00130"></a><span·class="lineno"><a·class="line"·href="a00977.html#a2d314109f0f263fc099b70d069a677d5">··130</a></span>····<span·class="keyword">const</span>·<span·class="keywordtype">char</span>*·<a·class="code·hl_function"·href="a00977.html#a2d314109f0f263fc099b70d069a677d5">getLoaderIdentifierString</a>()·<span·class="keyword">const</span>;</div> | ||
121 | <div·class="line"><a·id="l00131"·name="l00131"></a><span·class="lineno">··131</span><span·class="keyword">private</span>:</div> | ||
122 | <div·class="line"><a·id="l00132"·name="l00132"></a><span·class="lineno">··132</span>····<span·class="keywordtype">bool</span>·allocate();</div> | ||
123 | <div·class="line"><a·id="l00133"·name="l00133"></a><span·class="lineno">··133</span>·</div> | ||
124 | <div·class="line"><a·id="l00134"·name="l00134"></a><span·class="lineno">··134</span><span·class="keyword">private</span>:</div> | ||
125 | <div·class="line"><a·id="l00135"·name="l00135"></a><span·class="lineno">··135</span>·</div> | ||
126 | <div·class="line"><a·id="l00136"·name="l00136"></a><span·class="lineno">··136</span>····<span·class="keywordtype">size_t</span>·d_bpp;·························</div> | ||
127 | <div·class="line"><a·id="l00137"·name="l00137"></a><span·class="lineno">··137</span>····<a·class="code·hl_enumeration"·href="a00129.html#a60883d4958a60b91661e97027a85072a">PixelFormat</a>·d_pfSource;·······</div> | ||
128 | <div·class="line"><a·id="l00138"·name="l00138"></a><span·class="lineno">··138</span>····<span·class="keywordtype">byte</span>*·d_pixels;·······················</div> | ||
129 | <div·class="line"><a·id="l00139"·name="l00139"></a><span·class="lineno">··139</span>····<a·class="code·hl_class"·href="a00969.html">DataSource</a>*·d_data;···········</div> | ||
130 | <div·class="line"><a·id="l00140"·name="l00140"></a><span·class="lineno">··140</span>····<a·class="code·hl_class"·href="a00981.html">ImageContext</a>*·d_imageContext;·</div> | ||
131 | <div·class="line"><a·id="l00141"·name="l00141"></a><span·class="lineno">··141</span>····<a·class="code·hl_class"·href="a00985.html">ImageLoader</a>*·d_imageLoader;···</div> | ||
132 | <div·class="line"><a·id="l00142"·name="l00142"></a><span·class="lineno">··142</span>·</div> | ||
133 | <div·class="line"><a·id="l00143"·name="l00143"></a><span·class="lineno">··143</span>····<span·class="comment">//·Disabled·operation</span></div> | ||
Max diff block lines reached; 9345/36759 bytes (25.42%) of diff not shown. |
Offset 1, 100 lines modified | Offset 1, 150 lines modified | ||
1 | Simple·Image·Loading·LibrarY 0.1.0 | 1 | Simple·Image·Loading·LibrarY 0.1.0 |
2 | ····*·_\x8b_\x8u_\x8i_\x8l_\x8d | 2 | ····*·_\x8b_\x8u_\x8i_\x8l_\x8d |
3 | ····*·_\x8r_\x8e_\x8p_\x8r_\x8o_\x8d_\x8u_\x8c_\x8i_\x8b_\x8l_\x8e_\x8-_\x8p_\x8a_\x8t_\x8h | 3 | ····*·_\x8r_\x8e_\x8p_\x8r_\x8o_\x8d_\x8u_\x8c_\x8i_\x8b_\x8l_\x8e_\x8-_\x8p_\x8a_\x8t_\x8h |
4 | ····*·_\x8s_\x8i_\x8l_\x8l_\x8y_\x8-_\x80_\x8._\x81_\x8._\x80 | 4 | ····*·_\x8s_\x8i_\x8l_\x8l_\x8y_\x8-_\x80_\x8._\x81_\x8._\x80 |
5 | ····*·_\x8i_\x8n_\x8c_\x8l_\x8u_\x8d_\x8e | 5 | ····*·_\x8i_\x8n_\x8c_\x8l_\x8u_\x8d_\x8e |
6 | ····*·_\x8l_\x8o_\x8a_\x8d_\x8e_\x8r_\x8s | ||
7 | SILLY | 6 | SILLYImage.h |
7 | 1 | ||
8 | 8 | 2/*********************************************************************** | |
9 | 9 | 3·filename:·SILLYImage.h | |
10 | 10 | 4·created:·10·Jun·2006 | |
11 | 11 | 5·author:·Olivier·Delannoy | |
12 | 5 | ||
13 | 6 | 12 | 6 |
13 | 7·purpose:·Image·class·definition | ||
14 | 14 | 8*************************************************************************/ | |
15 | 15 | 9/*************************************************************************** | |
16 | 16 | 10·*·Copyright·(C)·2004·-·2006·Paul·D·Turner·&·The·CEGUI·Development·Team | |
17 | 1 | 17 | 11·* |
18 | 1 | 18 | 12·*·Permission·is·hereby·granted,·free·of·charge,·to·any·person·obtaining |
19 | 1 | 19 | 13·*·a·copy·of·this·software·and·associated·documentation·files·(the |
20 | 1 | 20 | 14·*·"Software"),·to·deal·in·the·Software·without·restriction,·including |
21 | 1 | 21 | 15·*·without·limitation·the·rights·to·use,·copy,·modify,·merge,·publish, |
22 | 1 | 22 | 16·*·distribute,·sublicense,·and/or·sell·copies·of·the·Software,·and·to |
23 | 1 | 23 | 17·*·permit·persons·to·whom·the·Software·is·furnished·to·do·so,·subject·to |
24 | 1 | 24 | 18·*·the·following·conditions: |
25 | 1 | 25 | 19·* |
26 | 26 | 20·*·The·above·copyright·notice·and·this·permission·notice·shall·be | |
27 | 2 | 27 | 21·*·included·in·all·copies·or·substantial·portions·of·the·Software. |
28 | 2 | 28 | 22·* |
29 | 2 | 29 | 23·*·THE·SOFTWARE·IS·PROVIDED·"AS·IS",·WITHOUT·WARRANTY·OF·ANY·KIND, |
30 | 2 | 30 | 24·*·EXPRESS·OR·IMPLIED,·INCLUDING·BUT·NOT·LIMITED·TO·THE·WARRANTIES·OF |
31 | 2 | 31 | 25·*·MERCHANTABILITY,·FITNESS·FOR·A·PARTICULAR·PURPOSE·AND·NONINFRINGEMENT. |
32 | 2 | 32 | 26·*·IN·NO·EVENT·SHALL·THE·AUTHORS·BE·LIABLE·FOR·ANY·CLAIM,·DAMAGES·OR |
33 | 2 | 33 | 27·*·OTHER·LIABILITY,·WHETHER·IN·AN·ACTION·OF·CONTRACT,·TORT·OR·OTHERWISE, |
34 | 2 | 34 | 28·*·ARISING·FROM,·OUT·OF·OR·IN·CONNECTION·WITH·THE·SOFTWARE·OR·THE·USE·OR |
35 | 2 | 35 | 29·*·OTHER·DEALINGS·IN·THE·SOFTWARE. |
36 | 36 | 30·***************************************************************************/ | |
37 | 3 | 37 | 31#ifndef·_SILLYImage_h_ |
38 | 3 | 38 | 32#define·_SILLYImage_h_ |
39 | 3 | 39 | 33#include·"SILLYBase.h" |
40 | 3 | 40 | 34#include·"SILLYImageContext.h" |
41 | 3 | 41 | 35#include·"SILLYDataSource.h" |
42 | 3 | 42 | 36#include·"SILLYImageLoader.h" |
43 | 37 | ||
43 | 3 | 44 | 38//·Start·of·section·namespace·SILLY |
44 | 3 | 45 | 39namespace·_\x8S_\x8I_\x8L_\x8L_\x8Y |
45 | 38{ | ||
46 | 39 | ||
47 | _\x84_\x85class·SILLY_EXPORT·_\x8P_\x8N_\x8G_\x8I_\x8m_\x8a_\x8g_\x8e_\x8C_\x8o_\x8n_\x8t_\x8e_\x8x_\x8t·:·public·_\x8I_\x8m_\x8a_\x8g_\x8e_\x8C_\x8o_\x8n_\x8t_\x8e_\x8x_\x8t | ||
48 | 4 | 46 | 40{ |
47 | 41 | ||
48 | _\x84_\x86class·SILLY_EXPORT·_\x8I_\x8m_\x8a_\x8g_\x8e | ||
49 | 47{ | ||
49 | 4 | 50 | 48public: |
50 | 51 | 55·_.I_.m_.a_.g_.e(_.D_.a_.t_.a_.S_.o_.u_.r_.c_.e&·data); | |
52 | 56 | ||
53 | _\x86_\x81·_\x8~_\x8I_\x8m_\x8a_\x8g_\x8e(); | ||
54 | 62 | ||
55 | _\x86_\x87·bool·_\x8i_\x8s_\x8V_\x8a_\x8l_\x8i_\x8d()·const; | ||
51 | 49·_\x8~_\x8P_\x8N_\x8G_\x8I_\x8m_\x8a_\x8g_\x8e_\x8C_\x8o_\x8n_\x8t_\x8e_\x8x_\x8t(); | ||
52 | 50 | ||
53 | 51·int·read(png_bytep·data,·png_size_t·length); | ||
54 | 52 | ||
55 | 53 | ||
56 | 54 | ||
57 | 55private: | ||
58 | 56·void·setImageSize(); | ||
59 | 57 | ||
60 | 58·size_t·d_offset; | ||
61 | 59 | ||
62 | 60·_\x8D_\x8a_\x8t_\x8a_\x8S_\x8o_\x8u_\x8r_\x8c_\x8e*·d_data; | ||
63 | 61 | ||
64 | 62·png_structp·d_png_ptr; | ||
65 | 63 | ||
66 | 64·png_infop·d_info_ptr; | ||
67 | 65 | ||
68 | 66·size_t·d_bit_depth; | ||
69 | 67·size_t·d_num_channels; | ||
70 | 68 | 56 | 68 |
71 | 69 | 57 | 69 |
72 | 70·friend·class·_\x8P_\x8N_\x8G_\x8I_\x8m_\x8a_\x8g_\x8e_\x8L_\x8o_\x8a_\x8d_\x8e_\x8r; | ||
73 | 71}; | ||
74 | 72 | ||
75 | 7 | 58 | 76·bool·loadImageHeader(); |
59 | 77 | ||
60 | 91·bool·loadImageData(_\x8P_\x8i_\x8x_\x8e_\x8l_\x8F_\x8o_\x8r_\x8m_\x8a_\x8t·resultFormat·=·PF_RGBA,·_\x8P_\x8i_\x8x_\x8e_\x8l_\x8O_\x8r_\x8i_\x8g_\x8i_\x8n·origin·= | ||
61 | PO_TOP_LEFT); | ||
62 | 92 | ||
63 | _\x89_\x87·size_t·_\x8g_\x8e_\x8t_\x8W_\x8i_\x8d_\x8t_\x8h()·const; | ||
64 | 98 | ||
65 | _\x81_\x80_\x83·size_t·_\x8g_\x8e_\x8t_\x8H_\x8e_\x8i_\x8g_\x8h_\x8t()·const; | ||
66 | 104 | ||
67 | _\x81_\x80_\x89·_\x8P_\x8i_\x8x_\x8e_\x8l_\x8F_\x8o_\x8r_\x8m_\x8a_\x8t·_\x8g_\x8e_\x8t_\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8P_\x8i_\x8x_\x8e_\x8l_\x8F_\x8o_\x8r_\x8m_\x8a_\x8t()·const; | ||
68 | 110 | ||
69 | _\x81_\x81_\x85·_\x8P_\x8i_\x8x_\x8e_\x8l_\x8F_\x8o_\x8r_\x8m_\x8a_\x8t·_\x8g_\x8e_\x8t_\x8P_\x8i_\x8x_\x8e_\x8l_\x8F_\x8o_\x8r_\x8m_\x8a_\x8t()·const; | ||
70 | 116 | ||
71 | _\x81_\x82_\x80·const·byte*·_\x8g_\x8e_\x8t_\x8P_\x8i_\x8x_\x8e_\x8l_\x8s_\x8D_\x8a_\x8t_\x8a_\x8P_\x8t_\x8r()·const; | ||
72 | _\x81_\x82_\x85·size_t·_\x8g_\x8e_\x8t_\x8P_\x8i_\x8x_\x8e_\x8l_\x8s_\x8D_\x8a_\x8t_\x8a_\x8S_\x8i_\x8z_\x8e()·const; | ||
73 | _\x81_\x83_\x80·const·char*·_\x8g_\x8e_\x8t_\x8L_\x8o_\x8a_\x8d_\x8e_\x8r_\x8I_\x8d_\x8e_\x8n_\x8t_\x8i_\x8f_\x8i_\x8e_\x8r_\x8S_\x8t_\x8r_\x8i_\x8n_\x8g()·const; | ||
74 | 131private: | ||
75 | 132·bool·allocate(); | ||
76 | 133 | ||
77 | 134private: | ||
78 | 135 | ||
79 | 136·size_t·d_bpp; | ||
80 | 137·_\x8P_\x8i_\x8x_\x8e_\x8l_\x8F_\x8o_\x8r_\x8m_\x8a_\x8t·d_pfSource; | ||
81 | 138·byte*·d_pixels; | ||
82 | 139·_\x8D_\x8a_\x8t_\x8a_\x8S_\x8o_\x8u_\x8r_\x8c_\x8e*·d_data; | ||
83 | 140·_\x8I_\x8m_\x8a_\x8g_\x8e_\x8C_\x8o_\x8n_\x8t_\x8e_\x8x_\x8t*·d_imageContext; | ||
84 | 141·_\x8I_\x8m_\x8a_\x8g_\x8e_\x8L_\x8o_\x8a_\x8d_\x8e_\x8r*·d_imageLoader; | ||
85 | 142 | ||
86 | 143·//·Disabled·operation | ||
87 | 144·_\x8I_\x8m_\x8a_\x8g_\x8e(_\x8I_\x8m_\x8a_\x8g_\x8e&); | ||
88 | 145·_\x8I_\x8m_\x8a_\x8g_\x8e&·operator=(_\x8I_\x8m_\x8a_\x8g_\x8e&); | ||
89 | 146}; | ||
90 | 147 | ||
76 | 91 | 148}·//·End·of·section·namespace·SILLY | |
77 | 92 | 149 | |
78 | 93 | 150//·Inclue·inline·function·when·needed | |
79 | 94 | 151#ifdef·SILLY_OPT_INLINE | |
80 | 95 | 152#include·"SILLYImage.icpp" | |
81 | 79#endif | ||
82 | 96 | 153#endif | |
97 | 154 | ||
83 | 98 | 155#endif·//·end·of·guard·_SILLYImage_h_ | |
84 | _\x8S_\x8I_\x8L_\x8L_\x8Y | 99 | _\x8S_\x8I_\x8L_\x8L_\x8Y |
Max diff block lines reached; 3238/9847 bytes (32.88%) of diff not shown. |
Offset 1, 15 lines modified | Offset 1, 15 lines modified | ||
1 | <!DOCTYPE·html·PUBLIC·"-//W3C//DTD·XHTML·1.0·Transitional//EN"·"https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> | 1 | <!DOCTYPE·html·PUBLIC·"-//W3C//DTD·XHTML·1.0·Transitional//EN"·"https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> |
2 | <html·xmlns="http://www.w3.org/1999/xhtml"·lang="en-US"> | 2 | <html·xmlns="http://www.w3.org/1999/xhtml"·lang="en-US"> |
3 | <head> | 3 | <head> |
4 | <meta·http-equiv="Content-Type"·content="text/xhtml;charset=UTF-8"/> | 4 | <meta·http-equiv="Content-Type"·content="text/xhtml;charset=UTF-8"/> |
5 | <meta·http-equiv="X-UA-Compatible"·content="IE=11"/> | 5 | <meta·http-equiv="X-UA-Compatible"·content="IE=11"/> |
6 | <meta·name="generator"·content="Doxygen·1.9.8"/> | 6 | <meta·name="generator"·content="Doxygen·1.9.8"/> |
7 | <meta·name="viewport"·content="width=device-width,·initial-scale=1"/> | 7 | <meta·name="viewport"·content="width=device-width,·initial-scale=1"/> |
8 | <title>Simple·Image·Loading·LibrarY:·/build/reproducible-path/silly-0.1.0/include/ | 8 | <title>Simple·Image·Loading·LibrarY:·/build/reproducible-path/silly-0.1.0/include/SILLYMemoryDataSource.icpp·Source·File</title> |
9 | <link·href="tabs.css"·rel="stylesheet"·type="text/css"/> | 9 | <link·href="tabs.css"·rel="stylesheet"·type="text/css"/> |
10 | <script·type="text/javascript"·src="jquery.js"></script> | 10 | <script·type="text/javascript"·src="jquery.js"></script> |
11 | <script·type="text/javascript"·src="dynsections.js"></script> | 11 | <script·type="text/javascript"·src="dynsections.js"></script> |
12 | <link·href="doxygen.css"·rel="stylesheet"·type="text/css"·/> | 12 | <link·href="doxygen.css"·rel="stylesheet"·type="text/css"·/> |
13 | </head> | 13 | </head> |
14 | <body> | 14 | <body> |
15 | <div·id="top"><!--·do·not·remove·this·div,·it·is·closed·by·doxygen!·--> | 15 | <div·id="top"><!--·do·not·remove·this·div,·it·is·closed·by·doxygen!·--> |
Offset 40, 27 lines modified | Offset 40, 27 lines modified | ||
40 | <script·type="text/javascript"> | 40 | <script·type="text/javascript"> |
41 | /*·@license·magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt·MIT·*/ | 41 | /*·@license·magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt·MIT·*/ |
42 | $(document).ready(function()·{·init_codefold(0);·}); | 42 | $(document).ready(function()·{·init_codefold(0);·}); |
43 | /*·@license-end·*/ | 43 | /*·@license-end·*/ |
44 | </script> | 44 | </script> |
45 | <div·id="nav-path"·class="navpath"> | 45 | <div·id="nav-path"·class="navpath"> |
46 | ··<ul> | 46 | ··<ul> |
47 | <li·class="navelem"><a·class="el"·href="dir_4fef79e7177ba769987a8da36c892c5f.html">build</a></li><li·class="navelem"><a·class="el"·href="dir_9def6061848686aab7e6212bb499d615.html">reproducible-path</a></li><li·class="navelem"><a·class="el"·href="dir_74170d5b58cefb7cb5a86fc552b183a3.html">silly-0.1.0</a></li><li·class="navelem"><a·class="el"·href="dir_0d87e2e7ddaae8a2a8572c0afc59fe0d.html">include</a></li> | 47 | <li·class="navelem"><a·class="el"·href="dir_4fef79e7177ba769987a8da36c892c5f.html">build</a></li><li·class="navelem"><a·class="el"·href="dir_9def6061848686aab7e6212bb499d615.html">reproducible-path</a></li><li·class="navelem"><a·class="el"·href="dir_74170d5b58cefb7cb5a86fc552b183a3.html">silly-0.1.0</a></li><li·class="navelem"><a·class="el"·href="dir_0d87e2e7ddaae8a2a8572c0afc59fe0d.html">include</a></li>··</ul> |
48 | </div> | 48 | </div> |
49 | </div><!--·top·--> | 49 | </div><!--·top·--> |
50 | <div·class="header"> | 50 | <div·class="header"> |
51 | ··<div·class="headertitle"><div·class="title">SILLY | 51 | ··<div·class="headertitle"><div·class="title">SILLYMemoryDataSource.icpp</div></div> |
52 | </div><!--header--> | 52 | </div><!--header--> |
53 | <div·class="contents"> | 53 | <div·class="contents"> |
54 | <div·class="fragment"><div·class="line"><a·id="l00001"·name="l00001"></a><span·class="lineno">····1</span>/***********************************************************************</div> | 54 | <div·class="fragment"><div·class="line"><a·id="l00001"·name="l00001"></a><span·class="lineno">····1</span>/***********************************************************************</div> |
55 | <div·class="line"><a·id="l00002"·name="l00002"></a><span·class="lineno">····2</span>···· | 55 | <div·class="line"><a·id="l00002"·name="l00002"></a><span·class="lineno">····2</span>····Filename:···SILLYMemoryDataSource.icpp·</div> |
56 | <div·class="line"><a·id="l00003"·name="l00003"></a><span·class="lineno">····3</span>····created:····1 | 56 | <div·class="line"><a·id="l00003"·name="l00003"></a><span·class="lineno">····3</span>····created:····10·Jun·2006</div> |
57 | <div·class="line"><a·id="l00004"·name="l00004"></a><span·class="lineno">····4</span>····author:·····Olivier·Delannoy</div> | 57 | <div·class="line"><a·id="l00004"·name="l00004"></a><span·class="lineno">····4</span>····author:·····Olivier·Delannoy</div> |
58 | <div·class="line"><a·id="l00005"·name="l00005"></a><span·class="lineno">····5</span>·</div> | 58 | <div·class="line"><a·id="l00005"·name="l00005"></a><span·class="lineno">····5</span>·</div> |
59 | <div·class="line"><a·id="l00006"·name="l00006"></a><span·class="lineno">····6</span>····purpose:····Inline·definition·for· | 59 | <div·class="line"><a·id="l00006"·name="l00006"></a><span·class="lineno">····6</span>····purpose:····Inline·function·definition·for·MemoryDataSource·class··</div> |
60 | <div·class="line"><a·id="l00007"·name="l00007"></a><span·class="lineno">····7</span>*************************************************************************/</div> | 60 | <div·class="line"><a·id="l00007"·name="l00007"></a><span·class="lineno">····7</span>*************************************************************************/</div> |
61 | <div·class="line"><a·id="l00008"·name="l00008"></a><span·class="lineno">····8</span>/***************************************************************************</div> | 61 | <div·class="line"><a·id="l00008"·name="l00008"></a><span·class="lineno">····8</span>/***************************************************************************</div> |
62 | <div·class="line"><a·id="l00009"·name="l00009"></a><span·class="lineno">····9</span>·*···Copyright·(C)·2004·-·2006·Paul·D·Turner·&·The·CEGUI·Development·Team</div> | 62 | <div·class="line"><a·id="l00009"·name="l00009"></a><span·class="lineno">····9</span>·*···Copyright·(C)·2004·-·2006·Paul·D·Turner·&·The·CEGUI·Development·Team</div> |
63 | <div·class="line"><a·id="l00010"·name="l00010"></a><span·class="lineno">···10</span>·*</div> | 63 | <div·class="line"><a·id="l00010"·name="l00010"></a><span·class="lineno">···10</span>·*</div> |
64 | <div·class="line"><a·id="l00011"·name="l00011"></a><span·class="lineno">···11</span>·*···Permission·is·hereby·granted,·free·of·charge,·to·any·person·obtaining</div> | 64 | <div·class="line"><a·id="l00011"·name="l00011"></a><span·class="lineno">···11</span>·*···Permission·is·hereby·granted,·free·of·charge,·to·any·person·obtaining</div> |
65 | <div·class="line"><a·id="l00012"·name="l00012"></a><span·class="lineno">···12</span>·*···a·copy·of·this·software·and·associated·documentation·files·(the</div> | 65 | <div·class="line"><a·id="l00012"·name="l00012"></a><span·class="lineno">···12</span>·*···a·copy·of·this·software·and·associated·documentation·files·(the</div> |
66 | <div·class="line"><a·id="l00013"·name="l00013"></a><span·class="lineno">···13</span>·*···"Software"),·to·deal·in·the·Software·without·restriction,·including</div> | 66 | <div·class="line"><a·id="l00013"·name="l00013"></a><span·class="lineno">···13</span>·*···"Software"),·to·deal·in·the·Software·without·restriction,·including</div> |
Offset 80, 17 lines modified | Offset 80, 27 lines modified | ||
80 | <div·class="line"><a·id="l00027"·name="l00027"></a><span·class="lineno">···27</span>·*···ARISING·FROM,·OUT·OF·OR·IN·CONNECTION·WITH·THE·SOFTWARE·OR·THE·USE·OR</div> | 80 | <div·class="line"><a·id="l00027"·name="l00027"></a><span·class="lineno">···27</span>·*···ARISING·FROM,·OUT·OF·OR·IN·CONNECTION·WITH·THE·SOFTWARE·OR·THE·USE·OR</div> |
81 | <div·class="line"><a·id="l00028"·name="l00028"></a><span·class="lineno">···28</span>·*···OTHER·DEALINGS·IN·THE·SOFTWARE.</div> | 81 | <div·class="line"><a·id="l00028"·name="l00028"></a><span·class="lineno">···28</span>·*···OTHER·DEALINGS·IN·THE·SOFTWARE.</div> |
82 | <div·class="line"><a·id="l00029"·name="l00029"></a><span·class="lineno">···29</span>·***************************************************************************/</div> | 82 | <div·class="line"><a·id="l00029"·name="l00029"></a><span·class="lineno">···29</span>·***************************************************************************/</div> |
83 | <div·class="line"><a·id="l00030"·name="l00030"></a><span·class="lineno">···30</span>·</div> | 83 | <div·class="line"><a·id="l00030"·name="l00030"></a><span·class="lineno">···30</span>·</div> |
84 | <div·class="line"><a·id="l00031"·name="l00031"></a><span·class="lineno">···31</span>//·Start·of·section·namespace·SILLY</div> | 84 | <div·class="line"><a·id="l00031"·name="l00031"></a><span·class="lineno">···31</span>//·Start·of·section·namespace·SILLY</div> |
85 | <div·class="line"><a·id="l00032"·name="l00032"></a><span·class="lineno">···32</span>namespace·SILLY</div> | 85 | <div·class="line"><a·id="l00032"·name="l00032"></a><span·class="lineno">···32</span>namespace·SILLY</div> |
86 | <div·class="line"><a·id="l00033"·name="l00033"></a><span·class="lineno">···33</span>{</div> | 86 | <div·class="line"><a·id="l00033"·name="l00033"></a><span·class="lineno">···33</span>{</div> |
87 | <div·class="line"><a·id="l00034"·name="l00034"></a><span·class="lineno">···34</span>· | 87 | <div·class="line"><a·id="l00034"·name="l00034"></a><span·class="lineno">···34</span>·</div> |
88 | <div·class="line"><a·id="l00035"·name="l00035"></a><span·class="lineno">···35</span> | 88 | <div·class="line"><a·id="l00035"·name="l00035"></a><span·class="lineno">···35</span>inline·const·byte*·MemoryDataSource::getDataPtr()·const</div> |
89 | <div·class="line"><a·id="l00036"·name="l00036"></a><span·class="lineno">···36</span> | 89 | <div·class="line"><a·id="l00036"·name="l00036"></a><span·class="lineno">···36</span>{</div> |
90 | <div·class="line"><a·id="l00037"·name="l00037"></a><span·class="lineno">···37</span>····return·d_bytes;</div> | ||
91 | <div·class="line"><a·id="l00038"·name="l00038"></a><span·class="lineno">···38</span>}</div> | ||
92 | <div·class="line"><a·id="l00039"·name="l00039"></a><span·class="lineno">···39</span>·</div> | ||
93 | <div·class="line"><a·id="l00040"·name="l00040"></a><span·class="lineno">···40</span>inline·size_t·MemoryDataSource::getSize()·const</div> | ||
94 | <div·class="line"><a·id="l00041"·name="l00041"></a><span·class="lineno">···41</span>{</div> | ||
95 | <div·class="line"><a·id="l00042"·name="l00042"></a><span·class="lineno">···42</span>····return·d_size;</div> | ||
96 | <div·class="line"><a·id="l00043"·name="l00043"></a><span·class="lineno">···43</span>}</div> | ||
97 | <div·class="line"><a·id="l00044"·name="l00044"></a><span·class="lineno">···44</span>····</div> | ||
98 | <div·class="line"><a·id="l00045"·name="l00045"></a><span·class="lineno">···45</span>}·//·End·of·section·namespace·SILLY</div> | ||
99 | <div·class="line"><a·id="l00046"·name="l00046"></a><span·class="lineno">···46</span>·</div> | ||
90 | </div><!--·fragment·--></div><!--·contents·--> | 100 | </div><!--·fragment·--></div><!--·contents·--> |
91 | <!--·start·footer·part·--> | 101 | <!--·start·footer·part·--> |
92 | <hr·class="footer"/><address·class="footer"><small> | 102 | <hr·class="footer"/><address·class="footer"><small> |
93 | Generated·by <a·href="https://www.doxygen.org/index.html"><img·class="footer"·src="doxygen.svg"·width="104"·height="31"·alt="doxygen"/></a>·1.9.8 | 103 | Generated·by <a·href="https://www.doxygen.org/index.html"><img·class="footer"·src="doxygen.svg"·width="104"·height="31"·alt="doxygen"/></a>·1.9.8 |
94 | </small></address> | 104 | </small></address> |
95 | </body> | 105 | </body> |
96 | </html> | 106 | </html> |
Offset 1, 20 lines modified | Offset 1, 19 lines modified | ||
1 | Simple·Image·Loading·LibrarY 0.1.0 | 1 | Simple·Image·Loading·LibrarY 0.1.0 |
2 | ····*·_\x8b_\x8u_\x8i_\x8l_\x8d | 2 | ····*·_\x8b_\x8u_\x8i_\x8l_\x8d |
3 | ····*·_\x8r_\x8e_\x8p_\x8r_\x8o_\x8d_\x8u_\x8c_\x8i_\x8b_\x8l_\x8e_\x8-_\x8p_\x8a_\x8t_\x8h | 3 | ····*·_\x8r_\x8e_\x8p_\x8r_\x8o_\x8d_\x8u_\x8c_\x8i_\x8b_\x8l_\x8e_\x8-_\x8p_\x8a_\x8t_\x8h |
4 | ····*·_\x8s_\x8i_\x8l_\x8l_\x8y_\x8-_\x80_\x8._\x81_\x8._\x80 | 4 | ····*·_\x8s_\x8i_\x8l_\x8l_\x8y_\x8-_\x80_\x8._\x81_\x8._\x80 |
5 | ····*·_\x8i_\x8n_\x8c_\x8l_\x8u_\x8d_\x8e | 5 | ····*·_\x8i_\x8n_\x8c_\x8l_\x8u_\x8d_\x8e |
6 | SILLYMemoryDataSource.icpp | ||
6 | ····*·_\x8l_\x8o_\x8a_\x8d_\x8e_\x8r_\x8s | ||
7 | SILLYPNGImageContext.icpp | ||
8 | 1/*********************************************************************** | 7 | 1/*********************************************************************** |
9 | 2· | 8 | 2·Filename:·SILLYMemoryDataSource.icpp |
10 | 3·created:·1 | 9 | 3·created:·10·Jun·2006 |
11 | 4·author:·Olivier·Delannoy | 10 | 4·author:·Olivier·Delannoy |
12 | 5 | 11 | 5 |
13 | 6·purpose:·Inline·definition·for· | 12 | 6·purpose:·Inline·function·definition·for·MemoryDataSource·class |
14 | 7*************************************************************************/ | 13 | 7*************************************************************************/ |
15 | 8/*************************************************************************** | 14 | 8/*************************************************************************** |
16 | 9·*·Copyright·(C)·2004·-·2006·Paul·D·Turner·&·The·CEGUI·Development·Team | 15 | 9·*·Copyright·(C)·2004·-·2006·Paul·D·Turner·&·The·CEGUI·Development·Team |
17 | 10·* | 16 | 10·* |
18 | 11·*·Permission·is·hereby·granted,·free·of·charge,·to·any·person·obtaining | 17 | 11·*·Permission·is·hereby·granted,·free·of·charge,·to·any·person·obtaining |
19 | 12·*·a·copy·of·this·software·and·associated·documentation·files·(the | 18 | 12·*·a·copy·of·this·software·and·associated·documentation·files·(the |
20 | 13·*·"Software"),·to·deal·in·the·Software·without·restriction,·including | 19 | 13·*·"Software"),·to·deal·in·the·Software·without·restriction,·including |
Offset 35, 11 lines modified | Offset 34, 21 lines modified | ||
35 | 28·*·OTHER·DEALINGS·IN·THE·SOFTWARE. | 34 | 28·*·OTHER·DEALINGS·IN·THE·SOFTWARE. |
36 | 29·***************************************************************************/ | 35 | 29·***************************************************************************/ |
37 | 30 | 36 | 30 |
38 | 31//·Start·of·section·namespace·SILLY | 37 | 31//·Start·of·section·namespace·SILLY |
39 | 32namespace·SILLY | 38 | 32namespace·SILLY |
40 | 33{ | 39 | 33{ |
41 | 34 | 40 | 34 |
41 | 35inline·const·byte*·MemoryDataSource::getDataPtr()·const | ||
42 | 36{ | ||
43 | 37·return·d_bytes; | ||
44 | 38} | ||
45 | 39 | ||
46 | 40inline·size_t·MemoryDataSource::getSize()·const | ||
47 | 41{ | ||
48 | 42·return·d_size; | ||
49 | 43} | ||
50 | 44 | ||
42 | 51 | 45}·//·End·of·section·namespace·SILLY | |
43 | 52 | 46 | |
44 | =============================================================================== | 53 | =============================================================================== |
45 | ·····Generated·by _\x8[_\x8d_\x8o_\x8x_\x8y_\x8g_\x8e_\x8n_\x8]·1.9.8 | 54 | ·····Generated·by _\x8[_\x8d_\x8o_\x8x_\x8y_\x8g_\x8e_\x8n_\x8]·1.9.8 |
Offset 1, 15 lines modified | Offset 1, 15 lines modified | ||
1 | <!DOCTYPE·html·PUBLIC·"-//W3C//DTD·XHTML·1.0·Transitional//EN"·"https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> | 1 | <!DOCTYPE·html·PUBLIC·"-//W3C//DTD·XHTML·1.0·Transitional//EN"·"https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> |
2 | <html·xmlns="http://www.w3.org/1999/xhtml"·lang="en-US"> | 2 | <html·xmlns="http://www.w3.org/1999/xhtml"·lang="en-US"> |
3 | <head> | 3 | <head> |
4 | <meta·http-equiv="Content-Type"·content="text/xhtml;charset=UTF-8"/> | 4 | <meta·http-equiv="Content-Type"·content="text/xhtml;charset=UTF-8"/> |
5 | <meta·http-equiv="X-UA-Compatible"·content="IE=11"/> | 5 | <meta·http-equiv="X-UA-Compatible"·content="IE=11"/> |
6 | <meta·name="generator"·content="Doxygen·1.9.8"/> | 6 | <meta·name="generator"·content="Doxygen·1.9.8"/> |
7 | <meta·name="viewport"·content="width=device-width,·initial-scale=1"/> | 7 | <meta·name="viewport"·content="width=device-width,·initial-scale=1"/> |
8 | <title>Simple·Image·Loading·LibrarY:·/build/reproducible-path/silly-0.1.0/include/ | 8 | <title>Simple·Image·Loading·LibrarY:·/build/reproducible-path/silly-0.1.0/include/SILLYDataSource.icpp·Source·File</title> |
9 | <link·href="tabs.css"·rel="stylesheet"·type="text/css"/> | 9 | <link·href="tabs.css"·rel="stylesheet"·type="text/css"/> |
10 | <script·type="text/javascript"·src="jquery.js"></script> | 10 | <script·type="text/javascript"·src="jquery.js"></script> |
11 | <script·type="text/javascript"·src="dynsections.js"></script> | 11 | <script·type="text/javascript"·src="dynsections.js"></script> |
12 | <link·href="doxygen.css"·rel="stylesheet"·type="text/css"·/> | 12 | <link·href="doxygen.css"·rel="stylesheet"·type="text/css"·/> |
13 | </head> | 13 | </head> |
14 | <body> | 14 | <body> |
15 | <div·id="top"><!--·do·not·remove·this·div,·it·is·closed·by·doxygen!·--> | 15 | <div·id="top"><!--·do·not·remove·this·div,·it·is·closed·by·doxygen!·--> |
Offset 40, 88 lines modified | Offset 40, 66 lines modified | ||
40 | <script·type="text/javascript"> | 40 | <script·type="text/javascript"> |
41 | /*·@license·magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt·MIT·*/ | 41 | /*·@license·magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt·MIT·*/ |
42 | $(document).ready(function()·{·init_codefold(0);·}); | 42 | $(document).ready(function()·{·init_codefold(0);·}); |
43 | /*·@license-end·*/ | 43 | /*·@license-end·*/ |
44 | </script> | 44 | </script> |
45 | <div·id="nav-path"·class="navpath"> | 45 | <div·id="nav-path"·class="navpath"> |
46 | ··<ul> | 46 | ··<ul> |
47 | <li·class="navelem"><a·class="el"·href="dir_4fef79e7177ba769987a8da36c892c5f.html">build</a></li><li·class="navelem"><a·class="el"·href="dir_9def6061848686aab7e6212bb499d615.html">reproducible-path</a></li><li·class="navelem"><a·class="el"·href="dir_74170d5b58cefb7cb5a86fc552b183a3.html">silly-0.1.0</a></li><li·class="navelem"><a·class="el"·href="dir_0d87e2e7ddaae8a2a8572c0afc59fe0d.html">include</a></li> | 47 | <li·class="navelem"><a·class="el"·href="dir_4fef79e7177ba769987a8da36c892c5f.html">build</a></li><li·class="navelem"><a·class="el"·href="dir_9def6061848686aab7e6212bb499d615.html">reproducible-path</a></li><li·class="navelem"><a·class="el"·href="dir_74170d5b58cefb7cb5a86fc552b183a3.html">silly-0.1.0</a></li><li·class="navelem"><a·class="el"·href="dir_0d87e2e7ddaae8a2a8572c0afc59fe0d.html">include</a></li>··</ul> |
48 | </div> | 48 | </div> |
49 | </div><!--·top·--> | 49 | </div><!--·top·--> |
50 | <div·class="header"> | 50 | <div·class="header"> |
51 | ··<div·class="headertitle"><div·class="title">SILLY | 51 | ··<div·class="headertitle"><div·class="title">SILLYDataSource.icpp</div></div> |
52 | </div><!--header--> | 52 | </div><!--header--> |
53 | <div·class="contents"> | 53 | <div·class="contents"> |
54 | <div·class="fragment"><div·class="line"><a·id="l00001"·name="l00001"></a><span·class="lineno">····1</span> | 54 | <div·class="fragment"><div·class="line"><a·id="l00001"·name="l00001"></a><span·class="lineno">····1</span>/***********************************************************************</div> |
55 | <div·class="line"><a·id="l00002"·name="l00002"></a><span·class="lineno">····2</span> | 55 | <div·class="line"><a·id="l00002"·name="l00002"></a><span·class="lineno">····2</span>····filename:···SILLYDataSource.icpp·</div> |
56 | <div·class="line"><a·id="l00003"·name="l00003"></a><span·class="lineno">····3</span> | 56 | <div·class="line"><a·id="l00003"·name="l00003"></a><span·class="lineno">····3</span>····created:····10·Jun·2006</div> |
57 | <div·class="line"><a·id="l00004"·name="l00004"></a><span·class="lineno">····4</span> | 57 | <div·class="line"><a·id="l00004"·name="l00004"></a><span·class="lineno">····4</span>····author:·····ode@dalfy.dalfy.dyndns.org</div> |
58 | <div·class="line"><a·id="l00005"·name="l00005"></a><span·class="lineno">····5</span> | 58 | <div·class="line"><a·id="l00005"·name="l00005"></a><span·class="lineno">····5</span>·</div> |
59 | <div·class="line"><a·id="l00006"·name="l00006"></a><span·class="lineno">····6</span> | 59 | <div·class="line"><a·id="l00006"·name="l00006"></a><span·class="lineno">····6</span>····purpose:····Inline·function·definition·for·(F>>>ILE_SANS<<<)·class··</div> |
60 | <div·class="line"><a·id="l00007"·name="l00007"></a><span·class="lineno">····7</span> | 60 | <div·class="line"><a·id="l00007"·name="l00007"></a><span·class="lineno">····7</span>*************************************************************************/</div> |
61 | <div·class="line"><a·id="l00008"·name="l00008"></a><span·class="lineno">····8</span> | 61 | <div·class="line"><a·id="l00008"·name="l00008"></a><span·class="lineno">····8</span>/***************************************************************************</div> |
62 | <div·class="line"><a·id="l00009"·name="l00009"></a><span·class="lineno">····9</span> | 62 | <div·class="line"><a·id="l00009"·name="l00009"></a><span·class="lineno">····9</span>·*···Copyright·(C)·2004·-·2006·Paul·D·Turner·&·The·CEGUI·Development·Team</div> |
63 | <div·class="line"><a·id="l00010"·name="l00010"></a><span·class="lineno">···10</span> | 63 | <div·class="line"><a·id="l00010"·name="l00010"></a><span·class="lineno">···10</span>·*</div> |
64 | <div·class="line"><a·id="l00011"·name="l00011"></a><span·class="lineno">···11</span> | 64 | <div·class="line"><a·id="l00011"·name="l00011"></a><span·class="lineno">···11</span>·*···Permission·is·hereby·granted,·free·of·charge,·to·any·person·obtaining</div> |
65 | <div·class="line"><a·id="l00012"·name="l00012"></a><span·class="lineno">···12</span> | 65 | <div·class="line"><a·id="l00012"·name="l00012"></a><span·class="lineno">···12</span>·*···a·copy·of·this·software·and·associated·documentation·files·(the</div> |
66 | <div·class="line"><a·id="l00013"·name="l00013"></a><span·class="lineno">···13</span> | 66 | <div·class="line"><a·id="l00013"·name="l00013"></a><span·class="lineno">···13</span>·*···"Software"),·to·deal·in·the·Software·without·restriction,·including</div> |
67 | <div·class="line"><a·id="l00014"·name="l00014"></a><span·class="lineno">···14</span> | 67 | <div·class="line"><a·id="l00014"·name="l00014"></a><span·class="lineno">···14</span>·*···without·limitation·the·rights·to·use,·copy,·modify,·merge,·publish,</div> |
68 | <div·class="line"><a·id="l00015"·name="l00015"></a><span·class="lineno">···15</span> | 68 | <div·class="line"><a·id="l00015"·name="l00015"></a><span·class="lineno">···15</span>·*···distribute,·sublicense,·and/or·sell·copies·of·the·Software,·and·to</div> |
69 | <div·class="line"><a·id="l00016"·name="l00016"></a><span·class="lineno">···16</span> | 69 | <div·class="line"><a·id="l00016"·name="l00016"></a><span·class="lineno">···16</span>·*···permit·persons·to·whom·the·Software·is·furnished·to·do·so,·subject·to</div> |
70 | <div·class="line"><a·id="l00017"·name="l00017"></a><span·class="lineno">···17</span> | 70 | <div·class="line"><a·id="l00017"·name="l00017"></a><span·class="lineno">···17</span>·*···the·following·conditions:</div> |
71 | <div·class="line"><a·id="l00018"·name="l00018"></a><span·class="lineno">···18</span> | 71 | <div·class="line"><a·id="l00018"·name="l00018"></a><span·class="lineno">···18</span>·*</div> |
72 | <div·class="line"><a·id="l00019"·name="l00019"></a><span·class="lineno">···19</span> | 72 | <div·class="line"><a·id="l00019"·name="l00019"></a><span·class="lineno">···19</span>·*···The·above·copyright·notice·and·this·permission·notice·shall·be</div> |
73 | <div·class="line"><a·id="l00020"·name="l00020"></a><span·class="lineno">···20</span> | 73 | <div·class="line"><a·id="l00020"·name="l00020"></a><span·class="lineno">···20</span>·*···included·in·all·copies·or·substantial·portions·of·the·Software.</div> |
74 | <div·class="line"><a·id="l00021"·name="l00021"></a><span·class="lineno">···21</span> | 74 | <div·class="line"><a·id="l00021"·name="l00021"></a><span·class="lineno">···21</span>·*</div> |
75 | <div·class="line"><a·id="l00022"·name="l00022"></a><span·class="lineno">···22</span> | 75 | <div·class="line"><a·id="l00022"·name="l00022"></a><span·class="lineno">···22</span>·*···THE·SOFTWARE·IS·PROVIDED·"AS·IS",·WITHOUT·WARRANTY·OF·ANY·KIND,</div> |
76 | <div·class="line"><a·id="l00023"·name="l00023"></a><span·class="lineno">···23</span> | 76 | <div·class="line"><a·id="l00023"·name="l00023"></a><span·class="lineno">···23</span>·*···EXPRESS·OR·IMPLIED,·INCLUDING·BUT·NOT·LIMITED·TO·THE·WARRANTIES·OF</div> |
77 | <div·class="line"><a·id="l00024"·name="l00024"></a><span·class="lineno">···24</span> | 77 | <div·class="line"><a·id="l00024"·name="l00024"></a><span·class="lineno">···24</span>·*···MERCHANTABILITY,·FITNESS·FOR·A·PARTICULAR·PURPOSE·AND·NONINFRINGEMENT.</div> |
78 | <div·class="line"><a·id="l00025"·name="l00025"></a><span·class="lineno">···25</span> | 78 | <div·class="line"><a·id="l00025"·name="l00025"></a><span·class="lineno">···25</span>·*···IN·NO·EVENT·SHALL·THE·AUTHORS·BE·LIABLE·FOR·ANY·CLAIM,·DAMAGES·OR</div> |
79 | <div·class="line"><a·id="l00026"·name="l00026"></a><span·class="lineno">···26</span> | 79 | <div·class="line"><a·id="l00026"·name="l00026"></a><span·class="lineno">···26</span>·*···OTHER·LIABILITY,·WHETHER·IN·AN·ACTION·OF·CONTRACT,·TORT·OR·OTHERWISE,</div> |
80 | <div·class="line"><a·id="l00027"·name="l00027"></a><span·class="lineno">···27</span> | 80 | <div·class="line"><a·id="l00027"·name="l00027"></a><span·class="lineno">···27</span>·*···ARISING·FROM,·OUT·OF·OR·IN·CONNECTION·WITH·THE·SOFTWARE·OR·THE·USE·OR</div> |
81 | <div·class="line"><a·id="l00028"·name="l00028"></a><span·class="lineno">···28</span> | 81 | <div·class="line"><a·id="l00028"·name="l00028"></a><span·class="lineno">···28</span>·*···OTHER·DEALINGS·IN·THE·SOFTWARE.</div> |
82 | <div·class="line"><a·id="l00029"·name="l00029"></a><span·class="lineno">···29</span> | 82 | <div·class="line"><a·id="l00029"·name="l00029"></a><span·class="lineno">···29</span>·***************************************************************************/</div> |
83 | <div·class="line"><a·id="l00030"·name="l00030"></a><span·class="lineno">···30</span>·</div> | ||
83 | <div·class="line"><a·id="l00030"·name="l00030"></a><span·class="lineno">···30</span><span·class="preprocessor">#ifndef·_SILLYTGAImageContext_h_·</span></div> | ||
84 | <div·class="line"><a·id="l00031"·name="l00031"></a><span·class="lineno">···31</span><span·class="preprocessor">#define·_SILLYTGAImageContext_h_</span></div> | ||
85 | <div·class="line"><a·id="l00032"·name="l00032"></a><span·class="lineno">···32</span><span·class="preprocessor">#include·"SILLYBase.h"</span>·</div> | ||
86 | <div·class="line"><a·id="l00033"·name="l00033"></a><span·class="lineno">···33</span><span·class="preprocessor">#include·"SILLYImageContext.h"</span>·</div> | ||
87 | <div·class="line"><a·id="l0003 | 84 | <div·class="line"><a·id="l00031"·name="l00031"></a><span·class="lineno">···31</span>//·Start·of·section·namespace·SILLY</div> |
88 | <div·class="line"><a·id="l0003 | 85 | <div·class="line"><a·id="l00032"·name="l00032"></a><span·class="lineno">···32</span>namespace·SILLY</div> |
86 | <div·class="line"><a·id="l00033"·name="l00033"></a><span·class="lineno">···33</span>{</div> | ||
87 | <div·class="line"><a·id="l00034"·name="l00034"></a><span·class="lineno">···34</span>inline·DataSource::~DataSource()·</div> | ||
88 | <div·class="line"><a·id="l00035"·name="l00035"></a><span·class="lineno">···35</span>{</div> | ||
89 | <div·class="line"><a·id="l00036"·name="l00036"></a><span·class="lineno">···36</span> | 89 | <div·class="line"><a·id="l00036"·name="l00036"></a><span·class="lineno">···36</span>}</div> |
90 | <div·class="foldopen"·id="foldopen00042"·data-start="{"·data-end="};"> | ||
91 | <div·class="line"><a·id="l000 | 90 | <div·class="line"><a·id="l00037"·name="l00037"></a><span·class="lineno">···37</span>·</div> |
91 | <div·class="line"><a·id="l00038"·name="l00038"></a><span·class="lineno">···38</span>inline·byte·DataSource::operator[](size_t·offset)·const</div> | ||
92 | <div·class="line"><a·id="l00039"·name="l00039"></a><span·class="lineno">···39</span>{</div> | ||
93 | <div·class="line"><a·id="l00040"·name="l00040"></a><span·class="lineno">···40</span>····assert(offset·<·getSize()·&&·"ASSERT:·Trying·to·access·pixel·outside·of·the·data");</div> | ||
94 | <div·class="line"><a·id="l00041"·name="l00041"></a><span·class="lineno">···41</span>····return·getDataPtr()[offset];</div> | ||
95 | <div·class="line"><a·id="l00042"·name="l00042"></a><span·class="lineno">···42</span>}</div> | ||
92 | <div·class="line"><a·id="l00043"·name="l00043"></a><span·class="lineno">···43</span> | 96 | <div·class="line"><a·id="l00043"·name="l00043"></a><span·class="lineno">···43</span>·</div> |
93 | <div·class="line"><a·id="l00044"·name="l00044"></a><span·class="lineno">···44</span><span·class="keyword">public</span>:</div> | ||
94 | <div·class="line"><a·id="l00045"·name="l00045"></a><span·class="lineno">···45</span>··<a·class="code·hl_class"·href="a00961.html">TGAImageContext</a>(<span·class="keywordtype">size_t</span>·width,·<span·class="keywordtype">size_t</span>·height);</div> | ||
95 | <div·class="line"><a·id="l00046"·name="l00046"></a><span·class="lineno">···46</span>··<a·class="code·hl_class"·href="a00961.html">~TGAImageContext</a>();</div> | ||
96 | <div·class="line"><a·id="l0004 | 97 | <div·class="line"><a·id="l00044"·name="l00044"></a><span·class="lineno">···44</span>}·//·End·of·section·namespace·SILLY</div> |
97 | <div·class="line"><a·id="l00048"·name="l00048"></a><span·class="lineno">···48</span><span·class="keyword">private</span>:</div> | ||
98 | <div·class="line"><a·id="l00049"·name="l00049"></a><span·class="lineno">···49</span>··<span·class="keywordtype">byte</span>·d_idLength;</div> | ||
99 | <div·class="line"><a·id="l00050"·name="l00050"></a><span·class="lineno">···50</span>··<span·class="keywordtype">byte</span>·d_imageType;</div> | ||
100 | <div·class="line"><a·id="l00051"·name="l00051"></a><span·class="lineno">···51</span>··<span·class="keywordtype">byte</span>·d_depth;</div> | ||
101 | <div·class="line"><a·id="l00052"·name="l00052"></a><span·class="lineno">···52</span>··<span·class="keywordtype">byte</span>·d_description;</div> | ||
102 | <div·class="line"><a·id="l000 | 98 | <div·class="line"><a·id="l00045"·name="l00045"></a><span·class="lineno">···45</span>·</div> |
103 | <div·class="line"><a·id="l00054"·name="l00054"></a><span·class="lineno">···54</span>··<span·class="keyword">friend</span>·<span·class="keyword">class·</span><a·class="code·hl_class"·href="a00965.html">TGAImageLoader</a>;</div> | ||
104 | <div·class="line"><a·id="l00055"·name="l00055"></a><span·class="lineno">···55</span>··</div> | ||
105 | <div·class="line"><a·id="l00056"·name="l00056"></a><span·class="lineno">···56</span>};</div> | ||
106 | </div> | ||
107 | <div·class="line"><a·id="l00057"·name="l00057"></a><span·class="lineno">···57</span>··</div> | ||
108 | <div·class="line"><a·id="l00058"·name="l00058"></a><span·class="lineno">···58</span>··</div> | ||
109 | <div·class="line"><a·id="l00059"·name="l00059"></a><span·class="lineno">···59</span>}·<span·class="comment">//·End·of·section·namespace·SILLY·</span></div> | ||
110 | <div·class="line"><a·id="l00060"·name="l00060"></a><span·class="lineno">···60</span>·</div> | ||
111 | <div·class="line"><a·id="l00061"·name="l00061"></a><span·class="lineno">···61</span><span·class="comment">//·Inclue·inline·function·when·needed·</span></div> | ||
112 | <div·class="line"><a·id="l00062"·name="l00062"></a><span·class="lineno">···62</span><span·class="preprocessor">#ifdef·SILLY_OPT_INLINE</span></div> | ||
113 | <div·class="line"><a·id="l00063"·name="l00063"></a><span·class="lineno">···63</span><span·class="preprocessor">#include·"SILLYTGAImageContext.icpp"</span></div> | ||
114 | <div·class="line"><a·id="l00064"·name="l00064"></a><span·class="lineno">···64</span><span·class="preprocessor">#endif·</span></div> | ||
115 | <div·class="line"><a·id="l00065"·name="l00065"></a><span·class="lineno">···65</span>·</div> | ||
116 | <div·class="line"><a·id="l00066"·name="l00066"></a><span·class="lineno">···66</span><span·class="preprocessor">#endif·</span><span·class="comment">//·end·of·guard·_SILLYTGAImageContext_h_</span></div> | ||
117 | <div·class="ttc"·id="aa00129_html"><div·class="ttname"><a·href="a00129.html">SILLY</a></div><div·class="ttdoc">Simple·Image·Loading·LibrarY·namespace.</div><div·class="ttdef"><b>Definition</b>·<a·href="a00029_source.html#l00045">SILLYJPGImageContext.cpp:46</a></div></div> | ||
118 | <div·class="ttc"·id="aa00961_html"><div·class="ttname"><a·href="a00961.html">SILLY::TGAImageContext</a></div><div·class="ttdoc">Image·Context·for·Targa·image.</div><div·class="ttdef"><b>Definition</b>·<a·href="a00053_source.html#l00042">SILLYTGAImageContext.h:43</a></div></div> | ||
119 | <div·class="ttc"·id="aa00965_html"><div·class="ttname"><a·href="a00965.html">SILLY::TGAImageLoader</a></div><div·class="ttdoc">Loader·for·Targa·image.</div><div·class="ttdef"><b>Definition</b>·<a·href="a00065_source.html#l00043">SILLYTGAImageLoader.h:44</a></div></div> | ||
120 | <div·class="ttc"·id="aa00981_html"><div·class="ttname"><a·href="a00981.html">SILLY::ImageContext</a></div><div·class="ttdoc">Store·the·data·needed·by·an·ImageLoader·object·during·the·parsing·of·an·image.</div><div·class="ttdef"><b>Definition</b>·<a·href="a00092_source.html#l00043">SILLYImageContext.h:44</a></div></div> | ||
121 | </div><!--·fragment·--></div><!--·contents·--> | 99 | </div><!--·fragment·--></div><!--·contents·--> |
122 | <!--·start·footer·part·--> | 100 | <!--·start·footer·part·--> |
123 | <hr·class="footer"/><address·class="footer"><small> | 101 | <hr·class="footer"/><address·class="footer"><small> |
124 | Generated·by <a·href="https://www.doxygen.org/index.html"><img·class="footer"·src="doxygen.svg"·width="104"·height="31"·alt="doxygen"/></a>·1.9.8 | 102 | Generated·by <a·href="https://www.doxygen.org/index.html"><img·class="footer"·src="doxygen.svg"·width="104"·height="31"·alt="doxygen"/></a>·1.9.8 |
125 | </small></address> | 103 | </small></address> |
126 | </body> | 104 | </body> |
127 | </html> | 105 | </html> |
Offset 1, 20 lines modified | Offset 1, 19 lines modified | ||
1 | Simple·Image·Loading·LibrarY 0.1.0 | 1 | Simple·Image·Loading·LibrarY 0.1.0 |
2 | ····*·_\x8b_\x8u_\x8i_\x8l_\x8d | 2 | ····*·_\x8b_\x8u_\x8i_\x8l_\x8d |
3 | ····*·_\x8r_\x8e_\x8p_\x8r_\x8o_\x8d_\x8u_\x8c_\x8i_\x8b_\x8l_\x8e_\x8-_\x8p_\x8a_\x8t_\x8h | 3 | ····*·_\x8r_\x8e_\x8p_\x8r_\x8o_\x8d_\x8u_\x8c_\x8i_\x8b_\x8l_\x8e_\x8-_\x8p_\x8a_\x8t_\x8h |
4 | ····*·_\x8s_\x8i_\x8l_\x8l_\x8y_\x8-_\x80_\x8._\x81_\x8._\x80 | 4 | ····*·_\x8s_\x8i_\x8l_\x8l_\x8y_\x8-_\x80_\x8._\x81_\x8._\x80 |
5 | ····*·_\x8i_\x8n_\x8c_\x8l_\x8u_\x8d_\x8e | 5 | ····*·_\x8i_\x8n_\x8c_\x8l_\x8u_\x8d_\x8e |
6 | SILLYDataSource.icpp | ||
6 | ····*·_\x8l_\x8o_\x8a_\x8d_\x8e_\x8r_\x8s | ||
7 | SILLYTGAImageContext.h | ||
8 | 1/*********************************************************************** | 7 | 1/*********************************************************************** |
9 | 2·filename:·SILLY | 8 | 2·filename:·SILLYDataSource.icpp |
10 | 3·created:·1 | 9 | 3·created:·10·Jun·2006 |
11 | 4·author:· | 10 | 4·author:·ode@dalfy.dalfy.dyndns.org |
12 | 5 | 11 | 5 |
13 | 6·purpose:· | 12 | 6·purpose:·Inline·function·definition·for·(F>>>ILE_SANS<<<)·class |
14 | 7*************************************************************************/ | 13 | 7*************************************************************************/ |
15 | 8/*************************************************************************** | 14 | 8/*************************************************************************** |
16 | 9·*·Copyright·(C)·2004·-·2006·Paul·D·Turner·&·The·CEGUI·Development·Team | 15 | 9·*·Copyright·(C)·2004·-·2006·Paul·D·Turner·&·The·CEGUI·Development·Team |
17 | 10·* | 16 | 10·* |
18 | 11·*·Permission·is·hereby·granted,·free·of·charge,·to·any·person·obtaining | 17 | 11·*·Permission·is·hereby·granted,·free·of·charge,·to·any·person·obtaining |
19 | 12·*·a·copy·of·this·software·and·associated·documentation·files·(the | 18 | 12·*·a·copy·of·this·software·and·associated·documentation·files·(the |
20 | 13·*·"Software"),·to·deal·in·the·Software·without·restriction,·including | 19 | 13·*·"Software"),·to·deal·in·the·Software·without·restriction,·including |
Offset 30, 53 lines modified | Offset 29, 26 lines modified | ||
30 | 23·*·EXPRESS·OR·IMPLIED,·INCLUDING·BUT·NOT·LIMITED·TO·THE·WARRANTIES·OF | 29 | 23·*·EXPRESS·OR·IMPLIED,·INCLUDING·BUT·NOT·LIMITED·TO·THE·WARRANTIES·OF |
31 | 24·*·MERCHANTABILITY,·FITNESS·FOR·A·PARTICULAR·PURPOSE·AND·NONINFRINGEMENT. | 30 | 24·*·MERCHANTABILITY,·FITNESS·FOR·A·PARTICULAR·PURPOSE·AND·NONINFRINGEMENT. |
32 | 25·*·IN·NO·EVENT·SHALL·THE·AUTHORS·BE·LIABLE·FOR·ANY·CLAIM,·DAMAGES·OR | 31 | 25·*·IN·NO·EVENT·SHALL·THE·AUTHORS·BE·LIABLE·FOR·ANY·CLAIM,·DAMAGES·OR |
33 | 26·*·OTHER·LIABILITY,·WHETHER·IN·AN·ACTION·OF·CONTRACT,·TORT·OR·OTHERWISE, | 32 | 26·*·OTHER·LIABILITY,·WHETHER·IN·AN·ACTION·OF·CONTRACT,·TORT·OR·OTHERWISE, |
34 | 27·*·ARISING·FROM,·OUT·OF·OR·IN·CONNECTION·WITH·THE·SOFTWARE·OR·THE·USE·OR | 33 | 27·*·ARISING·FROM,·OUT·OF·OR·IN·CONNECTION·WITH·THE·SOFTWARE·OR·THE·USE·OR |
35 | 28·*·OTHER·DEALINGS·IN·THE·SOFTWARE. | 34 | 28·*·OTHER·DEALINGS·IN·THE·SOFTWARE. |
36 | 29·***************************************************************************/ | 35 | 29·***************************************************************************/ |
36 | 30 | ||
37 | 30#ifndef·_SILLYTGAImageContext_h_ | ||
38 | 31#define·_SILLYTGAImageContext_h_ | ||
39 | 32#include·"SILLYBase.h" | ||
40 | 33#include·"SILLYImageContext.h" | ||
41 | 3 | 37 | 31//·Start·of·section·namespace·SILLY |
42 | 35namespace·_\x8S_\x8I_\x8L_\x8L_\x8Y | ||
43 | 36{ | ||
44 | 38 | 32namespace·SILLY | |
39 | 33{ | ||
40 | 34inline·DataSource::~DataSource() | ||
41 | 35{ | ||
42 | 36} | ||
43 | 37 | ||
44 | 38inline·byte·DataSource::operator[](size_t·offset)·const | ||
45 | 39{ | ||
46 | 40·assert(offset·<·getSize()·&&·"ASSERT:·Trying·to·access·pixel·outside·of·the | ||
47 | data"); | ||
48 | 41·return·getDataPtr()[offset]; | ||
49 | 42} | ||
45 | 43 | 50 | 43 |
46 | 44public: | ||
47 | 45·_\x8T_\x8G_\x8A_\x8I_\x8m_\x8a_\x8g_\x8e_\x8C_\x8o_\x8n_\x8t_\x8e_\x8x_\x8t(size_t·width,·size_t·height); | ||
48 | 46·_\x8~_\x8T_\x8G_\x8A_\x8I_\x8m_\x8a_\x8g_\x8e_\x8C_\x8o_\x8n_\x8t_\x8e_\x8x_\x8t(); | ||
49 | 47 | ||
50 | 48private: | ||
51 | 49·byte·d_idLength; | ||
52 | 50·byte·d_imageType; | ||
53 | 51·byte·d_depth; | ||
54 | 52·byte·d_description; | ||
55 | 53 | ||
56 | 54·friend·class·_\x8T_\x8G_\x8A_\x8I_\x8m_\x8a_\x8g_\x8e_\x8L_\x8o_\x8a_\x8d_\x8e_\x8r; | ||
57 | 55 | ||
58 | 56}; | ||
59 | 57 | ||
60 | 58 | ||
61 | 51 | 44}·//·End·of·section·namespace·SILLY | |
52 | 45 | ||
62 | 60 | ||
63 | 61//·Inclue·inline·function·when·needed | ||
64 | 62#ifdef·SILLY_OPT_INLINE | ||
65 | 63#include·"SILLYTGAImageContext.icpp" | ||
66 | 64#endif | ||
67 | 65 | ||
68 | 66#endif·//·end·of·guard·_SILLYTGAImageContext_h_ | ||
69 | _\x8S_\x8I_\x8L_\x8L_\x8Y | ||
70 | Simple·Image·Loading·LibrarY·namespace. | ||
71 | D\x8De\x8ef\x8fi\x8in\x8ni\x8it\x8ti\x8io\x8on\x8n·_\x8S_\x8I_\x8L_\x8L_\x8Y_\x8J_\x8P_\x8G_\x8I_\x8m_\x8a_\x8g_\x8e_\x8C_\x8o_\x8n_\x8t_\x8e_\x8x_\x8t_\x8._\x8c_\x8p_\x8p_\x8:_\x84_\x86 | ||
72 | _\x8S_\x8I_\x8L_\x8L_\x8Y_\x8:_\x8:_\x8T_\x8G_\x8A_\x8I_\x8m_\x8a_\x8g_\x8e_\x8C_\x8o_\x8n_\x8t_\x8e_\x8x_\x8t | ||
73 | Image·Context·for·Targa·image. | ||
74 | D\x8De\x8ef\x8fi\x8in\x8ni\x8it\x8ti\x8io\x8on\x8n·_\x8S_\x8I_\x8L_\x8L_\x8Y_\x8T_\x8G_\x8A_\x8I_\x8m_\x8a_\x8g_\x8e_\x8C_\x8o_\x8n_\x8t_\x8e_\x8x_\x8t_\x8._\x8h_\x8:_\x84_\x83 | ||
75 | _\x8S_\x8I_\x8L_\x8L_\x8Y_\x8:_\x8:_\x8T_\x8G_\x8A_\x8I_\x8m_\x8a_\x8g_\x8e_\x8L_\x8o_\x8a_\x8d_\x8e_\x8r | ||
76 | Loader·for·Targa·image. | ||
77 | D\x8De\x8ef\x8fi\x8in\x8ni\x8it\x8ti\x8io\x8on\x8n·_\x8S_\x8I_\x8L_\x8L_\x8Y_\x8T_\x8G_\x8A_\x8I_\x8m_\x8a_\x8g_\x8e_\x8L_\x8o_\x8a_\x8d_\x8e_\x8r_\x8._\x8h_\x8:_\x84_\x84 | ||
78 | _\x8S_\x8I_\x8L_\x8L_\x8Y_\x8:_\x8:_\x8I_\x8m_\x8a_\x8g_\x8e_\x8C_\x8o_\x8n_\x8t_\x8e_\x8x_\x8t | ||
79 | Store·the·data·needed·by·an·ImageLoader·object·during·the·parsing·of·an·image. | ||
80 | D\x8De\x8ef\x8fi\x8in\x8ni\x8it\x8ti\x8io\x8on\x8n·_\x8S_\x8I_\x8L_\x8L_\x8Y_\x8I_\x8m_\x8a_\x8g_\x8e_\x8C_\x8o_\x8n_\x8t_\x8e_\x8x_\x8t_\x8._\x8h_\x8:_\x84_\x84 | ||
81 | =============================================================================== | 53 | =============================================================================== |
82 | ·····Generated·by _\x8[_\x8d_\x8o_\x8x_\x8y_\x8g_\x8e_\x8n_\x8]·1.9.8 | 54 | ·····Generated·by _\x8[_\x8d_\x8o_\x8x_\x8y_\x8g_\x8e_\x8n_\x8]·1.9.8 |
Offset 1, 15 lines modified | Offset 1, 15 lines modified | ||
1 | <!DOCTYPE·html·PUBLIC·"-//W3C//DTD·XHTML·1.0·Transitional//EN"·"https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> | 1 | <!DOCTYPE·html·PUBLIC·"-//W3C//DTD·XHTML·1.0·Transitional//EN"·"https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> |
2 | <html·xmlns="http://www.w3.org/1999/xhtml"·lang="en-US"> | 2 | <html·xmlns="http://www.w3.org/1999/xhtml"·lang="en-US"> |
3 | <head> | 3 | <head> |
4 | <meta·http-equiv="Content-Type"·content="text/xhtml;charset=UTF-8"/> | 4 | <meta·http-equiv="Content-Type"·content="text/xhtml;charset=UTF-8"/> |
5 | <meta·http-equiv="X-UA-Compatible"·content="IE=11"/> | 5 | <meta·http-equiv="X-UA-Compatible"·content="IE=11"/> |
6 | <meta·name="generator"·content="Doxygen·1.9.8"/> | 6 | <meta·name="generator"·content="Doxygen·1.9.8"/> |
7 | <meta·name="viewport"·content="width=device-width,·initial-scale=1"/> | 7 | <meta·name="viewport"·content="width=device-width,·initial-scale=1"/> |
8 | <title>Simple·Image·Loading·LibrarY:·/build/reproducible-path/silly-0.1.0/include/ | 8 | <title>Simple·Image·Loading·LibrarY:·/build/reproducible-path/silly-0.1.0/include/SILLYImageLoader.icpp·Source·File</title> |
9 | <link·href="tabs.css"·rel="stylesheet"·type="text/css"/> | 9 | <link·href="tabs.css"·rel="stylesheet"·type="text/css"/> |
10 | <script·type="text/javascript"·src="jquery.js"></script> | 10 | <script·type="text/javascript"·src="jquery.js"></script> |
11 | <script·type="text/javascript"·src="dynsections.js"></script> | 11 | <script·type="text/javascript"·src="dynsections.js"></script> |
12 | <link·href="doxygen.css"·rel="stylesheet"·type="text/css"·/> | 12 | <link·href="doxygen.css"·rel="stylesheet"·type="text/css"·/> |
13 | </head> | 13 | </head> |
14 | <body> | 14 | <body> |
15 | <div·id="top"><!--·do·not·remove·this·div,·it·is·closed·by·doxygen!·--> | 15 | <div·id="top"><!--·do·not·remove·this·div,·it·is·closed·by·doxygen!·--> |
Offset 40, 27 lines modified | Offset 40, 27 lines modified | ||
40 | <script·type="text/javascript"> | 40 | <script·type="text/javascript"> |
41 | /*·@license·magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt·MIT·*/ | 41 | /*·@license·magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt·MIT·*/ |
42 | $(document).ready(function()·{·init_codefold(0);·}); | 42 | $(document).ready(function()·{·init_codefold(0);·}); |
43 | /*·@license-end·*/ | 43 | /*·@license-end·*/ |
44 | </script> | 44 | </script> |
45 | <div·id="nav-path"·class="navpath"> | 45 | <div·id="nav-path"·class="navpath"> |
46 | ··<ul> | 46 | ··<ul> |
47 | <li·class="navelem"><a·class="el"·href="dir_4fef79e7177ba769987a8da36c892c5f.html">build</a></li><li·class="navelem"><a·class="el"·href="dir_9def6061848686aab7e6212bb499d615.html">reproducible-path</a></li><li·class="navelem"><a·class="el"·href="dir_74170d5b58cefb7cb5a86fc552b183a3.html">silly-0.1.0</a></li><li·class="navelem"><a·class="el"·href="dir_0d87e2e7ddaae8a2a8572c0afc59fe0d.html">include</a></li> | 47 | <li·class="navelem"><a·class="el"·href="dir_4fef79e7177ba769987a8da36c892c5f.html">build</a></li><li·class="navelem"><a·class="el"·href="dir_9def6061848686aab7e6212bb499d615.html">reproducible-path</a></li><li·class="navelem"><a·class="el"·href="dir_74170d5b58cefb7cb5a86fc552b183a3.html">silly-0.1.0</a></li><li·class="navelem"><a·class="el"·href="dir_0d87e2e7ddaae8a2a8572c0afc59fe0d.html">include</a></li>··</ul> |
48 | </div> | 48 | </div> |
49 | </div><!--·top·--> | 49 | </div><!--·top·--> |
50 | <div·class="header"> | 50 | <div·class="header"> |
51 | ··<div·class="headertitle"><div·class="title">SILLY | 51 | ··<div·class="headertitle"><div·class="title">SILLYImageLoader.icpp</div></div> |
52 | </div><!--header--> | 52 | </div><!--header--> |
53 | <div·class="contents"> | 53 | <div·class="contents"> |
54 | <div·class="fragment"><div·class="line"><a·id="l00001"·name="l00001"></a><span·class="lineno">····1</span>/***********************************************************************</div> | 54 | <div·class="fragment"><div·class="line"><a·id="l00001"·name="l00001"></a><span·class="lineno">····1</span>/***********************************************************************</div> |
55 | <div·class="line"><a·id="l00002"·name="l00002"></a><span·class="lineno">····2</span>····filename:··· | 55 | <div·class="line"><a·id="l00002"·name="l00002"></a><span·class="lineno">····2</span>····filename:···ImageLoader.icpp·</div> |
56 | <div·class="line"><a·id="l00003"·name="l00003"></a><span·class="lineno">····3</span>····created:····1 | 56 | <div·class="line"><a·id="l00003"·name="l00003"></a><span·class="lineno">····3</span>····created:····10·Jun·2006</div> |
57 | <div·class="line"><a·id="l00004"·name="l00004"></a><span·class="lineno">····4</span>····author:·····Olivier·Delannoy</div> | 57 | <div·class="line"><a·id="l00004"·name="l00004"></a><span·class="lineno">····4</span>····author:·····Olivier·Delannoy</div> |
58 | <div·class="line"><a·id="l00005"·name="l00005"></a><span·class="lineno">····5</span>·</div> | 58 | <div·class="line"><a·id="l00005"·name="l00005"></a><span·class="lineno">····5</span>·</div> |
59 | <div·class="line"><a·id="l00006"·name="l00006"></a><span·class="lineno">····6</span>····purpose:····Inline·definition·for· | 59 | <div·class="line"><a·id="l00006"·name="l00006"></a><span·class="lineno">····6</span>····purpose:····Inline·function·definition·for·ImageLoader·class··</div> |
60 | <div·class="line"><a·id="l00007"·name="l00007"></a><span·class="lineno">····7</span>*************************************************************************/</div> | 60 | <div·class="line"><a·id="l00007"·name="l00007"></a><span·class="lineno">····7</span>*************************************************************************/</div> |
61 | <div·class="line"><a·id="l00008"·name="l00008"></a><span·class="lineno">····8</span>/***************************************************************************</div> | 61 | <div·class="line"><a·id="l00008"·name="l00008"></a><span·class="lineno">····8</span>/***************************************************************************</div> |
62 | <div·class="line"><a·id="l00009"·name="l00009"></a><span·class="lineno">····9</span>·*···Copyright·(C)·2004·-·2006·Paul·D·Turner·&·The·CEGUI·Development·Team</div> | 62 | <div·class="line"><a·id="l00009"·name="l00009"></a><span·class="lineno">····9</span>·*···Copyright·(C)·2004·-·2006·Paul·D·Turner·&·The·CEGUI·Development·Team</div> |
63 | <div·class="line"><a·id="l00010"·name="l00010"></a><span·class="lineno">···10</span>·*</div> | 63 | <div·class="line"><a·id="l00010"·name="l00010"></a><span·class="lineno">···10</span>·*</div> |
64 | <div·class="line"><a·id="l00011"·name="l00011"></a><span·class="lineno">···11</span>·*···Permission·is·hereby·granted,·free·of·charge,·to·any·person·obtaining</div> | 64 | <div·class="line"><a·id="l00011"·name="l00011"></a><span·class="lineno">···11</span>·*···Permission·is·hereby·granted,·free·of·charge,·to·any·person·obtaining</div> |
65 | <div·class="line"><a·id="l00012"·name="l00012"></a><span·class="lineno">···12</span>·*···a·copy·of·this·software·and·associated·documentation·files·(the</div> | 65 | <div·class="line"><a·id="l00012"·name="l00012"></a><span·class="lineno">···12</span>·*···a·copy·of·this·software·and·associated·documentation·files·(the</div> |
66 | <div·class="line"><a·id="l00013"·name="l00013"></a><span·class="lineno">···13</span>·*···"Software"),·to·deal·in·the·Software·without·restriction,·including</div> | 66 | <div·class="line"><a·id="l00013"·name="l00013"></a><span·class="lineno">···13</span>·*···"Software"),·to·deal·in·the·Software·without·restriction,·including</div> |
Offset 80, 17 lines modified | Offset 80, 28 lines modified | ||
80 | <div·class="line"><a·id="l00027"·name="l00027"></a><span·class="lineno">···27</span>·*···ARISING·FROM,·OUT·OF·OR·IN·CONNECTION·WITH·THE·SOFTWARE·OR·THE·USE·OR</div> | 80 | <div·class="line"><a·id="l00027"·name="l00027"></a><span·class="lineno">···27</span>·*···ARISING·FROM,·OUT·OF·OR·IN·CONNECTION·WITH·THE·SOFTWARE·OR·THE·USE·OR</div> |
81 | <div·class="line"><a·id="l00028"·name="l00028"></a><span·class="lineno">···28</span>·*···OTHER·DEALINGS·IN·THE·SOFTWARE.</div> | 81 | <div·class="line"><a·id="l00028"·name="l00028"></a><span·class="lineno">···28</span>·*···OTHER·DEALINGS·IN·THE·SOFTWARE.</div> |
82 | <div·class="line"><a·id="l00029"·name="l00029"></a><span·class="lineno">···29</span>·***************************************************************************/</div> | 82 | <div·class="line"><a·id="l00029"·name="l00029"></a><span·class="lineno">···29</span>·***************************************************************************/</div> |
83 | <div·class="line"><a·id="l00030"·name="l00030"></a><span·class="lineno">···30</span>·</div> | 83 | <div·class="line"><a·id="l00030"·name="l00030"></a><span·class="lineno">···30</span>·</div> |
84 | <div·class="line"><a·id="l00031"·name="l00031"></a><span·class="lineno">···31</span>//·Start·of·section·namespace·SILLY</div> | 84 | <div·class="line"><a·id="l00031"·name="l00031"></a><span·class="lineno">···31</span>//·Start·of·section·namespace·SILLY</div> |
85 | <div·class="line"><a·id="l00032"·name="l00032"></a><span·class="lineno">···32</span>namespace·SILLY</div> | 85 | <div·class="line"><a·id="l00032"·name="l00032"></a><span·class="lineno">···32</span>namespace·SILLY</div> |
86 | <div·class="line"><a·id="l00033"·name="l00033"></a><span·class="lineno">···33</span>{</div> | 86 | <div·class="line"><a·id="l00033"·name="l00033"></a><span·class="lineno">···33</span>{</div> |
87 | <div·class="line"><a·id="l00034"·name="l00034"></a><span·class="lineno">···34</span>inline·ImageLoader::ImageLoader(const·char*·name)</div> | ||
87 | <div·class="line"><a·id="l0003 | 88 | <div·class="line"><a·id="l00035"·name="l00035"></a><span·class="lineno">···35</span>····:·d_name(name)</div> |
88 | <div·class="line"><a·id="l00035"·name="l00035"></a><span·class="lineno">···35</span>}·//·End·of·section·namespace·SILLY</div> | ||
89 | <div·class="line"><a·id="l00036"·name="l00036"></a><span·class="lineno">···36</span> | 89 | <div·class="line"><a·id="l00036"·name="l00036"></a><span·class="lineno">···36</span>{</div> |
90 | <div·class="line"><a·id="l00037"·name="l00037"></a><span·class="lineno">···37</span>}</div> | ||
91 | <div·class="line"><a·id="l00038"·name="l00038"></a><span·class="lineno">···38</span>inline·ImageLoader::~ImageLoader()</div> | ||
92 | <div·class="line"><a·id="l00039"·name="l00039"></a><span·class="lineno">···39</span>{·······</div> | ||
93 | <div·class="line"><a·id="l00040"·name="l00040"></a><span·class="lineno">···40</span>}</div> | ||
94 | <div·class="line"><a·id="l00041"·name="l00041"></a><span·class="lineno">···41</span>inline·const·char*·ImageLoader::getIdentifierString()·const</div> | ||
95 | <div·class="line"><a·id="l00042"·name="l00042"></a><span·class="lineno">···42</span>{</div> | ||
96 | <div·class="line"><a·id="l00043"·name="l00043"></a><span·class="lineno">···43</span>····return·d_name;</div> | ||
97 | <div·class="line"><a·id="l00044"·name="l00044"></a><span·class="lineno">···44</span>}</div> | ||
98 | <div·class="line"><a·id="l00045"·name="l00045"></a><span·class="lineno">···45</span>·</div> | ||
99 | <div·class="line"><a·id="l00046"·name="l00046"></a><span·class="lineno">···46</span>}·//·End·of·section·namespace·SILLY</div> | ||
100 | <div·class="line"><a·id="l00047"·name="l00047"></a><span·class="lineno">···47</span>·</div> | ||
90 | </div><!--·fragment·--></div><!--·contents·--> | 101 | </div><!--·fragment·--></div><!--·contents·--> |
91 | <!--·start·footer·part·--> | 102 | <!--·start·footer·part·--> |
92 | <hr·class="footer"/><address·class="footer"><small> | 103 | <hr·class="footer"/><address·class="footer"><small> |
93 | Generated·by <a·href="https://www.doxygen.org/index.html"><img·class="footer"·src="doxygen.svg"·width="104"·height="31"·alt="doxygen"/></a>·1.9.8 | 104 | Generated·by <a·href="https://www.doxygen.org/index.html"><img·class="footer"·src="doxygen.svg"·width="104"·height="31"·alt="doxygen"/></a>·1.9.8 |
94 | </small></address> | 105 | </small></address> |
95 | </body> | 106 | </body> |
96 | </html> | 107 | </html> |
Offset 1, 20 lines modified | Offset 1, 19 lines modified | ||
1 | Simple·Image·Loading·LibrarY 0.1.0 | 1 | Simple·Image·Loading·LibrarY 0.1.0 |
2 | ····*·_\x8b_\x8u_\x8i_\x8l_\x8d | 2 | ····*·_\x8b_\x8u_\x8i_\x8l_\x8d |
3 | ····*·_\x8r_\x8e_\x8p_\x8r_\x8o_\x8d_\x8u_\x8c_\x8i_\x8b_\x8l_\x8e_\x8-_\x8p_\x8a_\x8t_\x8h | 3 | ····*·_\x8r_\x8e_\x8p_\x8r_\x8o_\x8d_\x8u_\x8c_\x8i_\x8b_\x8l_\x8e_\x8-_\x8p_\x8a_\x8t_\x8h |
4 | ····*·_\x8s_\x8i_\x8l_\x8l_\x8y_\x8-_\x80_\x8._\x81_\x8._\x80 | 4 | ····*·_\x8s_\x8i_\x8l_\x8l_\x8y_\x8-_\x80_\x8._\x81_\x8._\x80 |
5 | ····*·_\x8i_\x8n_\x8c_\x8l_\x8u_\x8d_\x8e | 5 | ····*·_\x8i_\x8n_\x8c_\x8l_\x8u_\x8d_\x8e |
6 | ····*·_\x8l_\x8o_\x8a_\x8d_\x8e_\x8r_\x8s | ||
7 | SILLY | 6 | SILLYImageLoader.icpp |
8 | 1/*********************************************************************** | 7 | 1/*********************************************************************** |
9 | 2·filename:· | 8 | 2·filename:·ImageLoader.icpp |
10 | 3·created:·1 | 9 | 3·created:·10·Jun·2006 |
11 | 4·author:·Olivier·Delannoy | 10 | 4·author:·Olivier·Delannoy |
12 | 5 | 11 | 5 |
13 | 6·purpose:·Inline·definition·for· | 12 | 6·purpose:·Inline·function·definition·for·ImageLoader·class |
14 | 7*************************************************************************/ | 13 | 7*************************************************************************/ |
15 | 8/*************************************************************************** | 14 | 8/*************************************************************************** |
16 | 9·*·Copyright·(C)·2004·-·2006·Paul·D·Turner·&·The·CEGUI·Development·Team | 15 | 9·*·Copyright·(C)·2004·-·2006·Paul·D·Turner·&·The·CEGUI·Development·Team |
17 | 10·* | 16 | 10·* |
18 | 11·*·Permission·is·hereby·granted,·free·of·charge,·to·any·person·obtaining | 17 | 11·*·Permission·is·hereby·granted,·free·of·charge,·to·any·person·obtaining |
19 | 12·*·a·copy·of·this·software·and·associated·documentation·files·(the | 18 | 12·*·a·copy·of·this·software·and·associated·documentation·files·(the |
20 | 13·*·"Software"),·to·deal·in·the·Software·without·restriction,·including | 19 | 13·*·"Software"),·to·deal·in·the·Software·without·restriction,·including |
Offset 34, 12 lines modified | Offset 33, 23 lines modified | ||
34 | 27·*·ARISING·FROM,·OUT·OF·OR·IN·CONNECTION·WITH·THE·SOFTWARE·OR·THE·USE·OR | 33 | 27·*·ARISING·FROM,·OUT·OF·OR·IN·CONNECTION·WITH·THE·SOFTWARE·OR·THE·USE·OR |
35 | 28·*·OTHER·DEALINGS·IN·THE·SOFTWARE. | 34 | 28·*·OTHER·DEALINGS·IN·THE·SOFTWARE. |
36 | 29·***************************************************************************/ | 35 | 29·***************************************************************************/ |
37 | 30 | 36 | 30 |
38 | 31//·Start·of·section·namespace·SILLY | 37 | 31//·Start·of·section·namespace·SILLY |
39 | 32namespace·SILLY | 38 | 32namespace·SILLY |
40 | 33{ | 39 | 33{ |
41 | 34 | 40 | 34inline·ImageLoader::ImageLoader(const·char*·name) |
41 | 35·:·d_name(name) | ||
42 | 36{ | ||
43 | 37} | ||
44 | 38inline·ImageLoader::~ImageLoader() | ||
45 | 39{ | ||
46 | 40} | ||
47 | 41inline·const·char*·ImageLoader::getIdentifierString()·const | ||
48 | 42{ | ||
49 | 43·return·d_name; | ||
50 | 44} | ||
51 | 45 | ||
42 | 52 | 46}·//·End·of·section·namespace·SILLY | |
43 | 53 | 47 | |
44 | =============================================================================== | 54 | =============================================================================== |
45 | ·····Generated·by _\x8[_\x8d_\x8o_\x8x_\x8y_\x8g_\x8e_\x8n_\x8]·1.9.8 | 55 | ·····Generated·by _\x8[_\x8d_\x8o_\x8x_\x8y_\x8g_\x8e_\x8n_\x8]·1.9.8 |
Offset 1, 15 lines modified | Offset 1, 15 lines modified | ||
1 | <!DOCTYPE·html·PUBLIC·"-//W3C//DTD·XHTML·1.0·Transitional//EN"·"https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> | 1 | <!DOCTYPE·html·PUBLIC·"-//W3C//DTD·XHTML·1.0·Transitional//EN"·"https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> |
2 | <html·xmlns="http://www.w3.org/1999/xhtml"·lang="en-US"> | 2 | <html·xmlns="http://www.w3.org/1999/xhtml"·lang="en-US"> |
3 | <head> | 3 | <head> |
4 | <meta·http-equiv="Content-Type"·content="text/xhtml;charset=UTF-8"/> | 4 | <meta·http-equiv="Content-Type"·content="text/xhtml;charset=UTF-8"/> |
5 | <meta·http-equiv="X-UA-Compatible"·content="IE=11"/> | 5 | <meta·http-equiv="X-UA-Compatible"·content="IE=11"/> |
6 | <meta·name="generator"·content="Doxygen·1.9.8"/> | 6 | <meta·name="generator"·content="Doxygen·1.9.8"/> |
7 | <meta·name="viewport"·content="width=device-width,·initial-scale=1"/> | 7 | <meta·name="viewport"·content="width=device-width,·initial-scale=1"/> |
8 | <title>Simple·Image·Loading·LibrarY:·/build/reproducible-path/silly-0.1.0/include/ | 8 | <title>Simple·Image·Loading·LibrarY:·/build/reproducible-path/silly-0.1.0/include/SILLYImageLoaderManager.icpp·Source·File</title> |
9 | <link·href="tabs.css"·rel="stylesheet"·type="text/css"/> | 9 | <link·href="tabs.css"·rel="stylesheet"·type="text/css"/> |
10 | <script·type="text/javascript"·src="jquery.js"></script> | 10 | <script·type="text/javascript"·src="jquery.js"></script> |
11 | <script·type="text/javascript"·src="dynsections.js"></script> | 11 | <script·type="text/javascript"·src="dynsections.js"></script> |
12 | <link·href="doxygen.css"·rel="stylesheet"·type="text/css"·/> | 12 | <link·href="doxygen.css"·rel="stylesheet"·type="text/css"·/> |
13 | </head> | 13 | </head> |
14 | <body> | 14 | <body> |
15 | <div·id="top"><!--·do·not·remove·this·div,·it·is·closed·by·doxygen!·--> | 15 | <div·id="top"><!--·do·not·remove·this·div,·it·is·closed·by·doxygen!·--> |
Offset 40, 88 lines modified | Offset 40, 83 lines modified | ||
40 | <script·type="text/javascript"> | 40 | <script·type="text/javascript"> |
41 | /*·@license·magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt·MIT·*/ | 41 | /*·@license·magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt·MIT·*/ |
42 | $(document).ready(function()·{·init_codefold(0);·}); | 42 | $(document).ready(function()·{·init_codefold(0);·}); |
43 | /*·@license-end·*/ | 43 | /*·@license-end·*/ |
44 | </script> | 44 | </script> |
45 | <div·id="nav-path"·class="navpath"> | 45 | <div·id="nav-path"·class="navpath"> |
46 | ··<ul> | 46 | ··<ul> |
47 | <li·class="navelem"><a·class="el"·href="dir_4fef79e7177ba769987a8da36c892c5f.html">build</a></li><li·class="navelem"><a·class="el"·href="dir_9def6061848686aab7e6212bb499d615.html">reproducible-path</a></li><li·class="navelem"><a·class="el"·href="dir_74170d5b58cefb7cb5a86fc552b183a3.html">silly-0.1.0</a></li><li·class="navelem"><a·class="el"·href="dir_0d87e2e7ddaae8a2a8572c0afc59fe0d.html">include</a></li> | 47 | <li·class="navelem"><a·class="el"·href="dir_4fef79e7177ba769987a8da36c892c5f.html">build</a></li><li·class="navelem"><a·class="el"·href="dir_9def6061848686aab7e6212bb499d615.html">reproducible-path</a></li><li·class="navelem"><a·class="el"·href="dir_74170d5b58cefb7cb5a86fc552b183a3.html">silly-0.1.0</a></li><li·class="navelem"><a·class="el"·href="dir_0d87e2e7ddaae8a2a8572c0afc59fe0d.html">include</a></li>··</ul> |
48 | </div> | 48 | </div> |
49 | </div><!--·top·--> | 49 | </div><!--·top·--> |
50 | <div·class="header"> | 50 | <div·class="header"> |
51 | ··<div·class="headertitle"><div·class="title">SILLY | 51 | ··<div·class="headertitle"><div·class="title">SILLYImageLoaderManager.icpp</div></div> |
52 | </div><!--header--> | 52 | </div><!--header--> |
53 | <div·class="contents"> | 53 | <div·class="contents"> |
54 | <div·class="fragment"><div·class="line"><a·id="l00001"·name="l00001"></a><span·class="lineno">····1</span> | 54 | <div·class="fragment"><div·class="line"><a·id="l00001"·name="l00001"></a><span·class="lineno">····1</span>/***********************************************************************</div> |
55 | <div·class="line"><a·id="l00002"·name="l00002"></a><span·class="lineno">····2</span> | 55 | <div·class="line"><a·id="l00002"·name="l00002"></a><span·class="lineno">····2</span>····filename:···SILLYImageLoaderManager.icpp·</div> |
56 | <div·class="line"><a·id="l00003"·name="l00003"></a><span·class="lineno">····3</span> | 56 | <div·class="line"><a·id="l00003"·name="l00003"></a><span·class="lineno">····3</span>····created:····10·Jun·2006</div> |
57 | <div·class="line"><a·id="l00004"·name="l00004"></a><span·class="lineno">····4</span> | 57 | <div·class="line"><a·id="l00004"·name="l00004"></a><span·class="lineno">····4</span>····author:·····Olivier·Delannoy</div> |
58 | <div·class="line"><a·id="l00005"·name="l00005"></a><span·class="lineno">····5</span> | 58 | <div·class="line"><a·id="l00005"·name="l00005"></a><span·class="lineno">····5</span>·</div> |
59 | <div·class="line"><a·id="l00006"·name="l00006"></a><span·class="lineno">····6</span> | 59 | <div·class="line"><a·id="l00006"·name="l00006"></a><span·class="lineno">····6</span>····purpose:····Inline·definition·for·ImageLoaderManager·class···</div> |
60 | <div·class="line"><a·id="l00007"·name="l00007"></a><span·class="lineno">····7</span> | 60 | <div·class="line"><a·id="l00007"·name="l00007"></a><span·class="lineno">····7</span>*************************************************************************/</div> |
61 | <div·class="line"><a·id="l00008"·name="l00008"></a><span·class="lineno">····8</span> | 61 | <div·class="line"><a·id="l00008"·name="l00008"></a><span·class="lineno">····8</span>/***************************************************************************</div> |
62 | <div·class="line"><a·id="l00009"·name="l00009"></a><span·class="lineno">····9</span> | 62 | <div·class="line"><a·id="l00009"·name="l00009"></a><span·class="lineno">····9</span>·*···Copyright·(C)·2004·-·2006·Paul·D·Turner·&·The·CEGUI·Development·Team</div> |
63 | <div·class="line"><a·id="l00010"·name="l00010"></a><span·class="lineno">···10</span> | 63 | <div·class="line"><a·id="l00010"·name="l00010"></a><span·class="lineno">···10</span>·*</div> |
64 | <div·class="line"><a·id="l00011"·name="l00011"></a><span·class="lineno">···11</span> | 64 | <div·class="line"><a·id="l00011"·name="l00011"></a><span·class="lineno">···11</span>·*···Permission·is·hereby·granted,·free·of·charge,·to·any·person·obtaining</div> |
65 | <div·class="line"><a·id="l00012"·name="l00012"></a><span·class="lineno">···12</span> | 65 | <div·class="line"><a·id="l00012"·name="l00012"></a><span·class="lineno">···12</span>·*···a·copy·of·this·software·and·associated·documentation·files·(the</div> |
66 | <div·class="line"><a·id="l00013"·name="l00013"></a><span·class="lineno">···13</span> | 66 | <div·class="line"><a·id="l00013"·name="l00013"></a><span·class="lineno">···13</span>·*···"Software"),·to·deal·in·the·Software·without·restriction,·including</div> |
67 | <div·class="line"><a·id="l00014"·name="l00014"></a><span·class="lineno">···14</span> | 67 | <div·class="line"><a·id="l00014"·name="l00014"></a><span·class="lineno">···14</span>·*···without·limitation·the·rights·to·use,·copy,·modify,·merge,·publish,</div> |
68 | <div·class="line"><a·id="l00015"·name="l00015"></a><span·class="lineno">···15</span> | 68 | <div·class="line"><a·id="l00015"·name="l00015"></a><span·class="lineno">···15</span>·*···distribute,·sublicense,·and/or·sell·copies·of·the·Software,·and·to</div> |
69 | <div·class="line"><a·id="l00016"·name="l00016"></a><span·class="lineno">···16</span> | 69 | <div·class="line"><a·id="l00016"·name="l00016"></a><span·class="lineno">···16</span>·*···permit·persons·to·whom·the·Software·is·furnished·to·do·so,·subject·to</div> |
70 | <div·class="line"><a·id="l00017"·name="l00017"></a><span·class="lineno">···17</span> | 70 | <div·class="line"><a·id="l00017"·name="l00017"></a><span·class="lineno">···17</span>·*···the·following·conditions:</div> |
71 | <div·class="line"><a·id="l00018"·name="l00018"></a><span·class="lineno">···18</span> | 71 | <div·class="line"><a·id="l00018"·name="l00018"></a><span·class="lineno">···18</span>·*</div> |
72 | <div·class="line"><a·id="l00019"·name="l00019"></a><span·class="lineno">···19</span> | 72 | <div·class="line"><a·id="l00019"·name="l00019"></a><span·class="lineno">···19</span>·*···The·above·copyright·notice·and·this·permission·notice·shall·be</div> |
73 | <div·class="line"><a·id="l00020"·name="l00020"></a><span·class="lineno">···20</span> | 73 | <div·class="line"><a·id="l00020"·name="l00020"></a><span·class="lineno">···20</span>·*···included·in·all·copies·or·substantial·portions·of·the·Software.</div> |
74 | <div·class="line"><a·id="l00021"·name="l00021"></a><span·class="lineno">···21</span> | 74 | <div·class="line"><a·id="l00021"·name="l00021"></a><span·class="lineno">···21</span>·*</div> |
75 | <div·class="line"><a·id="l00022"·name="l00022"></a><span·class="lineno">···22</span> | 75 | <div·class="line"><a·id="l00022"·name="l00022"></a><span·class="lineno">···22</span>·*···THE·SOFTWARE·IS·PROVIDED·"AS·IS",·WITHOUT·WARRANTY·OF·ANY·KIND,</div> |
76 | <div·class="line"><a·id="l00023"·name="l00023"></a><span·class="lineno">···23</span> | 76 | <div·class="line"><a·id="l00023"·name="l00023"></a><span·class="lineno">···23</span>·*···EXPRESS·OR·IMPLIED,·INCLUDING·BUT·NOT·LIMITED·TO·THE·WARRANTIES·OF</div> |
77 | <div·class="line"><a·id="l00024"·name="l00024"></a><span·class="lineno">···24</span> | 77 | <div·class="line"><a·id="l00024"·name="l00024"></a><span·class="lineno">···24</span>·*···MERCHANTABILITY,·FITNESS·FOR·A·PARTICULAR·PURPOSE·AND·NONINFRINGEMENT.</div> |
78 | <div·class="line"><a·id="l00025"·name="l00025"></a><span·class="lineno">···25</span> | 78 | <div·class="line"><a·id="l00025"·name="l00025"></a><span·class="lineno">···25</span>·*···IN·NO·EVENT·SHALL·THE·AUTHORS·BE·LIABLE·FOR·ANY·CLAIM,·DAMAGES·OR</div> |
79 | <div·class="line"><a·id="l00026"·name="l00026"></a><span·class="lineno">···26</span> | 79 | <div·class="line"><a·id="l00026"·name="l00026"></a><span·class="lineno">···26</span>·*···OTHER·LIABILITY,·WHETHER·IN·AN·ACTION·OF·CONTRACT,·TORT·OR·OTHERWISE,</div> |
80 | <div·class="line"><a·id="l00027"·name="l00027"></a><span·class="lineno">···27</span> | 80 | <div·class="line"><a·id="l00027"·name="l00027"></a><span·class="lineno">···27</span>·*···ARISING·FROM,·OUT·OF·OR·IN·CONNECTION·WITH·THE·SOFTWARE·OR·THE·USE·OR</div> |
81 | <div·class="line"><a·id="l00028"·name="l00028"></a><span·class="lineno">···28</span> | 81 | <div·class="line"><a·id="l00028"·name="l00028"></a><span·class="lineno">···28</span>·*···OTHER·DEALINGS·IN·THE·SOFTWARE.</div> |
82 | <div·class="line"><a·id="l00029"·name="l00029"></a><span·class="lineno">···29</span> | 82 | <div·class="line"><a·id="l00029"·name="l00029"></a><span·class="lineno">···29</span>·***************************************************************************/</div> |
83 | <div·class="line"><a·id="l00030"·name="l00030"></a><span·class="lineno">···30</span>·</div> | ||
83 | <div·class="line"><a·id="l00030"·name="l00030"></a><span·class="lineno">···30</span><span·class="preprocessor">#ifndef·_SILLYJPGImageLoader_h_·</span></div> | ||
84 | <div·class="line"><a·id="l00031"·name="l00031"></a><span·class="lineno">···31</span><span·class="preprocessor">#define·_SILLYJPGImageLoader_h_</span></div> | ||
85 | <div·class="line"><a·id="l00032"·name="l00032"></a><span·class="lineno">···32</span><span·class="preprocessor">#include·"SILLYBase.h"</span></div> | ||
86 | <div·class="line"><a·id="l00033"·name="l00033"></a><span·class="lineno">···33</span><span·class="preprocessor">#include·"SILLYImageLoader.h"</span>·</div> | ||
87 | <div·class="line"><a·id="l0003 | 84 | <div·class="line"><a·id="l00031"·name="l00031"></a><span·class="lineno">···31</span>//·Start·of·section·namespace·SILLY</div> |
88 | <div·class="line"><a·id="l0003 | 85 | <div·class="line"><a·id="l00032"·name="l00032"></a><span·class="lineno">···32</span>namespace·SILLY</div> |
89 | <div·class="line"><a·id="l0003 | 86 | <div·class="line"><a·id="l00033"·name="l00033"></a><span·class="lineno">···33</span>{</div> |
87 | <div·class="line"><a·id="l00034"·name="l00034"></a><span·class="lineno">···34</span>inline·ImageLoaderList::iterator·ImageLoaderManager::begin()</div> | ||
88 | <div·class="line"><a·id="l00035"·name="l00035"></a><span·class="lineno">···35</span>{</div> | ||
89 | <div·class="line"><a·id="l00036"·name="l00036"></a><span·class="lineno">···36</span>····return·d_loaders.begin();</div> | ||
90 | <div·class="line"><a·id="l00037"·name="l00037"></a><span·class="lineno">···37</span> | 90 | <div·class="line"><a·id="l00037"·name="l00037"></a><span·class="lineno">···37</span>}</div> |
91 | <div·class="foldopen"·id="foldopen00042"·data-start="{"·data-end="};"> | ||
92 | <div·class="line"><a·id="l000 | 91 | <div·class="line"><a·id="l00038"·name="l00038"></a><span·class="lineno">···38</span>·</div> |
92 | <div·class="line"><a·id="l00039"·name="l00039"></a><span·class="lineno">···39</span>inline·ImageLoaderList::iterator·ImageLoaderManager::end()·</div> | ||
93 | <div·class="line"><a·id="l00040"·name="l00040"></a><span·class="lineno">···40</span>{</div> | ||
94 | <div·class="line"><a·id="l00041"·name="l00041"></a><span·class="lineno">···41</span>····return·d_loaders.end();</div> | ||
95 | <div·class="line"><a·id="l00042"·name="l00042"></a><span·class="lineno">···42</span>}</div> | ||
93 | <div·class="line"><a·id="l00043"·name="l00043"></a><span·class="lineno">···43</span> | 96 | <div·class="line"><a·id="l00043"·name="l00043"></a><span·class="lineno">···43</span>·</div> |
97 | <div·class="line"><a·id="l00044"·name="l00044"></a><span·class="lineno">···44</span>inline·ImageLoaderManager*·ImageLoaderManager::getSingletonPtr()</div> | ||
98 | <div·class="line"><a·id="l00045"·name="l00045"></a><span·class="lineno">···45</span>{</div> | ||
99 | <div·class="line"><a·id="l00046"·name="l00046"></a><span·class="lineno">···46</span>····return·d_instance;</div> | ||
100 | <div·class="line"><a·id="l00047"·name="l00047"></a><span·class="lineno">···47</span>}</div> | ||
94 | <div·class="line"><a·id="l0004 | 101 | <div·class="line"><a·id="l00048"·name="l00048"></a><span·class="lineno">···48</span>·</div> |
102 | <div·class="line"><a·id="l00049"·name="l00049"></a><span·class="lineno">···49</span>inline·ImageLoaderManager&·ImageLoaderManager::getSingleton()</div> | ||
95 | <div·class="line"><a·id="l00045"·name="l00045"></a><span·class="lineno">···45</span>····<a·class="code·hl_class"·href="a00949.html">JPGImageLoader</a>();</div> | ||
96 | <div·class="line"><a·id="l00046"·name="l00046"></a><span·class="lineno">···46</span>····<a·class="code·hl_class"·href="a00949.html">~JPGImageLoader</a>();</div> | ||
97 | <div·class="line"><a·id="l00047"·name="l00047"></a><span·class="lineno">···47</span>····<a·class="code·hl_class"·href="a00981.html">ImageContext</a>*·<a·class="code·hl_function"·href="a00949.html#a919eb05f6df058544657e865a1590d5a">loadHeader</a>(<a·class="code·hl_enumeration"·href="a00129.html#a60883d4958a60b91661e97027a85072a">PixelFormat</a>&·header,·<a·class="code·hl_class"·href="a00969.html">DataSource</a>*·data);</div> | ||
98 | <div·class="line"><a·id="l00048"·name="l00048"></a><span·class="lineno">···48</span>····<span·class="keywordtype">bool</span>·<a·class="code·hl_function"·href="a00949.html#a4a4d6df5dcc08cb493855fcfc1956fca">loadImageData</a>(<a·class="code·hl_enumeration"·href="a00129.html#aebdd89f22790687ac264c1abd9f7fd38">PixelOrigin</a>·origin,·<a·class="code·hl_class"·href="a00969.html">DataSource</a>*·data,·<a·class="code·hl_class"·href="a00981.html">ImageContext</a>*·context);</div> | ||
99 | <div·class="line"><a·id="l00049"·name="l00049"></a><span·class="lineno">···49</span><span·class="keyword">private</span>:</div> | ||
100 | <div·class="line"><a·id="l00050"·name="l00050"></a><span·class="lineno">···50</span> | 103 | <div·class="line"><a·id="l00050"·name="l00050"></a><span·class="lineno">···50</span>{</div> |
101 | </div> | 104 | <div·class="line"><a·id="l00051"·name="l00051"></a><span·class="lineno">···51</span>····assert(d_instance·&&·"ASSERT:·Singleton·object·not·yet·created");</div> |
105 | <div·class="line"><a·id="l00052"·name="l00052"></a><span·class="lineno">···52</span>····return·*d_instance;</div> | ||
102 | <div·class="line"><a·id="l0005 | 106 | <div·class="line"><a·id="l00053"·name="l00053"></a><span·class="lineno">···53</span>}</div> |
103 | <div·class="line"><a·id="l00052"·name="l00052"></a><span·class="lineno">···52</span>··</div> | ||
104 | <div·class="line"><a·id="l00053"·name="l00053"></a><span·class="lineno">···53</span>}·<span·class="comment">//·End·of·section·namespace·SILLY·</span></div> | ||
105 | <div·class="line"><a·id="l00054"·name="l00054"></a><span·class="lineno">···54</span>·</div> | 107 | <div·class="line"><a·id="l00054"·name="l00054"></a><span·class="lineno">···54</span>·</div> |
108 | <div·class="line"><a·id="l00055"·name="l00055"></a><span·class="lineno">···55</span>inline·void·ImageLoaderManager::add(ImageLoader*·loader)</div> | ||
106 | <div·class="line"><a·id="l00055"·name="l00055"></a><span·class="lineno">···55</span><span·class="comment">//·Inclue·inline·function·when·needed·</span></div> | ||
107 | <div·class="line"><a·id="l00056"·name="l00056"></a><span·class="lineno">···56</span><span·class="preprocessor">#ifdef·SILLY_OPT_INLINE</span></div> | ||
108 | <div·class="line"><a·id="l00057"·name="l00057"></a><span·class="lineno">···57</span><span·class="preprocessor">#include·"SILLYJPGImageLoader.icpp"</span></div> | ||
109 | <div·class="line"><a·id="l0005 | 109 | <div·class="line"><a·id="l00056"·name="l00056"></a><span·class="lineno">···56</span>{</div> |
110 | <div·class="line"><a·id="l00057"·name="l00057"></a><span·class="lineno">···57</span>····assert(loader·&&·"ASSERT:·adding·a·none·existing·loader·object");</div> | ||
111 | <div·class="line"><a·id="l00058"·name="l00058"></a><span·class="lineno">···58</span>····d_loaders.push_back(loader);</div> | ||
110 | <div·class="line"><a·id="l00059"·name="l00059"></a><span·class="lineno">···59</span> | 112 | <div·class="line"><a·id="l00059"·name="l00059"></a><span·class="lineno">···59</span>}</div> |
113 | <div·class="line"><a·id="l00060"·name="l00060"></a><span·class="lineno">···60</span>·</div> | ||
114 | <div·class="line"><a·id="l00061"·name="l00061"></a><span·class="lineno">···61</span>}·//·End·of·section·namespace·SILLY</div> | ||
115 | <div·class="line"><a·id="l00062"·name="l00062"></a><span·class="lineno">···62</span>·</div> | ||
111 | <div·class="line"><a·id="l00060"·name="l00060"></a><span·class="lineno">···60</span><span·class="preprocessor">#endif·</span><span·class="comment">//·end·of·guard·_SILLYJPGImageLoader_h_</span></div> | ||
112 | <div·class="ttc"·id="aa00129_html"><div·class="ttname"><a·href="a00129.html">SILLY</a></div><div·class="ttdoc">Simple·Image·Loading·LibrarY·namespace.</div><div·class="ttdef"><b>Definition</b>·<a·href="a00029_source.html#l00045">SILLYJPGImageContext.cpp:46</a></div></div> | ||
113 | <div·class="ttc"·id="aa00129_html_a60883d4958a60b91661e97027a85072a"><div·class="ttname"><a·href="a00129.html#a60883d4958a60b91661e97027a85072a">SILLY::PixelFormat</a></div><div·class="ttdeci">PixelFormat</div><div·class="ttdoc">List·all·pixel·format·supported.</div><div·class="ttdef"><b>Definition</b>·<a·href="a00104_source.html#l00059">SILLYBase.h:60</a></div></div> | ||
114 | <div·class="ttc"·id="aa00129_html_aebdd89f22790687ac264c1abd9f7fd38"><div·class="ttname"><a·href="a00129.html#aebdd89f22790687ac264c1abd9f7fd38">SILLY::PixelOrigin</a></div><div·class="ttdeci">PixelOrigin</div><div·class="ttdoc">List·all·pixel·origin·supported.</div><div·class="ttdef"><b>Definition</b>·<a·href="a00104_source.html#l00070">SILLYBase.h:71</a></div></div> | ||
115 | <div·class="ttc"·id="aa00949_html"><div·class="ttname"><a·href="a00949.html">SILLY::JPGImageLoader</a></div><div·class="ttdoc">Loader·class·for·JPG·Image.</div><div·class="ttdef"><b>Definition</b>·<a·href="a00059_source.html#l00042">SILLYJPGImageLoader.h:43</a></div></div> | ||
116 | <div·class="ttc"·id="aa00949_html_a4a4d6df5dcc08cb493855fcfc1956fca"><div·class="ttname"><a·href="a00949.html#a4a4d6df5dcc08cb493855fcfc1956fca">SILLY::JPGImageLoader::loadImageData</a></div><div·class="ttdeci">bool·loadImageData(PixelOrigin·origin,·DataSource·*data,·ImageContext·*context)</div><div·class="ttdoc">Parse·the·pixels·data·of·the·image·and·fill·the·header·struct.</div><div·class="ttdef"><b>Definition</b>·<a·href="a00023_source.html#l00090">SILLYJPGImageLoader.cpp:90</a></div></div> | ||
117 | <div·class="ttc"·id="aa00949_html_a919eb05f6df058544657e865a1590d5a"><div·class="ttname"><a·href="a00949.html#a919eb05f6df058544657e865a1590d5a">SILLY::JPGImageLoader::loadHeader</a></div><div·class="ttdeci">ImageContext·*·loadHeader(PixelFormat·&header,·DataSource·*data)</div><div·class="ttdoc">Parse·the·header·of·the·image·and·fill·the·header·struct.</div><div·class="ttdef"><b>Definition</b>·<a·href="a00023_source.html#l00056">SILLYJPGImageLoader.cpp:56</a></div></div> | ||
118 | <div·class="ttc"·id="aa00969_html"><div·class="ttname"><a·href="a00969.html">SILLY::DataSource</a></div><div·class="ttdoc">This·is·an·abstract·class·used·to·provide·data·to·the·loader.</div><div·class="ttdef"><b>Definition</b>·<a·href="a00101_source.html#l00046">SILLYDataSource.h:47</a></div></div> | ||
119 | <div·class="ttc"·id="aa00981_html"><div·class="ttname"><a·href="a00981.html">SILLY::ImageContext</a></div><div·class="ttdoc">Store·the·data·needed·by·an·ImageLoader·object·during·the·parsing·of·an·image.</div><div·class="ttdef"><b>Definition</b>·<a·href="a00092_source.html#l00043">SILLYImageContext.h:44</a></div></div> | ||
120 | <div·class="ttc"·id="aa00985_html"><div·class="ttname"><a·href="a00985.html">SILLY::ImageLoader</a></div><div·class="ttdoc">This·is·an·abstract·class·that·define·the·interface·of·all·image·loader.</div><div·class="ttdef"><b>Definition</b>·<a·href="a00095_source.html#l00046">SILLYImageLoader.h:47</a></div></div> | ||
121 | </div><!--·fragment·--></div><!--·contents·--> | 116 | </div><!--·fragment·--></div><!--·contents·--> |
122 | <!--·start·footer·part·--> | 117 | <!--·start·footer·part·--> |
123 | <hr·class="footer"/><address·class="footer"><small> | 118 | <hr·class="footer"/><address·class="footer"><small> |
124 | Generated·by <a·href="https://www.doxygen.org/index.html"><img·class="footer"·src="doxygen.svg"·width="104"·height="31"·alt="doxygen"/></a>·1.9.8 | 119 | Generated·by <a·href="https://www.doxygen.org/index.html"><img·class="footer"·src="doxygen.svg"·width="104"·height="31"·alt="doxygen"/></a>·1.9.8 |
125 | </small></address> | 120 | </small></address> |
126 | </body> | 121 | </body> |
127 | </html> | 122 | </html> |
Offset 1, 20 lines modified | Offset 1, 19 lines modified | ||
1 | Simple·Image·Loading·LibrarY 0.1.0 | 1 | Simple·Image·Loading·LibrarY 0.1.0 |
2 | ····*·_\x8b_\x8u_\x8i_\x8l_\x8d | 2 | ····*·_\x8b_\x8u_\x8i_\x8l_\x8d |
3 | ····*·_\x8r_\x8e_\x8p_\x8r_\x8o_\x8d_\x8u_\x8c_\x8i_\x8b_\x8l_\x8e_\x8-_\x8p_\x8a_\x8t_\x8h | 3 | ····*·_\x8r_\x8e_\x8p_\x8r_\x8o_\x8d_\x8u_\x8c_\x8i_\x8b_\x8l_\x8e_\x8-_\x8p_\x8a_\x8t_\x8h |
4 | ····*·_\x8s_\x8i_\x8l_\x8l_\x8y_\x8-_\x80_\x8._\x81_\x8._\x80 | 4 | ····*·_\x8s_\x8i_\x8l_\x8l_\x8y_\x8-_\x80_\x8._\x81_\x8._\x80 |
5 | ····*·_\x8i_\x8n_\x8c_\x8l_\x8u_\x8d_\x8e | 5 | ····*·_\x8i_\x8n_\x8c_\x8l_\x8u_\x8d_\x8e |
6 | SILLYImageLoaderManager.icpp | ||
6 | ····*·_\x8l_\x8o_\x8a_\x8d_\x8e_\x8r_\x8s | ||
7 | SILLYJPGImageLoader.h | ||
8 | 1/*********************************************************************** | 7 | 1/*********************************************************************** |
9 | 2·filename:·SILLY | 8 | 2·filename:·SILLYImageLoaderManager.icpp |
10 | 3·created:·1 | 9 | 3·created:·10·Jun·2006 |
11 | 4·author:·Olivier·Delannoy | 10 | 4·author:·Olivier·Delannoy |
12 | 5 | 11 | 5 |
13 | 6·purpose:· | 12 | 6·purpose:·Inline·definition·for·ImageLoaderManager·class |
14 | 7*************************************************************************/ | 13 | 7*************************************************************************/ |
15 | 8/*************************************************************************** | 14 | 8/*************************************************************************** |
16 | 9·*·Copyright·(C)·2004·-·2006·Paul·D·Turner·&·The·CEGUI·Development·Team | 15 | 9·*·Copyright·(C)·2004·-·2006·Paul·D·Turner·&·The·CEGUI·Development·Team |
17 | 10·* | 16 | 10·* |
18 | 11·*·Permission·is·hereby·granted,·free·of·charge,·to·any·person·obtaining | 17 | 11·*·Permission·is·hereby·granted,·free·of·charge,·to·any·person·obtaining |
19 | 12·*·a·copy·of·this·software·and·associated·documentation·files·(the | 18 | 12·*·a·copy·of·this·software·and·associated·documentation·files·(the |
20 | 13·*·"Software"),·to·deal·in·the·Software·without·restriction,·including | 19 | 13·*·"Software"),·to·deal·in·the·Software·without·restriction,·including |
Offset 30, 68 lines modified | Offset 29, 42 lines modified | ||
30 | 23·*·EXPRESS·OR·IMPLIED,·INCLUDING·BUT·NOT·LIMITED·TO·THE·WARRANTIES·OF | 29 | 23·*·EXPRESS·OR·IMPLIED,·INCLUDING·BUT·NOT·LIMITED·TO·THE·WARRANTIES·OF |
31 | 24·*·MERCHANTABILITY,·FITNESS·FOR·A·PARTICULAR·PURPOSE·AND·NONINFRINGEMENT. | 30 | 24·*·MERCHANTABILITY,·FITNESS·FOR·A·PARTICULAR·PURPOSE·AND·NONINFRINGEMENT. |
32 | 25·*·IN·NO·EVENT·SHALL·THE·AUTHORS·BE·LIABLE·FOR·ANY·CLAIM,·DAMAGES·OR | 31 | 25·*·IN·NO·EVENT·SHALL·THE·AUTHORS·BE·LIABLE·FOR·ANY·CLAIM,·DAMAGES·OR |
33 | 26·*·OTHER·LIABILITY,·WHETHER·IN·AN·ACTION·OF·CONTRACT,·TORT·OR·OTHERWISE, | 32 | 26·*·OTHER·LIABILITY,·WHETHER·IN·AN·ACTION·OF·CONTRACT,·TORT·OR·OTHERWISE, |
34 | 27·*·ARISING·FROM,·OUT·OF·OR·IN·CONNECTION·WITH·THE·SOFTWARE·OR·THE·USE·OR | 33 | 27·*·ARISING·FROM,·OUT·OF·OR·IN·CONNECTION·WITH·THE·SOFTWARE·OR·THE·USE·OR |
35 | 28·*·OTHER·DEALINGS·IN·THE·SOFTWARE. | 34 | 28·*·OTHER·DEALINGS·IN·THE·SOFTWARE. |
36 | 29·***************************************************************************/ | 35 | 29·***************************************************************************/ |
36 | 30 | ||
37 | 30#ifndef·_SILLYJPGImageLoader_h_ | ||
38 | 31#define·_SILLYJPGImageLoader_h_ | ||
39 | 32#include·"SILLYBase.h" | ||
40 | 33#include·"SILLYImageLoader.h" | ||
41 | 3 | 37 | 31//·Start·of·section·namespace·SILLY |
42 | 35namespace·_\x8S_\x8I_\x8L_\x8L_\x8Y | ||
43 | 3 | 38 | 32namespace·SILLY |
39 | 33{ | ||
40 | 34inline·ImageLoaderList::iterator·ImageLoaderManager::begin() | ||
41 | 35{ | ||
42 | 36·return·d_loaders.begin(); | ||
44 | 37 | 43 | 37} |
45 | 44 | 38 | |
45 | 39inline·ImageLoaderList::iterator·ImageLoaderManager::end() | ||
46 | 40{ | ||
47 | 41·return·d_loaders.end(); | ||
48 | 42} | ||
46 | 43 | 49 | 43 |
50 | 44inline·ImageLoaderManager*·ImageLoaderManager::getSingletonPtr() | ||
51 | 45{ | ||
52 | 46·return·d_instance; | ||
53 | 47} | ||
54 | 48 | ||
55 | 49inline·ImageLoaderManager&·ImageLoaderManager::getSingleton() | ||
56 | 50{ | ||
57 | 51·assert(d_instance·&&·"ASSERT:·Singleton·object·not·yet·created"); | ||
58 | 52·return·*d_instance; | ||
59 | 53} | ||
47 | 44public: | ||
48 | 45·_\x8J_\x8P_\x8G_\x8I_\x8m_\x8a_\x8g_\x8e_\x8L_\x8o_\x8a_\x8d_\x8e_\x8r(); | ||
49 | 46·_\x8~_\x8J_\x8P_\x8G_\x8I_\x8m_\x8a_\x8g_\x8e_\x8L_\x8o_\x8a_\x8d_\x8e_\x8r(); | ||
50 | 47·_\x8I_\x8m_\x8a_\x8g_\x8e_\x8C_\x8o_\x8n_\x8t_\x8e_\x8x_\x8t*·_\x8l_\x8o_\x8a_\x8d_\x8H_\x8e_\x8a_\x8d_\x8e_\x8r(_\x8P_\x8i_\x8x_\x8e_\x8l_\x8F_\x8o_\x8r_\x8m_\x8a_\x8t&·header,·_\x8D_\x8a_\x8t_\x8a_\x8S_\x8o_\x8u_\x8r_\x8c_\x8e*·data); | ||
51 | 48·bool·_\x8l_\x8o_\x8a_\x8d_\x8I_\x8m_\x8a_\x8g_\x8e_\x8D_\x8a_\x8t_\x8a(_\x8P_\x8i_\x8x_\x8e_\x8l_\x8O_\x8r_\x8i_\x8g_\x8i_\x8n·origin,·_\x8D_\x8a_\x8t_\x8a_\x8S_\x8o_\x8u_\x8r_\x8c_\x8e*·data,·_\x8I_\x8m_\x8a_\x8g_\x8e_\x8C_\x8o_\x8n_\x8t_\x8e_\x8x_\x8t* | ||
52 | context); | ||
53 | 49private: | ||
54 | 50}; | ||
55 | 51 | ||
56 | 52 | ||
57 | 53}·//·End·of·section·namespace·SILLY | ||
58 | 54 | 60 | 54 |
59 | 55//·Inclue·inline·function·when·needed | ||
60 | 56#ifdef·SILLY_OPT_INLINE | ||
61 | 57#include·"SILLYJPGImageLoader.icpp" | ||
62 | 5 | 61 | 55inline·void·ImageLoaderManager::add(ImageLoader*·loader) |
62 | 56{ | ||
63 | 57·assert(loader·&&·"ASSERT:·adding·a·none·existing·loader·object"); | ||
64 | 58·d_loaders.push_back(loader); | ||
63 | 59 | 65 | 59} |
66 | 60 | ||
67 | 61}·//·End·of·section·namespace·SILLY | ||
68 | 62 | ||
64 | 60#endif·//·end·of·guard·_SILLYJPGImageLoader_h_ | ||
65 | _\x8S_\x8I_\x8L_\x8L_\x8Y | ||
66 | Simple·Image·Loading·LibrarY·namespace. | ||
67 | D\x8De\x8ef\x8fi\x8in\x8ni\x8it\x8ti\x8io\x8on\x8n·_\x8S_\x8I_\x8L_\x8L_\x8Y_\x8J_\x8P_\x8G_\x8I_\x8m_\x8a_\x8g_\x8e_\x8C_\x8o_\x8n_\x8t_\x8e_\x8x_\x8t_\x8._\x8c_\x8p_\x8p_\x8:_\x84_\x86 | ||
68 | _\x8S_\x8I_\x8L_\x8L_\x8Y_\x8:_\x8:_\x8P_\x8i_\x8x_\x8e_\x8l_\x8F_\x8o_\x8r_\x8m_\x8a_\x8t | ||
69 | PixelFormat | ||
70 | List·all·pixel·format·supported. | ||
71 | D\x8De\x8ef\x8fi\x8in\x8ni\x8it\x8ti\x8io\x8on\x8n·_\x8S_\x8I_\x8L_\x8L_\x8Y_\x8B_\x8a_\x8s_\x8e_\x8._\x8h_\x8:_\x86_\x80 | ||
72 | _\x8S_\x8I_\x8L_\x8L_\x8Y_\x8:_\x8:_\x8P_\x8i_\x8x_\x8e_\x8l_\x8O_\x8r_\x8i_\x8g_\x8i_\x8n | ||
73 | PixelOrigin | ||
74 | List·all·pixel·origin·supported. | ||
75 | D\x8De\x8ef\x8fi\x8in\x8ni\x8it\x8ti\x8io\x8on\x8n·_\x8S_\x8I_\x8L_\x8L_\x8Y_\x8B_\x8a_\x8s_\x8e_\x8._\x8h_\x8:_\x87_\x81 | ||
76 | _\x8S_\x8I_\x8L_\x8L_\x8Y_\x8:_\x8:_\x8J_\x8P_\x8G_\x8I_\x8m_\x8a_\x8g_\x8e_\x8L_\x8o_\x8a_\x8d_\x8e_\x8r | ||
77 | Loader·class·for·JPG·Image. | ||
78 | D\x8De\x8ef\x8fi\x8in\x8ni\x8it\x8ti\x8io\x8on\x8n·_\x8S_\x8I_\x8L_\x8L_\x8Y_\x8J_\x8P_\x8G_\x8I_\x8m_\x8a_\x8g_\x8e_\x8L_\x8o_\x8a_\x8d_\x8e_\x8r_\x8._\x8h_\x8:_\x84_\x83 | ||
79 | _\x8S_\x8I_\x8L_\x8L_\x8Y_\x8:_\x8:_\x8J_\x8P_\x8G_\x8I_\x8m_\x8a_\x8g_\x8e_\x8L_\x8o_\x8a_\x8d_\x8e_\x8r_\x8:_\x8:_\x8l_\x8o_\x8a_\x8d_\x8I_\x8m_\x8a_\x8g_\x8e_\x8D_\x8a_\x8t_\x8a | ||
80 | bool·loadImageData(PixelOrigin·origin,·DataSource·*data,·ImageContext·*context) | ||
81 | Parse·the·pixels·data·of·the·image·and·fill·the·header·struct. | ||
82 | D\x8De\x8ef\x8fi\x8in\x8ni\x8it\x8ti\x8io\x8on\x8n·_\x8S_\x8I_\x8L_\x8L_\x8Y_\x8J_\x8P_\x8G_\x8I_\x8m_\x8a_\x8g_\x8e_\x8L_\x8o_\x8a_\x8d_\x8e_\x8r_\x8._\x8c_\x8p_\x8p_\x8:_\x89_\x80 | ||
83 | _\x8S_\x8I_\x8L_\x8L_\x8Y_\x8:_\x8:_\x8J_\x8P_\x8G_\x8I_\x8m_\x8a_\x8g_\x8e_\x8L_\x8o_\x8a_\x8d_\x8e_\x8r_\x8:_\x8:_\x8l_\x8o_\x8a_\x8d_\x8H_\x8e_\x8a_\x8d_\x8e_\x8r | ||
84 | ImageContext·*·loadHeader(PixelFormat·&header,·DataSource·*data) | ||
85 | Parse·the·header·of·the·image·and·fill·the·header·struct. | ||
86 | D\x8De\x8ef\x8fi\x8in\x8ni\x8it\x8ti\x8io\x8on\x8n·_\x8S_\x8I_\x8L_\x8L_\x8Y_\x8J_\x8P_\x8G_\x8I_\x8m_\x8a_\x8g_\x8e_\x8L_\x8o_\x8a_\x8d_\x8e_\x8r_\x8._\x8c_\x8p_\x8p_\x8:_\x85_\x86 | ||
87 | _\x8S_\x8I_\x8L_\x8L_\x8Y_\x8:_\x8:_\x8D_\x8a_\x8t_\x8a_\x8S_\x8o_\x8u_\x8r_\x8c_\x8e | ||
88 | This·is·an·abstract·class·used·to·provide·data·to·the·loader. | ||
89 | D\x8De\x8ef\x8fi\x8in\x8ni\x8it\x8ti\x8io\x8on\x8n·_\x8S_\x8I_\x8L_\x8L_\x8Y_\x8D_\x8a_\x8t_\x8a_\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8._\x8h_\x8:_\x84_\x87 | ||
90 | _\x8S_\x8I_\x8L_\x8L_\x8Y_\x8:_\x8:_\x8I_\x8m_\x8a_\x8g_\x8e_\x8C_\x8o_\x8n_\x8t_\x8e_\x8x_\x8t | ||
91 | Store·the·data·needed·by·an·ImageLoader·object·during·the·parsing·of·an·image. | ||
92 | D\x8De\x8ef\x8fi\x8in\x8ni\x8it\x8ti\x8io\x8on\x8n·_\x8S_\x8I_\x8L_\x8L_\x8Y_\x8I_\x8m_\x8a_\x8g_\x8e_\x8C_\x8o_\x8n_\x8t_\x8e_\x8x_\x8t_\x8._\x8h_\x8:_\x84_\x84 | ||
93 | _\x8S_\x8I_\x8L_\x8L_\x8Y_\x8:_\x8:_\x8I_\x8m_\x8a_\x8g_\x8e_\x8L_\x8o_\x8a_\x8d_\x8e_\x8r | ||
94 | This·is·an·abstract·class·that·define·the·interface·of·all·image·loader. | ||
95 | D\x8De\x8ef\x8fi\x8in\x8ni\x8it\x8ti\x8io\x8on\x8n·_\x8S_\x8I_\x8L_\x8L_\x8Y_\x8I_\x8m_\x8a_\x8g_\x8e_\x8L_\x8o_\x8a_\x8d_\x8e_\x8r_\x8._\x8h_\x8:_\x84_\x87 | ||
96 | =============================================================================== | 69 | =============================================================================== |
97 | ·····Generated·by _\x8[_\x8d_\x8o_\x8x_\x8y_\x8g_\x8e_\x8n_\x8]·1.9.8 | 70 | ·····Generated·by _\x8[_\x8d_\x8o_\x8x_\x8y_\x8g_\x8e_\x8n_\x8]·1.9.8 |
Offset 1, 15 lines modified | Offset 1, 15 lines modified | ||
1 | <!DOCTYPE·html·PUBLIC·"-//W3C//DTD·XHTML·1.0·Transitional//EN"·"https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> | 1 | <!DOCTYPE·html·PUBLIC·"-//W3C//DTD·XHTML·1.0·Transitional//EN"·"https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> |
2 | <html·xmlns="http://www.w3.org/1999/xhtml"·lang="en-US"> | 2 | <html·xmlns="http://www.w3.org/1999/xhtml"·lang="en-US"> |
3 | <head> | 3 | <head> |
4 | <meta·http-equiv="Content-Type"·content="text/xhtml;charset=UTF-8"/> | 4 | <meta·http-equiv="Content-Type"·content="text/xhtml;charset=UTF-8"/> |
5 | <meta·http-equiv="X-UA-Compatible"·content="IE=11"/> | 5 | <meta·http-equiv="X-UA-Compatible"·content="IE=11"/> |
6 | <meta·name="generator"·content="Doxygen·1.9.8"/> | 6 | <meta·name="generator"·content="Doxygen·1.9.8"/> |
7 | <meta·name="viewport"·content="width=device-width,·initial-scale=1"/> | 7 | <meta·name="viewport"·content="width=device-width,·initial-scale=1"/> |
8 | <title>Simple·Image·Loading·LibrarY:·/build/reproducible-path/silly-0.1.0/include/ | 8 | <title>Simple·Image·Loading·LibrarY:·/build/reproducible-path/silly-0.1.0/include/SILLYFileDataSource.icpp·Source·File</title> |
9 | <link·href="tabs.css"·rel="stylesheet"·type="text/css"/> | 9 | <link·href="tabs.css"·rel="stylesheet"·type="text/css"/> |
10 | <script·type="text/javascript"·src="jquery.js"></script> | 10 | <script·type="text/javascript"·src="jquery.js"></script> |
11 | <script·type="text/javascript"·src="dynsections.js"></script> | 11 | <script·type="text/javascript"·src="dynsections.js"></script> |
12 | <link·href="doxygen.css"·rel="stylesheet"·type="text/css"·/> | 12 | <link·href="doxygen.css"·rel="stylesheet"·type="text/css"·/> |
13 | </head> | 13 | </head> |
14 | <body> | 14 | <body> |
15 | <div·id="top"><!--·do·not·remove·this·div,·it·is·closed·by·doxygen!·--> | 15 | <div·id="top"><!--·do·not·remove·this·div,·it·is·closed·by·doxygen!·--> |
Offset 40, 27 lines modified | Offset 40, 27 lines modified | ||
40 | <script·type="text/javascript"> | 40 | <script·type="text/javascript"> |
41 | /*·@license·magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt·MIT·*/ | 41 | /*·@license·magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt·MIT·*/ |
42 | $(document).ready(function()·{·init_codefold(0);·}); | 42 | $(document).ready(function()·{·init_codefold(0);·}); |
43 | /*·@license-end·*/ | 43 | /*·@license-end·*/ |
44 | </script> | 44 | </script> |
45 | <div·id="nav-path"·class="navpath"> | 45 | <div·id="nav-path"·class="navpath"> |
46 | ··<ul> | 46 | ··<ul> |
47 | <li·class="navelem"><a·class="el"·href="dir_4fef79e7177ba769987a8da36c892c5f.html">build</a></li><li·class="navelem"><a·class="el"·href="dir_9def6061848686aab7e6212bb499d615.html">reproducible-path</a></li><li·class="navelem"><a·class="el"·href="dir_74170d5b58cefb7cb5a86fc552b183a3.html">silly-0.1.0</a></li><li·class="navelem"><a·class="el"·href="dir_0d87e2e7ddaae8a2a8572c0afc59fe0d.html">include</a></li> | 47 | <li·class="navelem"><a·class="el"·href="dir_4fef79e7177ba769987a8da36c892c5f.html">build</a></li><li·class="navelem"><a·class="el"·href="dir_9def6061848686aab7e6212bb499d615.html">reproducible-path</a></li><li·class="navelem"><a·class="el"·href="dir_74170d5b58cefb7cb5a86fc552b183a3.html">silly-0.1.0</a></li><li·class="navelem"><a·class="el"·href="dir_0d87e2e7ddaae8a2a8572c0afc59fe0d.html">include</a></li>··</ul> |
48 | </div> | 48 | </div> |
49 | </div><!--·top·--> | 49 | </div><!--·top·--> |
50 | <div·class="header"> | 50 | <div·class="header"> |
51 | ··<div·class="headertitle"><div·class="title">SILLY | 51 | ··<div·class="headertitle"><div·class="title">SILLYFileDataSource.icpp</div></div> |
52 | </div><!--header--> | 52 | </div><!--header--> |
53 | <div·class="contents"> | 53 | <div·class="contents"> |
54 | <div·class="fragment"><div·class="line"><a·id="l00001"·name="l00001"></a><span·class="lineno">····1</span>/***********************************************************************</div> | 54 | <div·class="fragment"><div·class="line"><a·id="l00001"·name="l00001"></a><span·class="lineno">····1</span>/***********************************************************************</div> |
55 | <div·class="line"><a·id="l00002"·name="l00002"></a><span·class="lineno">····2</span>····filename:···SILLY | 55 | <div·class="line"><a·id="l00002"·name="l00002"></a><span·class="lineno">····2</span>····filename:···SILLYFileDataSource.icpp·</div> |
56 | <div·class="line"><a·id="l00003"·name="l00003"></a><span·class="lineno">····3</span>····created:···· | 56 | <div·class="line"><a·id="l00003"·name="l00003"></a><span·class="lineno">····3</span>····created:····20·Jul·2006</div> |
57 | <div·class="line"><a·id="l00004"·name="l00004"></a><span·class="lineno">····4</span>····author:·····Olivier·Delannoy</div> | 57 | <div·class="line"><a·id="l00004"·name="l00004"></a><span·class="lineno">····4</span>····author:·····Olivier·Delannoy</div> |
58 | <div·class="line"><a·id="l00005"·name="l00005"></a><span·class="lineno">····5</span>·</div> | 58 | <div·class="line"><a·id="l00005"·name="l00005"></a><span·class="lineno">····5</span>·</div> |
59 | <div·class="line"><a·id="l00006"·name="l00006"></a><span·class="lineno">····6</span>····purpose:····Inline·definition·for· | 59 | <div·class="line"><a·id="l00006"·name="l00006"></a><span·class="lineno">····6</span>····purpose:····Inline·function·definition·for·the·FileDataSource·class···</div> |
60 | <div·class="line"><a·id="l00007"·name="l00007"></a><span·class="lineno">····7</span>*************************************************************************/</div> | 60 | <div·class="line"><a·id="l00007"·name="l00007"></a><span·class="lineno">····7</span>*************************************************************************/</div> |
61 | <div·class="line"><a·id="l00008"·name="l00008"></a><span·class="lineno">····8</span>/***************************************************************************</div> | 61 | <div·class="line"><a·id="l00008"·name="l00008"></a><span·class="lineno">····8</span>/***************************************************************************</div> |
62 | <div·class="line"><a·id="l00009"·name="l00009"></a><span·class="lineno">····9</span>·*···Copyright·(C)·2004·-·2006·Paul·D·Turner·&·The·CEGUI·Development·Team</div> | 62 | <div·class="line"><a·id="l00009"·name="l00009"></a><span·class="lineno">····9</span>·*···Copyright·(C)·2004·-·2006·Paul·D·Turner·&·The·CEGUI·Development·Team</div> |
63 | <div·class="line"><a·id="l00010"·name="l00010"></a><span·class="lineno">···10</span>·*</div> | 63 | <div·class="line"><a·id="l00010"·name="l00010"></a><span·class="lineno">···10</span>·*</div> |
64 | <div·class="line"><a·id="l00011"·name="l00011"></a><span·class="lineno">···11</span>·*···Permission·is·hereby·granted,·free·of·charge,·to·any·person·obtaining</div> | 64 | <div·class="line"><a·id="l00011"·name="l00011"></a><span·class="lineno">···11</span>·*···Permission·is·hereby·granted,·free·of·charge,·to·any·person·obtaining</div> |
65 | <div·class="line"><a·id="l00012"·name="l00012"></a><span·class="lineno">···12</span>·*···a·copy·of·this·software·and·associated·documentation·files·(the</div> | 65 | <div·class="line"><a·id="l00012"·name="l00012"></a><span·class="lineno">···12</span>·*···a·copy·of·this·software·and·associated·documentation·files·(the</div> |
66 | <div·class="line"><a·id="l00013"·name="l00013"></a><span·class="lineno">···13</span>·*···"Software"),·to·deal·in·the·Software·without·restriction,·including</div> | 66 | <div·class="line"><a·id="l00013"·name="l00013"></a><span·class="lineno">···13</span>·*···"Software"),·to·deal·in·the·Software·without·restriction,·including</div> |
Offset 80, 17 lines modified | Offset 80, 31 lines modified | ||
80 | <div·class="line"><a·id="l00027"·name="l00027"></a><span·class="lineno">···27</span>·*···ARISING·FROM,·OUT·OF·OR·IN·CONNECTION·WITH·THE·SOFTWARE·OR·THE·USE·OR</div> | 80 | <div·class="line"><a·id="l00027"·name="l00027"></a><span·class="lineno">···27</span>·*···ARISING·FROM,·OUT·OF·OR·IN·CONNECTION·WITH·THE·SOFTWARE·OR·THE·USE·OR</div> |
81 | <div·class="line"><a·id="l00028"·name="l00028"></a><span·class="lineno">···28</span>·*···OTHER·DEALINGS·IN·THE·SOFTWARE.</div> | 81 | <div·class="line"><a·id="l00028"·name="l00028"></a><span·class="lineno">···28</span>·*···OTHER·DEALINGS·IN·THE·SOFTWARE.</div> |
82 | <div·class="line"><a·id="l00029"·name="l00029"></a><span·class="lineno">···29</span>·***************************************************************************/</div> | 82 | <div·class="line"><a·id="l00029"·name="l00029"></a><span·class="lineno">···29</span>·***************************************************************************/</div> |
83 | <div·class="line"><a·id="l00030"·name="l00030"></a><span·class="lineno">···30</span>·</div> | 83 | <div·class="line"><a·id="l00030"·name="l00030"></a><span·class="lineno">···30</span>·</div> |
84 | <div·class="line"><a·id="l00031"·name="l00031"></a><span·class="lineno">···31</span>//·Start·of·section·namespace·SILLY</div> | 84 | <div·class="line"><a·id="l00031"·name="l00031"></a><span·class="lineno">···31</span>//·Start·of·section·namespace·SILLY</div> |
85 | <div·class="line"><a·id="l00032"·name="l00032"></a><span·class="lineno">···32</span>namespace·SILLY</div> | 85 | <div·class="line"><a·id="l00032"·name="l00032"></a><span·class="lineno">···32</span>namespace·SILLY</div> |
86 | <div·class="line"><a·id="l00033"·name="l00033"></a><span·class="lineno">···33</span>{</div> | 86 | <div·class="line"><a·id="l00033"·name="l00033"></a><span·class="lineno">···33</span>{</div> |
87 | <div·class="line"><a·id="l00034"·name="l00034"></a><span·class="lineno">···34</span>inline·bool·FileDataSource::isValid()·const·</div> | ||
87 | <div·class="line"><a·id="l0003 | 88 | <div·class="line"><a·id="l00035"·name="l00035"></a><span·class="lineno">···35</span>{</div> |
88 | <div·class="line"><a·id="l0003 | 89 | <div·class="line"><a·id="l00036"·name="l00036"></a><span·class="lineno">···36</span>····return·d_error;</div> |
90 | <div·class="line"><a·id="l00037"·name="l00037"></a><span·class="lineno">···37</span>}</div> | ||
89 | <div·class="line"><a·id="l0003 | 91 | <div·class="line"><a·id="l00038"·name="l00038"></a><span·class="lineno">···38</span>·</div> |
92 | <div·class="line"><a·id="l00039"·name="l00039"></a><span·class="lineno">···39</span>inline·const·byte*·FileDataSource::getDataPtr()·const</div> | ||
93 | <div·class="line"><a·id="l00040"·name="l00040"></a><span·class="lineno">···40</span>{</div> | ||
94 | <div·class="line"><a·id="l00041"·name="l00041"></a><span·class="lineno">···41</span>····return·d_bytes;</div> | ||
95 | <div·class="line"><a·id="l00042"·name="l00042"></a><span·class="lineno">···42</span>}</div> | ||
96 | <div·class="line"><a·id="l00043"·name="l00043"></a><span·class="lineno">···43</span>·</div> | ||
97 | <div·class="line"><a·id="l00044"·name="l00044"></a><span·class="lineno">···44</span>inline·size_t·FileDataSource::getSize()·const</div> | ||
98 | <div·class="line"><a·id="l00045"·name="l00045"></a><span·class="lineno">···45</span>{</div> | ||
99 | <div·class="line"><a·id="l00046"·name="l00046"></a><span·class="lineno">···46</span>····return·d_size;</div> | ||
100 | <div·class="line"><a·id="l00047"·name="l00047"></a><span·class="lineno">···47</span>}</div> | ||
101 | <div·class="line"><a·id="l00048"·name="l00048"></a><span·class="lineno">···48</span>·</div> | ||
102 | <div·class="line"><a·id="l00049"·name="l00049"></a><span·class="lineno">···49</span>}·//·End·of·section·namespace·SILLY</div> | ||
103 | <div·class="line"><a·id="l00050"·name="l00050"></a><span·class="lineno">···50</span>·</div> | ||
90 | </div><!--·fragment·--></div><!--·contents·--> | 104 | </div><!--·fragment·--></div><!--·contents·--> |
91 | <!--·start·footer·part·--> | 105 | <!--·start·footer·part·--> |
92 | <hr·class="footer"/><address·class="footer"><small> | 106 | <hr·class="footer"/><address·class="footer"><small> |
93 | Generated·by <a·href="https://www.doxygen.org/index.html"><img·class="footer"·src="doxygen.svg"·width="104"·height="31"·alt="doxygen"/></a>·1.9.8 | 107 | Generated·by <a·href="https://www.doxygen.org/index.html"><img·class="footer"·src="doxygen.svg"·width="104"·height="31"·alt="doxygen"/></a>·1.9.8 |
94 | </small></address> | 108 | </small></address> |
95 | </body> | 109 | </body> |
96 | </html> | 110 | </html> |
Offset 1, 20 lines modified | Offset 1, 19 lines modified | ||
1 | Simple·Image·Loading·LibrarY 0.1.0 | 1 | Simple·Image·Loading·LibrarY 0.1.0 |
2 | ····*·_\x8b_\x8u_\x8i_\x8l_\x8d | 2 | ····*·_\x8b_\x8u_\x8i_\x8l_\x8d |
3 | ····*·_\x8r_\x8e_\x8p_\x8r_\x8o_\x8d_\x8u_\x8c_\x8i_\x8b_\x8l_\x8e_\x8-_\x8p_\x8a_\x8t_\x8h | 3 | ····*·_\x8r_\x8e_\x8p_\x8r_\x8o_\x8d_\x8u_\x8c_\x8i_\x8b_\x8l_\x8e_\x8-_\x8p_\x8a_\x8t_\x8h |
4 | ····*·_\x8s_\x8i_\x8l_\x8l_\x8y_\x8-_\x80_\x8._\x81_\x8._\x80 | 4 | ····*·_\x8s_\x8i_\x8l_\x8l_\x8y_\x8-_\x80_\x8._\x81_\x8._\x80 |
5 | ····*·_\x8i_\x8n_\x8c_\x8l_\x8u_\x8d_\x8e | 5 | ····*·_\x8i_\x8n_\x8c_\x8l_\x8u_\x8d_\x8e |
6 | SILLYFileDataSource.icpp | ||
6 | ····*·_\x8l_\x8o_\x8a_\x8d_\x8e_\x8r_\x8s | ||
7 | SILLYJPGImageContext.icpp | ||
8 | 1/*********************************************************************** | 7 | 1/*********************************************************************** |
9 | 2·filename:·SILLY | 8 | 2·filename:·SILLYFileDataSource.icpp |
10 | 3·created:· | 9 | 3·created:·20·Jul·2006 |
11 | 4·author:·Olivier·Delannoy | 10 | 4·author:·Olivier·Delannoy |
12 | 5 | 11 | 5 |
13 | 6·purpose:·Inline·definition·for· | 12 | 6·purpose:·Inline·function·definition·for·the·FileDataSource·class |
14 | 7*************************************************************************/ | 13 | 7*************************************************************************/ |
15 | 8/*************************************************************************** | 14 | 8/*************************************************************************** |
16 | 9·*·Copyright·(C)·2004·-·2006·Paul·D·Turner·&·The·CEGUI·Development·Team | 15 | 9·*·Copyright·(C)·2004·-·2006·Paul·D·Turner·&·The·CEGUI·Development·Team |
17 | 10·* | 16 | 10·* |
18 | 11·*·Permission·is·hereby·granted,·free·of·charge,·to·any·person·obtaining | 17 | 11·*·Permission·is·hereby·granted,·free·of·charge,·to·any·person·obtaining |
19 | 12·*·a·copy·of·this·software·and·associated·documentation·files·(the | 18 | 12·*·a·copy·of·this·software·and·associated·documentation·files·(the |
20 | 13·*·"Software"),·to·deal·in·the·Software·without·restriction,·including | 19 | 13·*·"Software"),·to·deal·in·the·Software·without·restriction,·including |
Offset 34, 12 lines modified | Offset 33, 26 lines modified | ||
34 | 27·*·ARISING·FROM,·OUT·OF·OR·IN·CONNECTION·WITH·THE·SOFTWARE·OR·THE·USE·OR | 33 | 27·*·ARISING·FROM,·OUT·OF·OR·IN·CONNECTION·WITH·THE·SOFTWARE·OR·THE·USE·OR |
35 | 28·*·OTHER·DEALINGS·IN·THE·SOFTWARE. | 34 | 28·*·OTHER·DEALINGS·IN·THE·SOFTWARE. |
36 | 29·***************************************************************************/ | 35 | 29·***************************************************************************/ |
37 | 30 | 36 | 30 |
38 | 31//·Start·of·section·namespace·SILLY | 37 | 31//·Start·of·section·namespace·SILLY |
39 | 32namespace·SILLY | 38 | 32namespace·SILLY |
40 | 33{ | 39 | 33{ |
41 | 34 | 40 | 34inline·bool·FileDataSource::isValid()·const |
41 | 35{ | ||
42 | 36·return·d_error; | ||
43 | 37} | ||
44 | 38 | ||
45 | 39inline·const·byte*·FileDataSource::getDataPtr()·const | ||
46 | 40{ | ||
47 | 41·return·d_bytes; | ||
48 | 42} | ||
49 | 43 | ||
50 | 44inline·size_t·FileDataSource::getSize()·const | ||
51 | 45{ | ||
52 | 46·return·d_size; | ||
53 | 47} | ||
54 | 48 | ||
42 | 55 | 49}·//·End·of·section·namespace·SILLY | |
43 | 56 | 50 | |
44 | =============================================================================== | 57 | =============================================================================== |
45 | ·····Generated·by _\x8[_\x8d_\x8o_\x8x_\x8y_\x8g_\x8e_\x8n_\x8]·1.9.8 | 58 | ·····Generated·by _\x8[_\x8d_\x8o_\x8x_\x8y_\x8g_\x8e_\x8n_\x8]·1.9.8 |
Offset 1, 15 lines modified | Offset 1, 15 lines modified | ||
1 | <!DOCTYPE·html·PUBLIC·"-//W3C//DTD·XHTML·1.0·Transitional//EN"·"https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> | 1 | <!DOCTYPE·html·PUBLIC·"-//W3C//DTD·XHTML·1.0·Transitional//EN"·"https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> |
2 | <html·xmlns="http://www.w3.org/1999/xhtml"·lang="en-US"> | 2 | <html·xmlns="http://www.w3.org/1999/xhtml"·lang="en-US"> |
3 | <head> | 3 | <head> |
4 | <meta·http-equiv="Content-Type"·content="text/xhtml;charset=UTF-8"/> | 4 | <meta·http-equiv="Content-Type"·content="text/xhtml;charset=UTF-8"/> |
5 | <meta·http-equiv="X-UA-Compatible"·content="IE=11"/> | 5 | <meta·http-equiv="X-UA-Compatible"·content="IE=11"/> |
6 | <meta·name="generator"·content="Doxygen·1.9.8"/> | 6 | <meta·name="generator"·content="Doxygen·1.9.8"/> |
7 | <meta·name="viewport"·content="width=device-width,·initial-scale=1"/> | 7 | <meta·name="viewport"·content="width=device-width,·initial-scale=1"/> |
8 | <title>Simple·Image·Loading·LibrarY:·/build/reproducible-path/silly-0.1.0/include/ | 8 | <title>Simple·Image·Loading·LibrarY:·/build/reproducible-path/silly-0.1.0/include/SILLY.h·Source·File</title> |
9 | <link·href="tabs.css"·rel="stylesheet"·type="text/css"/> | 9 | <link·href="tabs.css"·rel="stylesheet"·type="text/css"/> |
10 | <script·type="text/javascript"·src="jquery.js"></script> | 10 | <script·type="text/javascript"·src="jquery.js"></script> |
11 | <script·type="text/javascript"·src="dynsections.js"></script> | 11 | <script·type="text/javascript"·src="dynsections.js"></script> |
12 | <link·href="doxygen.css"·rel="stylesheet"·type="text/css"·/> | 12 | <link·href="doxygen.css"·rel="stylesheet"·type="text/css"·/> |
13 | </head> | 13 | </head> |
14 | <body> | 14 | <body> |
15 | <div·id="top"><!--·do·not·remove·this·div,·it·is·closed·by·doxygen!·--> | 15 | <div·id="top"><!--·do·not·remove·this·div,·it·is·closed·by·doxygen!·--> |
Offset 40, 27 lines modified | Offset 40, 27 lines modified | ||
40 | <script·type="text/javascript"> | 40 | <script·type="text/javascript"> |
41 | /*·@license·magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt·MIT·*/ | 41 | /*·@license·magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt·MIT·*/ |
42 | $(document).ready(function()·{·init_codefold(0);·}); | 42 | $(document).ready(function()·{·init_codefold(0);·}); |
43 | /*·@license-end·*/ | 43 | /*·@license-end·*/ |
44 | </script> | 44 | </script> |
45 | <div·id="nav-path"·class="navpath"> | 45 | <div·id="nav-path"·class="navpath"> |
46 | ··<ul> | 46 | ··<ul> |
47 | <li·class="navelem"><a·class="el"·href="dir_4fef79e7177ba769987a8da36c892c5f.html">build</a></li><li·class="navelem"><a·class="el"·href="dir_9def6061848686aab7e6212bb499d615.html">reproducible-path</a></li><li·class="navelem"><a·class="el"·href="dir_74170d5b58cefb7cb5a86fc552b183a3.html">silly-0.1.0</a></li><li·class="navelem"><a·class="el"·href="dir_0d87e2e7ddaae8a2a8572c0afc59fe0d.html">include</a></li> | 47 | <li·class="navelem"><a·class="el"·href="dir_4fef79e7177ba769987a8da36c892c5f.html">build</a></li><li·class="navelem"><a·class="el"·href="dir_9def6061848686aab7e6212bb499d615.html">reproducible-path</a></li><li·class="navelem"><a·class="el"·href="dir_74170d5b58cefb7cb5a86fc552b183a3.html">silly-0.1.0</a></li><li·class="navelem"><a·class="el"·href="dir_0d87e2e7ddaae8a2a8572c0afc59fe0d.html">include</a></li>··</ul> |
48 | </div> | 48 | </div> |
49 | </div><!--·top·--> | 49 | </div><!--·top·--> |
50 | <div·class="header"> | 50 | <div·class="header"> |
51 | ··<div·class="headertitle"><div·class="title">SILLY | 51 | ··<div·class="headertitle"><div·class="title">SILLY.h</div></div> |
52 | </div><!--header--> | 52 | </div><!--header--> |
53 | <div·class="contents"> | 53 | <div·class="contents"> |
54 | <div·class="fragment"><div·class="line"><a·id="l00001"·name="l00001"></a><span·class="lineno">····1</span><span·class="comment">/***********************************************************************</span></div> | 54 | <div·class="fragment"><div·class="line"><a·id="l00001"·name="l00001"></a><span·class="lineno">····1</span><span·class="comment">/***********************************************************************</span></div> |
55 | <div·class="line"><a·id="l00002"·name="l00002"></a><span·class="lineno">····2</span><span·class="comment">····filename:···SILLY | 55 | <div·class="line"><a·id="l00002"·name="l00002"></a><span·class="lineno">····2</span><span·class="comment">····filename:···SILLY.h</span></div> |
56 | <div·class="line"><a·id="l00003"·name="l00003"></a><span·class="lineno">····3</span><span·class="comment">····created:····1 | 56 | <div·class="line"><a·id="l00003"·name="l00003"></a><span·class="lineno">····3</span><span·class="comment">····created:····10·Jun·2006</span></div> |
57 | <div·class="line"><a·id="l00004"·name="l00004"></a><span·class="lineno">····4</span><span·class="comment">····author:·····Olivier·Delannoy</span></div> | 57 | <div·class="line"><a·id="l00004"·name="l00004"></a><span·class="lineno">····4</span><span·class="comment">····author:·····Olivier·Delannoy</span></div> |
58 | <div·class="line"><a·id="l00005"·name="l00005"></a><span·class="lineno">····5</span><span·class="comment"></span>·</div> | 58 | <div·class="line"><a·id="l00005"·name="l00005"></a><span·class="lineno">····5</span><span·class="comment"></span>·</div> |
59 | <div·class="line"><a·id="l00006"·name="l00006"></a><span·class="lineno">····6</span><span·class="comment">····purpose:···· | 59 | <div·class="line"><a·id="l00006"·name="l00006"></a><span·class="lineno">····6</span><span·class="comment">····purpose:····Master·include··for·the·SILLY·library·</span></div> |
60 | <div·class="line"><a·id="l00007"·name="l00007"></a><span·class="lineno">····7</span><span·class="comment">*************************************************************************/</span></div> | 60 | <div·class="line"><a·id="l00007"·name="l00007"></a><span·class="lineno">····7</span><span·class="comment">*************************************************************************/</span></div> |
61 | <div·class="line"><a·id="l00008"·name="l00008"></a><span·class="lineno">····8</span><span·class="comment">/***************************************************************************</span></div> | 61 | <div·class="line"><a·id="l00008"·name="l00008"></a><span·class="lineno">····8</span><span·class="comment">/***************************************************************************</span></div> |
62 | <div·class="line"><a·id="l00009"·name="l00009"></a><span·class="lineno">····9</span><span·class="comment">·*···Copyright·(C)·2004·-·2006·Paul·D·Turner·&·The·CEGUI·Development·Team</span></div> | 62 | <div·class="line"><a·id="l00009"·name="l00009"></a><span·class="lineno">····9</span><span·class="comment">·*···Copyright·(C)·2004·-·2006·Paul·D·Turner·&·The·CEGUI·Development·Team</span></div> |
63 | <div·class="line"><a·id="l00010"·name="l00010"></a><span·class="lineno">···10</span><span·class="comment">·*</span></div> | 63 | <div·class="line"><a·id="l00010"·name="l00010"></a><span·class="lineno">···10</span><span·class="comment">·*</span></div> |
64 | <div·class="line"><a·id="l00011"·name="l00011"></a><span·class="lineno">···11</span><span·class="comment">·*···Permission·is·hereby·granted,·free·of·charge,·to·any·person·obtaining</span></div> | 64 | <div·class="line"><a·id="l00011"·name="l00011"></a><span·class="lineno">···11</span><span·class="comment">·*···Permission·is·hereby·granted,·free·of·charge,·to·any·person·obtaining</span></div> |
65 | <div·class="line"><a·id="l00012"·name="l00012"></a><span·class="lineno">···12</span><span·class="comment">·*···a·copy·of·this·software·and·associated·documentation·files·(the</span></div> | 65 | <div·class="line"><a·id="l00012"·name="l00012"></a><span·class="lineno">···12</span><span·class="comment">·*···a·copy·of·this·software·and·associated·documentation·files·(the</span></div> |
66 | <div·class="line"><a·id="l00013"·name="l00013"></a><span·class="lineno">···13</span><span·class="comment">·*···"Software"),·to·deal·in·the·Software·without·restriction,·including</span></div> | 66 | <div·class="line"><a·id="l00013"·name="l00013"></a><span·class="lineno">···13</span><span·class="comment">·*···"Software"),·to·deal·in·the·Software·without·restriction,·including</span></div> |
Offset 76, 54 lines modified | Offset 76, 35 lines modified | ||
76 | <div·class="line"><a·id="l00023"·name="l00023"></a><span·class="lineno">···23</span><span·class="comment">·*···EXPRESS·OR·IMPLIED,·INCLUDING·BUT·NOT·LIMITED·TO·THE·WARRANTIES·OF</span></div> | 76 | <div·class="line"><a·id="l00023"·name="l00023"></a><span·class="lineno">···23</span><span·class="comment">·*···EXPRESS·OR·IMPLIED,·INCLUDING·BUT·NOT·LIMITED·TO·THE·WARRANTIES·OF</span></div> |
77 | <div·class="line"><a·id="l00024"·name="l00024"></a><span·class="lineno">···24</span><span·class="comment">·*···MERCHANTABILITY,·FITNESS·FOR·A·PARTICULAR·PURPOSE·AND·NONINFRINGEMENT.</span></div> | 77 | <div·class="line"><a·id="l00024"·name="l00024"></a><span·class="lineno">···24</span><span·class="comment">·*···MERCHANTABILITY,·FITNESS·FOR·A·PARTICULAR·PURPOSE·AND·NONINFRINGEMENT.</span></div> |
78 | <div·class="line"><a·id="l00025"·name="l00025"></a><span·class="lineno">···25</span><span·class="comment">·*···IN·NO·EVENT·SHALL·THE·AUTHORS·BE·LIABLE·FOR·ANY·CLAIM,·DAMAGES·OR</span></div> | 78 | <div·class="line"><a·id="l00025"·name="l00025"></a><span·class="lineno">···25</span><span·class="comment">·*···IN·NO·EVENT·SHALL·THE·AUTHORS·BE·LIABLE·FOR·ANY·CLAIM,·DAMAGES·OR</span></div> |
79 | <div·class="line"><a·id="l00026"·name="l00026"></a><span·class="lineno">···26</span><span·class="comment">·*···OTHER·LIABILITY,·WHETHER·IN·AN·ACTION·OF·CONTRACT,·TORT·OR·OTHERWISE,</span></div> | 79 | <div·class="line"><a·id="l00026"·name="l00026"></a><span·class="lineno">···26</span><span·class="comment">·*···OTHER·LIABILITY,·WHETHER·IN·AN·ACTION·OF·CONTRACT,·TORT·OR·OTHERWISE,</span></div> |
80 | <div·class="line"><a·id="l00027"·name="l00027"></a><span·class="lineno">···27</span><span·class="comment">·*···ARISING·FROM,·OUT·OF·OR·IN·CONNECTION·WITH·THE·SOFTWARE·OR·THE·USE·OR</span></div> | 80 | <div·class="line"><a·id="l00027"·name="l00027"></a><span·class="lineno">···27</span><span·class="comment">·*···ARISING·FROM,·OUT·OF·OR·IN·CONNECTION·WITH·THE·SOFTWARE·OR·THE·USE·OR</span></div> |
81 | <div·class="line"><a·id="l00028"·name="l00028"></a><span·class="lineno">···28</span><span·class="comment">·*···OTHER·DEALINGS·IN·THE·SOFTWARE.</span></div> | 81 | <div·class="line"><a·id="l00028"·name="l00028"></a><span·class="lineno">···28</span><span·class="comment">·*···OTHER·DEALINGS·IN·THE·SOFTWARE.</span></div> |
82 | <div·class="line"><a·id="l00029"·name="l00029"></a><span·class="lineno">···29</span><span·class="comment">·***************************************************************************/</span></div> | 82 | <div·class="line"><a·id="l00029"·name="l00029"></a><span·class="lineno">···29</span><span·class="comment">·***************************************************************************/</span></div> |
83 | <div·class="line"><a·id="l00030"·name="l00030"></a><span·class="lineno">···30</span><span·class="preprocessor">#ifndef·_SILLY | 83 | <div·class="line"><a·id="l00030"·name="l00030"></a><span·class="lineno">···30</span><span·class="preprocessor">#ifndef·_SILLY_h_·</span></div> |
84 | <div·class="line"><a·id="l00031"·name="l00031"></a><span·class="lineno">···31</span><span·class="preprocessor">#define·_SILLY | 84 | <div·class="line"><a·id="l00031"·name="l00031"></a><span·class="lineno">···31</span><span·class="preprocessor">#define·_SILLY_h_</span></div> |
85 | <div·class="line"><a·id="l00032"·name="l00032"></a><span·class="lineno">···32</span><span·class="preprocessor">#include·"SILLYBase.h"</span>·</div> | ||
86 | <div·class="line"><a·id="l00033"·name="l00033"></a><span·class="lineno">···33</span><span·class="preprocessor">#include·"SILLYImageLoader.h"</span>·</div> | ||
87 | <div·class="line"><a·id="l00034"·name="l00034"></a><span·class="lineno">···34</span><span·class="comment">//·Start·of·section·namespace·SILLY·</span></div> | ||
88 | <div·class="line"><a·id="l00 | 85 | <div·class="line"><a·id="l00109"·name="l00109"></a><span·class="lineno">··109</span><span·class="keyword">namespace·</span><a·class="code·hl_namespace"·href="a00129.html">SILLY</a></div> |
89 | <div·class="line"><a·id="l00 | 86 | <div·class="line"><a·id="l00110"·name="l00110"></a><span·class="lineno">··110</span>{</div> |
87 | <div·class="line"><a·id="l00111"·name="l00111"></a><span·class="lineno">··111</span>··</div> | ||
90 | <div·class="line"><a·id="l00037"·name="l00037"></a><span·class="lineno">···37</span><span·class="keyword">class·</span>TGAImageContext;</div> | ||
91 | <div·class="foldopen"·id="foldopen00043"·data-start="{"·data-end="};"> | ||
92 | <div·class="line"><a·id="l00043"·name="l00043"></a><span·class="lineno"><a·class="line"·href="a00965.html">···43</a></span><span·class="keyword">class·</span><a·class="code·hl_class"·href="a00965.html">TGAImageLoader</a>·:·<span·class="keyword">public</span>·<a·class="code·hl_class"·href="a00985.html">ImageLoader</a>·</div> | ||
93 | <div·class="line"><a·id="l00 | 88 | <div·class="line"><a·id="l00112"·name="l00112"></a><span·class="lineno">··112</span>}</div> |
94 | <div·class="line"><a·id="l00045"·name="l00045"></a><span·class="lineno">···45</span><span·class="keyword">public</span>:</div> | ||
95 | <div·class="line"><a·id="l00046"·name="l00046"></a><span·class="lineno">···46</span>····<a·class="code·hl_class"·href="a00965.html">TGAImageLoader</a>();</div> | ||
96 | <div·class="line"><a·id="l00047"·name="l00047"></a><span·class="lineno">···47</span>····<a·class="code·hl_class"·href="a00965.html">~TGAImageLoader</a>();</div> | ||
97 | <div·class="line"><a·id="l00048"·name="l00048"></a><span·class="lineno">···48</span>····<a·class="code·hl_class"·href="a00981.html">ImageContext</a>*·<a·class="code·hl_function"·href="a00965.html#a1f83c2e6e4960b05c1b5bd61b0635f8c">loadHeader</a>(<a·class="code·hl_enumeration"·href="a00129.html#a60883d4958a60b91661e97027a85072a">PixelFormat</a>&·formatSource,·<a·class="code·hl_class"·href="a00969.html">DataSource</a>*·data);</div> | ||
98 | <div·class="line"><a·id="l00049"·name="l00049"></a><span·class="lineno">···49</span>····<span·class="keywordtype">bool</span>·<a·class="code·hl_function"·href="a00965.html#a4a4d6df5dcc08cb493855fcfc1956fca">loadImageData</a>(<a·class="code·hl_enumeration"·href="a00129.html#aebdd89f22790687ac264c1abd9f7fd38">PixelOrigin</a>·origin,·</div> | ||
99 | <div·class="line"><a·id="l00050"·name="l00050"></a><span·class="lineno">···50</span>·······················<a·class="code·hl_class"·href="a00969.html">DataSource</a>*·data,·</div> | ||
100 | <div·class="line"><a·id="l00051"·name="l00051"></a><span·class="lineno">···51</span>·······················<a·class="code·hl_class"·href="a00981.html">ImageContext</a>*·context);</div> | ||
101 | <div·class="line"><a·id="l00052"·name="l00052"></a><span·class="lineno">···52</span><span·class="keyword">private</span>:</div> | ||
102 | <div·class="line"><a·id="l00 | 89 | <div·class="line"><a·id="l00113"·name="l00113"></a><span·class="lineno">··113</span>·</div> |
103 | <div·class="line"><a·id="l00 | 90 | <div·class="line"><a·id="l00114"·name="l00114"></a><span·class="lineno">··114</span>·</div> |
104 | </div> | ||
105 | <div·class="line"><a·id="l00 | 91 | <div·class="line"><a·id="l00115"·name="l00115"></a><span·class="lineno">··115</span>·</div> |
106 | <div·class="line"><a·id="l00056"·name="l00056"></a><span·class="lineno">···56</span>}·<span·class="comment">//·End·of·section·namespace·SILLY·</span></div> | ||
107 | <div·class="line"><a·id="l00057"·name="l00057"></a><span·class="lineno">···57</span>·</div> | ||
108 | <div·class="line"><a·id="l00058"·name="l00058"></a><span·class="lineno">···58</span><span·class="comment">//·Inclue·inline·function·when·needed·</span></div> | ||
109 | <div·class="line"><a·id="l00059"·name="l00059"></a><span·class="lineno">···59</span><span·class="preprocessor">#ifdef·SILLY_OPT_INLINE</span></div> | ||
110 | <div·class="line"><a·id="l00060"·name="l00060"></a><span·class="lineno">···60</span><span·class="preprocessor">#include·"SILLYTGAImageLoader.icpp"</span></div> | ||
111 | <div·class="line"><a·id="l00061"·name="l00061"></a><span·class="lineno">···61</span><span·class="preprocessor">#endif·</span></div> | ||
112 | <div·class="line"><a·id="l00 | 92 | <div·class="line"><a·id="l00116"·name="l00116"></a><span·class="lineno">··116</span>·</div> |
93 | <div·class="line"><a·id="l00117"·name="l00117"></a><span·class="lineno">··117</span><span·class="preprocessor">#include·"SILLYBase.h"</span></div> | ||
94 | <div·class="line"><a·id="l00118"·name="l00118"></a><span·class="lineno">··118</span><span·class="preprocessor">#include·"SILLYDataSource.h"</span>·</div> | ||
95 | <div·class="line"><a·id="l00119"·name="l00119"></a><span·class="lineno">··119</span><span·class="preprocessor">#include·"SILLYFileDataSource.h"</span>·</div> | ||
96 | <div·class="line"><a·id="l00120"·name="l00120"></a><span·class="lineno">··120</span><span·class="preprocessor">#include·"SILLYMemoryDataSource.h"</span>·</div> | ||
97 | <div·class="line"><a·id="l00121"·name="l00121"></a><span·class="lineno">··121</span><span·class="preprocessor">#include·"SILLYImageLoader.h"</span></div> | ||
98 | <div·class="line"><a·id="l00122"·name="l00122"></a><span·class="lineno">··122</span><span·class="preprocessor">#include·"SILLYImageContext.h"</span>·</div> | ||
99 | <div·class="line"><a·id="l00123"·name="l00123"></a><span·class="lineno">··123</span><span·class="preprocessor">#include·"SILLYImageLoaderManager.h"</span>·</div> | ||
100 | <div·class="line"><a·id="l00124"·name="l00124"></a><span·class="lineno">··124</span><span·class="preprocessor">#include·"SILLYImage.h"</span></div> | ||
101 | <div·class="line"><a·id="l00125"·name="l00125"></a><span·class="lineno">··125</span>·</div> | ||
113 | <div·class="line"><a·id="l00 | 102 | <div·class="line"><a·id="l00126"·name="l00126"></a><span·class="lineno">··126</span><span·class="preprocessor">#endif·</span><span·class="comment">//·end·of·guard·_SILLY_h_</span></div> |
114 | <div·class="ttc"·id="aa00129_html"><div·class="ttname"><a·href="a00129.html">SILLY</a></div><div·class="ttdoc">Simple·Image·Loading·LibrarY·namespace.</div><div·class="ttdef"><b>Definition</b>·<a·href="a0002 | 103 | <div·class="ttc"·id="aa00129_html"><div·class="ttname"><a·href="a00129.html">SILLY</a></div><div·class="ttdoc">Simple·Image·Loading·LibrarY·namespace.</div><div·class="ttdef"><b>Definition</b>·<a·href="a00023_source.html#l00045">SILLYJPGImageContext.cpp:46</a></div></div> |
115 | <div·class="ttc"·id="aa00129_html_a60883d4958a60b91661e97027a85072a"><div·class="ttname"><a·href="a00129.html#a60883d4958a60b91661e97027a85072a">SILLY::PixelFormat</a></div><div·class="ttdeci">PixelFormat</div><div·class="ttdoc">List·all·pixel·format·supported.</div><div·class="ttdef"><b>Definition</b>·<a·href="a00104_source.html#l00059">SILLYBase.h:60</a></div></div> | ||
116 | <div·class="ttc"·id="aa00129_html_aebdd89f22790687ac264c1abd9f7fd38"><div·class="ttname"><a·href="a00129.html#aebdd89f22790687ac264c1abd9f7fd38">SILLY::PixelOrigin</a></div><div·class="ttdeci">PixelOrigin</div><div·class="ttdoc">List·all·pixel·origin·supported.</div><div·class="ttdef"><b>Definition</b>·<a·href="a00104_source.html#l00070">SILLYBase.h:71</a></div></div> | ||
117 | <div·class="ttc"·id="aa00965_html"><div·class="ttname"><a·href="a00965.html">SILLY::TGAImageLoader</a></div><div·class="ttdoc">Loader·for·Targa·image.</div><div·class="ttdef"><b>Definition</b>·<a·href="a00065_source.html#l00043">SILLYTGAImageLoader.h:44</a></div></div> | ||
118 | <div·class="ttc"·id="aa00965_html_a1f83c2e6e4960b05c1b5bd61b0635f8c"><div·class="ttname"><a·href="a00965.html#a1f83c2e6e4960b05c1b5bd61b0635f8c">SILLY::TGAImageLoader::loadHeader</a></div><div·class="ttdeci">ImageContext·*·loadHeader(PixelFormat·&formatSource,·DataSource·*data)</div><div·class="ttdoc">Parse·the·header·of·the·image·and·fill·the·header·struct.</div><div·class="ttdef"><b>Definition</b>·<a·href="a00026_source.html#l00074">SILLYTGAImageLoader.cpp:74</a></div></div> | ||
119 | <div·class="ttc"·id="aa00965_html_a4a4d6df5dcc08cb493855fcfc1956fca"><div·class="ttname"><a·href="a00965.html#a4a4d6df5dcc08cb493855fcfc1956fca">SILLY::TGAImageLoader::loadImageData</a></div><div·class="ttdeci">bool·loadImageData(PixelOrigin·origin,·DataSource·*data,·ImageContext·*context)</div><div·class="ttdoc">Parse·the·pixels·data·of·the·image·and·fill·the·header·struct.</div><div·class="ttdef"><b>Definition</b>·<a·href="a00026_source.html#l00134">SILLYTGAImageLoader.cpp:134</a></div></div> | ||
120 | <div·class="ttc"·id="aa00969_html"><div·class="ttname"><a·href="a00969.html">SILLY::DataSource</a></div><div·class="ttdoc">This·is·an·abstract·class·used·to·provide·data·to·the·loader.</div><div·class="ttdef"><b>Definition</b>·<a·href="a00101_source.html#l00046">SILLYDataSource.h:47</a></div></div> | ||
121 | <div·class="ttc"·id="aa00981_html"><div·class="ttname"><a·href="a00981.html">SILLY::ImageContext</a></div><div·class="ttdoc">Store·the·data·needed·by·an·ImageLoader·object·during·the·parsing·of·an·image.</div><div·class="ttdef"><b>Definition</b>·<a·href="a00092_source.html#l00043">SILLYImageContext.h:44</a></div></div> | ||
122 | <div·class="ttc"·id="aa00985_html"><div·class="ttname"><a·href="a00985.html">SILLY::ImageLoader</a></div><div·class="ttdoc">This·is·an·abstract·class·that·define·the·interface·of·all·image·loader.</div><div·class="ttdef"><b>Definition</b>·<a·href="a00095_source.html#l00046">SILLYImageLoader.h:47</a></div></div> | ||
123 | </div><!--·fragment·--></div><!--·contents·--> | 104 | </div><!--·fragment·--></div><!--·contents·--> |
124 | <!--·start·footer·part·--> | 105 | <!--·start·footer·part·--> |
125 | <hr·class="footer"/><address·class="footer"><small> | 106 | <hr·class="footer"/><address·class="footer"><small> |
126 | Generated·by <a·href="https://www.doxygen.org/index.html"><img·class="footer"·src="doxygen.svg"·width="104"·height="31"·alt="doxygen"/></a>·1.9.8 | 107 | Generated·by <a·href="https://www.doxygen.org/index.html"><img·class="footer"·src="doxygen.svg"·width="104"·height="31"·alt="doxygen"/></a>·1.9.8 |
127 | </small></address> | 108 | </small></address> |
128 | </body> | 109 | </body> |
129 | </html> | 110 | </html> |
Offset 1, 20 lines modified | Offset 1, 19 lines modified | ||
1 | Simple·Image·Loading·LibrarY 0.1.0 | 1 | Simple·Image·Loading·LibrarY 0.1.0 |
2 | ····*·_\x8b_\x8u_\x8i_\x8l_\x8d | 2 | ····*·_\x8b_\x8u_\x8i_\x8l_\x8d |
3 | ····*·_\x8r_\x8e_\x8p_\x8r_\x8o_\x8d_\x8u_\x8c_\x8i_\x8b_\x8l_\x8e_\x8-_\x8p_\x8a_\x8t_\x8h | 3 | ····*·_\x8r_\x8e_\x8p_\x8r_\x8o_\x8d_\x8u_\x8c_\x8i_\x8b_\x8l_\x8e_\x8-_\x8p_\x8a_\x8t_\x8h |
4 | ····*·_\x8s_\x8i_\x8l_\x8l_\x8y_\x8-_\x80_\x8._\x81_\x8._\x80 | 4 | ····*·_\x8s_\x8i_\x8l_\x8l_\x8y_\x8-_\x80_\x8._\x81_\x8._\x80 |
5 | ····*·_\x8i_\x8n_\x8c_\x8l_\x8u_\x8d_\x8e | 5 | ····*·_\x8i_\x8n_\x8c_\x8l_\x8u_\x8d_\x8e |
6 | SILLY.h | ||
6 | ····*·_\x8l_\x8o_\x8a_\x8d_\x8e_\x8r_\x8s | ||
7 | SILLYTGAImageLoader.h | ||
8 | 1/*********************************************************************** | 7 | 1/*********************************************************************** |
9 | 2·filename:·SILLY | 8 | 2·filename:·SILLY.h |
10 | 3·created:·1 | 9 | 3·created:·10·Jun·2006 |
11 | 4·author:·Olivier·Delannoy | 10 | 4·author:·Olivier·Delannoy |
12 | 5 | 11 | 5 |
13 | 6·purpose:· | 12 | 6·purpose:·Master·include·for·the·SILLY·library |
14 | 7*************************************************************************/ | 13 | 7*************************************************************************/ |
15 | 8/*************************************************************************** | 14 | 8/*************************************************************************** |
16 | 9·*·Copyright·(C)·2004·-·2006·Paul·D·Turner·&·The·CEGUI·Development·Team | 15 | 9·*·Copyright·(C)·2004·-·2006·Paul·D·Turner·&·The·CEGUI·Development·Team |
17 | 10·* | 16 | 10·* |
18 | 11·*·Permission·is·hereby·granted,·free·of·charge,·to·any·person·obtaining | 17 | 11·*·Permission·is·hereby·granted,·free·of·charge,·to·any·person·obtaining |
19 | 12·*·a·copy·of·this·software·and·associated·documentation·files·(the | 18 | 12·*·a·copy·of·this·software·and·associated·documentation·files·(the |
20 | 13·*·"Software"),·to·deal·in·the·Software·without·restriction,·including | 19 | 13·*·"Software"),·to·deal·in·the·Software·without·restriction,·including |
Offset 30, 69 lines modified | Offset 29, 32 lines modified | ||
30 | 23·*·EXPRESS·OR·IMPLIED,·INCLUDING·BUT·NOT·LIMITED·TO·THE·WARRANTIES·OF | 29 | 23·*·EXPRESS·OR·IMPLIED,·INCLUDING·BUT·NOT·LIMITED·TO·THE·WARRANTIES·OF |
31 | 24·*·MERCHANTABILITY,·FITNESS·FOR·A·PARTICULAR·PURPOSE·AND·NONINFRINGEMENT. | 30 | 24·*·MERCHANTABILITY,·FITNESS·FOR·A·PARTICULAR·PURPOSE·AND·NONINFRINGEMENT. |
32 | 25·*·IN·NO·EVENT·SHALL·THE·AUTHORS·BE·LIABLE·FOR·ANY·CLAIM,·DAMAGES·OR | 31 | 25·*·IN·NO·EVENT·SHALL·THE·AUTHORS·BE·LIABLE·FOR·ANY·CLAIM,·DAMAGES·OR |
33 | 26·*·OTHER·LIABILITY,·WHETHER·IN·AN·ACTION·OF·CONTRACT,·TORT·OR·OTHERWISE, | 32 | 26·*·OTHER·LIABILITY,·WHETHER·IN·AN·ACTION·OF·CONTRACT,·TORT·OR·OTHERWISE, |
34 | 27·*·ARISING·FROM,·OUT·OF·OR·IN·CONNECTION·WITH·THE·SOFTWARE·OR·THE·USE·OR | 33 | 27·*·ARISING·FROM,·OUT·OF·OR·IN·CONNECTION·WITH·THE·SOFTWARE·OR·THE·USE·OR |
35 | 28·*·OTHER·DEALINGS·IN·THE·SOFTWARE. | 34 | 28·*·OTHER·DEALINGS·IN·THE·SOFTWARE. |
36 | 29·***************************************************************************/ | 35 | 29·***************************************************************************/ |
37 | 30#ifndef·_SILLYTGAImageLoader_h_ | ||
38 | 3 | 36 | 30#ifndef·_SILLY_h_ |
37 | 31#define·_SILLY_h_ | ||
38 | 109namespace·_\x8S_\x8I_\x8L_\x8L_\x8Y | ||
39 | 110{ | ||
40 | 111 | ||
41 | 112} | ||
42 | 113 | ||
43 | 114 | ||
44 | 115 | ||
45 | 116 | ||
39 | 46 | 117#include·"SILLYBase.h" | |
47 | 118#include·"SILLYDataSource.h" | ||
48 | 119#include·"SILLYFileDataSource.h" | ||
49 | 120#include·"SILLYMemoryDataSource.h" | ||
40 | 50 | 121#include·"SILLYImageLoader.h" | |
51 | 122#include·"SILLYImageContext.h" | ||
52 | 123#include·"SILLYImageLoaderManager.h" | ||
53 | 124#include·"SILLYImage.h" | ||
54 | 125 | ||
41 | 34//·Start·of·section·namespace·SILLY | ||
42 | 35namespace·_\x8S_\x8I_\x8L_\x8L_\x8Y | ||
43 | 36{ | ||
44 | 37class·TGAImageContext; | ||
45 | _\x84_\x83class·_\x8T_\x8G_\x8A_\x8I_\x8m_\x8a_\x8g_\x8e_\x8L_\x8o_\x8a_\x8d_\x8e_\x8r·:·public·_\x8I_\x8m_\x8a_\x8g_\x8e_\x8L_\x8o_\x8a_\x8d_\x8e_\x8r | ||
46 | 44{ | ||
47 | 45public: | ||
48 | 46·_\x8T_\x8G_\x8A_\x8I_\x8m_\x8a_\x8g_\x8e_\x8L_\x8o_\x8a_\x8d_\x8e_\x8r(); | ||
49 | 47·_\x8~_\x8T_\x8G_\x8A_\x8I_\x8m_\x8a_\x8g_\x8e_\x8L_\x8o_\x8a_\x8d_\x8e_\x8r(); | ||
50 | 48·_\x8I_\x8m_\x8a_\x8g_\x8e_\x8C_\x8o_\x8n_\x8t_\x8e_\x8x_\x8t*·_\x8l_\x8o_\x8a_\x8d_\x8H_\x8e_\x8a_\x8d_\x8e_\x8r(_\x8P_\x8i_\x8x_\x8e_\x8l_\x8F_\x8o_\x8r_\x8m_\x8a_\x8t&·formatSource,·_\x8D_\x8a_\x8t_\x8a_\x8S_\x8o_\x8u_\x8r_\x8c_\x8e*·data); | ||
51 | 49·bool·_\x8l_\x8o_\x8a_\x8d_\x8I_\x8m_\x8a_\x8g_\x8e_\x8D_\x8a_\x8t_\x8a(_\x8P_\x8i_\x8x_\x8e_\x8l_\x8O_\x8r_\x8i_\x8g_\x8i_\x8n·origin, | ||
52 | 50·_\x8D_\x8a_\x8t_\x8a_\x8S_\x8o_\x8u_\x8r_\x8c_\x8e*·data, | ||
53 | 51·_\x8I_\x8m_\x8a_\x8g_\x8e_\x8C_\x8o_\x8n_\x8t_\x8e_\x8x_\x8t*·context); | ||
54 | 52private: | ||
55 | 53 | ||
56 | 54}; | ||
57 | 55 | ||
58 | 56}·//·End·of·section·namespace·SILLY | ||
59 | 57 | ||
60 | 58//·Inclue·inline·function·when·needed | ||
61 | 59#ifdef·SILLY_OPT_INLINE | ||
62 | 60#include·"SILLYTGAImageLoader.icpp" | ||
63 | 61#endif | ||
64 | 62 | ||
65 | 55 | 126#endif·//·end·of·guard·_SILLY_h_ | |
66 | _\x8S_\x8I_\x8L_\x8L_\x8Y | 56 | _\x8S_\x8I_\x8L_\x8L_\x8Y |
67 | Simple·Image·Loading·LibrarY·namespace. | 57 | Simple·Image·Loading·LibrarY·namespace. |
68 | D\x8De\x8ef\x8fi\x8in\x8ni\x8it\x8ti\x8io\x8on\x8n·_\x8S_\x8I_\x8L_\x8L_\x8Y_\x8J_\x8P_\x8G_\x8I_\x8m_\x8a_\x8g_\x8e_\x8C_\x8o_\x8n_\x8t_\x8e_\x8x_\x8t_\x8._\x8c_\x8p_\x8p_\x8:_\x84_\x86 | 58 | D\x8De\x8ef\x8fi\x8in\x8ni\x8it\x8ti\x8io\x8on\x8n·_\x8S_\x8I_\x8L_\x8L_\x8Y_\x8J_\x8P_\x8G_\x8I_\x8m_\x8a_\x8g_\x8e_\x8C_\x8o_\x8n_\x8t_\x8e_\x8x_\x8t_\x8._\x8c_\x8p_\x8p_\x8:_\x84_\x86 |
69 | _\x8S_\x8I_\x8L_\x8L_\x8Y_\x8:_\x8:_\x8P_\x8i_\x8x_\x8e_\x8l_\x8F_\x8o_\x8r_\x8m_\x8a_\x8t | ||
70 | PixelFormat | ||
71 | List·all·pixel·format·supported. | ||
72 | D\x8De\x8ef\x8fi\x8in\x8ni\x8it\x8ti\x8io\x8on\x8n·_\x8S_\x8I_\x8L_\x8L_\x8Y_\x8B_\x8a_\x8s_\x8e_\x8._\x8h_\x8:_\x86_\x80 | ||
73 | _\x8S_\x8I_\x8L_\x8L_\x8Y_\x8:_\x8:_\x8P_\x8i_\x8x_\x8e_\x8l_\x8O_\x8r_\x8i_\x8g_\x8i_\x8n | ||
74 | PixelOrigin | ||
75 | List·all·pixel·origin·supported. | ||
76 | D\x8De\x8ef\x8fi\x8in\x8ni\x8it\x8ti\x8io\x8on\x8n·_\x8S_\x8I_\x8L_\x8L_\x8Y_\x8B_\x8a_\x8s_\x8e_\x8._\x8h_\x8:_\x87_\x81 | ||
77 | _\x8S_\x8I_\x8L_\x8L_\x8Y_\x8:_\x8:_\x8T_\x8G_\x8A_\x8I_\x8m_\x8a_\x8g_\x8e_\x8L_\x8o_\x8a_\x8d_\x8e_\x8r | ||
78 | Loader·for·Targa·image. | ||
79 | D\x8De\x8ef\x8fi\x8in\x8ni\x8it\x8ti\x8io\x8on\x8n·_\x8S_\x8I_\x8L_\x8L_\x8Y_\x8T_\x8G_\x8A_\x8I_\x8m_\x8a_\x8g_\x8e_\x8L_\x8o_\x8a_\x8d_\x8e_\x8r_\x8._\x8h_\x8:_\x84_\x84 | ||
80 | _\x8S_\x8I_\x8L_\x8L_\x8Y_\x8:_\x8:_\x8T_\x8G_\x8A_\x8I_\x8m_\x8a_\x8g_\x8e_\x8L_\x8o_\x8a_\x8d_\x8e_\x8r_\x8:_\x8:_\x8l_\x8o_\x8a_\x8d_\x8H_\x8e_\x8a_\x8d_\x8e_\x8r | ||
81 | ImageContext·*·loadHeader(PixelFormat·&formatSource,·DataSource·*data) | ||
82 | Parse·the·header·of·the·image·and·fill·the·header·struct. | ||
83 | D\x8De\x8ef\x8fi\x8in\x8ni\x8it\x8ti\x8io\x8on\x8n·_\x8S_\x8I_\x8L_\x8L_\x8Y_\x8T_\x8G_\x8A_\x8I_\x8m_\x8a_\x8g_\x8e_\x8L_\x8o_\x8a_\x8d_\x8e_\x8r_\x8._\x8c_\x8p_\x8p_\x8:_\x87_\x84 | ||
84 | _\x8S_\x8I_\x8L_\x8L_\x8Y_\x8:_\x8:_\x8T_\x8G_\x8A_\x8I_\x8m_\x8a_\x8g_\x8e_\x8L_\x8o_\x8a_\x8d_\x8e_\x8r_\x8:_\x8:_\x8l_\x8o_\x8a_\x8d_\x8I_\x8m_\x8a_\x8g_\x8e_\x8D_\x8a_\x8t_\x8a | ||
85 | bool·loadImageData(PixelOrigin·origin,·DataSource·*data,·ImageContext·*context) | ||
86 | Parse·the·pixels·data·of·the·image·and·fill·the·header·struct. | ||
87 | D\x8De\x8ef\x8fi\x8in\x8ni\x8it\x8ti\x8io\x8on\x8n·_\x8S_\x8I_\x8L_\x8L_\x8Y_\x8T_\x8G_\x8A_\x8I_\x8m_\x8a_\x8g_\x8e_\x8L_\x8o_\x8a_\x8d_\x8e_\x8r_\x8._\x8c_\x8p_\x8p_\x8:_\x81_\x83_\x84 | ||
88 | _\x8S_\x8I_\x8L_\x8L_\x8Y_\x8:_\x8:_\x8D_\x8a_\x8t_\x8a_\x8S_\x8o_\x8u_\x8r_\x8c_\x8e | ||
89 | This·is·an·abstract·class·used·to·provide·data·to·the·loader. | ||
90 | D\x8De\x8ef\x8fi\x8in\x8ni\x8it\x8ti\x8io\x8on\x8n·_\x8S_\x8I_\x8L_\x8L_\x8Y_\x8D_\x8a_\x8t_\x8a_\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8._\x8h_\x8:_\x84_\x87 | ||
91 | _\x8S_\x8I_\x8L_\x8L_\x8Y_\x8:_\x8:_\x8I_\x8m_\x8a_\x8g_\x8e_\x8C_\x8o_\x8n_\x8t_\x8e_\x8x_\x8t | ||
92 | Store·the·data·needed·by·an·ImageLoader·object·during·the·parsing·of·an·image. | ||
93 | D\x8De\x8ef\x8fi\x8in\x8ni\x8it\x8ti\x8io\x8on\x8n·_\x8S_\x8I_\x8L_\x8L_\x8Y_\x8I_\x8m_\x8a_\x8g_\x8e_\x8C_\x8o_\x8n_\x8t_\x8e_\x8x_\x8t_\x8._\x8h_\x8:_\x84_\x84 | ||
94 | _\x8S_\x8I_\x8L_\x8L_\x8Y_\x8:_\x8:_\x8I_\x8m_\x8a_\x8g_\x8e_\x8L_\x8o_\x8a_\x8d_\x8e_\x8r | ||
95 | This·is·an·abstract·class·that·define·the·interface·of·all·image·loader. | ||
96 | D\x8De\x8ef\x8fi\x8in\x8ni\x8it\x8ti\x8io\x8on\x8n·_\x8S_\x8I_\x8L_\x8L_\x8Y_\x8I_\x8m_\x8a_\x8g_\x8e_\x8L_\x8o_\x8a_\x8d_\x8e_\x8r_\x8._\x8h_\x8:_\x84_\x87 | ||
97 | =============================================================================== | 59 | =============================================================================== |
98 | ·····Generated·by _\x8[_\x8d_\x8o_\x8x_\x8y_\x8g_\x8e_\x8n_\x8]·1.9.8 | 60 | ·····Generated·by _\x8[_\x8d_\x8o_\x8x_\x8y_\x8g_\x8e_\x8n_\x8]·1.9.8 |
Offset 1, 15 lines modified | Offset 1, 15 lines modified | ||
1 | <!DOCTYPE·html·PUBLIC·"-//W3C//DTD·XHTML·1.0·Transitional//EN"·"https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> | 1 | <!DOCTYPE·html·PUBLIC·"-//W3C//DTD·XHTML·1.0·Transitional//EN"·"https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> |
2 | <html·xmlns="http://www.w3.org/1999/xhtml"·lang="en-US"> | 2 | <html·xmlns="http://www.w3.org/1999/xhtml"·lang="en-US"> |
3 | <head> | 3 | <head> |
4 | <meta·http-equiv="Content-Type"·content="text/xhtml;charset=UTF-8"/> | 4 | <meta·http-equiv="Content-Type"·content="text/xhtml;charset=UTF-8"/> |
5 | <meta·http-equiv="X-UA-Compatible"·content="IE=11"/> | 5 | <meta·http-equiv="X-UA-Compatible"·content="IE=11"/> |
6 | <meta·name="generator"·content="Doxygen·1.9.8"/> | 6 | <meta·name="generator"·content="Doxygen·1.9.8"/> |
7 | <meta·name="viewport"·content="width=device-width,·initial-scale=1"/> | 7 | <meta·name="viewport"·content="width=device-width,·initial-scale=1"/> |
8 | <title>Simple·Image·Loading·LibrarY:·/build/reproducible-path/silly-0.1.0/include/ | 8 | <title>Simple·Image·Loading·LibrarY:·/build/reproducible-path/silly-0.1.0/include/SILLYFileDataSource.h·Source·File</title> |
9 | <link·href="tabs.css"·rel="stylesheet"·type="text/css"/> | 9 | <link·href="tabs.css"·rel="stylesheet"·type="text/css"/> |
10 | <script·type="text/javascript"·src="jquery.js"></script> | 10 | <script·type="text/javascript"·src="jquery.js"></script> |
11 | <script·type="text/javascript"·src="dynsections.js"></script> | 11 | <script·type="text/javascript"·src="dynsections.js"></script> |
12 | <link·href="doxygen.css"·rel="stylesheet"·type="text/css"·/> | 12 | <link·href="doxygen.css"·rel="stylesheet"·type="text/css"·/> |
13 | </head> | 13 | </head> |
14 | <body> | 14 | <body> |
15 | <div·id="top"><!--·do·not·remove·this·div,·it·is·closed·by·doxygen!·--> | 15 | <div·id="top"><!--·do·not·remove·this·div,·it·is·closed·by·doxygen!·--> |
Offset 40, 57 lines modified | Offset 40, 90 lines modified | ||
40 | <script·type="text/javascript"> | 40 | <script·type="text/javascript"> |
41 | /*·@license·magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt·MIT·*/ | 41 | /*·@license·magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt·MIT·*/ |
42 | $(document).ready(function()·{·init_codefold(0);·}); | 42 | $(document).ready(function()·{·init_codefold(0);·}); |
43 | /*·@license-end·*/ | 43 | /*·@license-end·*/ |
44 | </script> | 44 | </script> |
45 | <div·id="nav-path"·class="navpath"> | 45 | <div·id="nav-path"·class="navpath"> |
46 | ··<ul> | 46 | ··<ul> |
47 | <li·class="navelem"><a·class="el"·href="dir_4fef79e7177ba769987a8da36c892c5f.html">build</a></li><li·class="navelem"><a·class="el"·href="dir_9def6061848686aab7e6212bb499d615.html">reproducible-path</a></li><li·class="navelem"><a·class="el"·href="dir_74170d5b58cefb7cb5a86fc552b183a3.html">silly-0.1.0</a></li><li·class="navelem"><a·class="el"·href="dir_0d87e2e7ddaae8a2a8572c0afc59fe0d.html">include</a></li> | 47 | <li·class="navelem"><a·class="el"·href="dir_4fef79e7177ba769987a8da36c892c5f.html">build</a></li><li·class="navelem"><a·class="el"·href="dir_9def6061848686aab7e6212bb499d615.html">reproducible-path</a></li><li·class="navelem"><a·class="el"·href="dir_74170d5b58cefb7cb5a86fc552b183a3.html">silly-0.1.0</a></li><li·class="navelem"><a·class="el"·href="dir_0d87e2e7ddaae8a2a8572c0afc59fe0d.html">include</a></li>··</ul> |
48 | </div> | 48 | </div> |
49 | </div><!--·top·--> | 49 | </div><!--·top·--> |
50 | <div·class="header"> | 50 | <div·class="header"> |
51 | ··<div·class="headertitle"><div·class="title">SILLY | 51 | ··<div·class="headertitle"><div·class="title">SILLYFileDataSource.h</div></div> |
52 | </div><!--header--> | 52 | </div><!--header--> |
53 | <div·class="contents"> | 53 | <div·class="contents"> |
54 | <div·class="fragment"><div·class="line"><a·id="l00001"·name="l00001"></a><span·class="lineno">····1</span>/***********************************************************************</div> | 54 | <div·class="fragment"><div·class="line"><a·id="l00001"·name="l00001"></a><span·class="lineno">····1</span><span·class="comment">/***********************************************************************</span></div> |
55 | <div·class="line"><a·id="l00002"·name="l00002"></a><span·class="lineno">····2</span>····filename:···SILLY | 55 | <div·class="line"><a·id="l00002"·name="l00002"></a><span·class="lineno">····2</span><span·class="comment">····filename:···SILLYFileDataSource.h</span></div> |
56 | <div·class="line"><a·id="l00003"·name="l00003"></a><span·class="lineno">····3</span>····created:···· | 56 | <div·class="line"><a·id="l00003"·name="l00003"></a><span·class="lineno">····3</span><span·class="comment">····created:····20·Jul·2006</span></div> |
57 | <div·class="line"><a·id="l00004"·name="l00004"></a><span·class="lineno">····4</span>····author:·····Olivier·Delannoy</div> | 57 | <div·class="line"><a·id="l00004"·name="l00004"></a><span·class="lineno">····4</span><span·class="comment">····author:·····Olivier·Delannoy</span></div> |
58 | <div·class="line"><a·id="l00005"·name="l00005"></a><span·class="lineno">····5</span>·</div> | 58 | <div·class="line"><a·id="l00005"·name="l00005"></a><span·class="lineno">····5</span><span·class="comment"></span>·</div> |
59 | <div·class="line"><a·id="l00006"·name="l00006"></a><span·class="lineno">····6</span>····purpose:···· | 59 | <div·class="line"><a·id="l00006"·name="l00006"></a><span·class="lineno">····6</span><span·class="comment">····purpose:····Provide·file·based·image·loading·</span></div> |
60 | <div·class="line"><a·id="l00007"·name="l00007"></a><span·class="lineno">····7</span>*************************************************************************/</div> | 60 | <div·class="line"><a·id="l00007"·name="l00007"></a><span·class="lineno">····7</span><span·class="comment">*************************************************************************/</span></div> |
61 | <div·class="line"><a·id="l00008"·name="l00008"></a><span·class="lineno">····8</span>/***************************************************************************</div> | 61 | <div·class="line"><a·id="l00008"·name="l00008"></a><span·class="lineno">····8</span><span·class="comment">/***************************************************************************</span></div> |
62 | <div·class="line"><a·id="l00009"·name="l00009"></a><span·class="lineno">····9</span>·*···Copyright·(C)·2004·-·2006·Paul·D·Turner·&·The·CEGUI·Development·Team</div> | 62 | <div·class="line"><a·id="l00009"·name="l00009"></a><span·class="lineno">····9</span><span·class="comment">·*···Copyright·(C)·2004·-·2006·Paul·D·Turner·&·The·CEGUI·Development·Team</span></div> |
63 | <div·class="line"><a·id="l00010"·name="l00010"></a><span·class="lineno">···10</span>·*</div> | 63 | <div·class="line"><a·id="l00010"·name="l00010"></a><span·class="lineno">···10</span><span·class="comment">·*</span></div> |
64 | <div·class="line"><a·id="l00011"·name="l00011"></a><span·class="lineno">···11</span>·*···Permission·is·hereby·granted,·free·of·charge,·to·any·person·obtaining</div> | 64 | <div·class="line"><a·id="l00011"·name="l00011"></a><span·class="lineno">···11</span><span·class="comment">·*···Permission·is·hereby·granted,·free·of·charge,·to·any·person·obtaining</span></div> |
65 | <div·class="line"><a·id="l00012"·name="l00012"></a><span·class="lineno">···12</span>·*···a·copy·of·this·software·and·associated·documentation·files·(the</div> | 65 | <div·class="line"><a·id="l00012"·name="l00012"></a><span·class="lineno">···12</span><span·class="comment">·*···a·copy·of·this·software·and·associated·documentation·files·(the</span></div> |
66 | <div·class="line"><a·id="l00013"·name="l00013"></a><span·class="lineno">···13</span>·*···"Software"),·to·deal·in·the·Software·without·restriction,·including</div> | 66 | <div·class="line"><a·id="l00013"·name="l00013"></a><span·class="lineno">···13</span><span·class="comment">·*···"Software"),·to·deal·in·the·Software·without·restriction,·including</span></div> |
67 | <div·class="line"><a·id="l00014"·name="l00014"></a><span·class="lineno">···14</span>·*···without·limitation·the·rights·to·use,·copy,·modify,·merge,·publish,</div> | 67 | <div·class="line"><a·id="l00014"·name="l00014"></a><span·class="lineno">···14</span><span·class="comment">·*···without·limitation·the·rights·to·use,·copy,·modify,·merge,·publish,</span></div> |
68 | <div·class="line"><a·id="l00015"·name="l00015"></a><span·class="lineno">···15</span>·*···distribute,·sublicense,·and/or·sell·copies·of·the·Software,·and·to</div> | 68 | <div·class="line"><a·id="l00015"·name="l00015"></a><span·class="lineno">···15</span><span·class="comment">·*···distribute,·sublicense,·and/or·sell·copies·of·the·Software,·and·to</span></div> |
69 | <div·class="line"><a·id="l00016"·name="l00016"></a><span·class="lineno">···16</span>·*···permit·persons·to·whom·the·Software·is·furnished·to·do·so,·subject·to</div> | 69 | <div·class="line"><a·id="l00016"·name="l00016"></a><span·class="lineno">···16</span><span·class="comment">·*···permit·persons·to·whom·the·Software·is·furnished·to·do·so,·subject·to</span></div> |
70 | <div·class="line"><a·id="l00017"·name="l00017"></a><span·class="lineno">···17</span>·*···the·following·conditions:</div> | 70 | <div·class="line"><a·id="l00017"·name="l00017"></a><span·class="lineno">···17</span><span·class="comment">·*···the·following·conditions:</span></div> |
71 | <div·class="line"><a·id="l00018"·name="l00018"></a><span·class="lineno">···18</span>·*</div> | 71 | <div·class="line"><a·id="l00018"·name="l00018"></a><span·class="lineno">···18</span><span·class="comment">·*</span></div> |
72 | <div·class="line"><a·id="l00019"·name="l00019"></a><span·class="lineno">···19</span>·*···The·above·copyright·notice·and·this·permission·notice·shall·be</div> | 72 | <div·class="line"><a·id="l00019"·name="l00019"></a><span·class="lineno">···19</span><span·class="comment">·*···The·above·copyright·notice·and·this·permission·notice·shall·be</span></div> |
73 | <div·class="line"><a·id="l00020"·name="l00020"></a><span·class="lineno">···20</span>·*···included·in·all·copies·or·substantial·portions·of·the·Software.</div> | 73 | <div·class="line"><a·id="l00020"·name="l00020"></a><span·class="lineno">···20</span><span·class="comment">·*···included·in·all·copies·or·substantial·portions·of·the·Software.</span></div> |
74 | <div·class="line"><a·id="l00021"·name="l00021"></a><span·class="lineno">···21</span>·*</div> | 74 | <div·class="line"><a·id="l00021"·name="l00021"></a><span·class="lineno">···21</span><span·class="comment">·*</span></div> |
75 | <div·class="line"><a·id="l00022"·name="l00022"></a><span·class="lineno">···22</span>·*···THE·SOFTWARE·IS·PROVIDED·"AS·IS",·WITHOUT·WARRANTY·OF·ANY·KIND,</div> | 75 | <div·class="line"><a·id="l00022"·name="l00022"></a><span·class="lineno">···22</span><span·class="comment">·*···THE·SOFTWARE·IS·PROVIDED·"AS·IS",·WITHOUT·WARRANTY·OF·ANY·KIND,</span></div> |
76 | <div·class="line"><a·id="l00023"·name="l00023"></a><span·class="lineno">···23</span>·*···EXPRESS·OR·IMPLIED,·INCLUDING·BUT·NOT·LIMITED·TO·THE·WARRANTIES·OF</div> | 76 | <div·class="line"><a·id="l00023"·name="l00023"></a><span·class="lineno">···23</span><span·class="comment">·*···EXPRESS·OR·IMPLIED,·INCLUDING·BUT·NOT·LIMITED·TO·THE·WARRANTIES·OF</span></div> |
77 | <div·class="line"><a·id="l00024"·name="l00024"></a><span·class="lineno">···24</span>·*···MERCHANTABILITY,·FITNESS·FOR·A·PARTICULAR·PURPOSE·AND·NONINFRINGEMENT.</div> | 77 | <div·class="line"><a·id="l00024"·name="l00024"></a><span·class="lineno">···24</span><span·class="comment">·*···MERCHANTABILITY,·FITNESS·FOR·A·PARTICULAR·PURPOSE·AND·NONINFRINGEMENT.</span></div> |
78 | <div·class="line"><a·id="l00025"·name="l00025"></a><span·class="lineno">···25</span>·*···IN·NO·EVENT·SHALL·THE·AUTHORS·BE·LIABLE·FOR·ANY·CLAIM,·DAMAGES·OR</div> | 78 | <div·class="line"><a·id="l00025"·name="l00025"></a><span·class="lineno">···25</span><span·class="comment">·*···IN·NO·EVENT·SHALL·THE·AUTHORS·BE·LIABLE·FOR·ANY·CLAIM,·DAMAGES·OR</span></div> |
79 | <div·class="line"><a·id="l00026"·name="l00026"></a><span·class="lineno">···26</span>·*···OTHER·LIABILITY,·WHETHER·IN·AN·ACTION·OF·CONTRACT,·TORT·OR·OTHERWISE,</div> | 79 | <div·class="line"><a·id="l00026"·name="l00026"></a><span·class="lineno">···26</span><span·class="comment">·*···OTHER·LIABILITY,·WHETHER·IN·AN·ACTION·OF·CONTRACT,·TORT·OR·OTHERWISE,</span></div> |
80 | <div·class="line"><a·id="l00027"·name="l00027"></a><span·class="lineno">···27</span>·*···ARISING·FROM,·OUT·OF·OR·IN·CONNECTION·WITH·THE·SOFTWARE·OR·THE·USE·OR</div> | 80 | <div·class="line"><a·id="l00027"·name="l00027"></a><span·class="lineno">···27</span><span·class="comment">·*···ARISING·FROM,·OUT·OF·OR·IN·CONNECTION·WITH·THE·SOFTWARE·OR·THE·USE·OR</span></div> |
81 | <div·class="line"><a·id="l00028"·name="l00028"></a><span·class="lineno">···28</span>·*···OTHER·DEALINGS·IN·THE·SOFTWARE.</div> | 81 | <div·class="line"><a·id="l00028"·name="l00028"></a><span·class="lineno">···28</span><span·class="comment">·*···OTHER·DEALINGS·IN·THE·SOFTWARE.</span></div> |
82 | <div·class="line"><a·id="l00029"·name="l00029"></a><span·class="lineno">···29</span>·***************************************************************************/</div> | 82 | <div·class="line"><a·id="l00029"·name="l00029"></a><span·class="lineno">···29</span><span·class="comment">·***************************************************************************/</span></div> |
83 | <div·class="line"><a·id="l00030"·name="l00030"></a><span·class="lineno">···30</span>·</div> | 83 | <div·class="line"><a·id="l00030"·name="l00030"></a><span·class="lineno">···30</span><span·class="preprocessor">#ifndef·_SILLYFileDataSource_h_·</span></div> |
84 | <div·class="line"><a·id="l00031"·name="l00031"></a><span·class="lineno">···31</span><span·class="preprocessor">#define·_SILLYFileDataSource_h_</span></div> | ||
85 | <div·class="line"><a·id="l00032"·name="l00032"></a><span·class="lineno">···32</span><span·class="preprocessor">#include·"SILLYBase.h"</span>·</div> | ||
86 | <div·class="line"><a·id="l00033"·name="l00033"></a><span·class="lineno">···33</span><span·class="preprocessor">#include·"SILLYDataSource.h"</span>·</div> | ||
84 | <div·class="line"><a·id="l0003 | 87 | <div·class="line"><a·id="l00034"·name="l00034"></a><span·class="lineno">···34</span><span·class="comment">//·Start·of·section·namespace·SILLY·</span></div> |
88 | <div·class="line"><a·id="l00035"·name="l00035"></a><span·class="lineno">···35</span><span·class="keyword">namespace·</span><a·class="code·hl_namespace"·href="a00129.html">SILLY</a></div> | ||
85 | <div·class="line"><a·id="l00032"·name="l00032"></a><span·class="lineno">···32</span>namespace·SILLY</div> | ||
86 | <div·class="line"><a·id="l00033"·name="l00033"></a><span·class="lineno">···33</span>{</div> | ||
87 | <div·class="line"><a·id="l00034"·name="l00034"></a><span·class="lineno">···34</span>····</div> | ||
88 | <div·class="line"><a·id="l00035"·name="l00035"></a><span·class="lineno">···35</span>}·//·End·of·section·namespace·SILLY</div> | ||
89 | <div·class="line"><a·id="l00036"·name="l00036"></a><span·class="lineno">···36</span> | 89 | <div·class="line"><a·id="l00036"·name="l00036"></a><span·class="lineno">···36</span>{</div> |
90 | <div·class="line"><a·id="l00037"·name="l00037"></a><span·class="lineno">···37</span>·</div> | ||
91 | <div·class="foldopen"·id="foldopen00048"·data-start="{"·data-end="};"> | ||
92 | <div·class="line"><a·id="l00048"·name="l00048"></a><span·class="lineno"><a·class="line"·href="a00973.html">···48</a></span><span·class="keyword">class·</span>SILLY_EXPORT·<a·class="code·hl_class"·href="a00973.html">FileDataSource</a>·:·<span·class="keyword">public</span>·<a·class="code·hl_class"·href="a00969.html">DataSource</a></div> | ||
93 | <div·class="line"><a·id="l00049"·name="l00049"></a><span·class="lineno">···49</span>{</div> | ||
94 | <div·class="line"><a·id="l00050"·name="l00050"></a><span·class="lineno">···50</span><span·class="keyword">public</span>:</div> | ||
95 | <div·class="line"><a·id="l00060"·name="l00060"></a><span·class="lineno">···60</span>····<a·class="code·hl_class"·href="a00973.html">FileDataSource</a>(<span·class="keyword">const</span>·<span·class="keywordtype">char</span>*·filename);</div> | ||
96 | <div·class="line"><a·id="l00064"·name="l00064"></a><span·class="lineno">···64</span>····<a·class="code·hl_class"·href="a00973.html">~FileDataSource</a>();</div> | ||
97 | <div·class="line"><a·id="l00073"·name="l00073"></a><span·class="lineno"><a·class="line"·href="a00973.html#a5bc2a781be2586924afce4e4a4ea6697">···73</a></span>····<span·class="keywordtype">bool</span>·<a·class="code·hl_function"·href="a00973.html#a5bc2a781be2586924afce4e4a4ea6697">isValid</a>()·<span·class="keyword">const</span>;</div> | ||
98 | <div·class="line"><a·id="l00074"·name="l00074"></a><span·class="lineno">···74</span>·</div> | ||
99 | <div·class="line"><a·id="l00075"·name="l00075"></a><span·class="lineno"><a·class="line"·href="a00973.html#a363c71a270f739498e576e743cfa0d6e">···75</a></span>····<span·class="keyword">const</span>·<span·class="keywordtype">byte</span>*·<a·class="code·hl_function"·href="a00973.html#a363c71a270f739498e576e743cfa0d6e">getDataPtr</a>()·<span·class="keyword">const</span>;</div> | ||
100 | <div·class="line"><a·id="l00076"·name="l00076"></a><span·class="lineno"><a·class="line"·href="a00973.html#a9be1e4285daa77fe397767c097fbdc66">···76</a></span>····<span·class="keywordtype">size_t</span>·<a·class="code·hl_function"·href="a00973.html#a9be1e4285daa77fe397767c097fbdc66">getSize</a>()·<span·class="keyword">const</span>;</div> | ||
101 | <div·class="line"><a·id="l00077"·name="l00077"></a><span·class="lineno">···77</span><span·class="keyword">private</span>:</div> | ||
102 | <div·class="line"><a·id="l00078"·name="l00078"></a><span·class="lineno">···78</span>····<span·class="keywordtype">bool</span>·d_error;··</div> | ||
103 | <div·class="line"><a·id="l00079"·name="l00079"></a><span·class="lineno">···79</span>····<span·class="keywordtype">byte</span>*·d_bytes;·</div> | ||
104 | <div·class="line"><a·id="l00080"·name="l00080"></a><span·class="lineno">···80</span>····<span·class="keywordtype">size_t</span>·d_size;·</div> | ||
105 | <div·class="line"><a·id="l00081"·name="l00081"></a><span·class="lineno">···81</span>};</div> | ||
106 | </div> | ||
107 | <div·class="line"><a·id="l00082"·name="l00082"></a><span·class="lineno">···82</span>··</div> | ||
108 | <div·class="line"><a·id="l00083"·name="l00083"></a><span·class="lineno">···83</span>··</div> | ||
109 | <div·class="line"><a·id="l00084"·name="l00084"></a><span·class="lineno">···84</span>}·<span·class="comment">//·End·of·section·namespace·SILLY·</span></div> | ||
110 | <div·class="line"><a·id="l00085"·name="l00085"></a><span·class="lineno">···85</span>·</div> | ||
111 | <div·class="line"><a·id="l00086"·name="l00086"></a><span·class="lineno">···86</span><span·class="comment">//·Inclue·inline·function·when·needed·</span></div> | ||
112 | <div·class="line"><a·id="l00087"·name="l00087"></a><span·class="lineno">···87</span><span·class="preprocessor">#ifdef·SILLY_OPT_INLINE</span></div> | ||
113 | <div·class="line"><a·id="l00088"·name="l00088"></a><span·class="lineno">···88</span><span·class="preprocessor">#include·"SILLYFileDataSource.icpp"</span></div> | ||
114 | <div·class="line"><a·id="l00089"·name="l00089"></a><span·class="lineno">···89</span><span·class="preprocessor">#endif·</span></div> | ||
115 | <div·class="line"><a·id="l00090"·name="l00090"></a><span·class="lineno">···90</span>·</div> | ||
116 | <div·class="line"><a·id="l00091"·name="l00091"></a><span·class="lineno">···91</span><span·class="preprocessor">#endif·</span><span·class="comment">//·end·of·guard·_SILLYFileDataSource_h_</span></div> | ||
117 | <div·class="ttc"·id="aa00129_html"><div·class="ttname"><a·href="a00129.html">SILLY</a></div><div·class="ttdoc">Simple·Image·Loading·LibrarY·namespace.</div><div·class="ttdef"><b>Definition</b>·<a·href="a00023_source.html#l00045">SILLYJPGImageContext.cpp:46</a></div></div> | ||
118 | <div·class="ttc"·id="aa00969_html"><div·class="ttname"><a·href="a00969.html">SILLY::DataSource</a></div><div·class="ttdoc">This·is·an·abstract·class·used·to·provide·data·to·the·loader.</div><div·class="ttdef"><b>Definition</b>·<a·href="a00083_source.html#l00046">SILLYDataSource.h:47</a></div></div> | ||
119 | <div·class="ttc"·id="aa00973_html"><div·class="ttname"><a·href="a00973.html">SILLY::FileDataSource</a></div><div·class="ttdoc">This·class·allow·the·loading·of·an·image·directly·from·a·file.</div><div·class="ttdef"><b>Definition</b>·<a·href="a00068_source.html#l00048">SILLYFileDataSource.h:49</a></div></div> | ||
120 | <div·class="ttc"·id="aa00973_html_a363c71a270f739498e576e743cfa0d6e"><div·class="ttname"><a·href="a00973.html#a363c71a270f739498e576e743cfa0d6e">SILLY::FileDataSource::getDataPtr</a></div><div·class="ttdeci">const·byte·*·getDataPtr()·const</div><div·class="ttdoc">Get·raw·access·to·the·image·data.</div></div> | ||
121 | <div·class="ttc"·id="aa00973_html_a5bc2a781be2586924afce4e4a4ea6697"><div·class="ttname"><a·href="a00973.html#a5bc2a781be2586924afce4e4a4ea6697">SILLY::FileDataSource::isValid</a></div><div·class="ttdeci">bool·isValid()·const</div><div·class="ttdoc">Check·wether·the·loading·is·successfull·or·not.</div></div> | ||
122 | <div·class="ttc"·id="aa00973_html_a9be1e4285daa77fe397767c097fbdc66"><div·class="ttname"><a·href="a00973.html#a9be1e4285daa77fe397767c097fbdc66">SILLY::FileDataSource::getSize</a></div><div·class="ttdeci">size_t·getSize()·const</div><div·class="ttdoc">Return·the·size·of·the·data.</div></div> | ||
90 | </div><!--·fragment·--></div><!--·contents·--> | 123 | </div><!--·fragment·--></div><!--·contents·--> |
91 | <!--·start·footer·part·--> | 124 | <!--·start·footer·part·--> |
92 | <hr·class="footer"/><address·class="footer"><small> | 125 | <hr·class="footer"/><address·class="footer"><small> |
93 | Generated·by <a·href="https://www.doxygen.org/index.html"><img·class="footer"·src="doxygen.svg"·width="104"·height="31"·alt="doxygen"/></a>·1.9.8 | 126 | Generated·by <a·href="https://www.doxygen.org/index.html"><img·class="footer"·src="doxygen.svg"·width="104"·height="31"·alt="doxygen"/></a>·1.9.8 |
94 | </small></address> | 127 | </small></address> |
95 | </body> | 128 | </body> |
96 | </html> | 129 | </html> |
Offset 1, 20 lines modified | Offset 1, 19 lines modified | ||
1 | Simple·Image·Loading·LibrarY 0.1.0 | 1 | Simple·Image·Loading·LibrarY 0.1.0 |
2 | ····*·_\x8b_\x8u_\x8i_\x8l_\x8d | 2 | ····*·_\x8b_\x8u_\x8i_\x8l_\x8d |
3 | ····*·_\x8r_\x8e_\x8p_\x8r_\x8o_\x8d_\x8u_\x8c_\x8i_\x8b_\x8l_\x8e_\x8-_\x8p_\x8a_\x8t_\x8h | 3 | ····*·_\x8r_\x8e_\x8p_\x8r_\x8o_\x8d_\x8u_\x8c_\x8i_\x8b_\x8l_\x8e_\x8-_\x8p_\x8a_\x8t_\x8h |
4 | ····*·_\x8s_\x8i_\x8l_\x8l_\x8y_\x8-_\x80_\x8._\x81_\x8._\x80 | 4 | ····*·_\x8s_\x8i_\x8l_\x8l_\x8y_\x8-_\x80_\x8._\x81_\x8._\x80 |
5 | ····*·_\x8i_\x8n_\x8c_\x8l_\x8u_\x8d_\x8e | 5 | ····*·_\x8i_\x8n_\x8c_\x8l_\x8u_\x8d_\x8e |
6 | SILLYFileDataSource.h | ||
6 | ····*·_\x8l_\x8o_\x8a_\x8d_\x8e_\x8r_\x8s | ||
7 | SILLYJPGImageLoader.icpp | ||
8 | 1/*********************************************************************** | 7 | 1/*********************************************************************** |
9 | 2·filename:·SILLY | 8 | 2·filename:·SILLYFileDataSource.h |
10 | 3·created:· | 9 | 3·created:·20·Jul·2006 |
11 | 4·author:·Olivier·Delannoy | 10 | 4·author:·Olivier·Delannoy |
12 | 5 | 11 | 5 |
13 | 6·purpose:· | 12 | 6·purpose:·Provide·file·based·image·loading |
14 | 7*************************************************************************/ | 13 | 7*************************************************************************/ |
15 | 8/*************************************************************************** | 14 | 8/*************************************************************************** |
16 | 9·*·Copyright·(C)·2004·-·2006·Paul·D·Turner·&·The·CEGUI·Development·Team | 15 | 9·*·Copyright·(C)·2004·-·2006·Paul·D·Turner·&·The·CEGUI·Development·Team |
17 | 10·* | 16 | 10·* |
18 | 11·*·Permission·is·hereby·granted,·free·of·charge,·to·any·person·obtaining | 17 | 11·*·Permission·is·hereby·granted,·free·of·charge,·to·any·person·obtaining |
19 | 12·*·a·copy·of·this·software·and·associated·documentation·files·(the | 18 | 12·*·a·copy·of·this·software·and·associated·documentation·files·(the |
20 | 13·*·"Software"),·to·deal·in·the·Software·without·restriction,·including | 19 | 13·*·"Software"),·to·deal·in·the·Software·without·restriction,·including |
Offset 30, 16 lines modified | Offset 29, 59 lines modified | ||
30 | 23·*·EXPRESS·OR·IMPLIED,·INCLUDING·BUT·NOT·LIMITED·TO·THE·WARRANTIES·OF | 29 | 23·*·EXPRESS·OR·IMPLIED,·INCLUDING·BUT·NOT·LIMITED·TO·THE·WARRANTIES·OF |
31 | 24·*·MERCHANTABILITY,·FITNESS·FOR·A·PARTICULAR·PURPOSE·AND·NONINFRINGEMENT. | 30 | 24·*·MERCHANTABILITY,·FITNESS·FOR·A·PARTICULAR·PURPOSE·AND·NONINFRINGEMENT. |
32 | 25·*·IN·NO·EVENT·SHALL·THE·AUTHORS·BE·LIABLE·FOR·ANY·CLAIM,·DAMAGES·OR | 31 | 25·*·IN·NO·EVENT·SHALL·THE·AUTHORS·BE·LIABLE·FOR·ANY·CLAIM,·DAMAGES·OR |
33 | 26·*·OTHER·LIABILITY,·WHETHER·IN·AN·ACTION·OF·CONTRACT,·TORT·OR·OTHERWISE, | 32 | 26·*·OTHER·LIABILITY,·WHETHER·IN·AN·ACTION·OF·CONTRACT,·TORT·OR·OTHERWISE, |
34 | 27·*·ARISING·FROM,·OUT·OF·OR·IN·CONNECTION·WITH·THE·SOFTWARE·OR·THE·USE·OR | 33 | 27·*·ARISING·FROM,·OUT·OF·OR·IN·CONNECTION·WITH·THE·SOFTWARE·OR·THE·USE·OR |
35 | 28·*·OTHER·DEALINGS·IN·THE·SOFTWARE. | 34 | 28·*·OTHER·DEALINGS·IN·THE·SOFTWARE. |
36 | 29·***************************************************************************/ | 35 | 29·***************************************************************************/ |
37 | 30 | 36 | 30#ifndef·_SILLYFileDataSource_h_ |
37 | 31#define·_SILLYFileDataSource_h_ | ||
38 | 32#include·"SILLYBase.h" | ||
39 | 33#include·"SILLYDataSource.h" | ||
38 | 3 | 40 | 34//·Start·of·section·namespace·SILLY |
39 | 32namespace·SILLY | ||
40 | 33{ | ||
41 | 3 | 41 | 35namespace·_.S_.I_.L_.L_.Y |
42 | 36{ | ||
43 | 37 | ||
44 | _\x84_\x88class·SILLY_EXPORT·_\x8F_\x8i_\x8l_\x8e_\x8D_\x8a_\x8t_\x8a_\x8S_\x8o_\x8u_\x8r_\x8c_\x8e·:·public·_\x8D_\x8a_\x8t_\x8a_\x8S_\x8o_\x8u_\x8r_\x8c_\x8e | ||
45 | 49{ | ||
46 | 50public: | ||
47 | 60·_\x8F_\x8i_\x8l_\x8e_\x8D_\x8a_\x8t_\x8a_\x8S_\x8o_\x8u_\x8r_\x8c_\x8e(const·char*·filename); | ||
48 | 64·_\x8~_\x8F_\x8i_\x8l_\x8e_\x8D_\x8a_\x8t_\x8a_\x8S_\x8o_\x8u_\x8r_\x8c_\x8e(); | ||
49 | _\x87_\x83·bool·_\x8i_\x8s_\x8V_\x8a_\x8l_\x8i_\x8d()·const; | ||
50 | 74 | ||
51 | _\x87_\x85·const·byte*·_\x8g_\x8e_\x8t_\x8D_\x8a_\x8t_\x8a_\x8P_\x8t_\x8r()·const; | ||
52 | _\x87_\x86·size_t·_\x8g_\x8e_\x8t_\x8S_\x8i_\x8z_\x8e()·const; | ||
53 | 77private: | ||
54 | 78·bool·d_error; | ||
55 | 79·byte*·d_bytes; | ||
56 | 80·size_t·d_size; | ||
57 | 81}; | ||
58 | 82 | ||
59 | 83 | ||
42 | 60 | 84}·//·End·of·section·namespace·SILLY | |
43 | 61 | 85 | |
62 | 86//·Inclue·inline·function·when·needed | ||
63 | 87#ifdef·SILLY_OPT_INLINE | ||
64 | 88#include·"SILLYFileDataSource.icpp" | ||
65 | 89#endif | ||
66 | 90 | ||
67 | 91#endif·//·end·of·guard·_SILLYFileDataSource_h_ | ||
68 | _\x8S_\x8I_\x8L_\x8L_\x8Y | ||
69 | Simple·Image·Loading·LibrarY·namespace. | ||
70 | D\x8De\x8ef\x8fi\x8in\x8ni\x8it\x8ti\x8io\x8on\x8n·_\x8S_\x8I_\x8L_\x8L_\x8Y_\x8J_\x8P_\x8G_\x8I_\x8m_\x8a_\x8g_\x8e_\x8C_\x8o_\x8n_\x8t_\x8e_\x8x_\x8t_\x8._\x8c_\x8p_\x8p_\x8:_\x84_\x86 | ||
71 | _\x8S_\x8I_\x8L_\x8L_\x8Y_\x8:_\x8:_\x8D_\x8a_\x8t_\x8a_\x8S_\x8o_\x8u_\x8r_\x8c_\x8e | ||
72 | This·is·an·abstract·class·used·to·provide·data·to·the·loader. | ||
73 | D\x8De\x8ef\x8fi\x8in\x8ni\x8it\x8ti\x8io\x8on\x8n·_\x8S_\x8I_\x8L_\x8L_\x8Y_\x8D_\x8a_\x8t_\x8a_\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8._\x8h_\x8:_\x84_\x87 | ||
74 | _\x8S_\x8I_\x8L_\x8L_\x8Y_\x8:_\x8:_\x8F_\x8i_\x8l_\x8e_\x8D_\x8a_\x8t_\x8a_\x8S_\x8o_\x8u_\x8r_\x8c_\x8e | ||
75 | This·class·allow·the·loading·of·an·image·directly·from·a·file. | ||
76 | D\x8De\x8ef\x8fi\x8in\x8ni\x8it\x8ti\x8io\x8on\x8n·_\x8S_\x8I_\x8L_\x8L_\x8Y_\x8F_\x8i_\x8l_\x8e_\x8D_\x8a_\x8t_\x8a_\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8._\x8h_\x8:_\x84_\x89 | ||
77 | _\x8S_\x8I_\x8L_\x8L_\x8Y_\x8:_\x8:_\x8F_\x8i_\x8l_\x8e_\x8D_\x8a_\x8t_\x8a_\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8:_\x8:_\x8g_\x8e_\x8t_\x8D_\x8a_\x8t_\x8a_\x8P_\x8t_\x8r | ||
78 | const·byte·*·getDataPtr()·const | ||
79 | Get·raw·access·to·the·image·data. | ||
80 | _\x8S_\x8I_\x8L_\x8L_\x8Y_\x8:_\x8:_\x8F_\x8i_\x8l_\x8e_\x8D_\x8a_\x8t_\x8a_\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8:_\x8:_\x8i_\x8s_\x8V_\x8a_\x8l_\x8i_\x8d | ||
81 | bool·isValid()·const | ||
82 | Check·wether·the·loading·is·successfull·or·not. | ||
83 | _\x8S_\x8I_\x8L_\x8L_\x8Y_\x8:_\x8:_\x8F_\x8i_\x8l_\x8e_\x8D_\x8a_\x8t_\x8a_\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8:_\x8:_\x8g_\x8e_\x8t_\x8S_\x8i_\x8z_\x8e | ||
84 | size_t·getSize()·const | ||
85 | Return·the·size·of·the·data. | ||
44 | =============================================================================== | 86 | =============================================================================== |
45 | ·····Generated·by _\x8[_\x8d_\x8o_\x8x_\x8y_\x8g_\x8e_\x8n_\x8]·1.9.8 | 87 | ·····Generated·by _\x8[_\x8d_\x8o_\x8x_\x8y_\x8g_\x8e_\x8n_\x8]·1.9.8 |
Offset 1, 15 lines modified | Offset 1, 15 lines modified | ||
1 | <!DOCTYPE·html·PUBLIC·"-//W3C//DTD·XHTML·1.0·Transitional//EN"·"https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> | 1 | <!DOCTYPE·html·PUBLIC·"-//W3C//DTD·XHTML·1.0·Transitional//EN"·"https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> |
2 | <html·xmlns="http://www.w3.org/1999/xhtml"·lang="en-US"> | 2 | <html·xmlns="http://www.w3.org/1999/xhtml"·lang="en-US"> |
3 | <head> | 3 | <head> |
4 | <meta·http-equiv="Content-Type"·content="text/xhtml;charset=UTF-8"/> | 4 | <meta·http-equiv="Content-Type"·content="text/xhtml;charset=UTF-8"/> |
5 | <meta·http-equiv="X-UA-Compatible"·content="IE=11"/> | 5 | <meta·http-equiv="X-UA-Compatible"·content="IE=11"/> |
6 | <meta·name="generator"·content="Doxygen·1.9.8"/> | 6 | <meta·name="generator"·content="Doxygen·1.9.8"/> |
7 | <meta·name="viewport"·content="width=device-width,·initial-scale=1"/> | 7 | <meta·name="viewport"·content="width=device-width,·initial-scale=1"/> |
8 | <title>Simple·Image·Loading·LibrarY:·/build/reproducible-path/silly-0.1.0/include/ | 8 | <title>Simple·Image·Loading·LibrarY:·/build/reproducible-path/silly-0.1.0/include/SILLYImageLoader.h·Source·File</title> |
9 | <link·href="tabs.css"·rel="stylesheet"·type="text/css"/> | 9 | <link·href="tabs.css"·rel="stylesheet"·type="text/css"/> |
10 | <script·type="text/javascript"·src="jquery.js"></script> | 10 | <script·type="text/javascript"·src="jquery.js"></script> |
11 | <script·type="text/javascript"·src="dynsections.js"></script> | 11 | <script·type="text/javascript"·src="dynsections.js"></script> |
12 | <link·href="doxygen.css"·rel="stylesheet"·type="text/css"·/> | 12 | <link·href="doxygen.css"·rel="stylesheet"·type="text/css"·/> |
13 | </head> | 13 | </head> |
14 | <body> | 14 | <body> |
15 | <div·id="top"><!--·do·not·remove·this·div,·it·is·closed·by·doxygen!·--> | 15 | <div·id="top"><!--·do·not·remove·this·div,·it·is·closed·by·doxygen!·--> |
Offset 40, 57 lines modified | Offset 40, 101 lines modified | ||
40 | <script·type="text/javascript"> | 40 | <script·type="text/javascript"> |
41 | /*·@license·magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt·MIT·*/ | 41 | /*·@license·magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt·MIT·*/ |
42 | $(document).ready(function()·{·init_codefold(0);·}); | 42 | $(document).ready(function()·{·init_codefold(0);·}); |
43 | /*·@license-end·*/ | 43 | /*·@license-end·*/ |
44 | </script> | 44 | </script> |
45 | <div·id="nav-path"·class="navpath"> | 45 | <div·id="nav-path"·class="navpath"> |
46 | ··<ul> | 46 | ··<ul> |
47 | <li·class="navelem"><a·class="el"·href="dir_4fef79e7177ba769987a8da36c892c5f.html">build</a></li><li·class="navelem"><a·class="el"·href="dir_9def6061848686aab7e6212bb499d615.html">reproducible-path</a></li><li·class="navelem"><a·class="el"·href="dir_74170d5b58cefb7cb5a86fc552b183a3.html">silly-0.1.0</a></li><li·class="navelem"><a·class="el"·href="dir_0d87e2e7ddaae8a2a8572c0afc59fe0d.html">include</a></li> | 47 | <li·class="navelem"><a·class="el"·href="dir_4fef79e7177ba769987a8da36c892c5f.html">build</a></li><li·class="navelem"><a·class="el"·href="dir_9def6061848686aab7e6212bb499d615.html">reproducible-path</a></li><li·class="navelem"><a·class="el"·href="dir_74170d5b58cefb7cb5a86fc552b183a3.html">silly-0.1.0</a></li><li·class="navelem"><a·class="el"·href="dir_0d87e2e7ddaae8a2a8572c0afc59fe0d.html">include</a></li>··</ul> |
48 | </div> | 48 | </div> |
49 | </div><!--·top·--> | 49 | </div><!--·top·--> |
50 | <div·class="header"> | 50 | <div·class="header"> |
51 | ··<div·class="headertitle"><div·class="title">SILLY | 51 | ··<div·class="headertitle"><div·class="title">SILLYImageLoader.h</div></div> |
52 | </div><!--header--> | 52 | </div><!--header--> |
53 | <div·class="contents"> | 53 | <div·class="contents"> |
54 | <div·class="fragment"><div·class="line"><a·id="l00001"·name="l00001"></a><span·class="lineno">····1</span>/***********************************************************************</div> | 54 | <div·class="fragment"><div·class="line"><a·id="l00001"·name="l00001"></a><span·class="lineno">····1</span><span·class="comment">/***********************************************************************</span></div> |
55 | <div·class="line"><a·id="l00002"·name="l00002"></a><span·class="lineno">····2</span>····filename:···SILLY | 55 | <div·class="line"><a·id="l00002"·name="l00002"></a><span·class="lineno">····2</span><span·class="comment">····filename:···SILLYImageLoader.h</span></div> |
56 | <div·class="line"><a·id="l00003"·name="l00003"></a><span·class="lineno">····3</span>····created:····1 | 56 | <div·class="line"><a·id="l00003"·name="l00003"></a><span·class="lineno">····3</span><span·class="comment">····created:····10·Jun·2006</span></div> |
57 | <div·class="line"><a·id="l00004"·name="l00004"></a><span·class="lineno">····4</span>····author:·····Olivier·Delannoy</div> | 57 | <div·class="line"><a·id="l00004"·name="l00004"></a><span·class="lineno">····4</span><span·class="comment">····author:·····Olivier·Delannoy</span></div> |
58 | <div·class="line"><a·id="l00005"·name="l00005"></a><span·class="lineno">····5</span>·</div> | 58 | <div·class="line"><a·id="l00005"·name="l00005"></a><span·class="lineno">····5</span><span·class="comment"></span>·</div> |
59 | <div·class="line"><a·id="l00006"·name="l00006"></a><span·class="lineno">····6</span>····purpose:···· | 59 | <div·class="line"><a·id="l00006"·name="l00006"></a><span·class="lineno">····6</span><span·class="comment">····purpose:····Abstract·class·for·all·image·loader·</span></div> |
60 | <div·class="line"><a·id="l00007"·name="l00007"></a><span·class="lineno">····7</span>*************************************************************************/</div> | 60 | <div·class="line"><a·id="l00007"·name="l00007"></a><span·class="lineno">····7</span><span·class="comment">*************************************************************************/</span></div> |
61 | <div·class="line"><a·id="l00008"·name="l00008"></a><span·class="lineno">····8</span>/***************************************************************************</div> | 61 | <div·class="line"><a·id="l00008"·name="l00008"></a><span·class="lineno">····8</span><span·class="comment">/***************************************************************************</span></div> |
62 | <div·class="line"><a·id="l00009"·name="l00009"></a><span·class="lineno">····9</span>·*···Copyright·(C)·2004·-·2006·Paul·D·Turner·&·The·CEGUI·Development·Team</div> | 62 | <div·class="line"><a·id="l00009"·name="l00009"></a><span·class="lineno">····9</span><span·class="comment">·*···Copyright·(C)·2004·-·2006·Paul·D·Turner·&·The·CEGUI·Development·Team</span></div> |
63 | <div·class="line"><a·id="l00010"·name="l00010"></a><span·class="lineno">···10</span>·*</div> | 63 | <div·class="line"><a·id="l00010"·name="l00010"></a><span·class="lineno">···10</span><span·class="comment">·*</span></div> |
64 | <div·class="line"><a·id="l00011"·name="l00011"></a><span·class="lineno">···11</span>·*···Permission·is·hereby·granted,·free·of·charge,·to·any·person·obtaining</div> | 64 | <div·class="line"><a·id="l00011"·name="l00011"></a><span·class="lineno">···11</span><span·class="comment">·*···Permission·is·hereby·granted,·free·of·charge,·to·any·person·obtaining</span></div> |
65 | <div·class="line"><a·id="l00012"·name="l00012"></a><span·class="lineno">···12</span>·*···a·copy·of·this·software·and·associated·documentation·files·(the</div> | 65 | <div·class="line"><a·id="l00012"·name="l00012"></a><span·class="lineno">···12</span><span·class="comment">·*···a·copy·of·this·software·and·associated·documentation·files·(the</span></div> |
66 | <div·class="line"><a·id="l00013"·name="l00013"></a><span·class="lineno">···13</span>·*···"Software"),·to·deal·in·the·Software·without·restriction,·including</div> | 66 | <div·class="line"><a·id="l00013"·name="l00013"></a><span·class="lineno">···13</span><span·class="comment">·*···"Software"),·to·deal·in·the·Software·without·restriction,·including</span></div> |
67 | <div·class="line"><a·id="l00014"·name="l00014"></a><span·class="lineno">···14</span>·*···without·limitation·the·rights·to·use,·copy,·modify,·merge,·publish,</div> | 67 | <div·class="line"><a·id="l00014"·name="l00014"></a><span·class="lineno">···14</span><span·class="comment">·*···without·limitation·the·rights·to·use,·copy,·modify,·merge,·publish,</span></div> |
68 | <div·class="line"><a·id="l00015"·name="l00015"></a><span·class="lineno">···15</span>·*···distribute,·sublicense,·and/or·sell·copies·of·the·Software,·and·to</div> | 68 | <div·class="line"><a·id="l00015"·name="l00015"></a><span·class="lineno">···15</span><span·class="comment">·*···distribute,·sublicense,·and/or·sell·copies·of·the·Software,·and·to</span></div> |
69 | <div·class="line"><a·id="l00016"·name="l00016"></a><span·class="lineno">···16</span>·*···permit·persons·to·whom·the·Software·is·furnished·to·do·so,·subject·to</div> | 69 | <div·class="line"><a·id="l00016"·name="l00016"></a><span·class="lineno">···16</span><span·class="comment">·*···permit·persons·to·whom·the·Software·is·furnished·to·do·so,·subject·to</span></div> |
70 | <div·class="line"><a·id="l00017"·name="l00017"></a><span·class="lineno">···17</span>·*···the·following·conditions:</div> | 70 | <div·class="line"><a·id="l00017"·name="l00017"></a><span·class="lineno">···17</span><span·class="comment">·*···the·following·conditions:</span></div> |
71 | <div·class="line"><a·id="l00018"·name="l00018"></a><span·class="lineno">···18</span>·*</div> | 71 | <div·class="line"><a·id="l00018"·name="l00018"></a><span·class="lineno">···18</span><span·class="comment">·*</span></div> |
72 | <div·class="line"><a·id="l00019"·name="l00019"></a><span·class="lineno">···19</span>·*···The·above·copyright·notice·and·this·permission·notice·shall·be</div> | 72 | <div·class="line"><a·id="l00019"·name="l00019"></a><span·class="lineno">···19</span><span·class="comment">·*···The·above·copyright·notice·and·this·permission·notice·shall·be</span></div> |
73 | <div·class="line"><a·id="l00020"·name="l00020"></a><span·class="lineno">···20</span>·*···included·in·all·copies·or·substantial·portions·of·the·Software.</div> | 73 | <div·class="line"><a·id="l00020"·name="l00020"></a><span·class="lineno">···20</span><span·class="comment">·*···included·in·all·copies·or·substantial·portions·of·the·Software.</span></div> |
74 | <div·class="line"><a·id="l00021"·name="l00021"></a><span·class="lineno">···21</span>·*</div> | 74 | <div·class="line"><a·id="l00021"·name="l00021"></a><span·class="lineno">···21</span><span·class="comment">·*</span></div> |
75 | <div·class="line"><a·id="l00022"·name="l00022"></a><span·class="lineno">···22</span>·*···THE·SOFTWARE·IS·PROVIDED·"AS·IS",·WITHOUT·WARRANTY·OF·ANY·KIND,</div> | 75 | <div·class="line"><a·id="l00022"·name="l00022"></a><span·class="lineno">···22</span><span·class="comment">·*···THE·SOFTWARE·IS·PROVIDED·"AS·IS",·WITHOUT·WARRANTY·OF·ANY·KIND,</span></div> |
76 | <div·class="line"><a·id="l00023"·name="l00023"></a><span·class="lineno">···23</span>·*···EXPRESS·OR·IMPLIED,·INCLUDING·BUT·NOT·LIMITED·TO·THE·WARRANTIES·OF</div> | 76 | <div·class="line"><a·id="l00023"·name="l00023"></a><span·class="lineno">···23</span><span·class="comment">·*···EXPRESS·OR·IMPLIED,·INCLUDING·BUT·NOT·LIMITED·TO·THE·WARRANTIES·OF</span></div> |
77 | <div·class="line"><a·id="l00024"·name="l00024"></a><span·class="lineno">···24</span>·*···MERCHANTABILITY,·FITNESS·FOR·A·PARTICULAR·PURPOSE·AND·NONINFRINGEMENT.</div> | 77 | <div·class="line"><a·id="l00024"·name="l00024"></a><span·class="lineno">···24</span><span·class="comment">·*···MERCHANTABILITY,·FITNESS·FOR·A·PARTICULAR·PURPOSE·AND·NONINFRINGEMENT.</span></div> |
78 | <div·class="line"><a·id="l00025"·name="l00025"></a><span·class="lineno">···25</span>·*···IN·NO·EVENT·SHALL·THE·AUTHORS·BE·LIABLE·FOR·ANY·CLAIM,·DAMAGES·OR</div> | 78 | <div·class="line"><a·id="l00025"·name="l00025"></a><span·class="lineno">···25</span><span·class="comment">·*···IN·NO·EVENT·SHALL·THE·AUTHORS·BE·LIABLE·FOR·ANY·CLAIM,·DAMAGES·OR</span></div> |
79 | <div·class="line"><a·id="l00026"·name="l00026"></a><span·class="lineno">···26</span>·*···OTHER·LIABILITY,·WHETHER·IN·AN·ACTION·OF·CONTRACT,·TORT·OR·OTHERWISE,</div> | 79 | <div·class="line"><a·id="l00026"·name="l00026"></a><span·class="lineno">···26</span><span·class="comment">·*···OTHER·LIABILITY,·WHETHER·IN·AN·ACTION·OF·CONTRACT,·TORT·OR·OTHERWISE,</span></div> |
80 | <div·class="line"><a·id="l00027"·name="l00027"></a><span·class="lineno">···27</span>·*···ARISING·FROM,·OUT·OF·OR·IN·CONNECTION·WITH·THE·SOFTWARE·OR·THE·USE·OR</div> | 80 | <div·class="line"><a·id="l00027"·name="l00027"></a><span·class="lineno">···27</span><span·class="comment">·*···ARISING·FROM,·OUT·OF·OR·IN·CONNECTION·WITH·THE·SOFTWARE·OR·THE·USE·OR</span></div> |
81 | <div·class="line"><a·id="l00028"·name="l00028"></a><span·class="lineno">···28</span>·*···OTHER·DEALINGS·IN·THE·SOFTWARE.</div> | 81 | <div·class="line"><a·id="l00028"·name="l00028"></a><span·class="lineno">···28</span><span·class="comment">·*···OTHER·DEALINGS·IN·THE·SOFTWARE.</span></div> |
82 | <div·class="line"><a·id="l00029"·name="l00029"></a><span·class="lineno">···29</span>·***************************************************************************/</div> | 82 | <div·class="line"><a·id="l00029"·name="l00029"></a><span·class="lineno">···29</span><span·class="comment">·***************************************************************************/</span></div> |
83 | <div·class="line"><a·id="l00030"·name="l00030"></a><span·class="lineno">···30</span>·</div> | 83 | <div·class="line"><a·id="l00030"·name="l00030"></a><span·class="lineno">···30</span><span·class="preprocessor">#ifndef·_SILLYImageLoader_h_·</span></div> |
84 | <div·class="line"><a·id="l00031"·name="l00031"></a><span·class="lineno">···31</span><span·class="preprocessor">#define·_SILLYImageLoader_h_</span></div> | ||
85 | <div·class="line"><a·id="l00032"·name="l00032"></a><span·class="lineno">···32</span><span·class="preprocessor">#include·"SILLYBase.h"</span></div> | ||
84 | <div·class="line"><a·id="l0003 | 86 | <div·class="line"><a·id="l00033"·name="l00033"></a><span·class="lineno">···33</span><span·class="comment">//·Start·of·section·namespace·SILLY·</span></div> |
85 | <div·class="line"><a·id="l0003 | 87 | <div·class="line"><a·id="l00034"·name="l00034"></a><span·class="lineno">···34</span><span·class="keyword">namespace·</span><a·class="code·hl_namespace"·href="a00129.html">SILLY</a></div> |
86 | <div·class="line"><a·id="l0003 | 88 | <div·class="line"><a·id="l00035"·name="l00035"></a><span·class="lineno">···35</span>{</div> |
87 | <div·class="line"><a·id="l00034"·name="l00034"></a><span·class="lineno">···34</span>····</div> | ||
88 | <div·class="line"><a·id="l0003 | 89 | <div·class="line"><a·id="l00036"·name="l00036"></a><span·class="lineno">···36</span><span·class="keyword">class·</span>DataSource;···············<span·class="comment">//·Forward·declaration</span></div> |
90 | <div·class="line"><a·id="l00037"·name="l00037"></a><span·class="lineno">···37</span><span·class="keyword">class·</span>ImageContext;·············<span·class="comment">//·Forward·declaration</span></div> | ||
89 | <div·class="line"><a·id="l0003 | 91 | <div·class="line"><a·id="l00038"·name="l00038"></a><span·class="lineno">···38</span>·</div> |
92 | <div·class="foldopen"·id="foldopen00046"·data-start="{"·data-end="};"> | ||
93 | <div·class="line"><a·id="l00046"·name="l00046"></a><span·class="lineno"><a·class="line"·href="a00985.html">···46</a></span><span·class="keyword">class·</span>SILLY_EXPORT·<a·class="code·hl_class"·href="a00985.html">ImageLoader</a></div> | ||
94 | <div·class="line"><a·id="l00047"·name="l00047"></a><span·class="lineno">···47</span>{</div> | ||
95 | <div·class="line"><a·id="l00048"·name="l00048"></a><span·class="lineno">···48</span><span·class="keyword">protected</span>:</div> | ||
96 | <div·class="line"><a·id="l00052"·name="l00052"></a><span·class="lineno"><a·class="line"·href="a00985.html#a103c77f27d983ad297f1fa541bcef8fe">···52</a></span>·····<a·class="code·hl_function"·href="a00985.html#a103c77f27d983ad297f1fa541bcef8fe">ImageLoader</a>(<span·class="keyword">const</span>·<span·class="keywordtype">char</span>*·name);</div> | ||
97 | <div·class="line"><a·id="l00053"·name="l00053"></a><span·class="lineno">···53</span><span·class="keyword">public</span>:</div> | ||
98 | <div·class="line"><a·id="l00054"·name="l00054"></a><span·class="lineno">···54</span>········</div> | ||
99 | <div·class="line"><a·id="l00059"·name="l00059"></a><span·class="lineno"><a·class="line"·href="a00985.html#a7fa93425521bc84e08de22630df940c6">···59</a></span>····<span·class="keyword">virtual</span>·<a·class="code·hl_function"·href="a00985.html#a7fa93425521bc84e08de22630df940c6">~ImageLoader</a>();</div> | ||
100 | <div·class="line"><a·id="l00060"·name="l00060"></a><span·class="lineno">···60</span>·</div> | ||
101 | <div·class="line"><a·id="l00071"·name="l00071"></a><span·class="lineno"><a·class="line"·href="a00985.html#a4a6a3a51641cbbb3184ab00d9de6f753">···71</a></span>····<span·class="keyword">virtual</span>·<a·class="code·hl_class"·href="a00981.html">ImageContext</a>*·<a·class="code·hl_function"·href="a00985.html#a4a6a3a51641cbbb3184ab00d9de6f753">loadHeader</a>(<a·class="code·hl_enumeration"·href="a00129.html#a60883d4958a60b91661e97027a85072a">PixelFormat</a>&·formatSource,·<a·class="code·hl_class"·href="a00969.html">DataSource</a>*·data)·=·0;</div> | ||
102 | <div·class="line"><a·id="l00072"·name="l00072"></a><span·class="lineno">···72</span>·</div> | ||
103 | <div·class="line"><a·id="l00073"·name="l00073"></a><span·class="lineno">···73</span>·</div> | ||
104 | <div·class="line"><a·id="l00086"·name="l00086"></a><span·class="lineno"><a·class="line"·href="a00985.html#a7622e69834f644d7cf1201c1cabd80c6">···86</a></span>····<span·class="keyword">virtual</span>·<span·class="keywordtype">bool</span>·<a·class="code·hl_function"·href="a00985.html#a7622e69834f644d7cf1201c1cabd80c6">loadImageData</a>(<a·class="code·hl_enumeration"·href="a00129.html#aebdd89f22790687ac264c1abd9f7fd38">PixelOrigin</a>·origin,·<a·class="code·hl_class"·href="a00969.html">DataSource</a>*·data,·<a·class="code·hl_class"·href="a00981.html">ImageContext</a>*·context)·=·0;</div> | ||
105 | <div·class="line"><a·id="l00087"·name="l00087"></a><span·class="lineno">···87</span>····</div> | ||
106 | <div·class="line"><a·id="l00094"·name="l00094"></a><span·class="lineno">···94</span>····<span·class="keywordtype">void</span>·destroyContext(<a·class="code·hl_class"·href="a00981.html">ImageContext</a>*·context);</div> | ||
107 | <div·class="line"><a·id="l00095"·name="l00095"></a><span·class="lineno">···95</span>····</div> | ||
108 | <div·class="line"><a·id="l00100"·name="l00100"></a><span·class="lineno"><a·class="line"·href="a00985.html#ad1523f6b5a9c558e7eb354f6ec47e845">··100</a></span>····<span·class="keyword">const</span>·<span·class="keywordtype">char</span>*·<a·class="code·hl_function"·href="a00985.html#ad1523f6b5a9c558e7eb354f6ec47e845">getIdentifierString</a>()·<span·class="keyword">const</span>;</div> | ||
109 | <div·class="line"><a·id="l00101"·name="l00101"></a><span·class="lineno">··101</span><span·class="keyword">private</span>:</div> | ||
110 | <div·class="line"><a·id="l00102"·name="l00102"></a><span·class="lineno">··102</span>····<span·class="keyword">const</span>·<span·class="keywordtype">char</span>*·d_name;·</div> | ||
111 | <div·class="line"><a·id="l00103"·name="l00103"></a><span·class="lineno">··103</span>·</div> | ||
112 | <div·class="line"><a·id="l00104"·name="l00104"></a><span·class="lineno">··104</span>};</div> | ||
113 | </div> | ||
114 | <div·class="line"><a·id="l00105"·name="l00105"></a><span·class="lineno">··105</span>··</div> | ||
115 | <div·class="line"><a·id="l00106"·name="l00106"></a><span·class="lineno">··106</span>}·<span·class="comment">//·End·of·section·namespace·SILLY·</span></div> | ||
116 | <div·class="line"><a·id="l00107"·name="l00107"></a><span·class="lineno">··107</span>·</div> | ||
117 | <div·class="line"><a·id="l00108"·name="l00108"></a><span·class="lineno">··108</span><span·class="comment">//·Inclue·inline·function·when·needed·</span></div> | ||
118 | <div·class="line"><a·id="l00109"·name="l00109"></a><span·class="lineno">··109</span><span·class="preprocessor">#ifdef·SILLY_OPT_INLINE</span></div> | ||
119 | <div·class="line"><a·id="l00110"·name="l00110"></a><span·class="lineno">··110</span><span·class="preprocessor">#include·"SILLYImageLoader.icpp"</span></div> | ||
120 | <div·class="line"><a·id="l00111"·name="l00111"></a><span·class="lineno">··111</span><span·class="preprocessor">#endif·</span></div> | ||
121 | <div·class="line"><a·id="l00112"·name="l00112"></a><span·class="lineno">··112</span>·</div> | ||
122 | <div·class="line"><a·id="l00113"·name="l00113"></a><span·class="lineno">··113</span><span·class="preprocessor">#endif·</span><span·class="comment">//·end·of·guard·_SILLYImageLoader_h_</span></div> | ||
123 | <div·class="ttc"·id="aa00129_html"><div·class="ttname"><a·href="a00129.html">SILLY</a></div><div·class="ttdoc">Simple·Image·Loading·LibrarY·namespace.</div><div·class="ttdef"><b>Definition</b>·<a·href="a00023_source.html#l00045">SILLYJPGImageContext.cpp:46</a></div></div> | ||
124 | <div·class="ttc"·id="aa00129_html_a60883d4958a60b91661e97027a85072a"><div·class="ttname"><a·href="a00129.html#a60883d4958a60b91661e97027a85072a">SILLY::PixelFormat</a></div><div·class="ttdeci">PixelFormat</div><div·class="ttdoc">List·all·pixel·format·supported.</div><div·class="ttdef"><b>Definition</b>·<a·href="a00044_source.html#l00059">SILLYBase.h:60</a></div></div> | ||
125 | <div·class="ttc"·id="aa00129_html_aebdd89f22790687ac264c1abd9f7fd38"><div·class="ttname"><a·href="a00129.html#aebdd89f22790687ac264c1abd9f7fd38">SILLY::PixelOrigin</a></div><div·class="ttdeci">PixelOrigin</div><div·class="ttdoc">List·all·pixel·origin·supported.</div><div·class="ttdef"><b>Definition</b>·<a·href="a00044_source.html#l00070">SILLYBase.h:71</a></div></div> | ||
126 | <div·class="ttc"·id="aa00969_html"><div·class="ttname"><a·href="a00969.html">SILLY::DataSource</a></div><div·class="ttdoc">This·is·an·abstract·class·used·to·provide·data·to·the·loader.</div><div·class="ttdef"><b>Definition</b>·<a·href="a00083_source.html#l00046">SILLYDataSource.h:47</a></div></div> | ||
127 | <div·class="ttc"·id="aa00981_html"><div·class="ttname"><a·href="a00981.html">SILLY::ImageContext</a></div><div·class="ttdoc">Store·the·data·needed·by·an·ImageLoader·object·during·the·parsing·of·an·image.</div><div·class="ttdef"><b>Definition</b>·<a·href="a00074_source.html#l00043">SILLYImageContext.h:44</a></div></div> | ||
128 | <div·class="ttc"·id="aa00985_html"><div·class="ttname"><a·href="a00985.html">SILLY::ImageLoader</a></div><div·class="ttdoc">This·is·an·abstract·class·that·define·the·interface·of·all·image·loader.</div><div·class="ttdef"><b>Definition</b>·<a·href="a00071_source.html#l00046">SILLYImageLoader.h:47</a></div></div> | ||
129 | <div·class="ttc"·id="aa00985_html_a103c77f27d983ad297f1fa541bcef8fe"><div·class="ttname"><a·href="a00985.html#a103c77f27d983ad297f1fa541bcef8fe">SILLY::ImageLoader::ImageLoader</a></div><div·class="ttdeci">ImageLoader(const·char·*name)</div><div·class="ttdoc">Constructor.</div></div> | ||
130 | <div·class="ttc"·id="aa00985_html_a4a6a3a51641cbbb3184ab00d9de6f753"><div·class="ttname"><a·href="a00985.html#a4a6a3a51641cbbb3184ab00d9de6f753">SILLY::ImageLoader::loadHeader</a></div><div·class="ttdeci">virtual·ImageContext·*·loadHeader(PixelFormat·&formatSource,·DataSource·*data)=0</div><div·class="ttdoc">Parse·the·header·of·the·image·and·fill·the·header·struct.</div></div> | ||
131 | <div·class="ttc"·id="aa00985_html_a7622e69834f644d7cf1201c1cabd80c6"><div·class="ttname"><a·href="a00985.html#a7622e69834f644d7cf1201c1cabd80c6">SILLY::ImageLoader::loadImageData</a></div><div·class="ttdeci">virtual·bool·loadImageData(PixelOrigin·origin,·DataSource·*data,·ImageContext·*context)=0</div><div·class="ttdoc">Parse·the·pixels·data·of·the·image·and·fill·the·header·struct.</div></div> | ||
132 | <div·class="ttc"·id="aa00985_html_a7fa93425521bc84e08de22630df940c6"><div·class="ttname"><a·href="a00985.html#a7fa93425521bc84e08de22630df940c6">SILLY::ImageLoader::~ImageLoader</a></div><div·class="ttdeci">virtual·~ImageLoader()</div><div·class="ttdoc">Destructor.</div></div> | ||
133 | <div·class="ttc"·id="aa00985_html_ad1523f6b5a9c558e7eb354f6ec47e845"><div·class="ttname"><a·href="a00985.html#ad1523f6b5a9c558e7eb354f6ec47e845">SILLY::ImageLoader::getIdentifierString</a></div><div·class="ttdeci">const·char·*·getIdentifierString()·const</div><div·class="ttdoc">Return·the·name·of·the·loader.</div></div> | ||
90 | </div><!--·fragment·--></div><!--·contents·--> | 134 | </div><!--·fragment·--></div><!--·contents·--> |
91 | <!--·start·footer·part·--> | 135 | <!--·start·footer·part·--> |
92 | <hr·class="footer"/><address·class="footer"><small> | 136 | <hr·class="footer"/><address·class="footer"><small> |
93 | Generated·by <a·href="https://www.doxygen.org/index.html"><img·class="footer"·src="doxygen.svg"·width="104"·height="31"·alt="doxygen"/></a>·1.9.8 | 137 | Generated·by <a·href="https://www.doxygen.org/index.html"><img·class="footer"·src="doxygen.svg"·width="104"·height="31"·alt="doxygen"/></a>·1.9.8 |
94 | </small></address> | 138 | </small></address> |
95 | </body> | 139 | </body> |
96 | </html> | 140 | </html> |
Offset 1, 20 lines modified | Offset 1, 19 lines modified | ||
1 | Simple·Image·Loading·LibrarY 0.1.0 | 1 | Simple·Image·Loading·LibrarY 0.1.0 |
2 | ····*·_\x8b_\x8u_\x8i_\x8l_\x8d | 2 | ····*·_\x8b_\x8u_\x8i_\x8l_\x8d |
3 | ····*·_\x8r_\x8e_\x8p_\x8r_\x8o_\x8d_\x8u_\x8c_\x8i_\x8b_\x8l_\x8e_\x8-_\x8p_\x8a_\x8t_\x8h | 3 | ····*·_\x8r_\x8e_\x8p_\x8r_\x8o_\x8d_\x8u_\x8c_\x8i_\x8b_\x8l_\x8e_\x8-_\x8p_\x8a_\x8t_\x8h |
4 | ····*·_\x8s_\x8i_\x8l_\x8l_\x8y_\x8-_\x80_\x8._\x81_\x8._\x80 | 4 | ····*·_\x8s_\x8i_\x8l_\x8l_\x8y_\x8-_\x80_\x8._\x81_\x8._\x80 |
5 | ····*·_\x8i_\x8n_\x8c_\x8l_\x8u_\x8d_\x8e | 5 | ····*·_\x8i_\x8n_\x8c_\x8l_\x8u_\x8d_\x8e |
6 | ····*·_\x8l_\x8o_\x8a_\x8d_\x8e_\x8r_\x8s | ||
7 | SILLY | 6 | SILLYImageLoader.h |
8 | 1/*********************************************************************** | 7 | 1/*********************************************************************** |
9 | 2·filename:·SILLY | 8 | 2·filename:·SILLYImageLoader.h |
10 | 3·created:·1 | 9 | 3·created:·10·Jun·2006 |
11 | 4·author:·Olivier·Delannoy | 10 | 4·author:·Olivier·Delannoy |
12 | 5 | 11 | 5 |
13 | 6·purpose:· | 12 | 6·purpose:·Abstract·class·for·all·image·loader |
14 | 7*************************************************************************/ | 13 | 7*************************************************************************/ |
15 | 8/*************************************************************************** | 14 | 8/*************************************************************************** |
16 | 9·*·Copyright·(C)·2004·-·2006·Paul·D·Turner·&·The·CEGUI·Development·Team | 15 | 9·*·Copyright·(C)·2004·-·2006·Paul·D·Turner·&·The·CEGUI·Development·Team |
17 | 10·* | 16 | 10·* |
18 | 11·*·Permission·is·hereby·granted,·free·of·charge,·to·any·person·obtaining | 17 | 11·*·Permission·is·hereby·granted,·free·of·charge,·to·any·person·obtaining |
19 | 12·*·a·copy·of·this·software·and·associated·documentation·files·(the | 18 | 12·*·a·copy·of·this·software·and·associated·documentation·files·(the |
20 | 13·*·"Software"),·to·deal·in·the·Software·without·restriction,·including | 19 | 13·*·"Software"),·to·deal·in·the·Software·without·restriction,·including |
Offset 30, 16 lines modified | Offset 29, 86 lines modified | ||
30 | 23·*·EXPRESS·OR·IMPLIED,·INCLUDING·BUT·NOT·LIMITED·TO·THE·WARRANTIES·OF | 29 | 23·*·EXPRESS·OR·IMPLIED,·INCLUDING·BUT·NOT·LIMITED·TO·THE·WARRANTIES·OF |
31 | 24·*·MERCHANTABILITY,·FITNESS·FOR·A·PARTICULAR·PURPOSE·AND·NONINFRINGEMENT. | 30 | 24·*·MERCHANTABILITY,·FITNESS·FOR·A·PARTICULAR·PURPOSE·AND·NONINFRINGEMENT. |
32 | 25·*·IN·NO·EVENT·SHALL·THE·AUTHORS·BE·LIABLE·FOR·ANY·CLAIM,·DAMAGES·OR | 31 | 25·*·IN·NO·EVENT·SHALL·THE·AUTHORS·BE·LIABLE·FOR·ANY·CLAIM,·DAMAGES·OR |
33 | 26·*·OTHER·LIABILITY,·WHETHER·IN·AN·ACTION·OF·CONTRACT,·TORT·OR·OTHERWISE, | 32 | 26·*·OTHER·LIABILITY,·WHETHER·IN·AN·ACTION·OF·CONTRACT,·TORT·OR·OTHERWISE, |
34 | 27·*·ARISING·FROM,·OUT·OF·OR·IN·CONNECTION·WITH·THE·SOFTWARE·OR·THE·USE·OR | 33 | 27·*·ARISING·FROM,·OUT·OF·OR·IN·CONNECTION·WITH·THE·SOFTWARE·OR·THE·USE·OR |
35 | 28·*·OTHER·DEALINGS·IN·THE·SOFTWARE. | 34 | 28·*·OTHER·DEALINGS·IN·THE·SOFTWARE. |
36 | 29·***************************************************************************/ | 35 | 29·***************************************************************************/ |
37 | 30 | 36 | 30#ifndef·_SILLYImageLoader_h_ |
37 | 31#define·_SILLYImageLoader_h_ | ||
38 | 32#include·"SILLYBase.h" | ||
38 | 3 | 39 | 33//·Start·of·section·namespace·SILLY |
39 | 32namespace·SILLY | ||
40 | 33{ | ||
41 | 34 | 40 | 34namespace·_.S_.I_.L_.L_.Y |
41 | 35{ | ||
42 | 36class·DataSource;·//·Forward·declaration | ||
43 | 37class·ImageContext;·//·Forward·declaration | ||
44 | 38 | ||
45 | _\x84_\x86class·SILLY_EXPORT·_\x8I_\x8m_\x8a_\x8g_\x8e_\x8L_\x8o_\x8a_\x8d_\x8e_\x8r | ||
46 | 47{ | ||
47 | 48protected: | ||
48 | _\x85_\x82·_\x8I_\x8m_\x8a_\x8g_\x8e_\x8L_\x8o_\x8a_\x8d_\x8e_\x8r(const·char*·name); | ||
49 | 53public: | ||
50 | 54 | ||
51 | _\x85_\x89·virtual·_\x8~_\x8I_\x8m_\x8a_\x8g_\x8e_\x8L_\x8o_\x8a_\x8d_\x8e_\x8r(); | ||
52 | 60 | ||
53 | _\x87_\x81·virtual·_\x8I_\x8m_\x8a_\x8g_\x8e_\x8C_\x8o_\x8n_\x8t_\x8e_\x8x_\x8t*·_\x8l_\x8o_\x8a_\x8d_\x8H_\x8e_\x8a_\x8d_\x8e_\x8r(_\x8P_\x8i_\x8x_\x8e_\x8l_\x8F_\x8o_\x8r_\x8m_\x8a_\x8t&·formatSource,·_\x8D_\x8a_\x8t_\x8a_\x8S_\x8o_\x8u_\x8r_\x8c_\x8e* | ||
54 | data)·=·0; | ||
55 | 72 | ||
56 | 73 | ||
57 | _\x88_\x86·virtual·bool·_\x8l_\x8o_\x8a_\x8d_\x8I_\x8m_\x8a_\x8g_\x8e_\x8D_\x8a_\x8t_\x8a(_\x8P_\x8i_\x8x_\x8e_\x8l_\x8O_\x8r_\x8i_\x8g_\x8i_\x8n·origin,·_\x8D_\x8a_\x8t_\x8a_\x8S_\x8o_\x8u_\x8r_\x8c_\x8e*·data, | ||
58 | _\x8I_\x8m_\x8a_\x8g_\x8e_\x8C_\x8o_\x8n_\x8t_\x8e_\x8x_\x8t*·context)·=·0; | ||
59 | 87 | ||
60 | 94·void·destroyContext(_\x8I_\x8m_\x8a_\x8g_\x8e_\x8C_\x8o_\x8n_\x8t_\x8e_\x8x_\x8t*·context); | ||
61 | 95 | ||
62 | _\x81_\x80_\x80·const·char*·_\x8g_\x8e_\x8t_\x8I_\x8d_\x8e_\x8n_\x8t_\x8i_\x8f_\x8i_\x8e_\x8r_\x8S_\x8t_\x8r_\x8i_\x8n_\x8g()·const; | ||
63 | 101private: | ||
64 | 102·const·char*·d_name; | ||
65 | 103 | ||
66 | 104}; | ||
67 | 105 | ||
42 | 68 | 106}·//·End·of·section·namespace·SILLY | |
43 | 69 | 107 | |
70 | 108//·Inclue·inline·function·when·needed | ||
71 | 109#ifdef·SILLY_OPT_INLINE | ||
72 | 110#include·"SILLYImageLoader.icpp" | ||
73 | 111#endif | ||
74 | 112 | ||
75 | 113#endif·//·end·of·guard·_SILLYImageLoader_h_ | ||
76 | _\x8S_\x8I_\x8L_\x8L_\x8Y | ||
77 | Simple·Image·Loading·LibrarY·namespace. | ||
78 | D\x8De\x8ef\x8fi\x8in\x8ni\x8it\x8ti\x8io\x8on\x8n·_\x8S_\x8I_\x8L_\x8L_\x8Y_\x8J_\x8P_\x8G_\x8I_\x8m_\x8a_\x8g_\x8e_\x8C_\x8o_\x8n_\x8t_\x8e_\x8x_\x8t_\x8._\x8c_\x8p_\x8p_\x8:_\x84_\x86 | ||
79 | _\x8S_\x8I_\x8L_\x8L_\x8Y_\x8:_\x8:_\x8P_\x8i_\x8x_\x8e_\x8l_\x8F_\x8o_\x8r_\x8m_\x8a_\x8t | ||
80 | PixelFormat | ||
81 | List·all·pixel·format·supported. | ||
82 | D\x8De\x8ef\x8fi\x8in\x8ni\x8it\x8ti\x8io\x8on\x8n·_\x8S_\x8I_\x8L_\x8L_\x8Y_\x8B_\x8a_\x8s_\x8e_\x8._\x8h_\x8:_\x86_\x80 | ||
83 | _\x8S_\x8I_\x8L_\x8L_\x8Y_\x8:_\x8:_\x8P_\x8i_\x8x_\x8e_\x8l_\x8O_\x8r_\x8i_\x8g_\x8i_\x8n | ||
84 | PixelOrigin | ||
85 | List·all·pixel·origin·supported. | ||
86 | D\x8De\x8ef\x8fi\x8in\x8ni\x8it\x8ti\x8io\x8on\x8n·_\x8S_\x8I_\x8L_\x8L_\x8Y_\x8B_\x8a_\x8s_\x8e_\x8._\x8h_\x8:_\x87_\x81 | ||
87 | _\x8S_\x8I_\x8L_\x8L_\x8Y_\x8:_\x8:_\x8D_\x8a_\x8t_\x8a_\x8S_\x8o_\x8u_\x8r_\x8c_\x8e | ||
88 | This·is·an·abstract·class·used·to·provide·data·to·the·loader. | ||
89 | D\x8De\x8ef\x8fi\x8in\x8ni\x8it\x8ti\x8io\x8on\x8n·_\x8S_\x8I_\x8L_\x8L_\x8Y_\x8D_\x8a_\x8t_\x8a_\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8._\x8h_\x8:_\x84_\x87 | ||
90 | _\x8S_\x8I_\x8L_\x8L_\x8Y_\x8:_\x8:_\x8I_\x8m_\x8a_\x8g_\x8e_\x8C_\x8o_\x8n_\x8t_\x8e_\x8x_\x8t | ||
91 | Store·the·data·needed·by·an·ImageLoader·object·during·the·parsing·of·an·image. | ||
92 | D\x8De\x8ef\x8fi\x8in\x8ni\x8it\x8ti\x8io\x8on\x8n·_\x8S_\x8I_\x8L_\x8L_\x8Y_\x8I_\x8m_\x8a_\x8g_\x8e_\x8C_\x8o_\x8n_\x8t_\x8e_\x8x_\x8t_\x8._\x8h_\x8:_\x84_\x84 | ||
93 | _\x8S_\x8I_\x8L_\x8L_\x8Y_\x8:_\x8:_\x8I_\x8m_\x8a_\x8g_\x8e_\x8L_\x8o_\x8a_\x8d_\x8e_\x8r | ||
94 | This·is·an·abstract·class·that·define·the·interface·of·all·image·loader. | ||
95 | D\x8De\x8ef\x8fi\x8in\x8ni\x8it\x8ti\x8io\x8on\x8n·_\x8S_\x8I_\x8L_\x8L_\x8Y_\x8I_\x8m_\x8a_\x8g_\x8e_\x8L_\x8o_\x8a_\x8d_\x8e_\x8r_\x8._\x8h_\x8:_\x84_\x87 | ||
96 | _\x8S_\x8I_\x8L_\x8L_\x8Y_\x8:_\x8:_\x8I_\x8m_\x8a_\x8g_\x8e_\x8L_\x8o_\x8a_\x8d_\x8e_\x8r_\x8:_\x8:_\x8I_\x8m_\x8a_\x8g_\x8e_\x8L_\x8o_\x8a_\x8d_\x8e_\x8r | ||
97 | ImageLoader(const·char·*name) | ||
98 | Constructor. | ||
99 | _\x8S_\x8I_\x8L_\x8L_\x8Y_\x8:_\x8:_\x8I_\x8m_\x8a_\x8g_\x8e_\x8L_\x8o_\x8a_\x8d_\x8e_\x8r_\x8:_\x8:_\x8l_\x8o_\x8a_\x8d_\x8H_\x8e_\x8a_\x8d_\x8e_\x8r | ||
100 | virtual·ImageContext·*·loadHeader(PixelFormat·&formatSource,·DataSource | ||
101 | *data)=0 | ||
102 | Parse·the·header·of·the·image·and·fill·the·header·struct. | ||
103 | _\x8S_\x8I_\x8L_\x8L_\x8Y_\x8:_\x8:_\x8I_\x8m_\x8a_\x8g_\x8e_\x8L_\x8o_\x8a_\x8d_\x8e_\x8r_\x8:_\x8:_\x8l_\x8o_\x8a_\x8d_\x8I_\x8m_\x8a_\x8g_\x8e_\x8D_\x8a_\x8t_\x8a | ||
104 | virtual·bool·loadImageData(PixelOrigin·origin,·DataSource·*data,·ImageContext | ||
105 | *context)=0 | ||
106 | Parse·the·pixels·data·of·the·image·and·fill·the·header·struct. | ||
107 | _\x8S_\x8I_\x8L_\x8L_\x8Y_\x8:_\x8:_\x8I_\x8m_\x8a_\x8g_\x8e_\x8L_\x8o_\x8a_\x8d_\x8e_\x8r_\x8:_\x8:_\x8~_\x8I_\x8m_\x8a_\x8g_\x8e_\x8L_\x8o_\x8a_\x8d_\x8e_\x8r | ||
108 | virtual·~ImageLoader() | ||
109 | Destructor. | ||
110 | _\x8S_\x8I_\x8L_\x8L_\x8Y_\x8:_\x8:_\x8I_\x8m_\x8a_\x8g_\x8e_\x8L_\x8o_\x8a_\x8d_\x8e_\x8r_\x8:_\x8:_\x8g_\x8e_\x8t_\x8I_\x8d_\x8e_\x8n_\x8t_\x8i_\x8f_\x8i_\x8e_\x8r_\x8S_\x8t_\x8r_\x8i_\x8n_\x8g | ||
111 | const·char·*·getIdentifierString()·const | ||
112 | Return·the·name·of·the·loader. | ||
44 | =============================================================================== | 113 | =============================================================================== |
45 | ·····Generated·by _\x8[_\x8d_\x8o_\x8x_\x8y_\x8g_\x8e_\x8n_\x8]·1.9.8 | 114 | ·····Generated·by _\x8[_\x8d_\x8o_\x8x_\x8y_\x8g_\x8e_\x8n_\x8]·1.9.8 |
Offset 1, 15 lines modified | Offset 1, 15 lines modified | ||
1 | <!DOCTYPE·html·PUBLIC·"-//W3C//DTD·XHTML·1.0·Transitional//EN"·"https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> | 1 | <!DOCTYPE·html·PUBLIC·"-//W3C//DTD·XHTML·1.0·Transitional//EN"·"https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> |
2 | <html·xmlns="http://www.w3.org/1999/xhtml"·lang="en-US"> | 2 | <html·xmlns="http://www.w3.org/1999/xhtml"·lang="en-US"> |
3 | <head> | 3 | <head> |
4 | <meta·http-equiv="Content-Type"·content="text/xhtml;charset=UTF-8"/> | 4 | <meta·http-equiv="Content-Type"·content="text/xhtml;charset=UTF-8"/> |
5 | <meta·http-equiv="X-UA-Compatible"·content="IE=11"/> | 5 | <meta·http-equiv="X-UA-Compatible"·content="IE=11"/> |
6 | <meta·name="generator"·content="Doxygen·1.9.8"/> | 6 | <meta·name="generator"·content="Doxygen·1.9.8"/> |
7 | <meta·name="viewport"·content="width=device-width,·initial-scale=1"/> | 7 | <meta·name="viewport"·content="width=device-width,·initial-scale=1"/> |
8 | <title>Simple·Image·Loading·LibrarY:·/build/reproducible-path/silly-0.1.0/include/ | 8 | <title>Simple·Image·Loading·LibrarY:·/build/reproducible-path/silly-0.1.0/include/SILLYImageContext.h·Source·File</title> |
9 | <link·href="tabs.css"·rel="stylesheet"·type="text/css"/> | 9 | <link·href="tabs.css"·rel="stylesheet"·type="text/css"/> |
10 | <script·type="text/javascript"·src="jquery.js"></script> | 10 | <script·type="text/javascript"·src="jquery.js"></script> |
11 | <script·type="text/javascript"·src="dynsections.js"></script> | 11 | <script·type="text/javascript"·src="dynsections.js"></script> |
12 | <link·href="doxygen.css"·rel="stylesheet"·type="text/css"·/> | 12 | <link·href="doxygen.css"·rel="stylesheet"·type="text/css"·/> |
13 | </head> | 13 | </head> |
14 | <body> | 14 | <body> |
15 | <div·id="top"><!--·do·not·remove·this·div,·it·is·closed·by·doxygen!·--> | 15 | <div·id="top"><!--·do·not·remove·this·div,·it·is·closed·by·doxygen!·--> |
Offset 40, 27 lines modified | Offset 40, 27 lines modified | ||
40 | <script·type="text/javascript"> | 40 | <script·type="text/javascript"> |
41 | /*·@license·magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt·MIT·*/ | 41 | /*·@license·magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt·MIT·*/ |
42 | $(document).ready(function()·{·init_codefold(0);·}); | 42 | $(document).ready(function()·{·init_codefold(0);·}); |
43 | /*·@license-end·*/ | 43 | /*·@license-end·*/ |
44 | </script> | 44 | </script> |
45 | <div·id="nav-path"·class="navpath"> | 45 | <div·id="nav-path"·class="navpath"> |
46 | ··<ul> | 46 | ··<ul> |
47 | <li·class="navelem"><a·class="el"·href="dir_4fef79e7177ba769987a8da36c892c5f.html">build</a></li><li·class="navelem"><a·class="el"·href="dir_9def6061848686aab7e6212bb499d615.html">reproducible-path</a></li><li·class="navelem"><a·class="el"·href="dir_74170d5b58cefb7cb5a86fc552b183a3.html">silly-0.1.0</a></li><li·class="navelem"><a·class="el"·href="dir_0d87e2e7ddaae8a2a8572c0afc59fe0d.html">include</a></li> | 47 | <li·class="navelem"><a·class="el"·href="dir_4fef79e7177ba769987a8da36c892c5f.html">build</a></li><li·class="navelem"><a·class="el"·href="dir_9def6061848686aab7e6212bb499d615.html">reproducible-path</a></li><li·class="navelem"><a·class="el"·href="dir_74170d5b58cefb7cb5a86fc552b183a3.html">silly-0.1.0</a></li><li·class="navelem"><a·class="el"·href="dir_0d87e2e7ddaae8a2a8572c0afc59fe0d.html">include</a></li>··</ul> |
48 | </div> | 48 | </div> |
49 | </div><!--·top·--> | 49 | </div><!--·top·--> |
50 | <div·class="header"> | 50 | <div·class="header"> |
51 | ··<div·class="headertitle"><div·class="title">SILLY | 51 | ··<div·class="headertitle"><div·class="title">SILLYImageContext.h</div></div> |
52 | </div><!--header--> | 52 | </div><!--header--> |
53 | <div·class="contents"> | 53 | <div·class="contents"> |
54 | <div·class="fragment"><div·class="line"><a·id="l00001"·name="l00001"></a><span·class="lineno">····1</span><span·class="comment">/***********************************************************************</span></div> | 54 | <div·class="fragment"><div·class="line"><a·id="l00001"·name="l00001"></a><span·class="lineno">····1</span><span·class="comment">/***********************************************************************</span></div> |
55 | <div·class="line"><a·id="l00002"·name="l00002"></a><span·class="lineno">····2</span><span·class="comment">····filename:···SILLY | 55 | <div·class="line"><a·id="l00002"·name="l00002"></a><span·class="lineno">····2</span><span·class="comment">····filename:···SILLYImageContext.h</span></div> |
56 | <div·class="line"><a·id="l00003"·name="l00003"></a><span·class="lineno">····3</span><span·class="comment">····created:····1 | 56 | <div·class="line"><a·id="l00003"·name="l00003"></a><span·class="lineno">····3</span><span·class="comment">····created:····10·Jun·2006</span></div> |
57 | <div·class="line"><a·id="l00004"·name="l00004"></a><span·class="lineno">····4</span><span·class="comment">····author:·····Olivier·Delannoy</span></div> | 57 | <div·class="line"><a·id="l00004"·name="l00004"></a><span·class="lineno">····4</span><span·class="comment">····author:·····Olivier·Delannoy</span></div> |
58 | <div·class="line"><a·id="l00005"·name="l00005"></a><span·class="lineno">····5</span><span·class="comment"></span>·</div> | 58 | <div·class="line"><a·id="l00005"·name="l00005"></a><span·class="lineno">····5</span><span·class="comment"></span>·</div> |
59 | <div·class="line"><a·id="l00006"·name="l00006"></a><span·class="lineno">····6</span><span·class="comment">····purpose:···· | 59 | <div·class="line"><a·id="l00006"·name="l00006"></a><span·class="lineno">····6</span><span·class="comment">····purpose:····ImageContext·is·an·abstract·class·used·to·hide·the·loader·specific·data·needed·during·the·parsing·of·an·image·</span></div> |
60 | <div·class="line"><a·id="l00007"·name="l00007"></a><span·class="lineno">····7</span><span·class="comment">*************************************************************************/</span></div> | 60 | <div·class="line"><a·id="l00007"·name="l00007"></a><span·class="lineno">····7</span><span·class="comment">*************************************************************************/</span></div> |
61 | <div·class="line"><a·id="l00008"·name="l00008"></a><span·class="lineno">····8</span><span·class="comment">/***************************************************************************</span></div> | 61 | <div·class="line"><a·id="l00008"·name="l00008"></a><span·class="lineno">····8</span><span·class="comment">/***************************************************************************</span></div> |
62 | <div·class="line"><a·id="l00009"·name="l00009"></a><span·class="lineno">····9</span><span·class="comment">·*···Copyright·(C)·2004·-·2006·Paul·D·Turner·&·The·CEGUI·Development·Team</span></div> | 62 | <div·class="line"><a·id="l00009"·name="l00009"></a><span·class="lineno">····9</span><span·class="comment">·*···Copyright·(C)·2004·-·2006·Paul·D·Turner·&·The·CEGUI·Development·Team</span></div> |
63 | <div·class="line"><a·id="l00010"·name="l00010"></a><span·class="lineno">···10</span><span·class="comment">·*</span></div> | 63 | <div·class="line"><a·id="l00010"·name="l00010"></a><span·class="lineno">···10</span><span·class="comment">·*</span></div> |
64 | <div·class="line"><a·id="l00011"·name="l00011"></a><span·class="lineno">···11</span><span·class="comment">·*···Permission·is·hereby·granted,·free·of·charge,·to·any·person·obtaining</span></div> | 64 | <div·class="line"><a·id="l00011"·name="l00011"></a><span·class="lineno">···11</span><span·class="comment">·*···Permission·is·hereby·granted,·free·of·charge,·to·any·person·obtaining</span></div> |
65 | <div·class="line"><a·id="l00012"·name="l00012"></a><span·class="lineno">···12</span><span·class="comment">·*···a·copy·of·this·software·and·associated·documentation·files·(the</span></div> | 65 | <div·class="line"><a·id="l00012"·name="l00012"></a><span·class="lineno">···12</span><span·class="comment">·*···a·copy·of·this·software·and·associated·documentation·files·(the</span></div> |
66 | <div·class="line"><a·id="l00013"·name="l00013"></a><span·class="lineno">···13</span><span·class="comment">·*···"Software"),·to·deal·in·the·Software·without·restriction,·including</span></div> | 66 | <div·class="line"><a·id="l00013"·name="l00013"></a><span·class="lineno">···13</span><span·class="comment">·*···"Software"),·to·deal·in·the·Software·without·restriction,·including</span></div> |
Offset 76, 62 lines modified | Offset 76, 74 lines modified | ||
76 | <div·class="line"><a·id="l00023"·name="l00023"></a><span·class="lineno">···23</span><span·class="comment">·*···EXPRESS·OR·IMPLIED,·INCLUDING·BUT·NOT·LIMITED·TO·THE·WARRANTIES·OF</span></div> | 76 | <div·class="line"><a·id="l00023"·name="l00023"></a><span·class="lineno">···23</span><span·class="comment">·*···EXPRESS·OR·IMPLIED,·INCLUDING·BUT·NOT·LIMITED·TO·THE·WARRANTIES·OF</span></div> |
77 | <div·class="line"><a·id="l00024"·name="l00024"></a><span·class="lineno">···24</span><span·class="comment">·*···MERCHANTABILITY,·FITNESS·FOR·A·PARTICULAR·PURPOSE·AND·NONINFRINGEMENT.</span></div> | 77 | <div·class="line"><a·id="l00024"·name="l00024"></a><span·class="lineno">···24</span><span·class="comment">·*···MERCHANTABILITY,·FITNESS·FOR·A·PARTICULAR·PURPOSE·AND·NONINFRINGEMENT.</span></div> |
78 | <div·class="line"><a·id="l00025"·name="l00025"></a><span·class="lineno">···25</span><span·class="comment">·*···IN·NO·EVENT·SHALL·THE·AUTHORS·BE·LIABLE·FOR·ANY·CLAIM,·DAMAGES·OR</span></div> | 78 | <div·class="line"><a·id="l00025"·name="l00025"></a><span·class="lineno">···25</span><span·class="comment">·*···IN·NO·EVENT·SHALL·THE·AUTHORS·BE·LIABLE·FOR·ANY·CLAIM,·DAMAGES·OR</span></div> |
79 | <div·class="line"><a·id="l00026"·name="l00026"></a><span·class="lineno">···26</span><span·class="comment">·*···OTHER·LIABILITY,·WHETHER·IN·AN·ACTION·OF·CONTRACT,·TORT·OR·OTHERWISE,</span></div> | 79 | <div·class="line"><a·id="l00026"·name="l00026"></a><span·class="lineno">···26</span><span·class="comment">·*···OTHER·LIABILITY,·WHETHER·IN·AN·ACTION·OF·CONTRACT,·TORT·OR·OTHERWISE,</span></div> |
80 | <div·class="line"><a·id="l00027"·name="l00027"></a><span·class="lineno">···27</span><span·class="comment">·*···ARISING·FROM,·OUT·OF·OR·IN·CONNECTION·WITH·THE·SOFTWARE·OR·THE·USE·OR</span></div> | 80 | <div·class="line"><a·id="l00027"·name="l00027"></a><span·class="lineno">···27</span><span·class="comment">·*···ARISING·FROM,·OUT·OF·OR·IN·CONNECTION·WITH·THE·SOFTWARE·OR·THE·USE·OR</span></div> |
81 | <div·class="line"><a·id="l00028"·name="l00028"></a><span·class="lineno">···28</span><span·class="comment">·*···OTHER·DEALINGS·IN·THE·SOFTWARE.</span></div> | 81 | <div·class="line"><a·id="l00028"·name="l00028"></a><span·class="lineno">···28</span><span·class="comment">·*···OTHER·DEALINGS·IN·THE·SOFTWARE.</span></div> |
82 | <div·class="line"><a·id="l00029"·name="l00029"></a><span·class="lineno">···29</span><span·class="comment">·***************************************************************************/</span></div> | 82 | <div·class="line"><a·id="l00029"·name="l00029"></a><span·class="lineno">···29</span><span·class="comment">·***************************************************************************/</span></div> |
83 | <div·class="line"><a·id="l00030"·name="l00030"></a><span·class="lineno">···30</span><span·class="preprocessor">#ifndef·_SILLY | 83 | <div·class="line"><a·id="l00030"·name="l00030"></a><span·class="lineno">···30</span><span·class="preprocessor">#ifndef·_SILLYImageContext_h_·</span></div> |
84 | <div·class="line"><a·id="l00031"·name="l00031"></a><span·class="lineno">···31</span><span·class="preprocessor">#define·_SILLY | 84 | <div·class="line"><a·id="l00031"·name="l00031"></a><span·class="lineno">···31</span><span·class="preprocessor">#define·_SILLYImageContext_h_</span></div> |
85 | <div·class="line"><a·id="l00032"·name="l00032"></a><span·class="lineno">···32</span><span·class="preprocessor">#include·"SILLYBase.h"</span>·</div> | 85 | <div·class="line"><a·id="l00032"·name="l00032"></a><span·class="lineno">···32</span><span·class="preprocessor">#include·"SILLYBase.h"</span>·</div> |
86 | <div·class="line"><a·id="l00033"·name="l00033"></a><span·class="lineno">···33</span>·</div> | ||
86 | <div·class="line"><a·id="l00033"·name="l00033"></a><span·class="lineno">···33</span><span·class="preprocessor">#include·"SILLYImageContext.h"</span>·</div> | ||
87 | <div·class="line"><a·id="l00034"·name="l00034"></a><span·class="lineno">···34</span><span·class="preprocessor">#include·"SILLYDataSource.h"</span>·</div> | ||
88 | <div·class="line"><a·id="l0003 | 87 | <div·class="line"><a·id="l00034"·name="l00034"></a><span·class="lineno">···34</span><span·class="comment">//·Start·of·section·namespace·SILLY·</span></div> |
89 | <div·class="line"><a·id="l00036"·name="l00036"></a><span·class="lineno">···36</span><span·class="preprocessor">#include·<setjmp.h></span></div> | ||
90 | <div·class="line"><a·id="l00037"·name="l00037"></a><span·class="lineno">···37</span><span·class="preprocessor">#include·<stdio.h></span></div> | ||
91 | <div·class="line"><a·id="l00038"·name="l00038"></a><span·class="lineno">···38</span><span·class="preprocessor">#include·<string.h></span></div> | ||
92 | <div·class="line"><a·id="l00039"·name="l00039"></a><span·class="lineno">···39</span><span·class="keyword">extern</span>·<span·class="stringliteral">"C"</span>·</div> | ||
93 | <div·class="line"><a·id="l00040"·name="l00040"></a><span·class="lineno">···40</span>{</div> | ||
94 | <div·class="line"><a·id="l00041"·name="l00041"></a><span·class="lineno">···41</span><span·class="preprocessor">#include·<jpeglib.h></span></div> | ||
95 | <div·class="line"><a·id="l00042"·name="l00042"></a><span·class="lineno">···42</span>}</div> | ||
96 | <div·class="line"><a·id="l000 | 88 | <div·class="line"><a·id="l00035"·name="l00035"></a><span·class="lineno">···35</span><span·class="keyword">namespace·</span><a·class="code·hl_namespace"·href="a00129.html">SILLY</a></div> |
89 | <div·class="line"><a·id="l00036"·name="l00036"></a><span·class="lineno">···36</span>{</div> | ||
90 | <div·class="line"><a·id="l00037"·name="l00037"></a><span·class="lineno">···37</span>·</div> | ||
91 | <div·class="foldopen"·id="foldopen00043"·data-start="{"·data-end="};"> | ||
92 | <div·class="line"><a·id="l00043"·name="l00043"></a><span·class="lineno"><a·class="line"·href="a00981.html">···43</a></span><span·class="keyword">class·</span>SILLY_EXPORT·<a·class="code·hl_class"·href="a00981.html">ImageContext</a></div> | ||
97 | <div·class="line"><a·id="l00044"·name="l00044"></a><span·class="lineno">···44</span>{</div> | 93 | <div·class="line"><a·id="l00044"·name="l00044"></a><span·class="lineno">···44</span>{</div> |
98 | <div·class="line"><a·id="l00045"·name="l00045"></a><span·class="lineno">···45</span>·</div> | ||
99 | <div·class="foldopen"·id="foldopen00056"·data-start="{"·data-end="};"> | ||
100 | <div·class="line"><a·id="l00056"·name="l00056"></a><span·class="lineno"><a·class="line"·href="a00945.html">···56</a></span><span·class="keyword">class·</span><a·class="code·hl_class"·href="a00945.html">JPGImageContext</a>·:·<span·class="keyword">public</span>·<a·class="code·hl_class"·href="a00981.html">ImageContext</a></div> | ||
101 | <div·class="line"><a·id="l00057"·name="l00057"></a><span·class="lineno">···57</span>{</div> | ||
102 | <div·class="line"><a·id="l000 | 94 | <div·class="line"><a·id="l00045"·name="l00045"></a><span·class="lineno">···45</span><span·class="keyword">public</span>:</div> |
95 | <div·class="line"><a·id="l00050"·name="l00050"></a><span·class="lineno"><a·class="line"·href="a00981.html#a792018d60b642b286f3bbb7d328214b0">···50</a></span>····<span·class="keyword">virtual</span>·<a·class="code·hl_function"·href="a00981.html#a792018d60b642b286f3bbb7d328214b0">~ImageContext</a>();</div> | ||
103 | <div·class="line"><a·id="l00059"·name="l00059"></a><span·class="lineno">···59</span>····<a·class="code·hl_class"·href="a00945.html">JPGImageContext</a>();</div> | ||
104 | <div·class="line"><a·id="l00060"·name="l00060"></a><span·class="lineno">···60</span>····<a·class="code·hl_class"·href="a00945.html">~JPGImageContext</a>();</div> | ||
105 | <div·class="line"><a·id="l000 | 96 | <div·class="line"><a·id="l00051"·name="l00051"></a><span·class="lineno">···51</span>····</div> |
106 | <div·class="line"><a·id="l000 | 97 | <div·class="line"><a·id="l00056"·name="l00056"></a><span·class="lineno"><a·class="line"·href="a00981.html#a16a47c38b10d37a0eff7abc7e17e7275">···56</a></span>····<span·class="keywordtype">void</span>·<a·class="code·hl_function"·href="a00981.html#a16a47c38b10d37a0eff7abc7e17e7275">setDe[·...·truncated·by·diffoscope;·len:·215,·SHA:·8341088c837ad0886713f30482e515a96489f8caa888d659f3eb354b3d9226e9·...·]);</div> |
98 | <div·class="line"><a·id="l00057"·name="l00057"></a><span·class="lineno">···57</span>····</div> | ||
99 | <div·class="line"><a·id="l00062"·name="l00062"></a><span·class="lineno"><a·class="line"·href="a00981.html#a0a14b41eedffcc328575628da1a6cd35">···62</a></span>····<span·class="keywordtype">void</span>·<a·class="code·hl_function"·href="a00981.html#a0a14b41eedffcc328575628da1a6cd35">setNextPixel</a>(<span·class="keywordtype">byte</span>·red,·<span·class="keywordtype">byte</span>·green,·<span·class="keywordtype">byte</span>·bleu,·<span·class="keywordtype">byte</span>·alpha);</div> | ||
107 | <div·class="line"><a·id="l00063"·name="l00063"></a><span·class="lineno">···63</span>· | 100 | <div·class="line"><a·id="l00063"·name="l00063"></a><span·class="lineno">···63</span>·</div> |
108 | <div·class="line"><a·id="l00064"·name="l00064"></a><span·class="lineno">···64</span>····</div> | ||
109 | <div·class="line"><a·id="l00065"·name="l00065"></a><span·class="lineno">···65</span>····jpeg_source_mgr·src_mgr;</div> | ||
110 | <div·class="line"><a·id="l0006 | 101 | <div·class="line"><a·id="l00064"·name="l00064"></a><span·class="lineno">···64</span>····<span·class="keywordtype">size_t</span>·getWidth()·<span·class="keyword">const</span>;</div> |
102 | <div·class="line"><a·id="l00065"·name="l00065"></a><span·class="lineno">···65</span>····<span·class="keywordtype">size_t</span>·getHeight()·<span·class="keyword">const</span>;</div> | ||
103 | <div·class="line"><a·id="l00066"·name="l00066"></a><span·class="lineno">···66</span>····<a·class="code·hl_enumeration"·href="a00129.html#a60883d4958a60b91661e97027a85072a">PixelFormat</a>·getPixelFormat()·<span·class="keyword">const</span>;</div> | ||
111 | <div·class="line"><a·id="l00067"·name="l00067"></a><span·class="lineno">···67</span>····</div> | 104 | <div·class="line"><a·id="l00067"·name="l00067"></a><span·class="lineno">···67</span>····</div> |
105 | <div·class="line"><a·id="l00074"·name="l00074"></a><span·class="lineno">···74</span>····<span·class="keywordtype">bool</span>··flipVertically();</div> | ||
106 | <div·class="line"><a·id="l00075"·name="l00075"></a><span·class="lineno">···75</span>·<span·class="keyword">protected</span>:</div> | ||
107 | <div·class="line"><a·id="l00076"·name="l00076"></a><span·class="lineno">···76</span>····<span·class="keywordtype">void</span>·setWidth(<span·class="keywordtype">size_t</span>·width);</div> | ||
112 | <div·class="line"><a·id="l000 | 108 | <div·class="line"><a·id="l00077"·name="l00077"></a><span·class="lineno">···77</span>····</div> |
109 | <div·class="line"><a·id="l00078"·name="l00078"></a><span·class="lineno">···78</span>····<span·class="keywordtype">void</span>·setHeight(<span·class="keywordtype">size_t</span>·height);</div> | ||
113 | <div·class="line"><a·id="l000 | 110 | <div·class="line"><a·id="l00079"·name="l00079"></a><span·class="lineno">···79</span>······</div> |
111 | <div·class="line"><a·id="l00088"·name="l00088"></a><span·class="lineno"><a·class="line"·href="a00981.html#a65eda98c8a4f75b1d92a9edc8db86313">···88</a></span>····<a·class="code·hl_function"·href="a00981.html#a65eda98c8a4f75b1d92a9edc8db86313">ImageContext</a>(<span·class="keywordtype">size_t</span>·width,·<span·class="keywordtype">size_t</span>·height);</div> | ||
112 | <div·class="line"><a·id="l00089"·name="l00089"></a><span·class="lineno">···89</span>·</div> | ||
113 | <div·class="line"><a·id="l00090"·name="l00090"></a><span·class="lineno">···90</span><span·class="keyword">private</span>:····</div> | ||
114 | <div·class="line"><a·id="l000 | 114 | <div·class="line"><a·id="l00091"·name="l00091"></a><span·class="lineno">···91</span>····<span·class="keywordtype">byte</span>*·d_pixels;</div> |
115 | <div·class="line"><a·id="l00092"·name="l00092"></a><span·class="lineno">···92</span>····<span·class="keywordtype">size_t</span>·d_length;</div> | ||
116 | <div·class="line"><a·id="l00093"·name="l00093"></a><span·class="lineno">···93</span>····<span·class="keywordtype">size_t</span>·d_width;</div> | ||
117 | <div·class="line"><a·id="l00094"·name="l00094"></a><span·class="lineno">···94</span>····<span·class="keywordtype">size_t</span>·d_height;</div> | ||
118 | <div·class="line"><a·id="l00095"·name="l00095"></a><span·class="lineno">···95</span>····<span·class="keywordtype">size_t</span>·d_currentOffset;</div> | ||
119 | <div·class="line"><a·id="l00096"·name="l00096"></a><span·class="lineno">···96</span>····<a·class="code·hl_enumeration"·href="a00129.html#a60883d4958a60b91661e97027a85072a">PixelFormat</a>·d_format;</div> | ||
120 | <div·class="line"><a·id="l00097"·name="l00097"></a><span·class="lineno">···97</span>·</div> | ||
121 | <div·class="line"><a·id="l00098"·name="l00098"></a><span·class="lineno">···98</span>····<span·class="comment">//·Disabled·operation</span></div> | ||
122 | <div·class="line"><a·id="l00099"·name="l00099"></a><span·class="lineno">···99</span>····<a·class="code·hl_class"·href="a00981.html">ImageContext</a>(<a·class="code·hl_class"·href="a00981.html">ImageContext</a>&);</div> | ||
123 | <div·class="line"><a·id="l00100"·name="l00100"></a><span·class="lineno">··100</span>····<a·class="code·hl_class"·href="a00981.html">ImageContext</a>&·operator=(<a·class="code·hl_class"·href="a00981.html">ImageContext</a>&);</div> | ||
115 | <div·class="line"><a·id="l00 | 124 | <div·class="line"><a·id="l00101"·name="l00101"></a><span·class="lineno">··101</span>};</div> |
116 | </div> | 125 | </div> |
117 | <div·class="line"><a·id="l00 | 126 | <div·class="line"><a·id="l00102"·name="l00102"></a><span·class="lineno">··102</span>··</div> |
118 | <div·class="line"><a·id="l00 | 127 | <div·class="line"><a·id="l00103"·name="l00103"></a><span·class="lineno">··103</span>··</div> |
119 | <div·class="line"><a·id="l00 | 128 | <div·class="line"><a·id="l00104"·name="l00104"></a><span·class="lineno">··104</span>}·<span·class="comment">//·End·of·section·namespace·SILLY·</span></div> |
120 | <div·class="line"><a·id="l00 | 129 | <div·class="line"><a·id="l00105"·name="l00105"></a><span·class="lineno">··105</span>·</div> |
121 | <div·class="line"><a·id="l00 | 130 | <div·class="line"><a·id="l00106"·name="l00106"></a><span·class="lineno">··106</span><span·class="comment">//·Inclue·inline·function·when·needed·</span></div> |
122 | <div·class="line"><a·id="l00 | 131 | <div·class="line"><a·id="l00107"·name="l00107"></a><span·class="lineno">··107</span><span·class="preprocessor">#ifdef·SILLY_OPT_INLINE</span></div> |
123 | <div·class="line"><a·id="l00 | 132 | <div·class="line"><a·id="l00108"·name="l00108"></a><span·class="lineno">··108</span><span·class="preprocessor">#include·"SILLYImageContext.icpp"</span></div> |
124 | <div·class="line"><a·id="l00 | 133 | <div·class="line"><a·id="l00109"·name="l00109"></a><span·class="lineno">··109</span><span·class="preprocessor">#endif·</span></div> |
125 | <div·class="line"><a·id="l00 | 134 | <div·class="line"><a·id="l00110"·name="l00110"></a><span·class="lineno">··110</span>·</div> |
126 | <div·class="line"><a·id="l00 | 135 | <div·class="line"><a·id="l00111"·name="l00111"></a><span·class="lineno">··111</span><span·class="preprocessor">#endif·</span><span·class="comment">//·end·of·guard·_SILLYImageContext_h_</span></div> |
127 | <div·class="ttc"·id="aa00129_html"><div·class="ttname"><a·href="a00129.html">SILLY</a></div><div·class="ttdoc">Simple·Image·Loading·LibrarY·namespace.</div><div·class="ttdef"><b>Definition</b>·<a·href="a0002 | 136 | <div·class="ttc"·id="aa00129_html"><div·class="ttname"><a·href="a00129.html">SILLY</a></div><div·class="ttdoc">Simple·Image·Loading·LibrarY·namespace.</div><div·class="ttdef"><b>Definition</b>·<a·href="a00023_source.html#l00045">SILLYJPGImageContext.cpp:46</a></div></div> |
137 | <div·class="ttc"·id="aa00129_html_a60883d4958a60b91661e97027a85072a"><div·class="ttname"><a·href="a00129.html#a60883d4958a60b91661e97027a85072a">SILLY::PixelFormat</a></div><div·class="ttdeci">PixelFormat</div><div·class="ttdoc">List·all·pixel·format·supported.</div><div·class="ttdef"><b>Definition</b>·<a·href="a00044_source.html#l00059">SILLYBase.h:60</a></div></div> | ||
128 | <div·class="ttc"·id="aa00945_html"><div·class="ttname"><a·href="a00945.html">SILLY::JPGImageContext</a></div><div·class="ttdoc">Image·Context·for·JPG·image·loader.</div><div·class="ttdef"><b>Definition</b>·<a·href="a00074_source.html#l00056">SILLYJPGImageContext.h:57</a></div></div> | ||
129 | <div·class="ttc"·id="aa00969_html"><div·class="ttname"><a·href="a00969.html">SILLY::DataSource</a></div><div·class="ttdoc">This·is·an·abstract·class·used·to·provide·data·to·the·loader.</div><div·class="ttdef"><b>Definition</b>·<a·href="a00101_source.html#l00046">SILLYDataSource.h:47</a></div></div> | ||
130 | <div·class="ttc"·id="aa00981_html"><div·class="ttname"><a·href="a00981.html">SILLY::ImageContext</a></div><div·class="ttdoc">Store·the·data·needed·by·an·ImageLoader·object·during·the·parsing·of·an·image.</div><div·class="ttdef"><b>Definition</b>·<a·href="a000 | 138 | <div·class="ttc"·id="aa00981_html"><div·class="ttname"><a·href="a00981.html">SILLY::ImageContext</a></div><div·class="ttdoc">Store·the·data·needed·by·an·ImageLoader·object·during·the·parsing·of·an·image.</div><div·class="ttdef"><b>Definition</b>·<a·href="a00074_source.html#l00043">SILLYImageContext.h:44</a></div></div> |
139 | <div·class="ttc"·id="aa00981_html_a0a14b41eedffcc328575628da1a6cd35"><div·class="ttname"><a·href="a00981.html#a0a14b41eedffcc328575628da1a6cd35">SILLY::ImageContext::setNextPixel</a></div><div·class="ttdeci">void·setNextPixel(byte·red,·byte·green,·byte·bleu,·byte·alpha)</div><div·class="ttdoc">Set·the·next·pixel·of·the·image.</div></div> | ||
Max diff block lines reached; 271/24396 bytes (1.11%) of diff not shown. |
Offset 1, 20 lines modified | Offset 1, 20 lines modified | ||
1 | Simple·Image·Loading·LibrarY 0.1.0 | 1 | Simple·Image·Loading·LibrarY 0.1.0 |
2 | ····*·_\x8b_\x8u_\x8i_\x8l_\x8d | 2 | ····*·_\x8b_\x8u_\x8i_\x8l_\x8d |
3 | ····*·_\x8r_\x8e_\x8p_\x8r_\x8o_\x8d_\x8u_\x8c_\x8i_\x8b_\x8l_\x8e_\x8-_\x8p_\x8a_\x8t_\x8h | 3 | ····*·_\x8r_\x8e_\x8p_\x8r_\x8o_\x8d_\x8u_\x8c_\x8i_\x8b_\x8l_\x8e_\x8-_\x8p_\x8a_\x8t_\x8h |
4 | ····*·_\x8s_\x8i_\x8l_\x8l_\x8y_\x8-_\x80_\x8._\x81_\x8._\x80 | 4 | ····*·_\x8s_\x8i_\x8l_\x8l_\x8y_\x8-_\x80_\x8._\x81_\x8._\x80 |
5 | ····*·_\x8i_\x8n_\x8c_\x8l_\x8u_\x8d_\x8e | 5 | ····*·_\x8i_\x8n_\x8c_\x8l_\x8u_\x8d_\x8e |
6 | ····*·_\x8l_\x8o_\x8a_\x8d_\x8e_\x8r_\x8s | ||
7 | SILLY | 6 | SILLYImageContext.h |
8 | 1/*********************************************************************** | 7 | 1/*********************************************************************** |
9 | 2·filename:·SILLY | 8 | 2·filename:·SILLYImageContext.h |
10 | 3·created:·1 | 9 | 3·created:·10·Jun·2006 |
11 | 4·author:·Olivier·Delannoy | 10 | 4·author:·Olivier·Delannoy |
12 | 5 | 11 | 5 |
13 | 6·purpose:· | 12 | 6·purpose:·ImageContext·is·an·abstract·class·used·to·hide·the·loader·specific |
13 | data·needed·during·the·parsing·of·an·image | ||
14 | 7*************************************************************************/ | 14 | 7*************************************************************************/ |
15 | 8/*************************************************************************** | 15 | 8/*************************************************************************** |
16 | 9·*·Copyright·(C)·2004·-·2006·Paul·D·Turner·&·The·CEGUI·Development·Team | 16 | 9·*·Copyright·(C)·2004·-·2006·Paul·D·Turner·&·The·CEGUI·Development·Team |
17 | 10·* | 17 | 10·* |
18 | 11·*·Permission·is·hereby·granted,·free·of·charge,·to·any·person·obtaining | 18 | 11·*·Permission·is·hereby·granted,·free·of·charge,·to·any·person·obtaining |
19 | 12·*·a·copy·of·this·software·and·associated·documentation·files·(the | 19 | 12·*·a·copy·of·this·software·and·associated·documentation·files·(the |
20 | 13·*·"Software"),·to·deal·in·the·Software·without·restriction,·including | 20 | 13·*·"Software"),·to·deal·in·the·Software·without·restriction,·including |
Offset 30, 63 lines modified | Offset 30, 82 lines modified | ||
30 | 23·*·EXPRESS·OR·IMPLIED,·INCLUDING·BUT·NOT·LIMITED·TO·THE·WARRANTIES·OF | 30 | 23·*·EXPRESS·OR·IMPLIED,·INCLUDING·BUT·NOT·LIMITED·TO·THE·WARRANTIES·OF |
31 | 24·*·MERCHANTABILITY,·FITNESS·FOR·A·PARTICULAR·PURPOSE·AND·NONINFRINGEMENT. | 31 | 24·*·MERCHANTABILITY,·FITNESS·FOR·A·PARTICULAR·PURPOSE·AND·NONINFRINGEMENT. |
32 | 25·*·IN·NO·EVENT·SHALL·THE·AUTHORS·BE·LIABLE·FOR·ANY·CLAIM,·DAMAGES·OR | 32 | 25·*·IN·NO·EVENT·SHALL·THE·AUTHORS·BE·LIABLE·FOR·ANY·CLAIM,·DAMAGES·OR |
33 | 26·*·OTHER·LIABILITY,·WHETHER·IN·AN·ACTION·OF·CONTRACT,·TORT·OR·OTHERWISE, | 33 | 26·*·OTHER·LIABILITY,·WHETHER·IN·AN·ACTION·OF·CONTRACT,·TORT·OR·OTHERWISE, |
34 | 27·*·ARISING·FROM,·OUT·OF·OR·IN·CONNECTION·WITH·THE·SOFTWARE·OR·THE·USE·OR | 34 | 27·*·ARISING·FROM,·OUT·OF·OR·IN·CONNECTION·WITH·THE·SOFTWARE·OR·THE·USE·OR |
35 | 28·*·OTHER·DEALINGS·IN·THE·SOFTWARE. | 35 | 28·*·OTHER·DEALINGS·IN·THE·SOFTWARE. |
36 | 29·***************************************************************************/ | 36 | 29·***************************************************************************/ |
37 | 30#ifndef·_SILLY | 37 | 30#ifndef·_SILLYImageContext_h_ |
38 | 31#define·_SILLY | 38 | 31#define·_SILLYImageContext_h_ |
39 | 32#include·"SILLYBase.h" | 39 | 32#include·"SILLYBase.h" |
40 | 33 | ||
40 | 33#include·"SILLYImageContext.h" | ||
41 | 34#include·"SILLYDataSource.h" | ||
42 | 3 | 41 | 34//·Start·of·section·namespace·SILLY |
43 | 36#include·<setjmp.h> | ||
44 | 37#include·<stdio.h> | ||
45 | 38#include·<string.h> | ||
46 | 39extern·"C" | ||
47 | 40{ | ||
48 | 41#include·<jpeglib.h> | ||
49 | 42} | ||
50 | 42 | 35namespace·_\x8S_\x8I_\x8L_\x8L_\x8Y | |
43 | 36{ | ||
44 | 37 | ||
45 | _\x84_\x83class·SILLY_EXPORT·_\x8I_\x8m_\x8a_\x8g_\x8e_\x8C_\x8o_\x8n_\x8t_\x8e_\x8x_\x8t | ||
51 | 44{ | 46 | 44{ |
52 | 45 | ||
53 | _\x85_\x86class·_\x8J_\x8P_\x8G_\x8I_\x8m_\x8a_\x8g_\x8e_\x8C_\x8o_\x8n_\x8t_\x8e_\x8x_\x8t·:·public·_\x8I_\x8m_\x8a_\x8g_\x8e_\x8C_\x8o_\x8n_\x8t_\x8e_\x8x_\x8t | ||
54 | 57{ | ||
55 | 47 | 45public: | |
56 | 5 | 48 | _.5_.0·virtual·_.~_\x8I_\x8m_\x8a_\x8g_\x8e_\x8C_\x8o_\x8n_\x8t_\x8e_\x8x_\x8t(); |
57 | 60·_\x8~_\x8J_\x8P_\x8G_\x8I_\x8m_\x8a_\x8g_\x8e_\x8C_\x8o_\x8n_\x8t_\x8e_\x8x_\x8t(); | ||
58 | 61 | ||
59 | 49 | 51 | |
50 | _\x85_\x86·void·_\x8s_\x8e_\x8t_\x8D_\x8e_\x8s_\x8t_\x8i_\x8n_\x8a_\x8t_\x8i_\x8o_\x8n(byte*·pixels,·size_t·length,·_\x8P_\x8i_\x8x_\x8e_\x8l_\x8F_\x8o_\x8r_\x8m_\x8a_\x8t·format); | ||
51 | 57 | ||
52 | _\x86_\x82·void·_\x8s_\x8e_\x8t_\x8N_\x8e_\x8x_\x8t_\x8P_\x8i_\x8x_\x8e_\x8l(byte·red,·byte·green,·byte·bleu,·byte·alpha); | ||
60 | 63 | 53 | 63 |
61 | 64 | ||
62 | 65·jpeg_source_mgr·src_mgr; | ||
63 | 6 | 54 | 64·size_t·getWidth()·const; |
55 | 65·size_t·getHeight()·const; | ||
56 | 66·_\x8P_\x8i_\x8x_\x8e_\x8l_\x8F_\x8o_\x8r_\x8m_\x8a_\x8t·getPixelFormat()·const; | ||
64 | 67 | 57 | 67 |
65 | 68·jpeg_error_mgr·d_error_mgr; | ||
66 | 69·jmp_buf·setjmp_buffer; | ||
67 | 70·_\x8D_\x8a_\x8t_\x8a_\x8S_\x8o_\x8u_\x8r_\x8c_\x8e*·d_source; | ||
68 | 71}; | ||
69 | 72 | ||
70 | 7 | 58 | 74·bool·flipVertically(); |
59 | 75·protected: | ||
60 | 76·void·setWidth(size_t·width); | ||
61 | 77 | ||
62 | 78·void·setHeight(size_t·height); | ||
63 | 79 | ||
64 | _\x88_\x88·_\x8I_\x8m_\x8a_\x8g_\x8e_\x8C_\x8o_\x8n_\x8t_\x8e_\x8x_\x8t(size_t·width,·size_t·height); | ||
65 | 89 | ||
66 | 90private: | ||
67 | 91·byte*·d_pixels; | ||
68 | 92·size_t·d_length; | ||
69 | 93·size_t·d_width; | ||
70 | 94·size_t·d_height; | ||
71 | 95·size_t·d_currentOffset; | ||
72 | 96·_\x8P_\x8i_\x8x_\x8e_\x8l_\x8F_\x8o_\x8r_\x8m_\x8a_\x8t·d_format; | ||
73 | 97 | ||
74 | 98·//·Disabled·operation | ||
75 | 99·_\x8I_\x8m_\x8a_\x8g_\x8e_\x8C_\x8o_\x8n_\x8t_\x8e_\x8x_\x8t(_\x8I_\x8m_\x8a_\x8g_\x8e_\x8C_\x8o_\x8n_\x8t_\x8e_\x8x_\x8t&); | ||
76 | 100·_\x8I_\x8m_\x8a_\x8g_\x8e_\x8C_\x8o_\x8n_\x8t_\x8e_\x8x_\x8t&·operator=(_\x8I_\x8m_\x8a_\x8g_\x8e_\x8C_\x8o_\x8n_\x8t_\x8e_\x8x_\x8t&); | ||
77 | 101}; | ||
78 | 102 | ||
79 | 103 | ||
71 | 80 | 104}·//·End·of·section·namespace·SILLY | |
72 | 81 | 105 | |
73 | 82 | 106//·Inclue·inline·function·when·needed | |
74 | 83 | 107#ifdef·SILLY_OPT_INLINE | |
75 | 84 | 108#include·"SILLYImageContext.icpp" | |
76 | 85 | 109#endif | |
77 | 86 | 110 | |
78 | 87 | 111#endif·//·end·of·guard·_SILLYImageContext_h_ | |
79 | _\x8S_\x8I_\x8L_\x8L_\x8Y | 88 | _\x8S_\x8I_\x8L_\x8L_\x8Y |
80 | Simple·Image·Loading·LibrarY·namespace. | 89 | Simple·Image·Loading·LibrarY·namespace. |
81 | D\x8De\x8ef\x8fi\x8in\x8ni\x8it\x8ti\x8io\x8on\x8n·_\x8S_\x8I_\x8L_\x8L_\x8Y_\x8J_\x8P_\x8G_\x8I_\x8m_\x8a_\x8g_\x8e_\x8C_\x8o_\x8n_\x8t_\x8e_\x8x_\x8t_\x8._\x8c_\x8p_\x8p_\x8:_\x84_\x86 | 90 | D\x8De\x8ef\x8fi\x8in\x8ni\x8it\x8ti\x8io\x8on\x8n·_\x8S_\x8I_\x8L_\x8L_\x8Y_\x8J_\x8P_\x8G_\x8I_\x8m_\x8a_\x8g_\x8e_\x8C_\x8o_\x8n_\x8t_\x8e_\x8x_\x8t_\x8._\x8c_\x8p_\x8p_\x8:_\x84_\x86 |
91 | _\x8S_\x8I_\x8L_\x8L_\x8Y_\x8:_\x8:_\x8P_\x8i_\x8x_\x8e_\x8l_\x8F_\x8o_\x8r_\x8m_\x8a_\x8t | ||
92 | PixelFormat | ||
93 | List·all·pixel·format·supported. | ||
82 | _\x8S_\x8I_\x8L_\x8L_\x8Y_\x8:_\x8:_\x8J_\x8P_\x8G_\x8I_\x8m_\x8a_\x8g_\x8e_\x8C_\x8o_\x8n_\x8t_\x8e_\x8x_\x8t | ||
83 | Image·Context·for·JPG·image·loader. | ||
84 | D\x8De\x8ef\x8fi\x8in\x8ni\x8it\x8ti\x8io\x8on\x8n·_\x8S_\x8I_\x8L_\x8L_\x8Y_\x8J_\x8P_\x8G_\x8I_\x8m_\x8a_\x8g_\x8e_\x8C_\x8o_\x8n_\x8t_\x8e_\x8x_\x8t_\x8._\x8h_\x8:_\x85_\x87 | ||
85 | _\x8S_\x8I_\x8L_\x8L_\x8Y_\x8:_\x8:_\x8D_\x8a_\x8t_\x8a_\x8S_\x8o_\x8u_\x8r_\x8c_\x8e | ||
86 | This·is·an·abstract·class·used·to·provide·data·to·the·loader. | ||
87 | D\x8De\x8ef\x8fi\x8in\x8ni\x8it\x8ti\x8io\x8on\x8n·_\x8S_\x8I_\x8L_\x8L_\x8Y_\x8 | 94 | D\x8De\x8ef\x8fi\x8in\x8ni\x8it\x8ti\x8io\x8on\x8n·_\x8S_\x8I_\x8L_\x8L_\x8Y_\x8B_.a_.s_.e_.._.h_.:_.6_.0 |
88 | _\x8S_\x8I_\x8L_\x8L_\x8Y_\x8:_\x8:_\x8I_\x8m_\x8a_\x8g_\x8e_\x8C_\x8o_\x8n_\x8t_\x8e_\x8x_\x8t | 95 | _\x8S_\x8I_\x8L_\x8L_\x8Y_\x8:_\x8:_\x8I_\x8m_\x8a_\x8g_\x8e_\x8C_\x8o_\x8n_\x8t_\x8e_\x8x_\x8t |
89 | Store·the·data·needed·by·an·ImageLoader·object·during·the·parsing·of·an·image. | 96 | Store·the·data·needed·by·an·ImageLoader·object·during·the·parsing·of·an·image. |
90 | D\x8De\x8ef\x8fi\x8in\x8ni\x8it\x8ti\x8io\x8on\x8n·_\x8S_\x8I_\x8L_\x8L_\x8Y_\x8I_\x8m_\x8a_\x8g_\x8e_\x8C_\x8o_\x8n_\x8t_\x8e_\x8x_\x8t_\x8._\x8h_\x8:_\x84_\x84 | 97 | D\x8De\x8ef\x8fi\x8in\x8ni\x8it\x8ti\x8io\x8on\x8n·_\x8S_\x8I_\x8L_\x8L_\x8Y_\x8I_\x8m_\x8a_\x8g_\x8e_\x8C_\x8o_\x8n_\x8t_\x8e_\x8x_\x8t_\x8._\x8h_\x8:_\x84_\x84 |
98 | _\x8S_\x8I_\x8L_\x8L_\x8Y_\x8:_\x8:_\x8I_\x8m_\x8a_\x8g_\x8e_\x8C_\x8o_\x8n_\x8t_\x8e_\x8x_\x8t_\x8:_\x8:_\x8s_\x8e_\x8t_\x8N_\x8e_\x8x_\x8t_\x8P_\x8i_\x8x_\x8e_\x8l | ||
99 | void·setNextPixel(byte·red,·byte·green,·byte·bleu,·byte·alpha) | ||
100 | Set·the·next·pixel·of·the·image. | ||
101 | _\x8S_\x8I_\x8L_\x8L_\x8Y_\x8:_\x8:_\x8I_\x8m_\x8a_\x8g_\x8e_\x8C_\x8o_\x8n_\x8t_\x8e_\x8x_\x8t_\x8:_\x8:_\x8s_\x8e_\x8t_\x8D_\x8e_\x8s_\x8t_\x8i_\x8n_\x8a_\x8t_\x8i_\x8o_\x8n | ||
102 | void·setDestination(byte·*pixels,·size_t·length,·PixelFormat·format) | ||
103 | Set·the·destination·of·the·loading. | ||
104 | _\x8S_\x8I_\x8L_\x8L_\x8Y_\x8:_\x8:_\x8I_\x8m_\x8a_\x8g_\x8e_\x8C_\x8o_\x8n_\x8t_\x8e_\x8x_\x8t_\x8:_\x8:_\x8I_\x8m_\x8a_\x8g_\x8e_\x8C_\x8o_\x8n_\x8t_\x8e_\x8x_\x8t | ||
105 | ImageContext(size_t·width,·size_t·height) | ||
106 | Constructor. | ||
107 | _\x8S_\x8I_\x8L_\x8L_\x8Y_\x8:_\x8:_\x8I_\x8m_\x8a_\x8g_\x8e_\x8C_\x8o_\x8n_\x8t_\x8e_\x8x_\x8t_\x8:_\x8:_\x8~_\x8I_\x8m_\x8a_\x8g_\x8e_\x8C_\x8o_\x8n_\x8t_\x8e_\x8x_\x8t | ||
108 | virtual·~ImageContext() | ||
Max diff block lines reached; 53/5970 bytes (0.89%) of diff not shown. |
Offset 1, 15 lines modified | Offset 1, 15 lines modified | ||
1 | <!DOCTYPE·html·PUBLIC·"-//W3C//DTD·XHTML·1.0·Transitional//EN"·"https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> | 1 | <!DOCTYPE·html·PUBLIC·"-//W3C//DTD·XHTML·1.0·Transitional//EN"·"https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> |
2 | <html·xmlns="http://www.w3.org/1999/xhtml"·lang="en-US"> | 2 | <html·xmlns="http://www.w3.org/1999/xhtml"·lang="en-US"> |
3 | <head> | 3 | <head> |
4 | <meta·http-equiv="Content-Type"·content="text/xhtml;charset=UTF-8"/> | 4 | <meta·http-equiv="Content-Type"·content="text/xhtml;charset=UTF-8"/> |
5 | <meta·http-equiv="X-UA-Compatible"·content="IE=11"/> | 5 | <meta·http-equiv="X-UA-Compatible"·content="IE=11"/> |
6 | <meta·name="generator"·content="Doxygen·1.9.8"/> | 6 | <meta·name="generator"·content="Doxygen·1.9.8"/> |
7 | <meta·name="viewport"·content="width=device-width,·initial-scale=1"/> | 7 | <meta·name="viewport"·content="width=device-width,·initial-scale=1"/> |
8 | <title>Simple·Image·Loading·LibrarY:·/build/reproducible-path/silly-0.1.0/include/ | 8 | <title>Simple·Image·Loading·LibrarY:·/build/reproducible-path/silly-0.1.0/include/SILLYImage.icpp·Source·File</title> |
9 | <link·href="tabs.css"·rel="stylesheet"·type="text/css"/> | 9 | <link·href="tabs.css"·rel="stylesheet"·type="text/css"/> |
10 | <script·type="text/javascript"·src="jquery.js"></script> | 10 | <script·type="text/javascript"·src="jquery.js"></script> |
11 | <script·type="text/javascript"·src="dynsections.js"></script> | 11 | <script·type="text/javascript"·src="dynsections.js"></script> |
12 | <link·href="doxygen.css"·rel="stylesheet"·type="text/css"·/> | 12 | <link·href="doxygen.css"·rel="stylesheet"·type="text/css"·/> |
13 | </head> | 13 | </head> |
14 | <body> | 14 | <body> |
15 | <div·id="top"><!--·do·not·remove·this·div,·it·is·closed·by·doxygen!·--> | 15 | <div·id="top"><!--·do·not·remove·this·div,·it·is·closed·by·doxygen!·--> |
Offset 40, 27 lines modified | Offset 40, 27 lines modified | ||
40 | <script·type="text/javascript"> | 40 | <script·type="text/javascript"> |
41 | /*·@license·magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt·MIT·*/ | 41 | /*·@license·magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt·MIT·*/ |
42 | $(document).ready(function()·{·init_codefold(0);·}); | 42 | $(document).ready(function()·{·init_codefold(0);·}); |
43 | /*·@license-end·*/ | 43 | /*·@license-end·*/ |
44 | </script> | 44 | </script> |
45 | <div·id="nav-path"·class="navpath"> | 45 | <div·id="nav-path"·class="navpath"> |
46 | ··<ul> | 46 | ··<ul> |
47 | <li·class="navelem"><a·class="el"·href="dir_4fef79e7177ba769987a8da36c892c5f.html">build</a></li><li·class="navelem"><a·class="el"·href="dir_9def6061848686aab7e6212bb499d615.html">reproducible-path</a></li><li·class="navelem"><a·class="el"·href="dir_74170d5b58cefb7cb5a86fc552b183a3.html">silly-0.1.0</a></li><li·class="navelem"><a·class="el"·href="dir_0d87e2e7ddaae8a2a8572c0afc59fe0d.html">include</a></li> | 47 | <li·class="navelem"><a·class="el"·href="dir_4fef79e7177ba769987a8da36c892c5f.html">build</a></li><li·class="navelem"><a·class="el"·href="dir_9def6061848686aab7e6212bb499d615.html">reproducible-path</a></li><li·class="navelem"><a·class="el"·href="dir_74170d5b58cefb7cb5a86fc552b183a3.html">silly-0.1.0</a></li><li·class="navelem"><a·class="el"·href="dir_0d87e2e7ddaae8a2a8572c0afc59fe0d.html">include</a></li>··</ul> |
48 | </div> | 48 | </div> |
49 | </div><!--·top·--> | 49 | </div><!--·top·--> |
50 | <div·class="header"> | 50 | <div·class="header"> |
51 | ··<div·class="headertitle"><div·class="title">SILLY | 51 | ··<div·class="headertitle"><div·class="title">SILLYImage.icpp</div></div> |
52 | </div><!--header--> | 52 | </div><!--header--> |
53 | <div·class="contents"> | 53 | <div·class="contents"> |
54 | <div·class="fragment"><div·class="line"><a·id="l00001"·name="l00001"></a><span·class="lineno">····1</span>/***********************************************************************</div> | 54 | <div·class="fragment"><div·class="line"><a·id="l00001"·name="l00001"></a><span·class="lineno">····1</span>/***********************************************************************</div> |
55 | <div·class="line"><a·id="l00002"·name="l00002"></a><span·class="lineno">····2</span>····filename:···SILLY | 55 | <div·class="line"><a·id="l00002"·name="l00002"></a><span·class="lineno">····2</span>····filename:···SILLYImage.icpp·</div> |
56 | <div·class="line"><a·id="l00003"·name="l00003"></a><span·class="lineno">····3</span>····created:····1 | 56 | <div·class="line"><a·id="l00003"·name="l00003"></a><span·class="lineno">····3</span>····created:····10·Jun·2006</div> |
57 | <div·class="line"><a·id="l00004"·name="l00004"></a><span·class="lineno">····4</span>····author:·····Olivier·Delannoy</div> | 57 | <div·class="line"><a·id="l00004"·name="l00004"></a><span·class="lineno">····4</span>····author:·····Olivier·Delannoy</div> |
58 | <div·class="line"><a·id="l00005"·name="l00005"></a><span·class="lineno">····5</span>·</div> | 58 | <div·class="line"><a·id="l00005"·name="l00005"></a><span·class="lineno">····5</span>·</div> |
59 | <div·class="line"><a·id="l00006"·name="l00006"></a><span·class="lineno">····6</span>····purpose:····Inline·definition· | 59 | <div·class="line"><a·id="l00006"·name="l00006"></a><span·class="lineno">····6</span>····purpose:····Inline·definition·of·the·image·class···</div> |
60 | <div·class="line"><a·id="l00007"·name="l00007"></a><span·class="lineno">····7</span>*************************************************************************/</div> | 60 | <div·class="line"><a·id="l00007"·name="l00007"></a><span·class="lineno">····7</span>*************************************************************************/</div> |
61 | <div·class="line"><a·id="l00008"·name="l00008"></a><span·class="lineno">····8</span>/***************************************************************************</div> | 61 | <div·class="line"><a·id="l00008"·name="l00008"></a><span·class="lineno">····8</span>/***************************************************************************</div> |
62 | <div·class="line"><a·id="l00009"·name="l00009"></a><span·class="lineno">····9</span>·*···Copyright·(C)·2004·-·2006·Paul·D·Turner·&·The·CEGUI·Development·Team</div> | 62 | <div·class="line"><a·id="l00009"·name="l00009"></a><span·class="lineno">····9</span>·*···Copyright·(C)·2004·-·2006·Paul·D·Turner·&·The·CEGUI·Development·Team</div> |
63 | <div·class="line"><a·id="l00010"·name="l00010"></a><span·class="lineno">···10</span>·*</div> | 63 | <div·class="line"><a·id="l00010"·name="l00010"></a><span·class="lineno">···10</span>·*</div> |
64 | <div·class="line"><a·id="l00011"·name="l00011"></a><span·class="lineno">···11</span>·*···Permission·is·hereby·granted,·free·of·charge,·to·any·person·obtaining</div> | 64 | <div·class="line"><a·id="l00011"·name="l00011"></a><span·class="lineno">···11</span>·*···Permission·is·hereby·granted,·free·of·charge,·to·any·person·obtaining</div> |
65 | <div·class="line"><a·id="l00012"·name="l00012"></a><span·class="lineno">···12</span>·*···a·copy·of·this·software·and·associated·documentation·files·(the</div> | 65 | <div·class="line"><a·id="l00012"·name="l00012"></a><span·class="lineno">···12</span>·*···a·copy·of·this·software·and·associated·documentation·files·(the</div> |
66 | <div·class="line"><a·id="l00013"·name="l00013"></a><span·class="lineno">···13</span>·*···"Software"),·to·deal·in·the·Software·without·restriction,·including</div> | 66 | <div·class="line"><a·id="l00013"·name="l00013"></a><span·class="lineno">···13</span>·*···"Software"),·to·deal·in·the·Software·without·restriction,·including</div> |
Offset 80, 25 lines modified | Offset 80, 65 lines modified | ||
80 | <div·class="line"><a·id="l00027"·name="l00027"></a><span·class="lineno">···27</span>·*···ARISING·FROM,·OUT·OF·OR·IN·CONNECTION·WITH·THE·SOFTWARE·OR·THE·USE·OR</div> | 80 | <div·class="line"><a·id="l00027"·name="l00027"></a><span·class="lineno">···27</span>·*···ARISING·FROM,·OUT·OF·OR·IN·CONNECTION·WITH·THE·SOFTWARE·OR·THE·USE·OR</div> |
81 | <div·class="line"><a·id="l00028"·name="l00028"></a><span·class="lineno">···28</span>·*···OTHER·DEALINGS·IN·THE·SOFTWARE.</div> | 81 | <div·class="line"><a·id="l00028"·name="l00028"></a><span·class="lineno">···28</span>·*···OTHER·DEALINGS·IN·THE·SOFTWARE.</div> |
82 | <div·class="line"><a·id="l00029"·name="l00029"></a><span·class="lineno">···29</span>·***************************************************************************/</div> | 82 | <div·class="line"><a·id="l00029"·name="l00029"></a><span·class="lineno">···29</span>·***************************************************************************/</div> |
83 | <div·class="line"><a·id="l00030"·name="l00030"></a><span·class="lineno">···30</span>·</div> | 83 | <div·class="line"><a·id="l00030"·name="l00030"></a><span·class="lineno">···30</span>·</div> |
84 | <div·class="line"><a·id="l00031"·name="l00031"></a><span·class="lineno">···31</span>//·Start·of·section·namespace·SILLY</div> | 84 | <div·class="line"><a·id="l00031"·name="l00031"></a><span·class="lineno">···31</span>//·Start·of·section·namespace·SILLY</div> |
85 | <div·class="line"><a·id="l00032"·name="l00032"></a><span·class="lineno">···32</span>namespace·SILLY</div> | 85 | <div·class="line"><a·id="l00032"·name="l00032"></a><span·class="lineno">···32</span>namespace·SILLY</div> |
86 | <div·class="line"><a·id="l00033"·name="l00033"></a><span·class="lineno">···33</span>{</div> | 86 | <div·class="line"><a·id="l00033"·name="l00033"></a><span·class="lineno">···33</span>{</div> |
87 | <div·class="line"><a·id="l00034"·name="l00034"></a><span·class="lineno">···34</span>inline·TGAImageContext::TGAImageContext(size_t·width,·size_t·height)</div> | ||
88 | <div·class="line"><a·id="l0003 | 87 | <div·class="line"><a·id="l00034"·name="l00034"></a><span·class="lineno">···34</span>·</div> |
88 | <div·class="line"><a·id="l00035"·name="l00035"></a><span·class="lineno">···35</span>inline·bool·Image::isValid()·const</div> | ||
89 | <div·class="line"><a·id="l00036"·name="l00036"></a><span·class="lineno">···36</span>{</div> | 89 | <div·class="line"><a·id="l00036"·name="l00036"></a><span·class="lineno">···36</span>{</div> |
90 | <div·class="line"><a·id="l00037"·name="l00037"></a><span·class="lineno">···37</span> | 90 | <div·class="line"><a·id="l00037"·name="l00037"></a><span·class="lineno">···37</span>····return·d_imageContext·&&·d_pixels;</div> |
91 | <div·class="line"><a·id="l00038"·name="l00038"></a><span·class="lineno">···38</span> | 91 | <div·class="line"><a·id="l00038"·name="l00038"></a><span·class="lineno">···38</span>}</div> |
92 | <div·class="line"><a·id="l00039"·name="l00039"></a><span·class="lineno">···39</span>inline·TGAImageContext::~TGAImageContext()</div> | ||
93 | <div·class="line"><a·id="l000 | 92 | <div·class="line"><a·id="l00039"·name="l00039"></a><span·class="lineno">···39</span>·</div> |
93 | <div·class="line"><a·id="l00040"·name="l00040"></a><span·class="lineno">···40</span>inline·size_t·Image::getWidth()·const</div> | ||
94 | <div·class="line"><a·id="l00041"·name="l00041"></a><span·class="lineno">···41</span> | 94 | <div·class="line"><a·id="l00041"·name="l00041"></a><span·class="lineno">···41</span>{</div> |
95 | <div·class="line"><a·id="l00042"·name="l00042"></a><span·class="lineno">···42</span>····return·d_imageContext->getWidth();</div> | ||
95 | <div·class="line"><a·id="l0004 | 96 | <div·class="line"><a·id="l00043"·name="l00043"></a><span·class="lineno">···43</span>}</div> |
96 | <div·class="line"><a·id="l00043"·name="l00043"></a><span·class="lineno">···43</span>}·//·End·of·section·namespace·SILLY</div> | ||
97 | <div·class="line"><a·id="l00044"·name="l00044"></a><span·class="lineno">···44</span>·</div> | 97 | <div·class="line"><a·id="l00044"·name="l00044"></a><span·class="lineno">···44</span>·</div> |
98 | <div·class="line"><a·id="l00045"·name="l00045"></a><span·class="lineno">···45</span>inline·size_t·Image::getHeight()·const</div> | ||
99 | <div·class="line"><a·id="l00046"·name="l00046"></a><span·class="lineno">···46</span>{</div> | ||
100 | <div·class="line"><a·id="l00047"·name="l00047"></a><span·class="lineno">···47</span>····return·d_imageContext->getHeight();</div> | ||
101 | <div·class="line"><a·id="l00048"·name="l00048"></a><span·class="lineno">···48</span>}</div> | ||
102 | <div·class="line"><a·id="l00049"·name="l00049"></a><span·class="lineno">···49</span>·</div> | ||
103 | <div·class="line"><a·id="l00050"·name="l00050"></a><span·class="lineno">···50</span>inline·PixelFormat·Image::getSourcePixelFormat()·const</div> | ||
104 | <div·class="line"><a·id="l00051"·name="l00051"></a><span·class="lineno">···51</span>{</div> | ||
105 | <div·class="line"><a·id="l00052"·name="l00052"></a><span·class="lineno">···52</span>····return·d_pfSource;</div> | ||
106 | <div·class="line"><a·id="l00053"·name="l00053"></a><span·class="lineno">···53</span>}</div> | ||
107 | <div·class="line"><a·id="l00054"·name="l00054"></a><span·class="lineno">···54</span>·</div> | ||
108 | <div·class="line"><a·id="l00055"·name="l00055"></a><span·class="lineno">···55</span>inline·PixelFormat·Image::getPixelFormat()·const</div> | ||
109 | <div·class="line"><a·id="l00056"·name="l00056"></a><span·class="lineno">···56</span>{</div> | ||
110 | <div·class="line"><a·id="l00057"·name="l00057"></a><span·class="lineno">···57</span>····return·d_imageContext->getPixelFormat();</div> | ||
111 | <div·class="line"><a·id="l00058"·name="l00058"></a><span·class="lineno">···58</span>}</div> | ||
112 | <div·class="line"><a·id="l00059"·name="l00059"></a><span·class="lineno">···59</span>·</div> | ||
113 | <div·class="line"><a·id="l00060"·name="l00060"></a><span·class="lineno">···60</span>inline·const·byte*·Image::getPixelsDataPtr()·const</div> | ||
114 | <div·class="line"><a·id="l00061"·name="l00061"></a><span·class="lineno">···61</span>{</div> | ||
115 | <div·class="line"><a·id="l00062"·name="l00062"></a><span·class="lineno">···62</span>····return·d_pixels;</div> | ||
116 | <div·class="line"><a·id="l00063"·name="l00063"></a><span·class="lineno">···63</span>}</div> | ||
117 | <div·class="line"><a·id="l00064"·name="l00064"></a><span·class="lineno">···64</span>·</div> | ||
118 | <div·class="line"><a·id="l00065"·name="l00065"></a><span·class="lineno">···65</span>inline·size_t·Image::getPixelsDataSize()·const</div> | ||
119 | <div·class="line"><a·id="l00066"·name="l00066"></a><span·class="lineno">···66</span>{</div> | ||
120 | <div·class="line"><a·id="l00067"·name="l00067"></a><span·class="lineno">···67</span>····return·getWidth()·*·getHeight()·*·d_bpp;</div> | ||
121 | <div·class="line"><a·id="l00068"·name="l00068"></a><span·class="lineno">···68</span>}</div> | ||
122 | <div·class="line"><a·id="l00069"·name="l00069"></a><span·class="lineno">···69</span>·</div> | ||
123 | <div·class="line"><a·id="l00070"·name="l00070"></a><span·class="lineno">···70</span>inline·Image::~Image()</div> | ||
124 | <div·class="line"><a·id="l00071"·name="l00071"></a><span·class="lineno">···71</span>{</div> | ||
125 | <div·class="line"><a·id="l00072"·name="l00072"></a><span·class="lineno">···72</span>····delete·[]·d_pixels;</div> | ||
126 | <div·class="line"><a·id="l00073"·name="l00073"></a><span·class="lineno">···73</span>····if·(d_imageLoader)</div> | ||
127 | <div·class="line"><a·id="l00074"·name="l00074"></a><span·class="lineno">···74</span>········d_imageLoader->destroyContext(d_imageContext);</div> | ||
128 | <div·class="line"><a·id="l00075"·name="l00075"></a><span·class="lineno">···75</span>}</div> | ||
129 | <div·class="line"><a·id="l00076"·name="l00076"></a><span·class="lineno">···76</span>inline·const·char*·Image::getLoaderIdentifierString()·const</div> | ||
130 | <div·class="line"><a·id="l00077"·name="l00077"></a><span·class="lineno">···77</span>{</div> | ||
131 | <div·class="line"><a·id="l00078"·name="l00078"></a><span·class="lineno">···78</span>····if·(d_imageLoader)</div> | ||
132 | <div·class="line"><a·id="l00079"·name="l00079"></a><span·class="lineno">···79</span>········return·d_imageLoader->getIdentifierString();</div> | ||
133 | <div·class="line"><a·id="l00080"·name="l00080"></a><span·class="lineno">···80</span>····return·0;</div> | ||
134 | <div·class="line"><a·id="l00081"·name="l00081"></a><span·class="lineno">···81</span>}</div> | ||
135 | <div·class="line"><a·id="l00082"·name="l00082"></a><span·class="lineno">···82</span>·</div> | ||
136 | <div·class="line"><a·id="l00083"·name="l00083"></a><span·class="lineno">···83</span>}·//·End·of·section·namespace·SILLY</div> | ||
137 | <div·class="line"><a·id="l00084"·name="l00084"></a><span·class="lineno">···84</span>·</div> | ||
98 | </div><!--·fragment·--></div><!--·contents·--> | 138 | </div><!--·fragment·--></div><!--·contents·--> |
99 | <!--·start·footer·part·--> | 139 | <!--·start·footer·part·--> |
100 | <hr·class="footer"/><address·class="footer"><small> | 140 | <hr·class="footer"/><address·class="footer"><small> |
101 | Generated·by <a·href="https://www.doxygen.org/index.html"><img·class="footer"·src="doxygen.svg"·width="104"·height="31"·alt="doxygen"/></a>·1.9.8 | 141 | Generated·by <a·href="https://www.doxygen.org/index.html"><img·class="footer"·src="doxygen.svg"·width="104"·height="31"·alt="doxygen"/></a>·1.9.8 |
102 | </small></address> | 142 | </small></address> |
103 | </body> | 143 | </body> |
104 | </html> | 144 | </html> |
Offset 1, 20 lines modified | Offset 1, 19 lines modified | ||
1 | Simple·Image·Loading·LibrarY 0.1.0 | 1 | Simple·Image·Loading·LibrarY 0.1.0 |
2 | ····*·_\x8b_\x8u_\x8i_\x8l_\x8d | 2 | ····*·_\x8b_\x8u_\x8i_\x8l_\x8d |
3 | ····*·_\x8r_\x8e_\x8p_\x8r_\x8o_\x8d_\x8u_\x8c_\x8i_\x8b_\x8l_\x8e_\x8-_\x8p_\x8a_\x8t_\x8h | 3 | ····*·_\x8r_\x8e_\x8p_\x8r_\x8o_\x8d_\x8u_\x8c_\x8i_\x8b_\x8l_\x8e_\x8-_\x8p_\x8a_\x8t_\x8h |
4 | ····*·_\x8s_\x8i_\x8l_\x8l_\x8y_\x8-_\x80_\x8._\x81_\x8._\x80 | 4 | ····*·_\x8s_\x8i_\x8l_\x8l_\x8y_\x8-_\x80_\x8._\x81_\x8._\x80 |
5 | ····*·_\x8i_\x8n_\x8c_\x8l_\x8u_\x8d_\x8e | 5 | ····*·_\x8i_\x8n_\x8c_\x8l_\x8u_\x8d_\x8e |
6 | ····*·_\x8l_\x8o_\x8a_\x8d_\x8e_\x8r_\x8s | ||
7 | SILLY | 6 | SILLYImage.icpp |
8 | 1/*********************************************************************** | 7 | 1/*********************************************************************** |
9 | 2·filename:·SILLY | 8 | 2·filename:·SILLYImage.icpp |
10 | 3·created:·1 | 9 | 3·created:·10·Jun·2006 |
11 | 4·author:·Olivier·Delannoy | 10 | 4·author:·Olivier·Delannoy |
12 | 5 | 11 | 5 |
13 | 6·purpose:·Inline·definition· | 12 | 6·purpose:·Inline·definition·of·the·image·class |
14 | 7*************************************************************************/ | 13 | 7*************************************************************************/ |
15 | 8/*************************************************************************** | 14 | 8/*************************************************************************** |
16 | 9·*·Copyright·(C)·2004·-·2006·Paul·D·Turner·&·The·CEGUI·Development·Team | 15 | 9·*·Copyright·(C)·2004·-·2006·Paul·D·Turner·&·The·CEGUI·Development·Team |
17 | 10·* | 16 | 10·* |
18 | 11·*·Permission·is·hereby·granted,·free·of·charge,·to·any·person·obtaining | 17 | 11·*·Permission·is·hereby·granted,·free·of·charge,·to·any·person·obtaining |
19 | 12·*·a·copy·of·this·software·and·associated·documentation·files·(the | 18 | 12·*·a·copy·of·this·software·and·associated·documentation·files·(the |
20 | 13·*·"Software"),·to·deal·in·the·Software·without·restriction,·including | 19 | 13·*·"Software"),·to·deal·in·the·Software·without·restriction,·including |
Offset 34, 20 lines modified | Offset 33, 60 lines modified | ||
34 | 27·*·ARISING·FROM,·OUT·OF·OR·IN·CONNECTION·WITH·THE·SOFTWARE·OR·THE·USE·OR | 33 | 27·*·ARISING·FROM,·OUT·OF·OR·IN·CONNECTION·WITH·THE·SOFTWARE·OR·THE·USE·OR |
35 | 28·*·OTHER·DEALINGS·IN·THE·SOFTWARE. | 34 | 28·*·OTHER·DEALINGS·IN·THE·SOFTWARE. |
36 | 29·***************************************************************************/ | 35 | 29·***************************************************************************/ |
37 | 30 | 36 | 30 |
38 | 31//·Start·of·section·namespace·SILLY | 37 | 31//·Start·of·section·namespace·SILLY |
39 | 32namespace·SILLY | 38 | 32namespace·SILLY |
40 | 33{ | 39 | 33{ |
41 | 34inline·TGAImageContext::TGAImageContext(size_t·width,·size_t·height) | ||
42 | 3 | 40 | 34 |
41 | 35inline·bool·Image::isValid()·const | ||
43 | 36{ | 42 | 36{ |
44 | 37 | 43 | 37·return·d_imageContext·&&·d_pixels; |
45 | 38 | 44 | 38} |
46 | 39inline·TGAImageContext::~TGAImageContext() | ||
47 | 40{ | ||
48 | 41} | ||
49 | 42 | ||
50 | 45 | 39 | |
46 | 40inline·size_t·Image::getWidth()·const | ||
47 | 41{ | ||
48 | 42·return·d_imageContext->getWidth(); | ||
49 | 43} | ||
51 | 44 | 50 | 44 |
51 | 45inline·size_t·Image::getHeight()·const | ||
52 | 46{ | ||
53 | 47·return·d_imageContext->getHeight(); | ||
54 | 48} | ||
55 | 49 | ||
56 | 50inline·PixelFormat·Image::getSourcePixelFormat()·const | ||
57 | 51{ | ||
58 | 52·return·d_pfSource; | ||
59 | 53} | ||
60 | 54 | ||
61 | 55inline·PixelFormat·Image::getPixelFormat()·const | ||
62 | 56{ | ||
63 | 57·return·d_imageContext->getPixelFormat(); | ||
64 | 58} | ||
65 | 59 | ||
66 | 60inline·const·byte*·Image::getPixelsDataPtr()·const | ||
67 | 61{ | ||
68 | 62·return·d_pixels; | ||
69 | 63} | ||
70 | 64 | ||
71 | 65inline·size_t·Image::getPixelsDataSize()·const | ||
72 | 66{ | ||
73 | 67·return·getWidth()·*·getHeight()·*·d_bpp; | ||
74 | 68} | ||
75 | 69 | ||
76 | 70inline·Image::~Image() | ||
77 | 71{ | ||
78 | 72·delete·[]·d_pixels; | ||
79 | 73·if·(d_imageLoader) | ||
80 | 74·d_imageLoader->destroyContext(d_imageContext); | ||
81 | 75} | ||
82 | 76inline·const·char*·Image::getLoaderIdentifierString()·const | ||
83 | 77{ | ||
84 | 78·if·(d_imageLoader) | ||
85 | 79·return·d_imageLoader->getIdentifierString(); | ||
86 | 80·return·0; | ||
87 | 81} | ||
88 | 82 | ||
89 | 83}·//·End·of·section·namespace·SILLY | ||
90 | 84 | ||
52 | =============================================================================== | 91 | =============================================================================== |
53 | ·····Generated·by _\x8[_\x8d_\x8o_\x8x_\x8y_\x8g_\x8e_\x8n_\x8]·1.9.8 | 92 | ·····Generated·by _\x8[_\x8d_\x8o_\x8x_\x8y_\x8g_\x8e_\x8n_\x8]·1.9.8 |
Offset 1, 15 lines modified | Offset 1, 15 lines modified | ||
1 | <!DOCTYPE·html·PUBLIC·"-//W3C//DTD·XHTML·1.0·Transitional//EN"·"https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> | 1 | <!DOCTYPE·html·PUBLIC·"-//W3C//DTD·XHTML·1.0·Transitional//EN"·"https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> |
2 | <html·xmlns="http://www.w3.org/1999/xhtml"·lang="en-US"> | 2 | <html·xmlns="http://www.w3.org/1999/xhtml"·lang="en-US"> |
3 | <head> | 3 | <head> |
4 | <meta·http-equiv="Content-Type"·content="text/xhtml;charset=UTF-8"/> | 4 | <meta·http-equiv="Content-Type"·content="text/xhtml;charset=UTF-8"/> |
5 | <meta·http-equiv="X-UA-Compatible"·content="IE=11"/> | 5 | <meta·http-equiv="X-UA-Compatible"·content="IE=11"/> |
6 | <meta·name="generator"·content="Doxygen·1.9.8"/> | 6 | <meta·name="generator"·content="Doxygen·1.9.8"/> |
7 | <meta·name="viewport"·content="width=device-width,·initial-scale=1"/> | 7 | <meta·name="viewport"·content="width=device-width,·initial-scale=1"/> |
8 | <title>Simple·Image·Loading·LibrarY:·/build/reproducible-path/silly-0.1.0/include/SILLY | 8 | <title>Simple·Image·Loading·LibrarY:·/build/reproducible-path/silly-0.1.0/include/SILLYOptions.h·Source·File</title> |
9 | <link·href="tabs.css"·rel="stylesheet"·type="text/css"/> | 9 | <link·href="tabs.css"·rel="stylesheet"·type="text/css"/> |
10 | <script·type="text/javascript"·src="jquery.js"></script> | 10 | <script·type="text/javascript"·src="jquery.js"></script> |
11 | <script·type="text/javascript"·src="dynsections.js"></script> | 11 | <script·type="text/javascript"·src="dynsections.js"></script> |
12 | <link·href="doxygen.css"·rel="stylesheet"·type="text/css"·/> | 12 | <link·href="doxygen.css"·rel="stylesheet"·type="text/css"·/> |
13 | </head> | 13 | </head> |
14 | <body> | 14 | <body> |
15 | <div·id="top"><!--·do·not·remove·this·div,·it·is·closed·by·doxygen!·--> | 15 | <div·id="top"><!--·do·not·remove·this·div,·it·is·closed·by·doxygen!·--> |
Offset 44, 101 lines modified | Offset 44, 56 lines modified | ||
44 | </script> | 44 | </script> |
45 | <div·id="nav-path"·class="navpath"> | 45 | <div·id="nav-path"·class="navpath"> |
46 | ··<ul> | 46 | ··<ul> |
47 | <li·class="navelem"><a·class="el"·href="dir_4fef79e7177ba769987a8da36c892c5f.html">build</a></li><li·class="navelem"><a·class="el"·href="dir_9def6061848686aab7e6212bb499d615.html">reproducible-path</a></li><li·class="navelem"><a·class="el"·href="dir_74170d5b58cefb7cb5a86fc552b183a3.html">silly-0.1.0</a></li><li·class="navelem"><a·class="el"·href="dir_0d87e2e7ddaae8a2a8572c0afc59fe0d.html">include</a></li>··</ul> | 47 | <li·class="navelem"><a·class="el"·href="dir_4fef79e7177ba769987a8da36c892c5f.html">build</a></li><li·class="navelem"><a·class="el"·href="dir_9def6061848686aab7e6212bb499d615.html">reproducible-path</a></li><li·class="navelem"><a·class="el"·href="dir_74170d5b58cefb7cb5a86fc552b183a3.html">silly-0.1.0</a></li><li·class="navelem"><a·class="el"·href="dir_0d87e2e7ddaae8a2a8572c0afc59fe0d.html">include</a></li>··</ul> |
48 | </div> | 48 | </div> |
49 | </div><!--·top·--> | 49 | </div><!--·top·--> |
50 | <div·class="header"> | 50 | <div·class="header"> |
51 | ··<div·class="headertitle"><div·class="title">SILLY | 51 | ··<div·class="headertitle"><div·class="title">SILLYOptions.h</div></div> |
52 | </div><!--header--> | 52 | </div><!--header--> |
53 | <div·class="contents"> | 53 | <div·class="contents"> |
54 | <div·class="fragment"><div·class="line"><a·id="l00001"·name="l00001"></a><span·class="lineno">····1</span><span·class="comment">/*·include/SILLYOptions.h.··Generated·from·SILLYOptions.h.in·by·configure.··*/</span></div> | ||
54 | <div·class="fragment"><div·class="line"><a·id="l00001"·name="l00001"></a><span·class="lineno">····1</span>/***********************************************************************</div> | ||
55 | <div·class="line"><a·id="l00002"·name="l00002"></a><span·class="lineno">····2</span>····filename:···SILLYImage.icpp·</div> | ||
56 | <div·class="line"><a·id="l00003"·name="l00003"></a><span·class="lineno">····3</span>····created:····10·Jun·2006</div> | ||
57 | <div·class="line"><a·id="l00004"·name="l00004"></a><span·class="lineno">····4</span>····author:·····Olivier·Delannoy</div> | ||
58 | <div·class="line"><a·id="l00005"·name="l00005"></a><span·class="lineno">····5</span>·</div> | ||
59 | <div·class="line"><a·id="l00006"·name="l00006"></a><span·class="lineno">····6</span>····purpose:····Inline·definition·of·the·image·class···</div> | ||
60 | <div·class="line"><a·id="l0000 | 55 | <div·class="line"><a·id="l00002"·name="l00002"></a><span·class="lineno">····2</span><span·class="comment">/***********************************************************************</span></div> |
56 | <div·class="line"><a·id="l00003"·name="l00003"></a><span·class="lineno">····3</span><span·class="comment">····filename:···SILLYOptions.h.in</span></div> | ||
57 | <div·class="line"><a·id="l00004"·name="l00004"></a><span·class="lineno">····4</span><span·class="comment">····created:····2006/06/10</span></div> | ||
58 | <div·class="line"><a·id="l00005"·name="l00005"></a><span·class="lineno">····5</span><span·class="comment">····author:·····Olivier·Delannoy</span></div> | ||
59 | <div·class="line"><a·id="l00006"·name="l00006"></a><span·class="lineno">····6</span><span·class="comment"></span>·</div> | ||
60 | <div·class="line"><a·id="l00007"·name="l00007"></a><span·class="lineno">····7</span><span·class="comment">····purpose:····Store·options·of·the·SILLY·library··</span></div> | ||
61 | <div·class="line"><a·id="l00008"·name="l00008"></a><span·class="lineno">····8</span> | 61 | <div·class="line"><a·id="l00008"·name="l00008"></a><span·class="lineno">····8</span><span·class="comment">*************************************************************************/</span></div> |
62 | <div·class="line"><a·id="l00009"·name="l00009"></a><span·class="lineno">····9</span>·*···Copyright·(C)·2004·-·2006·Paul·D·Turner·&·The·CEGUI·Development·Team</div> | ||
63 | <div·class="line"><a·id="l00010"·name="l00010"></a><span·class="lineno">···10</span>·*</div> | ||
64 | <div·class="line"><a·id="l00011"·name="l00011"></a><span·class="lineno">···11</span>·*···Permission·is·hereby·granted,·free·of·charge,·to·any·person·obtaining</div> | ||
65 | <div·class="line"><a·id="l00012"·name="l00012"></a><span·class="lineno">···12</span>·*···a·copy·of·this·software·and·associated·documentation·files·(the</div> | ||
66 | <div·class="line"><a·id="l00013"·name="l00013"></a><span·class="lineno">···13</span>·*···"Software"),·to·deal·in·the·Software·without·restriction,·including</div> | ||
67 | <div·class="line"><a·id="l00014"·name="l00014"></a><span·class="lineno">···14</span>·*···without·limitation·the·rights·to·use,·copy,·modify,·merge,·publish,</div> | ||
68 | <div·class="line"><a·id="l00015"·name="l00015"></a><span·class="lineno">···15</span>·*···distribute,·sublicense,·and/or·sell·copies·of·the·Software,·and·to</div> | ||
69 | <div·class="line"><a·id="l00016"·name="l00016"></a><span·class="lineno">···16</span>·*···permit·persons·to·whom·the·Software·is·furnished·to·do·so,·subject·to</div> | ||
70 | <div·class="line"><a·id="l00017"·name="l00017"></a><span·class="lineno">···17</span>·*···the·following·conditions:</div> | ||
71 | <div·class="line"><a·id="l00018"·name="l00018"></a><span·class="lineno">···18</span>·*</div> | ||
72 | <div·class="line"><a·id="l00019"·name="l00019"></a><span·class="lineno">···19</span>·*···The·above·copyright·notice·and·this·permission·notice·shall·be</div> | ||
73 | <div·class="line"><a·id="l00020"·name="l00020"></a><span·class="lineno">···20</span>·*···included·in·all·copies·or·substantial·portions·of·the·Software.</div> | ||
74 | <div·class="line"><a·id="l00021"·name="l00021"></a><span·class="lineno">···21</span>·*</div> | ||
75 | <div·class="line"><a·id="l00022"·name="l00022"></a><span·class="lineno">···22</span>·*···THE·SOFTWARE·IS·PROVIDED·"AS·IS",·WITHOUT·WARRANTY·OF·ANY·KIND,</div> | ||
76 | <div·class="line"><a·id="l00023"·name="l00023"></a><span·class="lineno">···23</span>·*···EXPRESS·OR·IMPLIED,·INCLUDING·BUT·NOT·LIMITED·TO·THE·WARRANTIES·OF</div> | ||
77 | <div·class="line"><a·id="l00024"·name="l00024"></a><span·class="lineno">···24</span>·*···MERCHANTABILITY,·FITNESS·FOR·A·PARTICULAR·PURPOSE·AND·NONINFRINGEMENT.</div> | ||
78 | <div·class="line"><a·id="l00025"·name="l00025"></a><span·class="lineno">···25</span>·*···IN·NO·EVENT·SHALL·THE·AUTHORS·BE·LIABLE·FOR·ANY·CLAIM,·DAMAGES·OR</div> | ||
79 | <div·class="line"><a·id="l00026"·name="l00026"></a><span·class="lineno">···26</span>·*···OTHER·LIABILITY,·WHETHER·IN·AN·ACTION·OF·CONTRACT,·TORT·OR·OTHERWISE,</div> | ||
80 | <div·class="line"><a·id="l00027"·name="l00027"></a><span·class="lineno">···27</span>·*···ARISING·FROM,·OUT·OF·OR·IN·CONNECTION·WITH·THE·SOFTWARE·OR·THE·USE·OR</div> | ||
81 | <div·class="line"><a·id="l00028"·name="l00028"></a><span·class="lineno">···28</span>·*···OTHER·DEALINGS·IN·THE·SOFTWARE.</div> | ||
82 | <div·class="line"><a·id="l000 | 62 | <div·class="line"><a·id="l00009"·name="l00009"></a><span·class="lineno">····9</span><span·class="comment">/***************************************************************************</span></div> |
63 | <div·class="line"><a·id="l00010"·name="l00010"></a><span·class="lineno">···10</span><span·class="comment">·*···Copyright·(C)·2004·-·2006·Paul·D·Turner·&·The·CEGUI·Development·Team</span></div> | ||
83 | <div·class="line"><a·id="l000 | 64 | <div·class="line"><a·id="l00011"·name="l00011"></a><span·class="lineno">···11</span><span·class="comment">·*</span></div> |
65 | <div·class="line"><a·id="l00012"·name="l00012"></a><span·class="lineno">···12</span><span·class="comment">·*···Permission·is·hereby·granted,·free·of·charge,·to·any·person·obtaining</span></div> | ||
66 | <div·class="line"><a·id="l00013"·name="l00013"></a><span·class="lineno">···13</span><span·class="comment">·*···a·copy·of·this·software·and·associated·documentation·files·(the</span></div> | ||
67 | <div·class="line"><a·id="l00014"·name="l00014"></a><span·class="lineno">···14</span><span·class="comment">·*···"Software"),·to·deal·in·the·Software·without·restriction,·including</span></div> | ||
68 | <div·class="line"><a·id="l00015"·name="l00015"></a><span·class="lineno">···15</span><span·class="comment">·*···without·limitation·the·rights·to·use,·copy,·modify,·merge,·publish,</span></div> | ||
69 | <div·class="line"><a·id="l00016"·name="l00016"></a><span·class="lineno">···16</span><span·class="comment">·*···distribute,·sublicense,·and/or·sell·copies·of·the·Software,·and·to</span></div> | ||
70 | <div·class="line"><a·id="l00017"·name="l00017"></a><span·class="lineno">···17</span><span·class="comment">·*···permit·persons·to·whom·the·Software·is·furnished·to·do·so,·subject·to</span></div> | ||
71 | <div·class="line"><a·id="l00018"·name="l00018"></a><span·class="lineno">···18</span><span·class="comment">·*···the·following·conditions:</span></div> | ||
84 | <div·class="line"><a·id="l000 | 72 | <div·class="line"><a·id="l00019"·name="l00019"></a><span·class="lineno">···19</span><span·class="comment">·*</span></div> |
73 | <div·class="line"><a·id="l00020"·name="l00020"></a><span·class="lineno">···20</span><span·class="comment">·*···The·above·copyright·notice·and·this·permission·notice·shall·be</span></div> | ||
74 | <div·class="line"><a·id="l00021"·name="l00021"></a><span·class="lineno">···21</span><span·class="comment">·*···included·in·all·copies·or·substantial·portions·of·the·Software.</span></div> | ||
85 | <div·class="line"><a·id="l000 | 75 | <div·class="line"><a·id="l00022"·name="l00022"></a><span·class="lineno">···22</span><span·class="comment">·*</span></div> |
76 | <div·class="line"><a·id="l00023"·name="l00023"></a><span·class="lineno">···23</span><span·class="comment">·*···THE·SOFTWARE·IS·PROVIDED·"AS·IS",·WITHOUT·WARRANTY·OF·ANY·KIND,</span></div> | ||
77 | <div·class="line"><a·id="l00024"·name="l00024"></a><span·class="lineno">···24</span><span·class="comment">·*···EXPRESS·OR·IMPLIED,·INCLUDING·BUT·NOT·LIMITED·TO·THE·WARRANTIES·OF</span></div> | ||
78 | <div·class="line"><a·id="l00025"·name="l00025"></a><span·class="lineno">···25</span><span·class="comment">·*···MERCHANTABILITY,·FITNESS·FOR·A·PARTICULAR·PURPOSE·AND·NONINFRINGEMENT.</span></div> | ||
79 | <div·class="line"><a·id="l00026"·name="l00026"></a><span·class="lineno">···26</span><span·class="comment">·*···IN·NO·EVENT·SHALL·THE·AUTHORS·BE·LIABLE·FOR·ANY·CLAIM,·DAMAGES·OR</span></div> | ||
80 | <div·class="line"><a·id="l00027"·name="l00027"></a><span·class="lineno">···27</span><span·class="comment">·*···OTHER·LIABILITY,·WHETHER·IN·AN·ACTION·OF·CONTRACT,·TORT·OR·OTHERWISE,</span></div> | ||
81 | <div·class="line"><a·id="l00028"·name="l00028"></a><span·class="lineno">···28</span><span·class="comment">·*···ARISING·FROM,·OUT·OF·OR·IN·CONNECTION·WITH·THE·SOFTWARE·OR·THE·USE·OR</span></div> | ||
82 | <div·class="line"><a·id="l00029"·name="l00029"></a><span·class="lineno">···29</span><span·class="comment">·*···OTHER·DEALINGS·IN·THE·SOFTWARE.</span></div> | ||
83 | <div·class="line"><a·id="l00030"·name="l00030"></a><span·class="lineno">···30</span><span·class="comment">·***************************************************************************/</span></div> | ||
84 | <div·class="line"><a·id="l00031"·name="l00031"></a><span·class="lineno">···31</span><span·class="comment">/*·Defined·to·1·if·inline·is·enabled·*/</span>·</div> | ||
85 | <div·class="line"><a·id="l00032"·name="l00032"></a><span·class="lineno">···32</span><span·class="preprocessor">#define·SILLY_OPT_INLINE·1</span></div> | ||
86 | <div·class="line"><a·id="l00033"·name="l00033"></a><span·class="lineno">···33</span> | 86 | <div·class="line"><a·id="l00033"·name="l00033"></a><span·class="lineno">···33</span>·</div> |
87 | <div·class="line"><a·id="l00034"·name="l00034"></a><span·class="lineno">···34</span>·</div> | ||
88 | <div·class="line"><a·id="l0003 | 87 | <div·class="line"><a·id="l00034"·name="l00034"></a><span·class="lineno">···34</span><span·class="comment">/*·Defined·to·1·if·debug·is·enabled·*/</span>·</div> |
88 | <div·class="line"><a·id="l00035"·name="l00035"></a><span·class="lineno">···35</span><span·class="comment">/*·#undef·SILLY_OPT_DEBUG·*/</span></div> | ||
89 | <div·class="line"><a·id="l00036"·name="l00036"></a><span·class="lineno">···36</span> | 89 | <div·class="line"><a·id="l00036"·name="l00036"></a><span·class="lineno">···36</span>·</div> |
90 | <div·class="line"><a·id="l00037"·name="l00037"></a><span·class="lineno">···37</span>· | 90 | <div·class="line"><a·id="l00037"·name="l00037"></a><span·class="lineno">···37</span><span·class="comment">/*·Defined·to·1·if·profile·is·enabled·*/</span>·</div> |
91 | <div·class="line"><a·id="l00038"·name="l00038"></a><span·class="lineno">···38</span> | 91 | <div·class="line"><a·id="l00038"·name="l00038"></a><span·class="lineno">···38</span><span·class="comment">/*·#undef·SILLY_OPT_PROFILE·*/</span></div> |
92 | <div·class="line"><a·id="l00039"·name="l00039"></a><span·class="lineno">···39</span>·</div> | 92 | <div·class="line"><a·id="l00039"·name="l00039"></a><span·class="lineno">···39</span>·</div> |
93 | <div·class="line"><a·id="l00040"·name="l00040"></a><span·class="lineno">···40</span>inline·size_t·Image::getWidth()·const</div> | ||
94 | <div·class="line"><a·id="l00041"·name="l00041"></a><span·class="lineno">···41</span>{</div> | ||
95 | <div·class="line"><a·id="l00042"·name="l00042"></a><span·class="lineno">···42</span>····return·d_imageContext->getWidth();</div> | ||
96 | <div·class="line"><a·id="l00043"·name="l00043"></a><span·class="lineno">···43</span>}</div> | ||
97 | <div·class="line"><a·id="l00044"·name="l00044"></a><span·class="lineno">···44</span>·</div> | ||
98 | <div·class="line"><a·id="l00045"·name="l00045"></a><span·class="lineno">···45</span>inline·size_t·Image::getHeight()·const</div> | ||
99 | <div·class="line"><a·id="l00046"·name="l00046"></a><span·class="lineno">···46</span>{</div> | ||
100 | <div·class="line"><a·id="l00047"·name="l00047"></a><span·class="lineno">···47</span>····return·d_imageContext->getHeight();</div> | ||
101 | <div·class="line"><a·id="l00048"·name="l00048"></a><span·class="lineno">···48</span>}</div> | ||
102 | <div·class="line"><a·id="l00049"·name="l00049"></a><span·class="lineno">···49</span>·</div> | ||
103 | <div·class="line"><a·id="l00050"·name="l00050"></a><span·class="lineno">···50</span>inline·PixelFormat·Image::getSourcePixelFormat()·const</div> | ||
104 | <div·class="line"><a·id="l00051"·name="l00051"></a><span·class="lineno">···51</span>{</div> | ||
105 | <div·class="line"><a·id="l00052"·name="l00052"></a><span·class="lineno">···52</span>····return·d_pfSource;</div> | ||
106 | <div·class="line"><a·id="l00053"·name="l00053"></a><span·class="lineno">···53</span>}</div> | ||
107 | <div·class="line"><a·id="l00054"·name="l00054"></a><span·class="lineno">···54</span>·</div> | ||
108 | <div·class="line"><a·id="l00055"·name="l00055"></a><span·class="lineno">···55</span>inline·PixelFormat·Image::getPixelFormat()·const</div> | ||
109 | <div·class="line"><a·id="l00056"·name="l00056"></a><span·class="lineno">···56</span>{</div> | ||
110 | <div·class="line"><a·id="l00057"·name="l00057"></a><span·class="lineno">···57</span>····return·d_imageContext->getPixelFormat();</div> | ||
111 | <div·class="line"><a·id="l00058"·name="l00058"></a><span·class="lineno">···58</span>}</div> | ||
112 | <div·class="line"><a·id="l00059"·name="l00059"></a><span·class="lineno">···59</span>·</div> | ||
113 | <div·class="line"><a·id="l00060"·name="l00060"></a><span·class="lineno">···60</span>inline·const·byte*·Image::getPixelsDataPtr()·const</div> | ||
114 | <div·class="line"><a·id="l00061"·name="l00061"></a><span·class="lineno">···61</span>{</div> | ||
115 | <div·class="line"><a·id="l00062"·name="l00062"></a><span·class="lineno">···62</span>····return·d_pixels;</div> | ||
116 | <div·class="line"><a·id="l00063"·name="l00063"></a><span·class="lineno">···63</span>}</div> | ||
117 | <div·class="line"><a·id="l00064"·name="l00064"></a><span·class="lineno">···64</span>·</div> | ||
118 | <div·class="line"><a·id="l00065"·name="l00065"></a><span·class="lineno">···65</span>inline·size_t·Image::getPixelsDataSize()·const</div> | ||
119 | <div·class="line"><a·id="l00066"·name="l00066"></a><span·class="lineno">···66</span>{</div> | ||
120 | <div·class="line"><a·id="l00067"·name="l00067"></a><span·class="lineno">···67</span>····return·getWidth()·*·getHeight()·*·d_bpp;</div> | ||
121 | <div·class="line"><a·id="l00068"·name="l00068"></a><span·class="lineno">···68</span>}</div> | ||
122 | <div·class="line"><a·id="l00069"·name="l00069"></a><span·class="lineno">···69</span>·</div> | ||
123 | <div·class="line"><a·id="l00070"·name="l00070"></a><span·class="lineno">···70</span>inline·Image::~Image()</div> | ||
124 | <div·class="line"><a·id="l00071"·name="l00071"></a><span·class="lineno">···71</span>{</div> | ||
125 | <div·class="line"><a·id="l00072"·name="l00072"></a><span·class="lineno">···72</span>····delete·[]·d_pixels;</div> | ||
126 | <div·class="line"><a·id="l00073"·name="l00073"></a><span·class="lineno">···73</span>····if·(d_imageLoader)</div> | ||
127 | <div·class="line"><a·id="l00074"·name="l00074"></a><span·class="lineno">···74</span>········d_imageLoader->destroyContext(d_imageContext);</div> | ||
Max diff block lines reached; 271/18859 bytes (1.44%) of diff not shown. |
Offset 1, 92 lines modified | Offset 1, 47 lines modified | ||
1 | Simple·Image·Loading·LibrarY 0.1.0 | 1 | Simple·Image·Loading·LibrarY 0.1.0 |
2 | ····*·_\x8b_\x8u_\x8i_\x8l_\x8d | 2 | ····*·_\x8b_\x8u_\x8i_\x8l_\x8d |
3 | ····*·_\x8r_\x8e_\x8p_\x8r_\x8o_\x8d_\x8u_\x8c_\x8i_\x8b_\x8l_\x8e_\x8-_\x8p_\x8a_\x8t_\x8h | 3 | ····*·_\x8r_\x8e_\x8p_\x8r_\x8o_\x8d_\x8u_\x8c_\x8i_\x8b_\x8l_\x8e_\x8-_\x8p_\x8a_\x8t_\x8h |
4 | ····*·_\x8s_\x8i_\x8l_\x8l_\x8y_\x8-_\x80_\x8._\x81_\x8._\x80 | 4 | ····*·_\x8s_\x8i_\x8l_\x8l_\x8y_\x8-_\x80_\x8._\x81_\x8._\x80 |
5 | ····*·_\x8i_\x8n_\x8c_\x8l_\x8u_\x8d_\x8e | 5 | ····*·_\x8i_\x8n_\x8c_\x8l_\x8u_\x8d_\x8e |
6 | SILLY | 6 | SILLYOptions.h |
7 | 1/*·include/SILLYOptions.h.·Generated·from·SILLYOptions.h.in·by·configure.·*/ | ||
7 | 8 | 2/*********************************************************************** | |
8 | 2·filename:·SILLYImage.icpp | ||
9 | 3· | 9 | 3·filename:·SILLYOptions.h.in |
10 | 4·created:·2006/06/10 | ||
10 | 11 | 5·author:·Olivier·Delannoy | |
11 | 5 | ||
12 | 6 | 12 | 6 |
13 | 7·purpose:·Store·options·of·the·SILLY·library | ||
13 | 14 | 8*************************************************************************/ | |
14 | 15 | 9/*************************************************************************** | |
15 | 16 | 10·*·Copyright·(C)·2004·-·2006·Paul·D·Turner·&·The·CEGUI·Development·Team | |
16 | 1 | 17 | 11·* |
17 | 1 | 18 | 12·*·Permission·is·hereby·granted,·free·of·charge,·to·any·person·obtaining |
18 | 1 | 19 | 13·*·a·copy·of·this·software·and·associated·documentation·files·(the |
19 | 1 | 20 | 14·*·"Software"),·to·deal·in·the·Software·without·restriction,·including |
20 | 1 | 21 | 15·*·without·limitation·the·rights·to·use,·copy,·modify,·merge,·publish, |
21 | 1 | 22 | 16·*·distribute,·sublicense,·and/or·sell·copies·of·the·Software,·and·to |
22 | 1 | 23 | 17·*·permit·persons·to·whom·the·Software·is·furnished·to·do·so,·subject·to |
23 | 1 | 24 | 18·*·the·following·conditions: |
24 | 1 | 25 | 19·* |
25 | 26 | 20·*·The·above·copyright·notice·and·this·permission·notice·shall·be | |
26 | 2 | 27 | 21·*·included·in·all·copies·or·substantial·portions·of·the·Software. |
27 | 2 | 28 | 22·* |
28 | 2 | 29 | 23·*·THE·SOFTWARE·IS·PROVIDED·"AS·IS",·WITHOUT·WARRANTY·OF·ANY·KIND, |
29 | 2 | 30 | 24·*·EXPRESS·OR·IMPLIED,·INCLUDING·BUT·NOT·LIMITED·TO·THE·WARRANTIES·OF |
30 | 2 | 31 | 25·*·MERCHANTABILITY,·FITNESS·FOR·A·PARTICULAR·PURPOSE·AND·NONINFRINGEMENT. |
31 | 2 | 32 | 26·*·IN·NO·EVENT·SHALL·THE·AUTHORS·BE·LIABLE·FOR·ANY·CLAIM,·DAMAGES·OR |
32 | 2 | 33 | 27·*·OTHER·LIABILITY,·WHETHER·IN·AN·ACTION·OF·CONTRACT,·TORT·OR·OTHERWISE, |
33 | 2 | 34 | 28·*·ARISING·FROM,·OUT·OF·OR·IN·CONNECTION·WITH·THE·SOFTWARE·OR·THE·USE·OR |
34 | 2 | 35 | 29·*·OTHER·DEALINGS·IN·THE·SOFTWARE. |
35 | 36 | 30·***************************************************************************/ | |
37 | 31/*·Defined·to·1·if·inline·is·enabled·*/ | ||
38 | 32#define·SILLY_OPT_INLINE·1 | ||
36 | 30 | ||
37 | 31//·Start·of·section·namespace·SILLY | ||
38 | 32namespace·SILLY | ||
39 | 33 | 39 | 33 |
40 | 34 | ||
41 | 3 | 40 | 34/*·Defined·to·1·if·debug·is·enabled·*/ |
41 | 35/*·#undef·SILLY_OPT_DEBUG·*/ | ||
42 | 36 | 42 | 36 |
43 | 37·return·d_imageContext·&&·d_pixels; | ||
44 | 3 | 43 | 37/*·Defined·to·1·if·profile·is·enabled·*/ |
44 | 38/*·#undef·SILLY_OPT_PROFILE·*/ | ||
45 | 39 | 45 | 39 |
46 | 40inline·size_t·Image::getWidth()·const | ||
47 | 41{ | ||
48 | 42·return·d_imageContext->getWidth(); | ||
49 | 43} | ||
50 | 44 | ||
51 | 45inline·size_t·Image::getHeight()·const | ||
52 | 46{ | ||
53 | 47·return·d_imageContext->getHeight(); | ||
54 | 48} | ||
55 | 49 | ||
56 | 50inline·PixelFormat·Image::getSourcePixelFormat()·const | ||
57 | 51{ | ||
58 | 52·return·d_pfSource; | ||
59 | 53} | ||
60 | 54 | ||
61 | 55inline·PixelFormat·Image::getPixelFormat()·const | ||
62 | 56{ | ||
63 | 57·return·d_imageContext->getPixelFormat(); | ||
64 | 58} | ||
65 | 59 | ||
66 | 60inline·const·byte*·Image::getPixelsDataPtr()·const | ||
67 | 61{ | ||
68 | 62·return·d_pixels; | ||
69 | 63} | ||
70 | 64 | ||
71 | 65inline·size_t·Image::getPixelsDataSize()·const | ||
72 | 66{ | ||
73 | 67·return·getWidth()·*·getHeight()·*·d_bpp; | ||
74 | 68} | ||
75 | 69 | ||
76 | 70inline·Image::~Image() | ||
77 | 71{ | ||
78 | 72·delete·[]·d_pixels; | ||
79 | 73·if·(d_imageLoader) | ||
80 | 74·d_imageLoader->destroyContext(d_imageContext); | ||
81 | 75} | ||
82 | 76inline·const·char*·Image::getLoaderIdentifierString()·const | ||
83 | 77{ | ||
84 | 78·if·(d_imageLoader) | ||
85 | 79·return·d_imageLoader->getIdentifierString(); | ||
86 | 80·return·0; | ||
87 | 81} | ||
88 | 82 | ||
89 | 83}·//·End·of·section·namespace·SILLY | ||
90 | 84 | ||
91 | =============================================================================== | 46 | =============================================================================== |
92 | ·····Generated·by _\x8[_\x8d_\x8o_\x8x_\x8y_\x8g_\x8e_\x8n_\x8]·1.9.8 | 47 | ·····Generated·by _\x8[_\x8d_\x8o_\x8x_\x8y_\x8g_\x8e_\x8n_\x8]·1.9.8 |
Offset 1, 15 lines modified | Offset 1, 15 lines modified | ||
1 | <!DOCTYPE·html·PUBLIC·"-//W3C//DTD·XHTML·1.0·Transitional//EN"·"https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> | 1 | <!DOCTYPE·html·PUBLIC·"-//W3C//DTD·XHTML·1.0·Transitional//EN"·"https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> |
2 | <html·xmlns="http://www.w3.org/1999/xhtml"·lang="en-US"> | 2 | <html·xmlns="http://www.w3.org/1999/xhtml"·lang="en-US"> |
3 | <head> | 3 | <head> |
4 | <meta·http-equiv="Content-Type"·content="text/xhtml;charset=UTF-8"/> | 4 | <meta·http-equiv="Content-Type"·content="text/xhtml;charset=UTF-8"/> |
5 | <meta·http-equiv="X-UA-Compatible"·content="IE=11"/> | 5 | <meta·http-equiv="X-UA-Compatible"·content="IE=11"/> |
6 | <meta·name="generator"·content="Doxygen·1.9.8"/> | 6 | <meta·name="generator"·content="Doxygen·1.9.8"/> |
7 | <meta·name="viewport"·content="width=device-width,·initial-scale=1"/> | 7 | <meta·name="viewport"·content="width=device-width,·initial-scale=1"/> |
8 | <title>Simple·Image·Loading·LibrarY:·/build/reproducible-path/silly-0.1.0/include/SILLY | 8 | <title>Simple·Image·Loading·LibrarY:·/build/reproducible-path/silly-0.1.0/include/SILLYDataSource.h·Source·File</title> |
9 | <link·href="tabs.css"·rel="stylesheet"·type="text/css"/> | 9 | <link·href="tabs.css"·rel="stylesheet"·type="text/css"/> |
10 | <script·type="text/javascript"·src="jquery.js"></script> | 10 | <script·type="text/javascript"·src="jquery.js"></script> |
11 | <script·type="text/javascript"·src="dynsections.js"></script> | 11 | <script·type="text/javascript"·src="dynsections.js"></script> |
12 | <link·href="doxygen.css"·rel="stylesheet"·type="text/css"·/> | 12 | <link·href="doxygen.css"·rel="stylesheet"·type="text/css"·/> |
13 | </head> | 13 | </head> |
14 | <body> | 14 | <body> |
15 | <div·id="top"><!--·do·not·remove·this·div,·it·is·closed·by·doxygen!·--> | 15 | <div·id="top"><!--·do·not·remove·this·div,·it·is·closed·by·doxygen!·--> |
Offset 44, 56 lines modified | Offset 44, 79 lines modified | ||
44 | </script> | 44 | </script> |
45 | <div·id="nav-path"·class="navpath"> | 45 | <div·id="nav-path"·class="navpath"> |
46 | ··<ul> | 46 | ··<ul> |
47 | <li·class="navelem"><a·class="el"·href="dir_4fef79e7177ba769987a8da36c892c5f.html">build</a></li><li·class="navelem"><a·class="el"·href="dir_9def6061848686aab7e6212bb499d615.html">reproducible-path</a></li><li·class="navelem"><a·class="el"·href="dir_74170d5b58cefb7cb5a86fc552b183a3.html">silly-0.1.0</a></li><li·class="navelem"><a·class="el"·href="dir_0d87e2e7ddaae8a2a8572c0afc59fe0d.html">include</a></li>··</ul> | 47 | <li·class="navelem"><a·class="el"·href="dir_4fef79e7177ba769987a8da36c892c5f.html">build</a></li><li·class="navelem"><a·class="el"·href="dir_9def6061848686aab7e6212bb499d615.html">reproducible-path</a></li><li·class="navelem"><a·class="el"·href="dir_74170d5b58cefb7cb5a86fc552b183a3.html">silly-0.1.0</a></li><li·class="navelem"><a·class="el"·href="dir_0d87e2e7ddaae8a2a8572c0afc59fe0d.html">include</a></li>··</ul> |
48 | </div> | 48 | </div> |
49 | </div><!--·top·--> | 49 | </div><!--·top·--> |
50 | <div·class="header"> | 50 | <div·class="header"> |
51 | ··<div·class="headertitle"><div·class="title">SILLY | 51 | ··<div·class="headertitle"><div·class="title">SILLYDataSource.h</div></div> |
52 | </div><!--header--> | 52 | </div><!--header--> |
53 | <div·class="contents"> | 53 | <div·class="contents"> |
54 | <div·class="fragment"><div·class="line"><a·id="l00001"·name="l00001"></a><span·class="lineno">····1</span><span·class="comment">/*·include/SILLYOptions.h.··Generated·from·SILLYOptions.h.in·by·configure.··*/</span></div> | ||
55 | <div·class="line"><a·id="l0000 | 54 | <div·class="fragment"><div·class="line"><a·id="l00001"·name="l00001"></a><span·class="lineno">····1</span><span·class="comment">/***********************************************************************</span></div> |
56 | <div·class="line"><a·id="l0000 | 55 | <div·class="line"><a·id="l00002"·name="l00002"></a><span·class="lineno">····2</span><span·class="comment">····filename:···SILLYDataSource.h</span></div> |
57 | <div·class="line"><a·id="l0000 | 56 | <div·class="line"><a·id="l00003"·name="l00003"></a><span·class="lineno">····3</span><span·class="comment">····created:····10·Jun·2006</span></div> |
58 | <div·class="line"><a·id="l0000 | 57 | <div·class="line"><a·id="l00004"·name="l00004"></a><span·class="lineno">····4</span><span·class="comment">····author:·····Olivier·Delannoy·</span></div> |
59 | <div·class="line"><a·id="l0000 | 58 | <div·class="line"><a·id="l00005"·name="l00005"></a><span·class="lineno">····5</span><span·class="comment"></span>·</div> |
60 | <div·class="line"><a·id="l0000 | 59 | <div·class="line"><a·id="l00006"·name="l00006"></a><span·class="lineno">····6</span><span·class="comment">····purpose:····SILLY::DataSource·declaration·for·the·SILLY·library·</span></div> |
60 | <div·class="line"><a·id="l00007"·name="l00007"></a><span·class="lineno">····7</span><span·class="comment">*************************************************************************/</span></div> | ||
61 | <div·class="line"><a·id="l00008"·name="l00008"></a><span·class="lineno">····8</span><span·class="comment">************************************************************************* | 61 | <div·class="line"><a·id="l00008"·name="l00008"></a><span·class="lineno">····8</span><span·class="comment">/***************************************************************************</span></div> |
62 | <div·class="line"><a·id="l00009"·name="l00009"></a><span·class="lineno">····9</span><span·class="comment">/***************************************************************************</span></div> | ||
63 | <div·class="line"><a·id="l000 | 62 | <div·class="line"><a·id="l00009"·name="l00009"></a><span·class="lineno">····9</span><span·class="comment">·*···Copyright·(C)·2004·-·2006·Paul·D·Turner·&·The·CEGUI·Development·Team</span></div> |
64 | <div·class="line"><a·id="l0001 | 63 | <div·class="line"><a·id="l00010"·name="l00010"></a><span·class="lineno">···10</span><span·class="comment">·*</span></div> |
65 | <div·class="line"><a·id="l0001 | 64 | <div·class="line"><a·id="l00011"·name="l00011"></a><span·class="lineno">···11</span><span·class="comment">·*···Permission·is·hereby·granted,·free·of·charge,·to·any·person·obtaining</span></div> |
66 | <div·class="line"><a·id="l0001 | 65 | <div·class="line"><a·id="l00012"·name="l00012"></a><span·class="lineno">···12</span><span·class="comment">·*···a·copy·of·this·software·and·associated·documentation·files·(the</span></div> |
67 | <div·class="line"><a·id="l0001 | 66 | <div·class="line"><a·id="l00013"·name="l00013"></a><span·class="lineno">···13</span><span·class="comment">·*···"Software"),·to·deal·in·the·Software·without·restriction,·including</span></div> |
68 | <div·class="line"><a·id="l0001 | 67 | <div·class="line"><a·id="l00014"·name="l00014"></a><span·class="lineno">···14</span><span·class="comment">·*···without·limitation·the·rights·to·use,·copy,·modify,·merge,·publish,</span></div> |
69 | <div·class="line"><a·id="l0001 | 68 | <div·class="line"><a·id="l00015"·name="l00015"></a><span·class="lineno">···15</span><span·class="comment">·*···distribute,·sublicense,·and/or·sell·copies·of·the·Software,·and·to</span></div> |
70 | <div·class="line"><a·id="l0001 | 69 | <div·class="line"><a·id="l00016"·name="l00016"></a><span·class="lineno">···16</span><span·class="comment">·*···permit·persons·to·whom·the·Software·is·furnished·to·do·so,·subject·to</span></div> |
71 | <div·class="line"><a·id="l0001 | 70 | <div·class="line"><a·id="l00017"·name="l00017"></a><span·class="lineno">···17</span><span·class="comment">·*···the·following·conditions:</span></div> |
72 | <div·class="line"><a·id="l0001 | 71 | <div·class="line"><a·id="l00018"·name="l00018"></a><span·class="lineno">···18</span><span·class="comment">·*</span></div> |
73 | <div·class="line"><a·id="l000 | 72 | <div·class="line"><a·id="l00019"·name="l00019"></a><span·class="lineno">···19</span><span·class="comment">·*···The·above·copyright·notice·and·this·permission·notice·shall·be</span></div> |
74 | <div·class="line"><a·id="l0002 | 73 | <div·class="line"><a·id="l00020"·name="l00020"></a><span·class="lineno">···20</span><span·class="comment">·*···included·in·all·copies·or·substantial·portions·of·the·Software.</span></div> |
75 | <div·class="line"><a·id="l0002 | 74 | <div·class="line"><a·id="l00021"·name="l00021"></a><span·class="lineno">···21</span><span·class="comment">·*</span></div> |
76 | <div·class="line"><a·id="l0002 | 75 | <div·class="line"><a·id="l00022"·name="l00022"></a><span·class="lineno">···22</span><span·class="comment">·*···THE·SOFTWARE·IS·PROVIDED·"AS·IS",·WITHOUT·WARRANTY·OF·ANY·KIND,</span></div> |
77 | <div·class="line"><a·id="l0002 | 76 | <div·class="line"><a·id="l00023"·name="l00023"></a><span·class="lineno">···23</span><span·class="comment">·*···EXPRESS·OR·IMPLIED,·INCLUDING·BUT·NOT·LIMITED·TO·THE·WARRANTIES·OF</span></div> |
78 | <div·class="line"><a·id="l0002 | 77 | <div·class="line"><a·id="l00024"·name="l00024"></a><span·class="lineno">···24</span><span·class="comment">·*···MERCHANTABILITY,·FITNESS·FOR·A·PARTICULAR·PURPOSE·AND·NONINFRINGEMENT.</span></div> |
79 | <div·class="line"><a·id="l0002 | 78 | <div·class="line"><a·id="l00025"·name="l00025"></a><span·class="lineno">···25</span><span·class="comment">·*···IN·NO·EVENT·SHALL·THE·AUTHORS·BE·LIABLE·FOR·ANY·CLAIM,·DAMAGES·OR</span></div> |
80 | <div·class="line"><a·id="l0002 | 79 | <div·class="line"><a·id="l00026"·name="l00026"></a><span·class="lineno">···26</span><span·class="comment">·*···OTHER·LIABILITY,·WHETHER·IN·AN·ACTION·OF·CONTRACT,·TORT·OR·OTHERWISE,</span></div> |
81 | <div·class="line"><a·id="l0002 | 80 | <div·class="line"><a·id="l00027"·name="l00027"></a><span·class="lineno">···27</span><span·class="comment">·*···ARISING·FROM,·OUT·OF·OR·IN·CONNECTION·WITH·THE·SOFTWARE·OR·THE·USE·OR</span></div> |
82 | <div·class="line"><a·id="l0002 | 81 | <div·class="line"><a·id="l00028"·name="l00028"></a><span·class="lineno">···28</span><span·class="comment">·*···OTHER·DEALINGS·IN·THE·SOFTWARE.</span></div> |
83 | <div·class="line"><a·id="l000 | 82 | <div·class="line"><a·id="l00029"·name="l00029"></a><span·class="lineno">···29</span><span·class="comment">·***************************************************************************/</span></div> |
84 | <div·class="line"><a·id="l0003 | 83 | <div·class="line"><a·id="l00030"·name="l00030"></a><span·class="lineno">···30</span><span·class="preprocessor">#ifndef·_SILLYDataSource_h_·</span></div> |
85 | <div·class="line"><a·id="l0003 | 84 | <div·class="line"><a·id="l00031"·name="l00031"></a><span·class="lineno">···31</span><span·class="preprocessor">#define·_SILLYDataSource_h_</span></div> |
85 | <div·class="line"><a·id="l00032"·name="l00032"></a><span·class="lineno">···32</span><span·class="preprocessor">#include·"SILLYBase.h"</span>·</div> | ||
86 | <div·class="line"><a·id="l00033"·name="l00033"></a><span·class="lineno">···33</span>·</div> | 86 | <div·class="line"><a·id="l00033"·name="l00033"></a><span·class="lineno">···33</span>·</div> |
87 | <div·class="line"><a·id="l00034"·name="l00034"></a><span·class="lineno">···34</span><span·class="comment">/*·Defined·to·1·if·debug·is·enabled·*/</span>·</div> | ||
88 | <div·class="line"><a·id="l0003 | 87 | <div·class="line"><a·id="l00034"·name="l00034"></a><span·class="lineno">···34</span><span·class="comment">//·Start·of·section·namespace·SILLY·</span></div> |
88 | <div·class="line"><a·id="l00035"·name="l00035"></a><span·class="lineno">···35</span><span·class="keyword">namespace·</span><a·class="code·hl_namespace"·href="a00129.html">SILLY</a></div> | ||
89 | <div·class="line"><a·id="l00036"·name="l00036"></a><span·class="lineno">···36</span> | 89 | <div·class="line"><a·id="l00036"·name="l00036"></a><span·class="lineno">···36</span>{</div> |
90 | <div·class="line"><a·id="l00037"·name="l00037"></a><span·class="lineno">···37</span><span·class="comment">/*·Defined·to·1·if·profile·is·enabled·*/</span>·</div> | ||
91 | <div·class="line"><a·id="l00038"·name="l00038"></a><span·class="lineno">···38</span><span·class="comment">/*·#undef·SILLY_OPT_PROFILE·*/</span></div> | ||
92 | <div·class="line"><a·id="l0003 | 90 | <div·class="line"><a·id="l00037"·name="l00037"></a><span·class="lineno">···37</span>·</div> |
91 | <div·class="foldopen"·id="foldopen00046"·data-start="{"·data-end="};"> | ||
92 | <div·class="line"><a·id="l00046"·name="l00046"></a><span·class="lineno"><a·class="line"·href="a00969.html">···46</a></span><span·class="keyword">class·</span>SILLY_EXPORT·<a·class="code·hl_class"·href="a00969.html">DataSource</a></div> | ||
93 | <div·class="line"><a·id="l00047"·name="l00047"></a><span·class="lineno">···47</span>{</div> | ||
94 | <div·class="line"><a·id="l00048"·name="l00048"></a><span·class="lineno">···48</span><span·class="keyword">public</span>:</div> | ||
95 | <div·class="line"><a·id="l00053"·name="l00053"></a><span·class="lineno"><a·class="line"·href="a00969.html#afef9864fc5e1bee97a7ce05a274d8006">···53</a></span>··<span·class="keyword">virtual</span>·<a·class="code·hl_function"·href="a00969.html#afef9864fc5e1bee97a7ce05a274d8006">~DataSource</a>();</div> | ||
96 | <div·class="line"><a·id="l00058"·name="l00058"></a><span·class="lineno"><a·class="line"·href="a00969.html#a3ae74c9d90450a3d9aa45191e1c21c13">···58</a></span>··<span·class="keyword">virtual</span>·<span·class="keyword">const</span>·<span·class="keywordtype">byte</span>·*·<a·class="code·hl_function"·href="a00969.html#a3ae74c9d90450a3d9aa45191e1c21c13">getDataPtr</a>()·<span·class="keyword">const</span>·=·0;</div> | ||
97 | <div·class="line"><a·id="l00064"·name="l00064"></a><span·class="lineno"><a·class="line"·href="a00969.html#a247628cbb1ca21f3a3d427b6350fe696">···64</a></span>··<span·class="keywordtype">byte</span>·operator[]·(<span·class="keywordtype">size_t</span>·offset)·<span·class="keyword">const</span>;</div> | ||
98 | <div·class="line"><a·id="l00069"·name="l00069"></a><span·class="lineno"><a·class="line"·href="a00969.html#a319cde5b2ea76e92e922845ecfa5c615">···69</a></span>··<span·class="keyword">virtual</span>·<span·class="keywordtype">size_t</span>·<a·class="code·hl_function"·href="a00969.html#a319cde5b2ea76e92e922845ecfa5c615">getSize</a>()·<span·class="keyword">const</span>·=·0;</div> | ||
99 | <div·class="line"><a·id="l00070"·name="l00070"></a><span·class="lineno">···70</span>};</div> | ||
100 | </div> | ||
101 | <div·class="line"><a·id="l00071"·name="l00071"></a><span·class="lineno">···71</span>··</div> | ||
102 | <div·class="line"><a·id="l00072"·name="l00072"></a><span·class="lineno">···72</span>··</div> | ||
103 | <div·class="line"><a·id="l00073"·name="l00073"></a><span·class="lineno">···73</span>}·<span·class="comment">//·End·of·section·namespace·SILLY·</span></div> | ||
104 | <div·class="line"><a·id="l00074"·name="l00074"></a><span·class="lineno">···74</span>·</div> | ||
105 | <div·class="line"><a·id="l00075"·name="l00075"></a><span·class="lineno">···75</span><span·class="comment">//·Inclue·inline·function·when·needed·</span></div> | ||
106 | <div·class="line"><a·id="l00076"·name="l00076"></a><span·class="lineno">···76</span><span·class="preprocessor">#ifdef·SILLY_OPT_INLINE</span></div> | ||
107 | <div·class="line"><a·id="l00077"·name="l00077"></a><span·class="lineno">···77</span><span·class="preprocessor">#include·"SILLYDataSource.icpp"</span></div> | ||
108 | <div·class="line"><a·id="l00078"·name="l00078"></a><span·class="lineno">···78</span><span·class="preprocessor">#endif·</span></div> | ||
109 | <div·class="line"><a·id="l00079"·name="l00079"></a><span·class="lineno">···79</span>·</div> | ||
110 | <div·class="line"><a·id="l00080"·name="l00080"></a><span·class="lineno">···80</span><span·class="preprocessor">#endif·</span><span·class="comment">//·end·of·guard·_SILLYDataSource_h_</span></div> | ||
111 | <div·class="ttc"·id="aa00129_html"><div·class="ttname"><a·href="a00129.html">SILLY</a></div><div·class="ttdoc">Simple·Image·Loading·LibrarY·namespace.</div><div·class="ttdef"><b>Definition</b>·<a·href="a00023_source.html#l00045">SILLYJPGImageContext.cpp:46</a></div></div> | ||
112 | <div·class="ttc"·id="aa00969_html"><div·class="ttname"><a·href="a00969.html">SILLY::DataSource</a></div><div·class="ttdoc">This·is·an·abstract·class·used·to·provide·data·to·the·loader.</div><div·class="ttdef"><b>Definition</b>·<a·href="a00083_source.html#l00046">SILLYDataSource.h:47</a></div></div> | ||
113 | <div·class="ttc"·id="aa00969_html_a319cde5b2ea76e92e922845ecfa5c615"><div·class="ttname"><a·href="a00969.html#a319cde5b2ea76e92e922845ecfa5c615">SILLY::DataSource::getSize</a></div><div·class="ttdeci">virtual·size_t·getSize()·const·=0</div><div·class="ttdoc">Return·the·size·of·the·data.</div></div> | ||
114 | <div·class="ttc"·id="aa00969_html_a3ae74c9d90450a3d9aa45191e1c21c13"><div·class="ttname"><a·href="a00969.html#a3ae74c9d90450a3d9aa45191e1c21c13">SILLY::DataSource::getDataPtr</a></div><div·class="ttdeci">virtual·const·byte·*·getDataPtr()·const·=0</div><div·class="ttdoc">Get·raw·access·to·the·image·data.</div></div> | ||
115 | <div·class="ttc"·id="aa00969_html_afef9864fc5e1bee97a7ce05a274d8006"><div·class="ttname"><a·href="a00969.html#afef9864fc5e1bee97a7ce05a274d8006">SILLY::DataSource::~DataSource</a></div><div·class="ttdeci">virtual·~DataSource()</div><div·class="ttdoc">Destructor.</div></div> | ||
93 | </div><!--·fragment·--></div><!--·contents·--> | 116 | </div><!--·fragment·--></div><!--·contents·--> |
94 | <!--·start·footer·part·--> | 117 | <!--·start·footer·part·--> |
95 | <hr·class="footer"/><address·class="footer"><small> | 118 | <hr·class="footer"/><address·class="footer"><small> |
96 | Generated·by <a·href="https://www.doxygen.org/index.html"><img·class="footer"·src="doxygen.svg"·width="104"·height="31"·alt="doxygen"/></a>·1.9.8 | 119 | Generated·by <a·href="https://www.doxygen.org/index.html"><img·class="footer"·src="doxygen.svg"·width="104"·height="31"·alt="doxygen"/></a>·1.9.8 |
97 | </small></address> | 120 | </small></address> |
98 | </body> | 121 | </body> |
99 | </html> | 122 | </html> |
Offset 1, 47 lines modified | Offset 1, 78 lines modified | ||
1 | Simple·Image·Loading·LibrarY 0.1.0 | 1 | Simple·Image·Loading·LibrarY 0.1.0 |
2 | ····*·_\x8b_\x8u_\x8i_\x8l_\x8d | 2 | ····*·_\x8b_\x8u_\x8i_\x8l_\x8d |
3 | ····*·_\x8r_\x8e_\x8p_\x8r_\x8o_\x8d_\x8u_\x8c_\x8i_\x8b_\x8l_\x8e_\x8-_\x8p_\x8a_\x8t_\x8h | 3 | ····*·_\x8r_\x8e_\x8p_\x8r_\x8o_\x8d_\x8u_\x8c_\x8i_\x8b_\x8l_\x8e_\x8-_\x8p_\x8a_\x8t_\x8h |
4 | ····*·_\x8s_\x8i_\x8l_\x8l_\x8y_\x8-_\x80_\x8._\x81_\x8._\x80 | 4 | ····*·_\x8s_\x8i_\x8l_\x8l_\x8y_\x8-_\x80_\x8._\x81_\x8._\x80 |
5 | ····*·_\x8i_\x8n_\x8c_\x8l_\x8u_\x8d_\x8e | 5 | ····*·_\x8i_\x8n_\x8c_\x8l_\x8u_\x8d_\x8e |
6 | SILLYDataSource.h | ||
6 | SILLYOptions.h | ||
7 | 1/*·include/SILLYOptions.h.·Generated·from·SILLYOptions.h.in·by·configure.·*/ | ||
8 | 7 | 1/*********************************************************************** | |
9 | 3·filename:·SILLYOptions.h.in | ||
10 | 8 | 2·filename:·SILLYDataSource.h | |
9 | 3·created:·10·Jun·2006 | ||
11 | 10 | 4·author:·Olivier·Delannoy | |
12 | 6 | ||
13 | 11 | 5 | |
12 | 6·purpose:·SILLY::DataSource·declaration·for·the·SILLY·library | ||
14 | 13 | 7*************************************************************************/ | |
15 | 14 | 8/*************************************************************************** | |
16 | 15 | 9·*·Copyright·(C)·2004·-·2006·Paul·D·Turner·&·The·CEGUI·Development·Team | |
17 | 1 | 16 | 10·* |
18 | 1 | 17 | 11·*·Permission·is·hereby·granted,·free·of·charge,·to·any·person·obtaining |
19 | 1 | 18 | 12·*·a·copy·of·this·software·and·associated·documentation·files·(the |
20 | 1 | 19 | 13·*·"Software"),·to·deal·in·the·Software·without·restriction,·including |
21 | 1 | 20 | 14·*·without·limitation·the·rights·to·use,·copy,·modify,·merge,·publish, |
22 | 1 | 21 | 15·*·distribute,·sublicense,·and/or·sell·copies·of·the·Software,·and·to |
23 | 1 | 22 | 16·*·permit·persons·to·whom·the·Software·is·furnished·to·do·so,·subject·to |
24 | 1 | 23 | 17·*·the·following·conditions: |
25 | 1 | 24 | 18·* |
26 | 25 | 19·*·The·above·copyright·notice·and·this·permission·notice·shall·be | |
27 | 2 | 26 | 20·*·included·in·all·copies·or·substantial·portions·of·the·Software. |
28 | 2 | 27 | 21·* |
29 | 2 | 28 | 22·*·THE·SOFTWARE·IS·PROVIDED·"AS·IS",·WITHOUT·WARRANTY·OF·ANY·KIND, |
30 | 2 | 29 | 23·*·EXPRESS·OR·IMPLIED,·INCLUDING·BUT·NOT·LIMITED·TO·THE·WARRANTIES·OF |
31 | 2 | 30 | 24·*·MERCHANTABILITY,·FITNESS·FOR·A·PARTICULAR·PURPOSE·AND·NONINFRINGEMENT. |
32 | 2 | 31 | 25·*·IN·NO·EVENT·SHALL·THE·AUTHORS·BE·LIABLE·FOR·ANY·CLAIM,·DAMAGES·OR |
33 | 2 | 32 | 26·*·OTHER·LIABILITY,·WHETHER·IN·AN·ACTION·OF·CONTRACT,·TORT·OR·OTHERWISE, |
34 | 2 | 33 | 27·*·ARISING·FROM,·OUT·OF·OR·IN·CONNECTION·WITH·THE·SOFTWARE·OR·THE·USE·OR |
35 | 2 | 34 | 28·*·OTHER·DEALINGS·IN·THE·SOFTWARE. |
36 | 35 | 29·***************************************************************************/ | |
37 | 31/*·Defined·to·1·if·inline·is·enabled·*/ | ||
38 | 3 | 36 | 30#ifndef·_SILLYDataSource_h_ |
37 | 31#define·_SILLYDataSource_h_ | ||
38 | 32#include·"SILLYBase.h" | ||
39 | 33 | 39 | 33 |
40 | 34/*·Defined·to·1·if·debug·is·enabled·*/ | ||
41 | 3 | 40 | 34//·Start·of·section·namespace·SILLY |
41 | 35namespace·_\x8S_\x8I_\x8L_\x8L_\x8Y | ||
42 | 36 | 42 | 36{ |
43 | 37/*·Defined·to·1·if·profile·is·enabled·*/ | ||
44 | 38/*·#undef·SILLY_OPT_PROFILE·*/ | ||
45 | 3 | 43 | 37 |
44 | _\x84_\x86class·SILLY_EXPORT·_\x8D_\x8a_\x8t_\x8a_\x8S_\x8o_\x8u_\x8r_\x8c_\x8e | ||
45 | 47{ | ||
46 | 48public: | ||
47 | _\x85_\x83·virtual·_\x8~_\x8D_\x8a_\x8t_\x8a_\x8S_\x8o_\x8u_\x8r_\x8c_\x8e(); | ||
48 | _\x85_\x88·virtual·const·byte·*·_\x8g_\x8e_\x8t_\x8D_\x8a_\x8t_\x8a_\x8P_\x8t_\x8r()·const·=·0; | ||
49 | _\x86_\x84·byte·operator[]·(size_t·offset)·const; | ||
50 | _\x86_\x89·virtual·size_t·_\x8g_\x8e_\x8t_\x8S_\x8i_\x8z_\x8e()·const·=·0; | ||
51 | 70}; | ||
52 | 71 | ||
53 | 72 | ||
54 | 73}·//·End·of·section·namespace·SILLY | ||
55 | 74 | ||
56 | 75//·Inclue·inline·function·when·needed | ||
57 | 76#ifdef·SILLY_OPT_INLINE | ||
58 | 77#include·"SILLYDataSource.icpp" | ||
59 | 78#endif | ||
60 | 79 | ||
61 | 80#endif·//·end·of·guard·_SILLYDataSource_h_ | ||
62 | _\x8S_\x8I_\x8L_\x8L_\x8Y | ||
63 | Simple·Image·Loading·LibrarY·namespace. | ||
64 | D\x8De\x8ef\x8fi\x8in\x8ni\x8it\x8ti\x8io\x8on\x8n·_\x8S_\x8I_\x8L_\x8L_\x8Y_\x8J_\x8P_\x8G_\x8I_\x8m_\x8a_\x8g_\x8e_\x8C_\x8o_\x8n_\x8t_\x8e_\x8x_\x8t_\x8._\x8c_\x8p_\x8p_\x8:_\x84_\x86 | ||
65 | _\x8S_\x8I_\x8L_\x8L_\x8Y_\x8:_\x8:_\x8D_\x8a_\x8t_\x8a_\x8S_\x8o_\x8u_\x8r_\x8c_\x8e | ||
66 | This·is·an·abstract·class·used·to·provide·data·to·the·loader. | ||
67 | D\x8De\x8ef\x8fi\x8in\x8ni\x8it\x8ti\x8io\x8on\x8n·_\x8S_\x8I_\x8L_\x8L_\x8Y_\x8D_\x8a_\x8t_\x8a_\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8._\x8h_\x8:_\x84_\x87 | ||
68 | _\x8S_\x8I_\x8L_\x8L_\x8Y_\x8:_\x8:_\x8D_\x8a_\x8t_\x8a_\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8:_\x8:_\x8g_\x8e_\x8t_\x8S_\x8i_\x8z_\x8e | ||
69 | virtual·size_t·getSize()·const·=0 | ||
70 | Return·the·size·of·the·data. | ||
71 | _\x8S_\x8I_\x8L_\x8L_\x8Y_\x8:_\x8:_\x8D_\x8a_\x8t_\x8a_\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8:_\x8:_\x8g_\x8e_\x8t_\x8D_\x8a_\x8t_\x8a_\x8P_\x8t_\x8r | ||
72 | virtual·const·byte·*·getDataPtr()·const·=0 | ||
73 | Get·raw·access·to·the·image·data. | ||
74 | _\x8S_\x8I_\x8L_\x8L_\x8Y_\x8:_\x8:_\x8D_\x8a_\x8t_\x8a_\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8:_\x8:_\x8~_\x8D_\x8a_\x8t_\x8a_\x8S_\x8o_\x8u_\x8r_\x8c_\x8e | ||
75 | virtual·~DataSource() | ||
76 | Destructor. | ||
46 | =============================================================================== | 77 | =============================================================================== |
47 | ·····Generated·by _\x8[_\x8d_\x8o_\x8x_\x8y_\x8g_\x8e_\x8n_\x8]·1.9.8 | 78 | ·····Generated·by _\x8[_\x8d_\x8o_\x8x_\x8y_\x8g_\x8e_\x8n_\x8]·1.9.8 |
Offset 1, 15 lines modified | Offset 1, 15 lines modified | ||
1 | <!DOCTYPE·html·PUBLIC·"-//W3C//DTD·XHTML·1.0·Transitional//EN"·"https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> | 1 | <!DOCTYPE·html·PUBLIC·"-//W3C//DTD·XHTML·1.0·Transitional//EN"·"https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> |
2 | <html·xmlns="http://www.w3.org/1999/xhtml"·lang="en-US"> | 2 | <html·xmlns="http://www.w3.org/1999/xhtml"·lang="en-US"> |
3 | <head> | 3 | <head> |
4 | <meta·http-equiv="Content-Type"·content="text/xhtml;charset=UTF-8"/> | 4 | <meta·http-equiv="Content-Type"·content="text/xhtml;charset=UTF-8"/> |
5 | <meta·http-equiv="X-UA-Compatible"·content="IE=11"/> | 5 | <meta·http-equiv="X-UA-Compatible"·content="IE=11"/> |
6 | <meta·name="generator"·content="Doxygen·1.9.8"/> | 6 | <meta·name="generator"·content="Doxygen·1.9.8"/> |
7 | <meta·name="viewport"·content="width=device-width,·initial-scale=1"/> | 7 | <meta·name="viewport"·content="width=device-width,·initial-scale=1"/> |
8 | <title>Simple·Image·Loading·LibrarY:·/build/reproducible-path/silly-0.1.0/include/SILLYDataSource. | 8 | <title>Simple·Image·Loading·LibrarY:·/build/reproducible-path/silly-0.1.0/include/SILLYMemoryDataSource.h·Source·File</title> |
9 | <link·href="tabs.css"·rel="stylesheet"·type="text/css"/> | 9 | <link·href="tabs.css"·rel="stylesheet"·type="text/css"/> |
10 | <script·type="text/javascript"·src="jquery.js"></script> | 10 | <script·type="text/javascript"·src="jquery.js"></script> |
11 | <script·type="text/javascript"·src="dynsections.js"></script> | 11 | <script·type="text/javascript"·src="dynsections.js"></script> |
12 | <link·href="doxygen.css"·rel="stylesheet"·type="text/css"·/> | 12 | <link·href="doxygen.css"·rel="stylesheet"·type="text/css"·/> |
13 | </head> | 13 | </head> |
14 | <body> | 14 | <body> |
15 | <div·id="top"><!--·do·not·remove·this·div,·it·is·closed·by·doxygen!·--> | 15 | <div·id="top"><!--·do·not·remove·this·div,·it·is·closed·by·doxygen!·--> |
Offset 44, 62 lines modified | Offset 44, 84 lines modified | ||
44 | </script> | 44 | </script> |
45 | <div·id="nav-path"·class="navpath"> | 45 | <div·id="nav-path"·class="navpath"> |
46 | ··<ul> | 46 | ··<ul> |
47 | <li·class="navelem"><a·class="el"·href="dir_4fef79e7177ba769987a8da36c892c5f.html">build</a></li><li·class="navelem"><a·class="el"·href="dir_9def6061848686aab7e6212bb499d615.html">reproducible-path</a></li><li·class="navelem"><a·class="el"·href="dir_74170d5b58cefb7cb5a86fc552b183a3.html">silly-0.1.0</a></li><li·class="navelem"><a·class="el"·href="dir_0d87e2e7ddaae8a2a8572c0afc59fe0d.html">include</a></li>··</ul> | 47 | <li·class="navelem"><a·class="el"·href="dir_4fef79e7177ba769987a8da36c892c5f.html">build</a></li><li·class="navelem"><a·class="el"·href="dir_9def6061848686aab7e6212bb499d615.html">reproducible-path</a></li><li·class="navelem"><a·class="el"·href="dir_74170d5b58cefb7cb5a86fc552b183a3.html">silly-0.1.0</a></li><li·class="navelem"><a·class="el"·href="dir_0d87e2e7ddaae8a2a8572c0afc59fe0d.html">include</a></li>··</ul> |
48 | </div> | 48 | </div> |
49 | </div><!--·top·--> | 49 | </div><!--·top·--> |
50 | <div·class="header"> | 50 | <div·class="header"> |
51 | ··<div·class="headertitle"><div·class="title">SILLYDataSource. | 51 | ··<div·class="headertitle"><div·class="title">SILLYMemoryDataSource.h</div></div> |
52 | </div><!--header--> | 52 | </div><!--header--> |
53 | <div·class="contents"> | 53 | <div·class="contents"> |
54 | <div·class="fragment"><div·class="line"><a·id="l00001"·name="l00001"></a><span·class="lineno">····1</span>/***********************************************************************</div> | 54 | <div·class="fragment"><div·class="line"><a·id="l00001"·name="l00001"></a><span·class="lineno">····1</span><span·class="comment">/***********************************************************************</span></div> |
55 | <div·class="line"><a·id="l00002"·name="l00002"></a><span·class="lineno">····2</span>····filename:···SILLYDataSource. | 55 | <div·class="line"><a·id="l00002"·name="l00002"></a><span·class="lineno">····2</span><span·class="comment">····filename:···SILLYMemoryDataSource.h</span></div> |
56 | <div·class="line"><a·id="l00003"·name="l00003"></a><span·class="lineno">····3</span>····created:····10·Jun·2006</div> | 56 | <div·class="line"><a·id="l00003"·name="l00003"></a><span·class="lineno">····3</span><span·class="comment">····created:····10·Jun·2006</span></div> |
57 | <div·class="line"><a·id="l00004"·name="l00004"></a><span·class="lineno">····4</span>····author:····· | 57 | <div·class="line"><a·id="l00004"·name="l00004"></a><span·class="lineno">····4</span><span·class="comment">····author:·····Olivier·Delannoy·</span></div> |
58 | <div·class="line"><a·id="l00005"·name="l00005"></a><span·class="lineno">····5</span>·</div> | 58 | <div·class="line"><a·id="l00005"·name="l00005"></a><span·class="lineno">····5</span><span·class="comment"></span>·</div> |
59 | <div·class="line"><a·id="l00006"·name="l00006"></a><span·class="lineno">····6</span>····purpose:····I | 59 | <div·class="line"><a·id="l00006"·name="l00006"></a><span·class="lineno">····6</span><span·class="comment">····purpose:····SILLYMemoryDataSource·declaration·for·the·SILLY·library·</span></div> |
60 | <div·class="line"><a·id="l00007"·name="l00007"></a><span·class="lineno">····7</span>*************************************************************************/</div> | 60 | <div·class="line"><a·id="l00007"·name="l00007"></a><span·class="lineno">····7</span><span·class="comment">*************************************************************************/</span></div> |
61 | <div·class="line"><a·id="l00008"·name="l00008"></a><span·class="lineno">····8</span>/***************************************************************************</div> | 61 | <div·class="line"><a·id="l00008"·name="l00008"></a><span·class="lineno">····8</span><span·class="comment">/***************************************************************************</span></div> |
62 | <div·class="line"><a·id="l00009"·name="l00009"></a><span·class="lineno">····9</span>·*···Copyright·(C)·2004·-·2006·Paul·D·Turner·&·The·CEGUI·Development·Team</div> | 62 | <div·class="line"><a·id="l00009"·name="l00009"></a><span·class="lineno">····9</span><span·class="comment">·*···Copyright·(C)·2004·-·2006·Paul·D·Turner·&·The·CEGUI·Development·Team</span></div> |
63 | <div·class="line"><a·id="l00010"·name="l00010"></a><span·class="lineno">···10</span>·*</div> | 63 | <div·class="line"><a·id="l00010"·name="l00010"></a><span·class="lineno">···10</span><span·class="comment">·*</span></div> |
64 | <div·class="line"><a·id="l00011"·name="l00011"></a><span·class="lineno">···11</span>·*···Permission·is·hereby·granted,·free·of·charge,·to·any·person·obtaining</div> | 64 | <div·class="line"><a·id="l00011"·name="l00011"></a><span·class="lineno">···11</span><span·class="comment">·*···Permission·is·hereby·granted,·free·of·charge,·to·any·person·obtaining</span></div> |
65 | <div·class="line"><a·id="l00012"·name="l00012"></a><span·class="lineno">···12</span>·*···a·copy·of·this·software·and·associated·documentation·files·(the</div> | 65 | <div·class="line"><a·id="l00012"·name="l00012"></a><span·class="lineno">···12</span><span·class="comment">·*···a·copy·of·this·software·and·associated·documentation·files·(the</span></div> |
66 | <div·class="line"><a·id="l00013"·name="l00013"></a><span·class="lineno">···13</span>·*···"Software"),·to·deal·in·the·Software·without·restriction,·including</div> | 66 | <div·class="line"><a·id="l00013"·name="l00013"></a><span·class="lineno">···13</span><span·class="comment">·*···"Software"),·to·deal·in·the·Software·without·restriction,·including</span></div> |
67 | <div·class="line"><a·id="l00014"·name="l00014"></a><span·class="lineno">···14</span>·*···without·limitation·the·rights·to·use,·copy,·modify,·merge,·publish,</div> | 67 | <div·class="line"><a·id="l00014"·name="l00014"></a><span·class="lineno">···14</span><span·class="comment">·*···without·limitation·the·rights·to·use,·copy,·modify,·merge,·publish,</span></div> |
68 | <div·class="line"><a·id="l00015"·name="l00015"></a><span·class="lineno">···15</span>·*···distribute,·sublicense,·and/or·sell·copies·of·the·Software,·and·to</div> | 68 | <div·class="line"><a·id="l00015"·name="l00015"></a><span·class="lineno">···15</span><span·class="comment">·*···distribute,·sublicense,·and/or·sell·copies·of·the·Software,·and·to</span></div> |
69 | <div·class="line"><a·id="l00016"·name="l00016"></a><span·class="lineno">···16</span>·*···permit·persons·to·whom·the·Software·is·furnished·to·do·so,·subject·to</div> | 69 | <div·class="line"><a·id="l00016"·name="l00016"></a><span·class="lineno">···16</span><span·class="comment">·*···permit·persons·to·whom·the·Software·is·furnished·to·do·so,·subject·to</span></div> |
70 | <div·class="line"><a·id="l00017"·name="l00017"></a><span·class="lineno">···17</span>·*···the·following·conditions:</div> | 70 | <div·class="line"><a·id="l00017"·name="l00017"></a><span·class="lineno">···17</span><span·class="comment">·*···the·following·conditions:</span></div> |
71 | <div·class="line"><a·id="l00018"·name="l00018"></a><span·class="lineno">···18</span>·*</div> | 71 | <div·class="line"><a·id="l00018"·name="l00018"></a><span·class="lineno">···18</span><span·class="comment">·*</span></div> |
72 | <div·class="line"><a·id="l00019"·name="l00019"></a><span·class="lineno">···19</span>·*···The·above·copyright·notice·and·this·permission·notice·shall·be</div> | 72 | <div·class="line"><a·id="l00019"·name="l00019"></a><span·class="lineno">···19</span><span·class="comment">·*···The·above·copyright·notice·and·this·permission·notice·shall·be</span></div> |
73 | <div·class="line"><a·id="l00020"·name="l00020"></a><span·class="lineno">···20</span>·*···included·in·all·copies·or·substantial·portions·of·the·Software.</div> | 73 | <div·class="line"><a·id="l00020"·name="l00020"></a><span·class="lineno">···20</span><span·class="comment">·*···included·in·all·copies·or·substantial·portions·of·the·Software.</span></div> |
74 | <div·class="line"><a·id="l00021"·name="l00021"></a><span·class="lineno">···21</span>·*</div> | 74 | <div·class="line"><a·id="l00021"·name="l00021"></a><span·class="lineno">···21</span><span·class="comment">·*</span></div> |
75 | <div·class="line"><a·id="l00022"·name="l00022"></a><span·class="lineno">···22</span>·*···THE·SOFTWARE·IS·PROVIDED·"AS·IS",·WITHOUT·WARRANTY·OF·ANY·KIND,</div> | 75 | <div·class="line"><a·id="l00022"·name="l00022"></a><span·class="lineno">···22</span><span·class="comment">·*···THE·SOFTWARE·IS·PROVIDED·"AS·IS",·WITHOUT·WARRANTY·OF·ANY·KIND,</span></div> |
76 | <div·class="line"><a·id="l00023"·name="l00023"></a><span·class="lineno">···23</span>·*···EXPRESS·OR·IMPLIED,·INCLUDING·BUT·NOT·LIMITED·TO·THE·WARRANTIES·OF</div> | 76 | <div·class="line"><a·id="l00023"·name="l00023"></a><span·class="lineno">···23</span><span·class="comment">·*···EXPRESS·OR·IMPLIED,·INCLUDING·BUT·NOT·LIMITED·TO·THE·WARRANTIES·OF</span></div> |
77 | <div·class="line"><a·id="l00024"·name="l00024"></a><span·class="lineno">···24</span>·*···MERCHANTABILITY,·FITNESS·FOR·A·PARTICULAR·PURPOSE·AND·NONINFRINGEMENT.</div> | 77 | <div·class="line"><a·id="l00024"·name="l00024"></a><span·class="lineno">···24</span><span·class="comment">·*···MERCHANTABILITY,·FITNESS·FOR·A·PARTICULAR·PURPOSE·AND·NONINFRINGEMENT.</span></div> |
78 | <div·class="line"><a·id="l00025"·name="l00025"></a><span·class="lineno">···25</span>·*···IN·NO·EVENT·SHALL·THE·AUTHORS·BE·LIABLE·FOR·ANY·CLAIM,·DAMAGES·OR</div> | 78 | <div·class="line"><a·id="l00025"·name="l00025"></a><span·class="lineno">···25</span><span·class="comment">·*···IN·NO·EVENT·SHALL·THE·AUTHORS·BE·LIABLE·FOR·ANY·CLAIM,·DAMAGES·OR</span></div> |
79 | <div·class="line"><a·id="l00026"·name="l00026"></a><span·class="lineno">···26</span>·*···OTHER·LIABILITY,·WHETHER·IN·AN·ACTION·OF·CONTRACT,·TORT·OR·OTHERWISE,</div> | 79 | <div·class="line"><a·id="l00026"·name="l00026"></a><span·class="lineno">···26</span><span·class="comment">·*···OTHER·LIABILITY,·WHETHER·IN·AN·ACTION·OF·CONTRACT,·TORT·OR·OTHERWISE,</span></div> |
80 | <div·class="line"><a·id="l00027"·name="l00027"></a><span·class="lineno">···27</span>·*···ARISING·FROM,·OUT·OF·OR·IN·CONNECTION·WITH·THE·SOFTWARE·OR·THE·USE·OR</div> | 80 | <div·class="line"><a·id="l00027"·name="l00027"></a><span·class="lineno">···27</span><span·class="comment">·*···ARISING·FROM,·OUT·OF·OR·IN·CONNECTION·WITH·THE·SOFTWARE·OR·THE·USE·OR</span></div> |
81 | <div·class="line"><a·id="l00028"·name="l00028"></a><span·class="lineno">···28</span>·*···OTHER·DEALINGS·IN·THE·SOFTWARE.</div> | 81 | <div·class="line"><a·id="l00028"·name="l00028"></a><span·class="lineno">···28</span><span·class="comment">·*···OTHER·DEALINGS·IN·THE·SOFTWARE.</span></div> |
82 | <div·class="line"><a·id="l00029"·name="l00029"></a><span·class="lineno">···29</span>·***************************************************************************/</div> | 82 | <div·class="line"><a·id="l00029"·name="l00029"></a><span·class="lineno">···29</span><span·class="comment">·***************************************************************************/</span></div> |
83 | <div·class="line"><a·id="l00030"·name="l00030"></a><span·class="lineno">···30</span>·</div> | 83 | <div·class="line"><a·id="l00030"·name="l00030"></a><span·class="lineno">···30</span><span·class="preprocessor">#ifndef·_SILLYMemoryDataSource_h_·</span></div> |
84 | <div·class="line"><a·id="l00031"·name="l00031"></a><span·class="lineno">···31</span><span·class="preprocessor">#define·_SILLYMemoryDataSource_h_</span></div> | ||
85 | <div·class="line"><a·id="l00032"·name="l00032"></a><span·class="lineno">···32</span><span·class="preprocessor">#include·"SILLYBase.h"</span>·</div> | ||
86 | <div·class="line"><a·id="l00033"·name="l00033"></a><span·class="lineno">···33</span><span·class="preprocessor">#include·"SILLYDataSource.h"</span>·</div> | ||
84 | <div·class="line"><a·id="l0003 | 87 | <div·class="line"><a·id="l00034"·name="l00034"></a><span·class="lineno">···34</span><span·class="comment">//·Start·of·section·namespace·SILLY·</span></div> |
88 | <div·class="line"><a·id="l00035"·name="l00035"></a><span·class="lineno">···35</span><span·class="keyword">namespace·</span><a·class="code·hl_namespace"·href="a00129.html">SILLY</a></div> | ||
85 | <div·class="line"><a·id="l00032"·name="l00032"></a><span·class="lineno">···32</span>namespace·SILLY</div> | ||
86 | <div·class="line"><a·id="l00033"·name="l00033"></a><span·class="lineno">···33</span>{</div> | ||
87 | <div·class="line"><a·id="l00034"·name="l00034"></a><span·class="lineno">···34</span>inline·DataSource::~DataSource()·</div> | ||
88 | <div·class="line"><a·id="l00035"·name="l00035"></a><span·class="lineno">···35</span>{</div> | ||
89 | <div·class="line"><a·id="l00036"·name="l00036"></a><span·class="lineno">···36</span> | 89 | <div·class="line"><a·id="l00036"·name="l00036"></a><span·class="lineno">···36</span>{</div> |
90 | <div·class="line"><a·id="l00037"·name="l00037"></a><span·class="lineno">···37</span>·</div> | 90 | <div·class="line"><a·id="l00037"·name="l00037"></a><span·class="lineno">···37</span>·</div> |
91 | <div·class=" | 91 | <div·class="foldopen"·id="foldopen00048"·data-start="{"·data-end="};"> |
92 | <div·class="line"><a·id="l00048"·name="l00048"></a><span·class="lineno"><a·class="line"·href="a00993.html">···48</a></span><span·class="keyword">class·</span>SILLY_EXPORT·<a·class="code·hl_class"·href="a00993.html">MemoryDataSource</a>·:·<span·class="keyword">public</span>·<a·class="code·hl_class"·href="a00969.html">DataSource</a>·</div> | ||
92 | <div·class="line"><a·id="l000 | 93 | <div·class="line"><a·id="l00049"·name="l00049"></a><span·class="lineno">···49</span>{</div> |
93 | <div·class="line"><a·id="l00040"·name="l00040"></a><span·class="lineno">···40</span>····assert(offset·<·getSize()·&&·"ASSERT:·Trying·to·access·pixel·outside·of·the·data");</div> | ||
94 | <div·class="line"><a·id="l00041"·name="l00041"></a><span·class="lineno">···41</span>····return·getDataPtr()[offset];</div> | ||
95 | <div·class="line"><a·id="l000 | 94 | <div·class="line"><a·id="l00050"·name="l00050"></a><span·class="lineno">···50</span><span·class="keyword">public</span>:</div> |
95 | <div·class="line"><a·id="l00063"·name="l00063"></a><span·class="lineno">···63</span>····<a·class="code·hl_class"·href="a00993.html">MemoryDataSource</a>(<span·class="keyword">const</span>·<span·class="keywordtype">byte</span>*·data,·<span·class="keywordtype">size_t</span>·size);</div> | ||
96 | <div·class="line"><a·id="l000 | 96 | <div·class="line"><a·id="l00064"·name="l00064"></a><span·class="lineno">···64</span>·</div> |
97 | <div·class="line"><a·id="l00044"·name="l00044"></a><span·class="lineno">···44</span>}·//·End·of·section·namespace·SILLY</div> | ||
98 | <div·class="line"><a·id="l000 | 97 | <div·class="line"><a·id="l00065"·name="l00065"></a><span·class="lineno">···65</span>·</div> |
98 | <div·class="line"><a·id="l00066"·name="l00066"></a><span·class="lineno"><a·class="line"·href="a00993.html#a363c71a270f739498e576e743cfa0d6e">···66</a></span>····<span·class="keyword">const</span>·<span·class="keywordtype">byte</span>*·<a·class="code·hl_function"·href="a00993.html#a363c71a270f739498e576e743cfa0d6e">getDataPtr</a>()·<span·class="keyword">const</span>;</div> | ||
99 | <div·class="line"><a·id="l00067"·name="l00067"></a><span·class="lineno">···67</span>·</div> | ||
100 | <div·class="line"><a·id="l00068"·name="l00068"></a><span·class="lineno"><a·class="line"·href="a00993.html#a9be1e4285daa77fe397767c097fbdc66">···68</a></span>····<span·class="keywordtype">size_t</span>·<a·class="code·hl_function"·href="a00993.html#a9be1e4285daa77fe397767c097fbdc66">getSize</a>()·<span·class="keyword">const</span>;</div> | ||
101 | <div·class="line"><a·id="l00069"·name="l00069"></a><span·class="lineno">···69</span><span·class="keyword">private</span>:</div> | ||
102 | <div·class="line"><a·id="l00070"·name="l00070"></a><span·class="lineno">···70</span>····<span·class="keyword">const</span>·<span·class="keywordtype">byte</span>*·d_bytes;···············</div> | ||
103 | <div·class="line"><a·id="l00071"·name="l00071"></a><span·class="lineno">···71</span>····<span·class="keywordtype">size_t</span>·d_size;··············</div> | ||
104 | <div·class="line"><a·id="l00072"·name="l00072"></a><span·class="lineno">···72</span>};</div> | ||
105 | </div> | ||
106 | <div·class="line"><a·id="l00073"·name="l00073"></a><span·class="lineno">···73</span>··</div> | ||
107 | <div·class="line"><a·id="l00074"·name="l00074"></a><span·class="lineno">···74</span>··</div> | ||
108 | <div·class="line"><a·id="l00075"·name="l00075"></a><span·class="lineno">···75</span>}·<span·class="comment">//·End·of·section·namespace·SILLY·</span></div> | ||
109 | <div·class="line"><a·id="l00076"·name="l00076"></a><span·class="lineno">···76</span>·</div> | ||
110 | <div·class="line"><a·id="l00077"·name="l00077"></a><span·class="lineno">···77</span><span·class="comment">//·Inclue·inline·function·when·needed·</span></div> | ||
111 | <div·class="line"><a·id="l00078"·name="l00078"></a><span·class="lineno">···78</span><span·class="preprocessor">#ifdef·SILLY_OPT_INLINE</span></div> | ||
112 | <div·class="line"><a·id="l00079"·name="l00079"></a><span·class="lineno">···79</span><span·class="preprocessor">#include·"SILLYMemoryDataSource.icpp"</span></div> | ||
113 | <div·class="line"><a·id="l00080"·name="l00080"></a><span·class="lineno">···80</span><span·class="preprocessor">#endif·</span></div> | ||
114 | <div·class="line"><a·id="l00081"·name="l00081"></a><span·class="lineno">···81</span>·</div> | ||
115 | <div·class="line"><a·id="l00082"·name="l00082"></a><span·class="lineno">···82</span><span·class="preprocessor">#endif·</span><span·class="comment">//·end·of·guard·_SILLYMemoryDataSource_h_</span></div> | ||
116 | <div·class="ttc"·id="aa00129_html"><div·class="ttname"><a·href="a00129.html">SILLY</a></div><div·class="ttdoc">Simple·Image·Loading·LibrarY·namespace.</div><div·class="ttdef"><b>Definition</b>·<a·href="a00023_source.html#l00045">SILLYJPGImageContext.cpp:46</a></div></div> | ||
117 | <div·class="ttc"·id="aa00969_html"><div·class="ttname"><a·href="a00969.html">SILLY::DataSource</a></div><div·class="ttdoc">This·is·an·abstract·class·used·to·provide·data·to·the·loader.</div><div·class="ttdef"><b>Definition</b>·<a·href="a00083_source.html#l00046">SILLYDataSource.h:47</a></div></div> | ||
118 | <div·class="ttc"·id="aa00993_html"><div·class="ttname"><a·href="a00993.html">SILLY::MemoryDataSource</a></div><div·class="ttdoc">Load·an·image·from·a·memory·area.</div><div·class="ttdef"><b>Definition</b>·<a·href="a00086_source.html#l00048">SILLYMemoryDataSource.h:49</a></div></div> | ||
119 | <div·class="ttc"·id="aa00993_html_a363c71a270f739498e576e743cfa0d6e"><div·class="ttname"><a·href="a00993.html#a363c71a270f739498e576e743cfa0d6e">SILLY::MemoryDataSource::getDataPtr</a></div><div·class="ttdeci">const·byte·*·getDataPtr()·const</div><div·class="ttdoc">Get·raw·access·to·the·image·data.</div></div> | ||
120 | <div·class="ttc"·id="aa00993_html_a9be1e4285daa77fe397767c097fbdc66"><div·class="ttname"><a·href="a00993.html#a9be1e4285daa77fe397767c097fbdc66">SILLY::MemoryDataSource::getSize</a></div><div·class="ttdeci">size_t·getSize()·const</div><div·class="ttdoc">Return·the·size·of·the·data.</div></div> | ||
99 | </div><!--·fragment·--></div><!--·contents·--> | 121 | </div><!--·fragment·--></div><!--·contents·--> |
100 | <!--·start·footer·part·--> | 122 | <!--·start·footer·part·--> |
101 | <hr·class="footer"/><address·class="footer"><small> | 123 | <hr·class="footer"/><address·class="footer"><small> |
102 | Generated·by <a·href="https://www.doxygen.org/index.html"><img·class="footer"·src="doxygen.svg"·width="104"·height="31"·alt="doxygen"/></a>·1.9.8 | 124 | Generated·by <a·href="https://www.doxygen.org/index.html"><img·class="footer"·src="doxygen.svg"·width="104"·height="31"·alt="doxygen"/></a>·1.9.8 |
103 | </small></address> | 125 | </small></address> |
104 | </body> | 126 | </body> |
105 | </html> | 127 | </html> |
Offset 1, 19 lines modified | Offset 1, 19 lines modified | ||
1 | Simple·Image·Loading·LibrarY 0.1.0 | 1 | Simple·Image·Loading·LibrarY 0.1.0 |
2 | ····*·_\x8b_\x8u_\x8i_\x8l_\x8d | 2 | ····*·_\x8b_\x8u_\x8i_\x8l_\x8d |
3 | ····*·_\x8r_\x8e_\x8p_\x8r_\x8o_\x8d_\x8u_\x8c_\x8i_\x8b_\x8l_\x8e_\x8-_\x8p_\x8a_\x8t_\x8h | 3 | ····*·_\x8r_\x8e_\x8p_\x8r_\x8o_\x8d_\x8u_\x8c_\x8i_\x8b_\x8l_\x8e_\x8-_\x8p_\x8a_\x8t_\x8h |
4 | ····*·_\x8s_\x8i_\x8l_\x8l_\x8y_\x8-_\x80_\x8._\x81_\x8._\x80 | 4 | ····*·_\x8s_\x8i_\x8l_\x8l_\x8y_\x8-_\x80_\x8._\x81_\x8._\x80 |
5 | ····*·_\x8i_\x8n_\x8c_\x8l_\x8u_\x8d_\x8e | 5 | ····*·_\x8i_\x8n_\x8c_\x8l_\x8u_\x8d_\x8e |
6 | SILLYDataSource. | 6 | SILLYMemoryDataSource.h |
7 | 1/*********************************************************************** | 7 | 1/*********************************************************************** |
8 | 2·filename:·SILLYDataSource. | 8 | 2·filename:·SILLYMemoryDataSource.h |
9 | 3·created:·10·Jun·2006 | 9 | 3·created:·10·Jun·2006 |
10 | 4·author:· | 10 | 4·author:·Olivier·Delannoy |
11 | 5 | 11 | 5 |
12 | 6·purpose:·I | 12 | 6·purpose:·SILLYMemoryDataSource·declaration·for·the·SILLY·library |
13 | 7*************************************************************************/ | 13 | 7*************************************************************************/ |
14 | 8/*************************************************************************** | 14 | 8/*************************************************************************** |
15 | 9·*·Copyright·(C)·2004·-·2006·Paul·D·Turner·&·The·CEGUI·Development·Team | 15 | 9·*·Copyright·(C)·2004·-·2006·Paul·D·Turner·&·The·CEGUI·Development·Team |
16 | 10·* | 16 | 10·* |
17 | 11·*·Permission·is·hereby·granted,·free·of·charge,·to·any·person·obtaining | 17 | 11·*·Permission·is·hereby·granted,·free·of·charge,·to·any·person·obtaining |
18 | 12·*·a·copy·of·this·software·and·associated·documentation·files·(the | 18 | 12·*·a·copy·of·this·software·and·associated·documentation·files·(the |
19 | 13·*·"Software"),·to·deal·in·the·Software·without·restriction,·including | 19 | 13·*·"Software"),·to·deal·in·the·Software·without·restriction,·including |
Offset 29, 26 lines modified | Offset 29, 55 lines modified | ||
29 | 23·*·EXPRESS·OR·IMPLIED,·INCLUDING·BUT·NOT·LIMITED·TO·THE·WARRANTIES·OF | 29 | 23·*·EXPRESS·OR·IMPLIED,·INCLUDING·BUT·NOT·LIMITED·TO·THE·WARRANTIES·OF |
30 | 24·*·MERCHANTABILITY,·FITNESS·FOR·A·PARTICULAR·PURPOSE·AND·NONINFRINGEMENT. | 30 | 24·*·MERCHANTABILITY,·FITNESS·FOR·A·PARTICULAR·PURPOSE·AND·NONINFRINGEMENT. |
31 | 25·*·IN·NO·EVENT·SHALL·THE·AUTHORS·BE·LIABLE·FOR·ANY·CLAIM,·DAMAGES·OR | 31 | 25·*·IN·NO·EVENT·SHALL·THE·AUTHORS·BE·LIABLE·FOR·ANY·CLAIM,·DAMAGES·OR |
32 | 26·*·OTHER·LIABILITY,·WHETHER·IN·AN·ACTION·OF·CONTRACT,·TORT·OR·OTHERWISE, | 32 | 26·*·OTHER·LIABILITY,·WHETHER·IN·AN·ACTION·OF·CONTRACT,·TORT·OR·OTHERWISE, |
33 | 27·*·ARISING·FROM,·OUT·OF·OR·IN·CONNECTION·WITH·THE·SOFTWARE·OR·THE·USE·OR | 33 | 27·*·ARISING·FROM,·OUT·OF·OR·IN·CONNECTION·WITH·THE·SOFTWARE·OR·THE·USE·OR |
34 | 28·*·OTHER·DEALINGS·IN·THE·SOFTWARE. | 34 | 28·*·OTHER·DEALINGS·IN·THE·SOFTWARE. |
35 | 29·***************************************************************************/ | 35 | 29·***************************************************************************/ |
36 | 30 | 36 | 30#ifndef·_SILLYMemoryDataSource_h_ |
37 | 31#define·_SILLYMemoryDataSource_h_ | ||
38 | 32#include·"SILLYBase.h" | ||
39 | 33#include·"SILLYDataSource.h" | ||
37 | 3 | 40 | 34//·Start·of·section·namespace·SILLY |
41 | 35namespace·_\x8S_\x8I_\x8L_\x8L_\x8Y | ||
42 | 36{ | ||
38 | 32namespace·SILLY | ||
39 | 33{ | ||
40 | 34inline·DataSource::~DataSource() | ||
41 | 35{ | ||
42 | 36} | ||
43 | 37 | 43 | 37 |
44 | 38inline·byte·DataSource::operator[](size_t·offset)·const | ||
45 | 39{ | ||
46 | 40·assert(offset·<·getSize()·&&·"ASSERT:·Trying·to·access·pixel·outside·of·the | ||
47 | data"); | ||
48 | 41·return·getDataPtr()[offset]; | ||
49 | 42} | ||
50 | 4 | 44 | _.4_.8class·SILLY_EXPORT·_.M_.e_.m_.o_.r_.y_.D_.a_.t_.a_.S_.o_.u_.r_.c_.e·:·public·_.D_.a_.t_.a_.S_.o_.u_.r_.c_.e |
45 | 49{ | ||
46 | 50public: | ||
47 | 63·_\x8M_\x8e_\x8m_\x8o_\x8r_\x8y_\x8D_\x8a_\x8t_\x8a_\x8S_\x8o_\x8u_\x8r_\x8c_\x8e(const·byte*·data,·size_t·size); | ||
48 | 64 | ||
49 | 65 | ||
50 | _\x86_\x86·const·byte*·_\x8g_\x8e_\x8t_\x8D_\x8a_\x8t_\x8a_\x8P_\x8t_\x8r()·const; | ||
51 | 67 | ||
52 | _\x86_\x88·size_t·_\x8g_\x8e_\x8t_\x8S_\x8i_\x8z_\x8e()·const; | ||
53 | 69private: | ||
54 | 70·const·byte*·d_bytes; | ||
55 | 71·size_t·d_size; | ||
56 | 72}; | ||
57 | 73 | ||
58 | 74 | ||
51 | 59 | 75}·//·End·of·section·namespace·SILLY | |
52 | 60 | 76 | |
61 | 77//·Inclue·inline·function·when·needed | ||
62 | 78#ifdef·SILLY_OPT_INLINE | ||
63 | 79#include·"SILLYMemoryDataSource.icpp" | ||
64 | 80#endif | ||
65 | 81 | ||
66 | 82#endif·//·end·of·guard·_SILLYMemoryDataSource_h_ | ||
67 | _\x8S_\x8I_\x8L_\x8L_\x8Y | ||
68 | Simple·Image·Loading·LibrarY·namespace. | ||
69 | D\x8De\x8ef\x8fi\x8in\x8ni\x8it\x8ti\x8io\x8on\x8n·_\x8S_\x8I_\x8L_\x8L_\x8Y_\x8J_\x8P_\x8G_\x8I_\x8m_\x8a_\x8g_\x8e_\x8C_\x8o_\x8n_\x8t_\x8e_\x8x_\x8t_\x8._\x8c_\x8p_\x8p_\x8:_\x84_\x86 | ||
70 | _\x8S_\x8I_\x8L_\x8L_\x8Y_\x8:_\x8:_\x8D_\x8a_\x8t_\x8a_\x8S_\x8o_\x8u_\x8r_\x8c_\x8e | ||
71 | This·is·an·abstract·class·used·to·provide·data·to·the·loader. | ||
72 | D\x8De\x8ef\x8fi\x8in\x8ni\x8it\x8ti\x8io\x8on\x8n·_\x8S_\x8I_\x8L_\x8L_\x8Y_\x8D_\x8a_\x8t_\x8a_\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8._\x8h_\x8:_\x84_\x87 | ||
73 | _\x8S_\x8I_\x8L_\x8L_\x8Y_\x8:_\x8:_\x8M_\x8e_\x8m_\x8o_\x8r_\x8y_\x8D_\x8a_\x8t_\x8a_\x8S_\x8o_\x8u_\x8r_\x8c_\x8e | ||
74 | Load·an·image·from·a·memory·area. | ||
75 | D\x8De\x8ef\x8fi\x8in\x8ni\x8it\x8ti\x8io\x8on\x8n·_\x8S_\x8I_\x8L_\x8L_\x8Y_\x8M_\x8e_\x8m_\x8o_\x8r_\x8y_\x8D_\x8a_\x8t_\x8a_\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8._\x8h_\x8:_\x84_\x89 | ||
76 | _\x8S_\x8I_\x8L_\x8L_\x8Y_\x8:_\x8:_\x8M_\x8e_\x8m_\x8o_\x8r_\x8y_\x8D_\x8a_\x8t_\x8a_\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8:_\x8:_\x8g_\x8e_\x8t_\x8D_\x8a_\x8t_\x8a_\x8P_\x8t_\x8r | ||
77 | const·byte·*·getDataPtr()·const | ||
78 | Get·raw·access·to·the·image·data. | ||
79 | _\x8S_\x8I_\x8L_\x8L_\x8Y_\x8:_\x8:_\x8M_\x8e_\x8m_\x8o_\x8r_\x8y_\x8D_\x8a_\x8t_\x8a_\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8:_\x8:_\x8g_\x8e_\x8t_\x8S_\x8i_\x8z_\x8e | ||
80 | size_t·getSize()·const | ||
81 | Return·the·size·of·the·data. | ||
53 | =============================================================================== | 82 | =============================================================================== |
54 | ·····Generated·by _\x8[_\x8d_\x8o_\x8x_\x8y_\x8g_\x8e_\x8n_\x8]·1.9.8 | 83 | ·····Generated·by _\x8[_\x8d_\x8o_\x8x_\x8y_\x8g_\x8e_\x8n_\x8]·1.9.8 |
Offset 1, 15 lines modified | Offset 1, 15 lines modified | ||
1 | <!DOCTYPE·html·PUBLIC·"-//W3C//DTD·XHTML·1.0·Transitional//EN"·"https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> | 1 | <!DOCTYPE·html·PUBLIC·"-//W3C//DTD·XHTML·1.0·Transitional//EN"·"https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> |
2 | <html·xmlns="http://www.w3.org/1999/xhtml"·lang="en-US"> | 2 | <html·xmlns="http://www.w3.org/1999/xhtml"·lang="en-US"> |
3 | <head> | 3 | <head> |
4 | <meta·http-equiv="Content-Type"·content="text/xhtml;charset=UTF-8"/> | 4 | <meta·http-equiv="Content-Type"·content="text/xhtml;charset=UTF-8"/> |
5 | <meta·http-equiv="X-UA-Compatible"·content="IE=11"/> | 5 | <meta·http-equiv="X-UA-Compatible"·content="IE=11"/> |
6 | <meta·name="generator"·content="Doxygen·1.9.8"/> | 6 | <meta·name="generator"·content="Doxygen·1.9.8"/> |
7 | <meta·name="viewport"·content="width=device-width,·initial-scale=1"/> | 7 | <meta·name="viewport"·content="width=device-width,·initial-scale=1"/> |
8 | <title>Simple·Image·Loading·LibrarY:·/build/reproducible-path/silly-0.1.0/include/SILLY | 8 | <title>Simple·Image·Loading·LibrarY:·/build/reproducible-path/silly-0.1.0/include/SILLYImageLoaderManager.h·Source·File</title> |
9 | <link·href="tabs.css"·rel="stylesheet"·type="text/css"/> | 9 | <link·href="tabs.css"·rel="stylesheet"·type="text/css"/> |
10 | <script·type="text/javascript"·src="jquery.js"></script> | 10 | <script·type="text/javascript"·src="jquery.js"></script> |
11 | <script·type="text/javascript"·src="dynsections.js"></script> | 11 | <script·type="text/javascript"·src="dynsections.js"></script> |
12 | <link·href="doxygen.css"·rel="stylesheet"·type="text/css"·/> | 12 | <link·href="doxygen.css"·rel="stylesheet"·type="text/css"·/> |
13 | </head> | 13 | </head> |
14 | <body> | 14 | <body> |
15 | <div·id="top"><!--·do·not·remove·this·div,·it·is·closed·by·doxygen!·--> | 15 | <div·id="top"><!--·do·not·remove·this·div,·it·is·closed·by·doxygen!·--> |
Offset 44, 23 lines modified | Offset 44, 23 lines modified | ||
44 | </script> | 44 | </script> |
45 | <div·id="nav-path"·class="navpath"> | 45 | <div·id="nav-path"·class="navpath"> |
46 | ··<ul> | 46 | ··<ul> |
47 | <li·class="navelem"><a·class="el"·href="dir_4fef79e7177ba769987a8da36c892c5f.html">build</a></li><li·class="navelem"><a·class="el"·href="dir_9def6061848686aab7e6212bb499d615.html">reproducible-path</a></li><li·class="navelem"><a·class="el"·href="dir_74170d5b58cefb7cb5a86fc552b183a3.html">silly-0.1.0</a></li><li·class="navelem"><a·class="el"·href="dir_0d87e2e7ddaae8a2a8572c0afc59fe0d.html">include</a></li>··</ul> | 47 | <li·class="navelem"><a·class="el"·href="dir_4fef79e7177ba769987a8da36c892c5f.html">build</a></li><li·class="navelem"><a·class="el"·href="dir_9def6061848686aab7e6212bb499d615.html">reproducible-path</a></li><li·class="navelem"><a·class="el"·href="dir_74170d5b58cefb7cb5a86fc552b183a3.html">silly-0.1.0</a></li><li·class="navelem"><a·class="el"·href="dir_0d87e2e7ddaae8a2a8572c0afc59fe0d.html">include</a></li>··</ul> |
48 | </div> | 48 | </div> |
49 | </div><!--·top·--> | 49 | </div><!--·top·--> |
50 | <div·class="header"> | 50 | <div·class="header"> |
51 | ··<div·class="headertitle"><div·class="title">SILLY | 51 | ··<div·class="headertitle"><div·class="title">SILLYImageLoaderManager.h</div></div> |
52 | </div><!--header--> | 52 | </div><!--header--> |
53 | <div·class="contents"> | 53 | <div·class="contents"> |
54 | <div·class="fragment"><div·class="line"><a·id="l00001"·name="l00001"></a><span·class="lineno">····1</span><span·class="comment">/***********************************************************************</span></div> | 54 | <div·class="fragment"><div·class="line"><a·id="l00001"·name="l00001"></a><span·class="lineno">····1</span><span·class="comment">/***********************************************************************</span></div> |
55 | <div·class="line"><a·id="l00002"·name="l00002"></a><span·class="lineno">····2</span><span·class="comment">····filename:··· | 55 | <div·class="line"><a·id="l00002"·name="l00002"></a><span·class="lineno">····2</span><span·class="comment">····filename:···ImageLoaderManager.h</span></div> |
56 | <div·class="line"><a·id="l00003"·name="l00003"></a><span·class="lineno">····3</span><span·class="comment">····created:···· | 56 | <div·class="line"><a·id="l00003"·name="l00003"></a><span·class="lineno">····3</span><span·class="comment">····created:····10·Jun·2006</span></div> |
57 | <div·class="line"><a·id="l00004"·name="l00004"></a><span·class="lineno">····4</span><span·class="comment">····author:·····Olivier·Delannoy</span></div> | 57 | <div·class="line"><a·id="l00004"·name="l00004"></a><span·class="lineno">····4</span><span·class="comment">····author:·····Olivier·Delannoy</span></div> |
58 | <div·class="line"><a·id="l00005"·name="l00005"></a><span·class="lineno">····5</span><span·class="comment"></span>·</div> | 58 | <div·class="line"><a·id="l00005"·name="l00005"></a><span·class="lineno">····5</span><span·class="comment"></span>·</div> |
59 | <div·class="line"><a·id="l00006"·name="l00006"></a><span·class="lineno">····6</span><span·class="comment">····purpose:···· | 59 | <div·class="line"><a·id="l00006"·name="l00006"></a><span·class="lineno">····6</span><span·class="comment">····purpose:····Manage·all·available·loader</span></div> |
60 | <div·class="line"><a·id="l00007"·name="l00007"></a><span·class="lineno">····7</span><span·class="comment">*************************************************************************/</span></div> | 60 | <div·class="line"><a·id="l00007"·name="l00007"></a><span·class="lineno">····7</span><span·class="comment">*************************************************************************/</span></div> |
61 | <div·class="line"><a·id="l00008"·name="l00008"></a><span·class="lineno">····8</span><span·class="comment">/***************************************************************************</span></div> | 61 | <div·class="line"><a·id="l00008"·name="l00008"></a><span·class="lineno">····8</span><span·class="comment">/***************************************************************************</span></div> |
62 | <div·class="line"><a·id="l00009"·name="l00009"></a><span·class="lineno">····9</span><span·class="comment">·*···Copyright·(C)·2004·-·2006·Paul·D·Turner·&·The·CEGUI·Development·Team</span></div> | 62 | <div·class="line"><a·id="l00009"·name="l00009"></a><span·class="lineno">····9</span><span·class="comment">·*···Copyright·(C)·2004·-·2006·Paul·D·Turner·&·The·CEGUI·Development·Team</span></div> |
63 | <div·class="line"><a·id="l00010"·name="l00010"></a><span·class="lineno">···10</span><span·class="comment">·*</span></div> | 63 | <div·class="line"><a·id="l00010"·name="l00010"></a><span·class="lineno">···10</span><span·class="comment">·*</span></div> |
64 | <div·class="line"><a·id="l00011"·name="l00011"></a><span·class="lineno">···11</span><span·class="comment">·*···Permission·is·hereby·granted,·free·of·charge,·to·any·person·obtaining</span></div> | 64 | <div·class="line"><a·id="l00011"·name="l00011"></a><span·class="lineno">···11</span><span·class="comment">·*···Permission·is·hereby·granted,·free·of·charge,·to·any·person·obtaining</span></div> |
65 | <div·class="line"><a·id="l00012"·name="l00012"></a><span·class="lineno">···12</span><span·class="comment">·*···a·copy·of·this·software·and·associated·documentation·files·(the</span></div> | 65 | <div·class="line"><a·id="l00012"·name="l00012"></a><span·class="lineno">···12</span><span·class="comment">·*···a·copy·of·this·software·and·associated·documentation·files·(the</span></div> |
66 | <div·class="line"><a·id="l00013"·name="l00013"></a><span·class="lineno">···13</span><span·class="comment">·*···"Software"),·to·deal·in·the·Software·without·restriction,·including</span></div> | 66 | <div·class="line"><a·id="l00013"·name="l00013"></a><span·class="lineno">···13</span><span·class="comment">·*···"Software"),·to·deal·in·the·Software·without·restriction,·including</span></div> |
Offset 76, 54 lines modified | Offset 76, 80 lines modified | ||
76 | <div·class="line"><a·id="l00023"·name="l00023"></a><span·class="lineno">···23</span><span·class="comment">·*···EXPRESS·OR·IMPLIED,·INCLUDING·BUT·NOT·LIMITED·TO·THE·WARRANTIES·OF</span></div> | 76 | <div·class="line"><a·id="l00023"·name="l00023"></a><span·class="lineno">···23</span><span·class="comment">·*···EXPRESS·OR·IMPLIED,·INCLUDING·BUT·NOT·LIMITED·TO·THE·WARRANTIES·OF</span></div> |
77 | <div·class="line"><a·id="l00024"·name="l00024"></a><span·class="lineno">···24</span><span·class="comment">·*···MERCHANTABILITY,·FITNESS·FOR·A·PARTICULAR·PURPOSE·AND·NONINFRINGEMENT.</span></div> | 77 | <div·class="line"><a·id="l00024"·name="l00024"></a><span·class="lineno">···24</span><span·class="comment">·*···MERCHANTABILITY,·FITNESS·FOR·A·PARTICULAR·PURPOSE·AND·NONINFRINGEMENT.</span></div> |
78 | <div·class="line"><a·id="l00025"·name="l00025"></a><span·class="lineno">···25</span><span·class="comment">·*···IN·NO·EVENT·SHALL·THE·AUTHORS·BE·LIABLE·FOR·ANY·CLAIM,·DAMAGES·OR</span></div> | 78 | <div·class="line"><a·id="l00025"·name="l00025"></a><span·class="lineno">···25</span><span·class="comment">·*···IN·NO·EVENT·SHALL·THE·AUTHORS·BE·LIABLE·FOR·ANY·CLAIM,·DAMAGES·OR</span></div> |
79 | <div·class="line"><a·id="l00026"·name="l00026"></a><span·class="lineno">···26</span><span·class="comment">·*···OTHER·LIABILITY,·WHETHER·IN·AN·ACTION·OF·CONTRACT,·TORT·OR·OTHERWISE,</span></div> | 79 | <div·class="line"><a·id="l00026"·name="l00026"></a><span·class="lineno">···26</span><span·class="comment">·*···OTHER·LIABILITY,·WHETHER·IN·AN·ACTION·OF·CONTRACT,·TORT·OR·OTHERWISE,</span></div> |
80 | <div·class="line"><a·id="l00027"·name="l00027"></a><span·class="lineno">···27</span><span·class="comment">·*···ARISING·FROM,·OUT·OF·OR·IN·CONNECTION·WITH·THE·SOFTWARE·OR·THE·USE·OR</span></div> | 80 | <div·class="line"><a·id="l00027"·name="l00027"></a><span·class="lineno">···27</span><span·class="comment">·*···ARISING·FROM,·OUT·OF·OR·IN·CONNECTION·WITH·THE·SOFTWARE·OR·THE·USE·OR</span></div> |
81 | <div·class="line"><a·id="l00028"·name="l00028"></a><span·class="lineno">···28</span><span·class="comment">·*···OTHER·DEALINGS·IN·THE·SOFTWARE.</span></div> | 81 | <div·class="line"><a·id="l00028"·name="l00028"></a><span·class="lineno">···28</span><span·class="comment">·*···OTHER·DEALINGS·IN·THE·SOFTWARE.</span></div> |
82 | <div·class="line"><a·id="l00029"·name="l00029"></a><span·class="lineno">···29</span><span·class="comment">·***************************************************************************/</span></div> | 82 | <div·class="line"><a·id="l00029"·name="l00029"></a><span·class="lineno">···29</span><span·class="comment">·***************************************************************************/</span></div> |
83 | <div·class="line"><a·id="l00030"·name="l00030"></a><span·class="lineno">···30</span><span·class="preprocessor">#ifndef·_SILLY | 83 | <div·class="line"><a·id="l00030"·name="l00030"></a><span·class="lineno">···30</span><span·class="preprocessor">#ifndef·_SILLYImageLoaderManager_h_·</span></div> |
84 | <div·class="line"><a·id="l00031"·name="l00031"></a><span·class="lineno">···31</span><span·class="preprocessor">#define·_SILLY | 84 | <div·class="line"><a·id="l00031"·name="l00031"></a><span·class="lineno">···31</span><span·class="preprocessor">#define·_SILLYImageLoaderManager_h_</span></div> |
85 | <div·class="line"><a·id="l00032"·name="l00032"></a><span·class="lineno">···32</span><span·class="preprocessor">#include·"SILLYBase.h"</span>·</div> | 85 | <div·class="line"><a·id="l00032"·name="l00032"></a><span·class="lineno">···32</span><span·class="preprocessor">#include·"SILLYBase.h"</span>·</div> |
86 | <div·class="line"><a·id="l00033"·name="l00033"></a><span·class="lineno">···33</span><span·class="preprocessor">#include·& | 86 | <div·class="line"><a·id="l00033"·name="l00033"></a><span·class="lineno">···33</span><span·class="preprocessor">#include·<vector></span>·</div> |
87 | <div·class="line"><a·id="l00034"·name="l00034"></a><span·class="lineno">···34</span><span·class="comment">//·Start·of·section·namespace·SILLY·</span></div> | 87 | <div·class="line"><a·id="l00034"·name="l00034"></a><span·class="lineno">···34</span><span·class="comment">//·Start·of·section·namespace·SILLY·</span></div> |
88 | <div·class="line"><a·id="l00035"·name="l00035"></a><span·class="lineno">···35</span><span·class="keyword">namespace·</span><a·class="code·hl_namespace"·href="a00129.html">SILLY</a></div> | 88 | <div·class="line"><a·id="l00035"·name="l00035"></a><span·class="lineno">···35</span><span·class="keyword">namespace·</span><a·class="code·hl_namespace"·href="a00129.html">SILLY</a></div> |
89 | <div·class="line"><a·id="l00036"·name="l00036"></a><span·class="lineno">···36</span>{</div> | 89 | <div·class="line"><a·id="l00036"·name="l00036"></a><span·class="lineno">···36</span>{</div> |
90 | <div·class="line"><a·id="l00037"·name="l00037"></a><span·class="lineno">···37</span><span·class="keyword">class·</span>ImageLoader;·<span·class="comment">//·Forward·declaration</span></div> | ||
91 | <div·class="line"><a·id="l00042"·name="l00042"></a><span·class="lineno"><a·class="line"·href="a00129.html#a9f85557d059f38f7bb66a898472d394e">···42</a></span><span·class="keyword">typedef</span>·std::vector<ImageLoader*>·<a·class="code·hl_typedef"·href="a00129.html#a9f85557d059f38f7bb66a898472d394e">ImageLoaderList</a>;</div> | ||
90 | <div·class="line"><a·id="l000 | 92 | <div·class="line"><a·id="l00043"·name="l00043"></a><span·class="lineno">···43</span>·</div> |
91 | <div·class="foldopen"·id="foldopen00048"·data-start="{"·data-end="};"> | ||
92 | <div·class="line"><a·id="l0004 | 93 | <div·class="line"><a·id="l00044"·name="l00044"></a><span·class="lineno">···44</span><span·class="preprocessor">#if·defined(_MSC_VER)</span></div> |
94 | <div·class="line"><a·id="l00045"·name="l00045"></a><span·class="lineno">···45</span>·</div> | ||
95 | <div·class="line"><a·id="l00046"·name="l00046"></a><span·class="lineno">···46</span><span·class="preprocessor">#···pragma·warning(push)</span></div> | ||
96 | <div·class="line"><a·id="l00047"·name="l00047"></a><span·class="lineno">···47</span>·</div> | ||
97 | <div·class="line"><a·id="l00048"·name="l00048"></a><span·class="lineno">···48</span><span·class="preprocessor">#···pragma·warning(disable·:·4251)</span></div> | ||
93 | <div·class="line"><a·id="l00049"·name="l00049"></a><span·class="lineno">···49</span> | 98 | <div·class="line"><a·id="l00049"·name="l00049"></a><span·class="lineno">···49</span>·</div> |
99 | <div·class="line"><a·id="l00050"·name="l00050"></a><span·class="lineno">···50</span><span·class="preprocessor">#endif</span></div> | ||
100 | <div·class="line"><a·id="l00051"·name="l00051"></a><span·class="lineno">···51</span>·</div> | ||
101 | <div·class="foldopen"·id="foldopen00056"·data-start="{"·data-end="};"> | ||
102 | <div·class="line"><a·id="l00056"·name="l00056"></a><span·class="lineno"><a·class="line"·href="a00989.html">···56</a></span><span·class="keyword">class·</span>SILLY_EXPORT·<a·class="code·hl_class"·href="a00989.html">ImageLoaderManager</a></div> | ||
103 | <div·class="line"><a·id="l00057"·name="l00057"></a><span·class="lineno">···57</span>{</div> | ||
104 | <div·class="line"><a·id="l00058"·name="l00058"></a><span·class="lineno">···58</span>····</div> | ||
94 | <div·class="line"><a·id="l0005 | 105 | <div·class="line"><a·id="l00059"·name="l00059"></a><span·class="lineno">···59</span><span·class="keyword">public</span>:</div> |
95 | <div·class="line"><a·id="l00060"·name="l00060"></a><span·class="lineno">···60</span>····<a·class="code·hl_class"·href="a00973.html">FileDataSource</a>(<span·class="keyword">const</span>·<span·class="keywordtype">char</span>*·filename);</div> | ||
96 | <div·class="line"><a·id="l00064"·name="l00064"></a><span·class="lineno">···64</span>····<a·class="code·hl_class"·href="a009 | 106 | <div·class="line"><a·id="l00064"·name="l00064"></a><span·class="lineno">···64</span>····<a·class="code·hl_class"·href="a00989.html">ImageLoaderManager</a>();</div> |
107 | <div·class="line"><a·id="l00069"·name="l00069"></a><span·class="lineno">···69</span>····<a·class="code·hl_class"·href="a00989.html">~ImageLoaderManager</a>();</div> | ||
108 | <div·class="line"><a·id="l00074"·name="l00074"></a><span·class="lineno"><a·class="line"·href="a00989.html#ae2e05642dfe82aad71558d37a9377e6e">···74</a></span>····ImageLoaderList::iterator·<a·class="code·hl_function"·href="a00989.html#ae2e05642dfe82aad71558d37a9377e6e">begin</a>();</div> | ||
109 | <div·class="line"><a·id="l00079"·name="l00079"></a><span·class="lineno"><a·class="line"·href="a00989.html#ae5ad548bf73ed505eaf533eeb053f2cc">···79</a></span>····ImageLoaderList::iterator·<a·class="code·hl_function"·href="a00989.html#ae5ad548bf73ed505eaf533eeb053f2cc">end</a>();</div> | ||
110 | <div·class="line"><a·id="l00086"·name="l00086"></a><span·class="lineno"><a·class="line"·href="a00989.html#a38aa5b3d86db46f24cd330bda6d0b696">···86</a></span>····<span·class="keywordtype">void</span>·<a·class="code·hl_function"·href="a00989.html#a38aa5b3d86db46f24cd330bda6d0b696">add</a>(<a·class="code·hl_class"·href="a00985.html">ImageLoader</a>*·loader);</div> | ||
97 | <div·class="line"><a·id="l00073"·name="l00073"></a><span·class="lineno"><a·class="line"·href="a00973.html#a5bc2a781be2586924afce4e4a4ea6697">···73</a></span>····<span·class="keywordtype">bool</span>·<a·class="code·hl_function"·href="a00973.html#a5bc2a781be2586924afce4e4a4ea6697">isValid</a>()·<span·class="keyword">const</span>;</div> | ||
98 | <div·class="line"><a·id="l00074"·name="l00074"></a><span·class="lineno">···74</span>·</div> | ||
99 | <div·class="line"><a·id="l00075"·name="l00075"></a><span·class="lineno"><a·class="line"·href="a00973.html#a363c71a270f739498e576e743cfa0d6e">···75</a></span>····<span·class="keyword">const</span>·<span·class="keywordtype">byte</span>*·<a·class="code·hl_function"·href="a00973.html#a363c71a270f739498e576e743cfa0d6e">getDataPtr</a>()·<span·class="keyword">const</span>;</div> | ||
100 | <div·class="line"><a·id="l00076"·name="l00076"></a><span·class="lineno"><a·class="line"·href="a00973.html#a9be1e4285daa77fe397767c097fbdc66">···76</a></span>····<span·class="keywordtype">size_t</span>·<a·class="code·hl_function"·href="a00973.html#a9be1e4285daa77fe397767c097fbdc66">getSize</a>()·<span·class="keyword">const</span>;</div> | ||
101 | <div·class="line"><a·id="l00077"·name="l00077"></a><span·class="lineno">···77</span><span·class="keyword">private</span>:</div> | ||
102 | <div·class="line"><a·id="l00078"·name="l00078"></a><span·class="lineno">···78</span>····<span·class="keywordtype">bool</span>·d_error;··</div> | ||
103 | <div·class="line"><a·id="l00079"·name="l00079"></a><span·class="lineno">···79</span>····<span·class="keywordtype">byte</span>*·d_bytes;·</div> | ||
104 | <div·class="line"><a·id="l00080"·name="l00080"></a><span·class="lineno">···80</span>····<span·class="keywordtype">size_t</span>·d_size;·</div> | ||
105 | <div·class="line"><a·id="l00081"·name="l00081"></a><span·class="lineno">···81</span>};</div> | ||
106 | </div> | ||
107 | <div·class="line"><a·id="l0008 | 111 | <div·class="line"><a·id="l00087"·name="l00087"></a><span·class="lineno">···87</span>····</div> |
108 | <div·class="line"><a·id="l00083"·name="l00083"></a><span·class="lineno">···83</span>··</div> | ||
109 | <div·class="line"><a·id="l00084"·name="l00084"></a><span·class="lineno">···84</span>}·<span·class="comment">//·End·of·section·namespace·SILLY·</span></div> | ||
110 | <div·class="line"><a·id="l00085"·name="l00085"></a><span·class="lineno">···85</span>·</div> | ||
111 | <div·class="line"><a·id="l00086"·name="l00086"></a><span·class="lineno">···86</span><span·class="comment">//·Inclue·inline·function·when·needed·</span></div> | ||
112 | <div·class="line"><a·id="l00087"·name="l00087"></a><span·class="lineno">···87</span><span·class="preprocessor">#ifdef·SILLY_OPT_INLINE</span></div> | ||
113 | <div·class="line"><a·id="l00088"·name="l00088"></a><span·class="lineno">···88</span><span·class="preprocessor">#include·"SILLYFileDataSource.icpp"</span></div> | ||
114 | <div·class="line"><a·id="l0008 | 112 | <div·class="line"><a·id="l00088"·name="l00088"></a><span·class="lineno">···88</span><span·class="keyword">private</span>:</div> |
113 | <div·class="line"><a·id="l00089"·name="l00089"></a><span·class="lineno">···89</span>····<a·class="code·hl_typedef"·href="a00129.html#a9f85557d059f38f7bb66a898472d394e">ImageLoaderList</a>·d_loaders;··</div> | ||
115 | <div·class="line"><a·id="l00090"·name="l00090"></a><span·class="lineno">···90</span>·</div> | 114 | <div·class="line"><a·id="l00090"·name="l00090"></a><span·class="lineno">···90</span>·</div> |
115 | <div·class="line"><a·id="l00091"·name="l00091"></a><span·class="lineno">···91</span><span·class="keyword">public</span>:</div> | ||
116 | <div·class="line"><a·id="l00092"·name="l00092"></a><span·class="lineno">···92</span>··<span·class="keyword">static</span>·<a·class="code·hl_class"·href="a00989.html">ImageLoaderManager</a>*·getSingletonPtr();</div> | ||
117 | <div·class="line"><a·id="l00093"·name="l00093"></a><span·class="lineno">···93</span>··<span·class="keyword">static</span>·<a·class="code·hl_class"·href="a00989.html">ImageLoaderManager</a>&·getSingleton();</div> | ||
118 | <div·class="line"><a·id="l00094"·name="l00094"></a><span·class="lineno">···94</span>·</div> | ||
119 | <div·class="line"><a·id="l00095"·name="l00095"></a><span·class="lineno">···95</span><span·class="keyword">private</span>:</div> | ||
120 | <div·class="line"><a·id="l00096"·name="l00096"></a><span·class="lineno">···96</span>··<span·class="keyword">static</span>·<a·class="code·hl_class"·href="a00989.html">ImageLoaderManager</a>*·d_instance;·</div> | ||
121 | <div·class="line"><a·id="l00097"·name="l00097"></a><span·class="lineno">···97</span>····</div> | ||
122 | <div·class="line"><a·id="l00098"·name="l00098"></a><span·class="lineno">···98</span>··<span·class="comment">//·Disabled·operations</span></div> | ||
123 | <div·class="line"><a·id="l00099"·name="l00099"></a><span·class="lineno">···99</span>··<a·class="code·hl_class"·href="a00989.html">ImageLoaderManager</a>(<a·class="code·hl_class"·href="a00989.html">ImageLoaderManager</a>&);</div> | ||
124 | <div·class="line"><a·id="l00100"·name="l00100"></a><span·class="lineno">··100</span>··<a·class="code·hl_class"·href="a00989.html">ImageLoaderManager</a>&·operator=(<a·class="code·hl_class"·href="a00989.html">ImageLoaderManager</a>&);</div> | ||
125 | <div·class="line"><a·id="l00101"·name="l00101"></a><span·class="lineno">··101</span>};</div> | ||
126 | </div> | ||
127 | <div·class="line"><a·id="l00102"·name="l00102"></a><span·class="lineno">··102</span>·</div> | ||
128 | <div·class="line"><a·id="l00103"·name="l00103"></a><span·class="lineno">··103</span><span·class="preprocessor">#if·defined(_MSC_VER)</span></div> | ||
129 | <div·class="line"><a·id="l00104"·name="l00104"></a><span·class="lineno">··104</span>·</div> | ||
130 | <div·class="line"><a·id="l00105"·name="l00105"></a><span·class="lineno">··105</span><span·class="preprocessor">#···pragma·warning(pop)</span></div> | ||
131 | <div·class="line"><a·id="l00106"·name="l00106"></a><span·class="lineno">··106</span>·</div> | ||
116 | <div·class="line"><a·id="l00 | 132 | <div·class="line"><a·id="l00107"·name="l00107"></a><span·class="lineno">··107</span><span·class="preprocessor">#endif··</span></div> |
133 | <div·class="line"><a·id="l00108"·name="l00108"></a><span·class="lineno">··108</span>··</div> | ||
134 | <div·class="line"><a·id="l00109"·name="l00109"></a><span·class="lineno">··109</span>}·<span·class="comment">//·End·of·section·namespace·SILLY·</span></div> | ||
135 | <div·class="line"><a·id="l00110"·name="l00110"></a><span·class="lineno">··110</span>·</div> | ||
136 | <div·class="line"><a·id="l00111"·name="l00111"></a><span·class="lineno">··111</span><span·class="comment">//·Inclue·inline·function·when·needed·</span></div> | ||
137 | <div·class="line"><a·id="l00112"·name="l00112"></a><span·class="lineno">··112</span><span·class="preprocessor">#ifdef·SILLY_OPT_INLINE</span></div> | ||
138 | <div·class="line"><a·id="l00113"·name="l00113"></a><span·class="lineno">··113</span><span·class="preprocessor">#include·"SILLYImageLoaderManager.icpp"</span></div> | ||
139 | <div·class="line"><a·id="l00114"·name="l00114"></a><span·class="lineno">··114</span><span·class="preprocessor">#endif·</span></div> | ||
140 | <div·class="line"><a·id="l00115"·name="l00115"></a><span·class="lineno">··115</span>·</div> | ||
141 | <div·class="line"><a·id="l00116"·name="l00116"></a><span·class="lineno">··116</span><span·class="preprocessor">#endif·</span><span·class="comment">//·end·of·guard·_SILLYImageLoaderManager_h_</span></div> | ||
117 | <div·class="ttc"·id="aa00129_html"><div·class="ttname"><a·href="a00129.html">SILLY</a></div><div·class="ttdoc">Simple·Image·Loading·LibrarY·namespace.</div><div·class="ttdef"><b>Definition</b>·<a·href="a0002 | 142 | <div·class="ttc"·id="aa00129_html"><div·class="ttname"><a·href="a00129.html">SILLY</a></div><div·class="ttdoc">Simple·Image·Loading·LibrarY·namespace.</div><div·class="ttdef"><b>Definition</b>·<a·href="a00023_source.html#l00045">SILLYJPGImageContext.cpp:46</a></div></div> |
118 | <div·class="ttc"·id="aa00969_html"><div·class="ttname"><a·href="a00969.html">SILLY::DataSource</a></div><div·class="ttdoc">This·is·an·abstract·class·used·to·provide·data·to·the·loader.</div><div·class="ttdef"><b>Definition</b>·<a·href="a00101_source.html#l00046">SILLYDataSource.h:47</a></div></div> | ||
119 | <div·class="ttc"·id="aa00973_html"><div·class="ttname"><a·href="a00973.html">SILLY::FileDataSource</a></div><div·class="ttdoc">This·class·allow·the·loading·of·an·image·directly·from·a·file.</div><div·class="ttdef"><b>Definition</b>·<a·href="a00089_source.html#l00048">SILLYFileDataSource.h:49</a></div></div> | ||
Max diff block lines reached; 271/23818 bytes (1.14%) of diff not shown. |
Offset 1, 19 lines modified | Offset 1, 19 lines modified | ||
1 | Simple·Image·Loading·LibrarY 0.1.0 | 1 | Simple·Image·Loading·LibrarY 0.1.0 |
2 | ····*·_\x8b_\x8u_\x8i_\x8l_\x8d | 2 | ····*·_\x8b_\x8u_\x8i_\x8l_\x8d |
3 | ····*·_\x8r_\x8e_\x8p_\x8r_\x8o_\x8d_\x8u_\x8c_\x8i_\x8b_\x8l_\x8e_\x8-_\x8p_\x8a_\x8t_\x8h | 3 | ····*·_\x8r_\x8e_\x8p_\x8r_\x8o_\x8d_\x8u_\x8c_\x8i_\x8b_\x8l_\x8e_\x8-_\x8p_\x8a_\x8t_\x8h |
4 | ····*·_\x8s_\x8i_\x8l_\x8l_\x8y_\x8-_\x80_\x8._\x81_\x8._\x80 | 4 | ····*·_\x8s_\x8i_\x8l_\x8l_\x8y_\x8-_\x80_\x8._\x81_\x8._\x80 |
5 | ····*·_\x8i_\x8n_\x8c_\x8l_\x8u_\x8d_\x8e | 5 | ····*·_\x8i_\x8n_\x8c_\x8l_\x8u_\x8d_\x8e |
6 | SILLY | 6 | SILLYImageLoaderManager.h |
7 | 1/*********************************************************************** | 7 | 1/*********************************************************************** |
8 | 2·filename:· | 8 | 2·filename:·ImageLoaderManager.h |
9 | 3·created:· | 9 | 3·created:·10·Jun·2006 |
10 | 4·author:·Olivier·Delannoy | 10 | 4·author:·Olivier·Delannoy |
11 | 5 | 11 | 5 |
12 | 6·purpose:· | 12 | 6·purpose:·Manage·all·available·loader |
13 | 7*************************************************************************/ | 13 | 7*************************************************************************/ |
14 | 8/*************************************************************************** | 14 | 8/*************************************************************************** |
15 | 9·*·Copyright·(C)·2004·-·2006·Paul·D·Turner·&·The·CEGUI·Development·Team | 15 | 9·*·Copyright·(C)·2004·-·2006·Paul·D·Turner·&·The·CEGUI·Development·Team |
16 | 10·* | 16 | 10·* |
17 | 11·*·Permission·is·hereby·granted,·free·of·charge,·to·any·person·obtaining | 17 | 11·*·Permission·is·hereby·granted,·free·of·charge,·to·any·person·obtaining |
18 | 12·*·a·copy·of·this·software·and·associated·documentation·files·(the | 18 | 12·*·a·copy·of·this·software·and·associated·documentation·files·(the |
19 | 13·*·"Software"),·to·deal·in·the·Software·without·restriction,·including | 19 | 13·*·"Software"),·to·deal·in·the·Software·without·restriction,·including |
Offset 29, 59 lines modified | Offset 29, 88 lines modified | ||
29 | 23·*·EXPRESS·OR·IMPLIED,·INCLUDING·BUT·NOT·LIMITED·TO·THE·WARRANTIES·OF | 29 | 23·*·EXPRESS·OR·IMPLIED,·INCLUDING·BUT·NOT·LIMITED·TO·THE·WARRANTIES·OF |
30 | 24·*·MERCHANTABILITY,·FITNESS·FOR·A·PARTICULAR·PURPOSE·AND·NONINFRINGEMENT. | 30 | 24·*·MERCHANTABILITY,·FITNESS·FOR·A·PARTICULAR·PURPOSE·AND·NONINFRINGEMENT. |
31 | 25·*·IN·NO·EVENT·SHALL·THE·AUTHORS·BE·LIABLE·FOR·ANY·CLAIM,·DAMAGES·OR | 31 | 25·*·IN·NO·EVENT·SHALL·THE·AUTHORS·BE·LIABLE·FOR·ANY·CLAIM,·DAMAGES·OR |
32 | 26·*·OTHER·LIABILITY,·WHETHER·IN·AN·ACTION·OF·CONTRACT,·TORT·OR·OTHERWISE, | 32 | 26·*·OTHER·LIABILITY,·WHETHER·IN·AN·ACTION·OF·CONTRACT,·TORT·OR·OTHERWISE, |
33 | 27·*·ARISING·FROM,·OUT·OF·OR·IN·CONNECTION·WITH·THE·SOFTWARE·OR·THE·USE·OR | 33 | 27·*·ARISING·FROM,·OUT·OF·OR·IN·CONNECTION·WITH·THE·SOFTWARE·OR·THE·USE·OR |
34 | 28·*·OTHER·DEALINGS·IN·THE·SOFTWARE. | 34 | 28·*·OTHER·DEALINGS·IN·THE·SOFTWARE. |
35 | 29·***************************************************************************/ | 35 | 29·***************************************************************************/ |
36 | 30#ifndef·_SILLYFileDataSource_h_ | ||
37 | 3 | 36 | 30#ifndef·_SILLYImageLoaderManager_h_ |
37 | 31#define·_SILLYImageLoaderManager_h_ | ||
38 | 32#include·"SILLYBase.h" | 38 | 32#include·"SILLYBase.h" |
39 | 33#include· | 39 | 33#include·<vector> |
40 | 34//·Start·of·section·namespace·SILLY | 40 | 34//·Start·of·section·namespace·SILLY |
41 | 35namespace·_\x8S_\x8I_\x8L_\x8L_\x8Y | 41 | 35namespace·_\x8S_\x8I_\x8L_\x8L_\x8Y |
42 | 36{ | 42 | 36{ |
43 | 37 | ||
44 | 43 | 37class·ImageLoader;·//·Forward·declaration | |
44 | _\x84_\x82typedef·std::vector<ImageLoader*>·_\x8I_\x8m_\x8a_\x8g_\x8e_\x8L_\x8o_\x8a_\x8d_\x8e_\x8r_\x8L_\x8i_\x8s_\x8t; | ||
45 | 43 | ||
46 | 44#if·defined(_MSC_VER) | ||
47 | 45 | ||
48 | 46#·pragma·warning(push) | ||
49 | 47 | ||
50 | 48#·pragma·warning(disable·:·4251) | ||
45 | 49 | 51 | 49 |
52 | 50#endif | ||
53 | 51 | ||
54 | _\x85_\x86class·SILLY_EXPORT·_\x8I_\x8m_\x8a_\x8g_\x8e_\x8L_\x8o_\x8a_\x8d_\x8e_\x8r_\x8M_\x8a_\x8n_\x8a_\x8g_\x8e_\x8r | ||
55 | 57{ | ||
56 | 58 | ||
46 | 5 | 57 | 59public: |
47 | 60·_\x8F_\x8i_\x8l_\x8e_\x8D_\x8a_\x8t_\x8a_\x8S_\x8o_\x8u_\x8r_\x8c_\x8e(const·char*·filename); | ||
48 | 64·_\x8~_\x8F_\x8i_\x8l_\x8e_\x8D_\x8a_\x8t_\x8a_\x8S_\x8o_\x8u_\x8r_\x8c_\x8e(); | ||
49 | _\x87_\x83·bool·_\x8i_\x8s_\x8V_\x8a_\x8l_\x8i_\x8d()·const; | ||
50 | 74 | ||
51 | _\x87_\x85·const·byte*·_\x8g_\x8e_\x8t_\x8D_\x8a_\x8t_\x8a_\x8P_\x8t_\x8r()·const; | ||
52 | _. | 58 | 64·_.I_.m_.a_.g_.e_.L_.o_.a_.d_.e_.r_.M_.a_.n_.a_.g_.e_.r(); |
59 | 69·_\x8~_\x8I_\x8m_\x8a_\x8g_\x8e_\x8L_\x8o_\x8a_\x8d_\x8e_\x8r_\x8M_\x8a_\x8n_\x8a_\x8g_\x8e_\x8r(); | ||
60 | _\x87_\x84·ImageLoaderList::iterator·_\x8b_\x8e_\x8g_\x8i_\x8n(); | ||
61 | _\x87_\x89·ImageLoaderList::iterator·_\x8e_\x8n_\x8d(); | ||
62 | _\x88_\x86·void·_\x8a_\x8d_\x8d(_\x8I_\x8m_\x8a_\x8g_\x8e_\x8L_\x8o_\x8a_\x8d_\x8e_\x8r*·loader); | ||
63 | 87 | ||
53 | 64 | 88private: | |
65 | 89·_\x8I_\x8m_\x8a_\x8g_\x8e_\x8L_\x8o_\x8a_\x8d_\x8e_\x8r_\x8L_\x8i_\x8s_\x8t·d_loaders; | ||
54 | 78·bool·d_error; | ||
55 | 79·byte*·d_bytes; | ||
56 | 80·size_t·d_size; | ||
57 | 81}; | ||
58 | 82 | ||
59 | 83 | ||
60 | 84}·//·End·of·section·namespace·SILLY | ||
61 | 85 | ||
62 | 86//·Inclue·inline·function·when·needed | ||
63 | 87#ifdef·SILLY_OPT_INLINE | ||
64 | 88#include·"SILLYFileDataSource.icpp" | ||
65 | 89#endif | ||
66 | 90 | 66 | 90 |
67 | 91 | 67 | 91public: |
68 | 92·static·_\x8I_\x8m_\x8a_\x8g_\x8e_\x8L_\x8o_\x8a_\x8d_\x8e_\x8r_\x8M_\x8a_\x8n_\x8a_\x8g_\x8e_\x8r*·getSingletonPtr(); | ||
69 | 93·static·_\x8I_\x8m_\x8a_\x8g_\x8e_\x8L_\x8o_\x8a_\x8d_\x8e_\x8r_\x8M_\x8a_\x8n_\x8a_\x8g_\x8e_\x8r&·getSingleton(); | ||
70 | 94 | ||
71 | 95private: | ||
72 | 96·static·_\x8I_\x8m_\x8a_\x8g_\x8e_\x8L_\x8o_\x8a_\x8d_\x8e_\x8r_\x8M_\x8a_\x8n_\x8a_\x8g_\x8e_\x8r*·d_instance; | ||
73 | 97 | ||
74 | 98·//·Disabled·operations | ||
75 | 99·_\x8I_\x8m_\x8a_\x8g_\x8e_\x8L_\x8o_\x8a_\x8d_\x8e_\x8r_\x8M_\x8a_\x8n_\x8a_\x8g_\x8e_\x8r(_\x8I_\x8m_\x8a_\x8g_\x8e_\x8L_\x8o_\x8a_\x8d_\x8e_\x8r_\x8M_\x8a_\x8n_\x8a_\x8g_\x8e_\x8r&); | ||
76 | 100·_\x8I_\x8m_\x8a_\x8g_\x8e_\x8L_\x8o_\x8a_\x8d_\x8e_\x8r_\x8M_\x8a_\x8n_\x8a_\x8g_\x8e_\x8r&·operator=(_\x8I_\x8m_\x8a_\x8g_\x8e_\x8L_\x8o_\x8a_\x8d_\x8e_\x8r_\x8M_\x8a_\x8n_\x8a_\x8g_\x8e_\x8r&); | ||
77 | 101}; | ||
78 | 102 | ||
79 | 103#if·defined(_MSC_VER) | ||
80 | 104 | ||
81 | 105#·pragma·warning(pop) | ||
82 | 106 | ||
83 | 107#endif | ||
84 | 108 | ||
85 | 109}·//·End·of·section·namespace·SILLY | ||
86 | 110 | ||
87 | 111//·Inclue·inline·function·when·needed | ||
88 | 112#ifdef·SILLY_OPT_INLINE | ||
89 | 113#include·"SILLYImageLoaderManager.icpp" | ||
90 | 114#endif | ||
91 | 115 | ||
92 | 116#endif·//·end·of·guard·_SILLYImageLoaderManager_h_ | ||
68 | _\x8S_\x8I_\x8L_\x8L_\x8Y | 93 | _\x8S_\x8I_\x8L_\x8L_\x8Y |
69 | Simple·Image·Loading·LibrarY·namespace. | 94 | Simple·Image·Loading·LibrarY·namespace. |
70 | D\x8De\x8ef\x8fi\x8in\x8ni\x8it\x8ti\x8io\x8on\x8n·_\x8S_\x8I_\x8L_\x8L_\x8Y_\x8J_\x8P_\x8G_\x8I_\x8m_\x8a_\x8g_\x8e_\x8C_\x8o_\x8n_\x8t_\x8e_\x8x_\x8t_\x8._\x8c_\x8p_\x8p_\x8:_\x84_\x86 | 95 | D\x8De\x8ef\x8fi\x8in\x8ni\x8it\x8ti\x8io\x8on\x8n·_\x8S_\x8I_\x8L_\x8L_\x8Y_\x8J_\x8P_\x8G_\x8I_\x8m_\x8a_\x8g_\x8e_\x8C_\x8o_\x8n_\x8t_\x8e_\x8x_\x8t_\x8._\x8c_\x8p_\x8p_\x8:_\x84_\x86 |
71 | _\x8S_\x8I_\x8L_\x8L_\x8Y_\x8:_\x8:_\x8D_\x8a_\x8t_\x8a_\x8S_\x8o_\x8u_\x8r_\x8c_\x8e | ||
72 | 96 | _.S_.I_.L_.L_.Y_.:_.:_.I_.m_.a_.g_.e_.L_.o_.a_.d_.e_.r_.L_.i_.s_.t | |
97 | std::vector<·ImageLoader·*·>·ImageLoaderList | ||
98 | Typename·for·a·collection·of·image·loader. | ||
99 | D\x8De\x8ef\x8fi\x8in\x8ni\x8it\x8ti\x8io\x8on\x8n·_\x8S_\x8I_\x8L_\x8L_\x8Y_\x8I_\x8m_\x8a_\x8g_\x8e_\x8L_\x8o_\x8a_\x8d_\x8e_\x8r_\x8M_\x8a_\x8n_\x8a_\x8g_\x8e_\x8r_\x8._\x8h_\x8:_\x84_\x82 | ||
100 | _\x8S_\x8I_\x8L_\x8L_\x8Y_\x8:_\x8:_\x8I_\x8m_\x8a_\x8g_\x8e_\x8L_\x8o_\x8a_\x8d_\x8e_\x8r | ||
101 | This·is·an·abstract·class·that·define·the·interface·of·all·image·loader. | ||
73 | D\x8De\x8ef\x8fi\x8in\x8ni\x8it\x8ti\x8io\x8on\x8n·_\x8S_\x8I_\x8L_\x8L_\x8Y_\x8 | 102 | D\x8De\x8ef\x8fi\x8in\x8ni\x8it\x8ti\x8io\x8on\x8n·_\x8S_\x8I_\x8L_\x8L_\x8Y_\x8I_.m_.a_.g_.e_.L_.o_.a_.d_.e_.r_\x8._\x8h_\x8:_\x84_\x87 |
74 | _\x8S_\x8I_\x8L_\x8L_\x8Y_\x8:_\x8:_\x8F_\x8i_\x8l_\x8e_\x8D_\x8a_\x8t_\x8a_\x8S_\x8o_\x8u_\x8r_\x8c_\x8e | ||
75 | 103 | _.S_.I_.L_.L_.Y_.:_.:_.I_.m_.a_.g_.e_.L_.o_.a_.d_.e_.r_.M_.a_.n_.a_.g_.e_.r | |
104 | Manage·the·list·of·all·supported·ImageLoader. | ||
76 | D\x8De\x8ef\x8fi\x8in\x8ni\x8it\x8ti\x8io\x8on\x8n·_\x8S_\x8I_\x8L_\x8L_\x8Y_\x8 | 105 | D\x8De\x8ef\x8fi\x8in\x8ni\x8it\x8ti\x8io\x8on\x8n·_\x8S_\x8I_\x8L_\x8L_\x8Y_\x8I_.m_.a_.g_.e_.L_.o_.a_.d_.e_.r_.M_.a_.n_.a_.g_.e_.r_.._.h_.:_.5_.7 |
77 | _\x8S_\x8I_\x8L_\x8L_\x8Y_\x8:_\x8:_\x8F_\x8i_\x8l_\x8e_\x8D_\x8a_\x8t_\x8a_\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8:_\x8:_\x8g_\x8e_\x8t_\x8D_\x8a_\x8t_\x8a_\x8P_\x8t_\x8r | ||
78 | const·byte·*·getDataPtr()·const | ||
79 | Get·raw·access·to·the·image·data. | ||
80 | _\x8S_\x8I_\x8L_\x8L_\x8Y_\x8:_\x8:_\x8F_\x8i_\x8l_\x8e_\x8D_\x8a_\x8t_\x8a_\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8:_\x8:_\x8i_\x8s_\x8V_\x8a_\x8l_\x8i_\x8d | ||
81 | bool·isValid()·const | ||
82 | Check·wether·the·loading·is·successfull·or·not. | ||
83 | _\x8S_\x8I_\x8L_\x8L_\x8Y_\x8:_\x8:_\x8F_\x8i_\x8l_\x8e_\x8D_\x8a_\x8t_\x8a_\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8:_\x8:_\x8g_\x8e_\x8t_\x8S_\x8i_\x8z_\x8e | ||
84 | size_t·getSize()·const | ||
85 | 106 | _.S_.I_.L_.L_.Y_.:_.:_.I_.m_.a_.g_.e_.L_.o_.a_.d_.e_.r_.M_.a_.n_.a_.g_.e_.r_.:_.:_.a_.d_.d | |
Max diff block lines reached; 53/6624 bytes (0.80%) of diff not shown. |
Offset 1, 15 lines modified | Offset 1, 15 lines modified | ||
1 | <!DOCTYPE·html·PUBLIC·"-//W3C//DTD·XHTML·1.0·Transitional//EN"·"https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> | 1 | <!DOCTYPE·html·PUBLIC·"-//W3C//DTD·XHTML·1.0·Transitional//EN"·"https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> |
2 | <html·xmlns="http://www.w3.org/1999/xhtml"·lang="en-US"> | 2 | <html·xmlns="http://www.w3.org/1999/xhtml"·lang="en-US"> |
3 | <head> | 3 | <head> |
4 | <meta·http-equiv="Content-Type"·content="text/xhtml;charset=UTF-8"/> | 4 | <meta·http-equiv="Content-Type"·content="text/xhtml;charset=UTF-8"/> |
5 | <meta·http-equiv="X-UA-Compatible"·content="IE=11"/> | 5 | <meta·http-equiv="X-UA-Compatible"·content="IE=11"/> |
6 | <meta·name="generator"·content="Doxygen·1.9.8"/> | 6 | <meta·name="generator"·content="Doxygen·1.9.8"/> |
7 | <meta·name="viewport"·content="width=device-width,·initial-scale=1"/> | 7 | <meta·name="viewport"·content="width=device-width,·initial-scale=1"/> |
8 | <title>Simple·Image·Loading·LibrarY:·/build/reproducible-path/silly-0.1.0/include/SILLYImageContext.h·Source·File</title> | 8 | <title>Simple·Image·Loading·LibrarY:·/build/reproducible-path/silly-0.1.0/include/loaders/SILLYPNGImageContext.h·Source·File</title> |
9 | <link·href="tabs.css"·rel="stylesheet"·type="text/css"/> | 9 | <link·href="tabs.css"·rel="stylesheet"·type="text/css"/> |
10 | <script·type="text/javascript"·src="jquery.js"></script> | 10 | <script·type="text/javascript"·src="jquery.js"></script> |
11 | <script·type="text/javascript"·src="dynsections.js"></script> | 11 | <script·type="text/javascript"·src="dynsections.js"></script> |
12 | <link·href="doxygen.css"·rel="stylesheet"·type="text/css"·/> | 12 | <link·href="doxygen.css"·rel="stylesheet"·type="text/css"·/> |
13 | </head> | 13 | </head> |
14 | <body> | 14 | <body> |
15 | <div·id="top"><!--·do·not·remove·this·div,·it·is·closed·by·doxygen!·--> | 15 | <div·id="top"><!--·do·not·remove·this·div,·it·is·closed·by·doxygen!·--> |
Offset 40, 27 lines modified | Offset 40, 27 lines modified | ||
40 | <script·type="text/javascript"> | 40 | <script·type="text/javascript"> |
41 | /*·@license·magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt·MIT·*/ | 41 | /*·@license·magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt·MIT·*/ |
42 | $(document).ready(function()·{·init_codefold(0);·}); | 42 | $(document).ready(function()·{·init_codefold(0);·}); |
43 | /*·@license-end·*/ | 43 | /*·@license-end·*/ |
44 | </script> | 44 | </script> |
45 | <div·id="nav-path"·class="navpath"> | 45 | <div·id="nav-path"·class="navpath"> |
46 | ··<ul> | 46 | ··<ul> |
47 | <li·class="navelem"><a·class="el"·href="dir_4fef79e7177ba769987a8da36c892c5f.html">build</a></li><li·class="navelem"><a·class="el"·href="dir_9def6061848686aab7e6212bb499d615.html">reproducible-path</a></li><li·class="navelem"><a·class="el"·href="dir_74170d5b58cefb7cb5a86fc552b183a3.html">silly-0.1.0</a></li><li·class="navelem"><a·class="el"·href="dir_0d87e2e7ddaae8a2a8572c0afc59fe0d.html">include</a></li>··</ul> | 47 | <li·class="navelem"><a·class="el"·href="dir_4fef79e7177ba769987a8da36c892c5f.html">build</a></li><li·class="navelem"><a·class="el"·href="dir_9def6061848686aab7e6212bb499d615.html">reproducible-path</a></li><li·class="navelem"><a·class="el"·href="dir_74170d5b58cefb7cb5a86fc552b183a3.html">silly-0.1.0</a></li><li·class="navelem"><a·class="el"·href="dir_0d87e2e7ddaae8a2a8572c0afc59fe0d.html">include</a></li><li·class="navelem"><a·class="el"·href="dir_7cea72c962538e8359f822070f2512f7.html">loaders</a></li>··</ul> |
48 | </div> | 48 | </div> |
49 | </div><!--·top·--> | 49 | </div><!--·top·--> |
50 | <div·class="header"> | 50 | <div·class="header"> |
51 | ··<div·class="headertitle"><div·class="title">SILLYImageContext.h</div></div> | 51 | ··<div·class="headertitle"><div·class="title">SILLYPNGImageContext.h</div></div> |
52 | </div><!--header--> | 52 | </div><!--header--> |
53 | <div·class="contents"> | 53 | <div·class="contents"> |
54 | <div·class="fragment"><div·class="line"><a·id="l00001"·name="l00001"></a><span·class="lineno">····1</span><span·class="comment">/***********************************************************************</span></div> | 54 | <div·class="fragment"><div·class="line"><a·id="l00001"·name="l00001"></a><span·class="lineno">····1</span><span·class="comment">/***********************************************************************</span></div> |
55 | <div·class="line"><a·id="l00002"·name="l00002"></a><span·class="lineno">····2</span><span·class="comment">····filename:···SILLYImageContext.h</span></div> | 55 | <div·class="line"><a·id="l00002"·name="l00002"></a><span·class="lineno">····2</span><span·class="comment">····filename:···SILLYPNGImageContext.h</span></div> |
56 | <div·class="line"><a·id="l00003"·name="l00003"></a><span·class="lineno">····3</span><span·class="comment">····created:····1 | 56 | <div·class="line"><a·id="l00003"·name="l00003"></a><span·class="lineno">····3</span><span·class="comment">····created:····11·Jun·2006</span></div> |
57 | <div·class="line"><a·id="l00004"·name="l00004"></a><span·class="lineno">····4</span><span·class="comment">····author:·····Olivier·Delannoy</span></div> | 57 | <div·class="line"><a·id="l00004"·name="l00004"></a><span·class="lineno">····4</span><span·class="comment">····author:·····Olivier·Delannoy</span></div> |
58 | <div·class="line"><a·id="l00005"·name="l00005"></a><span·class="lineno">····5</span><span·class="comment"></span>·</div> | 58 | <div·class="line"><a·id="l00005"·name="l00005"></a><span·class="lineno">····5</span><span·class="comment"></span>·</div> |
59 | <div·class="line"><a·id="l00006"·name="l00006"></a><span·class="lineno">····6</span><span·class="comment">····purpose:···· | 59 | <div·class="line"><a·id="l00006"·name="l00006"></a><span·class="lineno">····6</span><span·class="comment">····purpose:····Declaration·of·the·PNGImageContext·class·</span></div> |
60 | <div·class="line"><a·id="l00007"·name="l00007"></a><span·class="lineno">····7</span><span·class="comment">*************************************************************************/</span></div> | 60 | <div·class="line"><a·id="l00007"·name="l00007"></a><span·class="lineno">····7</span><span·class="comment">*************************************************************************/</span></div> |
61 | <div·class="line"><a·id="l00008"·name="l00008"></a><span·class="lineno">····8</span><span·class="comment">/***************************************************************************</span></div> | 61 | <div·class="line"><a·id="l00008"·name="l00008"></a><span·class="lineno">····8</span><span·class="comment">/***************************************************************************</span></div> |
62 | <div·class="line"><a·id="l00009"·name="l00009"></a><span·class="lineno">····9</span><span·class="comment">·*···Copyright·(C)·2004·-·2006·Paul·D·Turner·&·The·CEGUI·Development·Team</span></div> | 62 | <div·class="line"><a·id="l00009"·name="l00009"></a><span·class="lineno">····9</span><span·class="comment">·*···Copyright·(C)·2004·-·2006·Paul·D·Turner·&·The·CEGUI·Development·Team</span></div> |
63 | <div·class="line"><a·id="l00010"·name="l00010"></a><span·class="lineno">···10</span><span·class="comment">·*</span></div> | 63 | <div·class="line"><a·id="l00010"·name="l00010"></a><span·class="lineno">···10</span><span·class="comment">·*</span></div> |
64 | <div·class="line"><a·id="l00011"·name="l00011"></a><span·class="lineno">···11</span><span·class="comment">·*···Permission·is·hereby·granted,·free·of·charge,·to·any·person·obtaining</span></div> | 64 | <div·class="line"><a·id="l00011"·name="l00011"></a><span·class="lineno">···11</span><span·class="comment">·*···Permission·is·hereby·granted,·free·of·charge,·to·any·person·obtaining</span></div> |
65 | <div·class="line"><a·id="l00012"·name="l00012"></a><span·class="lineno">···12</span><span·class="comment">·*···a·copy·of·this·software·and·associated·documentation·files·(the</span></div> | 65 | <div·class="line"><a·id="l00012"·name="l00012"></a><span·class="lineno">···12</span><span·class="comment">·*···a·copy·of·this·software·and·associated·documentation·files·(the</span></div> |
66 | <div·class="line"><a·id="l00013"·name="l00013"></a><span·class="lineno">···13</span><span·class="comment">·*···"Software"),·to·deal·in·the·Software·without·restriction,·including</span></div> | 66 | <div·class="line"><a·id="l00013"·name="l00013"></a><span·class="lineno">···13</span><span·class="comment">·*···"Software"),·to·deal·in·the·Software·without·restriction,·including</span></div> |
Offset 76, 74 lines modified | Offset 76, 68 lines modified | ||
76 | <div·class="line"><a·id="l00023"·name="l00023"></a><span·class="lineno">···23</span><span·class="comment">·*···EXPRESS·OR·IMPLIED,·INCLUDING·BUT·NOT·LIMITED·TO·THE·WARRANTIES·OF</span></div> | 76 | <div·class="line"><a·id="l00023"·name="l00023"></a><span·class="lineno">···23</span><span·class="comment">·*···EXPRESS·OR·IMPLIED,·INCLUDING·BUT·NOT·LIMITED·TO·THE·WARRANTIES·OF</span></div> |
77 | <div·class="line"><a·id="l00024"·name="l00024"></a><span·class="lineno">···24</span><span·class="comment">·*···MERCHANTABILITY,·FITNESS·FOR·A·PARTICULAR·PURPOSE·AND·NONINFRINGEMENT.</span></div> | 77 | <div·class="line"><a·id="l00024"·name="l00024"></a><span·class="lineno">···24</span><span·class="comment">·*···MERCHANTABILITY,·FITNESS·FOR·A·PARTICULAR·PURPOSE·AND·NONINFRINGEMENT.</span></div> |
78 | <div·class="line"><a·id="l00025"·name="l00025"></a><span·class="lineno">···25</span><span·class="comment">·*···IN·NO·EVENT·SHALL·THE·AUTHORS·BE·LIABLE·FOR·ANY·CLAIM,·DAMAGES·OR</span></div> | 78 | <div·class="line"><a·id="l00025"·name="l00025"></a><span·class="lineno">···25</span><span·class="comment">·*···IN·NO·EVENT·SHALL·THE·AUTHORS·BE·LIABLE·FOR·ANY·CLAIM,·DAMAGES·OR</span></div> |
79 | <div·class="line"><a·id="l00026"·name="l00026"></a><span·class="lineno">···26</span><span·class="comment">·*···OTHER·LIABILITY,·WHETHER·IN·AN·ACTION·OF·CONTRACT,·TORT·OR·OTHERWISE,</span></div> | 79 | <div·class="line"><a·id="l00026"·name="l00026"></a><span·class="lineno">···26</span><span·class="comment">·*···OTHER·LIABILITY,·WHETHER·IN·AN·ACTION·OF·CONTRACT,·TORT·OR·OTHERWISE,</span></div> |
80 | <div·class="line"><a·id="l00027"·name="l00027"></a><span·class="lineno">···27</span><span·class="comment">·*···ARISING·FROM,·OUT·OF·OR·IN·CONNECTION·WITH·THE·SOFTWARE·OR·THE·USE·OR</span></div> | 80 | <div·class="line"><a·id="l00027"·name="l00027"></a><span·class="lineno">···27</span><span·class="comment">·*···ARISING·FROM,·OUT·OF·OR·IN·CONNECTION·WITH·THE·SOFTWARE·OR·THE·USE·OR</span></div> |
81 | <div·class="line"><a·id="l00028"·name="l00028"></a><span·class="lineno">···28</span><span·class="comment">·*···OTHER·DEALINGS·IN·THE·SOFTWARE.</span></div> | 81 | <div·class="line"><a·id="l00028"·name="l00028"></a><span·class="lineno">···28</span><span·class="comment">·*···OTHER·DEALINGS·IN·THE·SOFTWARE.</span></div> |
82 | <div·class="line"><a·id="l00029"·name="l00029"></a><span·class="lineno">···29</span><span·class="comment">·***************************************************************************/</span></div> | 82 | <div·class="line"><a·id="l00029"·name="l00029"></a><span·class="lineno">···29</span><span·class="comment">·***************************************************************************/</span></div> |
83 | <div·class="line"><a·id="l00030"·name="l00030"></a><span·class="lineno">···30</span><span·class="preprocessor">#ifndef·_SILLYImageContext_h_·</span></div> | 83 | <div·class="line"><a·id="l00030"·name="l00030"></a><span·class="lineno">···30</span><span·class="preprocessor">#ifndef·_SILLYPNGImageContext_h_·</span></div> |
84 | <div·class="line"><a·id="l00031"·name="l00031"></a><span·class="lineno">···31</span><span·class="preprocessor">#define·_SILLYImageContext_h_</span></div> | 84 | <div·class="line"><a·id="l00031"·name="l00031"></a><span·class="lineno">···31</span><span·class="preprocessor">#define·_SILLYPNGImageContext_h_</span></div> |
85 | <div·class="line"><a·id="l00032"·name="l00032"></a><span·class="lineno">···32</span><span·class="preprocessor">#include·"SILLYBase.h"</span>·</div> | 85 | <div·class="line"><a·id="l00032"·name="l00032"></a><span·class="lineno">···32</span><span·class="preprocessor">#include·"SILLYBase.h"</span>·</div> |
86 | <div·class="line"><a·id="l00033"·name="l00033"></a><span·class="lineno">···33</span>·</div> | 86 | <div·class="line"><a·id="l00033"·name="l00033"></a><span·class="lineno">···33</span><span·class="preprocessor">#include·"SILLYImageContext.h"</span>·</div> |
87 | <div·class="line"><a·id="l00034"·name="l00034"></a><span·class="lineno">···34</span><span·class="preprocessor">#include·"SILLYDataSource.h"</span>·</div> | ||
88 | <div·class="line"><a·id="l00035"·name="l00035"></a><span·class="lineno">···35</span><span·class="preprocessor">#include·<png.h></span>·</div> | ||
87 | <div·class="line"><a·id="l0003 | 89 | <div·class="line"><a·id="l00036"·name="l00036"></a><span·class="lineno">···36</span><span·class="comment">//·Start·of·section·namespace·SILLY·</span></div> |
88 | <div·class="line"><a·id="l0003 | 90 | <div·class="line"><a·id="l00037"·name="l00037"></a><span·class="lineno">···37</span><span·class="keyword">namespace·</span><a·class="code·hl_namespace"·href="a00129.html">SILLY</a></div> |
89 | <div·class="line"><a·id="l0003 | 91 | <div·class="line"><a·id="l00038"·name="l00038"></a><span·class="lineno">···38</span>{</div> |
90 | <div·class="line"><a·id="l0003 | 92 | <div·class="line"><a·id="l00039"·name="l00039"></a><span·class="lineno">···39</span>·</div> |
91 | <div·class="foldopen"·id="foldopen0004 | 93 | <div·class="foldopen"·id="foldopen00045"·data-start="{"·data-end="};"> |
92 | <div·class="line"><a·id="l0004 | 94 | <div·class="line"><a·id="l00045"·name="l00045"></a><span·class="lineno"><a·class="line"·href="a00953.html">···45</a></span><span·class="keyword">class·</span>SILLY_EXPORT·<a·class="code·hl_class"·href="a00953.html">PNGImageContext</a>·:·<span·class="keyword">public</span>·<a·class="cod[·...·truncated·by·diffoscope;·len:·48,·SHA:·b0541bec6d4441f75565a21bd2ce3d13b03e90000dec9c5dfd07fd611619c5ad·...·]</div> |
93 | <div·class="line"><a·id="l0004 | 95 | <div·class="line"><a·id="l00046"·name="l00046"></a><span·class="lineno">···46</span>{</div> |
94 | <div·class="line"><a·id="l0004 | 96 | <div·class="line"><a·id="l00047"·name="l00047"></a><span·class="lineno">···47</span><span·class="keyword">public</span>:</div> |
95 | <div·class="line"><a·id="l000 | 97 | <div·class="line"><a·id="l00048"·name="l00048"></a><span·class="lineno">···48</span>····<a·class="code·hl_class"·href="a00953.html">PNGImageContext</a>(<a·class="code·hl_class"·href="a00969.html">DataSource</a>*·data);</div> |
98 | <div·class="line"><a·id="l00049"·name="l00049"></a><span·class="lineno">···49</span>····<a·class="code·hl_class"·href="a00953.html">~PNGImageContext</a>();</div> | ||
96 | <div·class="line"><a·id="l0005 | 99 | <div·class="line"><a·id="l00050"·name="l00050"></a><span·class="lineno">···50</span>····</div> |
97 | <div·class="line"><a·id="l0005 | 100 | <div·class="line"><a·id="l00051"·name="l00051"></a><span·class="lineno">···51</span>····<span·class="keywordtype">int</span>·read(png_bytep·data,·png_size_t·length);</div> |
101 | <div·class="line"><a·id="l00052"·name="l00052"></a><span·class="lineno">···52</span>··</div> | ||
102 | <div·class="line"><a·id="l00053"·name="l00053"></a><span·class="lineno">···53</span>····</div> | ||
103 | <div·class="line"><a·id="l00054"·name="l00054"></a><span·class="lineno">···54</span>····</div> | ||
104 | <div·class="line"><a·id="l00055"·name="l00055"></a><span·class="lineno">···55</span><span·class="keyword">private</span>:</div> | ||
105 | <div·class="line"><a·id="l00056"·name="l00056"></a><span·class="lineno">···56</span>····<span·class="keywordtype">void</span>·setImageSize();</div> | ||
98 | <div·class="line"><a·id="l00057"·name="l00057"></a><span·class="lineno">···57</span>····</div> | 106 | <div·class="line"><a·id="l00057"·name="l00057"></a><span·class="lineno">···57</span>····</div> |
99 | <div·class="line"><a·id="l000 | 107 | <div·class="line"><a·id="l00058"·name="l00058"></a><span·class="lineno">···58</span>····<span·class="keywordtype">size_t</span>·d_offset;</div> |
108 | <div·class="line"><a·id="l00059"·name="l00059"></a><span·class="lineno">···59</span>····</div> | ||
109 | <div·class="line"><a·id="l00060"·name="l00060"></a><span·class="lineno">···60</span>····<a·class="code·hl_class"·href="a00969.html">DataSource</a>*·d_data;</div> | ||
110 | <div·class="line"><a·id="l00061"·name="l00061"></a><span·class="lineno">···61</span>····</div> | ||
111 | <div·class="line"><a·id="l00062"·name="l00062"></a><span·class="lineno">···62</span>····png_structp·d_png_ptr;</div> | ||
100 | <div·class="line"><a·id="l00063"·name="l00063"></a><span·class="lineno">···63</span>·</div> | 112 | <div·class="line"><a·id="l00063"·name="l00063"></a><span·class="lineno">···63</span>·</div> |
113 | <div·class="line"><a·id="l00064"·name="l00064"></a><span·class="lineno">···64</span>····png_infop·d_info_ptr;</div> | ||
114 | <div·class="line"><a·id="l00065"·name="l00065"></a><span·class="lineno">···65</span>··</div> | ||
115 | <div·class="line"><a·id="l00066"·name="l00066"></a><span·class="lineno">···66</span>····<span·class="keywordtype">size_t</span>·d_bit_depth;</div> | ||
101 | <div·class="line"><a·id="l0006 | 116 | <div·class="line"><a·id="l00067"·name="l00067"></a><span·class="lineno">···67</span>····<span·class="keywordtype">size_t</span>·d_num_channels;</div> |
102 | <div·class="line"><a·id="l00065"·name="l00065"></a><span·class="lineno">···65</span>····<span·class="keywordtype">size_t</span>·getHeight()·<span·class="keyword">const</span>;</div> | ||
103 | <div·class="line"><a·id="l00066"·name="l00066"></a><span·class="lineno">···66</span>····<a·class="code·hl_enumeration"·href="a00129.html#a60883d4958a60b91661e97027a85072a">PixelFormat</a>·getPixelFormat()·<span·class="keyword">const</span>;</div> | ||
104 | <div·class="line"><a·id="l0006 | 117 | <div·class="line"><a·id="l00068"·name="l00068"></a><span·class="lineno">···68</span>····</div> |
105 | <div·class="line"><a·id="l00074"·name="l00074"></a><span·class="lineno">···74</span>····<span·class="keywordtype">bool</span>··flipVertically();</div> | ||
106 | <div·class="line"><a·id="l00075"·name="l00075"></a><span·class="lineno">···75</span>·<span·class="keyword">protected</span>:</div> | ||
107 | <div·class="line"><a·id="l00076"·name="l00076"></a><span·class="lineno">···76</span>····<span·class="keywordtype">void</span>·setWidth(<span·class="keywordtype">size_t</span>·width);</div> | ||
108 | <div·class="line"><a·id="l00077"·name="l00077"></a><span·class="lineno">···77</span>····</div> | ||
109 | <div·class="line"><a·id="l00078"·name="l00078"></a><span·class="lineno">···78</span>····<span·class="keywordtype">void</span>·setHeight(<span·class="keywordtype">size_t</span>·height);</div> | ||
110 | <div·class="line"><a·id="l000 | 118 | <div·class="line"><a·id="l00069"·name="l00069"></a><span·class="lineno">···69</span>····</div> |
119 | <div·class="line"><a·id="l00070"·name="l00070"></a><span·class="lineno">···70</span>····<span·class="keyword">friend</span>·<span·class="keyword">class·</span><a·class="code·hl_class"·href="a00957.html">PNGImageLoader</a>;</div> | ||
111 | <div·class="line"><a·id="l00088"·name="l00088"></a><span·class="lineno"><a·class="line"·href="a00981.html#a65eda98c8a4f75b1d92a9edc8db86313">···88</a></span>····<a·class="code·hl_function"·href="a00981.html#a65eda98c8a4f75b1d92a9edc8db86313">ImageContext</a>(<span·class="keywordtype">size_t</span>·width,·<span·class="keywordtype">size_t</span>·height);</div> | ||
112 | <div·class="line"><a·id="l00089"·name="l00089"></a><span·class="lineno">···89</span>·</div> | ||
113 | <div·class="line"><a·id="l00090"·name="l00090"></a><span·class="lineno">···90</span><span·class="keyword">private</span>:····</div> | ||
114 | <div·class="line"><a·id="l00091"·name="l00091"></a><span·class="lineno">···91</span>····<span·class="keywordtype">byte</span>*·d_pixels;</div> | ||
115 | <div·class="line"><a·id="l00092"·name="l00092"></a><span·class="lineno">···92</span>····<span·class="keywordtype">size_t</span>·d_length;</div> | ||
116 | <div·class="line"><a·id="l00093"·name="l00093"></a><span·class="lineno">···93</span>····<span·class="keywordtype">size_t</span>·d_width;</div> | ||
117 | <div·class="line"><a·id="l00094"·name="l00094"></a><span·class="lineno">···94</span>····<span·class="keywordtype">size_t</span>·d_height;</div> | ||
118 | <div·class="line"><a·id="l00095"·name="l00095"></a><span·class="lineno">···95</span>····<span·class="keywordtype">size_t</span>·d_currentOffset;</div> | ||
119 | <div·class="line"><a·id="l00096"·name="l00096"></a><span·class="lineno">···96</span>····<a·class="code·hl_enumeration"·href="a00129.html#a60883d4958a60b91661e97027a85072a">PixelFormat</a>·d_format;</div> | ||
120 | <div·class="line"><a·id="l00097"·name="l00097"></a><span·class="lineno">···97</span>·</div> | ||
121 | <div·class="line"><a·id="l00098"·name="l00098"></a><span·class="lineno">···98</span>····<span·class="comment">//·Disabled·operation</span></div> | ||
122 | <div·class="line"><a·id="l00099"·name="l00099"></a><span·class="lineno">···99</span>····<a·class="code·hl_class"·href="a00981.html">ImageContext</a>(<a·class="code·hl_class"·href="a00981.html">ImageContext</a>&);</div> | ||
123 | <div·class="line"><a·id="l00100"·name="l00100"></a><span·class="lineno">··100</span>····<a·class="code·hl_class"·href="a00981.html">ImageContext</a>&·operator=(<a·class="code·hl_class"·href="a00981.html">ImageContext</a>&);</div> | ||
124 | <div·class="line"><a·id="l00 | 120 | <div·class="line"><a·id="l00071"·name="l00071"></a><span·class="lineno">···71</span>};</div> |
125 | </div> | 121 | </div> |
126 | <div·class="line"><a·id="l00 | 122 | <div·class="line"><a·id="l00072"·name="l00072"></a><span·class="lineno">···72</span>··</div> |
127 | <div·class="line"><a·id="l00 | 123 | <div·class="line"><a·id="l00073"·name="l00073"></a><span·class="lineno">···73</span>··</div> |
128 | <div·class="line"><a·id="l00 | 124 | <div·class="line"><a·id="l00074"·name="l00074"></a><span·class="lineno">···74</span>}·<span·class="comment">//·End·of·section·namespace·SILLY·</span></div> |
129 | <div·class="line"><a·id="l00 | 125 | <div·class="line"><a·id="l00075"·name="l00075"></a><span·class="lineno">···75</span>·</div> |
130 | <div·class="line"><a·id="l00 | 126 | <div·class="line"><a·id="l00076"·name="l00076"></a><span·class="lineno">···76</span><span·class="comment">//·Inclue·inline·function·when·needed·</span></div> |
131 | <div·class="line"><a·id="l00 | 127 | <div·class="line"><a·id="l00077"·name="l00077"></a><span·class="lineno">···77</span><span·class="preprocessor">#ifdef·SILLY_OPT_INLINE</span></div> |
132 | <div·class="line"><a·id="l00 | 128 | <div·class="line"><a·id="l00078"·name="l00078"></a><span·class="lineno">···78</span><span·class="preprocessor">#include·"SILLYPNGImageContext.icpp"</span></div> |
133 | <div·class="line"><a·id="l00 | 129 | <div·class="line"><a·id="l00079"·name="l00079"></a><span·class="lineno">···79</span><span·class="preprocessor">#endif·</span></div> |
134 | <div·class="line"><a·id="l00 | 130 | <div·class="line"><a·id="l00080"·name="l00080"></a><span·class="lineno">···80</span>·</div> |
135 | <div·class="line"><a·id="l00 | 131 | <div·class="line"><a·id="l00081"·name="l00081"></a><span·class="lineno">···81</span><span·class="preprocessor">#endif·</span><span·class="comment">//·end·of·guard·_SILLYPNGImageContext_h_</span></div> |
136 | <div·class="ttc"·id="aa00129_html"><div·class="ttname"><a·href="a00129.html">SILLY</a></div><div·class="ttdoc">Simple·Image·Loading·LibrarY·namespace.</div><div·class="ttdef"><b>Definition</b>·<a·href="a0002 | 132 | <div·class="ttc"·id="aa00129_html"><div·class="ttname"><a·href="a00129.html">SILLY</a></div><div·class="ttdoc">Simple·Image·Loading·LibrarY·namespace.</div><div·class="ttdef"><b>Definition</b>·<a·href="a00023_source.html#l00045">SILLYJPGImageContext.cpp:46</a></div></div> |
137 | <div·class="ttc"·id="aa00 | 133 | <div·class="ttc"·id="aa00953_html"><div·class="ttname"><a·href="a00953.html">SILLY::PNGImageContext</a></div><div·class="ttdoc">Image·Context·for·PNG·Image·Loader.</div><div·class="ttdef"><b>Definition</b>·<a·href="a00092_source.html#l00045">SILLYPNGImageContext.h:46</a></div></div> |
134 | <div·class="ttc"·id="aa00957_html"><div·class="ttname"><a·href="a00957.html">SILLY::PNGImageLoader</a></div><div·class="ttdoc">Loader·for·PNG·Image.</div><div·class="ttdef"><b>Definition</b>·<a·href="a00104_source.html#l00042">SILLYPNGImageLoader.h:43</a></div></div> | ||
135 | <div·class="ttc"·id="aa00969_html"><div·class="ttname"><a·href="a00969.html">SILLY::DataSource</a></div><div·class="ttdoc">This·is·an·abstract·class·used·to·provide·data·to·the·loader.</div><div·class="ttdef"><b>Definition</b>·<a·href="a00083_source.html#l00046">SILLYDataSource.h:47</a></div></div> | ||
138 | <div·class="ttc"·id="aa00981_html"><div·class="ttname"><a·href="a00981.html">SILLY::ImageContext</a></div><div·class="ttdoc">Store·the·data·needed·by·an·ImageLoader·object·during·the·parsing·of·an·image.</div><div·class="ttdef"><b>Definition</b>·<a·href="a000 | 136 | <div·class="ttc"·id="aa00981_html"><div·class="ttname"><a·href="a00981.html">SILLY::ImageContext</a></div><div·class="ttdoc">Store·the·data·needed·by·an·ImageLoader·object·during·the·parsing·of·an·image.</div><div·class="ttdef"><b>Definition</b>·<a·href="a00074_source.html#l00043">SILLYImageContext.h:44</a></div></div> |
139 | <div·class="ttc"·id="aa00981_html_a0a14b41eedffcc328575628da1a6cd35"><div·class="ttname"><a·href="a00981.html#a0a14b41eedffcc328575628da1a6cd35">SILLY::ImageContext::setNextPixel</a></div><div·class="ttdeci">void·setNextPixel(byte·red,·byte·green,·byte·bleu,·byte·alpha)</div><div·class="ttdoc">Set·the·next·pixel·of·the·image.</div></div> | ||
140 | <div·class="ttc"·id="aa00981_html_a16a47c38b10d37a0eff7abc7e17e7275"><div·class="ttname"><a·href="a00981.html#a16a47c38b10d37a0eff7abc7e17e7275">SILLY::ImageContext::setDestination</a></div><div·class="ttdeci">void·setDestination(byte·*pixels,·size_t·length,·PixelFormat·format)</div><div·class="ttdoc">Set·the·destination·of·the·loading.</div></div> | ||
Max diff block lines reached; 271/25316 bytes (1.07%) of diff not shown. |
Offset 1, 20 lines modified | Offset 1, 20 lines modified | ||
1 | Simple·Image·Loading·LibrarY 0.1.0 | 1 | Simple·Image·Loading·LibrarY 0.1.0 |
2 | ····*·_\x8b_\x8u_\x8i_\x8l_\x8d | 2 | ····*·_\x8b_\x8u_\x8i_\x8l_\x8d |
3 | ····*·_\x8r_\x8e_\x8p_\x8r_\x8o_\x8d_\x8u_\x8c_\x8i_\x8b_\x8l_\x8e_\x8-_\x8p_\x8a_\x8t_\x8h | 3 | ····*·_\x8r_\x8e_\x8p_\x8r_\x8o_\x8d_\x8u_\x8c_\x8i_\x8b_\x8l_\x8e_\x8-_\x8p_\x8a_\x8t_\x8h |
4 | ····*·_\x8s_\x8i_\x8l_\x8l_\x8y_\x8-_\x80_\x8._\x81_\x8._\x80 | 4 | ····*·_\x8s_\x8i_\x8l_\x8l_\x8y_\x8-_\x80_\x8._\x81_\x8._\x80 |
5 | ····*·_\x8i_\x8n_\x8c_\x8l_\x8u_\x8d_\x8e | 5 | ····*·_\x8i_\x8n_\x8c_\x8l_\x8u_\x8d_\x8e |
6 | ····*·_\x8l_\x8o_\x8a_\x8d_\x8e_\x8r_\x8s | ||
6 | SILLYImageContext.h | 7 | SILLYPNGImageContext.h |
7 | 1/*********************************************************************** | 8 | 1/*********************************************************************** |
8 | 2·filename:·SILLYImageContext.h | 9 | 2·filename:·SILLYPNGImageContext.h |
9 | 3·created:·1 | 10 | 3·created:·11·Jun·2006 |
10 | 4·author:·Olivier·Delannoy | 11 | 4·author:·Olivier·Delannoy |
11 | 5 | 12 | 5 |
13 | 6·purpose:·Declaration·of·the·PNGImageContext·class | ||
12 | 6·purpose:·ImageContext·is·an·abstract·class·used·to·hide·the·loader·specific | ||
13 | data·needed·during·the·parsing·of·an·image | ||
14 | 7*************************************************************************/ | 14 | 7*************************************************************************/ |
15 | 8/*************************************************************************** | 15 | 8/*************************************************************************** |
16 | 9·*·Copyright·(C)·2004·-·2006·Paul·D·Turner·&·The·CEGUI·Development·Team | 16 | 9·*·Copyright·(C)·2004·-·2006·Paul·D·Turner·&·The·CEGUI·Development·Team |
17 | 10·* | 17 | 10·* |
18 | 11·*·Permission·is·hereby·granted,·free·of·charge,·to·any·person·obtaining | 18 | 11·*·Permission·is·hereby·granted,·free·of·charge,·to·any·person·obtaining |
19 | 12·*·a·copy·of·this·software·and·associated·documentation·files·(the | 19 | 12·*·a·copy·of·this·software·and·associated·documentation·files·(the |
20 | 13·*·"Software"),·to·deal·in·the·Software·without·restriction,·including | 20 | 13·*·"Software"),·to·deal·in·the·Software·without·restriction,·including |
Offset 30, 82 lines modified | Offset 30, 71 lines modified | ||
30 | 23·*·EXPRESS·OR·IMPLIED,·INCLUDING·BUT·NOT·LIMITED·TO·THE·WARRANTIES·OF | 30 | 23·*·EXPRESS·OR·IMPLIED,·INCLUDING·BUT·NOT·LIMITED·TO·THE·WARRANTIES·OF |
31 | 24·*·MERCHANTABILITY,·FITNESS·FOR·A·PARTICULAR·PURPOSE·AND·NONINFRINGEMENT. | 31 | 24·*·MERCHANTABILITY,·FITNESS·FOR·A·PARTICULAR·PURPOSE·AND·NONINFRINGEMENT. |
32 | 25·*·IN·NO·EVENT·SHALL·THE·AUTHORS·BE·LIABLE·FOR·ANY·CLAIM,·DAMAGES·OR | 32 | 25·*·IN·NO·EVENT·SHALL·THE·AUTHORS·BE·LIABLE·FOR·ANY·CLAIM,·DAMAGES·OR |
33 | 26·*·OTHER·LIABILITY,·WHETHER·IN·AN·ACTION·OF·CONTRACT,·TORT·OR·OTHERWISE, | 33 | 26·*·OTHER·LIABILITY,·WHETHER·IN·AN·ACTION·OF·CONTRACT,·TORT·OR·OTHERWISE, |
34 | 27·*·ARISING·FROM,·OUT·OF·OR·IN·CONNECTION·WITH·THE·SOFTWARE·OR·THE·USE·OR | 34 | 27·*·ARISING·FROM,·OUT·OF·OR·IN·CONNECTION·WITH·THE·SOFTWARE·OR·THE·USE·OR |
35 | 28·*·OTHER·DEALINGS·IN·THE·SOFTWARE. | 35 | 28·*·OTHER·DEALINGS·IN·THE·SOFTWARE. |
36 | 29·***************************************************************************/ | 36 | 29·***************************************************************************/ |
37 | 30#ifndef·_SILLYImageContext_h_ | 37 | 30#ifndef·_SILLYPNGImageContext_h_ |
38 | 31#define·_SILLYImageContext_h_ | 38 | 31#define·_SILLYPNGImageContext_h_ |
39 | 32#include·"SILLYBase.h" | 39 | 32#include·"SILLYBase.h" |
40 | 33 | 40 | 33#include·"SILLYImageContext.h" |
41 | 34#include·"SILLYDataSource.h" | ||
42 | 35#include·<png.h> | ||
41 | 3 | 43 | 36//·Start·of·section·namespace·SILLY |
42 | 3 | 44 | 37namespace·_\x8S_\x8I_\x8L_\x8L_\x8Y |
43 | 36{ | ||
44 | 37 | ||
45 | _\x84_\x83class·SILLY_EXPORT·_\x8I_\x8m_\x8a_\x8g_\x8e_\x8C_\x8o_\x8n_\x8t_\x8e_\x8x_\x8t | ||
46 | 45 | 38{ | |
46 | 39 | ||
47 | _\x84_\x85class·SILLY_EXPORT·_\x8P_\x8N_\x8G_\x8I_\x8m_\x8a_\x8g_\x8e_\x8C_\x8o_\x8n_\x8t_\x8e_\x8x_\x8t·:·public·_\x8I_\x8m_\x8a_\x8g_\x8e_\x8C_\x8o_\x8n_\x8t_\x8e_\x8x_\x8t | ||
48 | 46{ | ||
47 | 4 | 49 | 47public: |
50 | 48·_\x8P_\x8N_\x8G_\x8I_\x8m_\x8a_\x8g_\x8e_\x8C_\x8o_\x8n_\x8t_\x8e_\x8x_\x8t(_\x8D_\x8a_\x8t_\x8a_\x8S_\x8o_\x8u_\x8r_\x8c_\x8e*·data); | ||
48 | 51 | 49·_.~_.P_.N_.G_\x8I_\x8m_\x8a_\x8g_\x8e_\x8C_\x8o_\x8n_\x8t_\x8e_\x8x_\x8t(); | |
49 | 51 | ||
50 | 52 | 50 | |
53 | 51·int·read(png_bytep·data,·png_size_t·length); | ||
54 | 52 | ||
55 | 53 | ||
56 | 54 | ||
57 | 55private: | ||
58 | 56·void·setImageSize(); | ||
51 | 57 | 59 | 57 |
52 | 60 | 58·size_t·d_offset; | |
61 | 59 | ||
62 | 60·_\x8D_\x8a_\x8t_\x8a_\x8S_\x8o_\x8u_\x8r_\x8c_\x8e*·d_data; | ||
63 | 61 | ||
64 | 62·png_structp·d_png_ptr; | ||
53 | 63 | 65 | 63 |
66 | 64·png_infop·d_info_ptr; | ||
67 | 65 | ||
54 | 64·size_t·getWidth()·const; | ||
55 | 65·size_t·getHeight()·const; | ||
56 | 66·_\x8P_\x8i_\x8x_\x8e_\x8l_\x8F_\x8o_\x8r_\x8m_\x8a_\x8t·getPixelFormat()·const; | ||
57 | 67 | ||
58 | 74·bool·flipVertically(); | ||
59 | 75·protected: | ||
60 | 76·void·setWidth(size_t·width); | ||
61 | 77 | ||
62 | 78·void·setHeight(size_t·height); | ||
63 | 79 | ||
64 | _\x88_\x88·_\x8I_\x8m_\x8a_\x8g_\x8e_\x8C_\x8o_\x8n_\x8t_\x8e_\x8x_\x8t(size_t·width,·size_t·height); | ||
65 | 89 | ||
66 | 90private: | ||
67 | 91·byte*·d_pixels; | ||
68 | 92·size_t·d_length; | ||
69 | 68 | 66·size_t·d_bit_depth; | |
69 | 67·size_t·d_num_channels; | ||
70 | 68 | ||
71 | 69 | ||
72 | 70·friend·class·_\x8P_\x8N_\x8G_\x8I_\x8m_\x8a_\x8g_\x8e_\x8L_\x8o_\x8a_\x8d_\x8e_\x8r; | ||
73 | 71}; | ||
74 | 72 | ||
75 | 73 | ||
70 | 94·size_t·d_height; | ||
71 | 95·size_t·d_currentOffset; | ||
72 | 96·_\x8P_\x8i_\x8x_\x8e_\x8l_\x8F_\x8o_\x8r_\x8m_\x8a_\x8t·d_format; | ||
73 | 97 | ||
74 | 98·//·Disabled·operation | ||
75 | 99·_\x8I_\x8m_\x8a_\x8g_\x8e_\x8C_\x8o_\x8n_\x8t_\x8e_\x8x_\x8t(_\x8I_\x8m_\x8a_\x8g_\x8e_\x8C_\x8o_\x8n_\x8t_\x8e_\x8x_\x8t&); | ||
76 | 100·_\x8I_\x8m_\x8a_\x8g_\x8e_\x8C_\x8o_\x8n_\x8t_\x8e_\x8x_\x8t&·operator=(_\x8I_\x8m_\x8a_\x8g_\x8e_\x8C_\x8o_\x8n_\x8t_\x8e_\x8x_\x8t&); | ||
77 | 101}; | ||
78 | 102 | ||
79 | 103 | ||
80 | 76 | 74}·//·End·of·section·namespace·SILLY | |
81 | 77 | 75 | |
82 | 78 | 76//·Inclue·inline·function·when·needed | |
83 | 79 | 77#ifdef·SILLY_OPT_INLINE | |
84 | 80 | 78#include·"SILLYPNGImageContext.icpp" | |
85 | 81 | 79#endif | |
86 | 82 | 80 | |
87 | 83 | 81#endif·//·end·of·guard·_SILLYPNGImageContext_h_ | |
88 | _\x8S_\x8I_\x8L_\x8L_\x8Y | 84 | _\x8S_\x8I_\x8L_\x8L_\x8Y |
89 | Simple·Image·Loading·LibrarY·namespace. | 85 | Simple·Image·Loading·LibrarY·namespace. |
90 | D\x8De\x8ef\x8fi\x8in\x8ni\x8it\x8ti\x8io\x8on\x8n·_\x8S_\x8I_\x8L_\x8L_\x8Y_\x8J_\x8P_\x8G_\x8I_\x8m_\x8a_\x8g_\x8e_\x8C_\x8o_\x8n_\x8t_\x8e_\x8x_\x8t_\x8._\x8c_\x8p_\x8p_\x8:_\x84_\x86 | 86 | D\x8De\x8ef\x8fi\x8in\x8ni\x8it\x8ti\x8io\x8on\x8n·_\x8S_\x8I_\x8L_\x8L_\x8Y_\x8J_\x8P_\x8G_\x8I_\x8m_\x8a_\x8g_\x8e_\x8C_\x8o_\x8n_\x8t_\x8e_\x8x_\x8t_\x8._\x8c_\x8p_\x8p_\x8:_\x84_\x86 |
91 | _\x8S_\x8I_\x8L_\x8L_\x8Y_\x8:_\x8:_\x8P_\x8i_\x8x_\x8e_\x8l_\x8F_\x8o_\x8r_\x8m_\x8a_\x8t | ||
92 | PixelFormat | ||
93 | L | 87 | _.S_.I_.L_.L_.Y_.:_.:_.P_.N_.G_.I_.m_.a_.g_.e_.C_.o_.n_.t_.e_.x_.t |
88 | Image·Context·for·PNG·Image·Loader. | ||
89 | D\x8De\x8ef\x8fi\x8in\x8ni\x8it\x8ti\x8io\x8on\x8n·_\x8S_\x8I_\x8L_\x8L_\x8Y_\x8P_\x8N_\x8G_\x8I_\x8m_\x8a_\x8g_\x8e_\x8C_\x8o_\x8n_\x8t_\x8e_\x8x_\x8t_\x8._\x8h_\x8:_\x84_\x86 | ||
90 | _\x8S_\x8I_\x8L_\x8L_\x8Y_\x8:_\x8:_\x8P_\x8N_\x8G_\x8I_\x8m_\x8a_\x8g_\x8e_\x8L_\x8o_\x8a_\x8d_\x8e_\x8r | ||
91 | Loader·for·PNG·Image. | ||
92 | D\x8De\x8ef\x8fi\x8in\x8ni\x8it\x8ti\x8io\x8on\x8n·_\x8S_\x8I_\x8L_\x8L_\x8Y_\x8P_\x8N_\x8G_\x8I_\x8m_\x8a_\x8g_\x8e_\x8L_\x8o_\x8a_\x8d_\x8e_\x8r_\x8._\x8h_\x8:_\x84_\x83 | ||
93 | _\x8S_\x8I_\x8L_\x8L_\x8Y_\x8:_\x8:_\x8D_\x8a_\x8t_\x8a_\x8S_\x8o_\x8u_\x8r_\x8c_\x8e | ||
94 | This·is·an·abstract·class·used·to·provide·data·to·the·loader. | ||
94 | D\x8De\x8ef\x8fi\x8in\x8ni\x8it\x8ti\x8io\x8on\x8n·_\x8S_\x8I_\x8L_\x8L_\x8Y_\x8 | 95 | D\x8De\x8ef\x8fi\x8in\x8ni\x8it\x8ti\x8io\x8on\x8n·_\x8S_\x8I_\x8L_\x8L_\x8Y_\x8D_.a_.t_.a_.S_.o_.u_.r_.c_.e_.._.h_.:_.4_.7 |
95 | _\x8S_\x8I_\x8L_\x8L_\x8Y_\x8:_\x8:_\x8I_\x8m_\x8a_\x8g_\x8e_\x8C_\x8o_\x8n_\x8t_\x8e_\x8x_\x8t | 96 | _\x8S_\x8I_\x8L_\x8L_\x8Y_\x8:_\x8:_\x8I_\x8m_\x8a_\x8g_\x8e_\x8C_\x8o_\x8n_\x8t_\x8e_\x8x_\x8t |
96 | Store·the·data·needed·by·an·ImageLoader·object·during·the·parsing·of·an·image. | 97 | Store·the·data·needed·by·an·ImageLoader·object·during·the·parsing·of·an·image. |
97 | D\x8De\x8ef\x8fi\x8in\x8ni\x8it\x8ti\x8io\x8on\x8n·_\x8S_\x8I_\x8L_\x8L_\x8Y_\x8I_\x8m_\x8a_\x8g_\x8e_\x8C_\x8o_\x8n_\x8t_\x8e_\x8x_\x8t_\x8._\x8h_\x8:_\x84_\x84 | 98 | D\x8De\x8ef\x8fi\x8in\x8ni\x8it\x8ti\x8io\x8on\x8n·_\x8S_\x8I_\x8L_\x8L_\x8Y_\x8I_\x8m_\x8a_\x8g_\x8e_\x8C_\x8o_\x8n_\x8t_\x8e_\x8x_\x8t_\x8._\x8h_\x8:_\x84_\x84 |
98 | _\x8S_\x8I_\x8L_\x8L_\x8Y_\x8:_\x8:_\x8I_\x8m_\x8a_\x8g_\x8e_\x8C_\x8o_\x8n_\x8t_\x8e_\x8x_\x8t_\x8:_\x8:_\x8s_\x8e_\x8t_\x8N_\x8e_\x8x_\x8t_\x8P_\x8i_\x8x_\x8e_\x8l | ||
99 | void·setNextPixel(byte·red,·byte·green,·byte·bleu,·byte·alpha) | ||
100 | Set·the·next·pixel·of·the·image. | ||
101 | _\x8S_\x8I_\x8L_\x8L_\x8Y_\x8:_\x8:_\x8I_\x8m_\x8a_\x8g_\x8e_\x8C_\x8o_\x8n_\x8t_\x8e_\x8x_\x8t_\x8:_\x8:_\x8s_\x8e_\x8t_\x8D_\x8e_\x8s_\x8t_\x8i_\x8n_\x8a_\x8t_\x8i_\x8o_\x8n | ||
Max diff block lines reached; 53/6272 bytes (0.85%) of diff not shown. |
Offset 1, 15 lines modified | Offset 1, 15 lines modified | ||
1 | <!DOCTYPE·html·PUBLIC·"-//W3C//DTD·XHTML·1.0·Transitional//EN"·"https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> | 1 | <!DOCTYPE·html·PUBLIC·"-//W3C//DTD·XHTML·1.0·Transitional//EN"·"https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> |
2 | <html·xmlns="http://www.w3.org/1999/xhtml"·lang="en-US"> | 2 | <html·xmlns="http://www.w3.org/1999/xhtml"·lang="en-US"> |
3 | <head> | 3 | <head> |
4 | <meta·http-equiv="Content-Type"·content="text/xhtml;charset=UTF-8"/> | 4 | <meta·http-equiv="Content-Type"·content="text/xhtml;charset=UTF-8"/> |
5 | <meta·http-equiv="X-UA-Compatible"·content="IE=11"/> | 5 | <meta·http-equiv="X-UA-Compatible"·content="IE=11"/> |
6 | <meta·name="generator"·content="Doxygen·1.9.8"/> | 6 | <meta·name="generator"·content="Doxygen·1.9.8"/> |
7 | <meta·name="viewport"·content="width=device-width,·initial-scale=1"/> | 7 | <meta·name="viewport"·content="width=device-width,·initial-scale=1"/> |
8 | <title>Simple·Image·Loading·LibrarY:·/build/reproducible-path/silly-0.1.0/include/SILLYImage | 8 | <title>Simple·Image·Loading·LibrarY:·/build/reproducible-path/silly-0.1.0/include/loaders/SILLYJPGImageContext.icpp·Source·File</title> |
9 | <link·href="tabs.css"·rel="stylesheet"·type="text/css"/> | 9 | <link·href="tabs.css"·rel="stylesheet"·type="text/css"/> |
10 | <script·type="text/javascript"·src="jquery.js"></script> | 10 | <script·type="text/javascript"·src="jquery.js"></script> |
11 | <script·type="text/javascript"·src="dynsections.js"></script> | 11 | <script·type="text/javascript"·src="dynsections.js"></script> |
12 | <link·href="doxygen.css"·rel="stylesheet"·type="text/css"·/> | 12 | <link·href="doxygen.css"·rel="stylesheet"·type="text/css"·/> |
13 | </head> | 13 | </head> |
14 | <body> | 14 | <body> |
15 | <div·id="top"><!--·do·not·remove·this·div,·it·is·closed·by·doxygen!·--> | 15 | <div·id="top"><!--·do·not·remove·this·div,·it·is·closed·by·doxygen!·--> |
Offset 40, 101 lines modified | Offset 40, 57 lines modified | ||
40 | <script·type="text/javascript"> | 40 | <script·type="text/javascript"> |
41 | /*·@license·magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt·MIT·*/ | 41 | /*·@license·magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt·MIT·*/ |
42 | $(document).ready(function()·{·init_codefold(0);·}); | 42 | $(document).ready(function()·{·init_codefold(0);·}); |
43 | /*·@license-end·*/ | 43 | /*·@license-end·*/ |
44 | </script> | 44 | </script> |
45 | <div·id="nav-path"·class="navpath"> | 45 | <div·id="nav-path"·class="navpath"> |
46 | ··<ul> | 46 | ··<ul> |
47 | <li·class="navelem"><a·class="el"·href="dir_4fef79e7177ba769987a8da36c892c5f.html">build</a></li><li·class="navelem"><a·class="el"·href="dir_9def6061848686aab7e6212bb499d615.html">reproducible-path</a></li><li·class="navelem"><a·class="el"·href="dir_74170d5b58cefb7cb5a86fc552b183a3.html">silly-0.1.0</a></li><li·class="navelem"><a·class="el"·href="dir_0d87e2e7ddaae8a2a8572c0afc59fe0d.html">include</a></li>··</ul> | 47 | <li·class="navelem"><a·class="el"·href="dir_4fef79e7177ba769987a8da36c892c5f.html">build</a></li><li·class="navelem"><a·class="el"·href="dir_9def6061848686aab7e6212bb499d615.html">reproducible-path</a></li><li·class="navelem"><a·class="el"·href="dir_74170d5b58cefb7cb5a86fc552b183a3.html">silly-0.1.0</a></li><li·class="navelem"><a·class="el"·href="dir_0d87e2e7ddaae8a2a8572c0afc59fe0d.html">include</a></li><li·class="navelem"><a·class="el"·href="dir_7cea72c962538e8359f822070f2512f7.html">loaders</a></li>··</ul> |
48 | </div> | 48 | </div> |
49 | </div><!--·top·--> | 49 | </div><!--·top·--> |
50 | <div·class="header"> | 50 | <div·class="header"> |
51 | ··<div·class="headertitle"><div·class="title">SILLYImage | 51 | ··<div·class="headertitle"><div·class="title">SILLYJPGImageContext.icpp</div></div> |
52 | </div><!--header--> | 52 | </div><!--header--> |
53 | <div·class="contents"> | 53 | <div·class="contents"> |
54 | <div·class="fragment"><div·class="line"><a·id="l00001"·name="l00001"></a><span·class="lineno">····1</span> | 54 | <div·class="fragment"><div·class="line"><a·id="l00001"·name="l00001"></a><span·class="lineno">····1</span>/***********************************************************************</div> |
55 | <div·class="line"><a·id="l00002"·name="l00002"></a><span·class="lineno">····2</span> | 55 | <div·class="line"><a·id="l00002"·name="l00002"></a><span·class="lineno">····2</span>····filename:···SILLYJPGImageContext.icpp·</div> |
56 | <div·class="line"><a·id="l00003"·name="l00003"></a><span·class="lineno">····3</span> | 56 | <div·class="line"><a·id="l00003"·name="l00003"></a><span·class="lineno">····3</span>····created:····11·Jun·2006</div> |
57 | <div·class="line"><a·id="l00004"·name="l00004"></a><span·class="lineno">····4</span> | 57 | <div·class="line"><a·id="l00004"·name="l00004"></a><span·class="lineno">····4</span>····author:·····Olivier·Delannoy</div> |
58 | <div·class="line"><a·id="l00005"·name="l00005"></a><span·class="lineno">····5</span><span·class="comment"></span>·</div> | ||
59 | <div·class="line"><a·id="l00006"·name="l00006"></a><span·class="lineno">····6</span><span·class="comment">····purpose:····Abstract·class·for·all·image·loader·</span></div> | ||
60 | <div·class="line"><a·id="l00007"·name="l00007"></a><span·class="lineno">····7</span><span·class="comment">*************************************************************************/</span></div> | ||
61 | <div·class="line"><a·id="l00008"·name="l00008"></a><span·class="lineno">····8</span><span·class="comment">/***************************************************************************</span></div> | ||
62 | <div·class="line"><a·id="l00009"·name="l00009"></a><span·class="lineno">····9</span><span·class="comment">·*···Copyright·(C)·2004·-·2006·Paul·D·Turner·&·The·CEGUI·Development·Team</span></div> | ||
63 | <div·class="line"><a·id="l00010"·name="l00010"></a><span·class="lineno">···10</span><span·class="comment">·*</span></div> | ||
64 | <div·class="line"><a·id="l00011"·name="l00011"></a><span·class="lineno">···11</span><span·class="comment">·*···Permission·is·hereby·granted,·free·of·charge,·to·any·person·obtaining</span></div> | ||
65 | <div·class="line"><a·id="l00012"·name="l00012"></a><span·class="lineno">···12</span><span·class="comment">·*···a·copy·of·this·software·and·associated·documentation·files·(the</span></div> | ||
66 | <div·class="line"><a·id="l00013"·name="l00013"></a><span·class="lineno">···13</span><span·class="comment">·*···"Software"),·to·deal·in·the·Software·without·restriction,·including</span></div> | ||
67 | <div·class="line"><a·id="l00014"·name="l00014"></a><span·class="lineno">···14</span><span·class="comment">·*···without·limitation·the·rights·to·use,·copy,·modify,·merge,·publish,</span></div> | ||
68 | <div·class="line"><a·id="l00015"·name="l00015"></a><span·class="lineno">···15</span><span·class="comment">·*···distribute,·sublicense,·and/or·sell·copies·of·the·Software,·and·to</span></div> | ||
69 | <div·class="line"><a·id="l00016"·name="l00016"></a><span·class="lineno">···16</span><span·class="comment">·*···permit·persons·to·whom·the·Software·is·furnished·to·do·so,·subject·to</span></div> | ||
70 | <div·class="line"><a·id="l00017"·name="l00017"></a><span·class="lineno">···17</span><span·class="comment">·*···the·following·conditions:</span></div> | ||
71 | <div·class="line"><a·id="l00018"·name="l00018"></a><span·class="lineno">···18</span><span·class="comment">·*</span></div> | ||
72 | <div·class="line"><a·id="l00019"·name="l00019"></a><span·class="lineno">···19</span><span·class="comment">·*···The·above·copyright·notice·and·this·permission·notice·shall·be</span></div> | ||
73 | <div·class="line"><a·id="l00020"·name="l00020"></a><span·class="lineno">···20</span><span·class="comment">·*···included·in·all·copies·or·substantial·portions·of·the·Software.</span></div> | ||
74 | <div·class="line"><a·id="l00021"·name="l00021"></a><span·class="lineno">···21</span><span·class="comment">·*</span></div> | ||
75 | <div·class="line"><a·id="l00022"·name="l00022"></a><span·class="lineno">···22</span><span·class="comment">·*···THE·SOFTWARE·IS·PROVIDED·"AS·IS",·WITHOUT·WARRANTY·OF·ANY·KIND,</span></div> | ||
76 | <div·class="line"><a·id="l00023"·name="l00023"></a><span·class="lineno">···23</span><span·class="comment">·*···EXPRESS·OR·IMPLIED,·INCLUDING·BUT·NOT·LIMITED·TO·THE·WARRANTIES·OF</span></div> | ||
77 | <div·class="line"><a·id="l00024"·name="l00024"></a><span·class="lineno">···24</span><span·class="comment">·*···MERCHANTABILITY,·FITNESS·FOR·A·PARTICULAR·PURPOSE·AND·NONINFRINGEMENT.</span></div> | ||
78 | <div·class="line"><a·id="l00025"·name="l00025"></a><span·class="lineno">···25</span><span·class="comment">·*···IN·NO·EVENT·SHALL·THE·AUTHORS·BE·LIABLE·FOR·ANY·CLAIM,·DAMAGES·OR</span></div> | ||
79 | <div·class="line"><a·id="l00026"·name="l00026"></a><span·class="lineno">···26</span><span·class="comment">·*···OTHER·LIABILITY,·WHETHER·IN·AN·ACTION·OF·CONTRACT,·TORT·OR·OTHERWISE,</span></div> | ||
80 | <div·class="line"><a·id="l00027"·name="l00027"></a><span·class="lineno">···27</span><span·class="comment">·*···ARISING·FROM,·OUT·OF·OR·IN·CONNECTION·WITH·THE·SOFTWARE·OR·THE·USE·OR</span></div> | ||
81 | <div·class="line"><a·id="l00028"·name="l00028"></a><span·class="lineno">···28</span><span·class="comment">·*···OTHER·DEALINGS·IN·THE·SOFTWARE.</span></div> | ||
82 | <div·class="line"><a·id="l00029"·name="l00029"></a><span·class="lineno">···29</span><span·class="comment">·***************************************************************************/</span></div> | ||
83 | <div·class="line"><a·id="l00030"·name="l00030"></a><span·class="lineno">···30</span><span·class="preprocessor">#ifndef·_SILLYImageLoader_h_·</span></div> | ||
84 | <div·class="line"><a·id="l00031"·name="l00031"></a><span·class="lineno">···31</span><span·class="preprocessor">#define·_SILLYImageLoader_h_</span></div> | ||
85 | <div·class="line"><a·id="l00032"·name="l00032"></a><span·class="lineno">···32</span><span·class="preprocessor">#include·"SILLYBase.h"</span></div> | ||
86 | <div·class="line"><a·id="l00033"·name="l00033"></a><span·class="lineno">···33</span><span·class="comment">//·Start·of·section·namespace·SILLY·</span></div> | ||
87 | <div·class="line"><a·id="l00034"·name="l00034"></a><span·class="lineno">···34</span><span·class="keyword">namespace·</span><a·class="code·hl_namespace"·href="a00129.html">SILLY</a></div> | ||
88 | <div·class="line"><a·id="l000 | 58 | <div·class="line"><a·id="l00005"·name="l00005"></a><span·class="lineno">····5</span>·</div> |
89 | <div·class="line"><a·id="l00036"·name="l00036"></a><span·class="lineno">···36</span><span·class="keyword">class·</span>DataSource;···············<span·class="comment">//·Forward·declaration</span></div> | ||
90 | <div·class="line"><a·id="l000 | 59 | <div·class="line"><a·id="l00006"·name="l00006"></a><span·class="lineno">····6</span>····purpose:····Inline·definition·for·JPG·context···</div> |
60 | <div·class="line"><a·id="l00007"·name="l00007"></a><span·class="lineno">····7</span>*************************************************************************/</div> | ||
61 | <div·class="line"><a·id="l00008"·name="l00008"></a><span·class="lineno">····8</span>/***************************************************************************</div> | ||
62 | <div·class="line"><a·id="l00009"·name="l00009"></a><span·class="lineno">····9</span>·*···Copyright·(C)·2004·-·2006·Paul·D·Turner·&·The·CEGUI·Development·Team</div> | ||
63 | <div·class="line"><a·id="l00010"·name="l00010"></a><span·class="lineno">···10</span>·*</div> | ||
64 | <div·class="line"><a·id="l00011"·name="l00011"></a><span·class="lineno">···11</span>·*···Permission·is·hereby·granted,·free·of·charge,·to·any·person·obtaining</div> | ||
65 | <div·class="line"><a·id="l00012"·name="l00012"></a><span·class="lineno">···12</span>·*···a·copy·of·this·software·and·associated·documentation·files·(the</div> | ||
66 | <div·class="line"><a·id="l00013"·name="l00013"></a><span·class="lineno">···13</span>·*···"Software"),·to·deal·in·the·Software·without·restriction,·including</div> | ||
67 | <div·class="line"><a·id="l00014"·name="l00014"></a><span·class="lineno">···14</span>·*···without·limitation·the·rights·to·use,·copy,·modify,·merge,·publish,</div> | ||
68 | <div·class="line"><a·id="l00015"·name="l00015"></a><span·class="lineno">···15</span>·*···distribute,·sublicense,·and/or·sell·copies·of·the·Software,·and·to</div> | ||
69 | <div·class="line"><a·id="l00016"·name="l00016"></a><span·class="lineno">···16</span>·*···permit·persons·to·whom·the·Software·is·furnished·to·do·so,·subject·to</div> | ||
70 | <div·class="line"><a·id="l00017"·name="l00017"></a><span·class="lineno">···17</span>·*···the·following·conditions:</div> | ||
71 | <div·class="line"><a·id="l00018"·name="l00018"></a><span·class="lineno">···18</span>·*</div> | ||
72 | <div·class="line"><a·id="l00019"·name="l00019"></a><span·class="lineno">···19</span>·*···The·above·copyright·notice·and·this·permission·notice·shall·be</div> | ||
73 | <div·class="line"><a·id="l00020"·name="l00020"></a><span·class="lineno">···20</span>·*···included·in·all·copies·or·substantial·portions·of·the·Software.</div> | ||
74 | <div·class="line"><a·id="l00021"·name="l00021"></a><span·class="lineno">···21</span>·*</div> | ||
75 | <div·class="line"><a·id="l00022"·name="l00022"></a><span·class="lineno">···22</span>·*···THE·SOFTWARE·IS·PROVIDED·"AS·IS",·WITHOUT·WARRANTY·OF·ANY·KIND,</div> | ||
76 | <div·class="line"><a·id="l00023"·name="l00023"></a><span·class="lineno">···23</span>·*···EXPRESS·OR·IMPLIED,·INCLUDING·BUT·NOT·LIMITED·TO·THE·WARRANTIES·OF</div> | ||
77 | <div·class="line"><a·id="l00024"·name="l00024"></a><span·class="lineno">···24</span>·*···MERCHANTABILITY,·FITNESS·FOR·A·PARTICULAR·PURPOSE·AND·NONINFRINGEMENT.</div> | ||
78 | <div·class="line"><a·id="l00025"·name="l00025"></a><span·class="lineno">···25</span>·*···IN·NO·EVENT·SHALL·THE·AUTHORS·BE·LIABLE·FOR·ANY·CLAIM,·DAMAGES·OR</div> | ||
79 | <div·class="line"><a·id="l00026"·name="l00026"></a><span·class="lineno">···26</span>·*···OTHER·LIABILITY,·WHETHER·IN·AN·ACTION·OF·CONTRACT,·TORT·OR·OTHERWISE,</div> | ||
80 | <div·class="line"><a·id="l00027"·name="l00027"></a><span·class="lineno">···27</span>·*···ARISING·FROM,·OUT·OF·OR·IN·CONNECTION·WITH·THE·SOFTWARE·OR·THE·USE·OR</div> | ||
81 | <div·class="line"><a·id="l00028"·name="l00028"></a><span·class="lineno">···28</span>·*···OTHER·DEALINGS·IN·THE·SOFTWARE.</div> | ||
82 | <div·class="line"><a·id="l00029"·name="l00029"></a><span·class="lineno">···29</span>·***************************************************************************/</div> | ||
91 | <div·class="line"><a·id="l0003 | 83 | <div·class="line"><a·id="l00030"·name="l00030"></a><span·class="lineno">···30</span>·</div> |
92 | <div·class="foldopen"·id="foldopen00046"·data-start="{"·data-end="};"> | ||
93 | <div·class="line"><a·id="l000 | 84 | <div·class="line"><a·id="l00031"·name="l00031"></a><span·class="lineno">···31</span>//·Start·of·section·namespace·SILLY</div> |
85 | <div·class="line"><a·id="l00032"·name="l00032"></a><span·class="lineno">···32</span>namespace·SILLY</div> | ||
94 | <div·class="line"><a·id="l000 | 86 | <div·class="line"><a·id="l00033"·name="l00033"></a><span·class="lineno">···33</span>{</div> |
95 | <div·class="line"><a·id="l00048"·name="l00048"></a><span·class="lineno">···48</span><span·class="keyword">protected</span>:</div> | ||
96 | <div·class="line"><a·id="l00052"·name="l00052"></a><span·class="lineno"><a·class="line"·href="a00985.html#a103c77f27d983ad297f1fa541bcef8fe">···52</a></span>·····<a·class="code·hl_function"·href="a00985.html#a103c77f27d983ad297f1fa541bcef8fe">ImageLoader</a>(<span·class="keyword">const</span>·<span·class="keywordtype">char</span>*·name);</div> | ||
97 | <div·class="line"><a·id="l00053"·name="l00053"></a><span·class="lineno">···53</span><span·class="keyword">public</span>:</div> | ||
98 | <div·class="line"><a·id="l000 | 87 | <div·class="line"><a·id="l00034"·name="l00034"></a><span·class="lineno">···34</span>····</div> |
99 | <div·class="line"><a·id="l000 | 88 | <div·class="line"><a·id="l00035"·name="l00035"></a><span·class="lineno">···35</span>}·//·End·of·section·namespace·SILLY</div> |
100 | <div·class="line"><a·id="l000 | 89 | <div·class="line"><a·id="l00036"·name="l00036"></a><span·class="lineno">···36</span>·</div> |
101 | <div·class="line"><a·id="l00071"·name="l00071"></a><span·class="lineno"><a·class="line"·href="a00985.html#a4a6a3a51641cbbb3184ab00d9de6f753">···71</a></span>····<span·class="keyword">virtual</span>·<a·class="code·hl_class"·href="a00981.html">ImageContext</a>*·<a·class="code·hl_function"·href="a00985.html#a4a6a3a51641cbbb3184ab00d9de6f753">loadHeader</a>(<a·class="code·hl_enumeration"·href="a00129.html#a60883d4958a60b91661e97027a85072a">PixelFormat</a>&·formatSource,·<a·class="code·hl_class"·href="a00969.html">DataSource</a>*·data)·=·0;</div> | ||
102 | <div·class="line"><a·id="l00072"·name="l00072"></a><span·class="lineno">···72</span>·</div> | ||
103 | <div·class="line"><a·id="l00073"·name="l00073"></a><span·class="lineno">···73</span>·</div> | ||
104 | <div·class="line"><a·id="l00086"·name="l00086"></a><span·class="lineno"><a·class="line"·href="a00985.html#a7622e69834f644d7cf1201c1cabd80c6">···86</a></span>····<span·class="keyword">virtual</span>·<span·class="keywordtype">bool</span>·<a·class="code·hl_function"·href="a00985.html#a7622e69834f644d7cf1201c1cabd80c6">loadImageData</a>(<a·class="code·hl_enumeration"·href="a00129.html#aebdd89f22790687ac264c1abd9f7fd38">PixelOrigin</a>·origin,·<a·class="code·hl_class"·href="a00969.html">DataSource</a>*·data,·<a·class="code·hl_class"·href="a00981.html">ImageContext</a>*·context)·=·0;</div> | ||
105 | <div·class="line"><a·id="l00087"·name="l00087"></a><span·class="lineno">···87</span>····</div> | ||
106 | <div·class="line"><a·id="l00094"·name="l00094"></a><span·class="lineno">···94</span>····<span·class="keywordtype">void</span>·destroyContext(<a·class="code·hl_class"·href="a00981.html">ImageContext</a>*·context);</div> | ||
107 | <div·class="line"><a·id="l00095"·name="l00095"></a><span·class="lineno">···95</span>····</div> | ||
108 | <div·class="line"><a·id="l00100"·name="l00100"></a><span·class="lineno"><a·class="line"·href="a00985.html#ad1523f6b5a9c558e7eb354f6ec47e845">··100</a></span>····<span·class="keyword">const</span>·<span·class="keywordtype">char</span>*·<a·class="code·hl_function"·href="a00985.html#ad1523f6b5a9c558e7eb354f6ec47e845">getIdentifierString</a>()·<span·class="keyword">const</span>;</div> | ||
109 | <div·class="line"><a·id="l00101"·name="l00101"></a><span·class="lineno">··101</span><span·class="keyword">private</span>:</div> | ||
110 | <div·class="line"><a·id="l00102"·name="l00102"></a><span·class="lineno">··102</span>····<span·class="keyword">const</span>·<span·class="keywordtype">char</span>*·d_name;·</div> | ||
111 | <div·class="line"><a·id="l00103"·name="l00103"></a><span·class="lineno">··103</span>·</div> | ||
112 | <div·class="line"><a·id="l00104"·name="l00104"></a><span·class="lineno">··104</span>};</div> | ||
113 | </div> | ||
114 | <div·class="line"><a·id="l00105"·name="l00105"></a><span·class="lineno">··105</span>··</div> | ||
115 | <div·class="line"><a·id="l00106"·name="l00106"></a><span·class="lineno">··106</span>}·<span·class="comment">//·End·of·section·namespace·SILLY·</span></div> | ||
116 | <div·class="line"><a·id="l00107"·name="l00107"></a><span·class="lineno">··107</span>·</div> | ||
117 | <div·class="line"><a·id="l00108"·name="l00108"></a><span·class="lineno">··108</span><span·class="comment">//·Inclue·inline·function·when·needed·</span></div> | ||
118 | <div·class="line"><a·id="l00109"·name="l00109"></a><span·class="lineno">··109</span><span·class="preprocessor">#ifdef·SILLY_OPT_INLINE</span></div> | ||
119 | <div·class="line"><a·id="l00110"·name="l00110"></a><span·class="lineno">··110</span><span·class="preprocessor">#include·"SILLYImageLoader.icpp"</span></div> | ||
120 | <div·class="line"><a·id="l00111"·name="l00111"></a><span·class="lineno">··111</span><span·class="preprocessor">#endif·</span></div> | ||
121 | <div·class="line"><a·id="l00112"·name="l00112"></a><span·class="lineno">··112</span>·</div> | ||
122 | <div·class="line"><a·id="l00113"·name="l00113"></a><span·class="lineno">··113</span><span·class="preprocessor">#endif·</span><span·class="comment">//·end·of·guard·_SILLYImageLoader_h_</span></div> | ||
123 | <div·class="ttc"·id="aa00129_html"><div·class="ttname"><a·href="a00129.html">SILLY</a></div><div·class="ttdoc">Simple·Image·Loading·LibrarY·namespace.</div><div·class="ttdef"><b>Definition</b>·<a·href="a00029_source.html#l00045">SILLYJPGImageContext.cpp:46</a></div></div> | ||
124 | <div·class="ttc"·id="aa00129_html_a60883d4958a60b91661e97027a85072a"><div·class="ttname"><a·href="a00129.html#a60883d4958a60b91661e97027a85072a">SILLY::PixelFormat</a></div><div·class="ttdeci">PixelFormat</div><div·class="ttdoc">List·all·pixel·format·supported.</div><div·class="ttdef"><b>Definition</b>·<a·href="a00104_source.html#l00059">SILLYBase.h:60</a></div></div> | ||
125 | <div·class="ttc"·id="aa00129_html_aebdd89f22790687ac264c1abd9f7fd38"><div·class="ttname"><a·href="a00129.html#aebdd89f22790687ac264c1abd9f7fd38">SILLY::PixelOrigin</a></div><div·class="ttdeci">PixelOrigin</div><div·class="ttdoc">List·all·pixel·origin·supported.</div><div·class="ttdef"><b>Definition</b>·<a·href="a00104_source.html#l00070">SILLYBase.h:71</a></div></div> | ||
126 | <div·class="ttc"·id="aa00969_html"><div·class="ttname"><a·href="a00969.html">SILLY::DataSource</a></div><div·class="ttdoc">This·is·an·abstract·class·used·to·provide·data·to·the·loader.</div><div·class="ttdef"><b>Definition</b>·<a·href="a00101_source.html#l00046">SILLYDataSource.h:47</a></div></div> | ||
Max diff block lines reached; 271/23438 bytes (1.16%) of diff not shown. |
Offset 1, 19 lines modified | Offset 1, 20 lines modified | ||
1 | Simple·Image·Loading·LibrarY 0.1.0 | 1 | Simple·Image·Loading·LibrarY 0.1.0 |
2 | ····*·_\x8b_\x8u_\x8i_\x8l_\x8d | 2 | ····*·_\x8b_\x8u_\x8i_\x8l_\x8d |
3 | ····*·_\x8r_\x8e_\x8p_\x8r_\x8o_\x8d_\x8u_\x8c_\x8i_\x8b_\x8l_\x8e_\x8-_\x8p_\x8a_\x8t_\x8h | 3 | ····*·_\x8r_\x8e_\x8p_\x8r_\x8o_\x8d_\x8u_\x8c_\x8i_\x8b_\x8l_\x8e_\x8-_\x8p_\x8a_\x8t_\x8h |
4 | ····*·_\x8s_\x8i_\x8l_\x8l_\x8y_\x8-_\x80_\x8._\x81_\x8._\x80 | 4 | ····*·_\x8s_\x8i_\x8l_\x8l_\x8y_\x8-_\x80_\x8._\x81_\x8._\x80 |
5 | ····*·_\x8i_\x8n_\x8c_\x8l_\x8u_\x8d_\x8e | 5 | ····*·_\x8i_\x8n_\x8c_\x8l_\x8u_\x8d_\x8e |
6 | 6 | ····*·_.l_.o_.a_.d_.e_.r_.s | |
7 | SILLYJPGImageContext.icpp | ||
7 | 1/*********************************************************************** | 8 | 1/*********************************************************************** |
8 | 2·filename:·SILLYImage | 9 | 2·filename:·SILLYJPGImageContext.icpp |
9 | 3·created:·1 | 10 | 3·created:·11·Jun·2006 |
10 | 4·author:·Olivier·Delannoy | 11 | 4·author:·Olivier·Delannoy |
11 | 5 | 12 | 5 |
12 | 6·purpose:· | 13 | 6·purpose:·Inline·definition·for·JPG·context |
13 | 7*************************************************************************/ | 14 | 7*************************************************************************/ |
14 | 8/*************************************************************************** | 15 | 8/*************************************************************************** |
15 | 9·*·Copyright·(C)·2004·-·2006·Paul·D·Turner·&·The·CEGUI·Development·Team | 16 | 9·*·Copyright·(C)·2004·-·2006·Paul·D·Turner·&·The·CEGUI·Development·Team |
16 | 10·* | 17 | 10·* |
17 | 11·*·Permission·is·hereby·granted,·free·of·charge,·to·any·person·obtaining | 18 | 11·*·Permission·is·hereby·granted,·free·of·charge,·to·any·person·obtaining |
18 | 12·*·a·copy·of·this·software·and·associated·documentation·files·(the | 19 | 12·*·a·copy·of·this·software·and·associated·documentation·files·(the |
19 | 13·*·"Software"),·to·deal·in·the·Software·without·restriction,·including | 20 | 13·*·"Software"),·to·deal·in·the·Software·without·restriction,·including |
Offset 29, 86 lines modified | Offset 30, 16 lines modified | ||
29 | 23·*·EXPRESS·OR·IMPLIED,·INCLUDING·BUT·NOT·LIMITED·TO·THE·WARRANTIES·OF | 30 | 23·*·EXPRESS·OR·IMPLIED,·INCLUDING·BUT·NOT·LIMITED·TO·THE·WARRANTIES·OF |
30 | 24·*·MERCHANTABILITY,·FITNESS·FOR·A·PARTICULAR·PURPOSE·AND·NONINFRINGEMENT. | 31 | 24·*·MERCHANTABILITY,·FITNESS·FOR·A·PARTICULAR·PURPOSE·AND·NONINFRINGEMENT. |
31 | 25·*·IN·NO·EVENT·SHALL·THE·AUTHORS·BE·LIABLE·FOR·ANY·CLAIM,·DAMAGES·OR | 32 | 25·*·IN·NO·EVENT·SHALL·THE·AUTHORS·BE·LIABLE·FOR·ANY·CLAIM,·DAMAGES·OR |
32 | 26·*·OTHER·LIABILITY,·WHETHER·IN·AN·ACTION·OF·CONTRACT,·TORT·OR·OTHERWISE, | 33 | 26·*·OTHER·LIABILITY,·WHETHER·IN·AN·ACTION·OF·CONTRACT,·TORT·OR·OTHERWISE, |
33 | 27·*·ARISING·FROM,·OUT·OF·OR·IN·CONNECTION·WITH·THE·SOFTWARE·OR·THE·USE·OR | 34 | 27·*·ARISING·FROM,·OUT·OF·OR·IN·CONNECTION·WITH·THE·SOFTWARE·OR·THE·USE·OR |
34 | 28·*·OTHER·DEALINGS·IN·THE·SOFTWARE. | 35 | 28·*·OTHER·DEALINGS·IN·THE·SOFTWARE. |
35 | 29·***************************************************************************/ | 36 | 29·***************************************************************************/ |
37 | 30 | ||
36 | 30#ifndef·_SILLYImageLoader_h_ | ||
37 | 31#define·_SILLYImageLoader_h_ | ||
38 | 32#include·"SILLYBase.h" | ||
39 | 3 | 38 | 31//·Start·of·section·namespace·SILLY |
39 | 32namespace·SILLY | ||
40 | 33{ | ||
41 | 34 | ||
40 | 34namespace·_\x8S_\x8I_\x8L_\x8L_\x8Y | ||
41 | 35{ | ||
42 | 36class·DataSource;·//·Forward·declaration | ||
43 | 37class·ImageContext;·//·Forward·declaration | ||
44 | 38 | ||
45 | _\x84_\x86class·SILLY_EXPORT·_\x8I_\x8m_\x8a_\x8g_\x8e_\x8L_\x8o_\x8a_\x8d_\x8e_\x8r | ||
46 | 47{ | ||
47 | 48protected: | ||
48 | _\x85_\x82·_\x8I_\x8m_\x8a_\x8g_\x8e_\x8L_\x8o_\x8a_\x8d_\x8e_\x8r(const·char*·name); | ||
49 | 53public: | ||
50 | 54 | ||
51 | _\x85_\x89·virtual·_\x8~_\x8I_\x8m_\x8a_\x8g_\x8e_\x8L_\x8o_\x8a_\x8d_\x8e_\x8r(); | ||
52 | 60 | ||
53 | _\x87_\x81·virtual·_\x8I_\x8m_\x8a_\x8g_\x8e_\x8C_\x8o_\x8n_\x8t_\x8e_\x8x_\x8t*·_\x8l_\x8o_\x8a_\x8d_\x8H_\x8e_\x8a_\x8d_\x8e_\x8r(_\x8P_\x8i_\x8x_\x8e_\x8l_\x8F_\x8o_\x8r_\x8m_\x8a_\x8t&·formatSource,·_\x8D_\x8a_\x8t_\x8a_\x8S_\x8o_\x8u_\x8r_\x8c_\x8e* | ||
54 | data)·=·0; | ||
55 | 72 | ||
56 | 73 | ||
57 | _\x88_\x86·virtual·bool·_\x8l_\x8o_\x8a_\x8d_\x8I_\x8m_\x8a_\x8g_\x8e_\x8D_\x8a_\x8t_\x8a(_\x8P_\x8i_\x8x_\x8e_\x8l_\x8O_\x8r_\x8i_\x8g_\x8i_\x8n·origin,·_\x8D_\x8a_\x8t_\x8a_\x8S_\x8o_\x8u_\x8r_\x8c_\x8e*·data, | ||
58 | _\x8I_\x8m_\x8a_\x8g_\x8e_\x8C_\x8o_\x8n_\x8t_\x8e_\x8x_\x8t*·context)·=·0; | ||
59 | 87 | ||
60 | 94·void·destroyContext(_\x8I_\x8m_\x8a_\x8g_\x8e_\x8C_\x8o_\x8n_\x8t_\x8e_\x8x_\x8t*·context); | ||
61 | 95 | ||
62 | _\x81_\x80_\x80·const·char*·_\x8g_\x8e_\x8t_\x8I_\x8d_\x8e_\x8n_\x8t_\x8i_\x8f_\x8i_\x8e_\x8r_\x8S_\x8t_\x8r_\x8i_\x8n_\x8g()·const; | ||
63 | 101private: | ||
64 | 102·const·char*·d_name; | ||
65 | 103 | ||
66 | 104}; | ||
67 | 105 | ||
68 | 42 | 35}·//·End·of·section·namespace·SILLY | |
43 | 36 | ||
69 | 107 | ||
70 | 108//·Inclue·inline·function·when·needed | ||
71 | 109#ifdef·SILLY_OPT_INLINE | ||
72 | 110#include·"SILLYImageLoader.icpp" | ||
73 | 111#endif | ||
74 | 112 | ||
75 | 113#endif·//·end·of·guard·_SILLYImageLoader_h_ | ||
76 | _\x8S_\x8I_\x8L_\x8L_\x8Y | ||
77 | Simple·Image·Loading·LibrarY·namespace. | ||
78 | D\x8De\x8ef\x8fi\x8in\x8ni\x8it\x8ti\x8io\x8on\x8n·_\x8S_\x8I_\x8L_\x8L_\x8Y_\x8J_\x8P_\x8G_\x8I_\x8m_\x8a_\x8g_\x8e_\x8C_\x8o_\x8n_\x8t_\x8e_\x8x_\x8t_\x8._\x8c_\x8p_\x8p_\x8:_\x84_\x86 | ||
79 | _\x8S_\x8I_\x8L_\x8L_\x8Y_\x8:_\x8:_\x8P_\x8i_\x8x_\x8e_\x8l_\x8F_\x8o_\x8r_\x8m_\x8a_\x8t | ||
80 | PixelFormat | ||
81 | List·all·pixel·format·supported. | ||
82 | D\x8De\x8ef\x8fi\x8in\x8ni\x8it\x8ti\x8io\x8on\x8n·_\x8S_\x8I_\x8L_\x8L_\x8Y_\x8B_\x8a_\x8s_\x8e_\x8._\x8h_\x8:_\x86_\x80 | ||
83 | _\x8S_\x8I_\x8L_\x8L_\x8Y_\x8:_\x8:_\x8P_\x8i_\x8x_\x8e_\x8l_\x8O_\x8r_\x8i_\x8g_\x8i_\x8n | ||
84 | PixelOrigin | ||
85 | List·all·pixel·origin·supported. | ||
86 | D\x8De\x8ef\x8fi\x8in\x8ni\x8it\x8ti\x8io\x8on\x8n·_\x8S_\x8I_\x8L_\x8L_\x8Y_\x8B_\x8a_\x8s_\x8e_\x8._\x8h_\x8:_\x87_\x81 | ||
87 | _\x8S_\x8I_\x8L_\x8L_\x8Y_\x8:_\x8:_\x8D_\x8a_\x8t_\x8a_\x8S_\x8o_\x8u_\x8r_\x8c_\x8e | ||
88 | This·is·an·abstract·class·used·to·provide·data·to·the·loader. | ||
89 | D\x8De\x8ef\x8fi\x8in\x8ni\x8it\x8ti\x8io\x8on\x8n·_\x8S_\x8I_\x8L_\x8L_\x8Y_\x8D_\x8a_\x8t_\x8a_\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8._\x8h_\x8:_\x84_\x87 | ||
90 | _\x8S_\x8I_\x8L_\x8L_\x8Y_\x8:_\x8:_\x8I_\x8m_\x8a_\x8g_\x8e_\x8C_\x8o_\x8n_\x8t_\x8e_\x8x_\x8t | ||
91 | Store·the·data·needed·by·an·ImageLoader·object·during·the·parsing·of·an·image. | ||
92 | D\x8De\x8ef\x8fi\x8in\x8ni\x8it\x8ti\x8io\x8on\x8n·_\x8S_\x8I_\x8L_\x8L_\x8Y_\x8I_\x8m_\x8a_\x8g_\x8e_\x8C_\x8o_\x8n_\x8t_\x8e_\x8x_\x8t_\x8._\x8h_\x8:_\x84_\x84 | ||
93 | _\x8S_\x8I_\x8L_\x8L_\x8Y_\x8:_\x8:_\x8I_\x8m_\x8a_\x8g_\x8e_\x8L_\x8o_\x8a_\x8d_\x8e_\x8r | ||
94 | This·is·an·abstract·class·that·define·the·interface·of·all·image·loader. | ||
95 | D\x8De\x8ef\x8fi\x8in\x8ni\x8it\x8ti\x8io\x8on\x8n·_\x8S_\x8I_\x8L_\x8L_\x8Y_\x8I_\x8m_\x8a_\x8g_\x8e_\x8L_\x8o_\x8a_\x8d_\x8e_\x8r_\x8._\x8h_\x8:_\x84_\x87 | ||
96 | _\x8S_\x8I_\x8L_\x8L_\x8Y_\x8:_\x8:_\x8I_\x8m_\x8a_\x8g_\x8e_\x8L_\x8o_\x8a_\x8d_\x8e_\x8r_\x8:_\x8:_\x8I_\x8m_\x8a_\x8g_\x8e_\x8L_\x8o_\x8a_\x8d_\x8e_\x8r | ||
97 | ImageLoader(const·char·*name) | ||
98 | Constructor. | ||
99 | _\x8S_\x8I_\x8L_\x8L_\x8Y_\x8:_\x8:_\x8I_\x8m_\x8a_\x8g_\x8e_\x8L_\x8o_\x8a_\x8d_\x8e_\x8r_\x8:_\x8:_\x8l_\x8o_\x8a_\x8d_\x8H_\x8e_\x8a_\x8d_\x8e_\x8r | ||
100 | virtual·ImageContext·*·loadHeader(PixelFormat·&formatSource,·DataSource | ||
101 | *data)=0 | ||
102 | Parse·the·header·of·the·image·and·fill·the·header·struct. | ||
103 | _\x8S_\x8I_\x8L_\x8L_\x8Y_\x8:_\x8:_\x8I_\x8m_\x8a_\x8g_\x8e_\x8L_\x8o_\x8a_\x8d_\x8e_\x8r_\x8:_\x8:_\x8l_\x8o_\x8a_\x8d_\x8I_\x8m_\x8a_\x8g_\x8e_\x8D_\x8a_\x8t_\x8a | ||
104 | virtual·bool·loadImageData(PixelOrigin·origin,·DataSource·*data,·ImageContext | ||
105 | *context)=0 | ||
106 | Parse·the·pixels·data·of·the·image·and·fill·the·header·struct. | ||
107 | _\x8S_\x8I_\x8L_\x8L_\x8Y_\x8:_\x8:_\x8I_\x8m_\x8a_\x8g_\x8e_\x8L_\x8o_\x8a_\x8d_\x8e_\x8r_\x8:_\x8:_\x8~_\x8I_\x8m_\x8a_\x8g_\x8e_\x8L_\x8o_\x8a_\x8d_\x8e_\x8r | ||
108 | virtual·~ImageLoader() | ||
109 | Destructor. | ||
110 | _\x8S_\x8I_\x8L_\x8L_\x8Y_\x8:_\x8:_\x8I_\x8m_\x8a_\x8g_\x8e_\x8L_\x8o_\x8a_\x8d_\x8e_\x8r_\x8:_\x8:_\x8g_\x8e_\x8t_\x8I_\x8d_\x8e_\x8n_\x8t_\x8i_\x8f_\x8i_\x8e_\x8r_\x8S_\x8t_\x8r_\x8i_\x8n_\x8g | ||
111 | const·char·*·getIdentifierString()·const | ||
112 | Return·the·name·of·the·loader. | ||
113 | =============================================================================== | 44 | =============================================================================== |
114 | ·····Generated·by _\x8[_\x8d_\x8o_\x8x_\x8y_\x8g_\x8e_\x8n_\x8]·1.9.8 | 45 | ·····Generated·by _\x8[_\x8d_\x8o_\x8x_\x8y_\x8g_\x8e_\x8n_\x8]·1.9.8 |
Offset 1, 15 lines modified | Offset 1, 15 lines modified | ||
1 | <!DOCTYPE·html·PUBLIC·"-//W3C//DTD·XHTML·1.0·Transitional//EN"·"https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> | 1 | <!DOCTYPE·html·PUBLIC·"-//W3C//DTD·XHTML·1.0·Transitional//EN"·"https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> |
2 | <html·xmlns="http://www.w3.org/1999/xhtml"·lang="en-US"> | 2 | <html·xmlns="http://www.w3.org/1999/xhtml"·lang="en-US"> |
3 | <head> | 3 | <head> |
4 | <meta·http-equiv="Content-Type"·content="text/xhtml;charset=UTF-8"/> | 4 | <meta·http-equiv="Content-Type"·content="text/xhtml;charset=UTF-8"/> |
5 | <meta·http-equiv="X-UA-Compatible"·content="IE=11"/> | 5 | <meta·http-equiv="X-UA-Compatible"·content="IE=11"/> |
6 | <meta·name="generator"·content="Doxygen·1.9.8"/> | 6 | <meta·name="generator"·content="Doxygen·1.9.8"/> |
7 | <meta·name="viewport"·content="width=device-width,·initial-scale=1"/> | 7 | <meta·name="viewport"·content="width=device-width,·initial-scale=1"/> |
8 | <title>Simple·Image·Loading·LibrarY:·/build/reproducible-path/silly-0.1.0/include/SILLYImage.h·Source·File</title> | 8 | <title>Simple·Image·Loading·LibrarY:·/build/reproducible-path/silly-0.1.0/include/loaders/SILLYJPGImageLoader.h·Source·File</title> |
9 | <link·href="tabs.css"·rel="stylesheet"·type="text/css"/> | 9 | <link·href="tabs.css"·rel="stylesheet"·type="text/css"/> |
10 | <script·type="text/javascript"·src="jquery.js"></script> | 10 | <script·type="text/javascript"·src="jquery.js"></script> |
11 | <script·type="text/javascript"·src="dynsections.js"></script> | 11 | <script·type="text/javascript"·src="dynsections.js"></script> |
12 | <link·href="doxygen.css"·rel="stylesheet"·type="text/css"·/> | 12 | <link·href="doxygen.css"·rel="stylesheet"·type="text/css"·/> |
13 | </head> | 13 | </head> |
14 | <body> | 14 | <body> |
15 | <div·id="top"><!--·do·not·remove·this·div,·it·is·closed·by·doxygen!·--> | 15 | <div·id="top"><!--·do·not·remove·this·div,·it·is·closed·by·doxygen!·--> |
Offset 40, 130 lines modified | Offset 40, 88 lines modified | ||
40 | <script·type="text/javascript"> | 40 | <script·type="text/javascript"> |
41 | /*·@license·magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt·MIT·*/ | 41 | /*·@license·magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt·MIT·*/ |
42 | $(document).ready(function()·{·init_codefold(0);·}); | 42 | $(document).ready(function()·{·init_codefold(0);·}); |
43 | /*·@license-end·*/ | 43 | /*·@license-end·*/ |
44 | </script> | 44 | </script> |
45 | <div·id="nav-path"·class="navpath"> | 45 | <div·id="nav-path"·class="navpath"> |
46 | ··<ul> | 46 | ··<ul> |
47 | <li·class="navelem"><a·class="el"·href="dir_4fef79e7177ba769987a8da36c892c5f.html">build</a></li><li·class="navelem"><a·class="el"·href="dir_9def6061848686aab7e6212bb499d615.html">reproducible-path</a></li><li·class="navelem"><a·class="el"·href="dir_74170d5b58cefb7cb5a86fc552b183a3.html">silly-0.1.0</a></li><li·class="navelem"><a·class="el"·href="dir_0d87e2e7ddaae8a2a8572c0afc59fe0d.html">include</a></li>··</ul> | 47 | <li·class="navelem"><a·class="el"·href="dir_4fef79e7177ba769987a8da36c892c5f.html">build</a></li><li·class="navelem"><a·class="el"·href="dir_9def6061848686aab7e6212bb499d615.html">reproducible-path</a></li><li·class="navelem"><a·class="el"·href="dir_74170d5b58cefb7cb5a86fc552b183a3.html">silly-0.1.0</a></li><li·class="navelem"><a·class="el"·href="dir_0d87e2e7ddaae8a2a8572c0afc59fe0d.html">include</a></li><li·class="navelem"><a·class="el"·href="dir_7cea72c962538e8359f822070f2512f7.html">loaders</a></li>··</ul> |
48 | </div> | 48 | </div> |
49 | </div><!--·top·--> | 49 | </div><!--·top·--> |
50 | <div·class="header"> | 50 | <div·class="header"> |
51 | ··<div·class="headertitle"><div·class="title">SILLYImage.h</div></div> | 51 | ··<div·class="headertitle"><div·class="title">SILLYJPGImageLoader.h</div></div> |
52 | </div><!--header--> | 52 | </div><!--header--> |
53 | <div·class="contents"> | 53 | <div·class="contents"> |
54 | <div·class="fragment"><div·class="line"><a·id="l00001"·name="l00001"></a><span·class="lineno">····1</span>·</div> | ||
55 | <div·class="line"><a·id="l0000 | 54 | <div·class="fragment"><div·class="line"><a·id="l00001"·name="l00001"></a><span·class="lineno">····1</span><span·class="comment">/***********************************************************************</span></div> |
56 | <div·class="line"><a·id="l0000 | 55 | <div·class="line"><a·id="l00002"·name="l00002"></a><span·class="lineno">····2</span><span·class="comment">····filename:···SILLYJPGImageLoader.h</span></div> |
57 | <div·class="line"><a·id="l0000 | 56 | <div·class="line"><a·id="l00003"·name="l00003"></a><span·class="lineno">····3</span><span·class="comment">····created:····11·Jun·2006</span></div> |
58 | <div·class="line"><a·id="l0000 | 57 | <div·class="line"><a·id="l00004"·name="l00004"></a><span·class="lineno">····4</span><span·class="comment">····author:·····Olivier·Delannoy</span></div> |
59 | <div·class="line"><a·id="l0000 | 58 | <div·class="line"><a·id="l00005"·name="l00005"></a><span·class="lineno">····5</span><span·class="comment"></span>·</div> |
60 | <div·class="line"><a·id="l0000 | 59 | <div·class="line"><a·id="l00006"·name="l00006"></a><span·class="lineno">····6</span><span·class="comment">····purpose:····Declaration·of·the·JPGImageLoader·class·</span></div> |
60 | <div·class="line"><a·id="l00007"·name="l00007"></a><span·class="lineno">····7</span><span·class="comment">*************************************************************************/</span></div> | ||
61 | <div·class="line"><a·id="l00008"·name="l00008"></a><span·class="lineno">····8</span><span·class="comment">************************************************************************* | 61 | <div·class="line"><a·id="l00008"·name="l00008"></a><span·class="lineno">····8</span><span·class="comment">/***************************************************************************</span></div> |
62 | <div·class="line"><a·id="l00009"·name="l00009"></a><span·class="lineno">····9</span><span·class="comment">/***************************************************************************</span></div> | ||
63 | <div·class="line"><a·id="l000 | 62 | <div·class="line"><a·id="l00009"·name="l00009"></a><span·class="lineno">····9</span><span·class="comment">·*···Copyright·(C)·2004·-·2006·Paul·D·Turner·&·The·CEGUI·Development·Team</span></div> |
64 | <div·class="line"><a·id="l0001 | 63 | <div·class="line"><a·id="l00010"·name="l00010"></a><span·class="lineno">···10</span><span·class="comment">·*</span></div> |
65 | <div·class="line"><a·id="l0001 | 64 | <div·class="line"><a·id="l00011"·name="l00011"></a><span·class="lineno">···11</span><span·class="comment">·*···Permission·is·hereby·granted,·free·of·charge,·to·any·person·obtaining</span></div> |
66 | <div·class="line"><a·id="l0001 | 65 | <div·class="line"><a·id="l00012"·name="l00012"></a><span·class="lineno">···12</span><span·class="comment">·*···a·copy·of·this·software·and·associated·documentation·files·(the</span></div> |
67 | <div·class="line"><a·id="l0001 | 66 | <div·class="line"><a·id="l00013"·name="l00013"></a><span·class="lineno">···13</span><span·class="comment">·*···"Software"),·to·deal·in·the·Software·without·restriction,·including</span></div> |
68 | <div·class="line"><a·id="l0001 | 67 | <div·class="line"><a·id="l00014"·name="l00014"></a><span·class="lineno">···14</span><span·class="comment">·*···without·limitation·the·rights·to·use,·copy,·modify,·merge,·publish,</span></div> |
69 | <div·class="line"><a·id="l0001 | 68 | <div·class="line"><a·id="l00015"·name="l00015"></a><span·class="lineno">···15</span><span·class="comment">·*···distribute,·sublicense,·and/or·sell·copies·of·the·Software,·and·to</span></div> |
70 | <div·class="line"><a·id="l0001 | 69 | <div·class="line"><a·id="l00016"·name="l00016"></a><span·class="lineno">···16</span><span·class="comment">·*···permit·persons·to·whom·the·Software·is·furnished·to·do·so,·subject·to</span></div> |
71 | <div·class="line"><a·id="l0001 | 70 | <div·class="line"><a·id="l00017"·name="l00017"></a><span·class="lineno">···17</span><span·class="comment">·*···the·following·conditions:</span></div> |
72 | <div·class="line"><a·id="l0001 | 71 | <div·class="line"><a·id="l00018"·name="l00018"></a><span·class="lineno">···18</span><span·class="comment">·*</span></div> |
73 | <div·class="line"><a·id="l000 | 72 | <div·class="line"><a·id="l00019"·name="l00019"></a><span·class="lineno">···19</span><span·class="comment">·*···The·above·copyright·notice·and·this·permission·notice·shall·be</span></div> |
74 | <div·class="line"><a·id="l0002 | 73 | <div·class="line"><a·id="l00020"·name="l00020"></a><span·class="lineno">···20</span><span·class="comment">·*···included·in·all·copies·or·substantial·portions·of·the·Software.</span></div> |
75 | <div·class="line"><a·id="l0002 | 74 | <div·class="line"><a·id="l00021"·name="l00021"></a><span·class="lineno">···21</span><span·class="comment">·*</span></div> |
76 | <div·class="line"><a·id="l0002 | 75 | <div·class="line"><a·id="l00022"·name="l00022"></a><span·class="lineno">···22</span><span·class="comment">·*···THE·SOFTWARE·IS·PROVIDED·"AS·IS",·WITHOUT·WARRANTY·OF·ANY·KIND,</span></div> |
77 | <div·class="line"><a·id="l0002 | 76 | <div·class="line"><a·id="l00023"·name="l00023"></a><span·class="lineno">···23</span><span·class="comment">·*···EXPRESS·OR·IMPLIED,·INCLUDING·BUT·NOT·LIMITED·TO·THE·WARRANTIES·OF</span></div> |
78 | <div·class="line"><a·id="l0002 | 77 | <div·class="line"><a·id="l00024"·name="l00024"></a><span·class="lineno">···24</span><span·class="comment">·*···MERCHANTABILITY,·FITNESS·FOR·A·PARTICULAR·PURPOSE·AND·NONINFRINGEMENT.</span></div> |
79 | <div·class="line"><a·id="l0002 | 78 | <div·class="line"><a·id="l00025"·name="l00025"></a><span·class="lineno">···25</span><span·class="comment">·*···IN·NO·EVENT·SHALL·THE·AUTHORS·BE·LIABLE·FOR·ANY·CLAIM,·DAMAGES·OR</span></div> |
80 | <div·class="line"><a·id="l0002 | 79 | <div·class="line"><a·id="l00026"·name="l00026"></a><span·class="lineno">···26</span><span·class="comment">·*···OTHER·LIABILITY,·WHETHER·IN·AN·ACTION·OF·CONTRACT,·TORT·OR·OTHERWISE,</span></div> |
81 | <div·class="line"><a·id="l0002 | 80 | <div·class="line"><a·id="l00027"·name="l00027"></a><span·class="lineno">···27</span><span·class="comment">·*···ARISING·FROM,·OUT·OF·OR·IN·CONNECTION·WITH·THE·SOFTWARE·OR·THE·USE·OR</span></div> |
82 | <div·class="line"><a·id="l0002 | 81 | <div·class="line"><a·id="l00028"·name="l00028"></a><span·class="lineno">···28</span><span·class="comment">·*···OTHER·DEALINGS·IN·THE·SOFTWARE.</span></div> |
83 | <div·class="line"><a·id="l000 | 82 | <div·class="line"><a·id="l00029"·name="l00029"></a><span·class="lineno">···29</span><span·class="comment">·***************************************************************************/</span></div> |
84 | <div·class="line"><a·id="l0003 | 83 | <div·class="line"><a·id="l00030"·name="l00030"></a><span·class="lineno">···30</span><span·class="preprocessor">#ifndef·_SILLYJPGImageLoader_h_·</span></div> |
85 | <div·class="line"><a·id="l0003 | 84 | <div·class="line"><a·id="l00031"·name="l00031"></a><span·class="lineno">···31</span><span·class="preprocessor">#define·_SILLYJPGImageLoader_h_</span></div> |
86 | <div·class="line"><a·id="l0003 | 85 | <div·class="line"><a·id="l00032"·name="l00032"></a><span·class="lineno">···32</span><span·class="preprocessor">#include·"SILLYBase.h"</span></div> |
87 | <div·class="line"><a·id="l00034"·name="l00034"></a><span·class="lineno">···34</span><span·class="preprocessor">#include·"SILLYImageContext.h"</span></div> | ||
88 | <div·class="line"><a·id="l00035"·name="l00035"></a><span·class="lineno">···35</span><span·class="preprocessor">#include·"SILLYDataSource.h"</span></div> | ||
89 | <div·class="line"><a·id="l0003 | 86 | <div·class="line"><a·id="l00033"·name="l00033"></a><span·class="lineno">···33</span><span·class="preprocessor">#include·"SILLYImageLoader.h"</span>·</div> |
87 | <div·class="line"><a·id="l00034"·name="l00034"></a><span·class="lineno">···34</span><span·class="comment">//·Start·of·section·namespace·SILLY·</span></div> | ||
88 | <div·class="line"><a·id="l00035"·name="l00035"></a><span·class="lineno">···35</span><span·class="keyword">namespace·</span><a·class="code·hl_namespace"·href="a00129.html">SILLY</a></div> | ||
89 | <div·class="line"><a·id="l00036"·name="l00036"></a><span·class="lineno">···36</span>{</div> | ||
90 | <div·class="line"><a·id="l00037"·name="l00037"></a><span·class="lineno">···37</span>·</div> | 90 | <div·class="line"><a·id="l00037"·name="l00037"></a><span·class="lineno">···37</span>··</div> |
91 | <div·class="line"><a·id="l00038"·name="l00038"></a><span·class="lineno">···38</span><span·class="comment">//·Start·of·section·namespace·SILLY·</span></div> | ||
92 | <div·class="line"><a·id="l00039"·name="l00039"></a><span·class="lineno">···39</span><span·class="keyword">namespace·</span><a·class="code·hl_namespace"·href="a00129.html">SILLY</a></div> | ||
93 | <div·class="line"><a·id="l00040"·name="l00040"></a><span·class="lineno">···40</span>{</div> | ||
94 | <div·class="line"><a·id="l00041"·name="l00041"></a><span·class="lineno">···41</span>·</div> | ||
95 | <div·class="foldopen"·id="foldopen0004 | 91 | <div·class="foldopen"·id="foldopen00042"·data-start="{"·data-end="};"> |
96 | <div·class="line"><a·id="l0004 | 92 | <div·class="line"><a·id="l00042"·name="l00042"></a><span·class="lineno"><a·class="line"·href="a00949.html">···42</a></span><span·class="keyword">class·</span><a·class="code·hl_class"·href="a00949.html">JPGImageLoader</a>·:·<span·class="keyword">public</span>·<a·class="code·hl_class"·hr[·...·truncated·by·diffoscope;·len:·28,·SHA:·162354d3228df7154fabd3bd521d8548c46e6431e48dc19f3fd2ce33543a5b6c·...·]</a></div> |
97 | <div·class="line"><a·id="l0004 | 93 | <div·class="line"><a·id="l00043"·name="l00043"></a><span·class="lineno">···43</span>{</div> |
98 | <div·class="line"><a·id="l0004 | 94 | <div·class="line"><a·id="l00044"·name="l00044"></a><span·class="lineno">···44</span><span·class="keyword">public</span>:</div> |
99 | <div·class="line"><a·id="l000 | 95 | <div·class="line"><a·id="l00045"·name="l00045"></a><span·class="lineno">···45</span>····<a·class="code·hl_class"·href="a00949.html">JPGImageLoader</a>();</div> |
100 | <div·class="line"><a·id="l00056"·name="l00056"></a><span·class="lineno">···56</span>·</div> | ||
101 | <div·class="line"><a·id="l00061"·name="l00061"></a><span·class="lineno"><a·class="line"·href="a00977.html#a70dc073ff2e26a6752dee2a6d2b609a8">···61</a></span>····<a·class="code·hl_function"·href="a00977.html#a70dc073ff2e26a6752dee2a6d2b609a8">~Image</a>();</div> | ||
102 | <div·class="line"><a·id="l00062"·name="l00062"></a><span·class="lineno">···62</span>·</div> | ||
103 | <div·class="line"><a·id="l00067"·name="l00067"></a><span·class="lineno"><a·class="line"·href="a00977.html#a5bc2a781be2586924afce4e4a4ea6697">···67</a></span>····<span·class="keywordtype">bool</span>·<a·class="code·hl_function"·href="a00977.html#a5bc2a781be2586924afce4e4a4ea6697">isValid</a>()·<span·class="keyword">const</span>;</div> | ||
104 | <div·class="line"><a·id="l00068"·name="l00068"></a><span·class="lineno">···68</span>····</div> | ||
105 | <div·class="line"><a·id="l00069"·name="l00069"></a><span·class="lineno">···69</span>·</div> | ||
106 | <div·class="line"><a·id="l000 | 96 | <div·class="line"><a·id="l00046"·name="l00046"></a><span·class="lineno">···46</span>····<a·class="code·hl_class"·href="a00949.html">~JPGImageLoader</a>();</div> |
97 | <div·class="line"><a·id="l00047"·name="l00047"></a><span·class="lineno">···47</span>····<a·class="code·hl_class"·href="a00981.html">ImageContext</a>*·<a·class="code·hl_function"·href="a00949.html#a919eb05f6df058544657e865a1590d5a">loadHeader</a>(<a·class="code·hl_enumeration"·href="a00129.html#a60883d4958a60b91661e97027a85072a">PixelFormat</a>&·header,·<a·class="code·hl_class"·href="a00969.html">DataSource</a>*·data);</div> | ||
98 | <div·class="line"><a·id="l00048"·name="l00048"></a><span·class="lineno">···48</span>····<span·class="keywordtype">bool</span>·<a·class="code·hl_function"·href="a00949.html#a4a4d6df5dcc08cb493855fcfc1956fca">loadImageData</a>(<a·class="code·hl_enumeration"·href="a00129.html#aebdd89f22790687ac264c1abd9f7fd38">PixelOrigin</a>·origin,·<a·class="code·hl_class"·href="a00969.html">DataSource</a>*·data,·<a·class="code·hl_class"·href="a00981.html">ImageContext</a>*·context);</div> | ||
107 | <div·class="line"><a·id="l00077"·name="l00077"></a><span·class="lineno">···77</span>·</div> | ||
108 | <div·class="line"><a·id="l00091"·name="l00091"></a><span·class="lineno">···91</span>····<span·class="keywordtype">bool</span>·loadImageData(<a·class="code·hl_enumeration"·href="a00129.html#a60883d4958a60b91661e97027a85072a">PixelFormat</a>·resultFormat·=·PF_RGBA,·<a·class="code·hl_enumeration"·href="a00129.html#aebdd89f22790687ac264c1abd9f7fd38">PixelOrigin</a>·origin·=·PO_TOP_LEFT);</div> | ||
109 | <div·class="line"><a·id="l00092"·name="l00092"></a><span·class="lineno">···92</span>·</div> | ||
110 | <div·class="line"><a·id="l00097"·name="l00097"></a><span·class="lineno"><a·class="line"·href="a00977.html#aa52477d2dcc839fafe8a8ee5026a2621">···97</a></span>····<span·class="keywordtype">size_t</span>·<a·class="code·hl_function"·href="a00977.html#aa52477d2dcc839fafe8a8ee5026a2621">getWidth</a>()·<span·class="keyword">const</span>;</div> | ||
111 | <div·class="line"><a·id="l00098"·name="l00098"></a><span·class="lineno">···98</span>····</div> | ||
112 | <div·class="line"><a·id="l00103"·name="l00103"></a><span·class="lineno"><a·class="line"·href="a00977.html#afdb56064ac644b85442a915c9fdf19f8">··103</a></span>····<span·class="keywordtype">size_t</span>·<a·class="code·hl_function"·href="a00977.html#afdb56064ac644b85442a915c9fdf19f8">getHeight</a>()·<span·class="keyword">const</span>;</div> | ||
113 | <div·class="line"><a·id="l00104"·name="l00104"></a><span·class="lineno">··104</span>····</div> | ||
114 | <div·class="line"><a·id="l00109"·name="l00109"></a><span·class="lineno"><a·class="line"·href="a00977.html#a0fb19005666b0208bf6565bbef853327">··109</a></span>····<a·class="code·hl_enumeration"·href="a00129.html#a60883d4958a60b91661e97027a85072a">PixelFormat</a>·<a·class="code·hl_function"·href="a00977.html#a0fb19005666b0208bf6565bbef853327">getSourcePixelFormat</a>()·<span·class="keyword">const</span>;</div> | ||
115 | <div·class="line"><a·id="l00110"·name="l00110"></a><span·class="lineno">··110</span>·</div> | ||
116 | <div·class="line"><a·id="l00115"·name="l00115"></a><span·class="lineno"><a·class="line"·href="a00977.html#ad62167a7dc43f898f5ff80dc72f6a2e4">··115</a></span>····<a·class="code·hl_enumeration"·href="a00129.html#a60883d4958a60b91661e97027a85072a">PixelFormat</a>·<a·class="code·hl_function"·href="a00977.html#ad62167a7dc43f898f5ff80dc72f6a2e4">getPixelFormat</a>()·<span·class="keyword">const</span>;</div> | ||
117 | <div·class="line"><a·id="l00116"·name="l00116"></a><span·class="lineno">··116</span>····</div> | ||
118 | <div·class="line"><a·id="l00120"·name="l00120"></a><span·class="lineno"><a·class="line"·href="a00977.html#a36936c9b3cb83ffe6b2b6a603b4c1cf3">··120</a></span>····<span·class="keyword">const</span>·<span·class="keywordtype">byte</span>*·<a·class="code·hl_function"·href="a00977.html#a36936c9b3cb83ffe6b2b6a603b4c1cf3">getPixelsDataPtr</a>()·<span·class="keyword">const</span>;</div> | ||
119 | <div·class="line"><a·id="l00125"·name="l00125"></a><span·class="lineno"><a·class="line"·href="a00977.html#a5db5066bb9efee83299ba2a3d89b610d">··125</a></span>····<span·class="keywordtype">size_t</span>·<a·class="code·hl_function"·href="a00977.html#a5db5066bb9efee83299ba2a3d89b610d">getPixelsDataSize</a>()·<span·class="keyword">const</span>;</div> | ||
120 | <div·class="line"><a·id="l00130"·name="l00130"></a><span·class="lineno"><a·class="line"·href="a00977.html#a2d314109f0f263fc099b70d069a677d5">··130</a></span>····<span·class="keyword">const</span>·<span·class="keywordtype">char</span>*·<a·class="code·hl_function"·href="a00977.html#a2d314109f0f263fc099b70d069a677d5">getLoaderIdentifierString</a>()·<span·class="keyword">const</span>;</div> | ||
121 | <div·class="line"><a·id="l00131"·name="l00131"></a><span·class="lineno">··131</span><span·class="keyword">private</span>:</div> | ||
122 | <div·class="line"><a·id="l00132"·name="l00132"></a><span·class="lineno">··132</span>····<span·class="keywordtype">bool</span>·allocate();</div> | ||
123 | <div·class="line"><a·id="l00133"·name="l00133"></a><span·class="lineno">··133</span>·</div> | ||
124 | <div·class="line"><a·id="l00 | 99 | <div·class="line"><a·id="l00049"·name="l00049"></a><span·class="lineno">···49</span><span·class="keyword">private</span>:</div> |
125 | <div·class="line"><a·id="l00 | 100 | <div·class="line"><a·id="l00050"·name="l00050"></a><span·class="lineno">···50</span>};</div> |
126 | <div·class="line"><a·id="l00136"·name="l00136"></a><span·class="lineno">··136</span>····<span·class="keywordtype">size_t</span>·d_bpp;·························</div> | ||
127 | <div·class="line"><a·id="l00137"·name="l00137"></a><span·class="lineno">··137</span>····<a·class="code·hl_enumeration"·href="a00129.html#a60883d4958a60b91661e97027a85072a">PixelFormat</a>·d_pfSource;·······</div> | ||
128 | <div·class="line"><a·id="l00138"·name="l00138"></a><span·class="lineno">··138</span>····<span·class="keywordtype">byte</span>*·d_pixels;·······················</div> | ||
129 | <div·class="line"><a·id="l00139"·name="l00139"></a><span·class="lineno">··139</span>····<a·class="code·hl_class"·href="a00969.html">DataSource</a>*·d_data;···········</div> | ||
130 | <div·class="line"><a·id="l00140"·name="l00140"></a><span·class="lineno">··140</span>····<a·class="code·hl_class"·href="a00981.html">ImageContext</a>*·d_imageContext;·</div> | ||
131 | <div·class="line"><a·id="l00141"·name="l00141"></a><span·class="lineno">··141</span>····<a·class="code·hl_class"·href="a00985.html">ImageLoader</a>*·d_imageLoader;···</div> | ||
132 | <div·class="line"><a·id="l00142"·name="l00142"></a><span·class="lineno">··142</span>·</div> | ||
133 | <div·class="line"><a·id="l00143"·name="l00143"></a><span·class="lineno">··143</span>····<span·class="comment">//·Disabled·operation</span></div> | ||
134 | <div·class="line"><a·id="l00144"·name="l00144"></a><span·class="lineno">··144</span>····<a·class="code·hl_class"·href="a00977.html">Image</a>(<a·class="code·hl_class"·href="a00977.html">Image</a>&);</div> | ||
135 | <div·class="line"><a·id="l00145"·name="l00145"></a><span·class="lineno">··145</span>····<a·class="code·hl_class"·href="a00977.html">Image</a>&·operator=(<a·class="code·hl_class"·href="a00977.html">Image</a>&);</div> | ||
136 | <div·class="line"><a·id="l00146"·name="l00146"></a><span·class="lineno">··146</span>};</div> | ||
137 | </div> | 101 | </div> |
138 | <div·class="line"><a·id="l00 | 102 | <div·class="line"><a·id="l00051"·name="l00051"></a><span·class="lineno">···51</span>··</div> |
103 | <div·class="line"><a·id="l00052"·name="l00052"></a><span·class="lineno">···52</span>··</div> | ||
139 | <div·class="line"><a·id="l00 | 104 | <div·class="line"><a·id="l00053"·name="l00053"></a><span·class="lineno">···53</span>}·<span·class="comment">//·End·of·section·namespace·SILLY·</span></div> |
140 | <div·class="line"><a·id="l00149"·name="l00149"></a><span·class="lineno">··149</span>·</div> | ||
141 | <div·class="line"><a·id="l00150"·name="l00150"></a><span·class="lineno">··150</span><span·class="comment">//·Inclue·inline·function·when·needed·</span></div> | ||
142 | <div·class="line"><a·id="l00151"·name="l00151"></a><span·class="lineno">··151</span><span·class="preprocessor">#ifdef·SILLY_OPT_INLINE</span></div> | ||
143 | <div·class="line"><a·id="l00152"·name="l00152"></a><span·class="lineno">··152</span><span·class="preprocessor">#include·"SILLYImage.icpp"</span></div> | ||
Max diff block lines reached; 271/36677 bytes (0.74%) of diff not shown. |
Offset 1, 149 lines modified | Offset 1, 96 lines modified | ||
1 | Simple·Image·Loading·LibrarY 0.1.0 | 1 | Simple·Image·Loading·LibrarY 0.1.0 |
2 | ····*·_\x8b_\x8u_\x8i_\x8l_\x8d | 2 | ····*·_\x8b_\x8u_\x8i_\x8l_\x8d |
3 | ····*·_\x8r_\x8e_\x8p_\x8r_\x8o_\x8d_\x8u_\x8c_\x8i_\x8b_\x8l_\x8e_\x8-_\x8p_\x8a_\x8t_\x8h | 3 | ····*·_\x8r_\x8e_\x8p_\x8r_\x8o_\x8d_\x8u_\x8c_\x8i_\x8b_\x8l_\x8e_\x8-_\x8p_\x8a_\x8t_\x8h |
4 | ····*·_\x8s_\x8i_\x8l_\x8l_\x8y_\x8-_\x80_\x8._\x81_\x8._\x80 | 4 | ····*·_\x8s_\x8i_\x8l_\x8l_\x8y_\x8-_\x80_\x8._\x81_\x8._\x80 |
5 | ····*·_\x8i_\x8n_\x8c_\x8l_\x8u_\x8d_\x8e | 5 | ····*·_\x8i_\x8n_\x8c_\x8l_\x8u_\x8d_\x8e |
6 | SILLYImage.h | ||
7 | 6 | ····*·_.l_.o_.a_.d_.e_.r_.s | |
7 | SILLYJPGImageLoader.h | ||
8 | 8 | 1/*********************************************************************** | |
9 | 9 | 2·filename:·SILLYJPGImageLoader.h | |
10 | 10 | 3·created:·11·Jun·2006 | |
11 | 11 | 4·author:·Olivier·Delannoy | |
12 | 6 | ||
13 | 12 | 5 | |
13 | 6·purpose:·Declaration·of·the·JPGImageLoader·class | ||
14 | 14 | 7*************************************************************************/ | |
15 | 15 | 8/*************************************************************************** | |
16 | 16 | 9·*·Copyright·(C)·2004·-·2006·Paul·D·Turner·&·The·CEGUI·Development·Team | |
17 | 1 | 17 | 10·* |
18 | 1 | 18 | 11·*·Permission·is·hereby·granted,·free·of·charge,·to·any·person·obtaining |
19 | 1 | 19 | 12·*·a·copy·of·this·software·and·associated·documentation·files·(the |
20 | 1 | 20 | 13·*·"Software"),·to·deal·in·the·Software·without·restriction,·including |
21 | 1 | 21 | 14·*·without·limitation·the·rights·to·use,·copy,·modify,·merge,·publish, |
22 | 1 | 22 | 15·*·distribute,·sublicense,·and/or·sell·copies·of·the·Software,·and·to |
23 | 1 | 23 | 16·*·permit·persons·to·whom·the·Software·is·furnished·to·do·so,·subject·to |
24 | 1 | 24 | 17·*·the·following·conditions: |
25 | 1 | 25 | 18·* |
26 | 26 | 19·*·The·above·copyright·notice·and·this·permission·notice·shall·be | |
27 | 2 | 27 | 20·*·included·in·all·copies·or·substantial·portions·of·the·Software. |
28 | 2 | 28 | 21·* |
29 | 2 | 29 | 22·*·THE·SOFTWARE·IS·PROVIDED·"AS·IS",·WITHOUT·WARRANTY·OF·ANY·KIND, |
30 | 2 | 30 | 23·*·EXPRESS·OR·IMPLIED,·INCLUDING·BUT·NOT·LIMITED·TO·THE·WARRANTIES·OF |
31 | 2 | 31 | 24·*·MERCHANTABILITY,·FITNESS·FOR·A·PARTICULAR·PURPOSE·AND·NONINFRINGEMENT. |
32 | 2 | 32 | 25·*·IN·NO·EVENT·SHALL·THE·AUTHORS·BE·LIABLE·FOR·ANY·CLAIM,·DAMAGES·OR |
33 | 2 | 33 | 26·*·OTHER·LIABILITY,·WHETHER·IN·AN·ACTION·OF·CONTRACT,·TORT·OR·OTHERWISE, |
34 | 2 | 34 | 27·*·ARISING·FROM,·OUT·OF·OR·IN·CONNECTION·WITH·THE·SOFTWARE·OR·THE·USE·OR |
35 | 2 | 35 | 28·*·OTHER·DEALINGS·IN·THE·SOFTWARE. |
36 | 36 | 29·***************************************************************************/ | |
37 | 3 | 37 | 30#ifndef·_SILLYJPGImageLoader_h_ |
38 | 3 | 38 | 31#define·_SILLYJPGImageLoader_h_ |
39 | 3 | 39 | 32#include·"SILLYBase.h" |
40 | 34#include·"SILLYImageContext.h" | ||
41 | 35#include·"SILLYDataSource.h" | ||
42 | 3 | 40 | 33#include·"SILLYImageLoader.h" |
41 | 34//·Start·of·section·namespace·SILLY | ||
42 | 35namespace·_\x8S_\x8I_\x8L_\x8L_\x8Y | ||
43 | 36{ | ||
43 | 37 | 44 | 37 |
45 | _\x84_\x82class·_\x8J_\x8P_\x8G_\x8I_\x8m_\x8a_\x8g_\x8e_\x8L_\x8o_\x8a_\x8d_\x8e_\x8r·:·public·_\x8I_\x8m_\x8a_\x8g_\x8e_\x8L_\x8o_\x8a_\x8d_\x8e_\x8r | ||
46 | 43{ | ||
44 | 38//·Start·of·section·namespace·SILLY | ||
45 | 39namespace·_\x8S_\x8I_\x8L_\x8L_\x8Y | ||
46 | 40{ | ||
47 | 41 | ||
48 | _\x84_\x86class·SILLY_EXPORT·_\x8I_\x8m_\x8a_\x8g_\x8e | ||
49 | 47{ | ||
50 | 4 | 47 | 44public: |
48 | 45·_\x8J_\x8P_\x8G_\x8I_\x8m_\x8a_\x8g_\x8e_\x8L_\x8o_\x8a_\x8d_\x8e_\x8r(); | ||
49 | 46·_\x8~_\x8J_\x8P_\x8G_\x8I_\x8m_\x8a_\x8g_\x8e_\x8L_\x8o_\x8a_\x8d_\x8e_\x8r(); | ||
50 | 47·_\x8I_\x8m_\x8a_\x8g_\x8e_\x8C_\x8o_\x8n_\x8t_\x8e_\x8x_\x8t*·_\x8l_\x8o_\x8a_\x8d_\x8H_\x8e_\x8a_\x8d_\x8e_\x8r(_\x8P_\x8i_\x8x_\x8e_\x8l_\x8F_\x8o_\x8r_\x8m_\x8a_\x8t&·header,·_\x8D_\x8a_\x8t_\x8a_\x8S_\x8o_\x8u_\x8r_\x8c_\x8e*·data); | ||
51 | 48·bool·_\x8l_\x8o_\x8a_\x8d_\x8I_\x8m_\x8a_\x8g_\x8e_\x8D_\x8a_\x8t_\x8a(_\x8P_\x8i_\x8x_\x8e_\x8l_\x8O_\x8r_\x8i_\x8g_\x8i_\x8n·origin,·_\x8D_\x8a_\x8t_\x8a_\x8S_\x8o_\x8u_\x8r_\x8c_\x8e*·data,·_\x8I_\x8m_\x8a_\x8g_\x8e_\x8C_\x8o_\x8n_\x8t_\x8e_\x8x_\x8t* | ||
52 | context); | ||
51 | 55·_\x8I_\x8m_\x8a_\x8g_\x8e(_\x8D_\x8a_\x8t_\x8a_\x8S_\x8o_\x8u_\x8r_\x8c_\x8e&·data); | ||
52 | 56 | ||
53 | _\x86_\x81·_\x8~_\x8I_\x8m_\x8a_\x8g_\x8e(); | ||
54 | 62 | ||
55 | _\x86_\x87·bool·_\x8i_\x8s_\x8V_\x8a_\x8l_\x8i_\x8d()·const; | ||
56 | 68 | ||
57 | 69 | ||
58 | 76·bool·loadImageHeader(); | ||
59 | 77 | ||
60 | 91·bool·loadImageData(_\x8P_\x8i_\x8x_\x8e_\x8l_\x8F_\x8o_\x8r_\x8m_\x8a_\x8t·resultFormat·=·PF_RGBA,·_\x8P_\x8i_\x8x_\x8e_\x8l_\x8O_\x8r_\x8i_\x8g_\x8i_\x8n·origin·= | ||
61 | PO_TOP_LEFT); | ||
62 | 92 | ||
63 | _\x89_\x87·size_t·_\x8g_\x8e_\x8t_\x8W_\x8i_\x8d_\x8t_\x8h()·const; | ||
64 | 98 | ||
65 | _\x81_\x80_\x83·size_t·_\x8g_\x8e_\x8t_\x8H_\x8e_\x8i_\x8g_\x8h_\x8t()·const; | ||
66 | 104 | ||
67 | _\x81_\x80_\x89·_\x8P_\x8i_\x8x_\x8e_\x8l_\x8F_\x8o_\x8r_\x8m_\x8a_\x8t·_\x8g_\x8e_\x8t_\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8P_\x8i_\x8x_\x8e_\x8l_\x8F_\x8o_\x8r_\x8m_\x8a_\x8t()·const; | ||
68 | 110 | ||
69 | _\x81_\x81_\x85·_\x8P_\x8i_\x8x_\x8e_\x8l_\x8F_\x8o_\x8r_\x8m_\x8a_\x8t·_\x8g_\x8e_\x8t_\x8P_\x8i_\x8x_\x8e_\x8l_\x8F_\x8o_\x8r_\x8m_\x8a_\x8t()·const; | ||
70 | 116 | ||
71 | _\x81_\x82_\x80·const·byte*·_\x8g_\x8e_\x8t_\x8P_\x8i_\x8x_\x8e_\x8l_\x8s_\x8D_\x8a_\x8t_\x8a_\x8P_\x8t_\x8r()·const; | ||
72 | _\x81_\x82_\x85·size_t·_\x8g_\x8e_\x8t_\x8P_\x8i_\x8x_\x8e_\x8l_\x8s_\x8D_\x8a_\x8t_\x8a_\x8S_\x8i_\x8z_\x8e()·const; | ||
73 | _\x81_\x83_\x80·const·char*·_\x8g_\x8e_\x8t_\x8L_\x8o_\x8a_\x8d_\x8e_\x8r_\x8I_\x8d_\x8e_\x8n_\x8t_\x8i_\x8f_\x8i_\x8e_\x8r_\x8S_\x8t_\x8r_\x8i_\x8n_\x8g()·const; | ||
74 | 131private: | ||
75 | 132·bool·allocate(); | ||
76 | 133 | ||
77 | 53 | 49private: | |
54 | 50}; | ||
55 | 51 | ||
56 | 52 | ||
78 | 135 | ||
79 | 136·size_t·d_bpp; | ||
80 | 137·_\x8P_\x8i_\x8x_\x8e_\x8l_\x8F_\x8o_\x8r_\x8m_\x8a_\x8t·d_pfSource; | ||
81 | 138·byte*·d_pixels; | ||
82 | 139·_\x8D_\x8a_\x8t_\x8a_\x8S_\x8o_\x8u_\x8r_\x8c_\x8e*·d_data; | ||
83 | 140·_\x8I_\x8m_\x8a_\x8g_\x8e_\x8C_\x8o_\x8n_\x8t_\x8e_\x8x_\x8t*·d_imageContext; | ||
84 | 141·_\x8I_\x8m_\x8a_\x8g_\x8e_\x8L_\x8o_\x8a_\x8d_\x8e_\x8r*·d_imageLoader; | ||
85 | 142 | ||
86 | 143·//·Disabled·operation | ||
87 | 144·_\x8I_\x8m_\x8a_\x8g_\x8e(_\x8I_\x8m_\x8a_\x8g_\x8e&); | ||
88 | 145·_\x8I_\x8m_\x8a_\x8g_\x8e&·operator=(_\x8I_\x8m_\x8a_\x8g_\x8e&); | ||
89 | 146}; | ||
90 | 147 | ||
91 | 57 | 53}·//·End·of·section·namespace·SILLY | |
92 | 58 | 54 | |
93 | 59 | 55//·Inclue·inline·function·when·needed | |
94 | 60 | 56#ifdef·SILLY_OPT_INLINE | |
95 | 61 | 57#include·"SILLYJPGImageLoader.icpp" | |
96 | 62 | 58#endif | |
97 | 63 | 59 | |
98 | 64 | 60#endif·//·end·of·guard·_SILLYJPGImageLoader_h_ | |
99 | _\x8S_\x8I_\x8L_\x8L_\x8Y | 65 | _\x8S_\x8I_\x8L_\x8L_\x8Y |
100 | Simple·Image·Loading·LibrarY·namespace. | 66 | Simple·Image·Loading·LibrarY·namespace. |
101 | D\x8De\x8ef\x8fi\x8in\x8ni\x8it\x8ti\x8io\x8on\x8n·_\x8S_\x8I_\x8L_\x8L_\x8Y_\x8J_\x8P_\x8G_\x8I_\x8m_\x8a_\x8g_\x8e_\x8C_\x8o_\x8n_\x8t_\x8e_\x8x_\x8t_\x8._\x8c_\x8p_\x8p_\x8:_\x84_\x86 | 67 | D\x8De\x8ef\x8fi\x8in\x8ni\x8it\x8ti\x8io\x8on\x8n·_\x8S_\x8I_\x8L_\x8L_\x8Y_\x8J_\x8P_\x8G_\x8I_\x8m_\x8a_\x8g_\x8e_\x8C_\x8o_\x8n_\x8t_\x8e_\x8x_\x8t_\x8._\x8c_\x8p_\x8p_\x8:_\x84_\x86 |
102 | _\x8S_\x8I_\x8L_\x8L_\x8Y_\x8:_\x8:_\x8P_\x8i_\x8x_\x8e_\x8l_\x8F_\x8o_\x8r_\x8m_\x8a_\x8t | 68 | _\x8S_\x8I_\x8L_\x8L_\x8Y_\x8:_\x8:_\x8P_\x8i_\x8x_\x8e_\x8l_\x8F_\x8o_\x8r_\x8m_\x8a_\x8t |
103 | PixelFormat | 69 | PixelFormat |
104 | List·all·pixel·format·supported. | 70 | List·all·pixel·format·supported. |
105 | D\x8De\x8ef\x8fi\x8in\x8ni\x8it\x8ti\x8io\x8on\x8n·_\x8S_\x8I_\x8L_\x8L_\x8Y_\x8B_\x8a_\x8s_\x8e_\x8._\x8h_\x8:_\x86_\x80 | 71 | D\x8De\x8ef\x8fi\x8in\x8ni\x8it\x8ti\x8io\x8on\x8n·_\x8S_\x8I_\x8L_\x8L_\x8Y_\x8B_\x8a_\x8s_\x8e_\x8._\x8h_\x8:_\x86_\x80 |
106 | _\x8S_\x8I_\x8L_\x8L_\x8Y_\x8:_\x8:_\x8P_\x8i_\x8x_\x8e_\x8l_\x8O_\x8r_\x8i_\x8g_\x8i_\x8n | 72 | _\x8S_\x8I_\x8L_\x8L_\x8Y_\x8:_\x8:_\x8P_\x8i_\x8x_\x8e_\x8l_\x8O_\x8r_\x8i_\x8g_\x8i_\x8n |
107 | PixelOrigin | 73 | PixelOrigin |
108 | List·all·pixel·origin·supported. | 74 | List·all·pixel·origin·supported. |
109 | D\x8De\x8ef\x8fi\x8in\x8ni\x8it\x8ti\x8io\x8on\x8n·_\x8S_\x8I_\x8L_\x8L_\x8Y_\x8B_\x8a_\x8s_\x8e_\x8._\x8h_\x8:_\x87_\x81 | 75 | D\x8De\x8ef\x8fi\x8in\x8ni\x8it\x8ti\x8io\x8on\x8n·_\x8S_\x8I_\x8L_\x8L_\x8Y_\x8B_\x8a_\x8s_\x8e_\x8._\x8h_\x8:_\x87_\x81 |
76 | _\x8S_\x8I_\x8L_\x8L_\x8Y_\x8:_\x8:_\x8J_\x8P_\x8G_\x8I_\x8m_\x8a_\x8g_\x8e_\x8L_\x8o_\x8a_\x8d_\x8e_\x8r | ||
77 | Loader·class·for·JPG·Image. | ||
78 | D\x8De\x8ef\x8fi\x8in\x8ni\x8it\x8ti\x8io\x8on\x8n·_\x8S_\x8I_\x8L_\x8L_\x8Y_\x8J_\x8P_\x8G_\x8I_\x8m_\x8a_\x8g_\x8e_\x8L_\x8o_\x8a_\x8d_\x8e_\x8r_\x8._\x8h_\x8:_\x84_\x83 | ||
Max diff block lines reached; 2256/10157 bytes (22.21%) of diff not shown. |
Offset 1, 15 lines modified | Offset 1, 15 lines modified | ||
1 | <!DOCTYPE·html·PUBLIC·"-//W3C//DTD·XHTML·1.0·Transitional//EN"·"https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> | 1 | <!DOCTYPE·html·PUBLIC·"-//W3C//DTD·XHTML·1.0·Transitional//EN"·"https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> |
2 | <html·xmlns="http://www.w3.org/1999/xhtml"·lang="en-US"> | 2 | <html·xmlns="http://www.w3.org/1999/xhtml"·lang="en-US"> |
3 | <head> | 3 | <head> |
4 | <meta·http-equiv="Content-Type"·content="text/xhtml;charset=UTF-8"/> | 4 | <meta·http-equiv="Content-Type"·content="text/xhtml;charset=UTF-8"/> |
5 | <meta·http-equiv="X-UA-Compatible"·content="IE=11"/> | 5 | <meta·http-equiv="X-UA-Compatible"·content="IE=11"/> |
6 | <meta·name="generator"·content="Doxygen·1.9.8"/> | 6 | <meta·name="generator"·content="Doxygen·1.9.8"/> |
7 | <meta·name="viewport"·content="width=device-width,·initial-scale=1"/> | 7 | <meta·name="viewport"·content="width=device-width,·initial-scale=1"/> |
8 | <title>Simple·Image·Loading·LibrarY:·/build/reproducible-path/silly-0.1.0/include/SILLY | 8 | <title>Simple·Image·Loading·LibrarY:·/build/reproducible-path/silly-0.1.0/include/loaders/SILLYJPGImageLoader.icpp·Source·File</title> |
9 | <link·href="tabs.css"·rel="stylesheet"·type="text/css"/> | 9 | <link·href="tabs.css"·rel="stylesheet"·type="text/css"/> |
10 | <script·type="text/javascript"·src="jquery.js"></script> | 10 | <script·type="text/javascript"·src="jquery.js"></script> |
11 | <script·type="text/javascript"·src="dynsections.js"></script> | 11 | <script·type="text/javascript"·src="dynsections.js"></script> |
12 | <link·href="doxygen.css"·rel="stylesheet"·type="text/css"·/> | 12 | <link·href="doxygen.css"·rel="stylesheet"·type="text/css"·/> |
13 | </head> | 13 | </head> |
14 | <body> | 14 | <body> |
15 | <div·id="top"><!--·do·not·remove·this·div,·it·is·closed·by·doxygen!·--> | 15 | <div·id="top"><!--·do·not·remove·this·div,·it·is·closed·by·doxygen!·--> |
Offset 40, 83 lines modified | Offset 40, 57 lines modified | ||
40 | <script·type="text/javascript"> | 40 | <script·type="text/javascript"> |
41 | /*·@license·magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt·MIT·*/ | 41 | /*·@license·magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt·MIT·*/ |
42 | $(document).ready(function()·{·init_codefold(0);·}); | 42 | $(document).ready(function()·{·init_codefold(0);·}); |
43 | /*·@license-end·*/ | 43 | /*·@license-end·*/ |
44 | </script> | 44 | </script> |
45 | <div·id="nav-path"·class="navpath"> | 45 | <div·id="nav-path"·class="navpath"> |
46 | ··<ul> | 46 | ··<ul> |
47 | <li·class="navelem"><a·class="el"·href="dir_4fef79e7177ba769987a8da36c892c5f.html">build</a></li><li·class="navelem"><a·class="el"·href="dir_9def6061848686aab7e6212bb499d615.html">reproducible-path</a></li><li·class="navelem"><a·class="el"·href="dir_74170d5b58cefb7cb5a86fc552b183a3.html">silly-0.1.0</a></li><li·class="navelem"><a·class="el"·href="dir_0d87e2e7ddaae8a2a8572c0afc59fe0d.html">include</a></li>··</ul> | 47 | <li·class="navelem"><a·class="el"·href="dir_4fef79e7177ba769987a8da36c892c5f.html">build</a></li><li·class="navelem"><a·class="el"·href="dir_9def6061848686aab7e6212bb499d615.html">reproducible-path</a></li><li·class="navelem"><a·class="el"·href="dir_74170d5b58cefb7cb5a86fc552b183a3.html">silly-0.1.0</a></li><li·class="navelem"><a·class="el"·href="dir_0d87e2e7ddaae8a2a8572c0afc59fe0d.html">include</a></li><li·class="navelem"><a·class="el"·href="dir_7cea72c962538e8359f822070f2512f7.html">loaders</a></li>··</ul> |
48 | </div> | 48 | </div> |
49 | </div><!--·top·--> | 49 | </div><!--·top·--> |
50 | <div·class="header"> | 50 | <div·class="header"> |
51 | ··<div·class="headertitle"><div·class="title">SILLY | 51 | ··<div·class="headertitle"><div·class="title">SILLYJPGImageLoader.icpp</div></div> |
52 | </div><!--header--> | 52 | </div><!--header--> |
53 | <div·class="contents"> | 53 | <div·class="contents"> |
54 | <div·class="fragment"><div·class="line"><a·id="l00001"·name="l00001"></a><span·class="lineno">····1</span> | 54 | <div·class="fragment"><div·class="line"><a·id="l00001"·name="l00001"></a><span·class="lineno">····1</span>/***********************************************************************</div> |
55 | <div·class="line"><a·id="l00002"·name="l00002"></a><span·class="lineno">····2</span> | 55 | <div·class="line"><a·id="l00002"·name="l00002"></a><span·class="lineno">····2</span>····filename:···SILLYJPGImageLoader.icpp·</div> |
56 | <div·class="line"><a·id="l00003"·name="l00003"></a><span·class="lineno">····3</span> | 56 | <div·class="line"><a·id="l00003"·name="l00003"></a><span·class="lineno">····3</span>····created:····11·Jun·2006</div> |
57 | <div·class="line"><a·id="l00004"·name="l00004"></a><span·class="lineno">····4</span> | 57 | <div·class="line"><a·id="l00004"·name="l00004"></a><span·class="lineno">····4</span>····author:·····Olivier·Delannoy</div> |
58 | <div·class="line"><a·id="l00005"·name="l00005"></a><span·class="lineno">····5</span> | 58 | <div·class="line"><a·id="l00005"·name="l00005"></a><span·class="lineno">····5</span>·</div> |
59 | <div·class="line"><a·id="l00006"·name="l00006"></a><span·class="lineno">····6</span> | 59 | <div·class="line"><a·id="l00006"·name="l00006"></a><span·class="lineno">····6</span>····purpose:····Inline·definition·of·JPGImageLoader·class··</div> |
60 | <div·class="line"><a·id="l00007"·name="l00007"></a><span·class="lineno">····7</span> | 60 | <div·class="line"><a·id="l00007"·name="l00007"></a><span·class="lineno">····7</span>*************************************************************************/</div> |
61 | <div·class="line"><a·id="l00008"·name="l00008"></a><span·class="lineno">····8</span> | 61 | <div·class="line"><a·id="l00008"·name="l00008"></a><span·class="lineno">····8</span>/***************************************************************************</div> |
62 | <div·class="line"><a·id="l00009"·name="l00009"></a><span·class="lineno">····9</span> | 62 | <div·class="line"><a·id="l00009"·name="l00009"></a><span·class="lineno">····9</span>·*···Copyright·(C)·2004·-·2006·Paul·D·Turner·&·The·CEGUI·Development·Team</div> |
63 | <div·class="line"><a·id="l00010"·name="l00010"></a><span·class="lineno">···10</span> | 63 | <div·class="line"><a·id="l00010"·name="l00010"></a><span·class="lineno">···10</span>·*</div> |
64 | <div·class="line"><a·id="l00011"·name="l00011"></a><span·class="lineno">···11</span> | 64 | <div·class="line"><a·id="l00011"·name="l00011"></a><span·class="lineno">···11</span>·*···Permission·is·hereby·granted,·free·of·charge,·to·any·person·obtaining</div> |
65 | <div·class="line"><a·id="l00012"·name="l00012"></a><span·class="lineno">···12</span> | 65 | <div·class="line"><a·id="l00012"·name="l00012"></a><span·class="lineno">···12</span>·*···a·copy·of·this·software·and·associated·documentation·files·(the</div> |
66 | <div·class="line"><a·id="l00013"·name="l00013"></a><span·class="lineno">···13</span> | 66 | <div·class="line"><a·id="l00013"·name="l00013"></a><span·class="lineno">···13</span>·*···"Software"),·to·deal·in·the·Software·without·restriction,·including</div> |
67 | <div·class="line"><a·id="l00014"·name="l00014"></a><span·class="lineno">···14</span> | 67 | <div·class="line"><a·id="l00014"·name="l00014"></a><span·class="lineno">···14</span>·*···without·limitation·the·rights·to·use,·copy,·modify,·merge,·publish,</div> |
68 | <div·class="line"><a·id="l00015"·name="l00015"></a><span·class="lineno">···15</span> | 68 | <div·class="line"><a·id="l00015"·name="l00015"></a><span·class="lineno">···15</span>·*···distribute,·sublicense,·and/or·sell·copies·of·the·Software,·and·to</div> |
69 | <div·class="line"><a·id="l00016"·name="l00016"></a><span·class="lineno">···16</span> | 69 | <div·class="line"><a·id="l00016"·name="l00016"></a><span·class="lineno">···16</span>·*···permit·persons·to·whom·the·Software·is·furnished·to·do·so,·subject·to</div> |
70 | <div·class="line"><a·id="l00017"·name="l00017"></a><span·class="lineno">···17</span> | 70 | <div·class="line"><a·id="l00017"·name="l00017"></a><span·class="lineno">···17</span>·*···the·following·conditions:</div> |
71 | <div·class="line"><a·id="l00018"·name="l00018"></a><span·class="lineno">···18</span> | 71 | <div·class="line"><a·id="l00018"·name="l00018"></a><span·class="lineno">···18</span>·*</div> |
72 | <div·class="line"><a·id="l00019"·name="l00019"></a><span·class="lineno">···19</span> | 72 | <div·class="line"><a·id="l00019"·name="l00019"></a><span·class="lineno">···19</span>·*···The·above·copyright·notice·and·this·permission·notice·shall·be</div> |
73 | <div·class="line"><a·id="l00020"·name="l00020"></a><span·class="lineno">···20</span> | 73 | <div·class="line"><a·id="l00020"·name="l00020"></a><span·class="lineno">···20</span>·*···included·in·all·copies·or·substantial·portions·of·the·Software.</div> |
74 | <div·class="line"><a·id="l00021"·name="l00021"></a><span·class="lineno">···21</span> | 74 | <div·class="line"><a·id="l00021"·name="l00021"></a><span·class="lineno">···21</span>·*</div> |
75 | <div·class="line"><a·id="l00022"·name="l00022"></a><span·class="lineno">···22</span> | 75 | <div·class="line"><a·id="l00022"·name="l00022"></a><span·class="lineno">···22</span>·*···THE·SOFTWARE·IS·PROVIDED·"AS·IS",·WITHOUT·WARRANTY·OF·ANY·KIND,</div> |
76 | <div·class="line"><a·id="l00023"·name="l00023"></a><span·class="lineno">···23</span> | 76 | <div·class="line"><a·id="l00023"·name="l00023"></a><span·class="lineno">···23</span>·*···EXPRESS·OR·IMPLIED,·INCLUDING·BUT·NOT·LIMITED·TO·THE·WARRANTIES·OF</div> |
77 | <div·class="line"><a·id="l00024"·name="l00024"></a><span·class="lineno">···24</span> | 77 | <div·class="line"><a·id="l00024"·name="l00024"></a><span·class="lineno">···24</span>·*···MERCHANTABILITY,·FITNESS·FOR·A·PARTICULAR·PURPOSE·AND·NONINFRINGEMENT.</div> |
78 | <div·class="line"><a·id="l00025"·name="l00025"></a><span·class="lineno">···25</span> | 78 | <div·class="line"><a·id="l00025"·name="l00025"></a><span·class="lineno">···25</span>·*···IN·NO·EVENT·SHALL·THE·AUTHORS·BE·LIABLE·FOR·ANY·CLAIM,·DAMAGES·OR</div> |
79 | <div·class="line"><a·id="l00026"·name="l00026"></a><span·class="lineno">···26</span> | 79 | <div·class="line"><a·id="l00026"·name="l00026"></a><span·class="lineno">···26</span>·*···OTHER·LIABILITY,·WHETHER·IN·AN·ACTION·OF·CONTRACT,·TORT·OR·OTHERWISE,</div> |
80 | <div·class="line"><a·id="l00027"·name="l00027"></a><span·class="lineno">···27</span> | 80 | <div·class="line"><a·id="l00027"·name="l00027"></a><span·class="lineno">···27</span>·*···ARISING·FROM,·OUT·OF·OR·IN·CONNECTION·WITH·THE·SOFTWARE·OR·THE·USE·OR</div> |
81 | <div·class="line"><a·id="l00028"·name="l00028"></a><span·class="lineno">···28</span> | 81 | <div·class="line"><a·id="l00028"·name="l00028"></a><span·class="lineno">···28</span>·*···OTHER·DEALINGS·IN·THE·SOFTWARE.</div> |
82 | <div·class="line"><a·id="l00029"·name="l00029"></a><span·class="lineno">···29</span> | 82 | <div·class="line"><a·id="l00029"·name="l00029"></a><span·class="lineno">···29</span>·***************************************************************************/</div> |
83 | <div·class="line"><a·id="l00030"·name="l00030"></a><span·class="lineno">···30</span><span·class="preprocessor">#ifndef·_SILLYDataSource_h_·</span></div> | ||
84 | <div·class="line"><a·id="l0003 | 83 | <div·class="line"><a·id="l00030"·name="l00030"></a><span·class="lineno">···30</span>·</div> |
84 | <div·class="line"><a·id="l00031"·name="l00031"></a><span·class="lineno">···31</span>//·Start·of·section·namespace·SILLY</div> | ||
85 | <div·class="line"><a·id="l00032"·name="l00032"></a><span·class="lineno">···32</span> | 85 | <div·class="line"><a·id="l00032"·name="l00032"></a><span·class="lineno">···32</span>namespace·SILLY</div> |
86 | <div·class="line"><a·id="l00033"·name="l00033"></a><span·class="lineno">···33</span> | 86 | <div·class="line"><a·id="l00033"·name="l00033"></a><span·class="lineno">···33</span>{</div> |
87 | <div·class="line"><a·id="l00034"·name="l00034"></a><span·class="lineno">···34</span>····</div> | ||
87 | <div·class="line"><a·id="l0003 | 88 | <div·class="line"><a·id="l00035"·name="l00035"></a><span·class="lineno">···35</span>}·//·End·of·section·namespace·SILLY</div> |
88 | <div·class="line"><a·id="l00035"·name="l00035"></a><span·class="lineno">···35</span><span·class="keyword">namespace·</span><a·class="code·hl_namespace"·href="a00129.html">SILLY</a></div> | ||
89 | <div·class="line"><a·id="l00036"·name="l00036"></a><span·class="lineno">···36</span> | 89 | <div·class="line"><a·id="l00036"·name="l00036"></a><span·class="lineno">···36</span>·</div> |
90 | <div·class="line"><a·id="l00037"·name="l00037"></a><span·class="lineno">···37</span>·</div> | ||
91 | <div·class="foldopen"·id="foldopen00046"·data-start="{"·data-end="};"> | ||
92 | <div·class="line"><a·id="l00046"·name="l00046"></a><span·class="lineno"><a·class="line"·href="a00969.html">···46</a></span><span·class="keyword">class·</span>SILLY_EXPORT·<a·class="code·hl_class"·href="a00969.html">DataSource</a></div> | ||
93 | <div·class="line"><a·id="l00047"·name="l00047"></a><span·class="lineno">···47</span>{</div> | ||
94 | <div·class="line"><a·id="l00048"·name="l00048"></a><span·class="lineno">···48</span><span·class="keyword">public</span>:</div> | ||
95 | <div·class="line"><a·id="l00053"·name="l00053"></a><span·class="lineno"><a·class="line"·href="a00969.html#afef9864fc5e1bee97a7ce05a274d8006">···53</a></span>··<span·class="keyword">virtual</span>·<a·class="code·hl_function"·href="a00969.html#afef9864fc5e1bee97a7ce05a274d8006">~DataSource</a>();</div> | ||
96 | <div·class="line"><a·id="l00058"·name="l00058"></a><span·class="lineno"><a·class="line"·href="a00969.html#a3ae74c9d90450a3d9aa45191e1c21c13">···58</a></span>··<span·class="keyword">virtual</span>·<span·class="keyword">const</span>·<span·class="keywordtype">byte</span>·*·<a·class="code·hl_function"·href="a00969.html#a3ae74c9d90450a3d9aa45191e1c21c13">getDataPtr</a>()·<span·class="keyword">const</span>·=·0;</div> | ||
97 | <div·class="line"><a·id="l00064"·name="l00064"></a><span·class="lineno"><a·class="line"·href="a00969.html#a247628cbb1ca21f3a3d427b6350fe696">···64</a></span>··<span·class="keywordtype">byte</span>·operator[]·(<span·class="keywordtype">size_t</span>·offset)·<span·class="keyword">const</span>;</div> | ||
98 | <div·class="line"><a·id="l00069"·name="l00069"></a><span·class="lineno"><a·class="line"·href="a00969.html#a319cde5b2ea76e92e922845ecfa5c615">···69</a></span>··<span·class="keyword">virtual</span>·<span·class="keywordtype">size_t</span>·<a·class="code·hl_function"·href="a00969.html#a319cde5b2ea76e92e922845ecfa5c615">getSize</a>()·<span·class="keyword">const</span>·=·0;</div> | ||
99 | <div·class="line"><a·id="l00070"·name="l00070"></a><span·class="lineno">···70</span>};</div> | ||
100 | </div> | ||
101 | <div·class="line"><a·id="l00071"·name="l00071"></a><span·class="lineno">···71</span>··</div> | ||
102 | <div·class="line"><a·id="l00072"·name="l00072"></a><span·class="lineno">···72</span>··</div> | ||
103 | <div·class="line"><a·id="l00073"·name="l00073"></a><span·class="lineno">···73</span>}·<span·class="comment">//·End·of·section·namespace·SILLY·</span></div> | ||
104 | <div·class="line"><a·id="l00074"·name="l00074"></a><span·class="lineno">···74</span>·</div> | ||
105 | <div·class="line"><a·id="l00075"·name="l00075"></a><span·class="lineno">···75</span><span·class="comment">//·Inclue·inline·function·when·needed·</span></div> | ||
106 | <div·class="line"><a·id="l00076"·name="l00076"></a><span·class="lineno">···76</span><span·class="preprocessor">#ifdef·SILLY_OPT_INLINE</span></div> | ||
107 | <div·class="line"><a·id="l00077"·name="l00077"></a><span·class="lineno">···77</span><span·class="preprocessor">#include·"SILLYDataSource.icpp"</span></div> | ||
108 | <div·class="line"><a·id="l00078"·name="l00078"></a><span·class="lineno">···78</span><span·class="preprocessor">#endif·</span></div> | ||
109 | <div·class="line"><a·id="l00079"·name="l00079"></a><span·class="lineno">···79</span>·</div> | ||
110 | <div·class="line"><a·id="l00080"·name="l00080"></a><span·class="lineno">···80</span><span·class="preprocessor">#endif·</span><span·class="comment">//·end·of·guard·_SILLYDataSource_h_</span></div> | ||
111 | <div·class="ttc"·id="aa00129_html"><div·class="ttname"><a·href="a00129.html">SILLY</a></div><div·class="ttdoc">Simple·Image·Loading·LibrarY·namespace.</div><div·class="ttdef"><b>Definition</b>·<a·href="a00029_source.html#l00045">SILLYJPGImageContext.cpp:46</a></div></div> | ||
112 | <div·class="ttc"·id="aa00969_html"><div·class="ttname"><a·href="a00969.html">SILLY::DataSource</a></div><div·class="ttdoc">This·is·an·abstract·class·used·to·provide·data·to·the·loader.</div><div·class="ttdef"><b>Definition</b>·<a·href="a00101_source.html#l00046">SILLYDataSource.h:47</a></div></div> | ||
113 | <div·class="ttc"·id="aa00969_html_a319cde5b2ea76e92e922845ecfa5c615"><div·class="ttname"><a·href="a00969.html#a319cde5b2ea76e92e922845ecfa5c615">SILLY::DataSource::getSize</a></div><div·class="ttdeci">virtual·size_t·getSize()·const·=0</div><div·class="ttdoc">Return·the·size·of·the·data.</div></div> | ||
114 | <div·class="ttc"·id="aa00969_html_a3ae74c9d90450a3d9aa45191e1c21c13"><div·class="ttname"><a·href="a00969.html#a3ae74c9d90450a3d9aa45191e1c21c13">SILLY::DataSource::getDataPtr</a></div><div·class="ttdeci">virtual·const·byte·*·getDataPtr()·const·=0</div><div·class="ttdoc">Get·raw·access·to·the·image·data.</div></div> | ||
115 | <div·class="ttc"·id="aa00969_html_afef9864fc5e1bee97a7ce05a274d8006"><div·class="ttname"><a·href="a00969.html#afef9864fc5e1bee97a7ce05a274d8006">SILLY::DataSource::~DataSource</a></div><div·class="ttdeci">virtual·~DataSource()</div><div·class="ttdoc">Destructor.</div></div> | ||
116 | </div><!--·fragment·--></div><!--·contents·--> | 90 | </div><!--·fragment·--></div><!--·contents·--> |
117 | <!--·start·footer·part·--> | 91 | <!--·start·footer·part·--> |
118 | <hr·class="footer"/><address·class="footer"><small> | 92 | <hr·class="footer"/><address·class="footer"><small> |
119 | Generated·by <a·href="https://www.doxygen.org/index.html"><img·class="footer"·src="doxygen.svg"·width="104"·height="31"·alt="doxygen"/></a>·1.9.8 | 93 | Generated·by <a·href="https://www.doxygen.org/index.html"><img·class="footer"·src="doxygen.svg"·width="104"·height="31"·alt="doxygen"/></a>·1.9.8 |
120 | </small></address> | 94 | </small></address> |
121 | </body> | 95 | </body> |
122 | </html> | 96 | </html> |
Offset 1, 19 lines modified | Offset 1, 20 lines modified | ||
1 | Simple·Image·Loading·LibrarY 0.1.0 | 1 | Simple·Image·Loading·LibrarY 0.1.0 |
2 | ····*·_\x8b_\x8u_\x8i_\x8l_\x8d | 2 | ····*·_\x8b_\x8u_\x8i_\x8l_\x8d |
3 | ····*·_\x8r_\x8e_\x8p_\x8r_\x8o_\x8d_\x8u_\x8c_\x8i_\x8b_\x8l_\x8e_\x8-_\x8p_\x8a_\x8t_\x8h | 3 | ····*·_\x8r_\x8e_\x8p_\x8r_\x8o_\x8d_\x8u_\x8c_\x8i_\x8b_\x8l_\x8e_\x8-_\x8p_\x8a_\x8t_\x8h |
4 | ····*·_\x8s_\x8i_\x8l_\x8l_\x8y_\x8-_\x80_\x8._\x81_\x8._\x80 | 4 | ····*·_\x8s_\x8i_\x8l_\x8l_\x8y_\x8-_\x80_\x8._\x81_\x8._\x80 |
5 | ····*·_\x8i_\x8n_\x8c_\x8l_\x8u_\x8d_\x8e | 5 | ····*·_\x8i_\x8n_\x8c_\x8l_\x8u_\x8d_\x8e |
6 | 6 | ····*·_.l_.o_.a_.d_.e_.r_.s | |
7 | SILLYJPGImageLoader.icpp | ||
7 | 1/*********************************************************************** | 8 | 1/*********************************************************************** |
8 | 2·filename:·SILLY | 9 | 2·filename:·SILLYJPGImageLoader.icpp |
9 | 3·created:·1 | 10 | 3·created:·11·Jun·2006 |
10 | 4·author:·Olivier·Delannoy | 11 | 4·author:·Olivier·Delannoy |
11 | 5 | 12 | 5 |
12 | 6·purpose:· | 13 | 6·purpose:·Inline·definition·of·JPGImageLoader·class |
13 | 7*************************************************************************/ | 14 | 7*************************************************************************/ |
14 | 8/*************************************************************************** | 15 | 8/*************************************************************************** |
15 | 9·*·Copyright·(C)·2004·-·2006·Paul·D·Turner·&·The·CEGUI·Development·Team | 16 | 9·*·Copyright·(C)·2004·-·2006·Paul·D·Turner·&·The·CEGUI·Development·Team |
16 | 10·* | 17 | 10·* |
17 | 11·*·Permission·is·hereby·granted,·free·of·charge,·to·any·person·obtaining | 18 | 11·*·Permission·is·hereby·granted,·free·of·charge,·to·any·person·obtaining |
18 | 12·*·a·copy·of·this·software·and·associated·documentation·files·(the | 19 | 12·*·a·copy·of·this·software·and·associated·documentation·files·(the |
19 | 13·*·"Software"),·to·deal·in·the·Software·without·restriction,·including | 20 | 13·*·"Software"),·to·deal·in·the·Software·without·restriction,·including |
Offset 29, 50 lines modified | Offset 30, 16 lines modified | ||
29 | 23·*·EXPRESS·OR·IMPLIED,·INCLUDING·BUT·NOT·LIMITED·TO·THE·WARRANTIES·OF | 30 | 23·*·EXPRESS·OR·IMPLIED,·INCLUDING·BUT·NOT·LIMITED·TO·THE·WARRANTIES·OF |
30 | 24·*·MERCHANTABILITY,·FITNESS·FOR·A·PARTICULAR·PURPOSE·AND·NONINFRINGEMENT. | 31 | 24·*·MERCHANTABILITY,·FITNESS·FOR·A·PARTICULAR·PURPOSE·AND·NONINFRINGEMENT. |
31 | 25·*·IN·NO·EVENT·SHALL·THE·AUTHORS·BE·LIABLE·FOR·ANY·CLAIM,·DAMAGES·OR | 32 | 25·*·IN·NO·EVENT·SHALL·THE·AUTHORS·BE·LIABLE·FOR·ANY·CLAIM,·DAMAGES·OR |
32 | 26·*·OTHER·LIABILITY,·WHETHER·IN·AN·ACTION·OF·CONTRACT,·TORT·OR·OTHERWISE, | 33 | 26·*·OTHER·LIABILITY,·WHETHER·IN·AN·ACTION·OF·CONTRACT,·TORT·OR·OTHERWISE, |
33 | 27·*·ARISING·FROM,·OUT·OF·OR·IN·CONNECTION·WITH·THE·SOFTWARE·OR·THE·USE·OR | 34 | 27·*·ARISING·FROM,·OUT·OF·OR·IN·CONNECTION·WITH·THE·SOFTWARE·OR·THE·USE·OR |
34 | 28·*·OTHER·DEALINGS·IN·THE·SOFTWARE. | 35 | 28·*·OTHER·DEALINGS·IN·THE·SOFTWARE. |
35 | 29·***************************************************************************/ | 36 | 29·***************************************************************************/ |
37 | 30 | ||
36 | 30#ifndef·_SILLYDataSource_h_ | ||
37 | 31#define·_SILLYDataSource_h_ | ||
38 | 32#include·"SILLYBase.h" | ||
39 | 33 | ||
40 | 3 | 38 | 31//·Start·of·section·namespace·SILLY |
39 | 32namespace·SILLY | ||
40 | 33{ | ||
41 | 34 | ||
41 | 35namespace·_\x8S_\x8I_\x8L_\x8L_\x8Y | ||
42 | 36{ | ||
43 | 37 | ||
44 | _\x84_\x86class·SILLY_EXPORT·_\x8D_\x8a_\x8t_\x8a_\x8S_\x8o_\x8u_\x8r_\x8c_\x8e | ||
45 | 47{ | ||
46 | 48public: | ||
47 | _\x85_\x83·virtual·_\x8~_\x8D_\x8a_\x8t_\x8a_\x8S_\x8o_\x8u_\x8r_\x8c_\x8e(); | ||
48 | _\x85_\x88·virtual·const·byte·*·_\x8g_\x8e_\x8t_\x8D_\x8a_\x8t_\x8a_\x8P_\x8t_\x8r()·const·=·0; | ||
49 | _\x86_\x84·byte·operator[]·(size_t·offset)·const; | ||
50 | _\x86_\x89·virtual·size_t·_\x8g_\x8e_\x8t_\x8S_\x8i_\x8z_\x8e()·const·=·0; | ||
51 | 70}; | ||
52 | 71 | ||
53 | 72 | ||
54 | 42 | 35}·//·End·of·section·namespace·SILLY | |
43 | 36 | ||
55 | 74 | ||
56 | 75//·Inclue·inline·function·when·needed | ||
57 | 76#ifdef·SILLY_OPT_INLINE | ||
58 | 77#include·"SILLYDataSource.icpp" | ||
59 | 78#endif | ||
60 | 79 | ||
61 | 80#endif·//·end·of·guard·_SILLYDataSource_h_ | ||
62 | _\x8S_\x8I_\x8L_\x8L_\x8Y | ||
63 | Simple·Image·Loading·LibrarY·namespace. | ||
64 | D\x8De\x8ef\x8fi\x8in\x8ni\x8it\x8ti\x8io\x8on\x8n·_\x8S_\x8I_\x8L_\x8L_\x8Y_\x8J_\x8P_\x8G_\x8I_\x8m_\x8a_\x8g_\x8e_\x8C_\x8o_\x8n_\x8t_\x8e_\x8x_\x8t_\x8._\x8c_\x8p_\x8p_\x8:_\x84_\x86 | ||
65 | _\x8S_\x8I_\x8L_\x8L_\x8Y_\x8:_\x8:_\x8D_\x8a_\x8t_\x8a_\x8S_\x8o_\x8u_\x8r_\x8c_\x8e | ||
66 | This·is·an·abstract·class·used·to·provide·data·to·the·loader. | ||
67 | D\x8De\x8ef\x8fi\x8in\x8ni\x8it\x8ti\x8io\x8on\x8n·_\x8S_\x8I_\x8L_\x8L_\x8Y_\x8D_\x8a_\x8t_\x8a_\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8._\x8h_\x8:_\x84_\x87 | ||
68 | _\x8S_\x8I_\x8L_\x8L_\x8Y_\x8:_\x8:_\x8D_\x8a_\x8t_\x8a_\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8:_\x8:_\x8g_\x8e_\x8t_\x8S_\x8i_\x8z_\x8e | ||
69 | virtual·size_t·getSize()·const·=0 | ||
70 | Return·the·size·of·the·data. | ||
71 | _\x8S_\x8I_\x8L_\x8L_\x8Y_\x8:_\x8:_\x8D_\x8a_\x8t_\x8a_\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8:_\x8:_\x8g_\x8e_\x8t_\x8D_\x8a_\x8t_\x8a_\x8P_\x8t_\x8r | ||
72 | virtual·const·byte·*·getDataPtr()·const·=0 | ||
73 | Get·raw·access·to·the·image·data. | ||
74 | _\x8S_\x8I_\x8L_\x8L_\x8Y_\x8:_\x8:_\x8D_\x8a_\x8t_\x8a_\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8:_\x8:_\x8~_\x8D_\x8a_\x8t_\x8a_\x8S_\x8o_\x8u_\x8r_\x8c_\x8e | ||
75 | virtual·~DataSource() | ||
76 | Destructor. | ||
77 | =============================================================================== | 44 | =============================================================================== |
78 | ·····Generated·by _\x8[_\x8d_\x8o_\x8x_\x8y_\x8g_\x8e_\x8n_\x8]·1.9.8 | 45 | ·····Generated·by _\x8[_\x8d_\x8o_\x8x_\x8y_\x8g_\x8e_\x8n_\x8]·1.9.8 |
Offset 1, 15 lines modified | Offset 1, 15 lines modified | ||
1 | <!DOCTYPE·html·PUBLIC·"-//W3C//DTD·XHTML·1.0·Transitional//EN"·"https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> | 1 | <!DOCTYPE·html·PUBLIC·"-//W3C//DTD·XHTML·1.0·Transitional//EN"·"https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> |
2 | <html·xmlns="http://www.w3.org/1999/xhtml"·lang="en-US"> | 2 | <html·xmlns="http://www.w3.org/1999/xhtml"·lang="en-US"> |
3 | <head> | 3 | <head> |
4 | <meta·http-equiv="Content-Type"·content="text/xhtml;charset=UTF-8"/> | 4 | <meta·http-equiv="Content-Type"·content="text/xhtml;charset=UTF-8"/> |
5 | <meta·http-equiv="X-UA-Compatible"·content="IE=11"/> | 5 | <meta·http-equiv="X-UA-Compatible"·content="IE=11"/> |
6 | <meta·name="generator"·content="Doxygen·1.9.8"/> | 6 | <meta·name="generator"·content="Doxygen·1.9.8"/> |
7 | <meta·name="viewport"·content="width=device-width,·initial-scale=1"/> | 7 | <meta·name="viewport"·content="width=device-width,·initial-scale=1"/> |
8 | <title>Simple·Image·Loading·LibrarY:·/build/reproducible-path/silly-0.1.0/include/SILLY | 8 | <title>Simple·Image·Loading·LibrarY:·/build/reproducible-path/silly-0.1.0/include/loaders/SILLYPNGImageLoader.h·Source·File</title> |
9 | <link·href="tabs.css"·rel="stylesheet"·type="text/css"/> | 9 | <link·href="tabs.css"·rel="stylesheet"·type="text/css"/> |
10 | <script·type="text/javascript"·src="jquery.js"></script> | 10 | <script·type="text/javascript"·src="jquery.js"></script> |
11 | <script·type="text/javascript"·src="dynsections.js"></script> | 11 | <script·type="text/javascript"·src="dynsections.js"></script> |
12 | <link·href="doxygen.css"·rel="stylesheet"·type="text/css"·/> | 12 | <link·href="doxygen.css"·rel="stylesheet"·type="text/css"·/> |
13 | </head> | 13 | </head> |
14 | <body> | 14 | <body> |
15 | <div·id="top"><!--·do·not·remove·this·div,·it·is·closed·by·doxygen!·--> | 15 | <div·id="top"><!--·do·not·remove·this·div,·it·is·closed·by·doxygen!·--> |
Offset 40, 27 lines modified | Offset 40, 27 lines modified | ||
40 | <script·type="text/javascript"> | 40 | <script·type="text/javascript"> |
41 | /*·@license·magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt·MIT·*/ | 41 | /*·@license·magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt·MIT·*/ |
42 | $(document).ready(function()·{·init_codefold(0);·}); | 42 | $(document).ready(function()·{·init_codefold(0);·}); |
43 | /*·@license-end·*/ | 43 | /*·@license-end·*/ |
44 | </script> | 44 | </script> |
45 | <div·id="nav-path"·class="navpath"> | 45 | <div·id="nav-path"·class="navpath"> |
46 | ··<ul> | 46 | ··<ul> |
47 | <li·class="navelem"><a·class="el"·href="dir_4fef79e7177ba769987a8da36c892c5f.html">build</a></li><li·class="navelem"><a·class="el"·href="dir_9def6061848686aab7e6212bb499d615.html">reproducible-path</a></li><li·class="navelem"><a·class="el"·href="dir_74170d5b58cefb7cb5a86fc552b183a3.html">silly-0.1.0</a></li><li·class="navelem"><a·class="el"·href="dir_0d87e2e7ddaae8a2a8572c0afc59fe0d.html">include</a></li>··</ul> | 47 | <li·class="navelem"><a·class="el"·href="dir_4fef79e7177ba769987a8da36c892c5f.html">build</a></li><li·class="navelem"><a·class="el"·href="dir_9def6061848686aab7e6212bb499d615.html">reproducible-path</a></li><li·class="navelem"><a·class="el"·href="dir_74170d5b58cefb7cb5a86fc552b183a3.html">silly-0.1.0</a></li><li·class="navelem"><a·class="el"·href="dir_0d87e2e7ddaae8a2a8572c0afc59fe0d.html">include</a></li><li·class="navelem"><a·class="el"·href="dir_7cea72c962538e8359f822070f2512f7.html">loaders</a></li>··</ul> |
48 | </div> | 48 | </div> |
49 | </div><!--·top·--> | 49 | </div><!--·top·--> |
50 | <div·class="header"> | 50 | <div·class="header"> |
51 | ··<div·class="headertitle"><div·class="title">SILLY | 51 | ··<div·class="headertitle"><div·class="title">SILLYPNGImageLoader.h</div></div> |
52 | </div><!--header--> | 52 | </div><!--header--> |
53 | <div·class="contents"> | 53 | <div·class="contents"> |
54 | <div·class="fragment"><div·class="line"><a·id="l00001"·name="l00001"></a><span·class="lineno">····1</span><span·class="comment">/***********************************************************************</span></div> | 54 | <div·class="fragment"><div·class="line"><a·id="l00001"·name="l00001"></a><span·class="lineno">····1</span><span·class="comment">/***********************************************************************</span></div> |
55 | <div·class="line"><a·id="l00002"·name="l00002"></a><span·class="lineno">····2</span><span·class="comment">····filename:···SILLY | 55 | <div·class="line"><a·id="l00002"·name="l00002"></a><span·class="lineno">····2</span><span·class="comment">····filename:···SILLYPNGImageLoader.h</span></div> |
56 | <div·class="line"><a·id="l00003"·name="l00003"></a><span·class="lineno">····3</span><span·class="comment">····created:···· | 56 | <div·class="line"><a·id="l00003"·name="l00003"></a><span·class="lineno">····3</span><span·class="comment">····created:····11·Jun·2006</span></div> |
57 | <div·class="line"><a·id="l00004"·name="l00004"></a><span·class="lineno">····4</span><span·class="comment">····author:·····Olivier·Delannoy</span></div> | 57 | <div·class="line"><a·id="l00004"·name="l00004"></a><span·class="lineno">····4</span><span·class="comment">····author:·····Olivier·Delannoy</span></div> |
58 | <div·class="line"><a·id="l00005"·name="l00005"></a><span·class="lineno">····5</span><span·class="comment"></span>·</div> | 58 | <div·class="line"><a·id="l00005"·name="l00005"></a><span·class="lineno">····5</span><span·class="comment"></span>·</div> |
59 | <div·class="line"><a·id="l00006"·name="l00006"></a><span·class="lineno">····6</span><span·class="comment">····purpose:···· | 59 | <div·class="line"><a·id="l00006"·name="l00006"></a><span·class="lineno">····6</span><span·class="comment">····purpose:····Declaration·of·the·PNGImageLoader·class</span></div> |
60 | <div·class="line"><a·id="l00007"·name="l00007"></a><span·class="lineno">····7</span><span·class="comment">*************************************************************************/</span></div> | 60 | <div·class="line"><a·id="l00007"·name="l00007"></a><span·class="lineno">····7</span><span·class="comment">*************************************************************************/</span></div> |
61 | <div·class="line"><a·id="l00008"·name="l00008"></a><span·class="lineno">····8</span><span·class="comment">/***************************************************************************</span></div> | 61 | <div·class="line"><a·id="l00008"·name="l00008"></a><span·class="lineno">····8</span><span·class="comment">/***************************************************************************</span></div> |
62 | <div·class="line"><a·id="l00009"·name="l00009"></a><span·class="lineno">····9</span><span·class="comment">·*···Copyright·(C)·2004·-·2006·Paul·D·Turner·&·The·CEGUI·Development·Team</span></div> | 62 | <div·class="line"><a·id="l00009"·name="l00009"></a><span·class="lineno">····9</span><span·class="comment">·*···Copyright·(C)·2004·-·2006·Paul·D·Turner·&·The·CEGUI·Development·Team</span></div> |
63 | <div·class="line"><a·id="l00010"·name="l00010"></a><span·class="lineno">···10</span><span·class="comment">·*</span></div> | 63 | <div·class="line"><a·id="l00010"·name="l00010"></a><span·class="lineno">···10</span><span·class="comment">·*</span></div> |
64 | <div·class="line"><a·id="l00011"·name="l00011"></a><span·class="lineno">···11</span><span·class="comment">·*···Permission·is·hereby·granted,·free·of·charge,·to·any·person·obtaining</span></div> | 64 | <div·class="line"><a·id="l00011"·name="l00011"></a><span·class="lineno">···11</span><span·class="comment">·*···Permission·is·hereby·granted,·free·of·charge,·to·any·person·obtaining</span></div> |
65 | <div·class="line"><a·id="l00012"·name="l00012"></a><span·class="lineno">···12</span><span·class="comment">·*···a·copy·of·this·software·and·associated·documentation·files·(the</span></div> | 65 | <div·class="line"><a·id="l00012"·name="l00012"></a><span·class="lineno">···12</span><span·class="comment">·*···a·copy·of·this·software·and·associated·documentation·files·(the</span></div> |
66 | <div·class="line"><a·id="l00013"·name="l00013"></a><span·class="lineno">···13</span><span·class="comment">·*···"Software"),·to·deal·in·the·Software·without·restriction,·including</span></div> | 66 | <div·class="line"><a·id="l00013"·name="l00013"></a><span·class="lineno">···13</span><span·class="comment">·*···"Software"),·to·deal·in·the·Software·without·restriction,·including</span></div> |
Offset 76, 71 lines modified | Offset 76, 58 lines modified | ||
76 | <div·class="line"><a·id="l00023"·name="l00023"></a><span·class="lineno">···23</span><span·class="comment">·*···EXPRESS·OR·IMPLIED,·INCLUDING·BUT·NOT·LIMITED·TO·THE·WARRANTIES·OF</span></div> | 76 | <div·class="line"><a·id="l00023"·name="l00023"></a><span·class="lineno">···23</span><span·class="comment">·*···EXPRESS·OR·IMPLIED,·INCLUDING·BUT·NOT·LIMITED·TO·THE·WARRANTIES·OF</span></div> |
77 | <div·class="line"><a·id="l00024"·name="l00024"></a><span·class="lineno">···24</span><span·class="comment">·*···MERCHANTABILITY,·FITNESS·FOR·A·PARTICULAR·PURPOSE·AND·NONINFRINGEMENT.</span></div> | 77 | <div·class="line"><a·id="l00024"·name="l00024"></a><span·class="lineno">···24</span><span·class="comment">·*···MERCHANTABILITY,·FITNESS·FOR·A·PARTICULAR·PURPOSE·AND·NONINFRINGEMENT.</span></div> |
78 | <div·class="line"><a·id="l00025"·name="l00025"></a><span·class="lineno">···25</span><span·class="comment">·*···IN·NO·EVENT·SHALL·THE·AUTHORS·BE·LIABLE·FOR·ANY·CLAIM,·DAMAGES·OR</span></div> | 78 | <div·class="line"><a·id="l00025"·name="l00025"></a><span·class="lineno">···25</span><span·class="comment">·*···IN·NO·EVENT·SHALL·THE·AUTHORS·BE·LIABLE·FOR·ANY·CLAIM,·DAMAGES·OR</span></div> |
79 | <div·class="line"><a·id="l00026"·name="l00026"></a><span·class="lineno">···26</span><span·class="comment">·*···OTHER·LIABILITY,·WHETHER·IN·AN·ACTION·OF·CONTRACT,·TORT·OR·OTHERWISE,</span></div> | 79 | <div·class="line"><a·id="l00026"·name="l00026"></a><span·class="lineno">···26</span><span·class="comment">·*···OTHER·LIABILITY,·WHETHER·IN·AN·ACTION·OF·CONTRACT,·TORT·OR·OTHERWISE,</span></div> |
80 | <div·class="line"><a·id="l00027"·name="l00027"></a><span·class="lineno">···27</span><span·class="comment">·*···ARISING·FROM,·OUT·OF·OR·IN·CONNECTION·WITH·THE·SOFTWARE·OR·THE·USE·OR</span></div> | 80 | <div·class="line"><a·id="l00027"·name="l00027"></a><span·class="lineno">···27</span><span·class="comment">·*···ARISING·FROM,·OUT·OF·OR·IN·CONNECTION·WITH·THE·SOFTWARE·OR·THE·USE·OR</span></div> |
81 | <div·class="line"><a·id="l00028"·name="l00028"></a><span·class="lineno">···28</span><span·class="comment">·*···OTHER·DEALINGS·IN·THE·SOFTWARE.</span></div> | 81 | <div·class="line"><a·id="l00028"·name="l00028"></a><span·class="lineno">···28</span><span·class="comment">·*···OTHER·DEALINGS·IN·THE·SOFTWARE.</span></div> |
82 | <div·class="line"><a·id="l00029"·name="l00029"></a><span·class="lineno">···29</span><span·class="comment">·***************************************************************************/</span></div> | 82 | <div·class="line"><a·id="l00029"·name="l00029"></a><span·class="lineno">···29</span><span·class="comment">·***************************************************************************/</span></div> |
83 | <div·class="line"><a·id="l00030"·name="l00030"></a><span·class="lineno">···30</span><span·class="preprocessor">#ifndef·_SILLY | 83 | <div·class="line"><a·id="l00030"·name="l00030"></a><span·class="lineno">···30</span><span·class="preprocessor">#ifndef·_SILLYPNGImageLoader_h_·</span></div> |
84 | <div·class="line"><a·id="l00031"·name="l00031"></a><span·class="lineno">···31</span><span·class="preprocessor">#define·_SILLY | 84 | <div·class="line"><a·id="l00031"·name="l00031"></a><span·class="lineno">···31</span><span·class="preprocessor">#define·_SILLYPNGImageLoader_h_</span></div> |
85 | <div·class="line"><a·id="l00032"·name="l00032"></a><span·class="lineno">···32</span><span·class="preprocessor">#include·& | 85 | <div·class="line"><a·id="l00032"·name="l00032"></a><span·class="lineno">···32</span><span·class="preprocessor">#include·"SILLYBase.h"</span>·</div> |
86 | <div·class="line"><a·id="l00033"·name="l00033"></a><span·class="lineno">···33</span><span·class="preprocessor">#include·& | 86 | <div·class="line"><a·id="l00033"·name="l00033"></a><span·class="lineno">···33</span><span·class="preprocessor">#include·"SILLYImageLoader.h"</span>·</div> |
87 | <div·class="line"><a·id="l00034"·name="l00034"></a><span·class="lineno">···34</span><span·class="preprocessor">#include·"SILLYDataSource.h"</span>·</div> | ||
88 | <div·class="line"><a·id="l00035"·name="l00035"></a><span·class="lineno">···35</span><span·class="comment">//·Start·of·section·namespace·SILLY·</span></div> | ||
89 | <div·class="line"><a·id="l00036"·name="l00036"></a><span·class="lineno">···36</span><span·class="keyword">namespace·</span><a·class="code·hl_namespace"·href="a00129.html">SILLY</a></div> | ||
87 | <div·class="line"><a·id="l0003 | 90 | <div·class="line"><a·id="l00037"·name="l00037"></a><span·class="lineno">···37</span>{</div> |
91 | <div·class="foldopen"·id="foldopen00042"·data-start="{"·data-end="};"> | ||
92 | <div·class="line"><a·id="l00042"·name="l00042"></a><span·class="lineno"><a·class="line"·href="a00957.html">···42</a></span><span·class="keyword">class·</span><a·class="code·hl_class"·href="a00957.html">PNGImageLoader</a>·:·<span·class="keyword">public</span>·<a·class="code·hl_class"·href="a00985.html">ImageLoader</a></div> | ||
88 | <div·class="line"><a·id="l00035"·name="l00035"></a><span·class="lineno">···35</span><span·class="preprocessor">#if·defined(USE_SILLYOPTIONS_H)</span></div> | ||
89 | <div·class="line"><a·id="l00036"·name="l00036"></a><span·class="lineno">···36</span><span·class="preprocessor">#include·"SILLYOptions.h"</span></div> | ||
90 | <div·class="line"><a·id="l00037"·name="l00037"></a><span·class="lineno">···37</span><span·class="preprocessor">#endif</span></div> | ||
91 | <div·class="line"><a·id="l000 | 93 | <div·class="line"><a·id="l00043"·name="l00043"></a><span·class="lineno">···43</span>{</div> |
92 | <div·class="line"><a·id="l00039"·name="l00039"></a><span·class="lineno">···39</span><span·class="preprocessor">#if·defined(_WIN32)·||·defined(__WIN32__)</span></div> | ||
93 | <div·class="line"><a·id="l00040"·name="l00040"></a><span·class="lineno">···40</span><span·class="preprocessor">#···undef·SILLY_OPT_INLINE·</span><span·class="comment">//·No·inlining·</span></div> | ||
94 | <div·class="line"><a·id="l00041"·name="l00041"></a><span·class="lineno">···41</span><span·class="preprocessor">#···undef·SILLY_BE·</span><span·class="comment">//·Little·Endian·</span></div> | ||
95 | <div·class="line"><a·id="l00042"·name="l00042"></a><span·class="lineno">···42</span><span·class="preprocessor">#···ifdef·SILLY_EXPORTS</span></div> | ||
96 | <div·class="line"><a·id="l00043"·name="l00043"></a><span·class="lineno">···43</span><span·class="preprocessor">#·······define·SILLY_EXPORT·__declspec(dllexport)</span></div> | ||
97 | <div·class="line"><a·id="l00044"·name="l00044"></a><span·class="lineno">···44</span><span·class=" | 94 | <div·class="line"><a·id="l00044"·name="l00044"></a><span·class="lineno">···44</span><span·class="keyword">public</span>:</div> |
98 | <div·class="line"><a·id="l00045"·name="l00045"></a><span·class="lineno">···45</span> | 95 | <div·class="line"><a·id="l00045"·name="l00045"></a><span·class="lineno">···45</span>····<a·class="code·hl_class"·href="a00957.html">PNGImageLoader</a>();</div> |
99 | <div·class="line"><a·id="l00046"·name="l00046"></a><span·class="lineno">···46</span> | 96 | <div·class="line"><a·id="l00046"·name="l00046"></a><span·class="lineno">···46</span>····</div> |
97 | <div·class="line"><a·id="l00047"·name="l00047"></a><span·class="lineno">···47</span>····<a·class="code·hl_class"·href="a00957.html">~PNGImageLoader</a>();</div> | ||
100 | <div·class="line"><a·id="l0004 | 98 | <div·class="line"><a·id="l00048"·name="l00048"></a><span·class="lineno">···48</span>····</div> |
99 | <div·class="line"><a·id="l00049"·name="l00049"></a><span·class="lineno">···49</span>····<a·class="code·hl_class"·href="a00981.html">ImageContext</a>*·<a·class="code·hl_function"·href="a00957.html#a1f83c2e6e4960b05c1b5bd61b0635f8c">loadHeader</a>(<a·class="code·hl_enumeration"·href="a00129.html#a60883d4958a60b91661e97027a85072a">PixelFormat</a>&·formatSource,·<a·class="code·hl_class"·href="a00969.html">DataSource</a>*·data);</div> | ||
101 | <div·class="line"><a·id="l00048"·name="l00048"></a><span·class="lineno">···48</span><span·class="preprocessor">#···define·SILLY_EXPORT</span></div> | ||
102 | <div·class="line"><a·id="l00049"·name="l00049"></a><span·class="lineno">···49</span><span·class="preprocessor">#endif</span></div> | ||
103 | <div·class="line"><a·id="l00050"·name="l00050"></a><span·class="lineno">···50</span>·</div> | 100 | <div·class="line"><a·id="l00050"·name="l00050"></a><span·class="lineno">···50</span>····</div> |
104 | <div·class="line"><a·id="l00051"·name="l00051"></a><span·class="lineno">···51</span><span·class="comment">//·Start·of·section·namespace·SILLY·</span></div> | ||
105 | <div·class="line"><a·id="l0005 | 101 | <div·class="line"><a·id="l00051"·name="l00051"></a><span·class="lineno">···51</span>····<span·class="keywordtype">bool</span>·<a·class="code·hl_function"·href="a00957.html#a4a4d6df5dcc08cb493855fcfc1956fca">loadImageData</a>(<a·class="code·hl_enumeration"·href="a00129.html#aebdd89f2279[·...·truncated·by·diffoscope;·len:·47,·SHA:·40a1fbfd6a77a2eb39509a37ba81574ab217988d6989924654a92d1c9c3a9227·...·]</div> |
102 | <div·class="line"><a·id="l00052"·name="l00052"></a><span·class="lineno">···52</span>·······················<a·class="code·hl_class"·href="a00969.html">DataSource</a>*·data,·</div> | ||
103 | <div·class="line"><a·id="l00053"·name="l00053"></a><span·class="lineno">···53</span>·······················<a·class="code·hl_class"·href="a00981.html">ImageContext</a>*·context);</div> | ||
106 | <div·class="line"><a·id="l0005 | 104 | <div·class="line"><a·id="l00054"·name="l00054"></a><span·class="lineno">···54</span><span·class="keyword">private</span>:</div> |
107 | <div·class="line"><a·id="l0005 | 105 | <div·class="line"><a·id="l00055"·name="l00055"></a><span·class="lineno">···55</span>·</div> |
108 | <div·class="foldopen"·id="foldopen00059"·data-start="{"·data-end="};"> | ||
109 | <div·class="line"><a·id="l00059"·name="l00059"></a><span·class="lineno"><a·class="line"·href="a00129.html#a60883d4958a60b91661e97027a85072a">···59</a></span><span·class="keyword">enum</span>·<a·class="code·hl_enumeration"·href="a00129.html#a60883d4958a60b91661e97027a85072a">PixelFormat</a></div> | ||
110 | <div·class="line"><a·id="l00060"·name="l00060"></a><span·class="lineno">···60</span>{</div> | ||
111 | <div·class="line"><a·id="l00061"·name="l00061"></a><span·class="lineno">···61</span>····PF_A1B5G5R5,····<span·class="comment">//<!·16·bits,·pixel·format·is·A1R5G5B5·(GGGBBBBB,ARRRRRGG·on·disk)</span></div> | ||
112 | <div·class="line"><a·id="l00062"·name="l00062"></a><span·class="lineno">···62</span>····PF_RGB,·········<span·class="comment">//<!·24·bits,·pixel·format·is·8·bits·for·R,·G,·B·</span></div> | ||
113 | <div·class="line"><a·id="l00063"·name="l00063"></a><span·class="lineno">···63</span>····PF_RGBA,········<span·class="comment">//<!·32·bits,·pixel·format·is·8·bits·for·R,·G,·B·and·A·channel·····</span></div> | ||
114 | <div·class="line"><a·id="l00064"·name="l00064"></a><span·class="lineno">···64</span>····PF_ORIGIN,······<span·class="comment">//<!·This·format·is·used·when·the·input·storage·use·a·specific·pixel·format·</span></div> | ||
115 | <div·class="line"><a·id="l000 | 106 | <div·class="line"><a·id="l00056"·name="l00056"></a><span·class="lineno">···56</span>};</div> |
116 | </div> | 107 | </div> |
117 | <div·class="foldopen"·id="foldopen00070"·data-start="{"·data-end="};"> | ||
118 | <div·class="line"><a·id="l00070"·name="l00070"></a><span·class="lineno"><a·class="line"·href="a00129.html#aebdd89f22790687ac264c1abd9f7fd38">···70</a></span><span·class="keyword">enum</span>·<a·class="code·hl_enumeration"·href="a00129.html#aebdd89f22790687ac264c1abd9f7fd38">PixelOrigin</a>·</div> | ||
119 | <div·class="line"><a·id="l00071"·name="l00071"></a><span·class="lineno">···71</span>{</div> | ||
120 | <div·class="line"><a·id="l00072"·name="l00072"></a><span·class="lineno">···72</span>····PO_TOP_LEFT,·····<span·class="comment">//<!·The·resulting·image·origine·is·Top·Left</span></div> | ||
121 | <div·class="line"><a·id="l00073"·name="l00073"></a><span·class="lineno">···73</span>····PO_BOTTOM_LEFT,··<span·class="comment">//<!·The·resulting·image·origine·is·Bottom·Left</span></div> | ||
122 | <div·class="line"><a·id="l00074"·name="l00074"></a><span·class="lineno">···74</span>};</div> | ||
123 | </div> | ||
124 | <div·class="line"><a·id="l000 | 108 | <div·class="line"><a·id="l00057"·name="l00057"></a><span·class="lineno">···57</span>··</div> |
125 | <div·class="line"><a·id="l00080"·name="l00080"></a><span·class="lineno"><a·class="line"·href="a00129.html#a0c8186d9b9b7880309c27230bbb5e69d">···80</a></span><span·class="keyword">typedef</span>·<span·class="keywordtype">unsigned</span>·<span·class="keywordtype">char</span>·<a·class="code·hl_typedef"·href="a00129.html#a0c8186d9b9b7880309c27230bbb5e69d">byte</a>;</div> | ||
126 | <div·class="line"><a·id="l00088"·name="l00088"></a><span·class="lineno">···88</span><span·class="keywordtype">bool</span>·SILLY_EXPORT·<a·class="code·hl_function"·href="a00129.html#a61417e4f09222c4b4b96bfc1cd2b62fe">SILLYInit</a>();</div> | ||
127 | <div·class="line"><a·id="l000 | 109 | <div·class="line"><a·id="l00058"·name="l00058"></a><span·class="lineno">···58</span>··</div> |
128 | <div·class="line"><a·id="l00094"·name="l00094"></a><span·class="lineno">···94</span><span·class="keywordtype">void</span>·SILLY_EXPORT·<a·class="code·hl_function"·href="a00129.html#a33a519b8226fd733e2ef294f894411f9">SILLYCleanup</a>();</div> | ||
129 | <div·class="line"><a·id="l00095"·name="l00095"></a><span·class="lineno">···95</span>·</div> | ||
130 | <div·class="line"><a·id="l000 | 110 | <div·class="line"><a·id="l00059"·name="l00059"></a><span·class="lineno">···59</span>}·<span·class="comment">//·End·of·section·namespace·SILLY·</span></div> |
131 | <div·class="line"><a·id="l000 | 111 | <div·class="line"><a·id="l00060"·name="l00060"></a><span·class="lineno">···60</span>·</div> |
112 | <div·class="line"><a·id="l00061"·name="l00061"></a><span·class="lineno">···61</span><span·class="comment">//·Inclue·inline·function·when·needed·</span></div> | ||
113 | <div·class="line"><a·id="l00062"·name="l00062"></a><span·class="lineno">···62</span><span·class="preprocessor">#ifdef·SILLY_OPT_INLINE</span></div> | ||
114 | <div·class="line"><a·id="l00063"·name="l00063"></a><span·class="lineno">···63</span><span·class="preprocessor">#include·"SILLYPNGImageLoader.icpp"</span></div> | ||
132 | <div·class="line"><a·id="l000 | 115 | <div·class="line"><a·id="l00064"·name="l00064"></a><span·class="lineno">···64</span><span·class="preprocessor">#endif·</span></div> |
133 | <div·class="line"><a·id="l000 | 116 | <div·class="line"><a·id="l00065"·name="l00065"></a><span·class="lineno">···65</span>·</div> |
117 | <div·class="line"><a·id="l00066"·name="l00066"></a><span·class="lineno">···66</span><span·class="preprocessor">#endif·</span><span·class="comment">//·end·of·guard·_SILLYPNGImageLoader_h_</span></div> | ||
134 | <div·class="ttc"·id="aa00129_html"><div·class="ttname"><a·href="a00129.html">SILLY</a></div><div·class="ttdoc">Simple·Image·Loading·LibrarY·namespace.</div><div·class="ttdef"><b>Definition</b>·<a·href="a0002 | 118 | <div·class="ttc"·id="aa00129_html"><div·class="ttname"><a·href="a00129.html">SILLY</a></div><div·class="ttdoc">Simple·Image·Loading·LibrarY·namespace.</div><div·class="ttdef"><b>Definition</b>·<a·href="a00023_source.html#l00045">SILLYJPGImageContext.cpp:46</a></div></div> |
135 | <div·class="ttc"·id="aa00129_html_a0c8186d9b9b7880309c27230bbb5e69d"><div·class="ttname"><a·href="a00129.html#a0c8186d9b9b7880309c27230bbb5e69d">SILLY::byte</a></div><div·class="ttdeci">unsigned·char·byte</div><div·class="ttdoc">Typename·for·a·byte.</div><div·class="ttdef"><b>Definition</b>·<a·href="a00104_source.html#l00080">SILLYBase.h:80</a></div></div> | ||
136 | <div·class="ttc"·id="aa00129_html_a33a519b8226fd733e2ef294f894411f9"><div·class="ttname"><a·href="a00129.html#a33a519b8226fd733e2ef294f894411f9">SILLY::SILLYCleanup</a></div><div·class="ttdeci">void·SILLYCleanup()</div><div·class="ttdoc">Cleanup·SILLY·library·internal.</div><div·class="ttdef"><b>Definition</b>·<a·href="a00014_source.html#l00100">SILLYImageLoaderManager.cpp:100</a></div></div> | ||
137 | <div·class="ttc"·id="aa00129_html_a60883d4958a60b91661e97027a85072a"><div·class="ttname"><a·href="a00129.html#a60883d4958a60b91661e97027a85072a">SILLY::PixelFormat</a></div><div·class="ttdeci">PixelFormat</div><div·class="ttdoc">List·all·pixel·format·supported.</div><div·class="ttdef"><b>Definition</b>·<a·href="a00 | 119 | <div·class="ttc"·id="aa00129_html_a60883d4958a60b91661e97027a85072a"><div·class="ttname"><a·href="a00129.html#a60883d4958a60b91661e97027a85072a">SILLY::PixelFormat</a></div><div·class="ttdeci">PixelFormat</div><div·class="ttdoc">List·all·pixel·format·supported.</div><div·class="ttdef"><b>Definition</b>·<a·href="a00044_source.html#l00059">SILLYBase.h:60</a></div></div> |
138 | <div·class="ttc"·id="aa00129_html_a61417e4f09222c4b4b96bfc1cd2b62fe"><div·class="ttname"><a·href="a00129.html#a61417e4f09222c4b4b96bfc1cd2b62fe">SILLY::SILLYInit</a></div><div·class="ttdeci">bool·SILLYInit()</div><div·class="ttdoc">Initialize·the·SILLY·Library.</div><div·class="ttdef"><b>Definition</b>·<a·href="a00014_source.html#l00087">SILLYImageLoaderManager.cpp:87</a></div></div> | ||
139 | <div·class="ttc"·id="aa00129_html_aebdd89f22790687ac264c1abd9f7fd38"><div·class="ttname"><a·href="a00129.html#aebdd89f22790687ac264c1abd9f7fd38">SILLY::PixelOrigin</a></div><div·class="ttdeci">PixelOrigin</div><div·class="ttdoc">List·all·pixel·origin·supported.</div><div·class="ttdef"><b>Definition</b>·<a·href="a00 | 120 | <div·class="ttc"·id="aa00129_html_aebdd89f22790687ac264c1abd9f7fd38"><div·class="ttname"><a·href="a00129.html#aebdd89f22790687ac264c1abd9f7fd38">SILLY::PixelOrigin</a></div><div·class="ttdeci">PixelOrigin</div><div·class="ttdoc">List·all·pixel·origin·supported.</div><div·class="ttdef"><b>Definition</b>·<a·href="a00044_source.html#l00070">SILLYBase.h:71</a></div></div> |
121 | <div·class="ttc"·id="aa00957_html"><div·class="ttname"><a·href="a00957.html">SILLY::PNGImageLoader</a></div><div·class="ttdoc">Loader·for·PNG·Image.</div><div·class="ttdef"><b>Definition</b>·<a·href="a00104_source.html#l00042">SILLYPNGImageLoader.h:43</a></div></div> | ||
122 | <div·class="ttc"·id="aa00957_html_a1f83c2e6e4960b05c1b5bd61b0635f8c"><div·class="ttname"><a·href="a00957.html#a1f83c2e6e4960b05c1b5bd61b0635f8c">SILLY::PNGImageLoader::loadHeader</a></div><div·class="ttdeci">ImageContext·*·loadHeader(PixelFormat·&formatSource,·DataSource·*data)</div><div·class="ttdoc">Parse·the·header·of·the·image·and·fill·the·header·struct.</div><div·class="ttdef"><b>Definition</b>·<a·href="a00029_source.html#l00088">SILLYPNGImageLoader.cpp:88</a></div></div> | ||
123 | <div·class="ttc"·id="aa00957_html_a4a4d6df5dcc08cb493855fcfc1956fca"><div·class="ttname"><a·href="a00957.html#a4a4d6df5dcc08cb493855fcfc1956fca">SILLY::PNGImageLoader::loadImageData</a></div><div·class="ttdeci">bool·loadImageData(PixelOrigin·origin,·DataSource·*data,·ImageContext·*context)</div><div·class="ttdoc">Parse·the·pixels·data·of·the·image·and·fill·the·header·struct.</div><div·class="ttdef"><b>Definition</b>·<a·href="a00029_source.html#l00154">SILLYPNGImageLoader.cpp:154</a></div></div> | ||
124 | <div·class="ttc"·id="aa00969_html"><div·class="ttname"><a·href="a00969.html">SILLY::DataSource</a></div><div·class="ttdoc">This·is·an·abstract·class·used·to·provide·data·to·the·loader.</div><div·class="ttdef"><b>Definition</b>·<a·href="a00083_source.html#l00046">SILLYDataSource.h:47</a></div></div> | ||
125 | <div·class="ttc"·id="aa00981_html"><div·class="ttname"><a·href="a00981.html">SILLY::ImageContext</a></div><div·class="ttdoc">Store·the·data·needed·by·an·ImageLoader·object·during·the·parsing·of·an·image.</div><div·class="ttdef"><b>Definition</b>·<a·href="a00074_source.html#l00043">SILLYImageContext.h:44</a></div></div> | ||
126 | <div·class="ttc"·id="aa00985_html"><div·class="ttname"><a·href="a00985.html">SILLY::ImageLoader</a></div><div·class="ttdoc">This·is·an·abstract·class·that·define·the·interface·of·all·image·loader.</div><div·class="ttdef"><b>Definition</b>·<a·href="a00071_source.html#l00046">SILLYImageLoader.h:47</a></div></div> | ||
Max diff block lines reached; 271/25155 bytes (1.08%) of diff not shown. |
Offset 1, 19 lines modified | Offset 1, 20 lines modified | ||
1 | Simple·Image·Loading·LibrarY 0.1.0 | 1 | Simple·Image·Loading·LibrarY 0.1.0 |
2 | ····*·_\x8b_\x8u_\x8i_\x8l_\x8d | 2 | ····*·_\x8b_\x8u_\x8i_\x8l_\x8d |
3 | ····*·_\x8r_\x8e_\x8p_\x8r_\x8o_\x8d_\x8u_\x8c_\x8i_\x8b_\x8l_\x8e_\x8-_\x8p_\x8a_\x8t_\x8h | 3 | ····*·_\x8r_\x8e_\x8p_\x8r_\x8o_\x8d_\x8u_\x8c_\x8i_\x8b_\x8l_\x8e_\x8-_\x8p_\x8a_\x8t_\x8h |
4 | ····*·_\x8s_\x8i_\x8l_\x8l_\x8y_\x8-_\x80_\x8._\x81_\x8._\x80 | 4 | ····*·_\x8s_\x8i_\x8l_\x8l_\x8y_\x8-_\x80_\x8._\x81_\x8._\x80 |
5 | ····*·_\x8i_\x8n_\x8c_\x8l_\x8u_\x8d_\x8e | 5 | ····*·_\x8i_\x8n_\x8c_\x8l_\x8u_\x8d_\x8e |
6 | 6 | ····*·_.l_.o_.a_.d_.e_.r_.s | |
7 | SILLYPNGImageLoader.h | ||
7 | 1/*********************************************************************** | 8 | 1/*********************************************************************** |
8 | 2·filename:·SILLY | 9 | 2·filename:·SILLYPNGImageLoader.h |
9 | 3·created:· | 10 | 3·created:·11·Jun·2006 |
10 | 4·author:·Olivier·Delannoy | 11 | 4·author:·Olivier·Delannoy |
11 | 5 | 12 | 5 |
12 | 6·purpose:· | 13 | 6·purpose:·Declaration·of·the·PNGImageLoader·class |
13 | 7*************************************************************************/ | 14 | 7*************************************************************************/ |
14 | 8/*************************************************************************** | 15 | 8/*************************************************************************** |
15 | 9·*·Copyright·(C)·2004·-·2006·Paul·D·Turner·&·The·CEGUI·Development·Team | 16 | 9·*·Copyright·(C)·2004·-·2006·Paul·D·Turner·&·The·CEGUI·Development·Team |
16 | 10·* | 17 | 10·* |
17 | 11·*·Permission·is·hereby·granted,·free·of·charge,·to·any·person·obtaining | 18 | 11·*·Permission·is·hereby·granted,·free·of·charge,·to·any·person·obtaining |
18 | 12·*·a·copy·of·this·software·and·associated·documentation·files·(the | 19 | 12·*·a·copy·of·this·software·and·associated·documentation·files·(the |
19 | 13·*·"Software"),·to·deal·in·the·Software·without·restriction,·including | 20 | 13·*·"Software"),·to·deal·in·the·Software·without·restriction,·including |
Offset 29, 81 lines modified | Offset 30, 73 lines modified | ||
29 | 23·*·EXPRESS·OR·IMPLIED,·INCLUDING·BUT·NOT·LIMITED·TO·THE·WARRANTIES·OF | 30 | 23·*·EXPRESS·OR·IMPLIED,·INCLUDING·BUT·NOT·LIMITED·TO·THE·WARRANTIES·OF |
30 | 24·*·MERCHANTABILITY,·FITNESS·FOR·A·PARTICULAR·PURPOSE·AND·NONINFRINGEMENT. | 31 | 24·*·MERCHANTABILITY,·FITNESS·FOR·A·PARTICULAR·PURPOSE·AND·NONINFRINGEMENT. |
31 | 25·*·IN·NO·EVENT·SHALL·THE·AUTHORS·BE·LIABLE·FOR·ANY·CLAIM,·DAMAGES·OR | 32 | 25·*·IN·NO·EVENT·SHALL·THE·AUTHORS·BE·LIABLE·FOR·ANY·CLAIM,·DAMAGES·OR |
32 | 26·*·OTHER·LIABILITY,·WHETHER·IN·AN·ACTION·OF·CONTRACT,·TORT·OR·OTHERWISE, | 33 | 26·*·OTHER·LIABILITY,·WHETHER·IN·AN·ACTION·OF·CONTRACT,·TORT·OR·OTHERWISE, |
33 | 27·*·ARISING·FROM,·OUT·OF·OR·IN·CONNECTION·WITH·THE·SOFTWARE·OR·THE·USE·OR | 34 | 27·*·ARISING·FROM,·OUT·OF·OR·IN·CONNECTION·WITH·THE·SOFTWARE·OR·THE·USE·OR |
34 | 28·*·OTHER·DEALINGS·IN·THE·SOFTWARE. | 35 | 28·*·OTHER·DEALINGS·IN·THE·SOFTWARE. |
35 | 29·***************************************************************************/ | 36 | 29·***************************************************************************/ |
36 | 30#ifndef·_SILLY | 37 | 30#ifndef·_SILLYPNGImageLoader_h_ |
37 | 31#define·_SILLY | 38 | 31#define·_SILLYPNGImageLoader_h_ |
38 | 32#include·<cassert> | ||
39 | 33#include·<cstddef> | ||
40 | 34 | ||
41 | 35#if·defined(USE_SILLYOPTIONS_H) | ||
42 | 3 | 39 | 32#include·"SILLYBase.h" |
43 | 37#endif | ||
44 | 38 | ||
45 | 39#if·defined(_WIN32)·||·defined(__WIN32__) | ||
46 | 40#·undef·SILLY_OPT_INLINE·//·No·inlining | ||
47 | 41#·undef·SILLY_BE·//·Little·Endian | ||
48 | 42#·ifdef·SILLY_EXPORTS | ||
49 | 43#·define·SILLY_EXPORT·__declspec(dllexport) | ||
50 | 44#·else | ||
51 | 45#·define·SILLY_EXPORT·__declspec(dllimport) | ||
52 | 46#·endif | ||
53 | 47#else | ||
54 | 48#·define·SILLY_EXPORT | ||
55 | 40 | 33#include·"SILLYImageLoader.h" | |
41 | 34#include·"SILLYDataSource.h" | ||
42 | 35//·Start·of·section·namespace·SILLY | ||
43 | 36namespace·_\x8S_\x8I_\x8L_\x8L_\x8Y | ||
44 | 37{ | ||
45 | _\x84_\x82class·_\x8P_\x8N_\x8G_\x8I_\x8m_\x8a_\x8g_\x8e_\x8L_\x8o_\x8a_\x8d_\x8e_\x8r·:·public·_\x8I_\x8m_\x8a_\x8g_\x8e_\x8L_\x8o_\x8a_\x8d_\x8e_\x8r | ||
46 | 43{ | ||
47 | 44public: | ||
48 | 45·_\x8P_\x8N_\x8G_\x8I_\x8m_\x8a_\x8g_\x8e_\x8L_\x8o_\x8a_\x8d_\x8e_\x8r(); | ||
49 | 46 | ||
50 | 47·_\x8~_\x8P_\x8N_\x8G_\x8I_\x8m_\x8a_\x8g_\x8e_\x8L_\x8o_\x8a_\x8d_\x8e_\x8r(); | ||
51 | 48 | ||
52 | 49·_\x8I_\x8m_\x8a_\x8g_\x8e_\x8C_\x8o_\x8n_\x8t_\x8e_\x8x_\x8t*·_\x8l_\x8o_\x8a_\x8d_\x8H_\x8e_\x8a_\x8d_\x8e_\x8r(_\x8P_\x8i_\x8x_\x8e_\x8l_\x8F_\x8o_\x8r_\x8m_\x8a_\x8t&·formatSource,·_\x8D_\x8a_\x8t_\x8a_\x8S_\x8o_\x8u_\x8r_\x8c_\x8e*·data); | ||
56 | 50 | 53 | 50 |
54 | 51·bool·_\x8l_\x8o_\x8a_\x8d_\x8I_\x8m_\x8a_\x8g_\x8e_\x8D_\x8a_\x8t_\x8a(_\x8P_\x8i_\x8x_\x8e_\x8l_\x8O_\x8r_\x8i_\x8g_\x8i_\x8n·origin, | ||
55 | 52·_\x8D_\x8a_\x8t_\x8a_\x8S_\x8o_\x8u_\x8r_\x8c_\x8e*·data, | ||
56 | 53·_\x8I_\x8m_\x8a_\x8g_\x8e_\x8C_\x8o_\x8n_\x8t_\x8e_\x8x_\x8t*·context); | ||
57 | 54private: | ||
58 | 55 | ||
57 | 51//·Start·of·section·namespace·SILLY | ||
58 | 52namespace·_\x8S_\x8I_\x8L_\x8L_\x8Y | ||
59 | 53{ | ||
60 | 54 | ||
61 | _\x85_\x89enum·_\x8P_\x8i_\x8x_\x8e_\x8l_\x8F_\x8o_\x8r_\x8m_\x8a_\x8t | ||
62 | 60{ | ||
63 | 61·PF_A1B5G5R5,·//<!·16·bits,·pixel·format·is·A1R5G5B5·(GGGBBBBB,ARRRRRGG·on | ||
64 | disk) | ||
65 | 62·PF_RGB,·//<!·24·bits,·pixel·format·is·8·bits·for·R,·G,·B | ||
66 | 63·PF_RGBA,·//<!·32·bits,·pixel·format·is·8·bits·for·R,·G,·B·and·A·channel | ||
67 | 64·PF_ORIGIN,·//<!·This·format·is·used·when·the·input·storage·use·a·specific | ||
68 | pixel·format | ||
69 | 59 | 56}; | |
60 | 57 | ||
61 | 58 | ||
70 | _\x87_\x80enum·_\x8P_\x8i_\x8x_\x8e_\x8l_\x8O_\x8r_\x8i_\x8g_\x8i_\x8n | ||
71 | 71{ | ||
72 | 72·PO_TOP_LEFT,·//<!·The·resulting·image·origine·is·Top·Left | ||
73 | 73·PO_BOTTOM_LEFT,·//<!·The·resulting·image·origine·is·Bottom·Left | ||
74 | 74}; | ||
75 | 75 | ||
76 | _\x88_\x80typedef·unsigned·char·_\x8b_\x8y_\x8t_\x8e; | ||
77 | 88bool·SILLY_EXPORT·_\x8S_\x8I_\x8L_\x8L_\x8Y_\x8I_\x8n_\x8i_\x8t(); | ||
78 | 89 | ||
79 | 94void·SILLY_EXPORT·_\x8S_\x8I_\x8L_\x8L_\x8Y_\x8C_\x8l_\x8e_\x8a_\x8n_\x8u_\x8p(); | ||
80 | 95 | ||
81 | 62 | 59}·//·End·of·section·namespace·SILLY | |
82 | 63 | 60 | |
64 | 61//·Inclue·inline·function·when·needed | ||
65 | 62#ifdef·SILLY_OPT_INLINE | ||
66 | 63#include·"SILLYPNGImageLoader.icpp" | ||
67 | 64#endif | ||
68 | 65 | ||
83 | 69 | 66#endif·//·end·of·guard·_SILLYPNGImageLoader_h_ | |
84 | 99 | ||
85 | _\x8S_\x8I_\x8L_\x8L_\x8Y | 70 | _\x8S_\x8I_\x8L_\x8L_\x8Y |
86 | Simple·Image·Loading·LibrarY·namespace. | 71 | Simple·Image·Loading·LibrarY·namespace. |
87 | D\x8De\x8ef\x8fi\x8in\x8ni\x8it\x8ti\x8io\x8on\x8n·_\x8S_\x8I_\x8L_\x8L_\x8Y_\x8J_\x8P_\x8G_\x8I_\x8m_\x8a_\x8g_\x8e_\x8C_\x8o_\x8n_\x8t_\x8e_\x8x_\x8t_\x8._\x8c_\x8p_\x8p_\x8:_\x84_\x86 | 72 | D\x8De\x8ef\x8fi\x8in\x8ni\x8it\x8ti\x8io\x8on\x8n·_\x8S_\x8I_\x8L_\x8L_\x8Y_\x8J_\x8P_\x8G_\x8I_\x8m_\x8a_\x8g_\x8e_\x8C_\x8o_\x8n_\x8t_\x8e_\x8x_\x8t_\x8._\x8c_\x8p_\x8p_\x8:_\x84_\x86 |
88 | _\x8S_\x8I_\x8L_\x8L_\x8Y_\x8:_\x8:_\x8b_\x8y_\x8t_\x8e | ||
89 | unsigned·char·byte | ||
90 | Typename·for·a·byte. | ||
91 | D\x8De\x8ef\x8fi\x8in\x8ni\x8it\x8ti\x8io\x8on\x8n·_\x8S_\x8I_\x8L_\x8L_\x8Y_\x8B_\x8a_\x8s_\x8e_\x8._\x8h_\x8:_\x88_\x80 | ||
92 | _\x8S_\x8I_\x8L_\x8L_\x8Y_\x8:_\x8:_\x8S_\x8I_\x8L_\x8L_\x8Y_\x8C_\x8l_\x8e_\x8a_\x8n_\x8u_\x8p | ||
93 | void·SILLYCleanup() | ||
94 | Cleanup·SILLY·library·internal. | ||
95 | D\x8De\x8ef\x8fi\x8in\x8ni\x8it\x8ti\x8io\x8on\x8n·_\x8S_\x8I_\x8L_\x8L_\x8Y_\x8I_\x8m_\x8a_\x8g_\x8e_\x8L_\x8o_\x8a_\x8d_\x8e_\x8r_\x8M_\x8a_\x8n_\x8a_\x8g_\x8e_\x8r_\x8._\x8c_\x8p_\x8p_\x8:_\x81_\x80_\x80 | ||
96 | _\x8S_\x8I_\x8L_\x8L_\x8Y_\x8:_\x8:_\x8P_\x8i_\x8x_\x8e_\x8l_\x8F_\x8o_\x8r_\x8m_\x8a_\x8t | 73 | _\x8S_\x8I_\x8L_\x8L_\x8Y_\x8:_\x8:_\x8P_\x8i_\x8x_\x8e_\x8l_\x8F_\x8o_\x8r_\x8m_\x8a_\x8t |
97 | PixelFormat | 74 | PixelFormat |
98 | List·all·pixel·format·supported. | 75 | List·all·pixel·format·supported. |
99 | D\x8De\x8ef\x8fi\x8in\x8ni\x8it\x8ti\x8io\x8on\x8n·_\x8S_\x8I_\x8L_\x8L_\x8Y_\x8B_\x8a_\x8s_\x8e_\x8._\x8h_\x8:_\x86_\x80 | 76 | D\x8De\x8ef\x8fi\x8in\x8ni\x8it\x8ti\x8io\x8on\x8n·_\x8S_\x8I_\x8L_\x8L_\x8Y_\x8B_\x8a_\x8s_\x8e_\x8._\x8h_\x8:_\x86_\x80 |
100 | _\x8S_\x8I_\x8L_\x8L_\x8Y_\x8:_\x8:_\x8S_\x8I_\x8L_\x8L_\x8Y_\x8I_\x8n_\x8i_\x8t | ||
101 | bool·SILLYInit() | ||
102 | Initialize·the·SILLY·Library. | ||
103 | D\x8De\x8ef\x8fi\x8in\x8ni\x8it\x8ti\x8io\x8on\x8n·_\x8S_\x8I_\x8L_\x8L_\x8Y_\x8I_\x8m_\x8a_\x8g_\x8e_\x8L_\x8o_\x8a_\x8d_\x8e_\x8r_\x8M_\x8a_\x8n_\x8a_\x8g_\x8e_\x8r_\x8._\x8c_\x8p_\x8p_\x8:_\x88_\x87 | ||
104 | _\x8S_\x8I_\x8L_\x8L_\x8Y_\x8:_\x8:_\x8P_\x8i_\x8x_\x8e_\x8l_\x8O_\x8r_\x8i_\x8g_\x8i_\x8n | 77 | _\x8S_\x8I_\x8L_\x8L_\x8Y_\x8:_\x8:_\x8P_\x8i_\x8x_\x8e_\x8l_\x8O_\x8r_\x8i_\x8g_\x8i_\x8n |
105 | PixelOrigin | 78 | PixelOrigin |
106 | List·all·pixel·origin·supported. | 79 | List·all·pixel·origin·supported. |
107 | D\x8De\x8ef\x8fi\x8in\x8ni\x8it\x8ti\x8io\x8on\x8n·_\x8S_\x8I_\x8L_\x8L_\x8Y_\x8B_\x8a_\x8s_\x8e_\x8._\x8h_\x8:_\x87_\x81 | 80 | D\x8De\x8ef\x8fi\x8in\x8ni\x8it\x8ti\x8io\x8on\x8n·_\x8S_\x8I_\x8L_\x8L_\x8Y_\x8B_\x8a_\x8s_\x8e_\x8._\x8h_\x8:_\x87_\x81 |
81 | _\x8S_\x8I_\x8L_\x8L_\x8Y_\x8:_\x8:_\x8P_\x8N_\x8G_\x8I_\x8m_\x8a_\x8g_\x8e_\x8L_\x8o_\x8a_\x8d_\x8e_\x8r | ||
82 | Loader·for·PNG·Image. | ||
83 | D\x8De\x8ef\x8fi\x8in\x8ni\x8it\x8ti\x8io\x8on\x8n·_\x8S_\x8I_\x8L_\x8L_\x8Y_\x8P_\x8N_\x8G_\x8I_\x8m_\x8a_\x8g_\x8e_\x8L_\x8o_\x8a_\x8d_\x8e_\x8r_\x8._\x8h_\x8:_\x84_\x83 | ||
Max diff block lines reached; 53/6835 bytes (0.78%) of diff not shown. |
Offset 1, 15 lines modified | Offset 1, 15 lines modified | ||
1 | <!DOCTYPE·html·PUBLIC·"-//W3C//DTD·XHTML·1.0·Transitional//EN"·"https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> | 1 | <!DOCTYPE·html·PUBLIC·"-//W3C//DTD·XHTML·1.0·Transitional//EN"·"https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> |
2 | <html·xmlns="http://www.w3.org/1999/xhtml"·lang="en-US"> | 2 | <html·xmlns="http://www.w3.org/1999/xhtml"·lang="en-US"> |
3 | <head> | 3 | <head> |
4 | <meta·http-equiv="Content-Type"·content="text/xhtml;charset=UTF-8"/> | 4 | <meta·http-equiv="Content-Type"·content="text/xhtml;charset=UTF-8"/> |
5 | <meta·http-equiv="X-UA-Compatible"·content="IE=11"/> | 5 | <meta·http-equiv="X-UA-Compatible"·content="IE=11"/> |
6 | <meta·name="generator"·content="Doxygen·1.9.8"/> | 6 | <meta·name="generator"·content="Doxygen·1.9.8"/> |
7 | <meta·name="viewport"·content="width=device-width,·initial-scale=1"/> | 7 | <meta·name="viewport"·content="width=device-width,·initial-scale=1"/> |
8 | <title>Simple·Image·Loading·LibrarY:·/build/reproducible-path/silly-0.1.0/include/SILLYImage | 8 | <title>Simple·Image·Loading·LibrarY:·/build/reproducible-path/silly-0.1.0/include/loaders/SILLYJPGImageContext.h·Source·File</title> |
9 | <link·href="tabs.css"·rel="stylesheet"·type="text/css"/> | 9 | <link·href="tabs.css"·rel="stylesheet"·type="text/css"/> |
10 | <script·type="text/javascript"·src="jquery.js"></script> | 10 | <script·type="text/javascript"·src="jquery.js"></script> |
11 | <script·type="text/javascript"·src="dynsections.js"></script> | 11 | <script·type="text/javascript"·src="dynsections.js"></script> |
12 | <link·href="doxygen.css"·rel="stylesheet"·type="text/css"·/> | 12 | <link·href="doxygen.css"·rel="stylesheet"·type="text/css"·/> |
13 | </head> | 13 | </head> |
14 | <body> | 14 | <body> |
15 | <div·id="top"><!--·do·not·remove·this·div,·it·is·closed·by·doxygen!·--> | 15 | <div·id="top"><!--·do·not·remove·this·div,·it·is·closed·by·doxygen!·--> |
Offset 40, 68 lines modified | Offset 40, 98 lines modified | ||
40 | <script·type="text/javascript"> | 40 | <script·type="text/javascript"> |
41 | /*·@license·magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt·MIT·*/ | 41 | /*·@license·magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt·MIT·*/ |
42 | $(document).ready(function()·{·init_codefold(0);·}); | 42 | $(document).ready(function()·{·init_codefold(0);·}); |
43 | /*·@license-end·*/ | 43 | /*·@license-end·*/ |
44 | </script> | 44 | </script> |
45 | <div·id="nav-path"·class="navpath"> | 45 | <div·id="nav-path"·class="navpath"> |
46 | ··<ul> | 46 | ··<ul> |
47 | <li·class="navelem"><a·class="el"·href="dir_4fef79e7177ba769987a8da36c892c5f.html">build</a></li><li·class="navelem"><a·class="el"·href="dir_9def6061848686aab7e6212bb499d615.html">reproducible-path</a></li><li·class="navelem"><a·class="el"·href="dir_74170d5b58cefb7cb5a86fc552b183a3.html">silly-0.1.0</a></li><li·class="navelem"><a·class="el"·href="dir_0d87e2e7ddaae8a2a8572c0afc59fe0d.html">include</a></li>··</ul> | 47 | <li·class="navelem"><a·class="el"·href="dir_4fef79e7177ba769987a8da36c892c5f.html">build</a></li><li·class="navelem"><a·class="el"·href="dir_9def6061848686aab7e6212bb499d615.html">reproducible-path</a></li><li·class="navelem"><a·class="el"·href="dir_74170d5b58cefb7cb5a86fc552b183a3.html">silly-0.1.0</a></li><li·class="navelem"><a·class="el"·href="dir_0d87e2e7ddaae8a2a8572c0afc59fe0d.html">include</a></li><li·class="navelem"><a·class="el"·href="dir_7cea72c962538e8359f822070f2512f7.html">loaders</a></li>··</ul> |
48 | </div> | 48 | </div> |
49 | </div><!--·top·--> | 49 | </div><!--·top·--> |
50 | <div·class="header"> | 50 | <div·class="header"> |
51 | ··<div·class="headertitle"><div·class="title">SILLYImage | 51 | ··<div·class="headertitle"><div·class="title">SILLYJPGImageContext.h</div></div> |
52 | </div><!--header--> | 52 | </div><!--header--> |
53 | <div·class="contents"> | 53 | <div·class="contents"> |
54 | <div·class="fragment"><div·class="line"><a·id="l00001"·name="l00001"></a><span·class="lineno">····1</span>/***********************************************************************</div> | 54 | <div·class="fragment"><div·class="line"><a·id="l00001"·name="l00001"></a><span·class="lineno">····1</span><span·class="comment">/***********************************************************************</span></div> |
55 | <div·class="line"><a·id="l00002"·name="l00002"></a><span·class="lineno">····2</span>····filename:···Image | 55 | <div·class="line"><a·id="l00002"·name="l00002"></a><span·class="lineno">····2</span><span·class="comment">····filename:···SILLYJPGImageContext.h</span></div> |
56 | <div·class="line"><a·id="l00003"·name="l00003"></a><span·class="lineno">····3</span>····created:····1 | 56 | <div·class="line"><a·id="l00003"·name="l00003"></a><span·class="lineno">····3</span><span·class="comment">····created:····11·Jun·2006</span></div> |
57 | <div·class="line"><a·id="l00004"·name="l00004"></a><span·class="lineno">····4</span>····author:·····Olivier·Delannoy</div> | 57 | <div·class="line"><a·id="l00004"·name="l00004"></a><span·class="lineno">····4</span><span·class="comment">····author:·····Olivier·Delannoy</span></div> |
58 | <div·class="line"><a·id="l00005"·name="l00005"></a><span·class="lineno">····5</span>·</div> | 58 | <div·class="line"><a·id="l00005"·name="l00005"></a><span·class="lineno">····5</span><span·class="comment"></span>·</div> |
59 | <div·class="line"><a·id="l00006"·name="l00006"></a><span·class="lineno">····6</span>····purpose:···· | 59 | <div·class="line"><a·id="l00006"·name="l00006"></a><span·class="lineno">····6</span><span·class="comment">····purpose:····Declaration·of·the·JPGImageContext·class·</span></div> |
60 | <div·class="line"><a·id="l00007"·name="l00007"></a><span·class="lineno">····7</span>*************************************************************************/</div> | 60 | <div·class="line"><a·id="l00007"·name="l00007"></a><span·class="lineno">····7</span><span·class="comment">*************************************************************************/</span></div> |
61 | <div·class="line"><a·id="l00008"·name="l00008"></a><span·class="lineno">····8</span>/***************************************************************************</div> | 61 | <div·class="line"><a·id="l00008"·name="l00008"></a><span·class="lineno">····8</span><span·class="comment">/***************************************************************************</span></div> |
62 | <div·class="line"><a·id="l00009"·name="l00009"></a><span·class="lineno">····9</span>·*···Copyright·(C)·2004·-·2006·Paul·D·Turner·&·The·CEGUI·Development·Team</div> | 62 | <div·class="line"><a·id="l00009"·name="l00009"></a><span·class="lineno">····9</span><span·class="comment">·*···Copyright·(C)·2004·-·2006·Paul·D·Turner·&·The·CEGUI·Development·Team</span></div> |
63 | <div·class="line"><a·id="l00010"·name="l00010"></a><span·class="lineno">···10</span>·*</div> | 63 | <div·class="line"><a·id="l00010"·name="l00010"></a><span·class="lineno">···10</span><span·class="comment">·*</span></div> |
64 | <div·class="line"><a·id="l00011"·name="l00011"></a><span·class="lineno">···11</span>·*···Permission·is·hereby·granted,·free·of·charge,·to·any·person·obtaining</div> | 64 | <div·class="line"><a·id="l00011"·name="l00011"></a><span·class="lineno">···11</span><span·class="comment">·*···Permission·is·hereby·granted,·free·of·charge,·to·any·person·obtaining</span></div> |
65 | <div·class="line"><a·id="l00012"·name="l00012"></a><span·class="lineno">···12</span>·*···a·copy·of·this·software·and·associated·documentation·files·(the</div> | 65 | <div·class="line"><a·id="l00012"·name="l00012"></a><span·class="lineno">···12</span><span·class="comment">·*···a·copy·of·this·software·and·associated·documentation·files·(the</span></div> |
66 | <div·class="line"><a·id="l00013"·name="l00013"></a><span·class="lineno">···13</span>·*···"Software"),·to·deal·in·the·Software·without·restriction,·including</div> | 66 | <div·class="line"><a·id="l00013"·name="l00013"></a><span·class="lineno">···13</span><span·class="comment">·*···"Software"),·to·deal·in·the·Software·without·restriction,·including</span></div> |
67 | <div·class="line"><a·id="l00014"·name="l00014"></a><span·class="lineno">···14</span>·*···without·limitation·the·rights·to·use,·copy,·modify,·merge,·publish,</div> | 67 | <div·class="line"><a·id="l00014"·name="l00014"></a><span·class="lineno">···14</span><span·class="comment">·*···without·limitation·the·rights·to·use,·copy,·modify,·merge,·publish,</span></div> |
68 | <div·class="line"><a·id="l00015"·name="l00015"></a><span·class="lineno">···15</span>·*···distribute,·sublicense,·and/or·sell·copies·of·the·Software,·and·to</div> | 68 | <div·class="line"><a·id="l00015"·name="l00015"></a><span·class="lineno">···15</span><span·class="comment">·*···distribute,·sublicense,·and/or·sell·copies·of·the·Software,·and·to</span></div> |
69 | <div·class="line"><a·id="l00016"·name="l00016"></a><span·class="lineno">···16</span>·*···permit·persons·to·whom·the·Software·is·furnished·to·do·so,·subject·to</div> | 69 | <div·class="line"><a·id="l00016"·name="l00016"></a><span·class="lineno">···16</span><span·class="comment">·*···permit·persons·to·whom·the·Software·is·furnished·to·do·so,·subject·to</span></div> |
70 | <div·class="line"><a·id="l00017"·name="l00017"></a><span·class="lineno">···17</span>·*···the·following·conditions:</div> | 70 | <div·class="line"><a·id="l00017"·name="l00017"></a><span·class="lineno">···17</span><span·class="comment">·*···the·following·conditions:</span></div> |
71 | <div·class="line"><a·id="l00018"·name="l00018"></a><span·class="lineno">···18</span>·*</div> | 71 | <div·class="line"><a·id="l00018"·name="l00018"></a><span·class="lineno">···18</span><span·class="comment">·*</span></div> |
72 | <div·class="line"><a·id="l00019"·name="l00019"></a><span·class="lineno">···19</span>·*···The·above·copyright·notice·and·this·permission·notice·shall·be</div> | 72 | <div·class="line"><a·id="l00019"·name="l00019"></a><span·class="lineno">···19</span><span·class="comment">·*···The·above·copyright·notice·and·this·permission·notice·shall·be</span></div> |
73 | <div·class="line"><a·id="l00020"·name="l00020"></a><span·class="lineno">···20</span>·*···included·in·all·copies·or·substantial·portions·of·the·Software.</div> | 73 | <div·class="line"><a·id="l00020"·name="l00020"></a><span·class="lineno">···20</span><span·class="comment">·*···included·in·all·copies·or·substantial·portions·of·the·Software.</span></div> |
74 | <div·class="line"><a·id="l00021"·name="l00021"></a><span·class="lineno">···21</span>·*</div> | 74 | <div·class="line"><a·id="l00021"·name="l00021"></a><span·class="lineno">···21</span><span·class="comment">·*</span></div> |
75 | <div·class="line"><a·id="l00022"·name="l00022"></a><span·class="lineno">···22</span>·*···THE·SOFTWARE·IS·PROVIDED·"AS·IS",·WITHOUT·WARRANTY·OF·ANY·KIND,</div> | 75 | <div·class="line"><a·id="l00022"·name="l00022"></a><span·class="lineno">···22</span><span·class="comment">·*···THE·SOFTWARE·IS·PROVIDED·"AS·IS",·WITHOUT·WARRANTY·OF·ANY·KIND,</span></div> |
76 | <div·class="line"><a·id="l00023"·name="l00023"></a><span·class="lineno">···23</span>·*···EXPRESS·OR·IMPLIED,·INCLUDING·BUT·NOT·LIMITED·TO·THE·WARRANTIES·OF</div> | 76 | <div·class="line"><a·id="l00023"·name="l00023"></a><span·class="lineno">···23</span><span·class="comment">·*···EXPRESS·OR·IMPLIED,·INCLUDING·BUT·NOT·LIMITED·TO·THE·WARRANTIES·OF</span></div> |
77 | <div·class="line"><a·id="l00024"·name="l00024"></a><span·class="lineno">···24</span>·*···MERCHANTABILITY,·FITNESS·FOR·A·PARTICULAR·PURPOSE·AND·NONINFRINGEMENT.</div> | 77 | <div·class="line"><a·id="l00024"·name="l00024"></a><span·class="lineno">···24</span><span·class="comment">·*···MERCHANTABILITY,·FITNESS·FOR·A·PARTICULAR·PURPOSE·AND·NONINFRINGEMENT.</span></div> |
78 | <div·class="line"><a·id="l00025"·name="l00025"></a><span·class="lineno">···25</span>·*···IN·NO·EVENT·SHALL·THE·AUTHORS·BE·LIABLE·FOR·ANY·CLAIM,·DAMAGES·OR</div> | 78 | <div·class="line"><a·id="l00025"·name="l00025"></a><span·class="lineno">···25</span><span·class="comment">·*···IN·NO·EVENT·SHALL·THE·AUTHORS·BE·LIABLE·FOR·ANY·CLAIM,·DAMAGES·OR</span></div> |
79 | <div·class="line"><a·id="l00026"·name="l00026"></a><span·class="lineno">···26</span>·*···OTHER·LIABILITY,·WHETHER·IN·AN·ACTION·OF·CONTRACT,·TORT·OR·OTHERWISE,</div> | 79 | <div·class="line"><a·id="l00026"·name="l00026"></a><span·class="lineno">···26</span><span·class="comment">·*···OTHER·LIABILITY,·WHETHER·IN·AN·ACTION·OF·CONTRACT,·TORT·OR·OTHERWISE,</span></div> |
80 | <div·class="line"><a·id="l00027"·name="l00027"></a><span·class="lineno">···27</span>·*···ARISING·FROM,·OUT·OF·OR·IN·CONNECTION·WITH·THE·SOFTWARE·OR·THE·USE·OR</div> | 80 | <div·class="line"><a·id="l00027"·name="l00027"></a><span·class="lineno">···27</span><span·class="comment">·*···ARISING·FROM,·OUT·OF·OR·IN·CONNECTION·WITH·THE·SOFTWARE·OR·THE·USE·OR</span></div> |
81 | <div·class="line"><a·id="l00028"·name="l00028"></a><span·class="lineno">···28</span>·*···OTHER·DEALINGS·IN·THE·SOFTWARE.</div> | 81 | <div·class="line"><a·id="l00028"·name="l00028"></a><span·class="lineno">···28</span><span·class="comment">·*···OTHER·DEALINGS·IN·THE·SOFTWARE.</span></div> |
82 | <div·class="line"><a·id="l00029"·name="l00029"></a><span·class="lineno">···29</span>·***************************************************************************/</div> | 82 | <div·class="line"><a·id="l00029"·name="l00029"></a><span·class="lineno">···29</span><span·class="comment">·***************************************************************************/</span></div> |
83 | <div·class="line"><a·id="l00030"·name="l00030"></a><span·class="lineno">···30</span>·</div> | 83 | <div·class="line"><a·id="l00030"·name="l00030"></a><span·class="lineno">···30</span><span·class="preprocessor">#ifndef·_SILLYJPGImageContext_h_·</span></div> |
84 | <div·class="line"><a·id="l00031"·name="l00031"></a><span·class="lineno">···31</span><span·class="preprocessor">#define·_SILLYJPGImageContext_h_</span></div> | ||
85 | <div·class="line"><a·id="l00032"·name="l00032"></a><span·class="lineno">···32</span><span·class="preprocessor">#include·"SILLYBase.h"</span>·</div> | ||
86 | <div·class="line"><a·id="l00033"·name="l00033"></a><span·class="lineno">···33</span><span·class="preprocessor">#include·"SILLYImageContext.h"</span>·</div> | ||
87 | <div·class="line"><a·id="l00034"·name="l00034"></a><span·class="lineno">···34</span><span·class="preprocessor">#include·"SILLYDataSource.h"</span>·</div> | ||
84 | <div·class="line"><a·id="l0003 | 88 | <div·class="line"><a·id="l00035"·name="l00035"></a><span·class="lineno">···35</span><span·class="comment">//·Start·of·section·namespace·SILLY·</span></div> |
85 | <div·class="line"><a·id="l00032"·name="l00032"></a><span·class="lineno">···32</span>namespace·SILLY</div> | ||
86 | <div·class="line"><a·id="l00033"·name="l00033"></a><span·class="lineno">···33</span>{</div> | ||
87 | <div·class="line"><a·id="l00034"·name="l00034"></a><span·class="lineno">···34</span>inline·ImageLoader::ImageLoader(const·char*·name)</div> | ||
88 | <div·class="line"><a·id="l00035"·name="l00035"></a><span·class="lineno">···35</span>····:·d_name(name)</div> | ||
89 | <div·class="line"><a·id="l00036"·name="l00036"></a><span·class="lineno">···36</span> | 89 | <div·class="line"><a·id="l00036"·name="l00036"></a><span·class="lineno">···36</span><span·class="preprocessor">#include·<setjmp.h></span></div> |
90 | <div·class="line"><a·id="l00037"·name="l00037"></a><span·class="lineno">···37</span> | 90 | <div·class="line"><a·id="l00037"·name="l00037"></a><span·class="lineno">···37</span><span·class="preprocessor">#include·<stdio.h></span></div> |
91 | <div·class="line"><a·id="l00038"·name="l00038"></a><span·class="lineno">···38</span>inline·ImageLoader::~ImageLoader()</div> | ||
92 | <div·class="line"><a·id="l0003 | 91 | <div·class="line"><a·id="l00038"·name="l00038"></a><span·class="lineno">···38</span><span·class="preprocessor">#include·<string.h></span></div> |
92 | <div·class="line"><a·id="l00039"·name="l00039"></a><span·class="lineno">···39</span><span·class="keyword">extern</span>·<span·class="stringliteral">"C"</span>·</div> | ||
93 | <div·class="line"><a·id="l00040"·name="l00040"></a><span·class="lineno">···40</span> | 93 | <div·class="line"><a·id="l00040"·name="l00040"></a><span·class="lineno">···40</span>{</div> |
94 | <div·class="line"><a·id="l00041"·name="l00041"></a><span·class="lineno">···41</span> | 94 | <div·class="line"><a·id="l00041"·name="l00041"></a><span·class="lineno">···41</span><span·class="preprocessor">#include·<jpeglib.h></span></div> |
95 | <div·class="line"><a·id="l00042"·name="l00042"></a><span·class="lineno">···42</span> | 95 | <div·class="line"><a·id="l00042"·name="l00042"></a><span·class="lineno">···42</span>}</div> |
96 | <div·class="line"><a·id="l00043"·name="l00043"></a><span·class="lineno">···43</span>· | 96 | <div·class="line"><a·id="l00043"·name="l00043"></a><span·class="lineno">···43</span><span·class="keyword">namespace·</span><a·class="code·hl_namespace"·href="a00129.html">SILLY</a></div> |
97 | <div·class="line"><a·id="l00044"·name="l00044"></a><span·class="lineno">···44</span> | 97 | <div·class="line"><a·id="l00044"·name="l00044"></a><span·class="lineno">···44</span>{</div> |
98 | <div·class="line"><a·id="l00045"·name="l00045"></a><span·class="lineno">···45</span>·</div> | 98 | <div·class="line"><a·id="l00045"·name="l00045"></a><span·class="lineno">···45</span>·</div> |
99 | <div·class="foldopen"·id="foldopen00056"·data-start="{"·data-end="};"> | ||
100 | <div·class="line"><a·id="l00056"·name="l00056"></a><span·class="lineno"><a·class="line"·href="a00945.html">···56</a></span><span·class="keyword">class·</span><a·class="code·hl_class"·href="a00945.html">JPGImageContext</a>·:·<span·class="keyword">public</span>·<a·class="code·hl_class"·href="a00981.html">ImageContext</a></div> | ||
101 | <div·class="line"><a·id="l00057"·name="l00057"></a><span·class="lineno">···57</span>{</div> | ||
102 | <div·class="line"><a·id="l00058"·name="l00058"></a><span·class="lineno">···58</span><span·class="keyword">public</span>:</div> | ||
103 | <div·class="line"><a·id="l00059"·name="l00059"></a><span·class="lineno">···59</span>····<a·class="code·hl_class"·href="a00945.html">JPGImageContext</a>();</div> | ||
104 | <div·class="line"><a·id="l00060"·name="l00060"></a><span·class="lineno">···60</span>····<a·class="code·hl_class"·href="a00945.html">~JPGImageContext</a>();</div> | ||
105 | <div·class="line"><a·id="l00061"·name="l00061"></a><span·class="lineno">···61</span>·</div> | ||
106 | <div·class="line"><a·id="l00062"·name="l00062"></a><span·class="lineno">···62</span>····<span·class="keywordtype">void</span>·setImageSize();</div> | ||
107 | <div·class="line"><a·id="l00063"·name="l00063"></a><span·class="lineno">···63</span>····</div> | ||
108 | <div·class="line"><a·id="l00064"·name="l00064"></a><span·class="lineno">···64</span>····</div> | ||
109 | <div·class="line"><a·id="l00065"·name="l00065"></a><span·class="lineno">···65</span>····jpeg_source_mgr·src_mgr;</div> | ||
110 | <div·class="line"><a·id="l00066"·name="l00066"></a><span·class="lineno">···66</span>····jpeg_decompress_struct·cinfo;</div> | ||
111 | <div·class="line"><a·id="l00067"·name="l00067"></a><span·class="lineno">···67</span>····</div> | ||
112 | <div·class="line"><a·id="l00068"·name="l00068"></a><span·class="lineno">···68</span>····jpeg_error_mgr·d_error_mgr;</div> | ||
113 | <div·class="line"><a·id="l00069"·name="l00069"></a><span·class="lineno">···69</span>····jmp_buf·setjmp_buffer;</div> | ||
114 | <div·class="line"><a·id="l00070"·name="l00070"></a><span·class="lineno">···70</span>····<a·class="code·hl_class"·href="a00969.html">DataSource</a>*·d_source;</div> | ||
115 | <div·class="line"><a·id="l00071"·name="l00071"></a><span·class="lineno">···71</span>};</div> | ||
116 | </div> | ||
117 | <div·class="line"><a·id="l00072"·name="l00072"></a><span·class="lineno">···72</span>··</div> | ||
118 | <div·class="line"><a·id="l00073"·name="l00073"></a><span·class="lineno">···73</span>··</div> | ||
99 | <div·class="line"><a·id="l000 | 119 | <div·class="line"><a·id="l00074"·name="l00074"></a><span·class="lineno">···74</span>}·<span·class="comment">//·End·of·section·namespace·SILLY·</span></div> |
100 | <div·class="line"><a·id="l000 | 120 | <div·class="line"><a·id="l00075"·name="l00075"></a><span·class="lineno">···75</span>·</div> |
121 | <div·class="line"><a·id="l00076"·name="l00076"></a><span·class="lineno">···76</span><span·class="comment">//·Inclue·inline·function·when·needed·</span></div> | ||
122 | <div·class="line"><a·id="l00077"·name="l00077"></a><span·class="lineno">···77</span><span·class="preprocessor">#ifdef·SILLY_OPT_INLINE</span></div> | ||
123 | <div·class="line"><a·id="l00078"·name="l00078"></a><span·class="lineno">···78</span><span·class="preprocessor">#include·"SILLYJPGImageContext.icpp"</span></div> | ||
124 | <div·class="line"><a·id="l00079"·name="l00079"></a><span·class="lineno">···79</span><span·class="preprocessor">#endif·</span></div> | ||
125 | <div·class="line"><a·id="l00080"·name="l00080"></a><span·class="lineno">···80</span>·</div> | ||
126 | <div·class="line"><a·id="l00081"·name="l00081"></a><span·class="lineno">···81</span><span·class="preprocessor">#endif·</span><span·class="comment">//·end·of·guard·_SILLYJPGImageContext_h_</span></div> | ||
127 | <div·class="ttc"·id="aa00129_html"><div·class="ttname"><a·href="a00129.html">SILLY</a></div><div·class="ttdoc">Simple·Image·Loading·LibrarY·namespace.</div><div·class="ttdef"><b>Definition</b>·<a·href="a00023_source.html#l00045">SILLYJPGImageContext.cpp:46</a></div></div> | ||
128 | <div·class="ttc"·id="aa00945_html"><div·class="ttname"><a·href="a00945.html">SILLY::JPGImageContext</a></div><div·class="ttdoc">Image·Context·for·JPG·image·loader.</div><div·class="ttdef"><b>Definition</b>·<a·href="a00107_source.html#l00056">SILLYJPGImageContext.h:57</a></div></div> | ||
129 | <div·class="ttc"·id="aa00969_html"><div·class="ttname"><a·href="a00969.html">SILLY::DataSource</a></div><div·class="ttdoc">This·is·an·abstract·class·used·to·provide·data·to·the·loader.</div><div·class="ttdef"><b>Definition</b>·<a·href="a00083_source.html#l00046">SILLYDataSource.h:47</a></div></div> | ||
130 | <div·class="ttc"·id="aa00981_html"><div·class="ttname"><a·href="a00981.html">SILLY::ImageContext</a></div><div·class="ttdoc">Store·the·data·needed·by·an·ImageLoader·object·during·the·parsing·of·an·image.</div><div·class="ttdef"><b>Definition</b>·<a·href="a00074_source.html#l00043">SILLYImageContext.h:44</a></div></div> | ||
101 | </div><!--·fragment·--></div><!--·contents·--> | 131 | </div><!--·fragment·--></div><!--·contents·--> |
102 | <!--·start·footer·part·--> | 132 | <!--·start·footer·part·--> |
103 | <hr·class="footer"/><address·class="footer"><small> | 133 | <hr·class="footer"/><address·class="footer"><small> |
104 | Generated·by <a·href="https://www.doxygen.org/index.html"><img·class="footer"·src="doxygen.svg"·width="104"·height="31"·alt="doxygen"/></a>·1.9.8 | 134 | Generated·by <a·href="https://www.doxygen.org/index.html"><img·class="footer"·src="doxygen.svg"·width="104"·height="31"·alt="doxygen"/></a>·1.9.8 |
105 | </small></address> | 135 | </small></address> |
106 | </body> | 136 | </body> |
107 | </html> | 137 | </html> |
Offset 1, 19 lines modified | Offset 1, 20 lines modified | ||
1 | Simple·Image·Loading·LibrarY 0.1.0 | 1 | Simple·Image·Loading·LibrarY 0.1.0 |
2 | ····*·_\x8b_\x8u_\x8i_\x8l_\x8d | 2 | ····*·_\x8b_\x8u_\x8i_\x8l_\x8d |
3 | ····*·_\x8r_\x8e_\x8p_\x8r_\x8o_\x8d_\x8u_\x8c_\x8i_\x8b_\x8l_\x8e_\x8-_\x8p_\x8a_\x8t_\x8h | 3 | ····*·_\x8r_\x8e_\x8p_\x8r_\x8o_\x8d_\x8u_\x8c_\x8i_\x8b_\x8l_\x8e_\x8-_\x8p_\x8a_\x8t_\x8h |
4 | ····*·_\x8s_\x8i_\x8l_\x8l_\x8y_\x8-_\x80_\x8._\x81_\x8._\x80 | 4 | ····*·_\x8s_\x8i_\x8l_\x8l_\x8y_\x8-_\x80_\x8._\x81_\x8._\x80 |
5 | ····*·_\x8i_\x8n_\x8c_\x8l_\x8u_\x8d_\x8e | 5 | ····*·_\x8i_\x8n_\x8c_\x8l_\x8u_\x8d_\x8e |
6 | 6 | ····*·_.l_.o_.a_.d_.e_.r_.s | |
7 | SILLYJPGImageContext.h | ||
7 | 1/*********************************************************************** | 8 | 1/*********************************************************************** |
8 | 2·filename:·Image | 9 | 2·filename:·SILLYJPGImageContext.h |
9 | 3·created:·1 | 10 | 3·created:·11·Jun·2006 |
10 | 4·author:·Olivier·Delannoy | 11 | 4·author:·Olivier·Delannoy |
11 | 5 | 12 | 5 |
12 | 6·purpose:· | 13 | 6·purpose:·Declaration·of·the·JPGImageContext·class |
13 | 7*************************************************************************/ | 14 | 7*************************************************************************/ |
14 | 8/*************************************************************************** | 15 | 8/*************************************************************************** |
15 | 9·*·Copyright·(C)·2004·-·2006·Paul·D·Turner·&·The·CEGUI·Development·Team | 16 | 9·*·Copyright·(C)·2004·-·2006·Paul·D·Turner·&·The·CEGUI·Development·Team |
16 | 10·* | 17 | 10·* |
17 | 11·*·Permission·is·hereby·granted,·free·of·charge,·to·any·person·obtaining | 18 | 11·*·Permission·is·hereby·granted,·free·of·charge,·to·any·person·obtaining |
18 | 12·*·a·copy·of·this·software·and·associated·documentation·files·(the | 19 | 12·*·a·copy·of·this·software·and·associated·documentation·files·(the |
19 | 13·*·"Software"),·to·deal·in·the·Software·without·restriction,·including | 20 | 13·*·"Software"),·to·deal·in·the·Software·without·restriction,·including |
Offset 29, 27 lines modified | Offset 30, 63 lines modified | ||
29 | 23·*·EXPRESS·OR·IMPLIED,·INCLUDING·BUT·NOT·LIMITED·TO·THE·WARRANTIES·OF | 30 | 23·*·EXPRESS·OR·IMPLIED,·INCLUDING·BUT·NOT·LIMITED·TO·THE·WARRANTIES·OF |
30 | 24·*·MERCHANTABILITY,·FITNESS·FOR·A·PARTICULAR·PURPOSE·AND·NONINFRINGEMENT. | 31 | 24·*·MERCHANTABILITY,·FITNESS·FOR·A·PARTICULAR·PURPOSE·AND·NONINFRINGEMENT. |
31 | 25·*·IN·NO·EVENT·SHALL·THE·AUTHORS·BE·LIABLE·FOR·ANY·CLAIM,·DAMAGES·OR | 32 | 25·*·IN·NO·EVENT·SHALL·THE·AUTHORS·BE·LIABLE·FOR·ANY·CLAIM,·DAMAGES·OR |
32 | 26·*·OTHER·LIABILITY,·WHETHER·IN·AN·ACTION·OF·CONTRACT,·TORT·OR·OTHERWISE, | 33 | 26·*·OTHER·LIABILITY,·WHETHER·IN·AN·ACTION·OF·CONTRACT,·TORT·OR·OTHERWISE, |
33 | 27·*·ARISING·FROM,·OUT·OF·OR·IN·CONNECTION·WITH·THE·SOFTWARE·OR·THE·USE·OR | 34 | 27·*·ARISING·FROM,·OUT·OF·OR·IN·CONNECTION·WITH·THE·SOFTWARE·OR·THE·USE·OR |
34 | 28·*·OTHER·DEALINGS·IN·THE·SOFTWARE. | 35 | 28·*·OTHER·DEALINGS·IN·THE·SOFTWARE. |
35 | 29·***************************************************************************/ | 36 | 29·***************************************************************************/ |
36 | 30 | 37 | 30#ifndef·_SILLYJPGImageContext_h_ |
38 | 31#define·_SILLYJPGImageContext_h_ | ||
39 | 32#include·"SILLYBase.h" | ||
40 | 33#include·"SILLYImageContext.h" | ||
41 | 34#include·"SILLYDataSource.h" | ||
37 | 3 | 42 | 35//·Start·of·section·namespace·SILLY |
43 | 36#include·<setjmp.h> | ||
44 | 37#include·<stdio.h> | ||
45 | 38#include·<string.h> | ||
46 | 39extern·"C" | ||
47 | 40{ | ||
48 | 41#include·<jpeglib.h> | ||
49 | 42} | ||
50 | 43namespace·_\x8S_\x8I_\x8L_\x8L_\x8Y | ||
51 | 44{ | ||
38 | 32namespace·SILLY | ||
39 | 33{ | ||
40 | 34inline·ImageLoader::ImageLoader(const·char*·name) | ||
41 | 35·:·d_name(name) | ||
42 | 36{ | ||
43 | 37} | ||
44 | 38inline·ImageLoader::~ImageLoader() | ||
45 | 39{ | ||
46 | 40} | ||
47 | 41inline·const·char*·ImageLoader::getIdentifierString()·const | ||
48 | 42{ | ||
49 | 43·return·d_name; | ||
50 | 44} | ||
51 | 45 | 52 | 45 |
53 | _\x85_\x86class·_\x8J_\x8P_\x8G_\x8I_\x8m_\x8a_\x8g_\x8e_\x8C_\x8o_\x8n_\x8t_\x8e_\x8x_\x8t·:·public·_\x8I_\x8m_\x8a_\x8g_\x8e_\x8C_\x8o_\x8n_\x8t_\x8e_\x8x_\x8t | ||
54 | 57{ | ||
55 | 58public: | ||
56 | 59·_\x8J_\x8P_\x8G_\x8I_\x8m_\x8a_\x8g_\x8e_\x8C_\x8o_\x8n_\x8t_\x8e_\x8x_\x8t(); | ||
57 | 60·_\x8~_\x8J_\x8P_\x8G_\x8I_\x8m_\x8a_\x8g_\x8e_\x8C_\x8o_\x8n_\x8t_\x8e_\x8x_\x8t(); | ||
58 | 61 | ||
59 | 62·void·setImageSize(); | ||
60 | 63 | ||
61 | 64 | ||
62 | 65·jpeg_source_mgr·src_mgr; | ||
63 | 66·jpeg_decompress_struct·cinfo; | ||
64 | 67 | ||
65 | 68·jpeg_error_mgr·d_error_mgr; | ||
66 | 69·jmp_buf·setjmp_buffer; | ||
67 | 70·_\x8D_\x8a_\x8t_\x8a_\x8S_\x8o_\x8u_\x8r_\x8c_\x8e*·d_source; | ||
68 | 71}; | ||
69 | 72 | ||
70 | 73 | ||
52 | 71 | 74}·//·End·of·section·namespace·SILLY | |
53 | 72 | 75 | |
73 | 76//·Inclue·inline·function·when·needed | ||
74 | 77#ifdef·SILLY_OPT_INLINE | ||
75 | 78#include·"SILLYJPGImageContext.icpp" | ||
76 | 79#endif | ||
77 | 80 | ||
78 | 81#endif·//·end·of·guard·_SILLYJPGImageContext_h_ | ||
79 | _\x8S_\x8I_\x8L_\x8L_\x8Y | ||
80 | Simple·Image·Loading·LibrarY·namespace. | ||
81 | D\x8De\x8ef\x8fi\x8in\x8ni\x8it\x8ti\x8io\x8on\x8n·_\x8S_\x8I_\x8L_\x8L_\x8Y_\x8J_\x8P_\x8G_\x8I_\x8m_\x8a_\x8g_\x8e_\x8C_\x8o_\x8n_\x8t_\x8e_\x8x_\x8t_\x8._\x8c_\x8p_\x8p_\x8:_\x84_\x86 | ||
82 | _\x8S_\x8I_\x8L_\x8L_\x8Y_\x8:_\x8:_\x8J_\x8P_\x8G_\x8I_\x8m_\x8a_\x8g_\x8e_\x8C_\x8o_\x8n_\x8t_\x8e_\x8x_\x8t | ||
83 | Image·Context·for·JPG·image·loader. | ||
84 | D\x8De\x8ef\x8fi\x8in\x8ni\x8it\x8ti\x8io\x8on\x8n·_\x8S_\x8I_\x8L_\x8L_\x8Y_\x8J_\x8P_\x8G_\x8I_\x8m_\x8a_\x8g_\x8e_\x8C_\x8o_\x8n_\x8t_\x8e_\x8x_\x8t_\x8._\x8h_\x8:_\x85_\x87 | ||
85 | _\x8S_\x8I_\x8L_\x8L_\x8Y_\x8:_\x8:_\x8D_\x8a_\x8t_\x8a_\x8S_\x8o_\x8u_\x8r_\x8c_\x8e | ||
86 | This·is·an·abstract·class·used·to·provide·data·to·the·loader. | ||
87 | D\x8De\x8ef\x8fi\x8in\x8ni\x8it\x8ti\x8io\x8on\x8n·_\x8S_\x8I_\x8L_\x8L_\x8Y_\x8D_\x8a_\x8t_\x8a_\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8._\x8h_\x8:_\x84_\x87 | ||
88 | _\x8S_\x8I_\x8L_\x8L_\x8Y_\x8:_\x8:_\x8I_\x8m_\x8a_\x8g_\x8e_\x8C_\x8o_\x8n_\x8t_\x8e_\x8x_\x8t | ||
89 | Store·the·data·needed·by·an·ImageLoader·object·during·the·parsing·of·an·image. | ||
90 | D\x8De\x8ef\x8fi\x8in\x8ni\x8it\x8ti\x8io\x8on\x8n·_\x8S_\x8I_\x8L_\x8L_\x8Y_\x8I_\x8m_\x8a_\x8g_\x8e_\x8C_\x8o_\x8n_\x8t_\x8e_\x8x_\x8t_\x8._\x8h_\x8:_\x84_\x84 | ||
54 | =============================================================================== | 91 | =============================================================================== |
55 | ·····Generated·by _\x8[_\x8d_\x8o_\x8x_\x8y_\x8g_\x8e_\x8n_\x8]·1.9.8 | 92 | ·····Generated·by _\x8[_\x8d_\x8o_\x8x_\x8y_\x8g_\x8e_\x8n_\x8]·1.9.8 |
Offset 1, 15 lines modified | Offset 1, 15 lines modified | ||
1 | <!DOCTYPE·html·PUBLIC·"-//W3C//DTD·XHTML·1.0·Transitional//EN"·"https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> | 1 | <!DOCTYPE·html·PUBLIC·"-//W3C//DTD·XHTML·1.0·Transitional//EN"·"https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> |
2 | <html·xmlns="http://www.w3.org/1999/xhtml"·lang="en-US"> | 2 | <html·xmlns="http://www.w3.org/1999/xhtml"·lang="en-US"> |
3 | <head> | 3 | <head> |
4 | <meta·http-equiv="Content-Type"·content="text/xhtml;charset=UTF-8"/> | 4 | <meta·http-equiv="Content-Type"·content="text/xhtml;charset=UTF-8"/> |
5 | <meta·http-equiv="X-UA-Compatible"·content="IE=11"/> | 5 | <meta·http-equiv="X-UA-Compatible"·content="IE=11"/> |
6 | <meta·name="generator"·content="Doxygen·1.9.8"/> | 6 | <meta·name="generator"·content="Doxygen·1.9.8"/> |
7 | <meta·name="viewport"·content="width=device-width,·initial-scale=1"/> | 7 | <meta·name="viewport"·content="width=device-width,·initial-scale=1"/> |
8 | <title>Simple·Image·Loading·LibrarY:·/build/reproducible-path/silly-0.1.0/include/SILLYImage | 8 | <title>Simple·Image·Loading·LibrarY:·/build/reproducible-path/silly-0.1.0/include/loaders/SILLYTGAImageContext.icpp·Source·File</title> |
9 | <link·href="tabs.css"·rel="stylesheet"·type="text/css"/> | 9 | <link·href="tabs.css"·rel="stylesheet"·type="text/css"/> |
10 | <script·type="text/javascript"·src="jquery.js"></script> | 10 | <script·type="text/javascript"·src="jquery.js"></script> |
11 | <script·type="text/javascript"·src="dynsections.js"></script> | 11 | <script·type="text/javascript"·src="dynsections.js"></script> |
12 | <link·href="doxygen.css"·rel="stylesheet"·type="text/css"·/> | 12 | <link·href="doxygen.css"·rel="stylesheet"·type="text/css"·/> |
13 | </head> | 13 | </head> |
14 | <body> | 14 | <body> |
15 | <div·id="top"><!--·do·not·remove·this·div,·it·is·closed·by·doxygen!·--> | 15 | <div·id="top"><!--·do·not·remove·this·div,·it·is·closed·by·doxygen!·--> |
Offset 40, 116 lines modified | Offset 40, 65 lines modified | ||
40 | <script·type="text/javascript"> | 40 | <script·type="text/javascript"> |
41 | /*·@license·magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt·MIT·*/ | 41 | /*·@license·magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt·MIT·*/ |
42 | $(document).ready(function()·{·init_codefold(0);·}); | 42 | $(document).ready(function()·{·init_codefold(0);·}); |
43 | /*·@license-end·*/ | 43 | /*·@license-end·*/ |
44 | </script> | 44 | </script> |
45 | <div·id="nav-path"·class="navpath"> | 45 | <div·id="nav-path"·class="navpath"> |
46 | ··<ul> | 46 | ··<ul> |
47 | <li·class="navelem"><a·class="el"·href="dir_4fef79e7177ba769987a8da36c892c5f.html">build</a></li><li·class="navelem"><a·class="el"·href="dir_9def6061848686aab7e6212bb499d615.html">reproducible-path</a></li><li·class="navelem"><a·class="el"·href="dir_74170d5b58cefb7cb5a86fc552b183a3.html">silly-0.1.0</a></li><li·class="navelem"><a·class="el"·href="dir_0d87e2e7ddaae8a2a8572c0afc59fe0d.html">include</a></li>··</ul> | 47 | <li·class="navelem"><a·class="el"·href="dir_4fef79e7177ba769987a8da36c892c5f.html">build</a></li><li·class="navelem"><a·class="el"·href="dir_9def6061848686aab7e6212bb499d615.html">reproducible-path</a></li><li·class="navelem"><a·class="el"·href="dir_74170d5b58cefb7cb5a86fc552b183a3.html">silly-0.1.0</a></li><li·class="navelem"><a·class="el"·href="dir_0d87e2e7ddaae8a2a8572c0afc59fe0d.html">include</a></li><li·class="navelem"><a·class="el"·href="dir_7cea72c962538e8359f822070f2512f7.html">loaders</a></li>··</ul> |
48 | </div> | 48 | </div> |
49 | </div><!--·top·--> | 49 | </div><!--·top·--> |
50 | <div·class="header"> | 50 | <div·class="header"> |
51 | ··<div·class="headertitle"><div·class="title">SILLYImage | 51 | ··<div·class="headertitle"><div·class="title">SILLYTGAImageContext.icpp</div></div> |
52 | </div><!--header--> | 52 | </div><!--header--> |
53 | <div·class="contents"> | 53 | <div·class="contents"> |
54 | <div·class="fragment"><div·class="line"><a·id="l00001"·name="l00001"></a><span·class="lineno">····1</span> | 54 | <div·class="fragment"><div·class="line"><a·id="l00001"·name="l00001"></a><span·class="lineno">····1</span>/***********************************************************************</div> |
55 | <div·class="line"><a·id="l00002"·name="l00002"></a><span·class="lineno">····2</span> | 55 | <div·class="line"><a·id="l00002"·name="l00002"></a><span·class="lineno">····2</span>····filename:···SILLYTGAImageContext.icpp·</div> |
56 | <div·class="line"><a·id="l00003"·name="l00003"></a><span·class="lineno">····3</span> | 56 | <div·class="line"><a·id="l00003"·name="l00003"></a><span·class="lineno">····3</span>····created:····11·Jun·2006</div> |
57 | <div·class="line"><a·id="l00004"·name="l00004"></a><span·class="lineno">····4</span> | 57 | <div·class="line"><a·id="l00004"·name="l00004"></a><span·class="lineno">····4</span>····author:·····Olivier·Delannoy</div> |
58 | <div·class="line"><a·id="l00005"·name="l00005"></a><span·class="lineno">····5</span> | 58 | <div·class="line"><a·id="l00005"·name="l00005"></a><span·class="lineno">····5</span>·</div> |
59 | <div·class="line"><a·id="l00006"·name="l00006"></a><span·class="lineno">····6</span> | 59 | <div·class="line"><a·id="l00006"·name="l00006"></a><span·class="lineno">····6</span>····purpose:····Inline·definition·for·TGAImageContext·class···</div> |
60 | <div·class="line"><a·id="l00007"·name="l00007"></a><span·class="lineno">····7</span> | 60 | <div·class="line"><a·id="l00007"·name="l00007"></a><span·class="lineno">····7</span>*************************************************************************/</div> |
61 | <div·class="line"><a·id="l00008"·name="l00008"></a><span·class="lineno">····8</span> | 61 | <div·class="line"><a·id="l00008"·name="l00008"></a><span·class="lineno">····8</span>/***************************************************************************</div> |
62 | <div·class="line"><a·id="l00009"·name="l00009"></a><span·class="lineno">····9</span> | 62 | <div·class="line"><a·id="l00009"·name="l00009"></a><span·class="lineno">····9</span>·*···Copyright·(C)·2004·-·2006·Paul·D·Turner·&·The·CEGUI·Development·Team</div> |
63 | <div·class="line"><a·id="l00010"·name="l00010"></a><span·class="lineno">···10</span> | 63 | <div·class="line"><a·id="l00010"·name="l00010"></a><span·class="lineno">···10</span>·*</div> |
64 | <div·class="line"><a·id="l00011"·name="l00011"></a><span·class="lineno">···11</span> | 64 | <div·class="line"><a·id="l00011"·name="l00011"></a><span·class="lineno">···11</span>·*···Permission·is·hereby·granted,·free·of·charge,·to·any·person·obtaining</div> |
65 | <div·class="line"><a·id="l00012"·name="l00012"></a><span·class="lineno">···12</span> | 65 | <div·class="line"><a·id="l00012"·name="l00012"></a><span·class="lineno">···12</span>·*···a·copy·of·this·software·and·associated·documentation·files·(the</div> |
66 | <div·class="line"><a·id="l00013"·name="l00013"></a><span·class="lineno">···13</span> | 66 | <div·class="line"><a·id="l00013"·name="l00013"></a><span·class="lineno">···13</span>·*···"Software"),·to·deal·in·the·Software·without·restriction,·including</div> |
67 | <div·class="line"><a·id="l00014"·name="l00014"></a><span·class="lineno">···14</span> | 67 | <div·class="line"><a·id="l00014"·name="l00014"></a><span·class="lineno">···14</span>·*···without·limitation·the·rights·to·use,·copy,·modify,·merge,·publish,</div> |
68 | <div·class="line"><a·id="l00015"·name="l00015"></a><span·class="lineno">···15</span> | 68 | <div·class="line"><a·id="l00015"·name="l00015"></a><span·class="lineno">···15</span>·*···distribute,·sublicense,·and/or·sell·copies·of·the·Software,·and·to</div> |
69 | <div·class="line"><a·id="l00016"·name="l00016"></a><span·class="lineno">···16</span> | 69 | <div·class="line"><a·id="l00016"·name="l00016"></a><span·class="lineno">···16</span>·*···permit·persons·to·whom·the·Software·is·furnished·to·do·so,·subject·to</div> |
70 | <div·class="line"><a·id="l00017"·name="l00017"></a><span·class="lineno">···17</span> | 70 | <div·class="line"><a·id="l00017"·name="l00017"></a><span·class="lineno">···17</span>·*···the·following·conditions:</div> |
71 | <div·class="line"><a·id="l00018"·name="l00018"></a><span·class="lineno">···18</span> | 71 | <div·class="line"><a·id="l00018"·name="l00018"></a><span·class="lineno">···18</span>·*</div> |
72 | <div·class="line"><a·id="l00019"·name="l00019"></a><span·class="lineno">···19</span> | 72 | <div·class="line"><a·id="l00019"·name="l00019"></a><span·class="lineno">···19</span>·*···The·above·copyright·notice·and·this·permission·notice·shall·be</div> |
73 | <div·class="line"><a·id="l00020"·name="l00020"></a><span·class="lineno">···20</span> | 73 | <div·class="line"><a·id="l00020"·name="l00020"></a><span·class="lineno">···20</span>·*···included·in·all·copies·or·substantial·portions·of·the·Software.</div> |
74 | <div·class="line"><a·id="l00021"·name="l00021"></a><span·class="lineno">···21</span> | 74 | <div·class="line"><a·id="l00021"·name="l00021"></a><span·class="lineno">···21</span>·*</div> |
75 | <div·class="line"><a·id="l00022"·name="l00022"></a><span·class="lineno">···22</span> | 75 | <div·class="line"><a·id="l00022"·name="l00022"></a><span·class="lineno">···22</span>·*···THE·SOFTWARE·IS·PROVIDED·"AS·IS",·WITHOUT·WARRANTY·OF·ANY·KIND,</div> |
76 | <div·class="line"><a·id="l00023"·name="l00023"></a><span·class="lineno">···23</span> | 76 | <div·class="line"><a·id="l00023"·name="l00023"></a><span·class="lineno">···23</span>·*···EXPRESS·OR·IMPLIED,·INCLUDING·BUT·NOT·LIMITED·TO·THE·WARRANTIES·OF</div> |
77 | <div·class="line"><a·id="l00024"·name="l00024"></a><span·class="lineno">···24</span> | 77 | <div·class="line"><a·id="l00024"·name="l00024"></a><span·class="lineno">···24</span>·*···MERCHANTABILITY,·FITNESS·FOR·A·PARTICULAR·PURPOSE·AND·NONINFRINGEMENT.</div> |
78 | <div·class="line"><a·id="l00025"·name="l00025"></a><span·class="lineno">···25</span> | 78 | <div·class="line"><a·id="l00025"·name="l00025"></a><span·class="lineno">···25</span>·*···IN·NO·EVENT·SHALL·THE·AUTHORS·BE·LIABLE·FOR·ANY·CLAIM,·DAMAGES·OR</div> |
79 | <div·class="line"><a·id="l00026"·name="l00026"></a><span·class="lineno">···26</span> | 79 | <div·class="line"><a·id="l00026"·name="l00026"></a><span·class="lineno">···26</span>·*···OTHER·LIABILITY,·WHETHER·IN·AN·ACTION·OF·CONTRACT,·TORT·OR·OTHERWISE,</div> |
80 | <div·class="line"><a·id="l00027"·name="l00027"></a><span·class="lineno">···27</span> | 80 | <div·class="line"><a·id="l00027"·name="l00027"></a><span·class="lineno">···27</span>·*···ARISING·FROM,·OUT·OF·OR·IN·CONNECTION·WITH·THE·SOFTWARE·OR·THE·USE·OR</div> |
81 | <div·class="line"><a·id="l00028"·name="l00028"></a><span·class="lineno">···28</span> | 81 | <div·class="line"><a·id="l00028"·name="l00028"></a><span·class="lineno">···28</span>·*···OTHER·DEALINGS·IN·THE·SOFTWARE.</div> |
82 | <div·class="line"><a·id="l00029"·name="l00029"></a><span·class="lineno">···29</span> | 82 | <div·class="line"><a·id="l00029"·name="l00029"></a><span·class="lineno">···29</span>·***************************************************************************/</div> |
83 | <div·class="line"><a·id="l00030"·name="l00030"></a><span·class="lineno">···30</span>·</div> | ||
83 | <div·class="line"><a·id="l00030"·name="l00030"></a><span·class="lineno">···30</span><span·class="preprocessor">#ifndef·_SILLYImageLoaderManager_h_·</span></div> | ||
84 | <div·class="line"><a·id="l00031"·name="l00031"></a><span·class="lineno">···31</span><span·class="preprocessor">#define·_SILLYImageLoaderManager_h_</span></div> | ||
85 | <div·class="line"><a·id="l00032"·name="l00032"></a><span·class="lineno">···32</span><span·class="preprocessor">#include·"SILLYBase.h"</span>·</div> | ||
86 | <div·class="line"><a·id="l00033"·name="l00033"></a><span·class="lineno">···33</span><span·class="preprocessor">#include·<vector></span>·</div> | ||
87 | <div·class="line"><a·id="l0003 | 84 | <div·class="line"><a·id="l00031"·name="l00031"></a><span·class="lineno">···31</span>//·Start·of·section·namespace·SILLY</div> |
88 | <div·class="line"><a·id="l0003 | 85 | <div·class="line"><a·id="l00032"·name="l00032"></a><span·class="lineno">···32</span>namespace·SILLY</div> |
86 | <div·class="line"><a·id="l00033"·name="l00033"></a><span·class="lineno">···33</span>{</div> | ||
87 | <div·class="line"><a·id="l00034"·name="l00034"></a><span·class="lineno">···34</span>inline·TGAImageContext::TGAImageContext(size_t·width,·size_t·height)</div> | ||
88 | <div·class="line"><a·id="l00035"·name="l00035"></a><span·class="lineno">···35</span>····:·ImageContext(width,·height)</div> | ||
89 | <div·class="line"><a·id="l00036"·name="l00036"></a><span·class="lineno">···36</span>{</div> | 89 | <div·class="line"><a·id="l00036"·name="l00036"></a><span·class="lineno">···36</span>{</div> |
90 | <div·class="line"><a·id="l00037"·name="l00037"></a><span·class="lineno">···37</span>}</div> | ||
90 | <div·class="line"><a·id="l00037"·name="l00037"></a><span·class="lineno">···37</span><span·class="keyword">class·</span>ImageLoader;·<span·class="comment">//·Forward·declaration</span></div> | ||
91 | <div·class="line"><a·id="l00042"·name="l00042"></a><span·class="lineno"><a·class="line"·href="a00129.html#a9f85557d059f38f7bb66a898472d394e">···42</a></span><span·class="keyword">typedef</span>·std::vector<ImageLoader*>·<a·class="code·hl_typedef"·href="a00129.html#a9f85557d059f38f7bb66a898472d394e">ImageLoaderList</a>;</div> | ||
92 | <div·class="line"><a·id="l000 | 91 | <div·class="line"><a·id="l00038"·name="l00038"></a><span·class="lineno">···38</span>·</div> |
93 | <div·class="line"><a·id="l000 | 92 | <div·class="line"><a·id="l00039"·name="l00039"></a><span·class="lineno">···39</span>inline·TGAImageContext::~TGAImageContext()</div> |
93 | <div·class="line"><a·id="l00040"·name="l00040"></a><span·class="lineno">···40</span>{</div> | ||
94 | <div·class="line"><a·id="l00041"·name="l00041"></a><span·class="lineno">···41</span>}</div> | ||
94 | <div·class="line"><a·id="l0004 | 95 | <div·class="line"><a·id="l00042"·name="l00042"></a><span·class="lineno">···42</span>·</div> |
95 | <div·class="line"><a·id="l0004 | 96 | <div·class="line"><a·id="l00043"·name="l00043"></a><span·class="lineno">···43</span>}·//·End·of·section·namespace·SILLY</div> |
96 | <div·class="line"><a·id="l0004 | 97 | <div·class="line"><a·id="l00044"·name="l00044"></a><span·class="lineno">···44</span>·</div> |
97 | <div·class="line"><a·id="l00048"·name="l00048"></a><span·class="lineno">···48</span><span·class="preprocessor">#···pragma·warning(disable·:·4251)</span></div> | ||
98 | <div·class="line"><a·id="l00049"·name="l00049"></a><span·class="lineno">···49</span>·</div> | ||
99 | <div·class="line"><a·id="l00050"·name="l00050"></a><span·class="lineno">···50</span><span·class="preprocessor">#endif</span></div> | ||
100 | <div·class="line"><a·id="l00051"·name="l00051"></a><span·class="lineno">···51</span>·</div> | ||
101 | <div·class="foldopen"·id="foldopen00056"·data-start="{"·data-end="};"> | ||
102 | <div·class="line"><a·id="l00056"·name="l00056"></a><span·class="lineno"><a·class="line"·href="a00989.html">···56</a></span><span·class="keyword">class·</span>SILLY_EXPORT·<a·class="code·hl_class"·href="a00989.html">ImageLoaderManager</a></div> | ||
103 | <div·class="line"><a·id="l00057"·name="l00057"></a><span·class="lineno">···57</span>{</div> | ||
104 | <div·class="line"><a·id="l00058"·name="l00058"></a><span·class="lineno">···58</span>····</div> | ||
105 | <div·class="line"><a·id="l00059"·name="l00059"></a><span·class="lineno">···59</span><span·class="keyword">public</span>:</div> | ||
106 | <div·class="line"><a·id="l00064"·name="l00064"></a><span·class="lineno">···64</span>····<a·class="code·hl_class"·href="a00989.html">ImageLoaderManager</a>();</div> | ||
107 | <div·class="line"><a·id="l00069"·name="l00069"></a><span·class="lineno">···69</span>····<a·class="code·hl_class"·href="a00989.html">~ImageLoaderManager</a>();</div> | ||
108 | <div·class="line"><a·id="l00074"·name="l00074"></a><span·class="lineno"><a·class="line"·href="a00989.html#ae2e05642dfe82aad71558d37a9377e6e">···74</a></span>····ImageLoaderList::iterator·<a·class="code·hl_function"·href="a00989.html#ae2e05642dfe82aad71558d37a9377e6e">begin</a>();</div> | ||
109 | <div·class="line"><a·id="l00079"·name="l00079"></a><span·class="lineno"><a·class="line"·href="a00989.html#ae5ad548bf73ed505eaf533eeb053f2cc">···79</a></span>····ImageLoaderList::iterator·<a·class="code·hl_function"·href="a00989.html#ae5ad548bf73ed505eaf533eeb053f2cc">end</a>();</div> | ||
110 | <div·class="line"><a·id="l00086"·name="l00086"></a><span·class="lineno"><a·class="line"·href="a00989.html#a38aa5b3d86db46f24cd330bda6d0b696">···86</a></span>····<span·class="keywordtype">void</span>·<a·class="code·hl_function"·href="a00989.html#a38aa5b3d86db46f24cd330bda6d0b696">add</a>(<a·class="code·hl_class"·href="a00985.html">ImageLoader</a>*·loader);</div> | ||
111 | <div·class="line"><a·id="l00087"·name="l00087"></a><span·class="lineno">···87</span>····</div> | ||
112 | <div·class="line"><a·id="l00088"·name="l00088"></a><span·class="lineno">···88</span><span·class="keyword">private</span>:</div> | ||
113 | <div·class="line"><a·id="l00089"·name="l00089"></a><span·class="lineno">···89</span>····<a·class="code·hl_typedef"·href="a00129.html#a9f85557d059f38f7bb66a898472d394e">ImageLoaderList</a>·d_loaders;··</div> | ||
114 | <div·class="line"><a·id="l00090"·name="l00090"></a><span·class="lineno">···90</span>·</div> | ||
115 | <div·class="line"><a·id="l00091"·name="l00091"></a><span·class="lineno">···91</span><span·class="keyword">public</span>:</div> | ||
116 | <div·class="line"><a·id="l00092"·name="l00092"></a><span·class="lineno">···92</span>··<span·class="keyword">static</span>·<a·class="code·hl_class"·href="a00989.html">ImageLoaderManager</a>*·getSingletonPtr();</div> | ||
117 | <div·class="line"><a·id="l00093"·name="l00093"></a><span·class="lineno">···93</span>··<span·class="keyword">static</span>·<a·class="code·hl_class"·href="a00989.html">ImageLoaderManager</a>&·getSingleton();</div> | ||
118 | <div·class="line"><a·id="l00094"·name="l00094"></a><span·class="lineno">···94</span>·</div> | ||
119 | <div·class="line"><a·id="l00095"·name="l00095"></a><span·class="lineno">···95</span><span·class="keyword">private</span>:</div> | ||
120 | <div·class="line"><a·id="l00096"·name="l00096"></a><span·class="lineno">···96</span>··<span·class="keyword">static</span>·<a·class="code·hl_class"·href="a00989.html">ImageLoaderManager</a>*·d_instance;·</div> | ||
121 | <div·class="line"><a·id="l00097"·name="l00097"></a><span·class="lineno">···97</span>····</div> | ||
122 | <div·class="line"><a·id="l00098"·name="l00098"></a><span·class="lineno">···98</span>··<span·class="comment">//·Disabled·operations</span></div> | ||
123 | <div·class="line"><a·id="l00099"·name="l00099"></a><span·class="lineno">···99</span>··<a·class="code·hl_class"·href="a00989.html">ImageLoaderManager</a>(<a·class="code·hl_class"·href="a00989.html">ImageLoaderManager</a>&);</div> | ||
124 | <div·class="line"><a·id="l00100"·name="l00100"></a><span·class="lineno">··100</span>··<a·class="code·hl_class"·href="a00989.html">ImageLoaderManager</a>&·operator=(<a·class="code·hl_class"·href="a00989.html">ImageLoaderManager</a>&);</div> | ||
125 | <div·class="line"><a·id="l00101"·name="l00101"></a><span·class="lineno">··101</span>};</div> | ||
126 | </div> | ||
127 | <div·class="line"><a·id="l00102"·name="l00102"></a><span·class="lineno">··102</span>·</div> | ||
128 | <div·class="line"><a·id="l00103"·name="l00103"></a><span·class="lineno">··103</span><span·class="preprocessor">#if·defined(_MSC_VER)</span></div> | ||
129 | <div·class="line"><a·id="l00104"·name="l00104"></a><span·class="lineno">··104</span>·</div> | ||
130 | <div·class="line"><a·id="l00105"·name="l00105"></a><span·class="lineno">··105</span><span·class="preprocessor">#···pragma·warning(pop)</span></div> | ||
131 | <div·class="line"><a·id="l00106"·name="l00106"></a><span·class="lineno">··106</span>·</div> | ||
132 | <div·class="line"><a·id="l00107"·name="l00107"></a><span·class="lineno">··107</span><span·class="preprocessor">#endif··</span></div> | ||
133 | <div·class="line"><a·id="l00108"·name="l00108"></a><span·class="lineno">··108</span>··</div> | ||
134 | <div·class="line"><a·id="l00109"·name="l00109"></a><span·class="lineno">··109</span>}·<span·class="comment">//·End·of·section·namespace·SILLY·</span></div> | ||
135 | <div·class="line"><a·id="l00110"·name="l00110"></a><span·class="lineno">··110</span>·</div> | ||
136 | <div·class="line"><a·id="l00111"·name="l00111"></a><span·class="lineno">··111</span><span·class="comment">//·Inclue·inline·function·when·needed·</span></div> | ||
137 | <div·class="line"><a·id="l00112"·name="l00112"></a><span·class="lineno">··112</span><span·class="preprocessor">#ifdef·SILLY_OPT_INLINE</span></div> | ||
138 | <div·class="line"><a·id="l00113"·name="l00113"></a><span·class="lineno">··113</span><span·class="preprocessor">#include·"SILLYImageLoaderManager.icpp"</span></div> | ||
139 | <div·class="line"><a·id="l00114"·name="l00114"></a><span·class="lineno">··114</span><span·class="preprocessor">#endif·</span></div> | ||
140 | <div·class="line"><a·id="l00115"·name="l00115"></a><span·class="lineno">··115</span>·</div> | ||
141 | <div·class="line"><a·id="l00116"·name="l00116"></a><span·class="lineno">··116</span><span·class="preprocessor">#endif·</span><span·class="comment">//·end·of·guard·_SILLYImageLoaderManager_h_</span></div> | ||
142 | <div·class="ttc"·id="aa00129_html"><div·class="ttname"><a·href="a00129.html">SILLY</a></div><div·class="ttdoc">Simple·Image·Loading·LibrarY·namespace.</div><div·class="ttdef"><b>Definition</b>·<a·href="a00029_source.html#l00045">SILLYJPGImageContext.cpp:46</a></div></div> | ||
143 | <div·class="ttc"·id="aa00129_html_a9f85557d059f38f7bb66a898472d394e"><div·class="ttname"><a·href="a00129.html#a9f85557d059f38f7bb66a898472d394e">SILLY::ImageLoaderList</a></div><div·class="ttdeci">std::vector<·ImageLoader·*·>·ImageLoaderList</div><div·class="ttdoc">Typename·for·a·collection·of·image·loader.</div><div·class="ttdef"><b>Definition</b>·<a·href="a00110_source.html#l00042">SILLYImageLoaderManager.h:42</a></div></div> | ||
Max diff block lines reached; 271/24988 bytes (1.08%) of diff not shown. |
Offset 1, 19 lines modified | Offset 1, 20 lines modified | ||
1 | Simple·Image·Loading·LibrarY 0.1.0 | 1 | Simple·Image·Loading·LibrarY 0.1.0 |
2 | ····*·_\x8b_\x8u_\x8i_\x8l_\x8d | 2 | ····*·_\x8b_\x8u_\x8i_\x8l_\x8d |
3 | ····*·_\x8r_\x8e_\x8p_\x8r_\x8o_\x8d_\x8u_\x8c_\x8i_\x8b_\x8l_\x8e_\x8-_\x8p_\x8a_\x8t_\x8h | 3 | ····*·_\x8r_\x8e_\x8p_\x8r_\x8o_\x8d_\x8u_\x8c_\x8i_\x8b_\x8l_\x8e_\x8-_\x8p_\x8a_\x8t_\x8h |
4 | ····*·_\x8s_\x8i_\x8l_\x8l_\x8y_\x8-_\x80_\x8._\x81_\x8._\x80 | 4 | ····*·_\x8s_\x8i_\x8l_\x8l_\x8y_\x8-_\x80_\x8._\x81_\x8._\x80 |
5 | ····*·_\x8i_\x8n_\x8c_\x8l_\x8u_\x8d_\x8e | 5 | ····*·_\x8i_\x8n_\x8c_\x8l_\x8u_\x8d_\x8e |
6 | 6 | ····*·_.l_.o_.a_.d_.e_.r_.s | |
7 | SILLYTGAImageContext.icpp | ||
7 | 1/*********************************************************************** | 8 | 1/*********************************************************************** |
8 | 2·filename:·Image | 9 | 2·filename:·SILLYTGAImageContext.icpp |
9 | 3·created:·1 | 10 | 3·created:·11·Jun·2006 |
10 | 4·author:·Olivier·Delannoy | 11 | 4·author:·Olivier·Delannoy |
11 | 5 | 12 | 5 |
12 | 6·purpose:· | 13 | 6·purpose:·Inline·definition·for·TGAImageContext·class |
13 | 7*************************************************************************/ | 14 | 7*************************************************************************/ |
14 | 8/*************************************************************************** | 15 | 8/*************************************************************************** |
15 | 9·*·Copyright·(C)·2004·-·2006·Paul·D·Turner·&·The·CEGUI·Development·Team | 16 | 9·*·Copyright·(C)·2004·-·2006·Paul·D·Turner·&·The·CEGUI·Development·Team |
16 | 10·* | 17 | 10·* |
17 | 11·*·Permission·is·hereby·granted,·free·of·charge,·to·any·person·obtaining | 18 | 11·*·Permission·is·hereby·granted,·free·of·charge,·to·any·person·obtaining |
18 | 12·*·a·copy·of·this·software·and·associated·documentation·files·(the | 19 | 12·*·a·copy·of·this·software·and·associated·documentation·files·(the |
19 | 13·*·"Software"),·to·deal·in·the·Software·without·restriction,·including | 20 | 13·*·"Software"),·to·deal·in·the·Software·without·restriction,·including |
Offset 29, 88 lines modified | Offset 30, 24 lines modified | ||
29 | 23·*·EXPRESS·OR·IMPLIED,·INCLUDING·BUT·NOT·LIMITED·TO·THE·WARRANTIES·OF | 30 | 23·*·EXPRESS·OR·IMPLIED,·INCLUDING·BUT·NOT·LIMITED·TO·THE·WARRANTIES·OF |
30 | 24·*·MERCHANTABILITY,·FITNESS·FOR·A·PARTICULAR·PURPOSE·AND·NONINFRINGEMENT. | 31 | 24·*·MERCHANTABILITY,·FITNESS·FOR·A·PARTICULAR·PURPOSE·AND·NONINFRINGEMENT. |
31 | 25·*·IN·NO·EVENT·SHALL·THE·AUTHORS·BE·LIABLE·FOR·ANY·CLAIM,·DAMAGES·OR | 32 | 25·*·IN·NO·EVENT·SHALL·THE·AUTHORS·BE·LIABLE·FOR·ANY·CLAIM,·DAMAGES·OR |
32 | 26·*·OTHER·LIABILITY,·WHETHER·IN·AN·ACTION·OF·CONTRACT,·TORT·OR·OTHERWISE, | 33 | 26·*·OTHER·LIABILITY,·WHETHER·IN·AN·ACTION·OF·CONTRACT,·TORT·OR·OTHERWISE, |
33 | 27·*·ARISING·FROM,·OUT·OF·OR·IN·CONNECTION·WITH·THE·SOFTWARE·OR·THE·USE·OR | 34 | 27·*·ARISING·FROM,·OUT·OF·OR·IN·CONNECTION·WITH·THE·SOFTWARE·OR·THE·USE·OR |
34 | 28·*·OTHER·DEALINGS·IN·THE·SOFTWARE. | 35 | 28·*·OTHER·DEALINGS·IN·THE·SOFTWARE. |
35 | 29·***************************************************************************/ | 36 | 29·***************************************************************************/ |
37 | 30 | ||
36 | 30#ifndef·_SILLYImageLoaderManager_h_ | ||
37 | 31#define·_SILLYImageLoaderManager_h_ | ||
38 | 32#include·"SILLYBase.h" | ||
39 | 33#include·<vector> | ||
40 | 3 | 38 | 31//·Start·of·section·namespace·SILLY |
41 | 3 | 39 | 32namespace·SILLY |
40 | 33{ | ||
41 | 34inline·TGAImageContext::TGAImageContext(size_t·width,·size_t·height) | ||
42 | 35·:·ImageContext(width,·height) | ||
42 | 36{ | 43 | 36{ |
44 | 37} | ||
45 | 38 | ||
46 | 39inline·TGAImageContext::~TGAImageContext() | ||
47 | 40{ | ||
48 | 41} | ||
49 | 42 | ||
43 | 37class·ImageLoader;·//·Forward·declaration | ||
44 | _\x84_\x82typedef·std::vector<ImageLoader*>·_\x8I_\x8m_\x8a_\x8g_\x8e_\x8L_\x8o_\x8a_\x8d_\x8e_\x8r_\x8L_\x8i_\x8s_\x8t; | ||
45 | 43 | ||
46 | 44#if·defined(_MSC_VER) | ||
47 | 45 | ||
48 | 46#·pragma·warning(push) | ||
49 | 47 | ||
50 | 48#·pragma·warning(disable·:·4251) | ||
51 | 49 | ||
52 | 50#endif | ||
53 | 51 | ||
54 | _\x85_\x86class·SILLY_EXPORT·_\x8I_\x8m_\x8a_\x8g_\x8e_\x8L_\x8o_\x8a_\x8d_\x8e_\x8r_\x8M_\x8a_\x8n_\x8a_\x8g_\x8e_\x8r | ||
55 | 57{ | ||
56 | 58 | ||
57 | 59public: | ||
58 | 64·_\x8I_\x8m_\x8a_\x8g_\x8e_\x8L_\x8o_\x8a_\x8d_\x8e_\x8r_\x8M_\x8a_\x8n_\x8a_\x8g_\x8e_\x8r(); | ||
59 | 69·_\x8~_\x8I_\x8m_\x8a_\x8g_\x8e_\x8L_\x8o_\x8a_\x8d_\x8e_\x8r_\x8M_\x8a_\x8n_\x8a_\x8g_\x8e_\x8r(); | ||
60 | _\x87_\x84·ImageLoaderList::iterator·_\x8b_\x8e_\x8g_\x8i_\x8n(); | ||
61 | _\x87_\x89·ImageLoaderList::iterator·_\x8e_\x8n_\x8d(); | ||
62 | _\x88_\x86·void·_\x8a_\x8d_\x8d(_\x8I_\x8m_\x8a_\x8g_\x8e_\x8L_\x8o_\x8a_\x8d_\x8e_\x8r*·loader); | ||
63 | 87 | ||
64 | 88private: | ||
65 | 89·_\x8I_\x8m_\x8a_\x8g_\x8e_\x8L_\x8o_\x8a_\x8d_\x8e_\x8r_\x8L_\x8i_\x8s_\x8t·d_loaders; | ||
66 | 90 | ||
67 | 91public: | ||
68 | 92·static·_\x8I_\x8m_\x8a_\x8g_\x8e_\x8L_\x8o_\x8a_\x8d_\x8e_\x8r_\x8M_\x8a_\x8n_\x8a_\x8g_\x8e_\x8r*·getSingletonPtr(); | ||
69 | 93·static·_\x8I_\x8m_\x8a_\x8g_\x8e_\x8L_\x8o_\x8a_\x8d_\x8e_\x8r_\x8M_\x8a_\x8n_\x8a_\x8g_\x8e_\x8r&·getSingleton(); | ||
70 | 94 | ||
71 | 95private: | ||
72 | 96·static·_\x8I_\x8m_\x8a_\x8g_\x8e_\x8L_\x8o_\x8a_\x8d_\x8e_\x8r_\x8M_\x8a_\x8n_\x8a_\x8g_\x8e_\x8r*·d_instance; | ||
73 | 97 | ||
74 | 98·//·Disabled·operations | ||
75 | 99·_\x8I_\x8m_\x8a_\x8g_\x8e_\x8L_\x8o_\x8a_\x8d_\x8e_\x8r_\x8M_\x8a_\x8n_\x8a_\x8g_\x8e_\x8r(_\x8I_\x8m_\x8a_\x8g_\x8e_\x8L_\x8o_\x8a_\x8d_\x8e_\x8r_\x8M_\x8a_\x8n_\x8a_\x8g_\x8e_\x8r&); | ||
76 | 100·_\x8I_\x8m_\x8a_\x8g_\x8e_\x8L_\x8o_\x8a_\x8d_\x8e_\x8r_\x8M_\x8a_\x8n_\x8a_\x8g_\x8e_\x8r&·operator=(_\x8I_\x8m_\x8a_\x8g_\x8e_\x8L_\x8o_\x8a_\x8d_\x8e_\x8r_\x8M_\x8a_\x8n_\x8a_\x8g_\x8e_\x8r&); | ||
77 | 101}; | ||
78 | 102 | ||
79 | 103#if·defined(_MSC_VER) | ||
80 | 104 | ||
81 | 105#·pragma·warning(pop) | ||
82 | 106 | ||
83 | 107#endif | ||
84 | 108 | ||
85 | 50 | 43}·//·End·of·section·namespace·SILLY | |
51 | 44 | ||
86 | 110 | ||
87 | 111//·Inclue·inline·function·when·needed | ||
88 | 112#ifdef·SILLY_OPT_INLINE | ||
89 | 113#include·"SILLYImageLoaderManager.icpp" | ||
90 | 114#endif | ||
91 | 115 | ||
92 | 116#endif·//·end·of·guard·_SILLYImageLoaderManager_h_ | ||
93 | _\x8S_\x8I_\x8L_\x8L_\x8Y | ||
94 | Simple·Image·Loading·LibrarY·namespace. | ||
95 | D\x8De\x8ef\x8fi\x8in\x8ni\x8it\x8ti\x8io\x8on\x8n·_\x8S_\x8I_\x8L_\x8L_\x8Y_\x8J_\x8P_\x8G_\x8I_\x8m_\x8a_\x8g_\x8e_\x8C_\x8o_\x8n_\x8t_\x8e_\x8x_\x8t_\x8._\x8c_\x8p_\x8p_\x8:_\x84_\x86 | ||
96 | _\x8S_\x8I_\x8L_\x8L_\x8Y_\x8:_\x8:_\x8I_\x8m_\x8a_\x8g_\x8e_\x8L_\x8o_\x8a_\x8d_\x8e_\x8r_\x8L_\x8i_\x8s_\x8t | ||
97 | std::vector<·ImageLoader·*·>·ImageLoaderList | ||
98 | Typename·for·a·collection·of·image·loader. | ||
99 | D\x8De\x8ef\x8fi\x8in\x8ni\x8it\x8ti\x8io\x8on\x8n·_\x8S_\x8I_\x8L_\x8L_\x8Y_\x8I_\x8m_\x8a_\x8g_\x8e_\x8L_\x8o_\x8a_\x8d_\x8e_\x8r_\x8M_\x8a_\x8n_\x8a_\x8g_\x8e_\x8r_\x8._\x8h_\x8:_\x84_\x82 | ||
100 | _\x8S_\x8I_\x8L_\x8L_\x8Y_\x8:_\x8:_\x8I_\x8m_\x8a_\x8g_\x8e_\x8L_\x8o_\x8a_\x8d_\x8e_\x8r | ||
101 | This·is·an·abstract·class·that·define·the·interface·of·all·image·loader. | ||
102 | D\x8De\x8ef\x8fi\x8in\x8ni\x8it\x8ti\x8io\x8on\x8n·_\x8S_\x8I_\x8L_\x8L_\x8Y_\x8I_\x8m_\x8a_\x8g_\x8e_\x8L_\x8o_\x8a_\x8d_\x8e_\x8r_\x8._\x8h_\x8:_\x84_\x87 | ||
103 | _\x8S_\x8I_\x8L_\x8L_\x8Y_\x8:_\x8:_\x8I_\x8m_\x8a_\x8g_\x8e_\x8L_\x8o_\x8a_\x8d_\x8e_\x8r_\x8M_\x8a_\x8n_\x8a_\x8g_\x8e_\x8r | ||
104 | Manage·the·list·of·all·supported·ImageLoader. | ||
105 | D\x8De\x8ef\x8fi\x8in\x8ni\x8it\x8ti\x8io\x8on\x8n·_\x8S_\x8I_\x8L_\x8L_\x8Y_\x8I_\x8m_\x8a_\x8g_\x8e_\x8L_\x8o_\x8a_\x8d_\x8e_\x8r_\x8M_\x8a_\x8n_\x8a_\x8g_\x8e_\x8r_\x8._\x8h_\x8:_\x85_\x87 | ||
106 | _\x8S_\x8I_\x8L_\x8L_\x8Y_\x8:_\x8:_\x8I_\x8m_\x8a_\x8g_\x8e_\x8L_\x8o_\x8a_\x8d_\x8e_\x8r_\x8M_\x8a_\x8n_\x8a_\x8g_\x8e_\x8r_\x8:_\x8:_\x8a_\x8d_\x8d | ||
107 | void·add(ImageLoader·*loader) | ||
108 | Register·an·ImageLoader·object. | ||
109 | _\x8S_\x8I_\x8L_\x8L_\x8Y_\x8:_\x8:_\x8I_\x8m_\x8a_\x8g_\x8e_\x8L_\x8o_\x8a_\x8d_\x8e_\x8r_\x8M_\x8a_\x8n_\x8a_\x8g_\x8e_\x8r_\x8:_\x8:_\x8b_\x8e_\x8g_\x8i_\x8n | ||
110 | ImageLoaderList::iterator·begin() | ||
111 | Get·an·iterator·to·the·first·ImageLoader·registered. | ||
112 | _\x8S_\x8I_\x8L_\x8L_\x8Y_\x8:_\x8:_\x8I_\x8m_\x8a_\x8g_\x8e_\x8L_\x8o_\x8a_\x8d_\x8e_\x8r_\x8M_\x8a_\x8n_\x8a_\x8g_\x8e_\x8r_\x8:_\x8:_\x8e_\x8n_\x8d | ||
113 | ImageLoaderList::iterator·end() | ||
114 | Get·an·iterator·to·the·first·not·registered·ImageLoader. | ||
115 | =============================================================================== | 52 | =============================================================================== |
116 | ·····Generated·by _\x8[_\x8d_\x8o_\x8x_\x8y_\x8g_\x8e_\x8n_\x8]·1.9.8 | 53 | ·····Generated·by _\x8[_\x8d_\x8o_\x8x_\x8y_\x8g_\x8e_\x8n_\x8]·1.9.8 |
Offset 1, 15 lines modified | Offset 1, 15 lines modified | ||
1 | <!DOCTYPE·html·PUBLIC·"-//W3C//DTD·XHTML·1.0·Transitional//EN"·"https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> | 1 | <!DOCTYPE·html·PUBLIC·"-//W3C//DTD·XHTML·1.0·Transitional//EN"·"https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> |
2 | <html·xmlns="http://www.w3.org/1999/xhtml"·lang="en-US"> | 2 | <html·xmlns="http://www.w3.org/1999/xhtml"·lang="en-US"> |
3 | <head> | 3 | <head> |
4 | <meta·http-equiv="Content-Type"·content="text/xhtml;charset=UTF-8"/> | 4 | <meta·http-equiv="Content-Type"·content="text/xhtml;charset=UTF-8"/> |
5 | <meta·http-equiv="X-UA-Compatible"·content="IE=11"/> | 5 | <meta·http-equiv="X-UA-Compatible"·content="IE=11"/> |
6 | <meta·name="generator"·content="Doxygen·1.9.8"/> | 6 | <meta·name="generator"·content="Doxygen·1.9.8"/> |
7 | <meta·name="viewport"·content="width=device-width,·initial-scale=1"/> | 7 | <meta·name="viewport"·content="width=device-width,·initial-scale=1"/> |
8 | <title>Simple·Image·Loading·LibrarY:·/build/reproducible-path/silly-0.1.0/include/SILLY | 8 | <title>Simple·Image·Loading·LibrarY:·/build/reproducible-path/silly-0.1.0/include/loaders/SILLYPNGImageContext.icpp·Source·File</title> |
9 | <link·href="tabs.css"·rel="stylesheet"·type="text/css"/> | 9 | <link·href="tabs.css"·rel="stylesheet"·type="text/css"/> |
10 | <script·type="text/javascript"·src="jquery.js"></script> | 10 | <script·type="text/javascript"·src="jquery.js"></script> |
11 | <script·type="text/javascript"·src="dynsections.js"></script> | 11 | <script·type="text/javascript"·src="dynsections.js"></script> |
12 | <link·href="doxygen.css"·rel="stylesheet"·type="text/css"·/> | 12 | <link·href="doxygen.css"·rel="stylesheet"·type="text/css"·/> |
13 | </head> | 13 | </head> |
14 | <body> | 14 | <body> |
15 | <div·id="top"><!--·do·not·remove·this·div,·it·is·closed·by·doxygen!·--> | 15 | <div·id="top"><!--·do·not·remove·this·div,·it·is·closed·by·doxygen!·--> |
Offset 40, 27 lines modified | Offset 40, 27 lines modified | ||
40 | <script·type="text/javascript"> | 40 | <script·type="text/javascript"> |
41 | /*·@license·magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt·MIT·*/ | 41 | /*·@license·magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt·MIT·*/ |
42 | $(document).ready(function()·{·init_codefold(0);·}); | 42 | $(document).ready(function()·{·init_codefold(0);·}); |
43 | /*·@license-end·*/ | 43 | /*·@license-end·*/ |
44 | </script> | 44 | </script> |
45 | <div·id="nav-path"·class="navpath"> | 45 | <div·id="nav-path"·class="navpath"> |
46 | ··<ul> | 46 | ··<ul> |
47 | <li·class="navelem"><a·class="el"·href="dir_4fef79e7177ba769987a8da36c892c5f.html">build</a></li><li·class="navelem"><a·class="el"·href="dir_9def6061848686aab7e6212bb499d615.html">reproducible-path</a></li><li·class="navelem"><a·class="el"·href="dir_74170d5b58cefb7cb5a86fc552b183a3.html">silly-0.1.0</a></li><li·class="navelem"><a·class="el"·href="dir_0d87e2e7ddaae8a2a8572c0afc59fe0d.html">include</a></li>··</ul> | 47 | <li·class="navelem"><a·class="el"·href="dir_4fef79e7177ba769987a8da36c892c5f.html">build</a></li><li·class="navelem"><a·class="el"·href="dir_9def6061848686aab7e6212bb499d615.html">reproducible-path</a></li><li·class="navelem"><a·class="el"·href="dir_74170d5b58cefb7cb5a86fc552b183a3.html">silly-0.1.0</a></li><li·class="navelem"><a·class="el"·href="dir_0d87e2e7ddaae8a2a8572c0afc59fe0d.html">include</a></li><li·class="navelem"><a·class="el"·href="dir_7cea72c962538e8359f822070f2512f7.html">loaders</a></li>··</ul> |
48 | </div> | 48 | </div> |
49 | </div><!--·top·--> | 49 | </div><!--·top·--> |
50 | <div·class="header"> | 50 | <div·class="header"> |
51 | ··<div·class="headertitle"><div·class="title">SILLY | 51 | ··<div·class="headertitle"><div·class="title">SILLYPNGImageContext.icpp</div></div> |
52 | </div><!--header--> | 52 | </div><!--header--> |
53 | <div·class="contents"> | 53 | <div·class="contents"> |
54 | <div·class="fragment"><div·class="line"><a·id="l00001"·name="l00001"></a><span·class="lineno">····1</span>/***********************************************************************</div> | 54 | <div·class="fragment"><div·class="line"><a·id="l00001"·name="l00001"></a><span·class="lineno">····1</span>/***********************************************************************</div> |
55 | <div·class="line"><a·id="l00002"·name="l00002"></a><span·class="lineno">····2</span>····filename:···SILLY | 55 | <div·class="line"><a·id="l00002"·name="l00002"></a><span·class="lineno">····2</span>····filename:···SILLYPNGImageContext.icpp·</div> |
56 | <div·class="line"><a·id="l00003"·name="l00003"></a><span·class="lineno">····3</span>····created:···· | 56 | <div·class="line"><a·id="l00003"·name="l00003"></a><span·class="lineno">····3</span>····created:····11·Jun·2006</div> |
57 | <div·class="line"><a·id="l00004"·name="l00004"></a><span·class="lineno">····4</span>····author:·····Olivier·Delannoy</div> | 57 | <div·class="line"><a·id="l00004"·name="l00004"></a><span·class="lineno">····4</span>····author:·····Olivier·Delannoy</div> |
58 | <div·class="line"><a·id="l00005"·name="l00005"></a><span·class="lineno">····5</span>·</div> | 58 | <div·class="line"><a·id="l00005"·name="l00005"></a><span·class="lineno">····5</span>·</div> |
59 | <div·class="line"><a·id="l00006"·name="l00006"></a><span·class="lineno">····6</span>····purpose:····Inline· | 59 | <div·class="line"><a·id="l00006"·name="l00006"></a><span·class="lineno">····6</span>····purpose:····Inline·definition·for·PNGImageContext·class··</div> |
60 | <div·class="line"><a·id="l00007"·name="l00007"></a><span·class="lineno">····7</span>*************************************************************************/</div> | 60 | <div·class="line"><a·id="l00007"·name="l00007"></a><span·class="lineno">····7</span>*************************************************************************/</div> |
61 | <div·class="line"><a·id="l00008"·name="l00008"></a><span·class="lineno">····8</span>/***************************************************************************</div> | 61 | <div·class="line"><a·id="l00008"·name="l00008"></a><span·class="lineno">····8</span>/***************************************************************************</div> |
62 | <div·class="line"><a·id="l00009"·name="l00009"></a><span·class="lineno">····9</span>·*···Copyright·(C)·2004·-·2006·Paul·D·Turner·&·The·CEGUI·Development·Team</div> | 62 | <div·class="line"><a·id="l00009"·name="l00009"></a><span·class="lineno">····9</span>·*···Copyright·(C)·2004·-·2006·Paul·D·Turner·&·The·CEGUI·Development·Team</div> |
63 | <div·class="line"><a·id="l00010"·name="l00010"></a><span·class="lineno">···10</span>·*</div> | 63 | <div·class="line"><a·id="l00010"·name="l00010"></a><span·class="lineno">···10</span>·*</div> |
64 | <div·class="line"><a·id="l00011"·name="l00011"></a><span·class="lineno">···11</span>·*···Permission·is·hereby·granted,·free·of·charge,·to·any·person·obtaining</div> | 64 | <div·class="line"><a·id="l00011"·name="l00011"></a><span·class="lineno">···11</span>·*···Permission·is·hereby·granted,·free·of·charge,·to·any·person·obtaining</div> |
65 | <div·class="line"><a·id="l00012"·name="l00012"></a><span·class="lineno">···12</span>·*···a·copy·of·this·software·and·associated·documentation·files·(the</div> | 65 | <div·class="line"><a·id="l00012"·name="l00012"></a><span·class="lineno">···12</span>·*···a·copy·of·this·software·and·associated·documentation·files·(the</div> |
66 | <div·class="line"><a·id="l00013"·name="l00013"></a><span·class="lineno">···13</span>·*···"Software"),·to·deal·in·the·Software·without·restriction,·including</div> | 66 | <div·class="line"><a·id="l00013"·name="l00013"></a><span·class="lineno">···13</span>·*···"Software"),·to·deal·in·the·Software·without·restriction,·including</div> |
Offset 80, 31 lines modified | Offset 80, 17 lines modified | ||
80 | <div·class="line"><a·id="l00027"·name="l00027"></a><span·class="lineno">···27</span>·*···ARISING·FROM,·OUT·OF·OR·IN·CONNECTION·WITH·THE·SOFTWARE·OR·THE·USE·OR</div> | 80 | <div·class="line"><a·id="l00027"·name="l00027"></a><span·class="lineno">···27</span>·*···ARISING·FROM,·OUT·OF·OR·IN·CONNECTION·WITH·THE·SOFTWARE·OR·THE·USE·OR</div> |
81 | <div·class="line"><a·id="l00028"·name="l00028"></a><span·class="lineno">···28</span>·*···OTHER·DEALINGS·IN·THE·SOFTWARE.</div> | 81 | <div·class="line"><a·id="l00028"·name="l00028"></a><span·class="lineno">···28</span>·*···OTHER·DEALINGS·IN·THE·SOFTWARE.</div> |
82 | <div·class="line"><a·id="l00029"·name="l00029"></a><span·class="lineno">···29</span>·***************************************************************************/</div> | 82 | <div·class="line"><a·id="l00029"·name="l00029"></a><span·class="lineno">···29</span>·***************************************************************************/</div> |
83 | <div·class="line"><a·id="l00030"·name="l00030"></a><span·class="lineno">···30</span>·</div> | 83 | <div·class="line"><a·id="l00030"·name="l00030"></a><span·class="lineno">···30</span>·</div> |
84 | <div·class="line"><a·id="l00031"·name="l00031"></a><span·class="lineno">···31</span>//·Start·of·section·namespace·SILLY</div> | 84 | <div·class="line"><a·id="l00031"·name="l00031"></a><span·class="lineno">···31</span>//·Start·of·section·namespace·SILLY</div> |
85 | <div·class="line"><a·id="l00032"·name="l00032"></a><span·class="lineno">···32</span>namespace·SILLY</div> | 85 | <div·class="line"><a·id="l00032"·name="l00032"></a><span·class="lineno">···32</span>namespace·SILLY</div> |
86 | <div·class="line"><a·id="l00033"·name="l00033"></a><span·class="lineno">···33</span>{</div> | 86 | <div·class="line"><a·id="l00033"·name="l00033"></a><span·class="lineno">···33</span>{</div> |
87 | <div·class="line"><a·id="l00034"·name="l00034"></a><span·class="lineno">···34</span>inline·bool·FileDataSource::isValid()·const·</div> | ||
88 | <div·class="line"><a·id="l0003 | 87 | <div·class="line"><a·id="l00034"·name="l00034"></a><span·class="lineno">···34</span>····</div> |
89 | <div·class="line"><a·id="l0003 | 88 | <div·class="line"><a·id="l00035"·name="l00035"></a><span·class="lineno">···35</span>}·//·End·of·section·namespace·SILLY</div> |
90 | <div·class="line"><a·id="l00037"·name="l00037"></a><span·class="lineno">···37</span>}</div> | ||
91 | <div·class="line"><a·id="l0003 | 89 | <div·class="line"><a·id="l00036"·name="l00036"></a><span·class="lineno">···36</span>·</div> |
92 | <div·class="line"><a·id="l00039"·name="l00039"></a><span·class="lineno">···39</span>inline·const·byte*·FileDataSource::getDataPtr()·const</div> | ||
93 | <div·class="line"><a·id="l00040"·name="l00040"></a><span·class="lineno">···40</span>{</div> | ||
94 | <div·class="line"><a·id="l00041"·name="l00041"></a><span·class="lineno">···41</span>····return·d_bytes;</div> | ||
95 | <div·class="line"><a·id="l00042"·name="l00042"></a><span·class="lineno">···42</span>}</div> | ||
96 | <div·class="line"><a·id="l00043"·name="l00043"></a><span·class="lineno">···43</span>·</div> | ||
97 | <div·class="line"><a·id="l00044"·name="l00044"></a><span·class="lineno">···44</span>inline·size_t·FileDataSource::getSize()·const</div> | ||
98 | <div·class="line"><a·id="l00045"·name="l00045"></a><span·class="lineno">···45</span>{</div> | ||
99 | <div·class="line"><a·id="l00046"·name="l00046"></a><span·class="lineno">···46</span>····return·d_size;</div> | ||
100 | <div·class="line"><a·id="l00047"·name="l00047"></a><span·class="lineno">···47</span>}</div> | ||
101 | <div·class="line"><a·id="l00048"·name="l00048"></a><span·class="lineno">···48</span>·</div> | ||
102 | <div·class="line"><a·id="l00049"·name="l00049"></a><span·class="lineno">···49</span>}·//·End·of·section·namespace·SILLY</div> | ||
103 | <div·class="line"><a·id="l00050"·name="l00050"></a><span·class="lineno">···50</span>·</div> | ||
104 | </div><!--·fragment·--></div><!--·contents·--> | 90 | </div><!--·fragment·--></div><!--·contents·--> |
105 | <!--·start·footer·part·--> | 91 | <!--·start·footer·part·--> |
106 | <hr·class="footer"/><address·class="footer"><small> | 92 | <hr·class="footer"/><address·class="footer"><small> |
107 | Generated·by <a·href="https://www.doxygen.org/index.html"><img·class="footer"·src="doxygen.svg"·width="104"·height="31"·alt="doxygen"/></a>·1.9.8 | 93 | Generated·by <a·href="https://www.doxygen.org/index.html"><img·class="footer"·src="doxygen.svg"·width="104"·height="31"·alt="doxygen"/></a>·1.9.8 |
108 | </small></address> | 94 | </small></address> |
109 | </body> | 95 | </body> |
110 | </html> | 96 | </html> |
Offset 1, 19 lines modified | Offset 1, 20 lines modified | ||
1 | Simple·Image·Loading·LibrarY 0.1.0 | 1 | Simple·Image·Loading·LibrarY 0.1.0 |
2 | ····*·_\x8b_\x8u_\x8i_\x8l_\x8d | 2 | ····*·_\x8b_\x8u_\x8i_\x8l_\x8d |
3 | ····*·_\x8r_\x8e_\x8p_\x8r_\x8o_\x8d_\x8u_\x8c_\x8i_\x8b_\x8l_\x8e_\x8-_\x8p_\x8a_\x8t_\x8h | 3 | ····*·_\x8r_\x8e_\x8p_\x8r_\x8o_\x8d_\x8u_\x8c_\x8i_\x8b_\x8l_\x8e_\x8-_\x8p_\x8a_\x8t_\x8h |
4 | ····*·_\x8s_\x8i_\x8l_\x8l_\x8y_\x8-_\x80_\x8._\x81_\x8._\x80 | 4 | ····*·_\x8s_\x8i_\x8l_\x8l_\x8y_\x8-_\x80_\x8._\x81_\x8._\x80 |
5 | ····*·_\x8i_\x8n_\x8c_\x8l_\x8u_\x8d_\x8e | 5 | ····*·_\x8i_\x8n_\x8c_\x8l_\x8u_\x8d_\x8e |
6 | 6 | ····*·_.l_.o_.a_.d_.e_.r_.s | |
7 | SILLYPNGImageContext.icpp | ||
7 | 1/*********************************************************************** | 8 | 1/*********************************************************************** |
8 | 2·filename:·SILLY | 9 | 2·filename:·SILLYPNGImageContext.icpp |
9 | 3·created:· | 10 | 3·created:·11·Jun·2006 |
10 | 4·author:·Olivier·Delannoy | 11 | 4·author:·Olivier·Delannoy |
11 | 5 | 12 | 5 |
12 | 6·purpose:·Inline· | 13 | 6·purpose:·Inline·definition·for·PNGImageContext·class |
13 | 7*************************************************************************/ | 14 | 7*************************************************************************/ |
14 | 8/*************************************************************************** | 15 | 8/*************************************************************************** |
15 | 9·*·Copyright·(C)·2004·-·2006·Paul·D·Turner·&·The·CEGUI·Development·Team | 16 | 9·*·Copyright·(C)·2004·-·2006·Paul·D·Turner·&·The·CEGUI·Development·Team |
16 | 10·* | 17 | 10·* |
17 | 11·*·Permission·is·hereby·granted,·free·of·charge,·to·any·person·obtaining | 18 | 11·*·Permission·is·hereby·granted,·free·of·charge,·to·any·person·obtaining |
18 | 12·*·a·copy·of·this·software·and·associated·documentation·files·(the | 19 | 12·*·a·copy·of·this·software·and·associated·documentation·files·(the |
19 | 13·*·"Software"),·to·deal·in·the·Software·without·restriction,·including | 20 | 13·*·"Software"),·to·deal·in·the·Software·without·restriction,·including |
Offset 33, 26 lines modified | Offset 34, 12 lines modified | ||
33 | 27·*·ARISING·FROM,·OUT·OF·OR·IN·CONNECTION·WITH·THE·SOFTWARE·OR·THE·USE·OR | 34 | 27·*·ARISING·FROM,·OUT·OF·OR·IN·CONNECTION·WITH·THE·SOFTWARE·OR·THE·USE·OR |
34 | 28·*·OTHER·DEALINGS·IN·THE·SOFTWARE. | 35 | 28·*·OTHER·DEALINGS·IN·THE·SOFTWARE. |
35 | 29·***************************************************************************/ | 36 | 29·***************************************************************************/ |
36 | 30 | 37 | 30 |
37 | 31//·Start·of·section·namespace·SILLY | 38 | 31//·Start·of·section·namespace·SILLY |
38 | 32namespace·SILLY | 39 | 32namespace·SILLY |
39 | 33{ | 40 | 33{ |
41 | 34 | ||
40 | 34inline·bool·FileDataSource::isValid()·const | ||
41 | 35{ | ||
42 | 36·return·d_error; | ||
43 | 37} | ||
44 | 38 | ||
45 | 39inline·const·byte*·FileDataSource::getDataPtr()·const | ||
46 | 40{ | ||
47 | 41·return·d_bytes; | ||
48 | 42} | ||
49 | 43 | ||
50 | 44inline·size_t·FileDataSource::getSize()·const | ||
51 | 45{ | ||
52 | 46·return·d_size; | ||
53 | 47} | ||
54 | 48 | ||
55 | 42 | 35}·//·End·of·section·namespace·SILLY | |
56 | 43 | 36 | |
57 | =============================================================================== | 44 | =============================================================================== |
58 | ·····Generated·by _\x8[_\x8d_\x8o_\x8x_\x8y_\x8g_\x8e_\x8n_\x8]·1.9.8 | 45 | ·····Generated·by _\x8[_\x8d_\x8o_\x8x_\x8y_\x8g_\x8e_\x8n_\x8]·1.9.8 |
Offset 1, 15 lines modified | Offset 1, 15 lines modified | ||
1 | <!DOCTYPE·html·PUBLIC·"-//W3C//DTD·XHTML·1.0·Transitional//EN"·"https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> | 1 | <!DOCTYPE·html·PUBLIC·"-//W3C//DTD·XHTML·1.0·Transitional//EN"·"https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> |
2 | <html·xmlns="http://www.w3.org/1999/xhtml"·lang="en-US"> | 2 | <html·xmlns="http://www.w3.org/1999/xhtml"·lang="en-US"> |
3 | <head> | 3 | <head> |
4 | <meta·http-equiv="Content-Type"·content="text/xhtml;charset=UTF-8"/> | 4 | <meta·http-equiv="Content-Type"·content="text/xhtml;charset=UTF-8"/> |
5 | <meta·http-equiv="X-UA-Compatible"·content="IE=11"/> | 5 | <meta·http-equiv="X-UA-Compatible"·content="IE=11"/> |
6 | <meta·name="generator"·content="Doxygen·1.9.8"/> | 6 | <meta·name="generator"·content="Doxygen·1.9.8"/> |
7 | <meta·name="viewport"·content="width=device-width,·initial-scale=1"/> | 7 | <meta·name="viewport"·content="width=device-width,·initial-scale=1"/> |
8 | <title>Simple·Image·Loading·LibrarY:·/build/reproducible-path/silly-0.1.0/include/SILLY | 8 | <title>Simple·Image·Loading·LibrarY:·/build/reproducible-path/silly-0.1.0/include/loaders/SILLYPNGImageLoader.icpp·Source·File</title> |
9 | <link·href="tabs.css"·rel="stylesheet"·type="text/css"/> | 9 | <link·href="tabs.css"·rel="stylesheet"·type="text/css"/> |
10 | <script·type="text/javascript"·src="jquery.js"></script> | 10 | <script·type="text/javascript"·src="jquery.js"></script> |
11 | <script·type="text/javascript"·src="dynsections.js"></script> | 11 | <script·type="text/javascript"·src="dynsections.js"></script> |
12 | <link·href="doxygen.css"·rel="stylesheet"·type="text/css"·/> | 12 | <link·href="doxygen.css"·rel="stylesheet"·type="text/css"·/> |
13 | </head> | 13 | </head> |
14 | <body> | 14 | <body> |
15 | <div·id="top"><!--·do·not·remove·this·div,·it·is·closed·by·doxygen!·--> | 15 | <div·id="top"><!--·do·not·remove·this·div,·it·is·closed·by·doxygen!·--> |
Offset 40, 27 lines modified | Offset 40, 27 lines modified | ||
40 | <script·type="text/javascript"> | 40 | <script·type="text/javascript"> |
41 | /*·@license·magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt·MIT·*/ | 41 | /*·@license·magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt·MIT·*/ |
42 | $(document).ready(function()·{·init_codefold(0);·}); | 42 | $(document).ready(function()·{·init_codefold(0);·}); |
43 | /*·@license-end·*/ | 43 | /*·@license-end·*/ |
44 | </script> | 44 | </script> |
45 | <div·id="nav-path"·class="navpath"> | 45 | <div·id="nav-path"·class="navpath"> |
46 | ··<ul> | 46 | ··<ul> |
47 | <li·class="navelem"><a·class="el"·href="dir_4fef79e7177ba769987a8da36c892c5f.html">build</a></li><li·class="navelem"><a·class="el"·href="dir_9def6061848686aab7e6212bb499d615.html">reproducible-path</a></li><li·class="navelem"><a·class="el"·href="dir_74170d5b58cefb7cb5a86fc552b183a3.html">silly-0.1.0</a></li><li·class="navelem"><a·class="el"·href="dir_0d87e2e7ddaae8a2a8572c0afc59fe0d.html">include</a></li>··</ul> | 47 | <li·class="navelem"><a·class="el"·href="dir_4fef79e7177ba769987a8da36c892c5f.html">build</a></li><li·class="navelem"><a·class="el"·href="dir_9def6061848686aab7e6212bb499d615.html">reproducible-path</a></li><li·class="navelem"><a·class="el"·href="dir_74170d5b58cefb7cb5a86fc552b183a3.html">silly-0.1.0</a></li><li·class="navelem"><a·class="el"·href="dir_0d87e2e7ddaae8a2a8572c0afc59fe0d.html">include</a></li><li·class="navelem"><a·class="el"·href="dir_7cea72c962538e8359f822070f2512f7.html">loaders</a></li>··</ul> |
48 | </div> | 48 | </div> |
49 | </div><!--·top·--> | 49 | </div><!--·top·--> |
50 | <div·class="header"> | 50 | <div·class="header"> |
51 | ··<div·class="headertitle"><div·class="title">SILLY | 51 | ··<div·class="headertitle"><div·class="title">SILLYPNGImageLoader.icpp</div></div> |
52 | </div><!--header--> | 52 | </div><!--header--> |
53 | <div·class="contents"> | 53 | <div·class="contents"> |
54 | <div·class="fragment"><div·class="line"><a·id="l00001"·name="l00001"></a><span·class="lineno">····1</span>/***********************************************************************</div> | 54 | <div·class="fragment"><div·class="line"><a·id="l00001"·name="l00001"></a><span·class="lineno">····1</span>/***********************************************************************</div> |
55 | <div·class="line"><a·id="l00002"·name="l00002"></a><span·class="lineno">····2</span>···· | 55 | <div·class="line"><a·id="l00002"·name="l00002"></a><span·class="lineno">····2</span>····filename:···SILLYPNGImageLoader.icpp·</div> |
56 | <div·class="line"><a·id="l00003"·name="l00003"></a><span·class="lineno">····3</span>····created:····1 | 56 | <div·class="line"><a·id="l00003"·name="l00003"></a><span·class="lineno">····3</span>····created:····11·Jun·2006</div> |
57 | <div·class="line"><a·id="l00004"·name="l00004"></a><span·class="lineno">····4</span>····author:·····Olivier·Delannoy</div> | 57 | <div·class="line"><a·id="l00004"·name="l00004"></a><span·class="lineno">····4</span>····author:·····Olivier·Delannoy</div> |
58 | <div·class="line"><a·id="l00005"·name="l00005"></a><span·class="lineno">····5</span>·</div> | 58 | <div·class="line"><a·id="l00005"·name="l00005"></a><span·class="lineno">····5</span>·</div> |
59 | <div·class="line"><a·id="l00006"·name="l00006"></a><span·class="lineno">····6</span>····purpose:····Inline· | 59 | <div·class="line"><a·id="l00006"·name="l00006"></a><span·class="lineno">····6</span>····purpose:····Inline·definition·for·PNGImageLoader··</div> |
60 | <div·class="line"><a·id="l00007"·name="l00007"></a><span·class="lineno">····7</span>*************************************************************************/</div> | 60 | <div·class="line"><a·id="l00007"·name="l00007"></a><span·class="lineno">····7</span>*************************************************************************/</div> |
61 | <div·class="line"><a·id="l00008"·name="l00008"></a><span·class="lineno">····8</span>/***************************************************************************</div> | 61 | <div·class="line"><a·id="l00008"·name="l00008"></a><span·class="lineno">····8</span>/***************************************************************************</div> |
62 | <div·class="line"><a·id="l00009"·name="l00009"></a><span·class="lineno">····9</span>·*···Copyright·(C)·2004·-·2006·Paul·D·Turner·&·The·CEGUI·Development·Team</div> | 62 | <div·class="line"><a·id="l00009"·name="l00009"></a><span·class="lineno">····9</span>·*···Copyright·(C)·2004·-·2006·Paul·D·Turner·&·The·CEGUI·Development·Team</div> |
63 | <div·class="line"><a·id="l00010"·name="l00010"></a><span·class="lineno">···10</span>·*</div> | 63 | <div·class="line"><a·id="l00010"·name="l00010"></a><span·class="lineno">···10</span>·*</div> |
64 | <div·class="line"><a·id="l00011"·name="l00011"></a><span·class="lineno">···11</span>·*···Permission·is·hereby·granted,·free·of·charge,·to·any·person·obtaining</div> | 64 | <div·class="line"><a·id="l00011"·name="l00011"></a><span·class="lineno">···11</span>·*···Permission·is·hereby·granted,·free·of·charge,·to·any·person·obtaining</div> |
65 | <div·class="line"><a·id="l00012"·name="l00012"></a><span·class="lineno">···12</span>·*···a·copy·of·this·software·and·associated·documentation·files·(the</div> | 65 | <div·class="line"><a·id="l00012"·name="l00012"></a><span·class="lineno">···12</span>·*···a·copy·of·this·software·and·associated·documentation·files·(the</div> |
66 | <div·class="line"><a·id="l00013"·name="l00013"></a><span·class="lineno">···13</span>·*···"Software"),·to·deal·in·the·Software·without·restriction,·including</div> | 66 | <div·class="line"><a·id="l00013"·name="l00013"></a><span·class="lineno">···13</span>·*···"Software"),·to·deal·in·the·Software·without·restriction,·including</div> |
Offset 80, 27 lines modified | Offset 80, 17 lines modified | ||
80 | <div·class="line"><a·id="l00027"·name="l00027"></a><span·class="lineno">···27</span>·*···ARISING·FROM,·OUT·OF·OR·IN·CONNECTION·WITH·THE·SOFTWARE·OR·THE·USE·OR</div> | 80 | <div·class="line"><a·id="l00027"·name="l00027"></a><span·class="lineno">···27</span>·*···ARISING·FROM,·OUT·OF·OR·IN·CONNECTION·WITH·THE·SOFTWARE·OR·THE·USE·OR</div> |
81 | <div·class="line"><a·id="l00028"·name="l00028"></a><span·class="lineno">···28</span>·*···OTHER·DEALINGS·IN·THE·SOFTWARE.</div> | 81 | <div·class="line"><a·id="l00028"·name="l00028"></a><span·class="lineno">···28</span>·*···OTHER·DEALINGS·IN·THE·SOFTWARE.</div> |
82 | <div·class="line"><a·id="l00029"·name="l00029"></a><span·class="lineno">···29</span>·***************************************************************************/</div> | 82 | <div·class="line"><a·id="l00029"·name="l00029"></a><span·class="lineno">···29</span>·***************************************************************************/</div> |
83 | <div·class="line"><a·id="l00030"·name="l00030"></a><span·class="lineno">···30</span>·</div> | 83 | <div·class="line"><a·id="l00030"·name="l00030"></a><span·class="lineno">···30</span>·</div> |
84 | <div·class="line"><a·id="l00031"·name="l00031"></a><span·class="lineno">···31</span>//·Start·of·section·namespace·SILLY</div> | 84 | <div·class="line"><a·id="l00031"·name="l00031"></a><span·class="lineno">···31</span>//·Start·of·section·namespace·SILLY</div> |
85 | <div·class="line"><a·id="l00032"·name="l00032"></a><span·class="lineno">···32</span>namespace·SILLY</div> | 85 | <div·class="line"><a·id="l00032"·name="l00032"></a><span·class="lineno">···32</span>namespace·SILLY</div> |
86 | <div·class="line"><a·id="l00033"·name="l00033"></a><span·class="lineno">···33</span>{</div> | 86 | <div·class="line"><a·id="l00033"·name="l00033"></a><span·class="lineno">···33</span>{</div> |
87 | <div·class="line"><a·id="l00034"·name="l00034"></a><span·class="lineno">···34</span>·</div> | 87 | <div·class="line"><a·id="l00034"·name="l00034"></a><span·class="lineno">···34</span>····</div> |
88 | <div·class="line"><a·id="l00035"·name="l00035"></a><span·class="lineno">···35</span> | 88 | <div·class="line"><a·id="l00035"·name="l00035"></a><span·class="lineno">···35</span>}·//·End·of·section·namespace·SILLY</div> |
89 | <div·class="line"><a·id="l00036"·name="l00036"></a><span·class="lineno">···36</span> | 89 | <div·class="line"><a·id="l00036"·name="l00036"></a><span·class="lineno">···36</span>·</div> |
90 | <div·class="line"><a·id="l00037"·name="l00037"></a><span·class="lineno">···37</span>····return·d_bytes;</div> | ||
91 | <div·class="line"><a·id="l00038"·name="l00038"></a><span·class="lineno">···38</span>}</div> | ||
92 | <div·class="line"><a·id="l00039"·name="l00039"></a><span·class="lineno">···39</span>·</div> | ||
93 | <div·class="line"><a·id="l00040"·name="l00040"></a><span·class="lineno">···40</span>inline·size_t·MemoryDataSource::getSize()·const</div> | ||
94 | <div·class="line"><a·id="l00041"·name="l00041"></a><span·class="lineno">···41</span>{</div> | ||
95 | <div·class="line"><a·id="l00042"·name="l00042"></a><span·class="lineno">···42</span>····return·d_size;</div> | ||
96 | <div·class="line"><a·id="l00043"·name="l00043"></a><span·class="lineno">···43</span>}</div> | ||
97 | <div·class="line"><a·id="l00044"·name="l00044"></a><span·class="lineno">···44</span>····</div> | ||
98 | <div·class="line"><a·id="l00045"·name="l00045"></a><span·class="lineno">···45</span>}·//·End·of·section·namespace·SILLY</div> | ||
99 | <div·class="line"><a·id="l00046"·name="l00046"></a><span·class="lineno">···46</span>·</div> | ||
100 | </div><!--·fragment·--></div><!--·contents·--> | 90 | </div><!--·fragment·--></div><!--·contents·--> |
101 | <!--·start·footer·part·--> | 91 | <!--·start·footer·part·--> |
102 | <hr·class="footer"/><address·class="footer"><small> | 92 | <hr·class="footer"/><address·class="footer"><small> |
103 | Generated·by <a·href="https://www.doxygen.org/index.html"><img·class="footer"·src="doxygen.svg"·width="104"·height="31"·alt="doxygen"/></a>·1.9.8 | 93 | Generated·by <a·href="https://www.doxygen.org/index.html"><img·class="footer"·src="doxygen.svg"·width="104"·height="31"·alt="doxygen"/></a>·1.9.8 |
104 | </small></address> | 94 | </small></address> |
105 | </body> | 95 | </body> |
106 | </html> | 96 | </html> |
Offset 1, 19 lines modified | Offset 1, 20 lines modified | ||
1 | Simple·Image·Loading·LibrarY 0.1.0 | 1 | Simple·Image·Loading·LibrarY 0.1.0 |
2 | ····*·_\x8b_\x8u_\x8i_\x8l_\x8d | 2 | ····*·_\x8b_\x8u_\x8i_\x8l_\x8d |
3 | ····*·_\x8r_\x8e_\x8p_\x8r_\x8o_\x8d_\x8u_\x8c_\x8i_\x8b_\x8l_\x8e_\x8-_\x8p_\x8a_\x8t_\x8h | 3 | ····*·_\x8r_\x8e_\x8p_\x8r_\x8o_\x8d_\x8u_\x8c_\x8i_\x8b_\x8l_\x8e_\x8-_\x8p_\x8a_\x8t_\x8h |
4 | ····*·_\x8s_\x8i_\x8l_\x8l_\x8y_\x8-_\x80_\x8._\x81_\x8._\x80 | 4 | ····*·_\x8s_\x8i_\x8l_\x8l_\x8y_\x8-_\x80_\x8._\x81_\x8._\x80 |
5 | ····*·_\x8i_\x8n_\x8c_\x8l_\x8u_\x8d_\x8e | 5 | ····*·_\x8i_\x8n_\x8c_\x8l_\x8u_\x8d_\x8e |
6 | 6 | ····*·_.l_.o_.a_.d_.e_.r_.s | |
7 | SILLYPNGImageLoader.icpp | ||
7 | 1/*********************************************************************** | 8 | 1/*********************************************************************** |
8 | 2· | 9 | 2·filename:·SILLYPNGImageLoader.icpp |
9 | 3·created:·1 | 10 | 3·created:·11·Jun·2006 |
10 | 4·author:·Olivier·Delannoy | 11 | 4·author:·Olivier·Delannoy |
11 | 5 | 12 | 5 |
12 | 6·purpose:·Inline· | 13 | 6·purpose:·Inline·definition·for·PNGImageLoader |
13 | 7*************************************************************************/ | 14 | 7*************************************************************************/ |
14 | 8/*************************************************************************** | 15 | 8/*************************************************************************** |
15 | 9·*·Copyright·(C)·2004·-·2006·Paul·D·Turner·&·The·CEGUI·Development·Team | 16 | 9·*·Copyright·(C)·2004·-·2006·Paul·D·Turner·&·The·CEGUI·Development·Team |
16 | 10·* | 17 | 10·* |
17 | 11·*·Permission·is·hereby·granted,·free·of·charge,·to·any·person·obtaining | 18 | 11·*·Permission·is·hereby·granted,·free·of·charge,·to·any·person·obtaining |
18 | 12·*·a·copy·of·this·software·and·associated·documentation·files·(the | 19 | 12·*·a·copy·of·this·software·and·associated·documentation·files·(the |
19 | 13·*·"Software"),·to·deal·in·the·Software·without·restriction,·including | 20 | 13·*·"Software"),·to·deal·in·the·Software·without·restriction,·including |
Offset 34, 21 lines modified | Offset 35, 11 lines modified | ||
34 | 28·*·OTHER·DEALINGS·IN·THE·SOFTWARE. | 35 | 28·*·OTHER·DEALINGS·IN·THE·SOFTWARE. |
35 | 29·***************************************************************************/ | 36 | 29·***************************************************************************/ |
36 | 30 | 37 | 30 |
37 | 31//·Start·of·section·namespace·SILLY | 38 | 31//·Start·of·section·namespace·SILLY |
38 | 32namespace·SILLY | 39 | 32namespace·SILLY |
39 | 33{ | 40 | 33{ |
40 | 34 | 41 | 34 |
41 | 35inline·const·byte*·MemoryDataSource::getDataPtr()·const | ||
42 | 36{ | ||
43 | 37·return·d_bytes; | ||
44 | 38} | ||
45 | 39 | ||
46 | 40inline·size_t·MemoryDataSource::getSize()·const | ||
47 | 41{ | ||
48 | 42·return·d_size; | ||
49 | 43} | ||
50 | 44 | ||
51 | 42 | 35}·//·End·of·section·namespace·SILLY | |
52 | 43 | 36 | |
53 | =============================================================================== | 44 | =============================================================================== |
54 | ·····Generated·by _\x8[_\x8d_\x8o_\x8x_\x8y_\x8g_\x8e_\x8n_\x8]·1.9.8 | 45 | ·····Generated·by _\x8[_\x8d_\x8o_\x8x_\x8y_\x8g_\x8e_\x8n_\x8]·1.9.8 |
Offset 1, 15 lines modified | Offset 1, 15 lines modified | ||
1 | <!DOCTYPE·html·PUBLIC·"-//W3C//DTD·XHTML·1.0·Transitional//EN"·"https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> | 1 | <!DOCTYPE·html·PUBLIC·"-//W3C//DTD·XHTML·1.0·Transitional//EN"·"https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> |
2 | <html·xmlns="http://www.w3.org/1999/xhtml"·lang="en-US"> | 2 | <html·xmlns="http://www.w3.org/1999/xhtml"·lang="en-US"> |
3 | <head> | 3 | <head> |
4 | <meta·http-equiv="Content-Type"·content="text/xhtml;charset=UTF-8"/> | 4 | <meta·http-equiv="Content-Type"·content="text/xhtml;charset=UTF-8"/> |
5 | <meta·http-equiv="X-UA-Compatible"·content="IE=11"/> | 5 | <meta·http-equiv="X-UA-Compatible"·content="IE=11"/> |
6 | <meta·name="generator"·content="Doxygen·1.9.8"/> | 6 | <meta·name="generator"·content="Doxygen·1.9.8"/> |
7 | <meta·name="viewport"·content="width=device-width,·initial-scale=1"/> | 7 | <meta·name="viewport"·content="width=device-width,·initial-scale=1"/> |
8 | <title>Simple·Image·Loading·LibrarY:·/build/reproducible-path/silly-0.1.0/include/SILLYImage | 8 | <title>Simple·Image·Loading·LibrarY:·/build/reproducible-path/silly-0.1.0/include/loaders/SILLYTGAImageContext.h·Source·File</title> |
9 | <link·href="tabs.css"·rel="stylesheet"·type="text/css"/> | 9 | <link·href="tabs.css"·rel="stylesheet"·type="text/css"/> |
10 | <script·type="text/javascript"·src="jquery.js"></script> | 10 | <script·type="text/javascript"·src="jquery.js"></script> |
11 | <script·type="text/javascript"·src="dynsections.js"></script> | 11 | <script·type="text/javascript"·src="dynsections.js"></script> |
12 | <link·href="doxygen.css"·rel="stylesheet"·type="text/css"·/> | 12 | <link·href="doxygen.css"·rel="stylesheet"·type="text/css"·/> |
13 | </head> | 13 | </head> |
14 | <body> | 14 | <body> |
15 | <div·id="top"><!--·do·not·remove·this·div,·it·is·closed·by·doxygen!·--> | 15 | <div·id="top"><!--·do·not·remove·this·div,·it·is·closed·by·doxygen!·--> |
Offset 40, 83 lines modified | Offset 40, 88 lines modified | ||
40 | <script·type="text/javascript"> | 40 | <script·type="text/javascript"> |
41 | /*·@license·magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt·MIT·*/ | 41 | /*·@license·magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt·MIT·*/ |
42 | $(document).ready(function()·{·init_codefold(0);·}); | 42 | $(document).ready(function()·{·init_codefold(0);·}); |
43 | /*·@license-end·*/ | 43 | /*·@license-end·*/ |
44 | </script> | 44 | </script> |
45 | <div·id="nav-path"·class="navpath"> | 45 | <div·id="nav-path"·class="navpath"> |
46 | ··<ul> | 46 | ··<ul> |
47 | <li·class="navelem"><a·class="el"·href="dir_4fef79e7177ba769987a8da36c892c5f.html">build</a></li><li·class="navelem"><a·class="el"·href="dir_9def6061848686aab7e6212bb499d615.html">reproducible-path</a></li><li·class="navelem"><a·class="el"·href="dir_74170d5b58cefb7cb5a86fc552b183a3.html">silly-0.1.0</a></li><li·class="navelem"><a·class="el"·href="dir_0d87e2e7ddaae8a2a8572c0afc59fe0d.html">include</a></li>··</ul> | 47 | <li·class="navelem"><a·class="el"·href="dir_4fef79e7177ba769987a8da36c892c5f.html">build</a></li><li·class="navelem"><a·class="el"·href="dir_9def6061848686aab7e6212bb499d615.html">reproducible-path</a></li><li·class="navelem"><a·class="el"·href="dir_74170d5b58cefb7cb5a86fc552b183a3.html">silly-0.1.0</a></li><li·class="navelem"><a·class="el"·href="dir_0d87e2e7ddaae8a2a8572c0afc59fe0d.html">include</a></li><li·class="navelem"><a·class="el"·href="dir_7cea72c962538e8359f822070f2512f7.html">loaders</a></li>··</ul> |
48 | </div> | 48 | </div> |
49 | </div><!--·top·--> | 49 | </div><!--·top·--> |
50 | <div·class="header"> | 50 | <div·class="header"> |
51 | ··<div·class="headertitle"><div·class="title">SILLYImage | 51 | ··<div·class="headertitle"><div·class="title">SILLYTGAImageContext.h</div></div> |
52 | </div><!--header--> | 52 | </div><!--header--> |
53 | <div·class="contents"> | 53 | <div·class="contents"> |
54 | <div·class="fragment"><div·class="line"><a·id="l00001"·name="l00001"></a><span·class="lineno">····1</span>/***********************************************************************</div> | 54 | <div·class="fragment"><div·class="line"><a·id="l00001"·name="l00001"></a><span·class="lineno">····1</span><span·class="comment">/***********************************************************************</span></div> |
55 | <div·class="line"><a·id="l00002"·name="l00002"></a><span·class="lineno">····2</span>····filename:···SILLYImage | 55 | <div·class="line"><a·id="l00002"·name="l00002"></a><span·class="lineno">····2</span><span·class="comment">····filename:···SILLYTGAImageContext.h</span></div> |
56 | <div·class="line"><a·id="l00003"·name="l00003"></a><span·class="lineno">····3</span>····created:····1 | 56 | <div·class="line"><a·id="l00003"·name="l00003"></a><span·class="lineno">····3</span><span·class="comment">····created:····11·Jun·2006</span></div> |
57 | <div·class="line"><a·id="l00004"·name="l00004"></a><span·class="lineno">····4</span>····author:·····Olivier·Delannoy</div> | 57 | <div·class="line"><a·id="l00004"·name="l00004"></a><span·class="lineno">····4</span><span·class="comment">····author:·····Olivier·Delannoy</span></div> |
58 | <div·class="line"><a·id="l00005"·name="l00005"></a><span·class="lineno">····5</span>·</div> | 58 | <div·class="line"><a·id="l00005"·name="l00005"></a><span·class="lineno">····5</span><span·class="comment"></span>·</div> |
59 | <div·class="line"><a·id="l00006"·name="l00006"></a><span·class="lineno">····6</span>····purpose:···· | 59 | <div·class="line"><a·id="l00006"·name="l00006"></a><span·class="lineno">····6</span><span·class="comment">····purpose:····Declaration·of·the·TGAImageContext·class·</span></div> |
60 | <div·class="line"><a·id="l00007"·name="l00007"></a><span·class="lineno">····7</span>*************************************************************************/</div> | 60 | <div·class="line"><a·id="l00007"·name="l00007"></a><span·class="lineno">····7</span><span·class="comment">*************************************************************************/</span></div> |
61 | <div·class="line"><a·id="l00008"·name="l00008"></a><span·class="lineno">····8</span>/***************************************************************************</div> | 61 | <div·class="line"><a·id="l00008"·name="l00008"></a><span·class="lineno">····8</span><span·class="comment">/***************************************************************************</span></div> |
62 | <div·class="line"><a·id="l00009"·name="l00009"></a><span·class="lineno">····9</span>·*···Copyright·(C)·2004·-·2006·Paul·D·Turner·&·The·CEGUI·Development·Team</div> | 62 | <div·class="line"><a·id="l00009"·name="l00009"></a><span·class="lineno">····9</span><span·class="comment">·*···Copyright·(C)·2004·-·2006·Paul·D·Turner·&·The·CEGUI·Development·Team</span></div> |
63 | <div·class="line"><a·id="l00010"·name="l00010"></a><span·class="lineno">···10</span>·*</div> | 63 | <div·class="line"><a·id="l00010"·name="l00010"></a><span·class="lineno">···10</span><span·class="comment">·*</span></div> |
64 | <div·class="line"><a·id="l00011"·name="l00011"></a><span·class="lineno">···11</span>·*···Permission·is·hereby·granted,·free·of·charge,·to·any·person·obtaining</div> | 64 | <div·class="line"><a·id="l00011"·name="l00011"></a><span·class="lineno">···11</span><span·class="comment">·*···Permission·is·hereby·granted,·free·of·charge,·to·any·person·obtaining</span></div> |
65 | <div·class="line"><a·id="l00012"·name="l00012"></a><span·class="lineno">···12</span>·*···a·copy·of·this·software·and·associated·documentation·files·(the</div> | 65 | <div·class="line"><a·id="l00012"·name="l00012"></a><span·class="lineno">···12</span><span·class="comment">·*···a·copy·of·this·software·and·associated·documentation·files·(the</span></div> |
66 | <div·class="line"><a·id="l00013"·name="l00013"></a><span·class="lineno">···13</span>·*···"Software"),·to·deal·in·the·Software·without·restriction,·including</div> | 66 | <div·class="line"><a·id="l00013"·name="l00013"></a><span·class="lineno">···13</span><span·class="comment">·*···"Software"),·to·deal·in·the·Software·without·restriction,·including</span></div> |
67 | <div·class="line"><a·id="l00014"·name="l00014"></a><span·class="lineno">···14</span>·*···without·limitation·the·rights·to·use,·copy,·modify,·merge,·publish,</div> | 67 | <div·class="line"><a·id="l00014"·name="l00014"></a><span·class="lineno">···14</span><span·class="comment">·*···without·limitation·the·rights·to·use,·copy,·modify,·merge,·publish,</span></div> |
68 | <div·class="line"><a·id="l00015"·name="l00015"></a><span·class="lineno">···15</span>·*···distribute,·sublicense,·and/or·sell·copies·of·the·Software,·and·to</div> | 68 | <div·class="line"><a·id="l00015"·name="l00015"></a><span·class="lineno">···15</span><span·class="comment">·*···distribute,·sublicense,·and/or·sell·copies·of·the·Software,·and·to</span></div> |
69 | <div·class="line"><a·id="l00016"·name="l00016"></a><span·class="lineno">···16</span>·*···permit·persons·to·whom·the·Software·is·furnished·to·do·so,·subject·to</div> | 69 | <div·class="line"><a·id="l00016"·name="l00016"></a><span·class="lineno">···16</span><span·class="comment">·*···permit·persons·to·whom·the·Software·is·furnished·to·do·so,·subject·to</span></div> |
70 | <div·class="line"><a·id="l00017"·name="l00017"></a><span·class="lineno">···17</span>·*···the·following·conditions:</div> | 70 | <div·class="line"><a·id="l00017"·name="l00017"></a><span·class="lineno">···17</span><span·class="comment">·*···the·following·conditions:</span></div> |
71 | <div·class="line"><a·id="l00018"·name="l00018"></a><span·class="lineno">···18</span>·*</div> | 71 | <div·class="line"><a·id="l00018"·name="l00018"></a><span·class="lineno">···18</span><span·class="comment">·*</span></div> |
72 | <div·class="line"><a·id="l00019"·name="l00019"></a><span·class="lineno">···19</span>·*···The·above·copyright·notice·and·this·permission·notice·shall·be</div> | 72 | <div·class="line"><a·id="l00019"·name="l00019"></a><span·class="lineno">···19</span><span·class="comment">·*···The·above·copyright·notice·and·this·permission·notice·shall·be</span></div> |
73 | <div·class="line"><a·id="l00020"·name="l00020"></a><span·class="lineno">···20</span>·*···included·in·all·copies·or·substantial·portions·of·the·Software.</div> | 73 | <div·class="line"><a·id="l00020"·name="l00020"></a><span·class="lineno">···20</span><span·class="comment">·*···included·in·all·copies·or·substantial·portions·of·the·Software.</span></div> |
74 | <div·class="line"><a·id="l00021"·name="l00021"></a><span·class="lineno">···21</span>·*</div> | 74 | <div·class="line"><a·id="l00021"·name="l00021"></a><span·class="lineno">···21</span><span·class="comment">·*</span></div> |
75 | <div·class="line"><a·id="l00022"·name="l00022"></a><span·class="lineno">···22</span>·*···THE·SOFTWARE·IS·PROVIDED·"AS·IS",·WITHOUT·WARRANTY·OF·ANY·KIND,</div> | 75 | <div·class="line"><a·id="l00022"·name="l00022"></a><span·class="lineno">···22</span><span·class="comment">·*···THE·SOFTWARE·IS·PROVIDED·"AS·IS",·WITHOUT·WARRANTY·OF·ANY·KIND,</span></div> |
76 | <div·class="line"><a·id="l00023"·name="l00023"></a><span·class="lineno">···23</span>·*···EXPRESS·OR·IMPLIED,·INCLUDING·BUT·NOT·LIMITED·TO·THE·WARRANTIES·OF</div> | 76 | <div·class="line"><a·id="l00023"·name="l00023"></a><span·class="lineno">···23</span><span·class="comment">·*···EXPRESS·OR·IMPLIED,·INCLUDING·BUT·NOT·LIMITED·TO·THE·WARRANTIES·OF</span></div> |
77 | <div·class="line"><a·id="l00024"·name="l00024"></a><span·class="lineno">···24</span>·*···MERCHANTABILITY,·FITNESS·FOR·A·PARTICULAR·PURPOSE·AND·NONINFRINGEMENT.</div> | 77 | <div·class="line"><a·id="l00024"·name="l00024"></a><span·class="lineno">···24</span><span·class="comment">·*···MERCHANTABILITY,·FITNESS·FOR·A·PARTICULAR·PURPOSE·AND·NONINFRINGEMENT.</span></div> |
78 | <div·class="line"><a·id="l00025"·name="l00025"></a><span·class="lineno">···25</span>·*···IN·NO·EVENT·SHALL·THE·AUTHORS·BE·LIABLE·FOR·ANY·CLAIM,·DAMAGES·OR</div> | 78 | <div·class="line"><a·id="l00025"·name="l00025"></a><span·class="lineno">···25</span><span·class="comment">·*···IN·NO·EVENT·SHALL·THE·AUTHORS·BE·LIABLE·FOR·ANY·CLAIM,·DAMAGES·OR</span></div> |
79 | <div·class="line"><a·id="l00026"·name="l00026"></a><span·class="lineno">···26</span>·*···OTHER·LIABILITY,·WHETHER·IN·AN·ACTION·OF·CONTRACT,·TORT·OR·OTHERWISE,</div> | 79 | <div·class="line"><a·id="l00026"·name="l00026"></a><span·class="lineno">···26</span><span·class="comment">·*···OTHER·LIABILITY,·WHETHER·IN·AN·ACTION·OF·CONTRACT,·TORT·OR·OTHERWISE,</span></div> |
80 | <div·class="line"><a·id="l00027"·name="l00027"></a><span·class="lineno">···27</span>·*···ARISING·FROM,·OUT·OF·OR·IN·CONNECTION·WITH·THE·SOFTWARE·OR·THE·USE·OR</div> | 80 | <div·class="line"><a·id="l00027"·name="l00027"></a><span·class="lineno">···27</span><span·class="comment">·*···ARISING·FROM,·OUT·OF·OR·IN·CONNECTION·WITH·THE·SOFTWARE·OR·THE·USE·OR</span></div> |
81 | <div·class="line"><a·id="l00028"·name="l00028"></a><span·class="lineno">···28</span>·*···OTHER·DEALINGS·IN·THE·SOFTWARE.</div> | 81 | <div·class="line"><a·id="l00028"·name="l00028"></a><span·class="lineno">···28</span><span·class="comment">·*···OTHER·DEALINGS·IN·THE·SOFTWARE.</span></div> |
82 | <div·class="line"><a·id="l00029"·name="l00029"></a><span·class="lineno">···29</span>·***************************************************************************/</div> | 82 | <div·class="line"><a·id="l00029"·name="l00029"></a><span·class="lineno">···29</span><span·class="comment">·***************************************************************************/</span></div> |
83 | <div·class="line"><a·id="l00030"·name="l00030"></a><span·class="lineno">···30</span><span·class="preprocessor">#ifndef·_SILLYTGAImageContext_h_·</span></div> | ||
84 | <div·class="line"><a·id="l00031"·name="l00031"></a><span·class="lineno">···31</span><span·class="preprocessor">#define·_SILLYTGAImageContext_h_</span></div> | ||
85 | <div·class="line"><a·id="l00032"·name="l00032"></a><span·class="lineno">···32</span><span·class="preprocessor">#include·"SILLYBase.h"</span>·</div> | ||
86 | <div·class="line"><a·id="l00033"·name="l00033"></a><span·class="lineno">···33</span><span·class="preprocessor">#include·"SILLYImageContext.h"</span>·</div> | ||
87 | <div·class="line"><a·id="l00034"·name="l00034"></a><span·class="lineno">···34</span><span·class="comment">//·Start·of·section·namespace·SILLY·</span></div> | ||
88 | <div·class="line"><a·id="l00035"·name="l00035"></a><span·class="lineno">···35</span><span·class="keyword">namespace·</span><a·class="code·hl_namespace"·href="a00129.html">SILLY</a></div> | ||
83 | <div·class="line"><a·id="l0003 | 89 | <div·class="line"><a·id="l00036"·name="l00036"></a><span·class="lineno">···36</span>{··</div> |
90 | <div·class="foldopen"·id="foldopen00042"·data-start="{"·data-end="};"> | ||
91 | <div·class="line"><a·id="l00042"·name="l00042"></a><span·class="lineno"><a·class="line"·href="a00961.html">···42</a></span><span·class="keyword">class·</span><a·class="code·hl_class"·href="a00961.html">TGAImageContext</a>·:·<span·class="keyword">public</span>·<a·class="code·hl_class"·href="a00981.html">ImageContext</a>·</div> | ||
84 | <div·class="line"><a·id="l00031"·name="l00031"></a><span·class="lineno">···31</span>//·Start·of·section·namespace·SILLY</div> | ||
85 | <div·class="line"><a·id="l00032"·name="l00032"></a><span·class="lineno">···32</span>namespace·SILLY</div> | ||
86 | <div·class="line"><a·id="l00033"·name="l00033"></a><span·class="lineno">···33</span>{</div> | ||
87 | <div·class="line"><a·id="l00034"·name="l00034"></a><span·class="lineno">···34</span>inline·ImageLoaderList::iterator·ImageLoaderManager::begin()</div> | ||
88 | <div·class="line"><a·id="l00035"·name="l00035"></a><span·class="lineno">···35</span>{</div> | ||
89 | <div·class="line"><a·id="l00036"·name="l00036"></a><span·class="lineno">···36</span>····return·d_loaders.begin();</div> | ||
90 | <div·class="line"><a·id="l00037"·name="l00037"></a><span·class="lineno">···37</span>}</div> | ||
91 | <div·class="line"><a·id="l00038"·name="l00038"></a><span·class="lineno">···38</span>·</div> | ||
92 | <div·class="line"><a·id="l00039"·name="l00039"></a><span·class="lineno">···39</span>inline·ImageLoaderList::iterator·ImageLoaderManager::end()·</div> | ||
93 | <div·class="line"><a·id="l00040"·name="l00040"></a><span·class="lineno">···40</span>{</div> | ||
94 | <div·class="line"><a·id="l00041"·name="l00041"></a><span·class="lineno">···41</span>····return·d_loaders.end();</div> | ||
95 | <div·class="line"><a·id="l00042"·name="l00042"></a><span·class="lineno">···42</span>}</div> | ||
96 | <div·class="line"><a·id="l00043"·name="l00043"></a><span·class="lineno">···43</span> | 92 | <div·class="line"><a·id="l00043"·name="l00043"></a><span·class="lineno">···43</span>{</div> |
97 | <div·class="line"><a·id="l00044"·name="l00044"></a><span·class="lineno">···44</span>inline·ImageLoaderManager*·ImageLoaderManager::getSingletonPtr()</div> | ||
98 | <div·class="line"><a·id="l0004 | 93 | <div·class="line"><a·id="l00044"·name="l00044"></a><span·class="lineno">···44</span><span·class="keyword">public</span>:</div> |
99 | <div·class="line"><a·id="l0004 | 94 | <div·class="line"><a·id="l00045"·name="l00045"></a><span·class="lineno">···45</span>··<a·class="code·hl_class"·href="a00961.html">TGAImageContext</a>(<span·class="keywordtype">size_t</span>·width,·<span·class="keywordtype">size_t</span>·height);</div> |
95 | <div·class="line"><a·id="l00046"·name="l00046"></a><span·class="lineno">···46</span>··<a·class="code·hl_class"·href="a00961.html">~TGAImageContext</a>();</div> | ||
100 | <div·class="line"><a·id="l00047"·name="l00047"></a><span·class="lineno">···47</span> | 96 | <div·class="line"><a·id="l00047"·name="l00047"></a><span·class="lineno">···47</span>··</div> |
101 | <div·class="line"><a·id="l00048"·name="l00048"></a><span·class="lineno">···48</span>·</div> | 97 | <div·class="line"><a·id="l00048"·name="l00048"></a><span·class="lineno">···48</span><span·class="keyword">private</span>:</div> |
102 | <div·class="line"><a·id="l00049"·name="l00049"></a><span·class="lineno">···49</span> | 98 | <div·class="line"><a·id="l00049"·name="l00049"></a><span·class="lineno">···49</span>··<span·class="keywordtype">byte</span>·d_idLength;</div> |
103 | <div·class="line"><a·id="l00050"·name="l00050"></a><span·class="lineno">···50</span> | 99 | <div·class="line"><a·id="l00050"·name="l00050"></a><span·class="lineno">···50</span>··<span·class="keywordtype">byte</span>·d_imageType;</div> |
104 | <div·class="line"><a·id="l00051"·name="l00051"></a><span·class="lineno">···51</span>·· | 100 | <div·class="line"><a·id="l00051"·name="l00051"></a><span·class="lineno">···51</span>··<span·class="keywordtype">byte</span>·d_depth;</div> |
105 | <div·class="line"><a·id="l00052"·name="l00052"></a><span·class="lineno">···52</span>··· | 101 | <div·class="line"><a·id="l00052"·name="l00052"></a><span·class="lineno">···52</span>··<span·class="keywordtype">byte</span>·d_description;</div> |
106 | <div·class="line"><a·id="l00053"·name="l00053"></a><span·class="lineno">···53</span> | 102 | <div·class="line"><a·id="l00053"·name="l00053"></a><span·class="lineno">···53</span>·</div> |
103 | <div·class="line"><a·id="l00054"·name="l00054"></a><span·class="lineno">···54</span>··<span·class="keyword">friend</span>·<span·class="keyword">class·</span><a·class="code·hl_class"·href="a00965.html">TGAImageLoader</a>;</div> | ||
107 | <div·class="line"><a·id="l0005 | 104 | <div·class="line"><a·id="l00055"·name="l00055"></a><span·class="lineno">···55</span>··</div> |
108 | <div·class="line"><a·id="l00055"·name="l00055"></a><span·class="lineno">···55</span>inline·void·ImageLoaderManager::add(ImageLoader*·loader)</div> | ||
109 | <div·class="line"><a·id="l00056"·name="l00056"></a><span·class="lineno">···56</span> | 105 | <div·class="line"><a·id="l00056"·name="l00056"></a><span·class="lineno">···56</span>};</div> |
106 | </div> | ||
110 | <div·class="line"><a·id="l00057"·name="l00057"></a><span·class="lineno">···57</span>····assert(loader·&&·"ASSERT:·adding·a·none·existing·loader·object");</div> | ||
111 | <div·class="line"><a·id="l00058"·name="l00058"></a><span·class="lineno">···58</span>····d_loaders.push_back(loader);</div> | ||
112 | <div·class="line"><a·id="l0005 | 107 | <div·class="line"><a·id="l00057"·name="l00057"></a><span·class="lineno">···57</span>··</div> |
108 | <div·class="line"><a·id="l00058"·name="l00058"></a><span·class="lineno">···58</span>··</div> | ||
109 | <div·class="line"><a·id="l00059"·name="l00059"></a><span·class="lineno">···59</span>}·<span·class="comment">//·End·of·section·namespace·SILLY·</span></div> | ||
113 | <div·class="line"><a·id="l00060"·name="l00060"></a><span·class="lineno">···60</span>·</div> | 110 | <div·class="line"><a·id="l00060"·name="l00060"></a><span·class="lineno">···60</span>·</div> |
114 | <div·class="line"><a·id="l00061"·name="l00061"></a><span·class="lineno">···61</span> | 111 | <div·class="line"><a·id="l00061"·name="l00061"></a><span·class="lineno">···61</span><span·class="comment">//·Inclue·inline·function·when·needed·</span></div> |
112 | <div·class="line"><a·id="l00062"·name="l00062"></a><span·class="lineno">···62</span><span·class="preprocessor">#ifdef·SILLY_OPT_INLINE</span></div> | ||
113 | <div·class="line"><a·id="l00063"·name="l00063"></a><span·class="lineno">···63</span><span·class="preprocessor">#include·"SILLYTGAImageContext.icpp"</span></div> | ||
114 | <div·class="line"><a·id="l00064"·name="l00064"></a><span·class="lineno">···64</span><span·class="preprocessor">#endif·</span></div> | ||
115 | <div·class="line"><a·id="l0006 | 115 | <div·class="line"><a·id="l00065"·name="l00065"></a><span·class="lineno">···65</span>·</div> |
116 | <div·class="line"><a·id="l00066"·name="l00066"></a><span·class="lineno">···66</span><span·class="preprocessor">#endif·</span><span·class="comment">//·end·of·guard·_SILLYTGAImageContext_h_</span></div> | ||
117 | <div·class="ttc"·id="aa00129_html"><div·class="ttname"><a·href="a00129.html">SILLY</a></div><div·class="ttdoc">Simple·Image·Loading·LibrarY·namespace.</div><div·class="ttdef"><b>Definition</b>·<a·href="a00023_source.html#l00045">SILLYJPGImageContext.cpp:46</a></div></div> | ||
118 | <div·class="ttc"·id="aa00961_html"><div·class="ttname"><a·href="a00961.html">SILLY::TGAImageContext</a></div><div·class="ttdoc">Image·Context·for·Targa·image.</div><div·class="ttdef"><b>Definition</b>·<a·href="a00119_source.html#l00042">SILLYTGAImageContext.h:43</a></div></div> | ||
119 | <div·class="ttc"·id="aa00965_html"><div·class="ttname"><a·href="a00965.html">SILLY::TGAImageLoader</a></div><div·class="ttdoc">Loader·for·Targa·image.</div><div·class="ttdef"><b>Definition</b>·<a·href="a00122_source.html#l00043">SILLYTGAImageLoader.h:44</a></div></div> | ||
120 | <div·class="ttc"·id="aa00981_html"><div·class="ttname"><a·href="a00981.html">SILLY::ImageContext</a></div><div·class="ttdoc">Store·the·data·needed·by·an·ImageLoader·object·during·the·parsing·of·an·image.</div><div·class="ttdef"><b>Definition</b>·<a·href="a00074_source.html#l00043">SILLYImageContext.h:44</a></div></div> | ||
116 | </div><!--·fragment·--></div><!--·contents·--> | 121 | </div><!--·fragment·--></div><!--·contents·--> |
117 | <!--·start·footer·part·--> | 122 | <!--·start·footer·part·--> |
118 | <hr·class="footer"/><address·class="footer"><small> | 123 | <hr·class="footer"/><address·class="footer"><small> |
119 | Generated·by <a·href="https://www.doxygen.org/index.html"><img·class="footer"·src="doxygen.svg"·width="104"·height="31"·alt="doxygen"/></a>·1.9.8 | 124 | Generated·by <a·href="https://www.doxygen.org/index.html"><img·class="footer"·src="doxygen.svg"·width="104"·height="31"·alt="doxygen"/></a>·1.9.8 |
120 | </small></address> | 125 | </small></address> |
121 | </body> | 126 | </body> |
122 | </html> | 127 | </html> |
Offset 1, 19 lines modified | Offset 1, 20 lines modified | ||
1 | Simple·Image·Loading·LibrarY 0.1.0 | 1 | Simple·Image·Loading·LibrarY 0.1.0 |
2 | ····*·_\x8b_\x8u_\x8i_\x8l_\x8d | 2 | ····*·_\x8b_\x8u_\x8i_\x8l_\x8d |
3 | ····*·_\x8r_\x8e_\x8p_\x8r_\x8o_\x8d_\x8u_\x8c_\x8i_\x8b_\x8l_\x8e_\x8-_\x8p_\x8a_\x8t_\x8h | 3 | ····*·_\x8r_\x8e_\x8p_\x8r_\x8o_\x8d_\x8u_\x8c_\x8i_\x8b_\x8l_\x8e_\x8-_\x8p_\x8a_\x8t_\x8h |
4 | ····*·_\x8s_\x8i_\x8l_\x8l_\x8y_\x8-_\x80_\x8._\x81_\x8._\x80 | 4 | ····*·_\x8s_\x8i_\x8l_\x8l_\x8y_\x8-_\x80_\x8._\x81_\x8._\x80 |
5 | ····*·_\x8i_\x8n_\x8c_\x8l_\x8u_\x8d_\x8e | 5 | ····*·_\x8i_\x8n_\x8c_\x8l_\x8u_\x8d_\x8e |
6 | 6 | ····*·_.l_.o_.a_.d_.e_.r_.s | |
7 | SILLYTGAImageContext.h | ||
7 | 1/*********************************************************************** | 8 | 1/*********************************************************************** |
8 | 2·filename:·SILLYImage | 9 | 2·filename:·SILLYTGAImageContext.h |
9 | 3·created:·1 | 10 | 3·created:·11·Jun·2006 |
10 | 4·author:·Olivier·Delannoy | 11 | 4·author:·Olivier·Delannoy |
11 | 5 | 12 | 5 |
12 | 6·purpose:· | 13 | 6·purpose:·Declaration·of·the·TGAImageContext·class |
13 | 7*************************************************************************/ | 14 | 7*************************************************************************/ |
14 | 8/*************************************************************************** | 15 | 8/*************************************************************************** |
15 | 9·*·Copyright·(C)·2004·-·2006·Paul·D·Turner·&·The·CEGUI·Development·Team | 16 | 9·*·Copyright·(C)·2004·-·2006·Paul·D·Turner·&·The·CEGUI·Development·Team |
16 | 10·* | 17 | 10·* |
17 | 11·*·Permission·is·hereby·granted,·free·of·charge,·to·any·person·obtaining | 18 | 11·*·Permission·is·hereby·granted,·free·of·charge,·to·any·person·obtaining |
18 | 12·*·a·copy·of·this·software·and·associated·documentation·files·(the | 19 | 12·*·a·copy·of·this·software·and·associated·documentation·files·(the |
19 | 13·*·"Software"),·to·deal·in·the·Software·without·restriction,·including | 20 | 13·*·"Software"),·to·deal·in·the·Software·without·restriction,·including |
Offset 29, 42 lines modified | Offset 30, 53 lines modified | ||
29 | 23·*·EXPRESS·OR·IMPLIED,·INCLUDING·BUT·NOT·LIMITED·TO·THE·WARRANTIES·OF | 30 | 23·*·EXPRESS·OR·IMPLIED,·INCLUDING·BUT·NOT·LIMITED·TO·THE·WARRANTIES·OF |
30 | 24·*·MERCHANTABILITY,·FITNESS·FOR·A·PARTICULAR·PURPOSE·AND·NONINFRINGEMENT. | 31 | 24·*·MERCHANTABILITY,·FITNESS·FOR·A·PARTICULAR·PURPOSE·AND·NONINFRINGEMENT. |
31 | 25·*·IN·NO·EVENT·SHALL·THE·AUTHORS·BE·LIABLE·FOR·ANY·CLAIM,·DAMAGES·OR | 32 | 25·*·IN·NO·EVENT·SHALL·THE·AUTHORS·BE·LIABLE·FOR·ANY·CLAIM,·DAMAGES·OR |
32 | 26·*·OTHER·LIABILITY,·WHETHER·IN·AN·ACTION·OF·CONTRACT,·TORT·OR·OTHERWISE, | 33 | 26·*·OTHER·LIABILITY,·WHETHER·IN·AN·ACTION·OF·CONTRACT,·TORT·OR·OTHERWISE, |
33 | 27·*·ARISING·FROM,·OUT·OF·OR·IN·CONNECTION·WITH·THE·SOFTWARE·OR·THE·USE·OR | 34 | 27·*·ARISING·FROM,·OUT·OF·OR·IN·CONNECTION·WITH·THE·SOFTWARE·OR·THE·USE·OR |
34 | 28·*·OTHER·DEALINGS·IN·THE·SOFTWARE. | 35 | 28·*·OTHER·DEALINGS·IN·THE·SOFTWARE. |
35 | 29·***************************************************************************/ | 36 | 29·***************************************************************************/ |
36 | 30 | 37 | 30#ifndef·_SILLYTGAImageContext_h_ |
38 | 31#define·_SILLYTGAImageContext_h_ | ||
39 | 32#include·"SILLYBase.h" | ||
40 | 33#include·"SILLYImageContext.h" | ||
37 | 3 | 41 | 34//·Start·of·section·namespace·SILLY |
42 | 35namespace·_\x8S_\x8I_\x8L_\x8L_\x8Y | ||
43 | 36{ | ||
44 | _\x84_\x82class·_\x8T_\x8G_\x8A_\x8I_\x8m_\x8a_\x8g_\x8e_\x8C_\x8o_\x8n_\x8t_\x8e_\x8x_\x8t·:·public·_\x8I_\x8m_\x8a_\x8g_\x8e_\x8C_\x8o_\x8n_\x8t_\x8e_\x8x_\x8t | ||
38 | 32namespace·SILLY | ||
39 | 33{ | ||
40 | 34inline·ImageLoaderList::iterator·ImageLoaderManager::begin() | ||
41 | 35{ | ||
42 | 36·return·d_loaders.begin(); | ||
43 | 37} | ||
44 | 38 | ||
45 | 39inline·ImageLoaderList::iterator·ImageLoaderManager::end() | ||
46 | 40{ | ||
47 | 41·return·d_loaders.end(); | ||
48 | 42} | ||
49 | 43 | 45 | 43{ |
50 | 44inline·ImageLoaderManager*·ImageLoaderManager::getSingletonPtr() | ||
51 | 45{ | ||
52 | 4 | 46 | 44public: |
47 | 45·_\x8T_\x8G_\x8A_\x8I_\x8m_\x8a_\x8g_\x8e_\x8C_\x8o_\x8n_\x8t_\x8e_\x8x_\x8t(size_t·width,·size_t·height); | ||
48 | 46·_\x8~_\x8T_\x8G_\x8A_\x8I_\x8m_\x8a_\x8g_\x8e_\x8C_\x8o_\x8n_\x8t_\x8e_\x8x_\x8t(); | ||
53 | 47 | 49 | 47 |
54 | 48 | ||
55 | 49inline·ImageLoaderManager&·ImageLoaderManager::getSingleton() | ||
56 | 50{ | ||
57 | 51·assert(d_instance·&&·"ASSERT:·Singleton·object·not·yet·created"); | ||
58 | 50 | 48private: | |
51 | 49·byte·d_idLength; | ||
52 | 50·byte·d_imageType; | ||
53 | 51·byte·d_depth; | ||
54 | 52·byte·d_description; | ||
59 | 53 | 55 | 53 |
60 | 54 | ||
61 | 55inline·void·ImageLoaderManager::add(ImageLoader*·loader) | ||
62 | 56{ | ||
63 | 57·assert(loader·&&·"ASSERT:·adding·a·none·existing·loader·object"); | ||
64 | 58·d_loaders.push_back(loader); | ||
65 | 5 | 56 | 54·friend·class·_.T_.G_.A_.I_.m_.a_.g_.e_.L_.o_.a_.d_.e_.r; |
57 | 55 | ||
58 | 56}; | ||
59 | 57 | ||
60 | 58 | ||
61 | 59}·//·End·of·section·namespace·SILLY | ||
66 | 60 | 62 | 60 |
67 | 61}·//·End·of·section·namespace·SILLY | ||
68 | 6 | 63 | 61//·Inclue·inline·function·when·needed |
64 | 62#ifdef·SILLY_OPT_INLINE | ||
65 | 63#include·"SILLYTGAImageContext.icpp" | ||
66 | 64#endif | ||
67 | 65 | ||
68 | 66#endif·//·end·of·guard·_SILLYTGAImageContext_h_ | ||
69 | _\x8S_\x8I_\x8L_\x8L_\x8Y | ||
70 | Simple·Image·Loading·LibrarY·namespace. | ||
71 | D\x8De\x8ef\x8fi\x8in\x8ni\x8it\x8ti\x8io\x8on\x8n·_\x8S_\x8I_\x8L_\x8L_\x8Y_\x8J_\x8P_\x8G_\x8I_\x8m_\x8a_\x8g_\x8e_\x8C_\x8o_\x8n_\x8t_\x8e_\x8x_\x8t_\x8._\x8c_\x8p_\x8p_\x8:_\x84_\x86 | ||
72 | _\x8S_\x8I_\x8L_\x8L_\x8Y_\x8:_\x8:_\x8T_\x8G_\x8A_\x8I_\x8m_\x8a_\x8g_\x8e_\x8C_\x8o_\x8n_\x8t_\x8e_\x8x_\x8t | ||
73 | Image·Context·for·Targa·image. | ||
74 | D\x8De\x8ef\x8fi\x8in\x8ni\x8it\x8ti\x8io\x8on\x8n·_\x8S_\x8I_\x8L_\x8L_\x8Y_\x8T_\x8G_\x8A_\x8I_\x8m_\x8a_\x8g_\x8e_\x8C_\x8o_\x8n_\x8t_\x8e_\x8x_\x8t_\x8._\x8h_\x8:_\x84_\x83 | ||
75 | _\x8S_\x8I_\x8L_\x8L_\x8Y_\x8:_\x8:_\x8T_\x8G_\x8A_\x8I_\x8m_\x8a_\x8g_\x8e_\x8L_\x8o_\x8a_\x8d_\x8e_\x8r | ||
76 | Loader·for·Targa·image. | ||
77 | D\x8De\x8ef\x8fi\x8in\x8ni\x8it\x8ti\x8io\x8on\x8n·_\x8S_\x8I_\x8L_\x8L_\x8Y_\x8T_\x8G_\x8A_\x8I_\x8m_\x8a_\x8g_\x8e_\x8L_\x8o_\x8a_\x8d_\x8e_\x8r_\x8._\x8h_\x8:_\x84_\x84 | ||
78 | _\x8S_\x8I_\x8L_\x8L_\x8Y_\x8:_\x8:_\x8I_\x8m_\x8a_\x8g_\x8e_\x8C_\x8o_\x8n_\x8t_\x8e_\x8x_\x8t | ||
79 | Store·the·data·needed·by·an·ImageLoader·object·during·the·parsing·of·an·image. | ||
80 | D\x8De\x8ef\x8fi\x8in\x8ni\x8it\x8ti\x8io\x8on\x8n·_\x8S_\x8I_\x8L_\x8L_\x8Y_\x8I_\x8m_\x8a_\x8g_\x8e_\x8C_\x8o_\x8n_\x8t_\x8e_\x8x_\x8t_\x8._\x8h_\x8:_\x84_\x84 | ||
69 | =============================================================================== | 81 | =============================================================================== |
70 | ·····Generated·by _\x8[_\x8d_\x8o_\x8x_\x8y_\x8g_\x8e_\x8n_\x8]·1.9.8 | 82 | ·····Generated·by _\x8[_\x8d_\x8o_\x8x_\x8y_\x8g_\x8e_\x8n_\x8]·1.9.8 |
Offset 1, 15 lines modified | Offset 1, 15 lines modified | ||
1 | <!DOCTYPE·html·PUBLIC·"-//W3C//DTD·XHTML·1.0·Transitional//EN"·"https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> | 1 | <!DOCTYPE·html·PUBLIC·"-//W3C//DTD·XHTML·1.0·Transitional//EN"·"https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> |
2 | <html·xmlns="http://www.w3.org/1999/xhtml"·lang="en-US"> | 2 | <html·xmlns="http://www.w3.org/1999/xhtml"·lang="en-US"> |
3 | <head> | 3 | <head> |
4 | <meta·http-equiv="Content-Type"·content="text/xhtml;charset=UTF-8"/> | 4 | <meta·http-equiv="Content-Type"·content="text/xhtml;charset=UTF-8"/> |
5 | <meta·http-equiv="X-UA-Compatible"·content="IE=11"/> | 5 | <meta·http-equiv="X-UA-Compatible"·content="IE=11"/> |
6 | <meta·name="generator"·content="Doxygen·1.9.8"/> | 6 | <meta·name="generator"·content="Doxygen·1.9.8"/> |
7 | <meta·name="viewport"·content="width=device-width,·initial-scale=1"/> | 7 | <meta·name="viewport"·content="width=device-width,·initial-scale=1"/> |
8 | <title>Simple·Image·Loading·LibrarY:·/build/reproducible-path/silly-0.1.0/include/SILLY | 8 | <title>Simple·Image·Loading·LibrarY:·/build/reproducible-path/silly-0.1.0/include/loaders/SILLYTGAImageLoader.h·Source·File</title> |
9 | <link·href="tabs.css"·rel="stylesheet"·type="text/css"/> | 9 | <link·href="tabs.css"·rel="stylesheet"·type="text/css"/> |
10 | <script·type="text/javascript"·src="jquery.js"></script> | 10 | <script·type="text/javascript"·src="jquery.js"></script> |
11 | <script·type="text/javascript"·src="dynsections.js"></script> | 11 | <script·type="text/javascript"·src="dynsections.js"></script> |
12 | <link·href="doxygen.css"·rel="stylesheet"·type="text/css"·/> | 12 | <link·href="doxygen.css"·rel="stylesheet"·type="text/css"·/> |
13 | </head> | 13 | </head> |
14 | <body> | 14 | <body> |
15 | <div·id="top"><!--·do·not·remove·this·div,·it·is·closed·by·doxygen!·--> | 15 | <div·id="top"><!--·do·not·remove·this·div,·it·is·closed·by·doxygen!·--> |
Offset 40, 27 lines modified | Offset 40, 27 lines modified | ||
40 | <script·type="text/javascript"> | 40 | <script·type="text/javascript"> |
41 | /*·@license·magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt·MIT·*/ | 41 | /*·@license·magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt·MIT·*/ |
42 | $(document).ready(function()·{·init_codefold(0);·}); | 42 | $(document).ready(function()·{·init_codefold(0);·}); |
43 | /*·@license-end·*/ | 43 | /*·@license-end·*/ |
44 | </script> | 44 | </script> |
45 | <div·id="nav-path"·class="navpath"> | 45 | <div·id="nav-path"·class="navpath"> |
46 | ··<ul> | 46 | ··<ul> |
47 | <li·class="navelem"><a·class="el"·href="dir_4fef79e7177ba769987a8da36c892c5f.html">build</a></li><li·class="navelem"><a·class="el"·href="dir_9def6061848686aab7e6212bb499d615.html">reproducible-path</a></li><li·class="navelem"><a·class="el"·href="dir_74170d5b58cefb7cb5a86fc552b183a3.html">silly-0.1.0</a></li><li·class="navelem"><a·class="el"·href="dir_0d87e2e7ddaae8a2a8572c0afc59fe0d.html">include</a></li>··</ul> | 47 | <li·class="navelem"><a·class="el"·href="dir_4fef79e7177ba769987a8da36c892c5f.html">build</a></li><li·class="navelem"><a·class="el"·href="dir_9def6061848686aab7e6212bb499d615.html">reproducible-path</a></li><li·class="navelem"><a·class="el"·href="dir_74170d5b58cefb7cb5a86fc552b183a3.html">silly-0.1.0</a></li><li·class="navelem"><a·class="el"·href="dir_0d87e2e7ddaae8a2a8572c0afc59fe0d.html">include</a></li><li·class="navelem"><a·class="el"·href="dir_7cea72c962538e8359f822070f2512f7.html">loaders</a></li>··</ul> |
48 | </div> | 48 | </div> |
49 | </div><!--·top·--> | 49 | </div><!--·top·--> |
50 | <div·class="header"> | 50 | <div·class="header"> |
51 | ··<div·class="headertitle"><div·class="title">SILLY | 51 | ··<div·class="headertitle"><div·class="title">SILLYTGAImageLoader.h</div></div> |
52 | </div><!--header--> | 52 | </div><!--header--> |
53 | <div·class="contents"> | 53 | <div·class="contents"> |
54 | <div·class="fragment"><div·class="line"><a·id="l00001"·name="l00001"></a><span·class="lineno">····1</span><span·class="comment">/***********************************************************************</span></div> | 54 | <div·class="fragment"><div·class="line"><a·id="l00001"·name="l00001"></a><span·class="lineno">····1</span><span·class="comment">/***********************************************************************</span></div> |
55 | <div·class="line"><a·id="l00002"·name="l00002"></a><span·class="lineno">····2</span><span·class="comment">····filename:···SILLY | 55 | <div·class="line"><a·id="l00002"·name="l00002"></a><span·class="lineno">····2</span><span·class="comment">····filename:···SILLYTGAImageLoader.h</span></div> |
56 | <div·class="line"><a·id="l00003"·name="l00003"></a><span·class="lineno">····3</span><span·class="comment">····created:····1 | 56 | <div·class="line"><a·id="l00003"·name="l00003"></a><span·class="lineno">····3</span><span·class="comment">····created:····11·Jun·2006</span></div> |
57 | <div·class="line"><a·id="l00004"·name="l00004"></a><span·class="lineno">····4</span><span·class="comment">····author:·····Olivier·Delannoy | 57 | <div·class="line"><a·id="l00004"·name="l00004"></a><span·class="lineno">····4</span><span·class="comment">····author:·····Olivier·Delannoy</span></div> |
58 | <div·class="line"><a·id="l00005"·name="l00005"></a><span·class="lineno">····5</span><span·class="comment"></span>·</div> | 58 | <div·class="line"><a·id="l00005"·name="l00005"></a><span·class="lineno">····5</span><span·class="comment"></span>·</div> |
59 | <div·class="line"><a·id="l00006"·name="l00006"></a><span·class="lineno">····6</span><span·class="comment">····purpose:···· | 59 | <div·class="line"><a·id="l00006"·name="l00006"></a><span·class="lineno">····6</span><span·class="comment">····purpose:····Declaration·of·the·TGAImageLoader·class</span></div> |
60 | <div·class="line"><a·id="l00007"·name="l00007"></a><span·class="lineno">····7</span><span·class="comment">*************************************************************************/</span></div> | 60 | <div·class="line"><a·id="l00007"·name="l00007"></a><span·class="lineno">····7</span><span·class="comment">*************************************************************************/</span></div> |
61 | <div·class="line"><a·id="l00008"·name="l00008"></a><span·class="lineno">····8</span><span·class="comment">/***************************************************************************</span></div> | 61 | <div·class="line"><a·id="l00008"·name="l00008"></a><span·class="lineno">····8</span><span·class="comment">/***************************************************************************</span></div> |
62 | <div·class="line"><a·id="l00009"·name="l00009"></a><span·class="lineno">····9</span><span·class="comment">·*···Copyright·(C)·2004·-·2006·Paul·D·Turner·&·The·CEGUI·Development·Team</span></div> | 62 | <div·class="line"><a·id="l00009"·name="l00009"></a><span·class="lineno">····9</span><span·class="comment">·*···Copyright·(C)·2004·-·2006·Paul·D·Turner·&·The·CEGUI·Development·Team</span></div> |
63 | <div·class="line"><a·id="l00010"·name="l00010"></a><span·class="lineno">···10</span><span·class="comment">·*</span></div> | 63 | <div·class="line"><a·id="l00010"·name="l00010"></a><span·class="lineno">···10</span><span·class="comment">·*</span></div> |
64 | <div·class="line"><a·id="l00011"·name="l00011"></a><span·class="lineno">···11</span><span·class="comment">·*···Permission·is·hereby·granted,·free·of·charge,·to·any·person·obtaining</span></div> | 64 | <div·class="line"><a·id="l00011"·name="l00011"></a><span·class="lineno">···11</span><span·class="comment">·*···Permission·is·hereby·granted,·free·of·charge,·to·any·person·obtaining</span></div> |
65 | <div·class="line"><a·id="l00012"·name="l00012"></a><span·class="lineno">···12</span><span·class="comment">·*···a·copy·of·this·software·and·associated·documentation·files·(the</span></div> | 65 | <div·class="line"><a·id="l00012"·name="l00012"></a><span·class="lineno">···12</span><span·class="comment">·*···a·copy·of·this·software·and·associated·documentation·files·(the</span></div> |
66 | <div·class="line"><a·id="l00013"·name="l00013"></a><span·class="lineno">···13</span><span·class="comment">·*···"Software"),·to·deal·in·the·Software·without·restriction,·including</span></div> | 66 | <div·class="line"><a·id="l00013"·name="l00013"></a><span·class="lineno">···13</span><span·class="comment">·*···"Software"),·to·deal·in·the·Software·without·restriction,·including</span></div> |
Offset 76, 52 lines modified | Offset 76, 54 lines modified | ||
76 | <div·class="line"><a·id="l00023"·name="l00023"></a><span·class="lineno">···23</span><span·class="comment">·*···EXPRESS·OR·IMPLIED,·INCLUDING·BUT·NOT·LIMITED·TO·THE·WARRANTIES·OF</span></div> | 76 | <div·class="line"><a·id="l00023"·name="l00023"></a><span·class="lineno">···23</span><span·class="comment">·*···EXPRESS·OR·IMPLIED,·INCLUDING·BUT·NOT·LIMITED·TO·THE·WARRANTIES·OF</span></div> |
77 | <div·class="line"><a·id="l00024"·name="l00024"></a><span·class="lineno">···24</span><span·class="comment">·*···MERCHANTABILITY,·FITNESS·FOR·A·PARTICULAR·PURPOSE·AND·NONINFRINGEMENT.</span></div> | 77 | <div·class="line"><a·id="l00024"·name="l00024"></a><span·class="lineno">···24</span><span·class="comment">·*···MERCHANTABILITY,·FITNESS·FOR·A·PARTICULAR·PURPOSE·AND·NONINFRINGEMENT.</span></div> |
78 | <div·class="line"><a·id="l00025"·name="l00025"></a><span·class="lineno">···25</span><span·class="comment">·*···IN·NO·EVENT·SHALL·THE·AUTHORS·BE·LIABLE·FOR·ANY·CLAIM,·DAMAGES·OR</span></div> | 78 | <div·class="line"><a·id="l00025"·name="l00025"></a><span·class="lineno">···25</span><span·class="comment">·*···IN·NO·EVENT·SHALL·THE·AUTHORS·BE·LIABLE·FOR·ANY·CLAIM,·DAMAGES·OR</span></div> |
79 | <div·class="line"><a·id="l00026"·name="l00026"></a><span·class="lineno">···26</span><span·class="comment">·*···OTHER·LIABILITY,·WHETHER·IN·AN·ACTION·OF·CONTRACT,·TORT·OR·OTHERWISE,</span></div> | 79 | <div·class="line"><a·id="l00026"·name="l00026"></a><span·class="lineno">···26</span><span·class="comment">·*···OTHER·LIABILITY,·WHETHER·IN·AN·ACTION·OF·CONTRACT,·TORT·OR·OTHERWISE,</span></div> |
80 | <div·class="line"><a·id="l00027"·name="l00027"></a><span·class="lineno">···27</span><span·class="comment">·*···ARISING·FROM,·OUT·OF·OR·IN·CONNECTION·WITH·THE·SOFTWARE·OR·THE·USE·OR</span></div> | 80 | <div·class="line"><a·id="l00027"·name="l00027"></a><span·class="lineno">···27</span><span·class="comment">·*···ARISING·FROM,·OUT·OF·OR·IN·CONNECTION·WITH·THE·SOFTWARE·OR·THE·USE·OR</span></div> |
81 | <div·class="line"><a·id="l00028"·name="l00028"></a><span·class="lineno">···28</span><span·class="comment">·*···OTHER·DEALINGS·IN·THE·SOFTWARE.</span></div> | 81 | <div·class="line"><a·id="l00028"·name="l00028"></a><span·class="lineno">···28</span><span·class="comment">·*···OTHER·DEALINGS·IN·THE·SOFTWARE.</span></div> |
82 | <div·class="line"><a·id="l00029"·name="l00029"></a><span·class="lineno">···29</span><span·class="comment">·***************************************************************************/</span></div> | 82 | <div·class="line"><a·id="l00029"·name="l00029"></a><span·class="lineno">···29</span><span·class="comment">·***************************************************************************/</span></div> |
83 | <div·class="line"><a·id="l00030"·name="l00030"></a><span·class="lineno">···30</span><span·class="preprocessor">#ifndef·_SILLY | 83 | <div·class="line"><a·id="l00030"·name="l00030"></a><span·class="lineno">···30</span><span·class="preprocessor">#ifndef·_SILLYTGAImageLoader_h_·</span></div> |
84 | <div·class="line"><a·id="l00031"·name="l00031"></a><span·class="lineno">···31</span><span·class="preprocessor">#define·_SILLY | 84 | <div·class="line"><a·id="l00031"·name="l00031"></a><span·class="lineno">···31</span><span·class="preprocessor">#define·_SILLYTGAImageLoader_h_</span></div> |
85 | <div·class="line"><a·id="l00032"·name="l00032"></a><span·class="lineno">···32</span><span·class="preprocessor">#include·"SILLYBase.h"</span>·</div> | 85 | <div·class="line"><a·id="l00032"·name="l00032"></a><span·class="lineno">···32</span><span·class="preprocessor">#include·"SILLYBase.h"</span>·</div> |
86 | <div·class="line"><a·id="l00033"·name="l00033"></a><span·class="lineno">···33</span><span·class="preprocessor">#include·"SILLY | 86 | <div·class="line"><a·id="l00033"·name="l00033"></a><span·class="lineno">···33</span><span·class="preprocessor">#include·"SILLYImageLoader.h"</span>·</div> |
87 | <div·class="line"><a·id="l00034"·name="l00034"></a><span·class="lineno">···34</span><span·class="comment">//·Start·of·section·namespace·SILLY·</span></div> | 87 | <div·class="line"><a·id="l00034"·name="l00034"></a><span·class="lineno">···34</span><span·class="comment">//·Start·of·section·namespace·SILLY·</span></div> |
88 | <div·class="line"><a·id="l00035"·name="l00035"></a><span·class="lineno">···35</span><span·class="keyword">namespace·</span><a·class="code·hl_namespace"·href="a00129.html">SILLY</a></div> | 88 | <div·class="line"><a·id="l00035"·name="l00035"></a><span·class="lineno">···35</span><span·class="keyword">namespace·</span><a·class="code·hl_namespace"·href="a00129.html">SILLY</a></div> |
89 | <div·class="line"><a·id="l00036"·name="l00036"></a><span·class="lineno">···36</span>{</div> | 89 | <div·class="line"><a·id="l00036"·name="l00036"></a><span·class="lineno">···36</span>{</div> |
90 | <div·class="line"><a·id="l00037"·name="l00037"></a><span·class="lineno">···37</span>·</div> | 90 | <div·class="line"><a·id="l00037"·name="l00037"></a><span·class="lineno">···37</span><span·class="keyword">class·</span>TGAImageContext;</div> |
91 | <div·class="foldopen"·id="foldopen0004 | 91 | <div·class="foldopen"·id="foldopen00043"·data-start="{"·data-end="};"> |
92 | <div·class="line"><a·id="l0004 | 92 | <div·class="line"><a·id="l00043"·name="l00043"></a><span·class="lineno"><a·class="line"·href="a00965.html">···43</a></span><span·class="keyword">class·</span><a·class="code·hl_class"·href="a00965.html">TGAImageLoader</a>·:·<span·class="keyword">public</span>·<a·class="code·hl_class"·hr[·...·truncated·by·diffoscope;·len:·28,·SHA:·162354d3228df7154fabd3bd521d8548c46e6431e48dc19f3fd2ce33543a5b6c·...·]</a>·</div> |
93 | <div·class="line"><a·id="l0004 | 93 | <div·class="line"><a·id="l00044"·name="l00044"></a><span·class="lineno">···44</span>{</div> |
94 | <div·class="line"><a·id="l000 | 94 | <div·class="line"><a·id="l00045"·name="l00045"></a><span·class="lineno">···45</span><span·class="keyword">public</span>:</div> |
95 | <div·class="line"><a·id="l000 | 95 | <div·class="line"><a·id="l00046"·name="l00046"></a><span·class="lineno">···46</span>····<a·class="code·hl_class"·href="a00965.html">TGAImageLoader</a>();</div> |
96 | <div·class="line"><a·id="l00047"·name="l00047"></a><span·class="lineno">···47</span>····<a·class="code·hl_class"·href="a00965.html">~TGAImageLoader</a>();</div> | ||
97 | <div·class="line"><a·id="l00048"·name="l00048"></a><span·class="lineno">···48</span>····<a·class="code·hl_class"·href="a00981.html">ImageContext</a>*·<a·class="code·hl_function"·href="a00965.html#a1f83c2e6e4960b05c1b5bd61b0635f8c">loadHeader</a>(<a·class="code·hl_enumeration"·href="a00129.html#a60883d4958a60b91661e97027a85072a">PixelFormat</a>&·formatSource,·<a·class="code·hl_class"·href="a00969.html">DataSource</a>*·data);</div> | ||
98 | <div·class="line"><a·id="l00049"·name="l00049"></a><span·class="lineno">···49</span>····<span·class="keywordtype">bool</span>·<a·class="code·hl_function"·href="a00965.html#a4a4d6df5dcc08cb493855fcfc1956fca">loadImageData</a>(<a·class="code·hl_enumeration"·href="a00129.html#aebdd89f22790687ac264c1abd9f7fd38">PixelOrigin</a>·origin,·</div> | ||
99 | <div·class="line"><a·id="l00050"·name="l00050"></a><span·class="lineno">···50</span>·······················<a·class="code·hl_class"·href="a00969.html">DataSource</a>*·data,·</div> | ||
100 | <div·class="line"><a·id="l00051"·name="l00051"></a><span·class="lineno">···51</span>·······················<a·class="code·hl_class"·href="a00981.html">ImageContext</a>*·context);</div> | ||
96 | <div·class="line"><a·id="l000 | 101 | <div·class="line"><a·id="l00052"·name="l00052"></a><span·class="lineno">···52</span><span·class="keyword">private</span>:</div> |
97 | <div·class="line"><a·id="l000 | 102 | <div·class="line"><a·id="l00053"·name="l00053"></a><span·class="lineno">···53</span>·</div> |
98 | <div·class="line"><a·id="l00066"·name="l00066"></a><span·class="lineno"><a·class="line"·href="a00993.html#a363c71a270f739498e576e743cfa0d6e">···66</a></span>····<span·class="keyword">const</span>·<span·class="keywordtype">byte</span>*·<a·class="code·hl_function"·href="a00993.html#a363c71a270f739498e576e743cfa0d6e">getDataPtr</a>()·<span·class="keyword">const</span>;</div> | ||
99 | <div·class="line"><a·id="l00067"·name="l00067"></a><span·class="lineno">···67</span>·</div> | ||
100 | <div·class="line"><a·id="l00068"·name="l00068"></a><span·class="lineno"><a·class="line"·href="a00993.html#a9be1e4285daa77fe397767c097fbdc66">···68</a></span>····<span·class="keywordtype">size_t</span>·<a·class="code·hl_function"·href="a00993.html#a9be1e4285daa77fe397767c097fbdc66">getSize</a>()·<span·class="keyword">const</span>;</div> | ||
101 | <div·class="line"><a·id="l00069"·name="l00069"></a><span·class="lineno">···69</span><span·class="keyword">private</span>:</div> | ||
102 | <div·class="line"><a·id="l00070"·name="l00070"></a><span·class="lineno">···70</span>····<span·class="keyword">const</span>·<span·class="keywordtype">byte</span>*·d_bytes;···············</div> | ||
103 | <div·class="line"><a·id="l00071"·name="l00071"></a><span·class="lineno">···71</span>····<span·class="keywordtype">size_t</span>·d_size;··············</div> | ||
104 | <div·class="line"><a·id="l000 | 103 | <div·class="line"><a·id="l00054"·name="l00054"></a><span·class="lineno">···54</span>};</div> |
105 | </div> | 104 | </div> |
106 | <div·class="line"><a·id="l000 | 105 | <div·class="line"><a·id="l00055"·name="l00055"></a><span·class="lineno">···55</span>·</div> |
107 | <div·class="line"><a·id="l00074"·name="l00074"></a><span·class="lineno">···74</span>··</div> | ||
108 | <div·class="line"><a·id="l000 | 106 | <div·class="line"><a·id="l00056"·name="l00056"></a><span·class="lineno">···56</span>}·<span·class="comment">//·End·of·section·namespace·SILLY·</span></div> |
109 | <div·class="line"><a·id="l000 | 107 | <div·class="line"><a·id="l00057"·name="l00057"></a><span·class="lineno">···57</span>·</div> |
110 | <div·class="line"><a·id="l000 | 108 | <div·class="line"><a·id="l00058"·name="l00058"></a><span·class="lineno">···58</span><span·class="comment">//·Inclue·inline·function·when·needed·</span></div> |
111 | <div·class="line"><a·id="l000 | 109 | <div·class="line"><a·id="l00059"·name="l00059"></a><span·class="lineno">···59</span><span·class="preprocessor">#ifdef·SILLY_OPT_INLINE</span></div> |
112 | <div·class="line"><a·id="l000 | 110 | <div·class="line"><a·id="l00060"·name="l00060"></a><span·class="lineno">···60</span><span·class="preprocessor">#include·"SILLYTGAImageLoader.icpp"</span></div> |
113 | <div·class="line"><a·id="l000 | 111 | <div·class="line"><a·id="l00061"·name="l00061"></a><span·class="lineno">···61</span><span·class="preprocessor">#endif·</span></div> |
114 | <div·class="line"><a·id="l000 | 112 | <div·class="line"><a·id="l00062"·name="l00062"></a><span·class="lineno">···62</span>·</div> |
115 | <div·class="line"><a·id="l000 | 113 | <div·class="line"><a·id="l00063"·name="l00063"></a><span·class="lineno">···63</span><span·class="preprocessor">#endif·</span><span·class="comment">//·end·of·guard·_SILLYTGAImageLoader_h_</span></div> |
116 | <div·class="ttc"·id="aa00129_html"><div·class="ttname"><a·href="a00129.html">SILLY</a></div><div·class="ttdoc">Simple·Image·Loading·LibrarY·namespace.</div><div·class="ttdef"><b>Definition</b>·<a·href="a0002 | 114 | <div·class="ttc"·id="aa00129_html"><div·class="ttname"><a·href="a00129.html">SILLY</a></div><div·class="ttdoc">Simple·Image·Loading·LibrarY·namespace.</div><div·class="ttdef"><b>Definition</b>·<a·href="a00023_source.html#l00045">SILLYJPGImageContext.cpp:46</a></div></div> |
115 | <div·class="ttc"·id="aa00129_html_a60883d4958a60b91661e97027a85072a"><div·class="ttname"><a·href="a00129.html#a60883d4958a60b91661e97027a85072a">SILLY::PixelFormat</a></div><div·class="ttdeci">PixelFormat</div><div·class="ttdoc">List·all·pixel·format·supported.</div><div·class="ttdef"><b>Definition</b>·<a·href="a00044_source.html#l00059">SILLYBase.h:60</a></div></div> | ||
116 | <div·class="ttc"·id="aa00129_html_aebdd89f22790687ac264c1abd9f7fd38"><div·class="ttname"><a·href="a00129.html#aebdd89f22790687ac264c1abd9f7fd38">SILLY::PixelOrigin</a></div><div·class="ttdeci">PixelOrigin</div><div·class="ttdoc">List·all·pixel·origin·supported.</div><div·class="ttdef"><b>Definition</b>·<a·href="a00044_source.html#l00070">SILLYBase.h:71</a></div></div> | ||
117 | <div·class="ttc"·id="aa00965_html"><div·class="ttname"><a·href="a00965.html">SILLY::TGAImageLoader</a></div><div·class="ttdoc">Loader·for·Targa·image.</div><div·class="ttdef"><b>Definition</b>·<a·href="a00122_source.html#l00043">SILLYTGAImageLoader.h:44</a></div></div> | ||
118 | <div·class="ttc"·id="aa00965_html_a1f83c2e6e4960b05c1b5bd61b0635f8c"><div·class="ttname"><a·href="a00965.html#a1f83c2e6e4960b05c1b5bd61b0635f8c">SILLY::TGAImageLoader::loadHeader</a></div><div·class="ttdeci">ImageContext·*·loadHeader(PixelFormat·&formatSource,·DataSource·*data)</div><div·class="ttdoc">Parse·the·header·of·the·image·and·fill·the·header·struct.</div><div·class="ttdef"><b>Definition</b>·<a·href="a00035_source.html#l00074">SILLYTGAImageLoader.cpp:74</a></div></div> | ||
119 | <div·class="ttc"·id="aa00965_html_a4a4d6df5dcc08cb493855fcfc1956fca"><div·class="ttname"><a·href="a00965.html#a4a4d6df5dcc08cb493855fcfc1956fca">SILLY::TGAImageLoader::loadImageData</a></div><div·class="ttdeci">bool·loadImageData(PixelOrigin·origin,·DataSource·*data,·ImageContext·*context)</div><div·class="ttdoc">Parse·the·pixels·data·of·the·image·and·fill·the·header·struct.</div><div·class="ttdef"><b>Definition</b>·<a·href="a00035_source.html#l00134">SILLYTGAImageLoader.cpp:134</a></div></div> | ||
117 | <div·class="ttc"·id="aa00969_html"><div·class="ttname"><a·href="a00969.html">SILLY::DataSource</a></div><div·class="ttdoc">This·is·an·abstract·class·used·to·provide·data·to·the·loader.</div><div·class="ttdef"><b>Definition</b>·<a·href="a00 | 120 | <div·class="ttc"·id="aa00969_html"><div·class="ttname"><a·href="a00969.html">SILLY::DataSource</a></div><div·class="ttdoc">This·is·an·abstract·class·used·to·provide·data·to·the·loader.</div><div·class="ttdef"><b>Definition</b>·<a·href="a00083_source.html#l00046">SILLYDataSource.h:47</a></div></div> |
121 | <div·class="ttc"·id="aa00981_html"><div·class="ttname"><a·href="a00981.html">SILLY::ImageContext</a></div><div·class="ttdoc">Store·the·data·needed·by·an·ImageLoader·object·during·the·parsing·of·an·image.</div><div·class="ttdef"><b>Definition</b>·<a·href="a00074_source.html#l00043">SILLYImageContext.h:44</a></div></div> | ||
122 | <div·class="ttc"·id="aa00985_html"><div·class="ttname"><a·href="a00985.html">SILLY::ImageLoader</a></div><div·class="ttdoc">This·is·an·abstract·class·that·define·the·interface·of·all·image·loader.</div><div·class="ttdef"><b>Definition</b>·<a·href="a00071_source.html#l00046">SILLYImageLoader.h:47</a></div></div> | ||
118 | <div·class="ttc"·id="aa00993_html"><div·class="ttname"><a·href="a00993.html">SILLY::MemoryDataSource</a></div><div·class="ttdoc">Load·an·image·from·a·memory·area.</div><div·class="ttdef"><b>Definition</b>·<a·href="a00122_source.html#l00048">SILLYMemoryDataSource.h:49</a></div></div> | ||
119 | <div·class="ttc"·id="aa00993_html_a363c71a270f739498e576e743cfa0d6e"><div·class="ttname"><a·href="a00993.html#a363c71a270f739498e576e743cfa0d6e">SILLY::MemoryDataSource::getDataPtr</a></div><div·class="ttdeci">const·byte·*·getDataPtr()·const</div><div·class="ttdoc">Get·raw·access·to·the·image·data.</div></div> | ||
120 | <div·class="ttc"·id="aa00993_html_a9be1e4285daa77fe397767c097fbdc66"><div·class="ttname"><a·href="a00993.html#a9be1e4285daa77fe397767c097fbdc66">SILLY::MemoryDataSource::getSize</a></div><div·class="ttdeci">size_t·getSize()·const</div><div·class="ttdoc">Return·the·size·of·the·data.</div></div> | ||
121 | </div><!--·fragment·--></div><!--·contents·--> | 123 | </div><!--·fragment·--></div><!--·contents·--> |
122 | <!--·start·footer·part·--> | 124 | <!--·start·footer·part·--> |
123 | <hr·class="footer"/><address·class="footer"><small> | 125 | <hr·class="footer"/><address·class="footer"><small> |
124 | Generated·by <a·href="https://www.doxygen.org/index.html"><img·class="footer"·src="doxygen.svg"·width="104"·height="31"·alt="doxygen"/></a>·1.9.8 | 126 | Generated·by <a·href="https://www.doxygen.org/index.html"><img·class="footer"·src="doxygen.svg"·width="104"·height="31"·alt="doxygen"/></a>·1.9.8 |
125 | </small></address> | 127 | </small></address> |
126 | </body> | 128 | </body> |
127 | </html> | 129 | </html> |
Offset 1, 19 lines modified | Offset 1, 20 lines modified | ||
1 | Simple·Image·Loading·LibrarY 0.1.0 | 1 | Simple·Image·Loading·LibrarY 0.1.0 |
2 | ····*·_\x8b_\x8u_\x8i_\x8l_\x8d | 2 | ····*·_\x8b_\x8u_\x8i_\x8l_\x8d |
3 | ····*·_\x8r_\x8e_\x8p_\x8r_\x8o_\x8d_\x8u_\x8c_\x8i_\x8b_\x8l_\x8e_\x8-_\x8p_\x8a_\x8t_\x8h | 3 | ····*·_\x8r_\x8e_\x8p_\x8r_\x8o_\x8d_\x8u_\x8c_\x8i_\x8b_\x8l_\x8e_\x8-_\x8p_\x8a_\x8t_\x8h |
4 | ····*·_\x8s_\x8i_\x8l_\x8l_\x8y_\x8-_\x80_\x8._\x81_\x8._\x80 | 4 | ····*·_\x8s_\x8i_\x8l_\x8l_\x8y_\x8-_\x80_\x8._\x81_\x8._\x80 |
5 | ····*·_\x8i_\x8n_\x8c_\x8l_\x8u_\x8d_\x8e | 5 | ····*·_\x8i_\x8n_\x8c_\x8l_\x8u_\x8d_\x8e |
6 | 6 | ····*·_.l_.o_.a_.d_.e_.r_.s | |
7 | SILLYTGAImageLoader.h | ||
7 | 1/*********************************************************************** | 8 | 1/*********************************************************************** |
8 | 2·filename:·SILLY | 9 | 2·filename:·SILLYTGAImageLoader.h |
9 | 3·created:·1 | 10 | 3·created:·11·Jun·2006 |
10 | 4·author:·Olivier·Delannoy | 11 | 4·author:·Olivier·Delannoy |
11 | 5 | 12 | 5 |
12 | 6·purpose:· | 13 | 6·purpose:·Declaration·of·the·TGAImageLoader·class |
13 | 7*************************************************************************/ | 14 | 7*************************************************************************/ |
14 | 8/*************************************************************************** | 15 | 8/*************************************************************************** |
15 | 9·*·Copyright·(C)·2004·-·2006·Paul·D·Turner·&·The·CEGUI·Development·Team | 16 | 9·*·Copyright·(C)·2004·-·2006·Paul·D·Turner·&·The·CEGUI·Development·Team |
16 | 10·* | 17 | 10·* |
17 | 11·*·Permission·is·hereby·granted,·free·of·charge,·to·any·person·obtaining | 18 | 11·*·Permission·is·hereby·granted,·free·of·charge,·to·any·person·obtaining |
18 | 12·*·a·copy·of·this·software·and·associated·documentation·files·(the | 19 | 12·*·a·copy·of·this·software·and·associated·documentation·files·(the |
19 | 13·*·"Software"),·to·deal·in·the·Software·without·restriction,·including | 20 | 13·*·"Software"),·to·deal·in·the·Software·without·restriction,·including |
Offset 29, 55 lines modified | Offset 30, 69 lines modified | ||
29 | 23·*·EXPRESS·OR·IMPLIED,·INCLUDING·BUT·NOT·LIMITED·TO·THE·WARRANTIES·OF | 30 | 23·*·EXPRESS·OR·IMPLIED,·INCLUDING·BUT·NOT·LIMITED·TO·THE·WARRANTIES·OF |
30 | 24·*·MERCHANTABILITY,·FITNESS·FOR·A·PARTICULAR·PURPOSE·AND·NONINFRINGEMENT. | 31 | 24·*·MERCHANTABILITY,·FITNESS·FOR·A·PARTICULAR·PURPOSE·AND·NONINFRINGEMENT. |
31 | 25·*·IN·NO·EVENT·SHALL·THE·AUTHORS·BE·LIABLE·FOR·ANY·CLAIM,·DAMAGES·OR | 32 | 25·*·IN·NO·EVENT·SHALL·THE·AUTHORS·BE·LIABLE·FOR·ANY·CLAIM,·DAMAGES·OR |
32 | 26·*·OTHER·LIABILITY,·WHETHER·IN·AN·ACTION·OF·CONTRACT,·TORT·OR·OTHERWISE, | 33 | 26·*·OTHER·LIABILITY,·WHETHER·IN·AN·ACTION·OF·CONTRACT,·TORT·OR·OTHERWISE, |
33 | 27·*·ARISING·FROM,·OUT·OF·OR·IN·CONNECTION·WITH·THE·SOFTWARE·OR·THE·USE·OR | 34 | 27·*·ARISING·FROM,·OUT·OF·OR·IN·CONNECTION·WITH·THE·SOFTWARE·OR·THE·USE·OR |
34 | 28·*·OTHER·DEALINGS·IN·THE·SOFTWARE. | 35 | 28·*·OTHER·DEALINGS·IN·THE·SOFTWARE. |
35 | 29·***************************************************************************/ | 36 | 29·***************************************************************************/ |
36 | 30#ifndef·_SILLYMemoryDataSource_h_ | ||
37 | 3 | 37 | 30#ifndef·_SILLYTGAImageLoader_h_ |
38 | 31#define·_SILLYTGAImageLoader_h_ | ||
38 | 32#include·"SILLYBase.h" | 39 | 32#include·"SILLYBase.h" |
39 | 33#include·"SILLY | 40 | 33#include·"SILLYImageLoader.h" |
40 | 34//·Start·of·section·namespace·SILLY | 41 | 34//·Start·of·section·namespace·SILLY |
41 | 35namespace·_\x8S_\x8I_\x8L_\x8L_\x8Y | 42 | 35namespace·_\x8S_\x8I_\x8L_\x8L_\x8Y |
42 | 36{ | 43 | 36{ |
43 | 37 | ||
44 | _\x84_\x88class·SILLY_EXPORT·_\x8M_\x8e_\x8m_\x8o_\x8r_\x8y_\x8D_\x8a_\x8t_\x8a_\x8S_\x8o_\x8u_\x8r_\x8c_\x8e·:·public·_\x8D_\x8a_\x8t_\x8a_\x8S_\x8o_\x8u_\x8r_\x8c_\x8e | ||
45 | 44 | 37class·TGAImageContext; | |
45 | _\x84_\x83class·_\x8T_\x8G_\x8A_\x8I_\x8m_\x8a_\x8g_\x8e_\x8L_\x8o_\x8a_\x8d_\x8e_\x8r·:·public·_\x8I_\x8m_\x8a_\x8g_\x8e_\x8L_\x8o_\x8a_\x8d_\x8e_\x8r | ||
46 | 44{ | ||
46 | 47 | 45public: | |
47 | 63·_\x8M_\x8e_\x8m_\x8o_\x8r_\x8y_\x8D_\x8a_\x8t_\x8a_\x8S_\x8o_\x8u_\x8r_\x8c_\x8e(const·byte*·data,·size_t·size); | ||
48 | 64 | ||
49 | 65 | ||
50 | _\x86_\x86·const·byte*·_\x8g_\x8e_\x8t_\x8D_\x8a_\x8t_\x8a_\x8P_\x8t_\x8r()·const; | ||
51 | 67 | ||
52 | _. | 48 | 46·_.T_.G_.A_.I_.m_.a_.g_.e_.L_.o_.a_.d_.e_.r(); |
49 | 47·_\x8~_\x8T_\x8G_\x8A_\x8I_\x8m_\x8a_\x8g_\x8e_\x8L_\x8o_\x8a_\x8d_\x8e_\x8r(); | ||
50 | 48·_\x8I_\x8m_\x8a_\x8g_\x8e_\x8C_\x8o_\x8n_\x8t_\x8e_\x8x_\x8t*·_\x8l_\x8o_\x8a_\x8d_\x8H_\x8e_\x8a_\x8d_\x8e_\x8r(_\x8P_\x8i_\x8x_\x8e_\x8l_\x8F_\x8o_\x8r_\x8m_\x8a_\x8t&·formatSource,·_\x8D_\x8a_\x8t_\x8a_\x8S_\x8o_\x8u_\x8r_\x8c_\x8e*·data); | ||
51 | 49·bool·_\x8l_\x8o_\x8a_\x8d_\x8I_\x8m_\x8a_\x8g_\x8e_\x8D_\x8a_\x8t_\x8a(_\x8P_\x8i_\x8x_\x8e_\x8l_\x8O_\x8r_\x8i_\x8g_\x8i_\x8n·origin, | ||
52 | 50·_\x8D_\x8a_\x8t_\x8a_\x8S_\x8o_\x8u_\x8r_\x8c_\x8e*·data, | ||
53 | 51·_\x8I_\x8m_\x8a_\x8g_\x8e_\x8C_\x8o_\x8n_\x8t_\x8e_\x8x_\x8t*·context); | ||
53 | 54 | 52private: | |
55 | 53 | ||
56 | 54}; | ||
57 | 55 | ||
54 | 70·const·byte*·d_bytes; | ||
55 | 71·size_t·d_size; | ||
56 | 72}; | ||
57 | 73 | ||
58 | 74 | ||
59 | 58 | 56}·//·End·of·section·namespace·SILLY | |
60 | 59 | 57 | |
61 | 60 | 58//·Inclue·inline·function·when·needed | |
62 | 61 | 59#ifdef·SILLY_OPT_INLINE | |
63 | 62 | 60#include·"SILLYTGAImageLoader.icpp" | |
64 | 63 | 61#endif | |
65 | 81 | ||
66 | 64 | 62 | |
65 | 63#endif·//·end·of·guard·_SILLYTGAImageLoader_h_ | ||
67 | _\x8S_\x8I_\x8L_\x8L_\x8Y | 66 | _\x8S_\x8I_\x8L_\x8L_\x8Y |
68 | Simple·Image·Loading·LibrarY·namespace. | 67 | Simple·Image·Loading·LibrarY·namespace. |
69 | D\x8De\x8ef\x8fi\x8in\x8ni\x8it\x8ti\x8io\x8on\x8n·_\x8S_\x8I_\x8L_\x8L_\x8Y_\x8J_\x8P_\x8G_\x8I_\x8m_\x8a_\x8g_\x8e_\x8C_\x8o_\x8n_\x8t_\x8e_\x8x_\x8t_\x8._\x8c_\x8p_\x8p_\x8:_\x84_\x86 | 68 | D\x8De\x8ef\x8fi\x8in\x8ni\x8it\x8ti\x8io\x8on\x8n·_\x8S_\x8I_\x8L_\x8L_\x8Y_\x8J_\x8P_\x8G_\x8I_\x8m_\x8a_\x8g_\x8e_\x8C_\x8o_\x8n_\x8t_\x8e_\x8x_\x8t_\x8._\x8c_\x8p_\x8p_\x8:_\x84_\x86 |
69 | _\x8S_\x8I_\x8L_\x8L_\x8Y_\x8:_\x8:_\x8P_\x8i_\x8x_\x8e_\x8l_\x8F_\x8o_\x8r_\x8m_\x8a_\x8t | ||
70 | PixelFormat | ||
71 | List·all·pixel·format·supported. | ||
72 | D\x8De\x8ef\x8fi\x8in\x8ni\x8it\x8ti\x8io\x8on\x8n·_\x8S_\x8I_\x8L_\x8L_\x8Y_\x8B_\x8a_\x8s_\x8e_\x8._\x8h_\x8:_\x86_\x80 | ||
73 | _\x8S_\x8I_\x8L_\x8L_\x8Y_\x8:_\x8:_\x8P_\x8i_\x8x_\x8e_\x8l_\x8O_\x8r_\x8i_\x8g_\x8i_\x8n | ||
74 | PixelOrigin | ||
75 | List·all·pixel·origin·supported. | ||
76 | D\x8De\x8ef\x8fi\x8in\x8ni\x8it\x8ti\x8io\x8on\x8n·_\x8S_\x8I_\x8L_\x8L_\x8Y_\x8B_\x8a_\x8s_\x8e_\x8._\x8h_\x8:_\x87_\x81 | ||
77 | _\x8S_\x8I_\x8L_\x8L_\x8Y_\x8:_\x8:_\x8T_\x8G_\x8A_\x8I_\x8m_\x8a_\x8g_\x8e_\x8L_\x8o_\x8a_\x8d_\x8e_\x8r | ||
78 | Loader·for·Targa·image. | ||
79 | D\x8De\x8ef\x8fi\x8in\x8ni\x8it\x8ti\x8io\x8on\x8n·_\x8S_\x8I_\x8L_\x8L_\x8Y_\x8T_\x8G_\x8A_\x8I_\x8m_\x8a_\x8g_\x8e_\x8L_\x8o_\x8a_\x8d_\x8e_\x8r_\x8._\x8h_\x8:_\x84_\x84 | ||
80 | _\x8S_\x8I_\x8L_\x8L_\x8Y_\x8:_\x8:_\x8T_\x8G_\x8A_\x8I_\x8m_\x8a_\x8g_\x8e_\x8L_\x8o_\x8a_\x8d_\x8e_\x8r_\x8:_\x8:_\x8l_\x8o_\x8a_\x8d_\x8H_\x8e_\x8a_\x8d_\x8e_\x8r | ||
81 | ImageContext·*·loadHeader(PixelFormat·&formatSource,·DataSource·*data) | ||
82 | Parse·the·header·of·the·image·and·fill·the·header·struct. | ||
83 | D\x8De\x8ef\x8fi\x8in\x8ni\x8it\x8ti\x8io\x8on\x8n·_\x8S_\x8I_\x8L_\x8L_\x8Y_\x8T_\x8G_\x8A_\x8I_\x8m_\x8a_\x8g_\x8e_\x8L_\x8o_\x8a_\x8d_\x8e_\x8r_\x8._\x8c_\x8p_\x8p_\x8:_\x87_\x84 | ||
84 | _\x8S_\x8I_\x8L_\x8L_\x8Y_\x8:_\x8:_\x8T_\x8G_\x8A_\x8I_\x8m_\x8a_\x8g_\x8e_\x8L_\x8o_\x8a_\x8d_\x8e_\x8r_\x8:_\x8:_\x8l_\x8o_\x8a_\x8d_\x8I_\x8m_\x8a_\x8g_\x8e_\x8D_\x8a_\x8t_\x8a | ||
85 | bool·loadImageData(PixelOrigin·origin,·DataSource·*data,·ImageContext·*context) | ||
86 | Parse·the·pixels·data·of·the·image·and·fill·the·header·struct. | ||
87 | D\x8De\x8ef\x8fi\x8in\x8ni\x8it\x8ti\x8io\x8on\x8n·_\x8S_\x8I_\x8L_\x8L_\x8Y_\x8T_\x8G_\x8A_\x8I_\x8m_\x8a_\x8g_\x8e_\x8L_\x8o_\x8a_\x8d_\x8e_\x8r_\x8._\x8c_\x8p_\x8p_\x8:_\x81_\x83_\x84 | ||
70 | _\x8S_\x8I_\x8L_\x8L_\x8Y_\x8:_\x8:_\x8D_\x8a_\x8t_\x8a_\x8S_\x8o_\x8u_\x8r_\x8c_\x8e | 88 | _\x8S_\x8I_\x8L_\x8L_\x8Y_\x8:_\x8:_\x8D_\x8a_\x8t_\x8a_\x8S_\x8o_\x8u_\x8r_\x8c_\x8e |
71 | This·is·an·abstract·class·used·to·provide·data·to·the·loader. | 89 | This·is·an·abstract·class·used·to·provide·data·to·the·loader. |
72 | D\x8De\x8ef\x8fi\x8in\x8ni\x8it\x8ti\x8io\x8on\x8n·_\x8S_\x8I_\x8L_\x8L_\x8Y_\x8D_\x8a_\x8t_\x8a_\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8._\x8h_\x8:_\x84_\x87 | 90 | D\x8De\x8ef\x8fi\x8in\x8ni\x8it\x8ti\x8io\x8on\x8n·_\x8S_\x8I_\x8L_\x8L_\x8Y_\x8D_\x8a_\x8t_\x8a_\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8._\x8h_\x8:_\x84_\x87 |
73 | _\x8S_\x8I_\x8L_\x8L_\x8Y_\x8:_\x8:_\x8M_\x8e_\x8m_\x8o_\x8r_\x8y_\x8D_\x8a_\x8t_\x8a_\x8S_\x8o_\x8u_\x8r_\x8c_\x8e | ||
74 | L | 91 | _.S_.I_.L_.L_.Y_.:_.:_.I_.m_.a_.g_.e_.C_.o_.n_.t_.e_.x_.t |
92 | Store·the·data·needed·by·an·ImageLoader·object·during·the·parsing·of·an·image. | ||
93 | D\x8De\x8ef\x8fi\x8in\x8ni\x8it\x8ti\x8io\x8on\x8n·_\x8S_\x8I_\x8L_\x8L_\x8Y_\x8I_\x8m_\x8a_\x8g_\x8e_\x8C_\x8o_\x8n_\x8t_\x8e_\x8x_\x8t_\x8._\x8h_\x8:_\x84_\x84 | ||
94 | _\x8S_\x8I_\x8L_\x8L_\x8Y_\x8:_\x8:_\x8I_\x8m_\x8a_\x8g_\x8e_\x8L_\x8o_\x8a_\x8d_\x8e_\x8r | ||
95 | This·is·an·abstract·class·that·define·the·interface·of·all·image·loader. | ||
75 | D\x8De\x8ef\x8fi\x8in\x8ni\x8it\x8ti\x8io\x8on\x8n·_\x8S_\x8I_\x8L_\x8L_\x8Y_\x8 | 96 | D\x8De\x8ef\x8fi\x8in\x8ni\x8it\x8ti\x8io\x8on\x8n·_\x8S_\x8I_\x8L_\x8L_\x8Y_\x8I_.m_.a_.g_.e_.L_.o_.a_.d_.e_.r_.._.h_.:_.4_.7 |
76 | _\x8S_\x8I_\x8L_\x8L_\x8Y_\x8:_\x8:_\x8M_\x8e_\x8m_\x8o_\x8r_\x8y_\x8D_\x8a_\x8t_\x8a_\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8:_\x8:_\x8g_\x8e_\x8t_\x8D_\x8a_\x8t_\x8a_\x8P_\x8t_\x8r | ||
77 | const·byte·*·getDataPtr()·const | ||
78 | Get·raw·access·to·the·image·data. | ||
79 | _\x8S_\x8I_\x8L_\x8L_\x8Y_\x8:_\x8:_\x8M_\x8e_\x8m_\x8o_\x8r_\x8y_\x8D_\x8a_\x8t_\x8a_\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8:_\x8:_\x8g_\x8e_\x8t_\x8S_\x8i_\x8z_\x8e | ||
80 | size_t·getSize()·const | ||
81 | Return·the·size·of·the·data. | ||
82 | =============================================================================== | 97 | =============================================================================== |
83 | ·····Generated·by _\x8[_\x8d_\x8o_\x8x_\x8y_\x8g_\x8e_\x8n_\x8]·1.9.8 | 98 | ·····Generated·by _\x8[_\x8d_\x8o_\x8x_\x8y_\x8g_\x8e_\x8n_\x8]·1.9.8 |
Offset 1, 15 lines modified | Offset 1, 15 lines modified | ||
1 | <!DOCTYPE·html·PUBLIC·"-//W3C//DTD·XHTML·1.0·Transitional//EN"·"https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> | 1 | <!DOCTYPE·html·PUBLIC·"-//W3C//DTD·XHTML·1.0·Transitional//EN"·"https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> |
2 | <html·xmlns="http://www.w3.org/1999/xhtml"·lang="en-US"> | 2 | <html·xmlns="http://www.w3.org/1999/xhtml"·lang="en-US"> |
3 | <head> | 3 | <head> |
4 | <meta·http-equiv="Content-Type"·content="text/xhtml;charset=UTF-8"/> | 4 | <meta·http-equiv="Content-Type"·content="text/xhtml;charset=UTF-8"/> |
5 | <meta·http-equiv="X-UA-Compatible"·content="IE=11"/> | 5 | <meta·http-equiv="X-UA-Compatible"·content="IE=11"/> |
6 | <meta·name="generator"·content="Doxygen·1.9.8"/> | 6 | <meta·name="generator"·content="Doxygen·1.9.8"/> |
7 | <meta·name="viewport"·content="width=device-width,·initial-scale=1"/> | 7 | <meta·name="viewport"·content="width=device-width,·initial-scale=1"/> |
8 | <title>Simple·Image·Loading·LibrarY:·/build/reproducible-path/silly-0.1.0/include/SILLYImage | 8 | <title>Simple·Image·Loading·LibrarY:·/build/reproducible-path/silly-0.1.0/include/loaders/SILLYTGAImageLoader.icpp·Source·File</title> |
9 | <link·href="tabs.css"·rel="stylesheet"·type="text/css"/> | 9 | <link·href="tabs.css"·rel="stylesheet"·type="text/css"/> |
10 | <script·type="text/javascript"·src="jquery.js"></script> | 10 | <script·type="text/javascript"·src="jquery.js"></script> |
11 | <script·type="text/javascript"·src="dynsections.js"></script> | 11 | <script·type="text/javascript"·src="dynsections.js"></script> |
12 | <link·href="doxygen.css"·rel="stylesheet"·type="text/css"·/> | 12 | <link·href="doxygen.css"·rel="stylesheet"·type="text/css"·/> |
13 | </head> | 13 | </head> |
14 | <body> | 14 | <body> |
15 | <div·id="top"><!--·do·not·remove·this·div,·it·is·closed·by·doxygen!·--> | 15 | <div·id="top"><!--·do·not·remove·this·div,·it·is·closed·by·doxygen!·--> |
Offset 40, 27 lines modified | Offset 40, 27 lines modified | ||
40 | <script·type="text/javascript"> | 40 | <script·type="text/javascript"> |
41 | /*·@license·magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt·MIT·*/ | 41 | /*·@license·magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt·MIT·*/ |
42 | $(document).ready(function()·{·init_codefold(0);·}); | 42 | $(document).ready(function()·{·init_codefold(0);·}); |
43 | /*·@license-end·*/ | 43 | /*·@license-end·*/ |
44 | </script> | 44 | </script> |
45 | <div·id="nav-path"·class="navpath"> | 45 | <div·id="nav-path"·class="navpath"> |
46 | ··<ul> | 46 | ··<ul> |
47 | <li·class="navelem"><a·class="el"·href="dir_4fef79e7177ba769987a8da36c892c5f.html">build</a></li><li·class="navelem"><a·class="el"·href="dir_9def6061848686aab7e6212bb499d615.html">reproducible-path</a></li><li·class="navelem"><a·class="el"·href="dir_74170d5b58cefb7cb5a86fc552b183a3.html">silly-0.1.0</a></li><li·class="navelem"><a·class="el"·href="dir_0d87e2e7ddaae8a2a8572c0afc59fe0d.html">include</a></li>··</ul> | 47 | <li·class="navelem"><a·class="el"·href="dir_4fef79e7177ba769987a8da36c892c5f.html">build</a></li><li·class="navelem"><a·class="el"·href="dir_9def6061848686aab7e6212bb499d615.html">reproducible-path</a></li><li·class="navelem"><a·class="el"·href="dir_74170d5b58cefb7cb5a86fc552b183a3.html">silly-0.1.0</a></li><li·class="navelem"><a·class="el"·href="dir_0d87e2e7ddaae8a2a8572c0afc59fe0d.html">include</a></li><li·class="navelem"><a·class="el"·href="dir_7cea72c962538e8359f822070f2512f7.html">loaders</a></li>··</ul> |
48 | </div> | 48 | </div> |
49 | </div><!--·top·--> | 49 | </div><!--·top·--> |
50 | <div·class="header"> | 50 | <div·class="header"> |
51 | ··<div·class="headertitle"><div·class="title">SILLYImage | 51 | ··<div·class="headertitle"><div·class="title">SILLYTGAImageLoader.icpp</div></div> |
52 | </div><!--header--> | 52 | </div><!--header--> |
53 | <div·class="contents"> | 53 | <div·class="contents"> |
54 | <div·class="fragment"><div·class="line"><a·id="l00001"·name="l00001"></a><span·class="lineno">····1</span>/***********************************************************************</div> | 54 | <div·class="fragment"><div·class="line"><a·id="l00001"·name="l00001"></a><span·class="lineno">····1</span>/***********************************************************************</div> |
55 | <div·class="line"><a·id="l00002"·name="l00002"></a><span·class="lineno">····2</span>····filename:···SILLYImage | 55 | <div·class="line"><a·id="l00002"·name="l00002"></a><span·class="lineno">····2</span>····filename:···SILLYTGAImageLoader.icpp·</div> |
56 | <div·class="line"><a·id="l00003"·name="l00003"></a><span·class="lineno">····3</span>····created:····1 | 56 | <div·class="line"><a·id="l00003"·name="l00003"></a><span·class="lineno">····3</span>····created:····11·Jun·2006</div> |
57 | <div·class="line"><a·id="l00004"·name="l00004"></a><span·class="lineno">····4</span>····author:·····Olivier·Delannoy</div> | 57 | <div·class="line"><a·id="l00004"·name="l00004"></a><span·class="lineno">····4</span>····author:·····Olivier·Delannoy</div> |
58 | <div·class="line"><a·id="l00005"·name="l00005"></a><span·class="lineno">····5</span>·</div> | 58 | <div·class="line"><a·id="l00005"·name="l00005"></a><span·class="lineno">····5</span>·</div> |
59 | <div·class="line"><a·id="l00006"·name="l00006"></a><span·class="lineno">····6</span>····purpose:····Inline·defin | 59 | <div·class="line"><a·id="l00006"·name="l00006"></a><span·class="lineno">····6</span>····purpose:····Inline·defintion·of·TGAImageLoader·class···</div> |
60 | <div·class="line"><a·id="l00007"·name="l00007"></a><span·class="lineno">····7</span>*************************************************************************/</div> | 60 | <div·class="line"><a·id="l00007"·name="l00007"></a><span·class="lineno">····7</span>*************************************************************************/</div> |
61 | <div·class="line"><a·id="l00008"·name="l00008"></a><span·class="lineno">····8</span>/***************************************************************************</div> | 61 | <div·class="line"><a·id="l00008"·name="l00008"></a><span·class="lineno">····8</span>/***************************************************************************</div> |
62 | <div·class="line"><a·id="l00009"·name="l00009"></a><span·class="lineno">····9</span>·*···Copyright·(C)·2004·-·2006·Paul·D·Turner·&·The·CEGUI·Development·Team</div> | 62 | <div·class="line"><a·id="l00009"·name="l00009"></a><span·class="lineno">····9</span>·*···Copyright·(C)·2004·-·2006·Paul·D·Turner·&·The·CEGUI·Development·Team</div> |
63 | <div·class="line"><a·id="l00010"·name="l00010"></a><span·class="lineno">···10</span>·*</div> | 63 | <div·class="line"><a·id="l00010"·name="l00010"></a><span·class="lineno">···10</span>·*</div> |
64 | <div·class="line"><a·id="l00011"·name="l00011"></a><span·class="lineno">···11</span>·*···Permission·is·hereby·granted,·free·of·charge,·to·any·person·obtaining</div> | 64 | <div·class="line"><a·id="l00011"·name="l00011"></a><span·class="lineno">···11</span>·*···Permission·is·hereby·granted,·free·of·charge,·to·any·person·obtaining</div> |
65 | <div·class="line"><a·id="l00012"·name="l00012"></a><span·class="lineno">···12</span>·*···a·copy·of·this·software·and·associated·documentation·files·(the</div> | 65 | <div·class="line"><a·id="l00012"·name="l00012"></a><span·class="lineno">···12</span>·*···a·copy·of·this·software·and·associated·documentation·files·(the</div> |
66 | <div·class="line"><a·id="l00013"·name="l00013"></a><span·class="lineno">···13</span>·*···"Software"),·to·deal·in·the·Software·without·restriction,·including</div> | 66 | <div·class="line"><a·id="l00013"·name="l00013"></a><span·class="lineno">···13</span>·*···"Software"),·to·deal·in·the·Software·without·restriction,·including</div> |
Offset 80, 85 lines modified | Offset 80, 17 lines modified | ||
80 | <div·class="line"><a·id="l00027"·name="l00027"></a><span·class="lineno">···27</span>·*···ARISING·FROM,·OUT·OF·OR·IN·CONNECTION·WITH·THE·SOFTWARE·OR·THE·USE·OR</div> | 80 | <div·class="line"><a·id="l00027"·name="l00027"></a><span·class="lineno">···27</span>·*···ARISING·FROM,·OUT·OF·OR·IN·CONNECTION·WITH·THE·SOFTWARE·OR·THE·USE·OR</div> |
81 | <div·class="line"><a·id="l00028"·name="l00028"></a><span·class="lineno">···28</span>·*···OTHER·DEALINGS·IN·THE·SOFTWARE.</div> | 81 | <div·class="line"><a·id="l00028"·name="l00028"></a><span·class="lineno">···28</span>·*···OTHER·DEALINGS·IN·THE·SOFTWARE.</div> |
82 | <div·class="line"><a·id="l00029"·name="l00029"></a><span·class="lineno">···29</span>·***************************************************************************/</div> | 82 | <div·class="line"><a·id="l00029"·name="l00029"></a><span·class="lineno">···29</span>·***************************************************************************/</div> |
83 | <div·class="line"><a·id="l00030"·name="l00030"></a><span·class="lineno">···30</span>·</div> | 83 | <div·class="line"><a·id="l00030"·name="l00030"></a><span·class="lineno">···30</span>·</div> |
84 | <div·class="line"><a·id="l00031"·name="l00031"></a><span·class="lineno">···31</span>//·Start·of·section·namespace·SILLY</div> | 84 | <div·class="line"><a·id="l00031"·name="l00031"></a><span·class="lineno">···31</span>//·Start·of·section·namespace·SILLY</div> |
85 | <div·class="line"><a·id="l00032"·name="l00032"></a><span·class="lineno">···32</span>namespace·SILLY</div> | 85 | <div·class="line"><a·id="l00032"·name="l00032"></a><span·class="lineno">···32</span>namespace·SILLY</div> |
86 | <div·class="line"><a·id="l00033"·name="l00033"></a><span·class="lineno">···33</span>{</div> | 86 | <div·class="line"><a·id="l00033"·name="l00033"></a><span·class="lineno">···33</span>{</div> |
87 | <div·class="line"><a·id="l00034"·name="l00034"></a><span·class="lineno">···34</span>·</div> | 87 | <div·class="line"><a·id="l00034"·name="l00034"></a><span·class="lineno">···34</span>····</div> |
88 | <div·class="line"><a·id="l00035"·name="l00035"></a><span·class="lineno">···35</span>inline·ImageContext::ImageContext(size_t·width,·size_t·height)</div> | ||
89 | <div·class="line"><a·id="l00036"·name="l00036"></a><span·class="lineno">···36</span>····:·d_pixels(0),·d_length(0),·d_width(width),·d_height(height),·d_currentOffset(0),·d_format(PF_RGBA)·</div> | ||
90 | <div·class="line"><a·id="l00037"·name="l00037"></a><span·class="lineno">···37</span>{</div> | ||
91 | <div·class="line"><a·id="l00038"·name="l00038"></a><span·class="lineno">···38</span>}</div> | ||
92 | <div·class="line"><a·id="l00039"·name="l00039"></a><span·class="lineno">···39</span>·</div> | ||
93 | <div·class="line"><a·id="l00040"·name="l00040"></a><span·class="lineno">···40</span>·</div> | ||
94 | <div·class="line"><a·id="l00041"·name="l00041"></a><span·class="lineno">···41</span>inline·ImageContext::~ImageContext()·</div> | ||
95 | <div·class="line"><a·id="l00042"·name="l00042"></a><span·class="lineno">···42</span>{</div> | ||
96 | <div·class="line"><a·id="l00043"·name="l00043"></a><span·class="lineno">···43</span>}·······</div> | ||
97 | <div·class="line"><a·id="l00044"·name="l00044"></a><span·class="lineno">···44</span>·</div> | ||
98 | <div·class="line"><a·id="l00045"·name="l00045"></a><span·class="lineno">···45</span>·</div> | ||
99 | <div·class="line"><a·id="l00046"·name="l00046"></a><span·class="lineno">···46</span>inline·void·ImageContext::setDestination(byte*·pixels,·size_t·length,·PixelFormat·format)</div> | ||
100 | <div·class="line"><a·id="l00047"·name="l00047"></a><span·class="lineno">···47</span>{</div> | ||
101 | <div·class="line"><a·id="l00048"·name="l00048"></a><span·class="lineno">···48</span>····d_pixels·=·pixels;</div> | ||
102 | <div·class="line"><a·id="l00049"·name="l00049"></a><span·class="lineno">···49</span>····d_length·=·length;</div> | ||
103 | <div·class="line"><a·id="l00050"·name="l00050"></a><span·class="lineno">···50</span>····d_currentOffset·=·0;</div> | ||
104 | <div·class="line"><a·id="l00051"·name="l00051"></a><span·class="lineno">···51</span>····d_format·=·format;</div> | ||
105 | <div·class="line"><a·id="l00052"·name="l00052"></a><span·class="lineno">···52</span>}</div> | ||
106 | <div·class="line"><a·id="l00053"·name="l00053"></a><span·class="lineno">···53</span>·</div> | ||
107 | <div·class="line"><a·id="l00054"·name="l00054"></a><span·class="lineno">···54</span>inline·void·ImageContext::setNextPixel(byte·red,·byte·green,·byte·bleu,·byte·alpha)</div> | ||
108 | <div·class="line"><a·id="l00055"·name="l00055"></a><span·class="lineno">···55</span>{</div> | ||
109 | <div·class="line"><a·id="l00056"·name="l00056"></a><span·class="lineno">···56</span>····//assert(d_currentOffset·<·d_length·&&·"ASSERT:·try·to·set·a·pixel·outside·of·the·image");</div> | ||
110 | <div·class="line"><a·id="l00057"·name="l00057"></a><span·class="lineno">···57</span>····switch(d_format)</div> | ||
111 | <div·class="line"><a·id="l00058"·name="l00058"></a><span·class="lineno">···58</span>····{</div> | ||
112 | <div·class="line"><a·id="l00059"·name="l00059"></a><span·class="lineno">···59</span>····case·PF_A1B5G5R5:</div> | ||
113 | <div·class="line"><a·id="l00060"·name="l00060"></a><span·class="lineno">···60</span>········//·The·hard·part·</div> | ||
114 | <div·class="line"><a·id="l00061"·name="l00061"></a><span·class="lineno">···61</span>········assert(0·&&·"ASSERT:·Not·yet·implemented");</div> | ||
115 | <div·class="line"><a·id="l00062"·name="l00062"></a><span·class="lineno">···62</span>········break;</div> | ||
116 | <div·class="line"><a·id="l00063"·name="l00063"></a><span·class="lineno">···63</span>····case·PF_RGB:</div> | ||
117 | <div·class="line"><a·id="l00064"·name="l00064"></a><span·class="lineno">···64</span>········//·Ignore·alpha·channel·</div> | ||
118 | <div·class="line"><a·id="l00065"·name="l00065"></a><span·class="lineno">···65</span>········d_pixels[d_currentOffset++]·=·red;</div> | ||
119 | <div·class="line"><a·id="l00066"·name="l00066"></a><span·class="lineno">···66</span>········d_pixels[d_currentOffset++]·=·green;</div> | ||
120 | <div·class="line"><a·id="l00067"·name="l00067"></a><span·class="lineno">···67</span>········d_pixels[d_currentOffset++]·=·bleu;</div> | ||
121 | <div·class="line"><a·id="l00068"·name="l00068"></a><span·class="lineno">···68</span>········break;</div> | ||
122 | <div·class="line"><a·id="l00069"·name="l00069"></a><span·class="lineno">···69</span>·</div> | ||
123 | <div·class="line"><a·id="l00070"·name="l00070"></a><span·class="lineno">···70</span>····case·PF_RGBA:····</div> | ||
124 | <div·class="line"><a·id="l00071"·name="l00071"></a><span·class="lineno">···71</span>········d_pixels[d_currentOffset++]·=·red;</div> | ||
125 | <div·class="line"><a·id="l00072"·name="l00072"></a><span·class="lineno">···72</span>········d_pixels[d_currentOffset++]·=·green;</div> | ||
126 | <div·class="line"><a·id="l00073"·name="l00073"></a><span·class="lineno">···73</span>········d_pixels[d_currentOffset++]·=·bleu;</div> | ||
127 | <div·class="line"><a·id="l00074"·name="l00074"></a><span·class="lineno">···74</span>········d_pixels[d_currentOffset++]·=·alpha;</div> | ||
128 | <div·class="line"><a·id="l00075"·name="l00075"></a><span·class="lineno">···75</span>········break;···</div> | ||
129 | <div·class="line"><a·id="l00076"·name="l00076"></a><span·class="lineno">···76</span>····</div> | ||
130 | <div·class="line"><a·id="l00077"·name="l00077"></a><span·class="lineno">···77</span>····}</div> | ||
131 | <div·class="line"><a·id="l00078"·name="l00078"></a><span·class="lineno">···78</span>}</div> | ||
132 | <div·class="line"><a·id="l00079"·name="l00079"></a><span·class="lineno">···79</span>inline·size_t·ImageContext::getWidth()·const</div> | ||
133 | <div·class="line"><a·id="l00080"·name="l00080"></a><span·class="lineno">···80</span>{</div> | ||
134 | <div·class="line"><a·id="l00081"·name="l00081"></a><span·class="lineno">···81</span>····return·d_width;</div> | ||
135 | <div·class="line"><a·id="l00082"·name="l00082"></a><span·class="lineno">···82</span>}</div> | ||
136 | <div·class="line"><a·id="l00083"·name="l00083"></a><span·class="lineno">···83</span>·</div> | ||
137 | <div·class="line"><a·id="l00084"·name="l00084"></a><span·class="lineno">···84</span>inline·void·ImageContext::setWidth(size_t·width)·</div> | ||
138 | <div·class="line"><a·id="l00085"·name="l00085"></a><span·class="lineno">···85</span>{</div> | ||
139 | <div·class="line"><a·id="l00086"·name="l00086"></a><span·class="lineno">···86</span>····d_width·=·width;</div> | ||
140 | <div·class="line"><a·id="l00087"·name="l00087"></a><span·class="lineno">···87</span>}</div> | ||
141 | <div·class="line"><a·id="l00088"·name="l00088"></a><span·class="lineno">···88</span>·</div> | ||
142 | <div·class="line"><a·id="l00089"·name="l00089"></a><span·class="lineno">···89</span>inline·size_t·ImageContext::getHeight()·const</div> | ||
143 | <div·class="line"><a·id="l00090"·name="l00090"></a><span·class="lineno">···90</span>{</div> | ||
144 | <div·class="line"><a·id="l00091"·name="l00091"></a><span·class="lineno">···91</span>····return·d_height;</div> | ||
145 | <div·class="line"><a·id="l00092"·name="l00092"></a><span·class="lineno">···92</span>}</div> | ||
146 | <div·class="line"><a·id="l00093"·name="l00093"></a><span·class="lineno">···93</span>·</div> | ||
147 | <div·class="line"><a·id="l00094"·name="l00094"></a><span·class="lineno">···94</span>inline·void·ImageContext::setHeight(size_t·height)</div> | ||
148 | <div·class="line"><a·id="l00095"·name="l00095"></a><span·class="lineno">···95</span>{</div> | ||
149 | <div·class="line"><a·id="l00096"·name="l00096"></a><span·class="lineno">···96</span>····d_height·=·height;</div> | ||
150 | <div·class="line"><a·id="l00097"·name="l00097"></a><span·class="lineno">···97</span>}</div> | ||
151 | <div·class="line"><a·id="l00098"·name="l00098"></a><span·class="lineno">···98</span>inline·PixelFormat·ImageContext::getPixelFormat()·const</div> | ||
152 | <div·class="line"><a·id="l00099"·name="l00099"></a><span·class="lineno">···99</span>{</div> | ||
153 | <div·class="line"><a·id="l00100"·name="l00100"></a><span·class="lineno">··100</span>········return·d_format;</div> | ||
154 | <div·class="line"><a·id="l00101"·name="l00101"></a><span·class="lineno">··101</span>}</div> | ||
155 | <div·class="line"><a·id="l00102"·name="l00102"></a><span·class="lineno">··102</span>·</div> | ||
156 | <div·class="line"><a·id="l00 | 88 | <div·class="line"><a·id="l00035"·name="l00035"></a><span·class="lineno">···35</span>}·//·End·of·section·namespace·SILLY</div> |
157 | <div·class="line"><a·id="l00 | 89 | <div·class="line"><a·id="l00036"·name="l00036"></a><span·class="lineno">···36</span>·</div> |
158 | </div><!--·fragment·--></div><!--·contents·--> | 90 | </div><!--·fragment·--></div><!--·contents·--> |
159 | <!--·start·footer·part·--> | 91 | <!--·start·footer·part·--> |
160 | <hr·class="footer"/><address·class="footer"><small> | 92 | <hr·class="footer"/><address·class="footer"><small> |
161 | Generated·by <a·href="https://www.doxygen.org/index.html"><img·class="footer"·src="doxygen.svg"·width="104"·height="31"·alt="doxygen"/></a>·1.9.8 | 93 | Generated·by <a·href="https://www.doxygen.org/index.html"><img·class="footer"·src="doxygen.svg"·width="104"·height="31"·alt="doxygen"/></a>·1.9.8 |
162 | </small></address> | 94 | </small></address> |
Max diff block lines reached; 9/14453 bytes (0.06%) of diff not shown. |
Offset 1, 19 lines modified | Offset 1, 20 lines modified | ||
1 | Simple·Image·Loading·LibrarY 0.1.0 | 1 | Simple·Image·Loading·LibrarY 0.1.0 |
2 | ····*·_\x8b_\x8u_\x8i_\x8l_\x8d | 2 | ····*·_\x8b_\x8u_\x8i_\x8l_\x8d |
3 | ····*·_\x8r_\x8e_\x8p_\x8r_\x8o_\x8d_\x8u_\x8c_\x8i_\x8b_\x8l_\x8e_\x8-_\x8p_\x8a_\x8t_\x8h | 3 | ····*·_\x8r_\x8e_\x8p_\x8r_\x8o_\x8d_\x8u_\x8c_\x8i_\x8b_\x8l_\x8e_\x8-_\x8p_\x8a_\x8t_\x8h |
4 | ····*·_\x8s_\x8i_\x8l_\x8l_\x8y_\x8-_\x80_\x8._\x81_\x8._\x80 | 4 | ····*·_\x8s_\x8i_\x8l_\x8l_\x8y_\x8-_\x80_\x8._\x81_\x8._\x80 |
5 | ····*·_\x8i_\x8n_\x8c_\x8l_\x8u_\x8d_\x8e | 5 | ····*·_\x8i_\x8n_\x8c_\x8l_\x8u_\x8d_\x8e |
6 | 6 | ····*·_.l_.o_.a_.d_.e_.r_.s | |
7 | SILLYTGAImageLoader.icpp | ||
7 | 1/*********************************************************************** | 8 | 1/*********************************************************************** |
8 | 2·filename:·SILLYImage | 9 | 2·filename:·SILLYTGAImageLoader.icpp |
9 | 3·created:·1 | 10 | 3·created:·11·Jun·2006 |
10 | 4·author:·Olivier·Delannoy | 11 | 4·author:·Olivier·Delannoy |
11 | 5 | 12 | 5 |
12 | 6·purpose:·Inline·defin | 13 | 6·purpose:·Inline·defintion·of·TGAImageLoader·class |
13 | 7*************************************************************************/ | 14 | 7*************************************************************************/ |
14 | 8/*************************************************************************** | 15 | 8/*************************************************************************** |
15 | 9·*·Copyright·(C)·2004·-·2006·Paul·D·Turner·&·The·CEGUI·Development·Team | 16 | 9·*·Copyright·(C)·2004·-·2006·Paul·D·Turner·&·The·CEGUI·Development·Team |
16 | 10·* | 17 | 10·* |
17 | 11·*·Permission·is·hereby·granted,·free·of·charge,·to·any·person·obtaining | 18 | 11·*·Permission·is·hereby·granted,·free·of·charge,·to·any·person·obtaining |
18 | 12·*·a·copy·of·this·software·and·associated·documentation·files·(the | 19 | 12·*·a·copy·of·this·software·and·associated·documentation·files·(the |
19 | 13·*·"Software"),·to·deal·in·the·Software·without·restriction,·including | 20 | 13·*·"Software"),·to·deal·in·the·Software·without·restriction,·including |
Offset 34, 83 lines modified | Offset 35, 11 lines modified | ||
34 | 28·*·OTHER·DEALINGS·IN·THE·SOFTWARE. | 35 | 28·*·OTHER·DEALINGS·IN·THE·SOFTWARE. |
35 | 29·***************************************************************************/ | 36 | 29·***************************************************************************/ |
36 | 30 | 37 | 30 |
37 | 31//·Start·of·section·namespace·SILLY | 38 | 31//·Start·of·section·namespace·SILLY |
38 | 32namespace·SILLY | 39 | 32namespace·SILLY |
39 | 33{ | 40 | 33{ |
40 | 34 | 41 | 34 |
41 | 35inline·ImageContext::ImageContext(size_t·width,·size_t·height) | ||
42 | 36·:·d_pixels(0),·d_length(0),·d_width(width),·d_height(height), | ||
43 | d_currentOffset(0),·d_format(PF_RGBA) | ||
44 | 37{ | ||
45 | 38} | ||
46 | 39 | ||
47 | 40 | ||
48 | 41inline·ImageContext::~ImageContext() | ||
49 | 42{ | ||
50 | 43} | ||
51 | 44 | ||
52 | 45 | ||
53 | 46inline·void·ImageContext::setDestination(byte*·pixels,·size_t·length, | ||
54 | PixelFormat·format) | ||
55 | 47{ | ||
56 | 48·d_pixels·=·pixels; | ||
57 | 49·d_length·=·length; | ||
58 | 50·d_currentOffset·=·0; | ||
59 | 51·d_format·=·format; | ||
60 | 52} | ||
61 | 53 | ||
62 | 54inline·void·ImageContext::setNextPixel(byte·red,·byte·green,·byte·bleu,·byte | ||
63 | alpha) | ||
64 | 55{ | ||
65 | 56·//assert(d_currentOffset·<·d_length·&&·"ASSERT:·try·to·set·a·pixel·outside | ||
66 | of·the·image"); | ||
67 | 57·switch(d_format) | ||
68 | 58·{ | ||
69 | 59·case·PF_A1B5G5R5: | ||
70 | 60·//·The·hard·part | ||
71 | 61·assert(0·&&·"ASSERT:·Not·yet·implemented"); | ||
72 | 62·break; | ||
73 | 63·case·PF_RGB: | ||
74 | 64·//·Ignore·alpha·channel | ||
75 | 65·d_pixels[d_currentOffset++]·=·red; | ||
76 | 66·d_pixels[d_currentOffset++]·=·green; | ||
77 | 67·d_pixels[d_currentOffset++]·=·bleu; | ||
78 | 68·break; | ||
79 | 69 | ||
80 | 70·case·PF_RGBA: | ||
81 | 71·d_pixels[d_currentOffset++]·=·red; | ||
82 | 72·d_pixels[d_currentOffset++]·=·green; | ||
83 | 73·d_pixels[d_currentOffset++]·=·bleu; | ||
84 | 74·d_pixels[d_currentOffset++]·=·alpha; | ||
85 | 75·break; | ||
86 | 76 | ||
87 | 77·} | ||
88 | 78} | ||
89 | 79inline·size_t·ImageContext::getWidth()·const | ||
90 | 80{ | ||
91 | 81·return·d_width; | ||
92 | 82} | ||
93 | 83 | ||
94 | 84inline·void·ImageContext::setWidth(size_t·width) | ||
95 | 85{ | ||
96 | 86·d_width·=·width; | ||
97 | 87} | ||
98 | 88 | ||
99 | 89inline·size_t·ImageContext::getHeight()·const | ||
100 | 90{ | ||
101 | 91·return·d_height; | ||
102 | 92} | ||
103 | 93 | ||
104 | 94inline·void·ImageContext::setHeight(size_t·height) | ||
105 | 95{ | ||
106 | 96·d_height·=·height; | ||
107 | 97} | ||
108 | 98inline·PixelFormat·ImageContext::getPixelFormat()·const | ||
109 | 99{ | ||
110 | 100·return·d_format; | ||
111 | 101} | ||
112 | 102 | ||
113 | 42 | 35}·//·End·of·section·namespace·SILLY | |
114 | 43 | 36 | |
115 | =============================================================================== | 44 | =============================================================================== |
116 | ·····Generated·by _\x8[_\x8d_\x8o_\x8x_\x8y_\x8g_\x8e_\x8n_\x8]·1.9.8 | 45 | ·····Generated·by _\x8[_\x8d_\x8o_\x8x_\x8y_\x8g_\x8e_\x8n_\x8]·1.9.8 |
Offset 164, 15 lines modified | Offset 164, 15 lines modified | ||
164 | ··········<td·class="memname">typedef·unsigned·char·<a·class="el"·href="a00129.html#a0c8186d9b9b7880309c27230bbb5e69d">byte</a></td> | 164 | ··········<td·class="memname">typedef·unsigned·char·<a·class="el"·href="a00129.html#a0c8186d9b9b7880309c27230bbb5e69d">byte</a></td> |
165 | ········</tr> | 165 | ········</tr> |
166 | ······</table> | 166 | ······</table> |
167 | </div><div·class="memdoc"> | 167 | </div><div·class="memdoc"> |
168 | <p>Typename·for·a·byte.·</p> | 168 | <p>Typename·for·a·byte.·</p> |
169 | <p·class="definition">Definition·at·line·<a·class="el"·href="a00 | 169 | <p·class="definition">Definition·at·line·<a·class="el"·href="a00044_source.html#l00080">80</a>·of·file·<a·class="el"·href="a00044_source.html">SILLYBase.h</a>.</p> |
170 | </div> | 170 | </div> |
171 | </div> | 171 | </div> |
172 | <a·id="a9f85557d059f38f7bb66a898472d394e"·name="a9f85557d059f38f7bb66a898472d394e"></a> | 172 | <a·id="a9f85557d059f38f7bb66a898472d394e"·name="a9f85557d059f38f7bb66a898472d394e"></a> |
173 | <h2·class="memtitle"><span·class="permalink"><a·href="#a9f85557d059f38f7bb66a898472d394e">◆ </a></span>ImageLoaderList</h2> | 173 | <h2·class="memtitle"><span·class="permalink"><a·href="#a9f85557d059f38f7bb66a898472d394e">◆ </a></span>ImageLoaderList</h2> |
174 | <div·class="memitem"> | 174 | <div·class="memitem"> |
Offset 182, 15 lines modified | Offset 182, 15 lines modified | ||
182 | ··········<td·class="memname">typedef·std::vector<<a·class="el"·href="a00985.html">ImageLoader</a>*>·<a·class="el"·href="a00129.html#a9f85557d059f38f7bb66a898472d394e">ImageLoaderList</a></td> | 182 | ··········<td·class="memname">typedef·std::vector<<a·class="el"·href="a00985.html">ImageLoader</a>*>·<a·class="el"·href="a00129.html#a9f85557d059f38f7bb66a898472d394e">ImageLoaderList</a></td> |
183 | ········</tr> | 183 | ········</tr> |
184 | ······</table> | 184 | ······</table> |
185 | </div><div·class="memdoc"> | 185 | </div><div·class="memdoc"> |
186 | <p>Typename·for·a·collection·of·image·loader.·</p> | 186 | <p>Typename·for·a·collection·of·image·loader.·</p> |
187 | <p·class="definition">Definition·at·line·<a·class="el"·href="a00 | 187 | <p·class="definition">Definition·at·line·<a·class="el"·href="a00089_source.html#l00042">42</a>·of·file·<a·class="el"·href="a00089_source.html">SILLYImageLoaderManager.h</a>.</p> |
188 | </div> | 188 | </div> |
189 | </div> | 189 | </div> |
190 | <h2·class="groupheader">Enumeration·Type·Documentation</h2> | 190 | <h2·class="groupheader">Enumeration·Type·Documentation</h2> |
191 | <a·id="a60883d4958a60b91661e97027a85072a"·name="a60883d4958a60b91661e97027a85072a"></a> | 191 | <a·id="a60883d4958a60b91661e97027a85072a"·name="a60883d4958a60b91661e97027a85072a"></a> |
192 | <h2·class="memtitle"><span·class="permalink"><a·href="#a60883d4958a60b91661e97027a85072a">◆ </a></span>PixelFormat</h2> | 192 | <h2·class="memtitle"><span·class="permalink"><a·href="#a60883d4958a60b91661e97027a85072a">◆ </a></span>PixelFormat</h2> |
Offset 201, 15 lines modified | Offset 201, 15 lines modified | ||
201 | ··········<td·class="memname">enum·<a·class="el"·href="a00129.html#a60883d4958a60b91661e97027a85072a">PixelFormat</a></td> | 201 | ··········<td·class="memname">enum·<a·class="el"·href="a00129.html#a60883d4958a60b91661e97027a85072a">PixelFormat</a></td> |
202 | ········</tr> | 202 | ········</tr> |
203 | ······</table> | 203 | ······</table> |
204 | </div><div·class="memdoc"> | 204 | </div><div·class="memdoc"> |
205 | <p>List·all·pixel·format·supported.·</p> | 205 | <p>List·all·pixel·format·supported.·</p> |
206 | <p·class="definition">Definition·at·line·<a·class="el"·href="a00 | 206 | <p·class="definition">Definition·at·line·<a·class="el"·href="a00044_source.html#l00059">59</a>·of·file·<a·class="el"·href="a00044_source.html">SILLYBase.h</a>.</p> |
207 | </div> | 207 | </div> |
208 | </div> | 208 | </div> |
209 | <a·id="aebdd89f22790687ac264c1abd9f7fd38"·name="aebdd89f22790687ac264c1abd9f7fd38"></a> | 209 | <a·id="aebdd89f22790687ac264c1abd9f7fd38"·name="aebdd89f22790687ac264c1abd9f7fd38"></a> |
210 | <h2·class="memtitle"><span·class="permalink"><a·href="#aebdd89f22790687ac264c1abd9f7fd38">◆ </a></span>PixelOrigin</h2> | 210 | <h2·class="memtitle"><span·class="permalink"><a·href="#aebdd89f22790687ac264c1abd9f7fd38">◆ </a></span>PixelOrigin</h2> |
211 | <div·class="memitem"> | 211 | <div·class="memitem"> |
Offset 219, 15 lines modified | Offset 219, 15 lines modified | ||
219 | ··········<td·class="memname">enum·<a·class="el"·href="a00129.html#aebdd89f22790687ac264c1abd9f7fd38">PixelOrigin</a></td> | 219 | ··········<td·class="memname">enum·<a·class="el"·href="a00129.html#aebdd89f22790687ac264c1abd9f7fd38">PixelOrigin</a></td> |
220 | ········</tr> | 220 | ········</tr> |
221 | ······</table> | 221 | ······</table> |
222 | </div><div·class="memdoc"> | 222 | </div><div·class="memdoc"> |
223 | <p>List·all·pixel·origin·supported.·</p> | 223 | <p>List·all·pixel·origin·supported.·</p> |
224 | <p·class="definition">Definition·at·line·<a·class="el"·href="a00 | 224 | <p·class="definition">Definition·at·line·<a·class="el"·href="a00044_source.html#l00070">70</a>·of·file·<a·class="el"·href="a00044_source.html">SILLYBase.h</a>.</p> |
225 | </div> | 225 | </div> |
226 | </div> | 226 | </div> |
227 | <h2·class="groupheader">Function·Documentation</h2> | 227 | <h2·class="groupheader">Function·Documentation</h2> |
228 | <a·id="ae8c4a8f5345f01117c4cab4ba69e2109"·name="ae8c4a8f5345f01117c4cab4ba69e2109"></a> | 228 | <a·id="ae8c4a8f5345f01117c4cab4ba69e2109"·name="ae8c4a8f5345f01117c4cab4ba69e2109"></a> |
229 | <h2·class="memtitle"><span·class="permalink"><a·href="#ae8c4a8f5345f01117c4cab4ba69e2109">◆ </a></span>JPG_emit_message()</h2> | 229 | <h2·class="memtitle"><span·class="permalink"><a·href="#ae8c4a8f5345f01117c4cab4ba69e2109">◆ </a></span>JPG_emit_message()</h2> |
Offset 250, 15 lines modified | Offset 250, 15 lines modified | ||
250 | ··········<td></td> | 250 | ··········<td></td> |
251 | ··········<td>)</td> | 251 | ··········<td>)</td> |
252 | ··········<td></td><td></td> | 252 | ··········<td></td><td></td> |
253 | ········</tr> | 253 | ········</tr> |
254 | ······</table> | 254 | ······</table> |
255 | </div><div·class="memdoc"> | 255 | </div><div·class="memdoc"> |
256 | <p·class="definition">Definition·at·line·<a·class="el"·href="a0002 | 256 | <p·class="definition">Definition·at·line·<a·class="el"·href="a00023_source.html#l00084">84</a>·of·file·<a·class="el"·href="a00023_source.html">SILLYJPGImageContext.cpp</a>.</p> |
257 | </div> | 257 | </div> |
258 | </div> | 258 | </div> |
259 | <a·id="a1263c9f37c7e03853e7bc7dcb4d172c6"·name="a1263c9f37c7e03853e7bc7dcb4d172c6"></a> | 259 | <a·id="a1263c9f37c7e03853e7bc7dcb4d172c6"·name="a1263c9f37c7e03853e7bc7dcb4d172c6"></a> |
260 | <h2·class="memtitle"><span·class="permalink"><a·href="#a1263c9f37c7e03853e7bc7dcb4d172c6">◆ </a></span>JPG_error_exit()</h2> | 260 | <h2·class="memtitle"><span·class="permalink"><a·href="#a1263c9f37c7e03853e7bc7dcb4d172c6">◆ </a></span>JPG_error_exit()</h2> |
261 | <div·class="memitem"> | 261 | <div·class="memitem"> |
Offset 270, 15 lines modified | Offset 270, 15 lines modified | ||
270 | ··········<td·class="paramtype">j_common_ptr </td> | 270 | ··········<td·class="paramtype">j_common_ptr </td> |
271 | ··········<td·class="paramname"><em>cinfo</em></td><td>)</td> | 271 | ··········<td·class="paramname"><em>cinfo</em></td><td>)</td> |
272 | ··········<td></td> | 272 | ··········<td></td> |
273 | ········</tr> | 273 | ········</tr> |
274 | ······</table> | 274 | ······</table> |
275 | </div><div·class="memdoc"> | 275 | </div><div·class="memdoc"> |
276 | <p·class="definition">Definition·at·line·<a·class="el"·href="a0002 | 276 | <p·class="definition">Definition·at·line·<a·class="el"·href="a00023_source.html#l00076">76</a>·of·file·<a·class="el"·href="a00023_source.html">SILLYJPGImageContext.cpp</a>.</p> |
277 | </div> | 277 | </div> |
278 | </div> | 278 | </div> |
279 | <a·id="a39291a268b8fe5b48a38e395f5aa6296"·name="a39291a268b8fe5b48a38e395f5aa6296"></a> | 279 | <a·id="a39291a268b8fe5b48a38e395f5aa6296"·name="a39291a268b8fe5b48a38e395f5aa6296"></a> |
280 | <h2·class="memtitle"><span·class="permalink"><a·href="#a39291a268b8fe5b48a38e395f5aa6296">◆ </a></span>JPG_fill_input_buffer()</h2> | 280 | <h2·class="memtitle"><span·class="permalink"><a·href="#a39291a268b8fe5b48a38e395f5aa6296">◆ </a></span>JPG_fill_input_buffer()</h2> |
281 | <div·class="memitem"> | 281 | <div·class="memitem"> |
Offset 290, 15 lines modified | Offset 290, 15 lines modified | ||
290 | ··········<td·class="paramtype">j_decompress_ptr </td> | 290 | ··········<td·class="paramtype">j_decompress_ptr </td> |
291 | ··········<td·class="paramname"><em>cinfo</em></td><td>)</td> | 291 | ··········<td·class="paramname"><em>cinfo</em></td><td>)</td> |
292 | ··········<td></td> | 292 | ··········<td></td> |
293 | ········</tr> | 293 | ········</tr> |
294 | ······</table> | 294 | ······</table> |
295 | </div><div·class="memdoc"> | 295 | </div><div·class="memdoc"> |
296 | <p·class="definition">Definition·at·line·<a·class="el"·href="a0002 | 296 | <p·class="definition">Definition·at·line·<a·class="el"·href="a00023_source.html#l00054">54</a>·of·file·<a·class="el"·href="a00023_source.html">SILLYJPGImageContext.cpp</a>.</p> |
297 | </div> | 297 | </div> |
298 | </div> | 298 | </div> |
299 | <a·id="ad721b6115925cc0770f5d09f992065c9"·name="ad721b6115925cc0770f5d09f992065c9"></a> | 299 | <a·id="ad721b6115925cc0770f5d09f992065c9"·name="ad721b6115925cc0770f5d09f992065c9"></a> |
300 | <h2·class="memtitle"><span·class="permalink"><a·href="#ad721b6115925cc0770f5d09f992065c9">◆ </a></span>JPG_init_source()</h2> | 300 | <h2·class="memtitle"><span·class="permalink"><a·href="#ad721b6115925cc0770f5d09f992065c9">◆ </a></span>JPG_init_source()</h2> |
301 | <div·class="memitem"> | 301 | <div·class="memitem"> |
Offset 310, 15 lines modified | Offset 310, 15 lines modified | ||
310 | ··········<td·class="paramtype">j_decompress_ptr </td> | 310 | ··········<td·class="paramtype">j_decompress_ptr </td> |
311 | ··········<td·class="paramname"><em>cinfo</em></td><td>)</td> | 311 | ··········<td·class="paramname"><em>cinfo</em></td><td>)</td> |
312 | ··········<td></td> | 312 | ··········<td></td> |
313 | ········</tr> | 313 | ········</tr> |
314 | ······</table> | 314 | ······</table> |
315 | </div><div·class="memdoc"> | 315 | </div><div·class="memdoc"> |
316 | <p·class="definition">Definition·at·line·<a·class="el"·href="a0002 | 316 | <p·class="definition">Definition·at·line·<a·class="el"·href="a00023_source.html#l00049">49</a>·of·file·<a·class="el"·href="a00023_source.html">SILLYJPGImageContext.cpp</a>.</p> |
317 | </div> | 317 | </div> |
318 | </div> | 318 | </div> |
319 | <a·id="ab7e56ff0692fc5f3a172eecab41f3d48"·name="ab7e56ff0692fc5f3a172eecab41f3d48"></a> | 319 | <a·id="ab7e56ff0692fc5f3a172eecab41f3d48"·name="ab7e56ff0692fc5f3a172eecab41f3d48"></a> |
320 | <h2·class="memtitle"><span·class="permalink"><a·href="#ab7e56ff0692fc5f3a172eecab41f3d48">◆ </a></span>JPG_skip_input_data()</h2> | 320 | <h2·class="memtitle"><span·class="permalink"><a·href="#ab7e56ff0692fc5f3a172eecab41f3d48">◆ </a></span>JPG_skip_input_data()</h2> |
321 | <div·class="memitem"> | 321 | <div·class="memitem"> |
Max diff block lines reached; 6632/13574 bytes (48.86%) of diff not shown. |
Offset 51, 15 lines modified | Offset 51, 15 lines modified | ||
51 | ··<div·class="headertitle"><div·class="title">JPGImageContext·Class·Reference</div></div> | 51 | ··<div·class="headertitle"><div·class="title">JPGImageContext·Class·Reference</div></div> |
52 | </div><!--header--> | 52 | </div><!--header--> |
53 | <div·class="contents"> | 53 | <div·class="contents"> |
54 | <p><a·class="el"·href="a00977.html"·title="Image·is·the·main·user·class·of·the·library.">Image</a>·Context·for·JPG·image·loader.·· | 54 | <p><a·class="el"·href="a00977.html"·title="Image·is·the·main·user·class·of·the·library.">Image</a>·Context·for·JPG·image·loader.·· |
55 | ·<a·href="a00945.html#details">More...</a></p> | 55 | ·<a·href="a00945.html#details">More...</a></p> |
56 | <p><code>#include·<<a·class="el"·href="a0007 | 56 | <p><code>#include·<<a·class="el"·href="a00107_source.html">SILLYJPGImageContext.h</a>></code></p> |
57 | <div·class="dynheader"> | 57 | <div·class="dynheader"> |
58 | Inheritance·diagram·for·JPGImageContext:</div> | 58 | Inheritance·diagram·for·JPGImageContext:</div> |
59 | <div·class="dyncontent"> | 59 | <div·class="dyncontent"> |
60 | <div·class="center"><img·src="a00944.png"·border="0"·usemap="#aJPGImageContext_inherit__map"·alt="Inheritance·graph"/></div> | 60 | <div·class="center"><img·src="a00944.png"·border="0"·usemap="#aJPGImageContext_inherit__map"·alt="Inheritance·graph"/></div> |
61 | <map·name="aJPGImageContext_inherit__map"·id="aJPGImageContext_inherit__map"> | 61 | <map·name="aJPGImageContext_inherit__map"·id="aJPGImageContext_inherit__map"> |
62 | <area·shape="rect"·title="Image·Context·for·JPG·image·loader."·alt=""·coords="5,79,141,104"/> | 62 | <area·shape="rect"·title="Image·Context·for·JPG·image·loader."·alt=""·coords="5,79,141,104"/> |
63 | <area·shape="rect"·href="a00981.html"·title="Store·the·data·needed·by·an·ImageLoader·object·during·the·parsing·of·an·image."·alt=""·coords="16,5,131,31"/> | 63 | <area·shape="rect"·href="a00981.html"·title="Store·the·data·needed·by·an·ImageLoader·object·during·the·parsing·of·an·image."·alt=""·coords="16,5,131,31"/> |
Offset 135, 15 lines modified | Offset 135, 15 lines modified | ||
135 | <tr·class="separator:a45d88d901fa542ecdb85a154f1221f90"><td·class="memSeparator"·colspan="2"> </td></tr> | 135 | <tr·class="separator:a45d88d901fa542ecdb85a154f1221f90"><td·class="memSeparator"·colspan="2"> </td></tr> |
136 | </table> | 136 | </table> |
137 | <a·name="details"·id="details"></a><h2·class="groupheader">Detailed·Description</h2> | 137 | <a·name="details"·id="details"></a><h2·class="groupheader">Detailed·Description</h2> |
138 | <div·class="textblock"><p><a·class="el"·href="a00977.html"·title="Image·is·the·main·user·class·of·the·library.">Image</a>·Context·for·JPG·image·loader.·</p> | 138 | <div·class="textblock"><p><a·class="el"·href="a00977.html"·title="Image·is·the·main·user·class·of·the·library.">Image</a>·Context·for·JPG·image·loader.·</p> |
139 | <p>Most·of·the·code·of·this·loader·is·taken·from·Corona·and·adapted·to·our·image·loading·framework</p> | 139 | <p>Most·of·the·code·of·this·loader·is·taken·from·Corona·and·adapted·to·our·image·loading·framework</p> |
140 | <p>Multiple·loading·is·not·handle·yet.·</p> | 140 | <p>Multiple·loading·is·not·handle·yet.·</p> |
141 | <p·class="definition">Definition·at·line·<a·class="el"·href="a0007 | 141 | <p·class="definition">Definition·at·line·<a·class="el"·href="a00107_source.html#l00056">56</a>·of·file·<a·class="el"·href="a00107_source.html">SILLYJPGImageContext.h</a>.</p> |
142 | </div><h2·class="groupheader">Constructor·&·Destructor·Documentation</h2> | 142 | </div><h2·class="groupheader">Constructor·&·Destructor·Documentation</h2> |
143 | <a·id="a752bb06a34976226d9d56cc8c8aa42fe"·name="a752bb06a34976226d9d56cc8c8aa42fe"></a> | 143 | <a·id="a752bb06a34976226d9d56cc8c8aa42fe"·name="a752bb06a34976226d9d56cc8c8aa42fe"></a> |
144 | <h2·class="memtitle"><span·class="permalink"><a·href="#a752bb06a34976226d9d56cc8c8aa42fe">◆ </a></span>JPGImageContext()</h2> | 144 | <h2·class="memtitle"><span·class="permalink"><a·href="#a752bb06a34976226d9d56cc8c8aa42fe">◆ </a></span>JPGImageContext()</h2> |
145 | <div·class="memitem"> | 145 | <div·class="memitem"> |
146 | <div·class="memproto"> | 146 | <div·class="memproto"> |
147 | ······<table·class="memname"> | 147 | ······<table·class="memname"> |
Offset 152, 15 lines modified | Offset 152, 15 lines modified | ||
152 | ··········<td>(</td> | 152 | ··········<td>(</td> |
153 | ··········<td·class="paramname"></td><td>)</td> | 153 | ··········<td·class="paramname"></td><td>)</td> |
154 | ··········<td></td> | 154 | ··········<td></td> |
155 | ········</tr> | 155 | ········</tr> |
156 | ······</table> | 156 | ······</table> |
157 | </div><div·class="memdoc"> | 157 | </div><div·class="memdoc"> |
158 | <p·class="definition">Definition·at·line·<a·class="el"·href="a0002 | 158 | <p·class="definition">Definition·at·line·<a·class="el"·href="a00023_source.html#l00090">90</a>·of·file·<a·class="el"·href="a00023_source.html">SILLYJPGImageContext.cpp</a>.</p> |
159 | </div> | 159 | </div> |
160 | </div> | 160 | </div> |
161 | <a·id="a5d96cf36c0372331ab3f209bc681d79e"·name="a5d96cf36c0372331ab3f209bc681d79e"></a> | 161 | <a·id="a5d96cf36c0372331ab3f209bc681d79e"·name="a5d96cf36c0372331ab3f209bc681d79e"></a> |
162 | <h2·class="memtitle"><span·class="permalink"><a·href="#a5d96cf36c0372331ab3f209bc681d79e">◆ </a></span>~JPGImageContext()</h2> | 162 | <h2·class="memtitle"><span·class="permalink"><a·href="#a5d96cf36c0372331ab3f209bc681d79e">◆ </a></span>~JPGImageContext()</h2> |
163 | <div·class="memitem"> | 163 | <div·class="memitem"> |
Offset 171, 15 lines modified | Offset 171, 15 lines modified | ||
171 | ··········<td>(</td> | 171 | ··········<td>(</td> |
172 | ··········<td·class="paramname"></td><td>)</td> | 172 | ··········<td·class="paramname"></td><td>)</td> |
173 | ··········<td></td> | 173 | ··········<td></td> |
174 | ········</tr> | 174 | ········</tr> |
175 | ······</table> | 175 | ······</table> |
176 | </div><div·class="memdoc"> | 176 | </div><div·class="memdoc"> |
177 | <p·class="definition">Definition·at·line·<a·class="el"·href="a0002 | 177 | <p·class="definition">Definition·at·line·<a·class="el"·href="a00023_source.html#l00109">109</a>·of·file·<a·class="el"·href="a00023_source.html">SILLYJPGImageContext.cpp</a>.</p> |
178 | </div> | 178 | </div> |
179 | </div> | 179 | </div> |
180 | <h2·class="groupheader">Member·Function·Documentation</h2> | 180 | <h2·class="groupheader">Member·Function·Documentation</h2> |
181 | <a·id="a23cd315e8ce80deeb7a06e268f65412f"·name="a23cd315e8ce80deeb7a06e268f65412f"></a> | 181 | <a·id="a23cd315e8ce80deeb7a06e268f65412f"·name="a23cd315e8ce80deeb7a06e268f65412f"></a> |
182 | <h2·class="memtitle"><span·class="permalink"><a·href="#a23cd315e8ce80deeb7a06e268f65412f">◆ </a></span>flipVertically()</h2> | 182 | <h2·class="memtitle"><span·class="permalink"><a·href="#a23cd315e8ce80deeb7a06e268f65412f">◆ </a></span>flipVertically()</h2> |
Offset 202, 15 lines modified | Offset 202, 15 lines modified | ||
202 | ··</tr> | 202 | ··</tr> |
203 | </table> | 203 | </table> |
204 | </div><div·class="memdoc"> | 204 | </div><div·class="memdoc"> |
205 | <p>Flip·pixel·ordering.·</p> | 205 | <p>Flip·pixel·ordering.·</p> |
206 | <dl·class="section·return"><dt>Returns</dt><dd>true·on·success·false·otherwise·</dd></dl> | 206 | <dl·class="section·return"><dt>Returns</dt><dd>true·on·success·false·otherwise·</dd></dl> |
207 | <p·class="definition">Definition·at·line·<a·class="el"·href="a000 | 207 | <p·class="definition">Definition·at·line·<a·class="el"·href="a00038_source.html#l00045">45</a>·of·file·<a·class="el"·href="a00038_source.html">SILLYImageContext.cpp</a>.</p> |
208 | </div> | 208 | </div> |
209 | </div> | 209 | </div> |
210 | <a·id="a9082812fb7dbb2ca6fe3efdf26dcc2ea"·name="a9082812fb7dbb2ca6fe3efdf26dcc2ea"></a> | 210 | <a·id="a9082812fb7dbb2ca6fe3efdf26dcc2ea"·name="a9082812fb7dbb2ca6fe3efdf26dcc2ea"></a> |
211 | <h2·class="memtitle"><span·class="permalink"><a·href="#a9082812fb7dbb2ca6fe3efdf26dcc2ea">◆ </a></span>setImageSize()</h2> | 211 | <h2·class="memtitle"><span·class="permalink"><a·href="#a9082812fb7dbb2ca6fe3efdf26dcc2ea">◆ </a></span>setImageSize()</h2> |
212 | <div·class="memitem"> | 212 | <div·class="memitem"> |
Offset 221, 15 lines modified | Offset 221, 15 lines modified | ||
221 | ··········<td>(</td> | 221 | ··········<td>(</td> |
222 | ··········<td·class="paramname"></td><td>)</td> | 222 | ··········<td·class="paramname"></td><td>)</td> |
223 | ··········<td></td> | 223 | ··········<td></td> |
224 | ········</tr> | 224 | ········</tr> |
225 | ······</table> | 225 | ······</table> |
226 | </div><div·class="memdoc"> | 226 | </div><div·class="memdoc"> |
227 | <p·class="definition">Definition·at·line·<a·class="el"·href="a0002 | 227 | <p·class="definition">Definition·at·line·<a·class="el"·href="a00023_source.html#l00115">115</a>·of·file·<a·class="el"·href="a00023_source.html">SILLYJPGImageContext.cpp</a>.</p> |
228 | </div> | 228 | </div> |
229 | </div> | 229 | </div> |
230 | <h2·class="groupheader">Member·Data·Documentation</h2> | 230 | <h2·class="groupheader">Member·Data·Documentation</h2> |
231 | <a·id="a9ae932fa761a0df1ff0c4ff65c5346b5"·name="a9ae932fa761a0df1ff0c4ff65c5346b5"></a> | 231 | <a·id="a9ae932fa761a0df1ff0c4ff65c5346b5"·name="a9ae932fa761a0df1ff0c4ff65c5346b5"></a> |
232 | <h2·class="memtitle"><span·class="permalink"><a·href="#a9ae932fa761a0df1ff0c4ff65c5346b5">◆ </a></span>cinfo</h2> | 232 | <h2·class="memtitle"><span·class="permalink"><a·href="#a9ae932fa761a0df1ff0c4ff65c5346b5">◆ </a></span>cinfo</h2> |
Offset 238, 15 lines modified | Offset 238, 15 lines modified | ||
238 | ······<table·class="memname"> | 238 | ······<table·class="memname"> |
239 | ········<tr> | 239 | ········<tr> |
240 | ··········<td·class="memname">jpeg_decompress_struct·cinfo</td> | 240 | ··········<td·class="memname">jpeg_decompress_struct·cinfo</td> |
241 | ········</tr> | 241 | ········</tr> |
242 | ······</table> | 242 | ······</table> |
243 | </div><div·class="memdoc"> | 243 | </div><div·class="memdoc"> |
244 | <p·class="definition">Definition·at·line·<a·class="el"·href="a0007 | 244 | <p·class="definition">Definition·at·line·<a·class="el"·href="a00107_source.html#l00066">66</a>·of·file·<a·class="el"·href="a00107_source.html">SILLYJPGImageContext.h</a>.</p> |
245 | </div> | 245 | </div> |
246 | </div> | 246 | </div> |
247 | <a·id="a8266dbf94d328ee7d09ecba3b26171a0"·name="a8266dbf94d328ee7d09ecba3b26171a0"></a> | 247 | <a·id="a8266dbf94d328ee7d09ecba3b26171a0"·name="a8266dbf94d328ee7d09ecba3b26171a0"></a> |
248 | <h2·class="memtitle"><span·class="permalink"><a·href="#a8266dbf94d328ee7d09ecba3b26171a0">◆ </a></span>d_error_mgr</h2> | 248 | <h2·class="memtitle"><span·class="permalink"><a·href="#a8266dbf94d328ee7d09ecba3b26171a0">◆ </a></span>d_error_mgr</h2> |
249 | <div·class="memitem"> | 249 | <div·class="memitem"> |
Offset 254, 15 lines modified | Offset 254, 15 lines modified | ||
254 | ······<table·class="memname"> | 254 | ······<table·class="memname"> |
255 | ········<tr> | 255 | ········<tr> |
256 | ··········<td·class="memname">jpeg_error_mgr·d_error_mgr</td> | 256 | ··········<td·class="memname">jpeg_error_mgr·d_error_mgr</td> |
257 | ········</tr> | 257 | ········</tr> |
258 | ······</table> | 258 | ······</table> |
259 | </div><div·class="memdoc"> | 259 | </div><div·class="memdoc"> |
260 | <p·class="definition">Definition·at·line·<a·class="el"·href="a0007 | 260 | <p·class="definition">Definition·at·line·<a·class="el"·href="a00107_source.html#l00068">68</a>·of·file·<a·class="el"·href="a00107_source.html">SILLYJPGImageContext.h</a>.</p> |
261 | </div> | 261 | </div> |
262 | </div> | 262 | </div> |
263 | <a·id="a424f8139b59505ea272016c9fd1b1da9"·name="a424f8139b59505ea272016c9fd1b1da9"></a> | 263 | <a·id="a424f8139b59505ea272016c9fd1b1da9"·name="a424f8139b59505ea272016c9fd1b1da9"></a> |
264 | <h2·class="memtitle"><span·class="permalink"><a·href="#a424f8139b59505ea272016c9fd1b1da9">◆ </a></span>d_source</h2> | 264 | <h2·class="memtitle"><span·class="permalink"><a·href="#a424f8139b59505ea272016c9fd1b1da9">◆ </a></span>d_source</h2> |
265 | <div·class="memitem"> | 265 | <div·class="memitem"> |
Max diff block lines reached; 3067/10359 bytes (29.61%) of diff not shown. |
Offset 49, 15 lines modified | Offset 49, 15 lines modified | ||
49 | ··<div·class="headertitle"><div·class="title">JPGImageLoader·Class·Reference</div></div> | 49 | ··<div·class="headertitle"><div·class="title">JPGImageLoader·Class·Reference</div></div> |
50 | </div><!--header--> | 50 | </div><!--header--> |
51 | <div·class="contents"> | 51 | <div·class="contents"> |
52 | <p>Loader·class·for·JPG·<a·class="el"·href="a00977.html"·title="Image·is·the·main·user·class·of·the·library.">Image</a>.·· | 52 | <p>Loader·class·for·JPG·<a·class="el"·href="a00977.html"·title="Image·is·the·main·user·class·of·the·library.">Image</a>.·· |
53 | ·<a·href="a00949.html#details">More...</a></p> | 53 | ·<a·href="a00949.html#details">More...</a></p> |
54 | <p><code>#include·<<a·class="el"·href="a000 | 54 | <p><code>#include·<<a·class="el"·href="a00098_source.html">SILLYJPGImageLoader.h</a>></code></p> |
55 | <div·class="dynheader"> | 55 | <div·class="dynheader"> |
56 | Inheritance·diagram·for·JPGImageLoader:</div> | 56 | Inheritance·diagram·for·JPGImageLoader:</div> |
57 | <div·class="dyncontent"> | 57 | <div·class="dyncontent"> |
58 | <div·class="center"><img·src="a00948.png"·border="0"·usemap="#aJPGImageLoader_inherit__map"·alt="Inheritance·graph"/></div> | 58 | <div·class="center"><img·src="a00948.png"·border="0"·usemap="#aJPGImageLoader_inherit__map"·alt="Inheritance·graph"/></div> |
59 | <map·name="aJPGImageLoader_inherit__map"·id="aJPGImageLoader_inherit__map"> | 59 | <map·name="aJPGImageLoader_inherit__map"·id="aJPGImageLoader_inherit__map"> |
60 | <area·shape="rect"·title="Loader·class·for·JPG·Image."·alt=""·coords="5,79,135,104"/> | 60 | <area·shape="rect"·title="Loader·class·for·JPG·Image."·alt=""·coords="5,79,135,104"/> |
61 | <area·shape="rect"·href="a00985.html"·title="This·is·an·abstract·class·that·define·the·interface·of·all·image·loader."·alt=""·coords="17,5,123,31"/> | 61 | <area·shape="rect"·href="a00985.html"·title="This·is·an·abstract·class·that·define·the·interface·of·all·image·loader."·alt=""·coords="17,5,123,31"/> |
Offset 90, 15 lines modified | Offset 90, 15 lines modified | ||
90 | <tr·class="memitem:a4a4d6df5dcc08cb493855fcfc1956fca"·id="r_a4a4d6df5dcc08cb493855fcfc1956fca"><td·class="memItemLeft"·align="right"·valign="top">bool </td><td·class="memItemRight"·valign="bottom"><a·class="el"·href="a00949.html#a4a4d6df5dcc08cb493855fcfc1956fca">loadImageData</a>·(<a·class="el"·href="a00129.html#aebdd89f22790687ac264c1abd9f7fd38">PixelOrigin</a>·origin,·<a·class="el"·href="a00969.html">DataSource</a>·*data,·<a·class="el"·href="a00981.html">ImageContext</a>·*context)</td></tr> | 90 | <tr·class="memitem:a4a4d6df5dcc08cb493855fcfc1956fca"·id="r_a4a4d6df5dcc08cb493855fcfc1956fca"><td·class="memItemLeft"·align="right"·valign="top">bool </td><td·class="memItemRight"·valign="bottom"><a·class="el"·href="a00949.html#a4a4d6df5dcc08cb493855fcfc1956fca">loadImageData</a>·(<a·class="el"·href="a00129.html#aebdd89f22790687ac264c1abd9f7fd38">PixelOrigin</a>·origin,·<a·class="el"·href="a00969.html">DataSource</a>·*data,·<a·class="el"·href="a00981.html">ImageContext</a>·*context)</td></tr> |
91 | <tr·class="memdesc:a4a4d6df5dcc08cb493855fcfc1956fca"><td·class="mdescLeft"> </td><td·class="mdescRight">Parse·the·pixels·data·of·the·image·and·fill·the·header·struct.··<br·/></td></tr> | 91 | <tr·class="memdesc:a4a4d6df5dcc08cb493855fcfc1956fca"><td·class="mdescLeft"> </td><td·class="mdescRight">Parse·the·pixels·data·of·the·image·and·fill·the·header·struct.··<br·/></td></tr> |
92 | <tr·class="separator:a4a4d6df5dcc08cb493855fcfc1956fca"><td·class="memSeparator"·colspan="2"> </td></tr> | 92 | <tr·class="separator:a4a4d6df5dcc08cb493855fcfc1956fca"><td·class="memSeparator"·colspan="2"> </td></tr> |
93 | </table> | 93 | </table> |
94 | <a·name="details"·id="details"></a><h2·class="groupheader">Detailed·Description</h2> | 94 | <a·name="details"·id="details"></a><h2·class="groupheader">Detailed·Description</h2> |
95 | <div·class="textblock"><p>Loader·class·for·JPG·<a·class="el"·href="a00977.html"·title="Image·is·the·main·user·class·of·the·library.">Image</a>.·</p> | 95 | <div·class="textblock"><p>Loader·class·for·JPG·<a·class="el"·href="a00977.html"·title="Image·is·the·main·user·class·of·the·library.">Image</a>.·</p> |
96 | <p·class="definition">Definition·at·line·<a·class="el"·href="a000 | 96 | <p·class="definition">Definition·at·line·<a·class="el"·href="a00098_source.html#l00042">42</a>·of·file·<a·class="el"·href="a00098_source.html">SILLYJPGImageLoader.h</a>.</p> |
97 | </div><h2·class="groupheader">Constructor·&·Destructor·Documentation</h2> | 97 | </div><h2·class="groupheader">Constructor·&·Destructor·Documentation</h2> |
98 | <a·id="ad924638c307b0e9c422ab17517cb0035"·name="ad924638c307b0e9c422ab17517cb0035"></a> | 98 | <a·id="ad924638c307b0e9c422ab17517cb0035"·name="ad924638c307b0e9c422ab17517cb0035"></a> |
99 | <h2·class="memtitle"><span·class="permalink"><a·href="#ad924638c307b0e9c422ab17517cb0035">◆ </a></span>JPGImageLoader()</h2> | 99 | <h2·class="memtitle"><span·class="permalink"><a·href="#ad924638c307b0e9c422ab17517cb0035">◆ </a></span>JPGImageLoader()</h2> |
100 | <div·class="memitem"> | 100 | <div·class="memitem"> |
101 | <div·class="memproto"> | 101 | <div·class="memproto"> |
102 | ······<table·class="memname"> | 102 | ······<table·class="memname"> |
Offset 107, 15 lines modified | Offset 107, 15 lines modified | ||
107 | ··········<td>(</td> | 107 | ··········<td>(</td> |
108 | ··········<td·class="paramname"></td><td>)</td> | 108 | ··········<td·class="paramname"></td><td>)</td> |
109 | ··········<td></td> | 109 | ··········<td></td> |
110 | ········</tr> | 110 | ········</tr> |
111 | ······</table> | 111 | ······</table> |
112 | </div><div·class="memdoc"> | 112 | </div><div·class="memdoc"> |
113 | <p·class="definition">Definition·at·line·<a·class="el"·href="a0002 | 113 | <p·class="definition">Definition·at·line·<a·class="el"·href="a00026_source.html#l00046">46</a>·of·file·<a·class="el"·href="a00026_source.html">SILLYJPGImageLoader.cpp</a>.</p> |
114 | </div> | 114 | </div> |
115 | </div> | 115 | </div> |
116 | <a·id="a2d90e762c094d49c2b6bd2479ba35e00"·name="a2d90e762c094d49c2b6bd2479ba35e00"></a> | 116 | <a·id="a2d90e762c094d49c2b6bd2479ba35e00"·name="a2d90e762c094d49c2b6bd2479ba35e00"></a> |
117 | <h2·class="memtitle"><span·class="permalink"><a·href="#a2d90e762c094d49c2b6bd2479ba35e00">◆ </a></span>~JPGImageLoader()</h2> | 117 | <h2·class="memtitle"><span·class="permalink"><a·href="#a2d90e762c094d49c2b6bd2479ba35e00">◆ </a></span>~JPGImageLoader()</h2> |
118 | <div·class="memitem"> | 118 | <div·class="memitem"> |
Offset 126, 15 lines modified | Offset 126, 15 lines modified | ||
126 | ··········<td>(</td> | 126 | ··········<td>(</td> |
127 | ··········<td·class="paramname"></td><td>)</td> | 127 | ··········<td·class="paramname"></td><td>)</td> |
128 | ··········<td></td> | 128 | ··········<td></td> |
129 | ········</tr> | 129 | ········</tr> |
130 | ······</table> | 130 | ······</table> |
131 | </div><div·class="memdoc"> | 131 | </div><div·class="memdoc"> |
132 | <p·class="definition">Definition·at·line·<a·class="el"·href="a0002 | 132 | <p·class="definition">Definition·at·line·<a·class="el"·href="a00026_source.html#l00051">51</a>·of·file·<a·class="el"·href="a00026_source.html">SILLYJPGImageLoader.cpp</a>.</p> |
133 | </div> | 133 | </div> |
134 | </div> | 134 | </div> |
135 | <h2·class="groupheader">Member·Function·Documentation</h2> | 135 | <h2·class="groupheader">Member·Function·Documentation</h2> |
136 | <a·id="a439f9065fd9a935d7f53b30b2242e924"·name="a439f9065fd9a935d7f53b30b2242e924"></a> | 136 | <a·id="a439f9065fd9a935d7f53b30b2242e924"·name="a439f9065fd9a935d7f53b30b2242e924"></a> |
137 | <h2·class="memtitle"><span·class="permalink"><a·href="#a439f9065fd9a935d7f53b30b2242e924">◆ </a></span>destroyContext()</h2> | 137 | <h2·class="memtitle"><span·class="permalink"><a·href="#a439f9065fd9a935d7f53b30b2242e924">◆ </a></span>destroyContext()</h2> |
Offset 163, 15 lines modified | Offset 163, 15 lines modified | ||
163 | <dl·class="params"><dt>Parameters</dt><dd> | 163 | <dl·class="params"><dt>Parameters</dt><dd> |
164 | ··<table·class="params"> | 164 | ··<table·class="params"> |
165 | ····<tr><td·class="paramname">context</td><td>a·pointer·to·the·context·</td></tr> | 165 | ····<tr><td·class="paramname">context</td><td>a·pointer·to·the·context·</td></tr> |
166 | ··</table> | 166 | ··</table> |
167 | ··</dd> | 167 | ··</dd> |
168 | </dl> | 168 | </dl> |
169 | <p·class="definition">Definition·at·line·<a·class="el"·href="a000 | 169 | <p·class="definition">Definition·at·line·<a·class="el"·href="a00008_source.html#l00047">47</a>·of·file·<a·class="el"·href="a00008_source.html">SILLYImageLoader.cpp</a>.</p> |
170 | </div> | 170 | </div> |
171 | </div> | 171 | </div> |
172 | <a·id="a919eb05f6df058544657e865a1590d5a"·name="a919eb05f6df058544657e865a1590d5a"></a> | 172 | <a·id="a919eb05f6df058544657e865a1590d5a"·name="a919eb05f6df058544657e865a1590d5a"></a> |
173 | <h2·class="memtitle"><span·class="permalink"><a·href="#a919eb05f6df058544657e865a1590d5a">◆ </a></span>loadHeader()</h2> | 173 | <h2·class="memtitle"><span·class="permalink"><a·href="#a919eb05f6df058544657e865a1590d5a">◆ </a></span>loadHeader()</h2> |
174 | <div·class="memitem"> | 174 | <div·class="memitem"> |
Offset 213, 15 lines modified | Offset 213, 15 lines modified | ||
213 | ··</table> | 213 | ··</table> |
214 | ··</dd> | 214 | ··</dd> |
215 | </dl> | 215 | </dl> |
216 | <dl·class="section·return"><dt>Returns</dt><dd>Context·for·the·rest·of·the·parsing·or·0·if·an·error·occured·</dd></dl> | 216 | <dl·class="section·return"><dt>Returns</dt><dd>Context·for·the·rest·of·the·parsing·or·0·if·an·error·occured·</dd></dl> |
217 | <p>Implements·<a·class="el"·href="a00985.html#a4a6a3a51641cbbb3184ab00d9de6f753">ImageLoader</a>.</p> | 217 | <p>Implements·<a·class="el"·href="a00985.html#a4a6a3a51641cbbb3184ab00d9de6f753">ImageLoader</a>.</p> |
218 | <p·class="definition">Definition·at·line·<a·class="el"·href="a0002 | 218 | <p·class="definition">Definition·at·line·<a·class="el"·href="a00026_source.html#l00056">56</a>·of·file·<a·class="el"·href="a00026_source.html">SILLYJPGImageLoader.cpp</a>.</p> |
219 | </div> | 219 | </div> |
220 | </div> | 220 | </div> |
221 | <a·id="a4a4d6df5dcc08cb493855fcfc1956fca"·name="a4a4d6df5dcc08cb493855fcfc1956fca"></a> | 221 | <a·id="a4a4d6df5dcc08cb493855fcfc1956fca"·name="a4a4d6df5dcc08cb493855fcfc1956fca"></a> |
222 | <h2·class="memtitle"><span·class="permalink"><a·href="#a4a4d6df5dcc08cb493855fcfc1956fca">◆ </a></span>loadImageData()</h2> | 222 | <h2·class="memtitle"><span·class="permalink"><a·href="#a4a4d6df5dcc08cb493855fcfc1956fca">◆ </a></span>loadImageData()</h2> |
223 | <div·class="memitem"> | 223 | <div·class="memitem"> |
Offset 270, 21 lines modified | Offset 270, 21 lines modified | ||
270 | ··</table> | 270 | ··</table> |
271 | ··</dd> | 271 | ··</dd> |
272 | </dl> | 272 | </dl> |
273 | <dl·class="section·return"><dt>Returns</dt><dd>true·on·success·false·on·error·</dd></dl> | 273 | <dl·class="section·return"><dt>Returns</dt><dd>true·on·success·false·on·error·</dd></dl> |
274 | <p>Implements·<a·class="el"·href="a00985.html#a7622e69834f644d7cf1201c1cabd80c6">ImageLoader</a>.</p> | 274 | <p>Implements·<a·class="el"·href="a00985.html#a7622e69834f644d7cf1201c1cabd80c6">ImageLoader</a>.</p> |
275 | <p·class="definition">Definition·at·line·<a·class="el"·href="a0002 | 275 | <p·class="definition">Definition·at·line·<a·class="el"·href="a00026_source.html#l00090">90</a>·of·file·<a·class="el"·href="a00026_source.html">SILLYJPGImageLoader.cpp</a>.</p> |
276 | </div> | 276 | </div> |
277 | </div> | 277 | </div> |
278 | <hr/>The·documentation·for·this·class·was·generated·from·the·following·files:<ul> | 278 | <hr/>The·documentation·for·this·class·was·generated·from·the·following·files:<ul> |
279 | <li>/build/reproducible-path/silly-0.1.0/include/loaders/<a·class="el"·href="a000 | 279 | <li>/build/reproducible-path/silly-0.1.0/include/loaders/<a·class="el"·href="a00098_source.html">SILLYJPGImageLoader.h</a></li> |
280 | <li>/build/reproducible-path/silly-0.1.0/src/loaders/<a·class="el"·href="a0002 | 280 | <li>/build/reproducible-path/silly-0.1.0/src/loaders/<a·class="el"·href="a00026_source.html">SILLYJPGImageLoader.cpp</a></li> |
281 | </ul> | 281 | </ul> |
282 | </div><!--·contents·--> | 282 | </div><!--·contents·--> |
283 | <!--·start·footer·part·--> | 283 | <!--·start·footer·part·--> |
284 | <hr·class="footer"/><address·class="footer"><small> | 284 | <hr·class="footer"/><address·class="footer"><small> |
285 | Generated·by <a·href="https://www.doxygen.org/index.html"><img·class="footer"·src="doxygen.svg"·width="104"·height="31"·alt="doxygen"/></a>·1.9.8 | 285 | Generated·by <a·href="https://www.doxygen.org/index.html"><img·class="footer"·src="doxygen.svg"·width="104"·height="31"·alt="doxygen"/></a>·1.9.8 |
286 | </small></address> | 286 | </small></address> |
287 | </body> | 287 | </body> |
Offset 51, 15 lines modified | Offset 51, 15 lines modified | ||
51 | ··<div·class="headertitle"><div·class="title">PNGImageContext·Class·Reference</div></div> | 51 | ··<div·class="headertitle"><div·class="title">PNGImageContext·Class·Reference</div></div> |
52 | </div><!--header--> | 52 | </div><!--header--> |
53 | <div·class="contents"> | 53 | <div·class="contents"> |
54 | <p><a·class="el"·href="a00977.html"·title="Image·is·the·main·user·class·of·the·library.">Image</a>·Context·for·PNG·<a·class="el"·href="a00977.html"·title="Image·is·the·main·user·class·of·the·library.">Image</a>·Loader.·· | 54 | <p><a·class="el"·href="a00977.html"·title="Image·is·the·main·user·class·of·the·library.">Image</a>·Context·for·PNG·<a·class="el"·href="a00977.html"·title="Image·is·the·main·user·class·of·the·library.">Image</a>·Loader.·· |
55 | ·<a·href="a00953.html#details">More...</a></p> | 55 | ·<a·href="a00953.html#details">More...</a></p> |
56 | <p><code>#include·<<a·class="el"·href="a000 | 56 | <p><code>#include·<<a·class="el"·href="a00092_source.html">SILLYPNGImageContext.h</a>></code></p> |
57 | <div·class="dynheader"> | 57 | <div·class="dynheader"> |
58 | Inheritance·diagram·for·PNGImageContext:</div> | 58 | Inheritance·diagram·for·PNGImageContext:</div> |
59 | <div·class="dyncontent"> | 59 | <div·class="dyncontent"> |
60 | <div·class="center"><img·src="a00952.png"·border="0"·usemap="#aPNGImageContext_inherit__map"·alt="Inheritance·graph"/></div> | 60 | <div·class="center"><img·src="a00952.png"·border="0"·usemap="#aPNGImageContext_inherit__map"·alt="Inheritance·graph"/></div> |
61 | <map·name="aPNGImageContext_inherit__map"·id="aPNGImageContext_inherit__map"> | 61 | <map·name="aPNGImageContext_inherit__map"·id="aPNGImageContext_inherit__map"> |
62 | <area·shape="rect"·title="Image·Context·for·PNG·Image·Loader."·alt=""·coords="5,79,148,104"/> | 62 | <area·shape="rect"·title="Image·Context·for·PNG·Image·Loader."·alt=""·coords="5,79,148,104"/> |
63 | <area·shape="rect"·href="a00981.html"·title="Store·the·data·needed·by·an·ImageLoader·object·during·the·parsing·of·an·image."·alt=""·coords="19,5,134,31"/> | 63 | <area·shape="rect"·href="a00981.html"·title="Store·the·data·needed·by·an·ImageLoader·object·during·the·parsing·of·an·image."·alt=""·coords="19,5,134,31"/> |
Offset 117, 15 lines modified | Offset 117, 15 lines modified | ||
117 | Friends</h2></td></tr> | 117 | Friends</h2></td></tr> |
118 | <tr·class="memitem:a09d643e9cb6da71909f02b1945bacca9"·id="r_a09d643e9cb6da71909f02b1945bacca9"><td·class="memItemLeft"·align="right"·valign="top">class </td><td·class="memItemRight"·valign="bottom"><a·class="el"·href="a00953.html#a09d643e9cb6da71909f02b1945bacca9">PNGImageLoader</a></td></tr> | 118 | <tr·class="memitem:a09d643e9cb6da71909f02b1945bacca9"·id="r_a09d643e9cb6da71909f02b1945bacca9"><td·class="memItemLeft"·align="right"·valign="top">class </td><td·class="memItemRight"·valign="bottom"><a·class="el"·href="a00953.html#a09d643e9cb6da71909f02b1945bacca9">PNGImageLoader</a></td></tr> |
119 | <tr·class="separator:a09d643e9cb6da71909f02b1945bacca9"><td·class="memSeparator"·colspan="2"> </td></tr> | 119 | <tr·class="separator:a09d643e9cb6da71909f02b1945bacca9"><td·class="memSeparator"·colspan="2"> </td></tr> |
120 | </table> | 120 | </table> |
121 | <a·name="details"·id="details"></a><h2·class="groupheader">Detailed·Description</h2> | 121 | <a·name="details"·id="details"></a><h2·class="groupheader">Detailed·Description</h2> |
122 | <div·class="textblock"><p><a·class="el"·href="a00977.html"·title="Image·is·the·main·user·class·of·the·library.">Image</a>·Context·for·PNG·<a·class="el"·href="a00977.html"·title="Image·is·the·main·user·class·of·the·library.">Image</a>·Loader.·</p> | 122 | <div·class="textblock"><p><a·class="el"·href="a00977.html"·title="Image·is·the·main·user·class·of·the·library.">Image</a>·Context·for·PNG·<a·class="el"·href="a00977.html"·title="Image·is·the·main·user·class·of·the·library.">Image</a>·Loader.·</p> |
123 | <p·class="definition">Definition·at·line·<a·class="el"·href="a000 | 123 | <p·class="definition">Definition·at·line·<a·class="el"·href="a00092_source.html#l00045">45</a>·of·file·<a·class="el"·href="a00092_source.html">SILLYPNGImageContext.h</a>.</p> |
124 | </div><h2·class="groupheader">Constructor·&·Destructor·Documentation</h2> | 124 | </div><h2·class="groupheader">Constructor·&·Destructor·Documentation</h2> |
125 | <a·id="ae47b130da3aef3eeb9a67540e9e6ff4b"·name="ae47b130da3aef3eeb9a67540e9e6ff4b"></a> | 125 | <a·id="ae47b130da3aef3eeb9a67540e9e6ff4b"·name="ae47b130da3aef3eeb9a67540e9e6ff4b"></a> |
126 | <h2·class="memtitle"><span·class="permalink"><a·href="#ae47b130da3aef3eeb9a67540e9e6ff4b">◆ </a></span>PNGImageContext()</h2> | 126 | <h2·class="memtitle"><span·class="permalink"><a·href="#ae47b130da3aef3eeb9a67540e9e6ff4b">◆ </a></span>PNGImageContext()</h2> |
127 | <div·class="memitem"> | 127 | <div·class="memitem"> |
128 | <div·class="memproto"> | 128 | <div·class="memproto"> |
129 | ······<table·class="memname"> | 129 | ······<table·class="memname"> |
Offset 135, 15 lines modified | Offset 135, 15 lines modified | ||
135 | ··········<td·class="paramtype"><a·class="el"·href="a00969.html">DataSource</a>·* </td> | 135 | ··········<td·class="paramtype"><a·class="el"·href="a00969.html">DataSource</a>·* </td> |
136 | ··········<td·class="paramname"><em>data</em></td><td>)</td> | 136 | ··········<td·class="paramname"><em>data</em></td><td>)</td> |
137 | ··········<td></td> | 137 | ··········<td></td> |
138 | ········</tr> | 138 | ········</tr> |
139 | ······</table> | 139 | ······</table> |
140 | </div><div·class="memdoc"> | 140 | </div><div·class="memdoc"> |
141 | <p·class="definition">Definition·at·line·<a·class="el"·href="a000 | 141 | <p·class="definition">Definition·at·line·<a·class="el"·href="a00020_source.html#l00059">59</a>·of·file·<a·class="el"·href="a00020_source.html">SILLYPNGImageContext.cpp</a>.</p> |
142 | </div> | 142 | </div> |
143 | </div> | 143 | </div> |
144 | <a·id="a4912a0de86a765bda03e6209d4101f46"·name="a4912a0de86a765bda03e6209d4101f46"></a> | 144 | <a·id="a4912a0de86a765bda03e6209d4101f46"·name="a4912a0de86a765bda03e6209d4101f46"></a> |
145 | <h2·class="memtitle"><span·class="permalink"><a·href="#a4912a0de86a765bda03e6209d4101f46">◆ </a></span>~PNGImageContext()</h2> | 145 | <h2·class="memtitle"><span·class="permalink"><a·href="#a4912a0de86a765bda03e6209d4101f46">◆ </a></span>~PNGImageContext()</h2> |
146 | <div·class="memitem"> | 146 | <div·class="memitem"> |
Offset 154, 15 lines modified | Offset 154, 15 lines modified | ||
154 | ··········<td>(</td> | 154 | ··········<td>(</td> |
155 | ··········<td·class="paramname"></td><td>)</td> | 155 | ··········<td·class="paramname"></td><td>)</td> |
156 | ··········<td></td> | 156 | ··········<td></td> |
157 | ········</tr> | 157 | ········</tr> |
158 | ······</table> | 158 | ······</table> |
159 | </div><div·class="memdoc"> | 159 | </div><div·class="memdoc"> |
160 | <p·class="definition">Definition·at·line·<a·class="el"·href="a000 | 160 | <p·class="definition">Definition·at·line·<a·class="el"·href="a00020_source.html#l00065">65</a>·of·file·<a·class="el"·href="a00020_source.html">SILLYPNGImageContext.cpp</a>.</p> |
161 | </div> | 161 | </div> |
162 | </div> | 162 | </div> |
163 | <h2·class="groupheader">Member·Function·Documentation</h2> | 163 | <h2·class="groupheader">Member·Function·Documentation</h2> |
164 | <a·id="a23cd315e8ce80deeb7a06e268f65412f"·name="a23cd315e8ce80deeb7a06e268f65412f"></a> | 164 | <a·id="a23cd315e8ce80deeb7a06e268f65412f"·name="a23cd315e8ce80deeb7a06e268f65412f"></a> |
165 | <h2·class="memtitle"><span·class="permalink"><a·href="#a23cd315e8ce80deeb7a06e268f65412f">◆ </a></span>flipVertically()</h2> | 165 | <h2·class="memtitle"><span·class="permalink"><a·href="#a23cd315e8ce80deeb7a06e268f65412f">◆ </a></span>flipVertically()</h2> |
Offset 185, 15 lines modified | Offset 185, 15 lines modified | ||
185 | ··</tr> | 185 | ··</tr> |
186 | </table> | 186 | </table> |
187 | </div><div·class="memdoc"> | 187 | </div><div·class="memdoc"> |
188 | <p>Flip·pixel·ordering.·</p> | 188 | <p>Flip·pixel·ordering.·</p> |
189 | <dl·class="section·return"><dt>Returns</dt><dd>true·on·success·false·otherwise·</dd></dl> | 189 | <dl·class="section·return"><dt>Returns</dt><dd>true·on·success·false·otherwise·</dd></dl> |
190 | <p·class="definition">Definition·at·line·<a·class="el"·href="a000 | 190 | <p·class="definition">Definition·at·line·<a·class="el"·href="a00038_source.html#l00045">45</a>·of·file·<a·class="el"·href="a00038_source.html">SILLYImageContext.cpp</a>.</p> |
191 | </div> | 191 | </div> |
192 | </div> | 192 | </div> |
193 | <a·id="a63f8060d012f47e88a6630878e67d520"·name="a63f8060d012f47e88a6630878e67d520"></a> | 193 | <a·id="a63f8060d012f47e88a6630878e67d520"·name="a63f8060d012f47e88a6630878e67d520"></a> |
194 | <h2·class="memtitle"><span·class="permalink"><a·href="#a63f8060d012f47e88a6630878e67d520">◆ </a></span>read()</h2> | 194 | <h2·class="memtitle"><span·class="permalink"><a·href="#a63f8060d012f47e88a6630878e67d520">◆ </a></span>read()</h2> |
195 | <div·class="memitem"> | 195 | <div·class="memitem"> |
Offset 215, 15 lines modified | Offset 215, 15 lines modified | ||
215 | ··········<td></td> | 215 | ··········<td></td> |
216 | ··········<td>)</td> | 216 | ··········<td>)</td> |
217 | ··········<td></td><td></td> | 217 | ··········<td></td><td></td> |
218 | ········</tr> | 218 | ········</tr> |
219 | ······</table> | 219 | ······</table> |
220 | </div><div·class="memdoc"> | 220 | </div><div·class="memdoc"> |
221 | <p·class="definition">Definition·at·line·<a·class="el"·href="a000 | 221 | <p·class="definition">Definition·at·line·<a·class="el"·href="a00020_source.html#l00046">46</a>·of·file·<a·class="el"·href="a00020_source.html">SILLYPNGImageContext.cpp</a>.</p> |
222 | </div> | 222 | </div> |
223 | </div> | 223 | </div> |
224 | <h2·class="groupheader">Friends·And·Related·Symbol·Documentation</h2> | 224 | <h2·class="groupheader">Friends·And·Related·Symbol·Documentation</h2> |
225 | <a·id="a09d643e9cb6da71909f02b1945bacca9"·name="a09d643e9cb6da71909f02b1945bacca9"></a> | 225 | <a·id="a09d643e9cb6da71909f02b1945bacca9"·name="a09d643e9cb6da71909f02b1945bacca9"></a> |
226 | <h2·class="memtitle"><span·class="permalink"><a·href="#a09d643e9cb6da71909f02b1945bacca9">◆ </a></span>PNGImageLoader</h2> | 226 | <h2·class="memtitle"><span·class="permalink"><a·href="#a09d643e9cb6da71909f02b1945bacca9">◆ </a></span>PNGImageLoader</h2> |
Offset 240, 21 lines modified | Offset 240, 21 lines modified | ||
240 | ··</td> | 240 | ··</td> |
241 | ··<td·class="mlabels-right"> | 241 | ··<td·class="mlabels-right"> |
242 | <span·class="mlabels"><span·class="mlabel">friend</span></span>··</td> | 242 | <span·class="mlabels"><span·class="mlabel">friend</span></span>··</td> |
243 | ··</tr> | 243 | ··</tr> |
244 | </table> | 244 | </table> |
245 | </div><div·class="memdoc"> | 245 | </div><div·class="memdoc"> |
246 | <p·class="definition">Definition·at·line·<a·class="el"·href="a000 | 246 | <p·class="definition">Definition·at·line·<a·class="el"·href="a00092_source.html#l00070">70</a>·of·file·<a·class="el"·href="a00092_source.html">SILLYPNGImageContext.h</a>.</p> |
247 | </div> | 247 | </div> |
248 | </div> | 248 | </div> |
249 | <hr/>The·documentation·for·this·class·was·generated·from·the·following·files:<ul> | 249 | <hr/>The·documentation·for·this·class·was·generated·from·the·following·files:<ul> |
250 | <li>/build/reproducible-path/silly-0.1.0/include/loaders/<a·class="el"·href="a000 | 250 | <li>/build/reproducible-path/silly-0.1.0/include/loaders/<a·class="el"·href="a00092_source.html">SILLYPNGImageContext.h</a></li> |
251 | <li>/build/reproducible-path/silly-0.1.0/src/loaders/<a·class="el"·href="a000 | 251 | <li>/build/reproducible-path/silly-0.1.0/src/loaders/<a·class="el"·href="a00020_source.html">SILLYPNGImageContext.cpp</a></li> |
252 | </ul> | 252 | </ul> |
253 | </div><!--·contents·--> | 253 | </div><!--·contents·--> |
254 | <!--·start·footer·part·--> | 254 | <!--·start·footer·part·--> |
255 | <hr·class="footer"/><address·class="footer"><small> | 255 | <hr·class="footer"/><address·class="footer"><small> |
256 | Generated·by <a·href="https://www.doxygen.org/index.html"><img·class="footer"·src="doxygen.svg"·width="104"·height="31"·alt="doxygen"/></a>·1.9.8 | 256 | Generated·by <a·href="https://www.doxygen.org/index.html"><img·class="footer"·src="doxygen.svg"·width="104"·height="31"·alt="doxygen"/></a>·1.9.8 |
257 | </small></address> | 257 | </small></address> |
258 | </body> | 258 | </body> |
Offset 49, 15 lines modified | Offset 49, 15 lines modified | ||
49 | ··<div·class="headertitle"><div·class="title">PNGImageLoader·Class·Reference</div></div> | 49 | ··<div·class="headertitle"><div·class="title">PNGImageLoader·Class·Reference</div></div> |
50 | </div><!--header--> | 50 | </div><!--header--> |
51 | <div·class="contents"> | 51 | <div·class="contents"> |
52 | <p>Loader·for·PNG·<a·class="el"·href="a00977.html"·title="Image·is·the·main·user·class·of·the·library.">Image</a>.·· | 52 | <p>Loader·for·PNG·<a·class="el"·href="a00977.html"·title="Image·is·the·main·user·class·of·the·library.">Image</a>.·· |
53 | ·<a·href="a00957.html#details">More...</a></p> | 53 | ·<a·href="a00957.html#details">More...</a></p> |
54 | <p><code>#include·<<a·class="el"·href="a00 | 54 | <p><code>#include·<<a·class="el"·href="a00104_source.html">SILLYPNGImageLoader.h</a>></code></p> |
55 | <div·class="dynheader"> | 55 | <div·class="dynheader"> |
56 | Inheritance·diagram·for·PNGImageLoader:</div> | 56 | Inheritance·diagram·for·PNGImageLoader:</div> |
57 | <div·class="dyncontent"> | 57 | <div·class="dyncontent"> |
58 | <div·class="center"><img·src="a00956.png"·border="0"·usemap="#aPNGImageLoader_inherit__map"·alt="Inheritance·graph"/></div> | 58 | <div·class="center"><img·src="a00956.png"·border="0"·usemap="#aPNGImageLoader_inherit__map"·alt="Inheritance·graph"/></div> |
59 | <map·name="aPNGImageLoader_inherit__map"·id="aPNGImageLoader_inherit__map"> | 59 | <map·name="aPNGImageLoader_inherit__map"·id="aPNGImageLoader_inherit__map"> |
60 | <area·shape="rect"·title="Loader·for·PNG·Image."·alt=""·coords="5,79,140,104"/> | 60 | <area·shape="rect"·title="Loader·for·PNG·Image."·alt=""·coords="5,79,140,104"/> |
61 | <area·shape="rect"·href="a00985.html"·title="This·is·an·abstract·class·that·define·the·interface·of·all·image·loader."·alt=""·coords="19,5,126,31"/> | 61 | <area·shape="rect"·href="a00985.html"·title="This·is·an·abstract·class·that·define·the·interface·of·all·image·loader."·alt=""·coords="19,5,126,31"/> |
Offset 90, 15 lines modified | Offset 90, 15 lines modified | ||
90 | <tr·class="memitem:a4a4d6df5dcc08cb493855fcfc1956fca"·id="r_a4a4d6df5dcc08cb493855fcfc1956fca"><td·class="memItemLeft"·align="right"·valign="top">bool </td><td·class="memItemRight"·valign="bottom"><a·class="el"·href="a00957.html#a4a4d6df5dcc08cb493855fcfc1956fca">loadImageData</a>·(<a·class="el"·href="a00129.html#aebdd89f22790687ac264c1abd9f7fd38">PixelOrigin</a>·origin,·<a·class="el"·href="a00969.html">DataSource</a>·*data,·<a·class="el"·href="a00981.html">ImageContext</a>·*context)</td></tr> | 90 | <tr·class="memitem:a4a4d6df5dcc08cb493855fcfc1956fca"·id="r_a4a4d6df5dcc08cb493855fcfc1956fca"><td·class="memItemLeft"·align="right"·valign="top">bool </td><td·class="memItemRight"·valign="bottom"><a·class="el"·href="a00957.html#a4a4d6df5dcc08cb493855fcfc1956fca">loadImageData</a>·(<a·class="el"·href="a00129.html#aebdd89f22790687ac264c1abd9f7fd38">PixelOrigin</a>·origin,·<a·class="el"·href="a00969.html">DataSource</a>·*data,·<a·class="el"·href="a00981.html">ImageContext</a>·*context)</td></tr> |
91 | <tr·class="memdesc:a4a4d6df5dcc08cb493855fcfc1956fca"><td·class="mdescLeft"> </td><td·class="mdescRight">Parse·the·pixels·data·of·the·image·and·fill·the·header·struct.··<br·/></td></tr> | 91 | <tr·class="memdesc:a4a4d6df5dcc08cb493855fcfc1956fca"><td·class="mdescLeft"> </td><td·class="mdescRight">Parse·the·pixels·data·of·the·image·and·fill·the·header·struct.··<br·/></td></tr> |
92 | <tr·class="separator:a4a4d6df5dcc08cb493855fcfc1956fca"><td·class="memSeparator"·colspan="2"> </td></tr> | 92 | <tr·class="separator:a4a4d6df5dcc08cb493855fcfc1956fca"><td·class="memSeparator"·colspan="2"> </td></tr> |
93 | </table> | 93 | </table> |
94 | <a·name="details"·id="details"></a><h2·class="groupheader">Detailed·Description</h2> | 94 | <a·name="details"·id="details"></a><h2·class="groupheader">Detailed·Description</h2> |
95 | <div·class="textblock"><p>Loader·for·PNG·<a·class="el"·href="a00977.html"·title="Image·is·the·main·user·class·of·the·library.">Image</a>.·</p> | 95 | <div·class="textblock"><p>Loader·for·PNG·<a·class="el"·href="a00977.html"·title="Image·is·the·main·user·class·of·the·library.">Image</a>.·</p> |
96 | <p·class="definition">Definition·at·line·<a·class="el"·href="a00 | 96 | <p·class="definition">Definition·at·line·<a·class="el"·href="a00104_source.html#l00042">42</a>·of·file·<a·class="el"·href="a00104_source.html">SILLYPNGImageLoader.h</a>.</p> |
97 | </div><h2·class="groupheader">Constructor·&·Destructor·Documentation</h2> | 97 | </div><h2·class="groupheader">Constructor·&·Destructor·Documentation</h2> |
98 | <a·id="a2c7553f474a641316197827bfa31ac98"·name="a2c7553f474a641316197827bfa31ac98"></a> | 98 | <a·id="a2c7553f474a641316197827bfa31ac98"·name="a2c7553f474a641316197827bfa31ac98"></a> |
99 | <h2·class="memtitle"><span·class="permalink"><a·href="#a2c7553f474a641316197827bfa31ac98">◆ </a></span>PNGImageLoader()</h2> | 99 | <h2·class="memtitle"><span·class="permalink"><a·href="#a2c7553f474a641316197827bfa31ac98">◆ </a></span>PNGImageLoader()</h2> |
100 | <div·class="memitem"> | 100 | <div·class="memitem"> |
101 | <div·class="memproto"> | 101 | <div·class="memproto"> |
102 | ······<table·class="memname"> | 102 | ······<table·class="memname"> |
Offset 107, 15 lines modified | Offset 107, 15 lines modified | ||
107 | ··········<td>(</td> | 107 | ··········<td>(</td> |
108 | ··········<td·class="paramname"></td><td>)</td> | 108 | ··········<td·class="paramname"></td><td>)</td> |
109 | ··········<td></td> | 109 | ··········<td></td> |
110 | ········</tr> | 110 | ········</tr> |
111 | ······</table> | 111 | ······</table> |
112 | </div><div·class="memdoc"> | 112 | </div><div·class="memdoc"> |
113 | <p·class="definition">Definition·at·line·<a·class="el"·href="a000 | 113 | <p·class="definition">Definition·at·line·<a·class="el"·href="a00029_source.html#l00079">79</a>·of·file·<a·class="el"·href="a00029_source.html">SILLYPNGImageLoader.cpp</a>.</p> |
114 | </div> | 114 | </div> |
115 | </div> | 115 | </div> |
116 | <a·id="a60baba8c757fd5c118709e5bc4adc08d"·name="a60baba8c757fd5c118709e5bc4adc08d"></a> | 116 | <a·id="a60baba8c757fd5c118709e5bc4adc08d"·name="a60baba8c757fd5c118709e5bc4adc08d"></a> |
117 | <h2·class="memtitle"><span·class="permalink"><a·href="#a60baba8c757fd5c118709e5bc4adc08d">◆ </a></span>~PNGImageLoader()</h2> | 117 | <h2·class="memtitle"><span·class="permalink"><a·href="#a60baba8c757fd5c118709e5bc4adc08d">◆ </a></span>~PNGImageLoader()</h2> |
118 | <div·class="memitem"> | 118 | <div·class="memitem"> |
Offset 126, 15 lines modified | Offset 126, 15 lines modified | ||
126 | ··········<td>(</td> | 126 | ··········<td>(</td> |
127 | ··········<td·class="paramname"></td><td>)</td> | 127 | ··········<td·class="paramname"></td><td>)</td> |
128 | ··········<td></td> | 128 | ··········<td></td> |
129 | ········</tr> | 129 | ········</tr> |
130 | ······</table> | 130 | ······</table> |
131 | </div><div·class="memdoc"> | 131 | </div><div·class="memdoc"> |
132 | <p·class="definition">Definition·at·line·<a·class="el"·href="a000 | 132 | <p·class="definition">Definition·at·line·<a·class="el"·href="a00029_source.html#l00083">83</a>·of·file·<a·class="el"·href="a00029_source.html">SILLYPNGImageLoader.cpp</a>.</p> |
133 | </div> | 133 | </div> |
134 | </div> | 134 | </div> |
135 | <h2·class="groupheader">Member·Function·Documentation</h2> | 135 | <h2·class="groupheader">Member·Function·Documentation</h2> |
136 | <a·id="a439f9065fd9a935d7f53b30b2242e924"·name="a439f9065fd9a935d7f53b30b2242e924"></a> | 136 | <a·id="a439f9065fd9a935d7f53b30b2242e924"·name="a439f9065fd9a935d7f53b30b2242e924"></a> |
137 | <h2·class="memtitle"><span·class="permalink"><a·href="#a439f9065fd9a935d7f53b30b2242e924">◆ </a></span>destroyContext()</h2> | 137 | <h2·class="memtitle"><span·class="permalink"><a·href="#a439f9065fd9a935d7f53b30b2242e924">◆ </a></span>destroyContext()</h2> |
Offset 163, 15 lines modified | Offset 163, 15 lines modified | ||
163 | <dl·class="params"><dt>Parameters</dt><dd> | 163 | <dl·class="params"><dt>Parameters</dt><dd> |
164 | ··<table·class="params"> | 164 | ··<table·class="params"> |
165 | ····<tr><td·class="paramname">context</td><td>a·pointer·to·the·context·</td></tr> | 165 | ····<tr><td·class="paramname">context</td><td>a·pointer·to·the·context·</td></tr> |
166 | ··</table> | 166 | ··</table> |
167 | ··</dd> | 167 | ··</dd> |
168 | </dl> | 168 | </dl> |
169 | <p·class="definition">Definition·at·line·<a·class="el"·href="a000 | 169 | <p·class="definition">Definition·at·line·<a·class="el"·href="a00008_source.html#l00047">47</a>·of·file·<a·class="el"·href="a00008_source.html">SILLYImageLoader.cpp</a>.</p> |
170 | </div> | 170 | </div> |
171 | </div> | 171 | </div> |
172 | <a·id="a1f83c2e6e4960b05c1b5bd61b0635f8c"·name="a1f83c2e6e4960b05c1b5bd61b0635f8c"></a> | 172 | <a·id="a1f83c2e6e4960b05c1b5bd61b0635f8c"·name="a1f83c2e6e4960b05c1b5bd61b0635f8c"></a> |
173 | <h2·class="memtitle"><span·class="permalink"><a·href="#a1f83c2e6e4960b05c1b5bd61b0635f8c">◆ </a></span>loadHeader()</h2> | 173 | <h2·class="memtitle"><span·class="permalink"><a·href="#a1f83c2e6e4960b05c1b5bd61b0635f8c">◆ </a></span>loadHeader()</h2> |
174 | <div·class="memitem"> | 174 | <div·class="memitem"> |
Offset 213, 15 lines modified | Offset 213, 15 lines modified | ||
213 | ··</table> | 213 | ··</table> |
214 | ··</dd> | 214 | ··</dd> |
215 | </dl> | 215 | </dl> |
216 | <dl·class="section·return"><dt>Returns</dt><dd>Context·for·the·rest·of·the·parsing·or·0·if·an·error·occured·</dd></dl> | 216 | <dl·class="section·return"><dt>Returns</dt><dd>Context·for·the·rest·of·the·parsing·or·0·if·an·error·occured·</dd></dl> |
217 | <p>Implements·<a·class="el"·href="a00985.html#a4a6a3a51641cbbb3184ab00d9de6f753">ImageLoader</a>.</p> | 217 | <p>Implements·<a·class="el"·href="a00985.html#a4a6a3a51641cbbb3184ab00d9de6f753">ImageLoader</a>.</p> |
218 | <p·class="definition">Definition·at·line·<a·class="el"·href="a000 | 218 | <p·class="definition">Definition·at·line·<a·class="el"·href="a00029_source.html#l00088">88</a>·of·file·<a·class="el"·href="a00029_source.html">SILLYPNGImageLoader.cpp</a>.</p> |
219 | </div> | 219 | </div> |
220 | </div> | 220 | </div> |
221 | <a·id="a4a4d6df5dcc08cb493855fcfc1956fca"·name="a4a4d6df5dcc08cb493855fcfc1956fca"></a> | 221 | <a·id="a4a4d6df5dcc08cb493855fcfc1956fca"·name="a4a4d6df5dcc08cb493855fcfc1956fca"></a> |
222 | <h2·class="memtitle"><span·class="permalink"><a·href="#a4a4d6df5dcc08cb493855fcfc1956fca">◆ </a></span>loadImageData()</h2> | 222 | <h2·class="memtitle"><span·class="permalink"><a·href="#a4a4d6df5dcc08cb493855fcfc1956fca">◆ </a></span>loadImageData()</h2> |
223 | <div·class="memitem"> | 223 | <div·class="memitem"> |
Offset 270, 21 lines modified | Offset 270, 21 lines modified | ||
270 | ··</table> | 270 | ··</table> |
271 | ··</dd> | 271 | ··</dd> |
272 | </dl> | 272 | </dl> |
273 | <dl·class="section·return"><dt>Returns</dt><dd>true·on·success·false·on·error·</dd></dl> | 273 | <dl·class="section·return"><dt>Returns</dt><dd>true·on·success·false·on·error·</dd></dl> |
274 | <p>Implements·<a·class="el"·href="a00985.html#a7622e69834f644d7cf1201c1cabd80c6">ImageLoader</a>.</p> | 274 | <p>Implements·<a·class="el"·href="a00985.html#a7622e69834f644d7cf1201c1cabd80c6">ImageLoader</a>.</p> |
275 | <p·class="definition">Definition·at·line·<a·class="el"·href="a000 | 275 | <p·class="definition">Definition·at·line·<a·class="el"·href="a00029_source.html#l00154">154</a>·of·file·<a·class="el"·href="a00029_source.html">SILLYPNGImageLoader.cpp</a>.</p> |
276 | </div> | 276 | </div> |
277 | </div> | 277 | </div> |
278 | <hr/>The·documentation·for·this·class·was·generated·from·the·following·files:<ul> | 278 | <hr/>The·documentation·for·this·class·was·generated·from·the·following·files:<ul> |
279 | <li>/build/reproducible-path/silly-0.1.0/include/loaders/<a·class="el"·href="a00 | 279 | <li>/build/reproducible-path/silly-0.1.0/include/loaders/<a·class="el"·href="a00104_source.html">SILLYPNGImageLoader.h</a></li> |
280 | <li>/build/reproducible-path/silly-0.1.0/src/loaders/<a·class="el"·href="a000 | 280 | <li>/build/reproducible-path/silly-0.1.0/src/loaders/<a·class="el"·href="a00029_source.html">SILLYPNGImageLoader.cpp</a></li> |
281 | </ul> | 281 | </ul> |
282 | </div><!--·contents·--> | 282 | </div><!--·contents·--> |
283 | <!--·start·footer·part·--> | 283 | <!--·start·footer·part·--> |
284 | <hr·class="footer"/><address·class="footer"><small> | 284 | <hr·class="footer"/><address·class="footer"><small> |
285 | Generated·by <a·href="https://www.doxygen.org/index.html"><img·class="footer"·src="doxygen.svg"·width="104"·height="31"·alt="doxygen"/></a>·1.9.8 | 285 | Generated·by <a·href="https://www.doxygen.org/index.html"><img·class="footer"·src="doxygen.svg"·width="104"·height="31"·alt="doxygen"/></a>·1.9.8 |
286 | </small></address> | 286 | </small></address> |
287 | </body> | 287 | </body> |
Offset 51, 15 lines modified | Offset 51, 15 lines modified | ||
51 | ··<div·class="headertitle"><div·class="title">TGAImageContext·Class·Reference</div></div> | 51 | ··<div·class="headertitle"><div·class="title">TGAImageContext·Class·Reference</div></div> |
52 | </div><!--header--> | 52 | </div><!--header--> |
53 | <div·class="contents"> | 53 | <div·class="contents"> |
54 | <p><a·class="el"·href="a00977.html"·title="Image·is·the·main·user·class·of·the·library.">Image</a>·Context·for·Targa·image.·· | 54 | <p><a·class="el"·href="a00977.html"·title="Image·is·the·main·user·class·of·the·library.">Image</a>·Context·for·Targa·image.·· |
55 | ·<a·href="a00961.html#details">More...</a></p> | 55 | ·<a·href="a00961.html#details">More...</a></p> |
56 | <p><code>#include·<<a·class="el"·href="a00 | 56 | <p><code>#include·<<a·class="el"·href="a00119_source.html">SILLYTGAImageContext.h</a>></code></p> |
57 | <div·class="dynheader"> | 57 | <div·class="dynheader"> |
58 | Inheritance·diagram·for·TGAImageContext:</div> | 58 | Inheritance·diagram·for·TGAImageContext:</div> |
59 | <div·class="dyncontent"> | 59 | <div·class="dyncontent"> |
60 | <div·class="center"><img·src="a00960.png"·border="0"·usemap="#aTGAImageContext_inherit__map"·alt="Inheritance·graph"/></div> | 60 | <div·class="center"><img·src="a00960.png"·border="0"·usemap="#aTGAImageContext_inherit__map"·alt="Inheritance·graph"/></div> |
61 | <map·name="aTGAImageContext_inherit__map"·id="aTGAImageContext_inherit__map"> | 61 | <map·name="aTGAImageContext_inherit__map"·id="aTGAImageContext_inherit__map"> |
62 | <area·shape="rect"·title="Image·Context·for·Targa·image."·alt=""·coords="5,79,147,104"/> | 62 | <area·shape="rect"·title="Image·Context·for·Targa·image."·alt=""·coords="5,79,147,104"/> |
63 | <area·shape="rect"·href="a00981.html"·title="Store·the·data·needed·by·an·ImageLoader·object·during·the·parsing·of·an·image."·alt=""·coords="19,5,133,31"/> | 63 | <area·shape="rect"·href="a00981.html"·title="Store·the·data·needed·by·an·ImageLoader·object·during·the·parsing·of·an·image."·alt=""·coords="19,5,133,31"/> |
Offset 116, 15 lines modified | Offset 116, 15 lines modified | ||
116 | Friends</h2></td></tr> | 116 | Friends</h2></td></tr> |
117 | <tr·class="memitem:a89a36ec38e5779c9e552d26e9c395f31"·id="r_a89a36ec38e5779c9e552d26e9c395f31"><td·class="memItemLeft"·align="right"·valign="top">class </td><td·class="memItemRight"·valign="bottom"><a·class="el"·href="a00961.html#a89a36ec38e5779c9e552d26e9c395f31">TGAImageLoader</a></td></tr> | 117 | <tr·class="memitem:a89a36ec38e5779c9e552d26e9c395f31"·id="r_a89a36ec38e5779c9e552d26e9c395f31"><td·class="memItemLeft"·align="right"·valign="top">class </td><td·class="memItemRight"·valign="bottom"><a·class="el"·href="a00961.html#a89a36ec38e5779c9e552d26e9c395f31">TGAImageLoader</a></td></tr> |
118 | <tr·class="separator:a89a36ec38e5779c9e552d26e9c395f31"><td·class="memSeparator"·colspan="2"> </td></tr> | 118 | <tr·class="separator:a89a36ec38e5779c9e552d26e9c395f31"><td·class="memSeparator"·colspan="2"> </td></tr> |
119 | </table> | 119 | </table> |
120 | <a·name="details"·id="details"></a><h2·class="groupheader">Detailed·Description</h2> | 120 | <a·name="details"·id="details"></a><h2·class="groupheader">Detailed·Description</h2> |
121 | <div·class="textblock"><p><a·class="el"·href="a00977.html"·title="Image·is·the·main·user·class·of·the·library.">Image</a>·Context·for·Targa·image.·</p> | 121 | <div·class="textblock"><p><a·class="el"·href="a00977.html"·title="Image·is·the·main·user·class·of·the·library.">Image</a>·Context·for·Targa·image.·</p> |
122 | <p·class="definition">Definition·at·line·<a·class="el"·href="a00 | 122 | <p·class="definition">Definition·at·line·<a·class="el"·href="a00119_source.html#l00042">42</a>·of·file·<a·class="el"·href="a00119_source.html">SILLYTGAImageContext.h</a>.</p> |
123 | </div><h2·class="groupheader">Member·Function·Documentation</h2> | 123 | </div><h2·class="groupheader">Member·Function·Documentation</h2> |
124 | <a·id="a23cd315e8ce80deeb7a06e268f65412f"·name="a23cd315e8ce80deeb7a06e268f65412f"></a> | 124 | <a·id="a23cd315e8ce80deeb7a06e268f65412f"·name="a23cd315e8ce80deeb7a06e268f65412f"></a> |
125 | <h2·class="memtitle"><span·class="permalink"><a·href="#a23cd315e8ce80deeb7a06e268f65412f">◆ </a></span>flipVertically()</h2> | 125 | <h2·class="memtitle"><span·class="permalink"><a·href="#a23cd315e8ce80deeb7a06e268f65412f">◆ </a></span>flipVertically()</h2> |
126 | <div·class="memitem"> | 126 | <div·class="memitem"> |
127 | <div·class="memproto"> | 127 | <div·class="memproto"> |
128 | <table·class="mlabels"> | 128 | <table·class="mlabels"> |
Offset 144, 15 lines modified | Offset 144, 15 lines modified | ||
144 | ··</tr> | 144 | ··</tr> |
145 | </table> | 145 | </table> |
146 | </div><div·class="memdoc"> | 146 | </div><div·class="memdoc"> |
147 | <p>Flip·pixel·ordering.·</p> | 147 | <p>Flip·pixel·ordering.·</p> |
148 | <dl·class="section·return"><dt>Returns</dt><dd>true·on·success·false·otherwise·</dd></dl> | 148 | <dl·class="section·return"><dt>Returns</dt><dd>true·on·success·false·otherwise·</dd></dl> |
149 | <p·class="definition">Definition·at·line·<a·class="el"·href="a000 | 149 | <p·class="definition">Definition·at·line·<a·class="el"·href="a00038_source.html#l00045">45</a>·of·file·<a·class="el"·href="a00038_source.html">SILLYImageContext.cpp</a>.</p> |
150 | </div> | 150 | </div> |
151 | </div> | 151 | </div> |
152 | <h2·class="groupheader">Friends·And·Related·Symbol·Documentation</h2> | 152 | <h2·class="groupheader">Friends·And·Related·Symbol·Documentation</h2> |
153 | <a·id="a89a36ec38e5779c9e552d26e9c395f31"·name="a89a36ec38e5779c9e552d26e9c395f31"></a> | 153 | <a·id="a89a36ec38e5779c9e552d26e9c395f31"·name="a89a36ec38e5779c9e552d26e9c395f31"></a> |
154 | <h2·class="memtitle"><span·class="permalink"><a·href="#a89a36ec38e5779c9e552d26e9c395f31">◆ </a></span>TGAImageLoader</h2> | 154 | <h2·class="memtitle"><span·class="permalink"><a·href="#a89a36ec38e5779c9e552d26e9c395f31">◆ </a></span>TGAImageLoader</h2> |
Offset 169, 20 lines modified | Offset 169, 20 lines modified | ||
169 | ··</td> | 169 | ··</td> |
170 | ··<td·class="mlabels-right"> | 170 | ··<td·class="mlabels-right"> |
171 | <span·class="mlabels"><span·class="mlabel">friend</span></span>··</td> | 171 | <span·class="mlabels"><span·class="mlabel">friend</span></span>··</td> |
172 | ··</tr> | 172 | ··</tr> |
173 | </table> | 173 | </table> |
174 | </div><div·class="memdoc"> | 174 | </div><div·class="memdoc"> |
175 | <p·class="definition">Definition·at·line·<a·class="el"·href="a00 | 175 | <p·class="definition">Definition·at·line·<a·class="el"·href="a00119_source.html#l00054">54</a>·of·file·<a·class="el"·href="a00119_source.html">SILLYTGAImageContext.h</a>.</p> |
176 | </div> | 176 | </div> |
177 | </div> | 177 | </div> |
178 | <hr/>The·documentation·for·this·class·was·generated·from·the·following·file:<ul> | 178 | <hr/>The·documentation·for·this·class·was·generated·from·the·following·file:<ul> |
179 | <li>/build/reproducible-path/silly-0.1.0/include/loaders/<a·class="el"·href="a00 | 179 | <li>/build/reproducible-path/silly-0.1.0/include/loaders/<a·class="el"·href="a00119_source.html">SILLYTGAImageContext.h</a></li> |
180 | </ul> | 180 | </ul> |
181 | </div><!--·contents·--> | 181 | </div><!--·contents·--> |
182 | <!--·start·footer·part·--> | 182 | <!--·start·footer·part·--> |
183 | <hr·class="footer"/><address·class="footer"><small> | 183 | <hr·class="footer"/><address·class="footer"><small> |
184 | Generated·by <a·href="https://www.doxygen.org/index.html"><img·class="footer"·src="doxygen.svg"·width="104"·height="31"·alt="doxygen"/></a>·1.9.8 | 184 | Generated·by <a·href="https://www.doxygen.org/index.html"><img·class="footer"·src="doxygen.svg"·width="104"·height="31"·alt="doxygen"/></a>·1.9.8 |
185 | </small></address> | 185 | </small></address> |
186 | </body> | 186 | </body> |
Offset 49, 15 lines modified | Offset 49, 15 lines modified | ||
49 | ··<div·class="headertitle"><div·class="title">TGAImageLoader·Class·Reference</div></div> | 49 | ··<div·class="headertitle"><div·class="title">TGAImageLoader·Class·Reference</div></div> |
50 | </div><!--header--> | 50 | </div><!--header--> |
51 | <div·class="contents"> | 51 | <div·class="contents"> |
52 | <p>Loader·for·Targa·image.·· | 52 | <p>Loader·for·Targa·image.·· |
53 | ·<a·href="a00965.html#details">More...</a></p> | 53 | ·<a·href="a00965.html#details">More...</a></p> |
54 | <p><code>#include·<<a·class="el"·href="a00 | 54 | <p><code>#include·<<a·class="el"·href="a00122_source.html">SILLYTGAImageLoader.h</a>></code></p> |
55 | <div·class="dynheader"> | 55 | <div·class="dynheader"> |
56 | Inheritance·diagram·for·TGAImageLoader:</div> | 56 | Inheritance·diagram·for·TGAImageLoader:</div> |
57 | <div·class="dyncontent"> | 57 | <div·class="dyncontent"> |
58 | <div·class="center"><img·src="a00964.png"·border="0"·usemap="#aTGAImageLoader_inherit__map"·alt="Inheritance·graph"/></div> | 58 | <div·class="center"><img·src="a00964.png"·border="0"·usemap="#aTGAImageLoader_inherit__map"·alt="Inheritance·graph"/></div> |
59 | <map·name="aTGAImageLoader_inherit__map"·id="aTGAImageLoader_inherit__map"> | 59 | <map·name="aTGAImageLoader_inherit__map"·id="aTGAImageLoader_inherit__map"> |
60 | <area·shape="rect"·title="Loader·for·Targa·image."·alt=""·coords="5,79,140,104"/> | 60 | <area·shape="rect"·title="Loader·for·Targa·image."·alt=""·coords="5,79,140,104"/> |
61 | <area·shape="rect"·href="a00985.html"·title="This·is·an·abstract·class·that·define·the·interface·of·all·image·loader."·alt=""·coords="19,5,126,31"/> | 61 | <area·shape="rect"·href="a00985.html"·title="This·is·an·abstract·class·that·define·the·interface·of·all·image·loader."·alt=""·coords="19,5,126,31"/> |
Offset 90, 15 lines modified | Offset 90, 15 lines modified | ||
90 | <tr·class="memitem:a4a4d6df5dcc08cb493855fcfc1956fca"·id="r_a4a4d6df5dcc08cb493855fcfc1956fca"><td·class="memItemLeft"·align="right"·valign="top">bool </td><td·class="memItemRight"·valign="bottom"><a·class="el"·href="a00965.html#a4a4d6df5dcc08cb493855fcfc1956fca">loadImageData</a>·(<a·class="el"·href="a00129.html#aebdd89f22790687ac264c1abd9f7fd38">PixelOrigin</a>·origin,·<a·class="el"·href="a00969.html">DataSource</a>·*data,·<a·class="el"·href="a00981.html">ImageContext</a>·*context)</td></tr> | 90 | <tr·class="memitem:a4a4d6df5dcc08cb493855fcfc1956fca"·id="r_a4a4d6df5dcc08cb493855fcfc1956fca"><td·class="memItemLeft"·align="right"·valign="top">bool </td><td·class="memItemRight"·valign="bottom"><a·class="el"·href="a00965.html#a4a4d6df5dcc08cb493855fcfc1956fca">loadImageData</a>·(<a·class="el"·href="a00129.html#aebdd89f22790687ac264c1abd9f7fd38">PixelOrigin</a>·origin,·<a·class="el"·href="a00969.html">DataSource</a>·*data,·<a·class="el"·href="a00981.html">ImageContext</a>·*context)</td></tr> |
91 | <tr·class="memdesc:a4a4d6df5dcc08cb493855fcfc1956fca"><td·class="mdescLeft"> </td><td·class="mdescRight">Parse·the·pixels·data·of·the·image·and·fill·the·header·struct.··<br·/></td></tr> | 91 | <tr·class="memdesc:a4a4d6df5dcc08cb493855fcfc1956fca"><td·class="mdescLeft"> </td><td·class="mdescRight">Parse·the·pixels·data·of·the·image·and·fill·the·header·struct.··<br·/></td></tr> |
92 | <tr·class="separator:a4a4d6df5dcc08cb493855fcfc1956fca"><td·class="memSeparator"·colspan="2"> </td></tr> | 92 | <tr·class="separator:a4a4d6df5dcc08cb493855fcfc1956fca"><td·class="memSeparator"·colspan="2"> </td></tr> |
93 | </table> | 93 | </table> |
94 | <a·name="details"·id="details"></a><h2·class="groupheader">Detailed·Description</h2> | 94 | <a·name="details"·id="details"></a><h2·class="groupheader">Detailed·Description</h2> |
95 | <div·class="textblock"><p>Loader·for·Targa·image.·</p> | 95 | <div·class="textblock"><p>Loader·for·Targa·image.·</p> |
96 | <p·class="definition">Definition·at·line·<a·class="el"·href="a00 | 96 | <p·class="definition">Definition·at·line·<a·class="el"·href="a00122_source.html#l00043">43</a>·of·file·<a·class="el"·href="a00122_source.html">SILLYTGAImageLoader.h</a>.</p> |
97 | </div><h2·class="groupheader">Constructor·&·Destructor·Documentation</h2> | 97 | </div><h2·class="groupheader">Constructor·&·Destructor·Documentation</h2> |
98 | <a·id="a1a554dafae53e474d6f2352986265343"·name="a1a554dafae53e474d6f2352986265343"></a> | 98 | <a·id="a1a554dafae53e474d6f2352986265343"·name="a1a554dafae53e474d6f2352986265343"></a> |
99 | <h2·class="memtitle"><span·class="permalink"><a·href="#a1a554dafae53e474d6f2352986265343">◆ </a></span>TGAImageLoader()</h2> | 99 | <h2·class="memtitle"><span·class="permalink"><a·href="#a1a554dafae53e474d6f2352986265343">◆ </a></span>TGAImageLoader()</h2> |
100 | <div·class="memitem"> | 100 | <div·class="memitem"> |
101 | <div·class="memproto"> | 101 | <div·class="memproto"> |
102 | ······<table·class="memname"> | 102 | ······<table·class="memname"> |
Offset 107, 15 lines modified | Offset 107, 15 lines modified | ||
107 | ··········<td>(</td> | 107 | ··········<td>(</td> |
108 | ··········<td·class="paramname"></td><td>)</td> | 108 | ··········<td·class="paramname"></td><td>)</td> |
109 | ··········<td></td> | 109 | ··········<td></td> |
110 | ········</tr> | 110 | ········</tr> |
111 | ······</table> | 111 | ······</table> |
112 | </div><div·class="memdoc"> | 112 | </div><div·class="memdoc"> |
113 | <p·class="definition">Definition·at·line·<a·class="el"·href="a000 | 113 | <p·class="definition">Definition·at·line·<a·class="el"·href="a00035_source.html#l00051">51</a>·of·file·<a·class="el"·href="a00035_source.html">SILLYTGAImageLoader.cpp</a>.</p> |
114 | </div> | 114 | </div> |
115 | </div> | 115 | </div> |
116 | <a·id="a67f233b0654eb7101fefe58eecf5b888"·name="a67f233b0654eb7101fefe58eecf5b888"></a> | 116 | <a·id="a67f233b0654eb7101fefe58eecf5b888"·name="a67f233b0654eb7101fefe58eecf5b888"></a> |
117 | <h2·class="memtitle"><span·class="permalink"><a·href="#a67f233b0654eb7101fefe58eecf5b888">◆ </a></span>~TGAImageLoader()</h2> | 117 | <h2·class="memtitle"><span·class="permalink"><a·href="#a67f233b0654eb7101fefe58eecf5b888">◆ </a></span>~TGAImageLoader()</h2> |
118 | <div·class="memitem"> | 118 | <div·class="memitem"> |
Offset 126, 15 lines modified | Offset 126, 15 lines modified | ||
126 | ··········<td>(</td> | 126 | ··········<td>(</td> |
127 | ··········<td·class="paramname"></td><td>)</td> | 127 | ··········<td·class="paramname"></td><td>)</td> |
128 | ··········<td></td> | 128 | ··········<td></td> |
129 | ········</tr> | 129 | ········</tr> |
130 | ······</table> | 130 | ······</table> |
131 | </div><div·class="memdoc"> | 131 | </div><div·class="memdoc"> |
132 | <p·class="definition">Definition·at·line·<a·class="el"·href="a000 | 132 | <p·class="definition">Definition·at·line·<a·class="el"·href="a00035_source.html#l00056">56</a>·of·file·<a·class="el"·href="a00035_source.html">SILLYTGAImageLoader.cpp</a>.</p> |
133 | </div> | 133 | </div> |
134 | </div> | 134 | </div> |
135 | <h2·class="groupheader">Member·Function·Documentation</h2> | 135 | <h2·class="groupheader">Member·Function·Documentation</h2> |
136 | <a·id="a439f9065fd9a935d7f53b30b2242e924"·name="a439f9065fd9a935d7f53b30b2242e924"></a> | 136 | <a·id="a439f9065fd9a935d7f53b30b2242e924"·name="a439f9065fd9a935d7f53b30b2242e924"></a> |
137 | <h2·class="memtitle"><span·class="permalink"><a·href="#a439f9065fd9a935d7f53b30b2242e924">◆ </a></span>destroyContext()</h2> | 137 | <h2·class="memtitle"><span·class="permalink"><a·href="#a439f9065fd9a935d7f53b30b2242e924">◆ </a></span>destroyContext()</h2> |
Offset 163, 15 lines modified | Offset 163, 15 lines modified | ||
163 | <dl·class="params"><dt>Parameters</dt><dd> | 163 | <dl·class="params"><dt>Parameters</dt><dd> |
164 | ··<table·class="params"> | 164 | ··<table·class="params"> |
165 | ····<tr><td·class="paramname">context</td><td>a·pointer·to·the·context·</td></tr> | 165 | ····<tr><td·class="paramname">context</td><td>a·pointer·to·the·context·</td></tr> |
166 | ··</table> | 166 | ··</table> |
167 | ··</dd> | 167 | ··</dd> |
168 | </dl> | 168 | </dl> |
169 | <p·class="definition">Definition·at·line·<a·class="el"·href="a000 | 169 | <p·class="definition">Definition·at·line·<a·class="el"·href="a00008_source.html#l00047">47</a>·of·file·<a·class="el"·href="a00008_source.html">SILLYImageLoader.cpp</a>.</p> |
170 | </div> | 170 | </div> |
171 | </div> | 171 | </div> |
172 | <a·id="a1f83c2e6e4960b05c1b5bd61b0635f8c"·name="a1f83c2e6e4960b05c1b5bd61b0635f8c"></a> | 172 | <a·id="a1f83c2e6e4960b05c1b5bd61b0635f8c"·name="a1f83c2e6e4960b05c1b5bd61b0635f8c"></a> |
173 | <h2·class="memtitle"><span·class="permalink"><a·href="#a1f83c2e6e4960b05c1b5bd61b0635f8c">◆ </a></span>loadHeader()</h2> | 173 | <h2·class="memtitle"><span·class="permalink"><a·href="#a1f83c2e6e4960b05c1b5bd61b0635f8c">◆ </a></span>loadHeader()</h2> |
174 | <div·class="memitem"> | 174 | <div·class="memitem"> |
Offset 213, 15 lines modified | Offset 213, 15 lines modified | ||
213 | ··</table> | 213 | ··</table> |
214 | ··</dd> | 214 | ··</dd> |
215 | </dl> | 215 | </dl> |
216 | <dl·class="section·return"><dt>Returns</dt><dd>Context·for·the·rest·of·the·parsing·or·0·if·an·error·occured·</dd></dl> | 216 | <dl·class="section·return"><dt>Returns</dt><dd>Context·for·the·rest·of·the·parsing·or·0·if·an·error·occured·</dd></dl> |
217 | <p>Implements·<a·class="el"·href="a00985.html#a4a6a3a51641cbbb3184ab00d9de6f753">ImageLoader</a>.</p> | 217 | <p>Implements·<a·class="el"·href="a00985.html#a4a6a3a51641cbbb3184ab00d9de6f753">ImageLoader</a>.</p> |
218 | <p·class="definition">Definition·at·line·<a·class="el"·href="a000 | 218 | <p·class="definition">Definition·at·line·<a·class="el"·href="a00035_source.html#l00074">74</a>·of·file·<a·class="el"·href="a00035_source.html">SILLYTGAImageLoader.cpp</a>.</p> |
219 | </div> | 219 | </div> |
220 | </div> | 220 | </div> |
221 | <a·id="a4a4d6df5dcc08cb493855fcfc1956fca"·name="a4a4d6df5dcc08cb493855fcfc1956fca"></a> | 221 | <a·id="a4a4d6df5dcc08cb493855fcfc1956fca"·name="a4a4d6df5dcc08cb493855fcfc1956fca"></a> |
222 | <h2·class="memtitle"><span·class="permalink"><a·href="#a4a4d6df5dcc08cb493855fcfc1956fca">◆ </a></span>loadImageData()</h2> | 222 | <h2·class="memtitle"><span·class="permalink"><a·href="#a4a4d6df5dcc08cb493855fcfc1956fca">◆ </a></span>loadImageData()</h2> |
223 | <div·class="memitem"> | 223 | <div·class="memitem"> |
Offset 270, 21 lines modified | Offset 270, 21 lines modified | ||
270 | ··</table> | 270 | ··</table> |
271 | ··</dd> | 271 | ··</dd> |
272 | </dl> | 272 | </dl> |
273 | <dl·class="section·return"><dt>Returns</dt><dd>true·on·success·false·on·error·</dd></dl> | 273 | <dl·class="section·return"><dt>Returns</dt><dd>true·on·success·false·on·error·</dd></dl> |
274 | <p>Implements·<a·class="el"·href="a00985.html#a7622e69834f644d7cf1201c1cabd80c6">ImageLoader</a>.</p> | 274 | <p>Implements·<a·class="el"·href="a00985.html#a7622e69834f644d7cf1201c1cabd80c6">ImageLoader</a>.</p> |
275 | <p·class="definition">Definition·at·line·<a·class="el"·href="a000 | 275 | <p·class="definition">Definition·at·line·<a·class="el"·href="a00035_source.html#l00134">134</a>·of·file·<a·class="el"·href="a00035_source.html">SILLYTGAImageLoader.cpp</a>.</p> |
276 | </div> | 276 | </div> |
277 | </div> | 277 | </div> |
278 | <hr/>The·documentation·for·this·class·was·generated·from·the·following·files:<ul> | 278 | <hr/>The·documentation·for·this·class·was·generated·from·the·following·files:<ul> |
279 | <li>/build/reproducible-path/silly-0.1.0/include/loaders/<a·class="el"·href="a00 | 279 | <li>/build/reproducible-path/silly-0.1.0/include/loaders/<a·class="el"·href="a00122_source.html">SILLYTGAImageLoader.h</a></li> |
280 | <li>/build/reproducible-path/silly-0.1.0/src/loaders/<a·class="el"·href="a000 | 280 | <li>/build/reproducible-path/silly-0.1.0/src/loaders/<a·class="el"·href="a00035_source.html">SILLYTGAImageLoader.cpp</a></li> |
281 | </ul> | 281 | </ul> |
282 | </div><!--·contents·--> | 282 | </div><!--·contents·--> |
283 | <!--·start·footer·part·--> | 283 | <!--·start·footer·part·--> |
284 | <hr·class="footer"/><address·class="footer"><small> | 284 | <hr·class="footer"/><address·class="footer"><small> |
285 | Generated·by <a·href="https://www.doxygen.org/index.html"><img·class="footer"·src="doxygen.svg"·width="104"·height="31"·alt="doxygen"/></a>·1.9.8 | 285 | Generated·by <a·href="https://www.doxygen.org/index.html"><img·class="footer"·src="doxygen.svg"·width="104"·height="31"·alt="doxygen"/></a>·1.9.8 |
286 | </small></address> | 286 | </small></address> |
287 | </body> | 287 | </body> |
Offset 49, 15 lines modified | Offset 49, 15 lines modified | ||
49 | ··<div·class="headertitle"><div·class="title">DataSource·Class·Reference<span·class="mlabels"><span·class="mlabel">abstract</span></span></div></div> | 49 | ··<div·class="headertitle"><div·class="title">DataSource·Class·Reference<span·class="mlabels"><span·class="mlabel">abstract</span></span></div></div> |
50 | </div><!--header--> | 50 | </div><!--header--> |
51 | <div·class="contents"> | 51 | <div·class="contents"> |
52 | <p>This·is·an·abstract·class·used·to·provide·data·to·the·loader.·· | 52 | <p>This·is·an·abstract·class·used·to·provide·data·to·the·loader.·· |
53 | ·<a·href="a00969.html#details">More...</a></p> | 53 | ·<a·href="a00969.html#details">More...</a></p> |
54 | <p><code>#include·<<a·class="el"·href="a00 | 54 | <p><code>#include·<<a·class="el"·href="a00083_source.html">SILLYDataSource.h</a>></code></p> |
55 | <div·class="dynheader"> | 55 | <div·class="dynheader"> |
56 | Inheritance·diagram·for·DataSource:</div> | 56 | Inheritance·diagram·for·DataSource:</div> |
57 | <div·class="dyncontent"> | 57 | <div·class="dyncontent"> |
58 | <div·class="center"><img·src="a00968.png"·border="0"·usemap="#aDataSource_inherit__map"·alt="Inheritance·graph"/></div> | 58 | <div·class="center"><img·src="a00968.png"·border="0"·usemap="#aDataSource_inherit__map"·alt="Inheritance·graph"/></div> |
59 | <map·name="aDataSource_inherit__map"·id="aDataSource_inherit__map"> | 59 | <map·name="aDataSource_inherit__map"·id="aDataSource_inherit__map"> |
60 | <area·shape="rect"·title="This·is·an·abstract·class·used·to·provide·data·to·the·loader."·alt=""·coords="97,5,194,31"/> | 60 | <area·shape="rect"·title="This·is·an·abstract·class·used·to·provide·data·to·the·loader."·alt=""·coords="97,5,194,31"/> |
61 | <area·shape="rect"·href="a00973.html"·title="This·class·allow·the·loading·of·an·image·directly·from·a·file."·alt=""·coords="5,79,125,104"/> | 61 | <area·shape="rect"·href="a00973.html"·title="This·class·allow·the·loading·of·an·image·directly·from·a·file."·alt=""·coords="5,79,125,104"/> |
Offset 84, 15 lines modified | Offset 84, 15 lines modified | ||
84 | <tr·class="memdesc:afef9864fc5e1bee97a7ce05a274d8006"><td·class="mdescLeft"> </td><td·class="mdescRight">Destructor.·<br·/></td></tr> | 84 | <tr·class="memdesc:afef9864fc5e1bee97a7ce05a274d8006"><td·class="mdescLeft"> </td><td·class="mdescRight">Destructor.·<br·/></td></tr> |
85 | <tr·class="separator:afef9864fc5e1bee97a7ce05a274d8006"><td·class="memSeparator"·colspan="2"> </td></tr> | 85 | <tr·class="separator:afef9864fc5e1bee97a7ce05a274d8006"><td·class="memSeparator"·colspan="2"> </td></tr> |
86 | </table> | 86 | </table> |
87 | <a·name="details"·id="details"></a><h2·class="groupheader">Detailed·Description</h2> | 87 | <a·name="details"·id="details"></a><h2·class="groupheader">Detailed·Description</h2> |
88 | <div·class="textblock"><p>This·is·an·abstract·class·used·to·provide·data·to·the·loader.·</p> | 88 | <div·class="textblock"><p>This·is·an·abstract·class·used·to·provide·data·to·the·loader.·</p> |
89 | <p>This·class·defines·abstract·data·loading·operation·required·for·the·library.·</p> | 89 | <p>This·class·defines·abstract·data·loading·operation·required·for·the·library.·</p> |
90 | <p·class="definition">Definition·at·line·<a·class="el"·href="a00 | 90 | <p·class="definition">Definition·at·line·<a·class="el"·href="a00083_source.html#l00046">46</a>·of·file·<a·class="el"·href="a00083_source.html">SILLYDataSource.h</a>.</p> |
91 | </div><h2·class="groupheader">Member·Function·Documentation</h2> | 91 | </div><h2·class="groupheader">Member·Function·Documentation</h2> |
92 | <a·id="a3ae74c9d90450a3d9aa45191e1c21c13"·name="a3ae74c9d90450a3d9aa45191e1c21c13"></a> | 92 | <a·id="a3ae74c9d90450a3d9aa45191e1c21c13"·name="a3ae74c9d90450a3d9aa45191e1c21c13"></a> |
93 | <h2·class="memtitle"><span·class="permalink"><a·href="#a3ae74c9d90450a3d9aa45191e1c21c13">◆ </a></span>getDataPtr()</h2> | 93 | <h2·class="memtitle"><span·class="permalink"><a·href="#a3ae74c9d90450a3d9aa45191e1c21c13">◆ </a></span>getDataPtr()</h2> |
94 | <div·class="memitem"> | 94 | <div·class="memitem"> |
95 | <div·class="memproto"> | 95 | <div·class="memproto"> |
96 | <table·class="mlabels"> | 96 | <table·class="mlabels"> |
Offset 145, 15 lines modified | Offset 145, 15 lines modified | ||
145 | <p>Return·the·size·of·the·data.·</p> | 145 | <p>Return·the·size·of·the·data.·</p> |
146 | <p>Implemented·in·<a·class="el"·href="a00973.html#a9be1e4285daa77fe397767c097fbdc66">FileDataSource</a>,·and·<a·class="el"·href="a00993.html#a9be1e4285daa77fe397767c097fbdc66">MemoryDataSource</a>.</p> | 146 | <p>Implemented·in·<a·class="el"·href="a00973.html#a9be1e4285daa77fe397767c097fbdc66">FileDataSource</a>,·and·<a·class="el"·href="a00993.html#a9be1e4285daa77fe397767c097fbdc66">MemoryDataSource</a>.</p> |
147 | </div> | 147 | </div> |
148 | </div> | 148 | </div> |
149 | <hr/>The·documentation·for·this·class·was·generated·from·the·following·file:<ul> | 149 | <hr/>The·documentation·for·this·class·was·generated·from·the·following·file:<ul> |
150 | <li>/build/reproducible-path/silly-0.1.0/include/<a·class="el"·href="a00 | 150 | <li>/build/reproducible-path/silly-0.1.0/include/<a·class="el"·href="a00083_source.html">SILLYDataSource.h</a></li> |
151 | </ul> | 151 | </ul> |
152 | </div><!--·contents·--> | 152 | </div><!--·contents·--> |
153 | <!--·start·footer·part·--> | 153 | <!--·start·footer·part·--> |
154 | <hr·class="footer"/><address·class="footer"><small> | 154 | <hr·class="footer"/><address·class="footer"><small> |
155 | Generated·by <a·href="https://www.doxygen.org/index.html"><img·class="footer"·src="doxygen.svg"·width="104"·height="31"·alt="doxygen"/></a>·1.9.8 | 155 | Generated·by <a·href="https://www.doxygen.org/index.html"><img·class="footer"·src="doxygen.svg"·width="104"·height="31"·alt="doxygen"/></a>·1.9.8 |
156 | </small></address> | 156 | </small></address> |
157 | </body> | 157 | </body> |
Offset 49, 15 lines modified | Offset 49, 15 lines modified | ||
49 | ··<div·class="headertitle"><div·class="title">FileDataSource·Class·Reference</div></div> | 49 | ··<div·class="headertitle"><div·class="title">FileDataSource·Class·Reference</div></div> |
50 | </div><!--header--> | 50 | </div><!--header--> |
51 | <div·class="contents"> | 51 | <div·class="contents"> |
52 | <p>This·class·allow·the·loading·of·an·image·directly·from·a·file.·· | 52 | <p>This·class·allow·the·loading·of·an·image·directly·from·a·file.·· |
53 | ·<a·href="a00973.html#details">More...</a></p> | 53 | ·<a·href="a00973.html#details">More...</a></p> |
54 | <p><code>#include·<<a·class="el"·href="a000 | 54 | <p><code>#include·<<a·class="el"·href="a00068_source.html">SILLYFileDataSource.h</a>></code></p> |
55 | <div·class="dynheader"> | 55 | <div·class="dynheader"> |
56 | Inheritance·diagram·for·FileDataSource:</div> | 56 | Inheritance·diagram·for·FileDataSource:</div> |
57 | <div·class="dyncontent"> | 57 | <div·class="dyncontent"> |
58 | <div·class="center"><img·src="a00972.png"·border="0"·usemap="#aFileDataSource_inherit__map"·alt="Inheritance·graph"/></div> | 58 | <div·class="center"><img·src="a00972.png"·border="0"·usemap="#aFileDataSource_inherit__map"·alt="Inheritance·graph"/></div> |
59 | <map·name="aFileDataSource_inherit__map"·id="aFileDataSource_inherit__map"> | 59 | <map·name="aFileDataSource_inherit__map"·id="aFileDataSource_inherit__map"> |
60 | <area·shape="rect"·title="This·class·allow·the·loading·of·an·image·directly·from·a·file."·alt=""·coords="5,79,125,104"/> | 60 | <area·shape="rect"·title="This·class·allow·the·loading·of·an·image·directly·from·a·file."·alt=""·coords="5,79,125,104"/> |
61 | <area·shape="rect"·href="a00969.html"·title="This·is·an·abstract·class·used·to·provide·data·to·the·loader."·alt=""·coords="17,5,114,31"/> | 61 | <area·shape="rect"·href="a00969.html"·title="This·is·an·abstract·class·used·to·provide·data·to·the·loader."·alt=""·coords="17,5,114,31"/> |
Offset 97, 15 lines modified | Offset 97, 15 lines modified | ||
97 | <tr·class="memdesc:a376d8b1791d5ab33e4c2674b9541901d"><td·class="mdescLeft"> </td><td·class="mdescRight">destructor··<br·/></td></tr> | 97 | <tr·class="memdesc:a376d8b1791d5ab33e4c2674b9541901d"><td·class="mdescLeft"> </td><td·class="mdescRight">destructor··<br·/></td></tr> |
98 | <tr·class="separator:a376d8b1791d5ab33e4c2674b9541901d"><td·class="memSeparator"·colspan="2"> </td></tr> | 98 | <tr·class="separator:a376d8b1791d5ab33e4c2674b9541901d"><td·class="memSeparator"·colspan="2"> </td></tr> |
99 | </table> | 99 | </table> |
100 | <a·name="details"·id="details"></a><h2·class="groupheader">Detailed·Description</h2> | 100 | <a·name="details"·id="details"></a><h2·class="groupheader">Detailed·Description</h2> |
101 | <div·class="textblock"><p>This·class·allow·the·loading·of·an·image·directly·from·a·file.·</p> | 101 | <div·class="textblock"><p>This·class·allow·the·loading·of·an·image·directly·from·a·file.·</p> |
102 | <p>This·class·provides·the·services·required·to·load·an·from·a·file.·The·loading·is·done·once·at·initialization.·We·wanted·to·avoid·exception.·This·is·why·user·must·check·whether·the·object·is·valid·or·not·after·creation.·</p> | 102 | <p>This·class·provides·the·services·required·to·load·an·from·a·file.·The·loading·is·done·once·at·initialization.·We·wanted·to·avoid·exception.·This·is·why·user·must·check·whether·the·object·is·valid·or·not·after·creation.·</p> |
103 | <p·class="definition">Definition·at·line·<a·class="el"·href="a000 | 103 | <p·class="definition">Definition·at·line·<a·class="el"·href="a00068_source.html#l00048">48</a>·of·file·<a·class="el"·href="a00068_source.html">SILLYFileDataSource.h</a>.</p> |
104 | </div><h2·class="groupheader">Constructor·&·Destructor·Documentation</h2> | 104 | </div><h2·class="groupheader">Constructor·&·Destructor·Documentation</h2> |
105 | <a·id="a0e751eeffe45217140e97ea89d65b4d7"·name="a0e751eeffe45217140e97ea89d65b4d7"></a> | 105 | <a·id="a0e751eeffe45217140e97ea89d65b4d7"·name="a0e751eeffe45217140e97ea89d65b4d7"></a> |
106 | <h2·class="memtitle"><span·class="permalink"><a·href="#a0e751eeffe45217140e97ea89d65b4d7">◆ </a></span>FileDataSource()</h2> | 106 | <h2·class="memtitle"><span·class="permalink"><a·href="#a0e751eeffe45217140e97ea89d65b4d7">◆ </a></span>FileDataSource()</h2> |
107 | <div·class="memitem"> | 107 | <div·class="memitem"> |
108 | <div·class="memproto"> | 108 | <div·class="memproto"> |
109 | ······<table·class="memname"> | 109 | ······<table·class="memname"> |
Offset 124, 15 lines modified | Offset 124, 15 lines modified | ||
124 | <dl·class="params"><dt>Parameters</dt><dd> | 124 | <dl·class="params"><dt>Parameters</dt><dd> |
125 | ··<table·class="params"> | 125 | ··<table·class="params"> |
126 | ····<tr><td·class="paramname">filename</td><td>the·name·of·the·file·containing·the·data·</td></tr> | 126 | ····<tr><td·class="paramname">filename</td><td>the·name·of·the·file·containing·the·data·</td></tr> |
127 | ··</table> | 127 | ··</table> |
128 | ··</dd> | 128 | ··</dd> |
129 | </dl> | 129 | </dl> |
130 | <p·class="definition">Definition·at·line·<a·class="el"·href="a000 | 130 | <p·class="definition">Definition·at·line·<a·class="el"·href="a00017_source.html#l00046">46</a>·of·file·<a·class="el"·href="a00017_source.html">SILLYFileDataSource.cpp</a>.</p> |
131 | </div> | 131 | </div> |
132 | </div> | 132 | </div> |
133 | <a·id="a376d8b1791d5ab33e4c2674b9541901d"·name="a376d8b1791d5ab33e4c2674b9541901d"></a> | 133 | <a·id="a376d8b1791d5ab33e4c2674b9541901d"·name="a376d8b1791d5ab33e4c2674b9541901d"></a> |
134 | <h2·class="memtitle"><span·class="permalink"><a·href="#a376d8b1791d5ab33e4c2674b9541901d">◆ </a></span>~FileDataSource()</h2> | 134 | <h2·class="memtitle"><span·class="permalink"><a·href="#a376d8b1791d5ab33e4c2674b9541901d">◆ </a></span>~FileDataSource()</h2> |
135 | <div·class="memitem"> | 135 | <div·class="memitem"> |
Offset 145, 15 lines modified | Offset 145, 15 lines modified | ||
145 | ··········<td></td> | 145 | ··········<td></td> |
146 | ········</tr> | 146 | ········</tr> |
147 | ······</table> | 147 | ······</table> |
148 | </div><div·class="memdoc"> | 148 | </div><div·class="memdoc"> |
149 | <p>destructor·</p> | 149 | <p>destructor·</p> |
150 | <p·class="definition">Definition·at·line·<a·class="el"·href="a000 | 150 | <p·class="definition">Definition·at·line·<a·class="el"·href="a00017_source.html#l00086">86</a>·of·file·<a·class="el"·href="a00017_source.html">SILLYFileDataSource.cpp</a>.</p> |
151 | </div> | 151 | </div> |
152 | </div> | 152 | </div> |
153 | <h2·class="groupheader">Member·Function·Documentation</h2> | 153 | <h2·class="groupheader">Member·Function·Documentation</h2> |
154 | <a·id="a363c71a270f739498e576e743cfa0d6e"·name="a363c71a270f739498e576e743cfa0d6e"></a> | 154 | <a·id="a363c71a270f739498e576e743cfa0d6e"·name="a363c71a270f739498e576e743cfa0d6e"></a> |
155 | <h2·class="memtitle"><span·class="permalink"><a·href="#a363c71a270f739498e576e743cfa0d6e">◆ </a></span>getDataPtr()</h2> | 155 | <h2·class="memtitle"><span·class="permalink"><a·href="#a363c71a270f739498e576e743cfa0d6e">◆ </a></span>getDataPtr()</h2> |
Offset 230, 16 lines modified | Offset 230, 16 lines modified | ||
230 | <p>Check·wether·the·loading·is·successfull·or·not.·</p> | 230 | <p>Check·wether·the·loading·is·successfull·or·not.·</p> |
231 | <p>One·must·call·this·function·after·creating·this·object·in·order·to·be·sure·the·loading·was·successfull.</p> | 231 | <p>One·must·call·this·function·after·creating·this·object·in·order·to·be·sure·the·loading·was·successfull.</p> |
232 | <dl·class="section·return"><dt>Returns</dt><dd>true·if·the·loading·is·successfull.·</dd></dl> | 232 | <dl·class="section·return"><dt>Returns</dt><dd>true·if·the·loading·is·successfull.·</dd></dl> |
233 | </div> | 233 | </div> |
234 | </div> | 234 | </div> |
235 | <hr/>The·documentation·for·this·class·was·generated·from·the·following·files:<ul> | 235 | <hr/>The·documentation·for·this·class·was·generated·from·the·following·files:<ul> |
236 | <li>/build/reproducible-path/silly-0.1.0/include/<a·class="el"·href="a000 | 236 | <li>/build/reproducible-path/silly-0.1.0/include/<a·class="el"·href="a00068_source.html">SILLYFileDataSource.h</a></li> |
237 | <li>/build/reproducible-path/silly-0.1.0/src/<a·class="el"·href="a000 | 237 | <li>/build/reproducible-path/silly-0.1.0/src/<a·class="el"·href="a00017_source.html">SILLYFileDataSource.cpp</a></li> |
238 | </ul> | 238 | </ul> |
239 | </div><!--·contents·--> | 239 | </div><!--·contents·--> |
240 | <!--·start·footer·part·--> | 240 | <!--·start·footer·part·--> |
241 | <hr·class="footer"/><address·class="footer"><small> | 241 | <hr·class="footer"/><address·class="footer"><small> |
242 | Generated·by <a·href="https://www.doxygen.org/index.html"><img·class="footer"·src="doxygen.svg"·width="104"·height="31"·alt="doxygen"/></a>·1.9.8 | 242 | Generated·by <a·href="https://www.doxygen.org/index.html"><img·class="footer"·src="doxygen.svg"·width="104"·height="31"·alt="doxygen"/></a>·1.9.8 |
243 | </small></address> | 243 | </small></address> |
244 | </body> | 244 | </body> |
Offset 49, 15 lines modified | Offset 49, 15 lines modified | ||
49 | ··<div·class="headertitle"><div·class="title">Image·Class·Reference</div></div> | 49 | ··<div·class="headertitle"><div·class="title">Image·Class·Reference</div></div> |
50 | </div><!--header--> | 50 | </div><!--header--> |
51 | <div·class="contents"> | 51 | <div·class="contents"> |
52 | <p><a·class="el"·href="a00977.html"·title="Image·is·the·main·user·class·of·the·library.">Image</a>·is·the·main·user·class·of·the·library.·· | 52 | <p><a·class="el"·href="a00977.html"·title="Image·is·the·main·user·class·of·the·library.">Image</a>·is·the·main·user·class·of·the·library.·· |
53 | ·<a·href="a00977.html#details">More...</a></p> | 53 | ·<a·href="a00977.html#details">More...</a></p> |
54 | <p><code>#include·<<a·class="el"·href="a000 | 54 | <p><code>#include·<<a·class="el"·href="a00047_source.html">SILLYImage.h</a>></code></p> |
55 | <table·class="memberdecls"> | 55 | <table·class="memberdecls"> |
56 | <tr·class="heading"><td·colspan="2"><h2·class="groupheader"><a·id="pub-methods"·name="pub-methods"></a> | 56 | <tr·class="heading"><td·colspan="2"><h2·class="groupheader"><a·id="pub-methods"·name="pub-methods"></a> |
57 | Public·Member·Functions</h2></td></tr> | 57 | Public·Member·Functions</h2></td></tr> |
58 | <tr·class="memitem:afdb56064ac644b85442a915c9fdf19f8"·id="r_afdb56064ac644b85442a915c9fdf19f8"><td·class="memItemLeft"·align="right"·valign="top"><a·id="afdb56064ac644b85442a915c9fdf19f8"·name="afdb56064ac644b85442a915c9fdf19f8"></a> | 58 | <tr·class="memitem:afdb56064ac644b85442a915c9fdf19f8"·id="r_afdb56064ac644b85442a915c9fdf19f8"><td·class="memItemLeft"·align="right"·valign="top"><a·id="afdb56064ac644b85442a915c9fdf19f8"·name="afdb56064ac644b85442a915c9fdf19f8"></a> |
59 | size_t </td><td·class="memItemRight"·valign="bottom"><b>getHeight</b>·()·const</td></tr> | 59 | size_t </td><td·class="memItemRight"·valign="bottom"><b>getHeight</b>·()·const</td></tr> |
60 | <tr·class="memdesc:afdb56064ac644b85442a915c9fdf19f8"><td·class="mdescLeft"> </td><td·class="mdescRight">Retrieve·the·height·of·the·image.·<br·/></td></tr> | 60 | <tr·class="memdesc:afdb56064ac644b85442a915c9fdf19f8"><td·class="mdescLeft"> </td><td·class="mdescRight">Retrieve·the·height·of·the·image.·<br·/></td></tr> |
61 | <tr·class="separator:afdb56064ac644b85442a915c9fdf19f8"><td·class="memSeparator"·colspan="2"> </td></tr> | 61 | <tr·class="separator:afdb56064ac644b85442a915c9fdf19f8"><td·class="memSeparator"·colspan="2"> </td></tr> |
Offset 102, 15 lines modified | Offset 102, 15 lines modified | ||
102 |  </td><td·class="memItemRight"·valign="bottom"><b>~Image</b>·()</td></tr> | 102 |  </td><td·class="memItemRight"·valign="bottom"><b>~Image</b>·()</td></tr> |
103 | <tr·class="memdesc:a70dc073ff2e26a6752dee2a6d2b609a8"><td·class="mdescLeft"> </td><td·class="mdescRight">Destructor.·<br·/></td></tr> | 103 | <tr·class="memdesc:a70dc073ff2e26a6752dee2a6d2b609a8"><td·class="mdescLeft"> </td><td·class="mdescRight">Destructor.·<br·/></td></tr> |
104 | <tr·class="separator:a70dc073ff2e26a6752dee2a6d2b609a8"><td·class="memSeparator"·colspan="2"> </td></tr> | 104 | <tr·class="separator:a70dc073ff2e26a6752dee2a6d2b609a8"><td·class="memSeparator"·colspan="2"> </td></tr> |
105 | </table> | 105 | </table> |
106 | <a·name="details"·id="details"></a><h2·class="groupheader">Detailed·Description</h2> | 106 | <a·name="details"·id="details"></a><h2·class="groupheader">Detailed·Description</h2> |
107 | <div·class="textblock"><p><a·class="el"·href="a00977.html"·title="Image·is·the·main·user·class·of·the·library.">Image</a>·is·the·main·user·class·of·the·library.·</p> | 107 | <div·class="textblock"><p><a·class="el"·href="a00977.html"·title="Image·is·the·main·user·class·of·the·library.">Image</a>·is·the·main·user·class·of·the·library.·</p> |
108 | <p·class="definition">Definition·at·line·<a·class="el"·href="a000 | 108 | <p·class="definition">Definition·at·line·<a·class="el"·href="a00047_source.html#l00046">46</a>·of·file·<a·class="el"·href="a00047_source.html">SILLYImage.h</a>.</p> |
109 | </div><h2·class="groupheader">Constructor·&·Destructor·Documentation</h2> | 109 | </div><h2·class="groupheader">Constructor·&·Destructor·Documentation</h2> |
110 | <a·id="a03b8914e2a6b111009001ae06f895236"·name="a03b8914e2a6b111009001ae06f895236"></a> | 110 | <a·id="a03b8914e2a6b111009001ae06f895236"·name="a03b8914e2a6b111009001ae06f895236"></a> |
111 | <h2·class="memtitle"><span·class="permalink"><a·href="#a03b8914e2a6b111009001ae06f895236">◆ </a></span>Image()</h2> | 111 | <h2·class="memtitle"><span·class="permalink"><a·href="#a03b8914e2a6b111009001ae06f895236">◆ </a></span>Image()</h2> |
112 | <div·class="memitem"> | 112 | <div·class="memitem"> |
113 | <div·class="memproto"> | 113 | <div·class="memproto"> |
114 | ······<table·class="memname"> | 114 | ······<table·class="memname"> |
Offset 128, 15 lines modified | Offset 128, 15 lines modified | ||
128 | <dl·class="params"><dt>Parameters</dt><dd> | 128 | <dl·class="params"><dt>Parameters</dt><dd> |
129 | ··<table·class="params"> | 129 | ··<table·class="params"> |
130 | ····<tr><td·class="paramname">data</td><td>the·raw·input·containing·the·image·</td></tr> | 130 | ····<tr><td·class="paramname">data</td><td>the·raw·input·containing·the·image·</td></tr> |
131 | ··</table> | 131 | ··</table> |
132 | ··</dd> | 132 | ··</dd> |
133 | </dl> | 133 | </dl> |
134 | <p·class="definition">Definition·at·line·<a·class="el"·href="a000 | 134 | <p·class="definition">Definition·at·line·<a·class="el"·href="a00014_source.html#l00048">48</a>·of·file·<a·class="el"·href="a00014_source.html">SILLYImage.cpp</a>.</p> |
135 | </div> | 135 | </div> |
136 | </div> | 136 | </div> |
137 | <h2·class="groupheader">Member·Function·Documentation</h2> | 137 | <h2·class="groupheader">Member·Function·Documentation</h2> |
138 | <a·id="a86abdf05f0d3f64a20d1e0ad3ec91c8a"·name="a86abdf05f0d3f64a20d1e0ad3ec91c8a"></a> | 138 | <a·id="a86abdf05f0d3f64a20d1e0ad3ec91c8a"·name="a86abdf05f0d3f64a20d1e0ad3ec91c8a"></a> |
139 | <h2·class="memtitle"><span·class="permalink"><a·href="#a86abdf05f0d3f64a20d1e0ad3ec91c8a">◆ </a></span>loadImageData()</h2> | 139 | <h2·class="memtitle"><span·class="permalink"><a·href="#a86abdf05f0d3f64a20d1e0ad3ec91c8a">◆ </a></span>loadImageData()</h2> |
Offset 170, 15 lines modified | Offset 170, 15 lines modified | ||
170 | ····<tr><td·class="paramname">origin</td><td>expected·origin·position·for·the·pixels</td></tr> | 170 | ····<tr><td·class="paramname">origin</td><td>expected·origin·position·for·the·pixels</td></tr> |
171 | ··</table> | 171 | ··</table> |
172 | ··</dd> | 172 | ··</dd> |
173 | </dl> | 173 | </dl> |
174 | <dl·class="section·return"><dt>Returns</dt><dd>true·on·success·false·if·an·error·occured</dd></dl> | 174 | <dl·class="section·return"><dt>Returns</dt><dd>true·on·success·false·if·an·error·occured</dd></dl> |
175 | <dl·class="section·note"><dt>Note</dt><dd>this·function·can·be·called·several·time·if·the·pixel·format·are·different·the·format·is·reloaded·</dd></dl> | 175 | <dl·class="section·note"><dt>Note</dt><dd>this·function·can·be·called·several·time·if·the·pixel·format·are·different·the·format·is·reloaded·</dd></dl> |
176 | <p·class="definition">Definition·at·line·<a·class="el"·href="a000 | 176 | <p·class="definition">Definition·at·line·<a·class="el"·href="a00014_source.html#l00068">68</a>·of·file·<a·class="el"·href="a00014_source.html">SILLYImage.cpp</a>.</p> |
177 | </div> | 177 | </div> |
178 | </div> | 178 | </div> |
179 | <a·id="a0456197da83edd0e5c746e82642b6be9"·name="a0456197da83edd0e5c746e82642b6be9"></a> | 179 | <a·id="a0456197da83edd0e5c746e82642b6be9"·name="a0456197da83edd0e5c746e82642b6be9"></a> |
180 | <h2·class="memtitle"><span·class="permalink"><a·href="#a0456197da83edd0e5c746e82642b6be9">◆ </a></span>loadImageHeader()</h2> | 180 | <h2·class="memtitle"><span·class="permalink"><a·href="#a0456197da83edd0e5c746e82642b6be9">◆ </a></span>loadImageHeader()</h2> |
181 | <div·class="memitem"> | 181 | <div·class="memitem"> |
Offset 192, 21 lines modified | Offset 192, 21 lines modified | ||
192 | ········</tr> | 192 | ········</tr> |
193 | ······</table> | 193 | ······</table> |
194 | </div><div·class="memdoc"> | 194 | </div><div·class="memdoc"> |
195 | <p>Retrieve·the·information·concerning·the·image·object.·</p> | 195 | <p>Retrieve·the·information·concerning·the·image·object.·</p> |
196 | <dl·class="section·return"><dt>Returns</dt><dd>true·on·success·</dd></dl> | 196 | <dl·class="section·return"><dt>Returns</dt><dd>true·on·success·</dd></dl> |
197 | <p·class="definition">Definition·at·line·<a·class="el"·href="a000 | 197 | <p·class="definition">Definition·at·line·<a·class="el"·href="a00014_source.html#l00054">54</a>·of·file·<a·class="el"·href="a00014_source.html">SILLYImage.cpp</a>.</p> |
198 | </div> | 198 | </div> |
199 | </div> | 199 | </div> |
200 | <hr/>The·documentation·for·this·class·was·generated·from·the·following·files:<ul> | 200 | <hr/>The·documentation·for·this·class·was·generated·from·the·following·files:<ul> |
201 | <li>/build/reproducible-path/silly-0.1.0/include/<a·class="el"·href="a000 | 201 | <li>/build/reproducible-path/silly-0.1.0/include/<a·class="el"·href="a00047_source.html">SILLYImage.h</a></li> |
202 | <li>/build/reproducible-path/silly-0.1.0/src/<a·class="el"·href="a000 | 202 | <li>/build/reproducible-path/silly-0.1.0/src/<a·class="el"·href="a00014_source.html">SILLYImage.cpp</a></li> |
203 | </ul> | 203 | </ul> |
204 | </div><!--·contents·--> | 204 | </div><!--·contents·--> |
205 | <!--·start·footer·part·--> | 205 | <!--·start·footer·part·--> |
206 | <hr·class="footer"/><address·class="footer"><small> | 206 | <hr·class="footer"/><address·class="footer"><small> |
207 | Generated·by <a·href="https://www.doxygen.org/index.html"><img·class="footer"·src="doxygen.svg"·width="104"·height="31"·alt="doxygen"/></a>·1.9.8 | 207 | Generated·by <a·href="https://www.doxygen.org/index.html"><img·class="footer"·src="doxygen.svg"·width="104"·height="31"·alt="doxygen"/></a>·1.9.8 |
208 | </small></address> | 208 | </small></address> |
209 | </body> | 209 | </body> |
Offset 50, 15 lines modified | Offset 50, 15 lines modified | ||
50 | ··<div·class="headertitle"><div·class="title">ImageContext·Class·Reference</div></div> | 50 | ··<div·class="headertitle"><div·class="title">ImageContext·Class·Reference</div></div> |
51 | </div><!--header--> | 51 | </div><!--header--> |
52 | <div·class="contents"> | 52 | <div·class="contents"> |
53 | <p>Store·the·data·needed·by·an·<a·class="el"·href="a00985.html"·title="This·is·an·abstract·class·that·define·the·interface·of·all·image·loader.">ImageLoader</a>·object·during·the·parsing·of·an·image.·· | 53 | <p>Store·the·data·needed·by·an·<a·class="el"·href="a00985.html"·title="This·is·an·abstract·class·that·define·the·interface·of·all·image·loader.">ImageLoader</a>·object·during·the·parsing·of·an·image.·· |
54 | ·<a·href="a00981.html#details">More...</a></p> | 54 | ·<a·href="a00981.html#details">More...</a></p> |
55 | <p><code>#include·<<a·class="el"·href="a000 | 55 | <p><code>#include·<<a·class="el"·href="a00074_source.html">SILLYImageContext.h</a>></code></p> |
56 | <div·class="dynheader"> | 56 | <div·class="dynheader"> |
57 | Inheritance·diagram·for·ImageContext:</div> | 57 | Inheritance·diagram·for·ImageContext:</div> |
58 | <div·class="dyncontent"> | 58 | <div·class="dyncontent"> |
59 | <div·class="center"><img·src="a00980.png"·border="0"·usemap="#aImageContext_inherit__map"·alt="Inheritance·graph"/></div> | 59 | <div·class="center"><img·src="a00980.png"·border="0"·usemap="#aImageContext_inherit__map"·alt="Inheritance·graph"/></div> |
60 | <map·name="aImageContext_inherit__map"·id="aImageContext_inherit__map"> | 60 | <map·name="aImageContext_inherit__map"·id="aImageContext_inherit__map"> |
61 | <area·shape="rect"·title="Store·the·data·needed·by·an·ImageLoader·object·during·the·parsing·of·an·image."·alt=""·coords="179,5,293,31"/> | 61 | <area·shape="rect"·title="Store·the·data·needed·by·an·ImageLoader·object·during·the·parsing·of·an·image."·alt=""·coords="179,5,293,31"/> |
62 | <area·shape="rect"·href="a00945.html"·title="Image·Context·for·JPG·image·loader."·alt=""·coords="5,79,141,104"/> | 62 | <area·shape="rect"·href="a00945.html"·title="Image·Context·for·JPG·image·loader."·alt=""·coords="5,79,141,104"/> |
Offset 108, 15 lines modified | Offset 108, 15 lines modified | ||
108 | <tr·class="memitem:a45d88d901fa542ecdb85a154f1221f90"·id="r_a45d88d901fa542ecdb85a154f1221f90"><td·class="memItemLeft"·align="right"·valign="top"><a·id="a45d88d901fa542ecdb85a154f1221f90"·name="a45d88d901fa542ecdb85a154f1221f90"></a> | 108 | <tr·class="memitem:a45d88d901fa542ecdb85a154f1221f90"·id="r_a45d88d901fa542ecdb85a154f1221f90"><td·class="memItemLeft"·align="right"·valign="top"><a·id="a45d88d901fa542ecdb85a154f1221f90"·name="a45d88d901fa542ecdb85a154f1221f90"></a> |
109 | void </td><td·class="memItemRight"·valign="bottom"><b>setWidth</b>·(size_t·width)</td></tr> | 109 | void </td><td·class="memItemRight"·valign="bottom"><b>setWidth</b>·(size_t·width)</td></tr> |
110 | <tr·class="separator:a45d88d901fa542ecdb85a154f1221f90"><td·class="memSeparator"·colspan="2"> </td></tr> | 110 | <tr·class="separator:a45d88d901fa542ecdb85a154f1221f90"><td·class="memSeparator"·colspan="2"> </td></tr> |
111 | </table> | 111 | </table> |
112 | <a·name="details"·id="details"></a><h2·class="groupheader">Detailed·Description</h2> | 112 | <a·name="details"·id="details"></a><h2·class="groupheader">Detailed·Description</h2> |
113 | <div·class="textblock"><p>Store·the·data·needed·by·an·<a·class="el"·href="a00985.html"·title="This·is·an·abstract·class·that·define·the·interface·of·all·image·loader.">ImageLoader</a>·object·during·the·parsing·of·an·image.·</p> | 113 | <div·class="textblock"><p>Store·the·data·needed·by·an·<a·class="el"·href="a00985.html"·title="This·is·an·abstract·class·that·define·the·interface·of·all·image·loader.">ImageLoader</a>·object·during·the·parsing·of·an·image.·</p> |
114 | <p·class="definition">Definition·at·line·<a·class="el"·href="a000 | 114 | <p·class="definition">Definition·at·line·<a·class="el"·href="a00074_source.html#l00043">43</a>·of·file·<a·class="el"·href="a00074_source.html">SILLYImageContext.h</a>.</p> |
115 | </div><h2·class="groupheader">Constructor·&·Destructor·Documentation</h2> | 115 | </div><h2·class="groupheader">Constructor·&·Destructor·Documentation</h2> |
116 | <a·id="a65eda98c8a4f75b1d92a9edc8db86313"·name="a65eda98c8a4f75b1d92a9edc8db86313"></a> | 116 | <a·id="a65eda98c8a4f75b1d92a9edc8db86313"·name="a65eda98c8a4f75b1d92a9edc8db86313"></a> |
117 | <h2·class="memtitle"><span·class="permalink"><a·href="#a65eda98c8a4f75b1d92a9edc8db86313">◆ </a></span>ImageContext()</h2> | 117 | <h2·class="memtitle"><span·class="permalink"><a·href="#a65eda98c8a4f75b1d92a9edc8db86313">◆ </a></span>ImageContext()</h2> |
118 | <div·class="memitem"> | 118 | <div·class="memitem"> |
119 | <div·class="memproto"> | 119 | <div·class="memproto"> |
120 | <table·class="mlabels"> | 120 | <table·class="mlabels"> |
Offset 174, 21 lines modified | Offset 174, 21 lines modified | ||
174 | ········</tr> | 174 | ········</tr> |
175 | ······</table> | 175 | ······</table> |
176 | </div><div·class="memdoc"> | 176 | </div><div·class="memdoc"> |
177 | <p>Flip·pixel·ordering.·</p> | 177 | <p>Flip·pixel·ordering.·</p> |
178 | <dl·class="section·return"><dt>Returns</dt><dd>true·on·success·false·otherwise·</dd></dl> | 178 | <dl·class="section·return"><dt>Returns</dt><dd>true·on·success·false·otherwise·</dd></dl> |
179 | <p·class="definition">Definition·at·line·<a·class="el"·href="a000 | 179 | <p·class="definition">Definition·at·line·<a·class="el"·href="a00038_source.html#l00045">45</a>·of·file·<a·class="el"·href="a00038_source.html">SILLYImageContext.cpp</a>.</p> |
180 | </div> | 180 | </div> |
181 | </div> | 181 | </div> |
182 | <hr/>The·documentation·for·this·class·was·generated·from·the·following·files:<ul> | 182 | <hr/>The·documentation·for·this·class·was·generated·from·the·following·files:<ul> |
183 | <li>/build/reproducible-path/silly-0.1.0/include/<a·class="el"·href="a000 | 183 | <li>/build/reproducible-path/silly-0.1.0/include/<a·class="el"·href="a00074_source.html">SILLYImageContext.h</a></li> |
184 | <li>/build/reproducible-path/silly-0.1.0/src/<a·class="el"·href="a000 | 184 | <li>/build/reproducible-path/silly-0.1.0/src/<a·class="el"·href="a00038_source.html">SILLYImageContext.cpp</a></li> |
185 | </ul> | 185 | </ul> |
186 | </div><!--·contents·--> | 186 | </div><!--·contents·--> |
187 | <!--·start·footer·part·--> | 187 | <!--·start·footer·part·--> |
188 | <hr·class="footer"/><address·class="footer"><small> | 188 | <hr·class="footer"/><address·class="footer"><small> |
189 | Generated·by <a·href="https://www.doxygen.org/index.html"><img·class="footer"·src="doxygen.svg"·width="104"·height="31"·alt="doxygen"/></a>·1.9.8 | 189 | Generated·by <a·href="https://www.doxygen.org/index.html"><img·class="footer"·src="doxygen.svg"·width="104"·height="31"·alt="doxygen"/></a>·1.9.8 |
190 | </small></address> | 190 | </small></address> |
191 | </body> | 191 | </body> |
Offset 50, 15 lines modified | Offset 50, 15 lines modified | ||
50 | ··<div·class="headertitle"><div·class="title">ImageLoader·Class·Reference<span·class="mlabels"><span·class="mlabel">abstract</span></span></div></div> | 50 | ··<div·class="headertitle"><div·class="title">ImageLoader·Class·Reference<span·class="mlabels"><span·class="mlabel">abstract</span></span></div></div> |
51 | </div><!--header--> | 51 | </div><!--header--> |
52 | <div·class="contents"> | 52 | <div·class="contents"> |
53 | <p>This·is·an·abstract·class·that·define·the·interface·of·all·image·loader.·· | 53 | <p>This·is·an·abstract·class·that·define·the·interface·of·all·image·loader.·· |
54 | ·<a·href="a00985.html#details">More...</a></p> | 54 | ·<a·href="a00985.html#details">More...</a></p> |
55 | <p><code>#include·<<a·class="el"·href="a000 | 55 | <p><code>#include·<<a·class="el"·href="a00071_source.html">SILLYImageLoader.h</a>></code></p> |
56 | <div·class="dynheader"> | 56 | <div·class="dynheader"> |
57 | Inheritance·diagram·for·ImageLoader:</div> | 57 | Inheritance·diagram·for·ImageLoader:</div> |
58 | <div·class="dyncontent"> | 58 | <div·class="dyncontent"> |
59 | <div·class="center"><img·src="a00984.png"·border="0"·usemap="#aImageLoader_inherit__map"·alt="Inheritance·graph"/></div> | 59 | <div·class="center"><img·src="a00984.png"·border="0"·usemap="#aImageLoader_inherit__map"·alt="Inheritance·graph"/></div> |
60 | <map·name="aImageLoader_inherit__map"·id="aImageLoader_inherit__map"> | 60 | <map·name="aImageLoader_inherit__map"·id="aImageLoader_inherit__map"> |
61 | <area·shape="rect"·title="This·is·an·abstract·class·that·define·the·interface·of·all·image·loader."·alt=""·coords="173,5,279,31"/> | 61 | <area·shape="rect"·title="This·is·an·abstract·class·that·define·the·interface·of·all·image·loader."·alt=""·coords="173,5,279,31"/> |
62 | <area·shape="rect"·href="a00949.html"·title="Loader·class·for·JPG·Image."·alt=""·coords="5,79,135,104"/> | 62 | <area·shape="rect"·href="a00949.html"·title="Loader·class·for·JPG·Image."·alt=""·coords="5,79,135,104"/> |
Offset 97, 15 lines modified | Offset 97, 15 lines modified | ||
97 | <tr·class="memdesc:a103c77f27d983ad297f1fa541bcef8fe"><td·class="mdescLeft"> </td><td·class="mdescRight">Constructor.·<br·/></td></tr> | 97 | <tr·class="memdesc:a103c77f27d983ad297f1fa541bcef8fe"><td·class="mdescLeft"> </td><td·class="mdescRight">Constructor.·<br·/></td></tr> |
98 | <tr·class="separator:a103c77f27d983ad297f1fa541bcef8fe"><td·class="memSeparator"·colspan="2"> </td></tr> | 98 | <tr·class="separator:a103c77f27d983ad297f1fa541bcef8fe"><td·class="memSeparator"·colspan="2"> </td></tr> |
99 | </table> | 99 | </table> |
100 | <a·name="details"·id="details"></a><h2·class="groupheader">Detailed·Description</h2> | 100 | <a·name="details"·id="details"></a><h2·class="groupheader">Detailed·Description</h2> |
101 | <div·class="textblock"><p>This·is·an·abstract·class·that·define·the·interface·of·all·image·loader.·</p> | 101 | <div·class="textblock"><p>This·is·an·abstract·class·that·define·the·interface·of·all·image·loader.·</p> |
102 | <p>In·order·to·add·support·for·new·image·format·one·have·to·inherits·this·class·and·implement·all·required·function.·</p> | 102 | <p>In·order·to·add·support·for·new·image·format·one·have·to·inherits·this·class·and·implement·all·required·function.·</p> |
103 | <p·class="definition">Definition·at·line·<a·class="el"·href="a000 | 103 | <p·class="definition">Definition·at·line·<a·class="el"·href="a00071_source.html#l00046">46</a>·of·file·<a·class="el"·href="a00071_source.html">SILLYImageLoader.h</a>.</p> |
104 | </div><h2·class="groupheader">Member·Function·Documentation</h2> | 104 | </div><h2·class="groupheader">Member·Function·Documentation</h2> |
105 | <a·id="a439f9065fd9a935d7f53b30b2242e924"·name="a439f9065fd9a935d7f53b30b2242e924"></a> | 105 | <a·id="a439f9065fd9a935d7f53b30b2242e924"·name="a439f9065fd9a935d7f53b30b2242e924"></a> |
106 | <h2·class="memtitle"><span·class="permalink"><a·href="#a439f9065fd9a935d7f53b30b2242e924">◆ </a></span>destroyContext()</h2> | 106 | <h2·class="memtitle"><span·class="permalink"><a·href="#a439f9065fd9a935d7f53b30b2242e924">◆ </a></span>destroyContext()</h2> |
107 | <div·class="memitem"> | 107 | <div·class="memitem"> |
108 | <div·class="memproto"> | 108 | <div·class="memproto"> |
109 | ······<table·class="memname"> | 109 | ······<table·class="memname"> |
Offset 123, 15 lines modified | Offset 123, 15 lines modified | ||
123 | <dl·class="params"><dt>Parameters</dt><dd> | 123 | <dl·class="params"><dt>Parameters</dt><dd> |
124 | ··<table·class="params"> | 124 | ··<table·class="params"> |
125 | ····<tr><td·class="paramname">context</td><td>a·pointer·to·the·context·</td></tr> | 125 | ····<tr><td·class="paramname">context</td><td>a·pointer·to·the·context·</td></tr> |
126 | ··</table> | 126 | ··</table> |
127 | ··</dd> | 127 | ··</dd> |
128 | </dl> | 128 | </dl> |
129 | <p·class="definition">Definition·at·line·<a·class="el"·href="a000 | 129 | <p·class="definition">Definition·at·line·<a·class="el"·href="a00008_source.html#l00047">47</a>·of·file·<a·class="el"·href="a00008_source.html">SILLYImageLoader.cpp</a>.</p> |
130 | </div> | 130 | </div> |
131 | </div> | 131 | </div> |
132 | <a·id="a4a6a3a51641cbbb3184ab00d9de6f753"·name="a4a6a3a51641cbbb3184ab00d9de6f753"></a> | 132 | <a·id="a4a6a3a51641cbbb3184ab00d9de6f753"·name="a4a6a3a51641cbbb3184ab00d9de6f753"></a> |
133 | <h2·class="memtitle"><span·class="permalink"><a·href="#a4a6a3a51641cbbb3184ab00d9de6f753">◆ </a></span>loadHeader()</h2> | 133 | <h2·class="memtitle"><span·class="permalink"><a·href="#a4a6a3a51641cbbb3184ab00d9de6f753">◆ </a></span>loadHeader()</h2> |
134 | <div·class="memitem"> | 134 | <div·class="memitem"> |
Offset 231, 16 lines modified | Offset 231, 16 lines modified | ||
231 | <dl·class="section·return"><dt>Returns</dt><dd>true·on·success·false·on·error·</dd></dl> | 231 | <dl·class="section·return"><dt>Returns</dt><dd>true·on·success·false·on·error·</dd></dl> |
232 | <p>Implemented·in·<a·class="el"·href="a00949.html#a4a4d6df5dcc08cb493855fcfc1956fca">JPGImageLoader</a>,·<a·class="el"·href="a00957.html#a4a4d6df5dcc08cb493855fcfc1956fca">PNGImageLoader</a>,·and·<a·class="el"·href="a00965.html#a4a4d6df5dcc08cb493855fcfc1956fca">TGAImageLoader</a>.</p> | 232 | <p>Implemented·in·<a·class="el"·href="a00949.html#a4a4d6df5dcc08cb493855fcfc1956fca">JPGImageLoader</a>,·<a·class="el"·href="a00957.html#a4a4d6df5dcc08cb493855fcfc1956fca">PNGImageLoader</a>,·and·<a·class="el"·href="a00965.html#a4a4d6df5dcc08cb493855fcfc1956fca">TGAImageLoader</a>.</p> |
233 | </div> | 233 | </div> |
234 | </div> | 234 | </div> |
235 | <hr/>The·documentation·for·this·class·was·generated·from·the·following·files:<ul> | 235 | <hr/>The·documentation·for·this·class·was·generated·from·the·following·files:<ul> |
236 | <li>/build/reproducible-path/silly-0.1.0/include/<a·class="el"·href="a000 | 236 | <li>/build/reproducible-path/silly-0.1.0/include/<a·class="el"·href="a00071_source.html">SILLYImageLoader.h</a></li> |
237 | <li>/build/reproducible-path/silly-0.1.0/src/<a·class="el"·href="a000 | 237 | <li>/build/reproducible-path/silly-0.1.0/src/<a·class="el"·href="a00008_source.html">SILLYImageLoader.cpp</a></li> |
238 | </ul> | 238 | </ul> |
239 | </div><!--·contents·--> | 239 | </div><!--·contents·--> |
240 | <!--·start·footer·part·--> | 240 | <!--·start·footer·part·--> |
241 | <hr·class="footer"/><address·class="footer"><small> | 241 | <hr·class="footer"/><address·class="footer"><small> |
242 | Generated·by <a·href="https://www.doxygen.org/index.html"><img·class="footer"·src="doxygen.svg"·width="104"·height="31"·alt="doxygen"/></a>·1.9.8 | 242 | Generated·by <a·href="https://www.doxygen.org/index.html"><img·class="footer"·src="doxygen.svg"·width="104"·height="31"·alt="doxygen"/></a>·1.9.8 |
243 | </small></address> | 243 | </small></address> |
244 | </body> | 244 | </body> |
Offset 50, 15 lines modified | Offset 50, 15 lines modified | ||
50 | ··<div·class="headertitle"><div·class="title">ImageLoaderManager·Class·Reference</div></div> | 50 | ··<div·class="headertitle"><div·class="title">ImageLoaderManager·Class·Reference</div></div> |
51 | </div><!--header--> | 51 | </div><!--header--> |
52 | <div·class="contents"> | 52 | <div·class="contents"> |
53 | <p>Manage·the·list·of·all·supported·<a·class="el"·href="a00985.html"·title="This·is·an·abstract·class·that·define·the·interface·of·all·image·loader.">ImageLoader</a>.·· | 53 | <p>Manage·the·list·of·all·supported·<a·class="el"·href="a00985.html"·title="This·is·an·abstract·class·that·define·the·interface·of·all·image·loader.">ImageLoader</a>.·· |
54 | ·<a·href="a00989.html#details">More...</a></p> | 54 | ·<a·href="a00989.html#details">More...</a></p> |
55 | <p><code>#include·<<a·class="el"·href="a00 | 55 | <p><code>#include·<<a·class="el"·href="a00089_source.html">SILLYImageLoaderManager.h</a>></code></p> |
56 | <table·class="memberdecls"> | 56 | <table·class="memberdecls"> |
57 | <tr·class="heading"><td·colspan="2"><h2·class="groupheader"><a·id="pub-methods"·name="pub-methods"></a> | 57 | <tr·class="heading"><td·colspan="2"><h2·class="groupheader"><a·id="pub-methods"·name="pub-methods"></a> |
58 | Public·Member·Functions</h2></td></tr> | 58 | Public·Member·Functions</h2></td></tr> |
59 | <tr·class="memitem:a38aa5b3d86db46f24cd330bda6d0b696"·id="r_a38aa5b3d86db46f24cd330bda6d0b696"><td·class="memItemLeft"·align="right"·valign="top">void </td><td·class="memItemRight"·valign="bottom"><a·class="el"·href="a00989.html#a38aa5b3d86db46f24cd330bda6d0b696">add</a>·(<a·class="el"·href="a00985.html">ImageLoader</a>·*loader)</td></tr> | 59 | <tr·class="memitem:a38aa5b3d86db46f24cd330bda6d0b696"·id="r_a38aa5b3d86db46f24cd330bda6d0b696"><td·class="memItemLeft"·align="right"·valign="top">void </td><td·class="memItemRight"·valign="bottom"><a·class="el"·href="a00989.html#a38aa5b3d86db46f24cd330bda6d0b696">add</a>·(<a·class="el"·href="a00985.html">ImageLoader</a>·*loader)</td></tr> |
60 | <tr·class="memdesc:a38aa5b3d86db46f24cd330bda6d0b696"><td·class="mdescLeft"> </td><td·class="mdescRight">Register·an·<a·class="el"·href="a00985.html"·title="This·is·an·abstract·class·that·define·the·interface·of·all·image·loader.">ImageLoader</a>·object.··<br·/></td></tr> | 60 | <tr·class="memdesc:a38aa5b3d86db46f24cd330bda6d0b696"><td·class="mdescLeft"> </td><td·class="mdescRight">Register·an·<a·class="el"·href="a00985.html"·title="This·is·an·abstract·class·that·define·the·interface·of·all·image·loader.">ImageLoader</a>·object.··<br·/></td></tr> |
61 | <tr·class="separator:a38aa5b3d86db46f24cd330bda6d0b696"><td·class="memSeparator"·colspan="2"> </td></tr> | 61 | <tr·class="separator:a38aa5b3d86db46f24cd330bda6d0b696"><td·class="memSeparator"·colspan="2"> </td></tr> |
62 | <tr·class="memitem:ae2e05642dfe82aad71558d37a9377e6e"·id="r_ae2e05642dfe82aad71558d37a9377e6e"><td·class="memItemLeft"·align="right"·valign="top"><a·id="ae2e05642dfe82aad71558d37a9377e6e"·name="ae2e05642dfe82aad71558d37a9377e6e"></a> | 62 | <tr·class="memitem:ae2e05642dfe82aad71558d37a9377e6e"·id="r_ae2e05642dfe82aad71558d37a9377e6e"><td·class="memItemLeft"·align="right"·valign="top"><a·id="ae2e05642dfe82aad71558d37a9377e6e"·name="ae2e05642dfe82aad71558d37a9377e6e"></a> |
Offset 84, 15 lines modified | Offset 84, 15 lines modified | ||
84 | <tr·class="memitem:a8e5272375e4bbf8acb1c8d1741246517"·id="r_a8e5272375e4bbf8acb1c8d1741246517"><td·class="memItemLeft"·align="right"·valign="top"><a·id="a8e5272375e4bbf8acb1c8d1741246517"·name="a8e5272375e4bbf8acb1c8d1741246517"></a> | 84 | <tr·class="memitem:a8e5272375e4bbf8acb1c8d1741246517"·id="r_a8e5272375e4bbf8acb1c8d1741246517"><td·class="memItemLeft"·align="right"·valign="top"><a·id="a8e5272375e4bbf8acb1c8d1741246517"·name="a8e5272375e4bbf8acb1c8d1741246517"></a> |
85 | static·<a·class="el"·href="a00989.html">ImageLoaderManager</a>·* </td><td·class="memItemRight"·valign="bottom"><b>getSingletonPtr</b>·()</td></tr> | 85 | static·<a·class="el"·href="a00989.html">ImageLoaderManager</a>·* </td><td·class="memItemRight"·valign="bottom"><b>getSingletonPtr</b>·()</td></tr> |
86 | <tr·class="separator:a8e5272375e4bbf8acb1c8d1741246517"><td·class="memSeparator"·colspan="2"> </td></tr> | 86 | <tr·class="separator:a8e5272375e4bbf8acb1c8d1741246517"><td·class="memSeparator"·colspan="2"> </td></tr> |
87 | </table> | 87 | </table> |
88 | <a·name="details"·id="details"></a><h2·class="groupheader">Detailed·Description</h2> | 88 | <a·name="details"·id="details"></a><h2·class="groupheader">Detailed·Description</h2> |
89 | <div·class="textblock"><p>Manage·the·list·of·all·supported·<a·class="el"·href="a00985.html"·title="This·is·an·abstract·class·that·define·the·interface·of·all·image·loader.">ImageLoader</a>.·</p> | 89 | <div·class="textblock"><p>Manage·the·list·of·all·supported·<a·class="el"·href="a00985.html"·title="This·is·an·abstract·class·that·define·the·interface·of·all·image·loader.">ImageLoader</a>.·</p> |
90 | <p·class="definition">Definition·at·line·<a·class="el"·href="a00 | 90 | <p·class="definition">Definition·at·line·<a·class="el"·href="a00089_source.html#l00056">56</a>·of·file·<a·class="el"·href="a00089_source.html">SILLYImageLoaderManager.h</a>.</p> |
91 | </div><h2·class="groupheader">Constructor·&·Destructor·Documentation</h2> | 91 | </div><h2·class="groupheader">Constructor·&·Destructor·Documentation</h2> |
92 | <a·id="a3f46e55dada1357eddf5f0711b1cedd7"·name="a3f46e55dada1357eddf5f0711b1cedd7"></a> | 92 | <a·id="a3f46e55dada1357eddf5f0711b1cedd7"·name="a3f46e55dada1357eddf5f0711b1cedd7"></a> |
93 | <h2·class="memtitle"><span·class="permalink"><a·href="#a3f46e55dada1357eddf5f0711b1cedd7">◆ </a></span>ImageLoaderManager()</h2> | 93 | <h2·class="memtitle"><span·class="permalink"><a·href="#a3f46e55dada1357eddf5f0711b1cedd7">◆ </a></span>ImageLoaderManager()</h2> |
94 | <div·class="memitem"> | 94 | <div·class="memitem"> |
95 | <div·class="memproto"> | 95 | <div·class="memproto"> |
96 | ······<table·class="memname"> | 96 | ······<table·class="memname"> |
Offset 103, 15 lines modified | Offset 103, 15 lines modified | ||
103 | ··········<td></td> | 103 | ··········<td></td> |
104 | ········</tr> | 104 | ········</tr> |
105 | ······</table> | 105 | ······</table> |
106 | </div><div·class="memdoc"> | 106 | </div><div·class="memdoc"> |
107 | <p>Constructor.·</p> | 107 | <p>Constructor.·</p> |
108 | <p·class="definition">Definition·at·line·<a·class="el"·href="a0001 | 108 | <p·class="definition">Definition·at·line·<a·class="el"·href="a00011_source.html#l00062">62</a>·of·file·<a·class="el"·href="a00011_source.html">SILLYImageLoaderManager.cpp</a>.</p> |
109 | </div> | 109 | </div> |
110 | </div> | 110 | </div> |
111 | <a·id="a299773628984ffbc492d5e7c3b2356ba"·name="a299773628984ffbc492d5e7c3b2356ba"></a> | 111 | <a·id="a299773628984ffbc492d5e7c3b2356ba"·name="a299773628984ffbc492d5e7c3b2356ba"></a> |
112 | <h2·class="memtitle"><span·class="permalink"><a·href="#a299773628984ffbc492d5e7c3b2356ba">◆ </a></span>~ImageLoaderManager()</h2> | 112 | <h2·class="memtitle"><span·class="permalink"><a·href="#a299773628984ffbc492d5e7c3b2356ba">◆ </a></span>~ImageLoaderManager()</h2> |
113 | <div·class="memitem"> | 113 | <div·class="memitem"> |
Offset 124, 15 lines modified | Offset 124, 15 lines modified | ||
124 | ··········<td></td> | 124 | ··········<td></td> |
125 | ········</tr> | 125 | ········</tr> |
126 | ······</table> | 126 | ······</table> |
127 | </div><div·class="memdoc"> | 127 | </div><div·class="memdoc"> |
128 | <p>Destructor.·</p> | 128 | <p>Destructor.·</p> |
129 | <p·class="definition">Definition·at·line·<a·class="el"·href="a0001 | 129 | <p·class="definition">Definition·at·line·<a·class="el"·href="a00011_source.html#l00077">77</a>·of·file·<a·class="el"·href="a00011_source.html">SILLYImageLoaderManager.cpp</a>.</p> |
130 | </div> | 130 | </div> |
131 | </div> | 131 | </div> |
132 | <h2·class="groupheader">Member·Function·Documentation</h2> | 132 | <h2·class="groupheader">Member·Function·Documentation</h2> |
133 | <a·id="a38aa5b3d86db46f24cd330bda6d0b696"·name="a38aa5b3d86db46f24cd330bda6d0b696"></a> | 133 | <a·id="a38aa5b3d86db46f24cd330bda6d0b696"·name="a38aa5b3d86db46f24cd330bda6d0b696"></a> |
134 | <h2·class="memtitle"><span·class="permalink"><a·href="#a38aa5b3d86db46f24cd330bda6d0b696">◆ </a></span>add()</h2> | 134 | <h2·class="memtitle"><span·class="permalink"><a·href="#a38aa5b3d86db46f24cd330bda6d0b696">◆ </a></span>add()</h2> |
Offset 156, 16 lines modified | Offset 156, 16 lines modified | ||
156 | ··</table> | 156 | ··</table> |
157 | ··</dd> | 157 | ··</dd> |
158 | </dl> | 158 | </dl> |
159 | </div> | 159 | </div> |
160 | </div> | 160 | </div> |
161 | <hr/>The·documentation·for·this·class·was·generated·from·the·following·files:<ul> | 161 | <hr/>The·documentation·for·this·class·was·generated·from·the·following·files:<ul> |
162 | <li>/build/reproducible-path/silly-0.1.0/include/<a·class="el"·href="a00 | 162 | <li>/build/reproducible-path/silly-0.1.0/include/<a·class="el"·href="a00089_source.html">SILLYImageLoaderManager.h</a></li> |
163 | <li>/build/reproducible-path/silly-0.1.0/src/<a·class="el"·href="a0001 | 163 | <li>/build/reproducible-path/silly-0.1.0/src/<a·class="el"·href="a00011_source.html">SILLYImageLoaderManager.cpp</a></li> |
164 | </ul> | 164 | </ul> |
165 | </div><!--·contents·--> | 165 | </div><!--·contents·--> |
166 | <!--·start·footer·part·--> | 166 | <!--·start·footer·part·--> |
167 | <hr·class="footer"/><address·class="footer"><small> | 167 | <hr·class="footer"/><address·class="footer"><small> |
168 | Generated·by <a·href="https://www.doxygen.org/index.html"><img·class="footer"·src="doxygen.svg"·width="104"·height="31"·alt="doxygen"/></a>·1.9.8 | 168 | Generated·by <a·href="https://www.doxygen.org/index.html"><img·class="footer"·src="doxygen.svg"·width="104"·height="31"·alt="doxygen"/></a>·1.9.8 |
169 | </small></address> | 169 | </small></address> |
170 | </body> | 170 | </body> |
Offset 49, 15 lines modified | Offset 49, 15 lines modified | ||
49 | ··<div·class="headertitle"><div·class="title">MemoryDataSource·Class·Reference</div></div> | 49 | ··<div·class="headertitle"><div·class="title">MemoryDataSource·Class·Reference</div></div> |
50 | </div><!--header--> | 50 | </div><!--header--> |
51 | <div·class="contents"> | 51 | <div·class="contents"> |
52 | <p>Load·an·image·from·a·memory·area.·· | 52 | <p>Load·an·image·from·a·memory·area.·· |
53 | ·<a·href="a00993.html#details">More...</a></p> | 53 | ·<a·href="a00993.html#details">More...</a></p> |
54 | <p><code>#include·<<a·class="el"·href="a00 | 54 | <p><code>#include·<<a·class="el"·href="a00086_source.html">SILLYMemoryDataSource.h</a>></code></p> |
55 | <div·class="dynheader"> | 55 | <div·class="dynheader"> |
56 | Inheritance·diagram·for·MemoryDataSource:</div> | 56 | Inheritance·diagram·for·MemoryDataSource:</div> |
57 | <div·class="dyncontent"> | 57 | <div·class="dyncontent"> |
58 | <div·class="center"><img·src="a00992.png"·border="0"·usemap="#aMemoryDataSource_inherit__map"·alt="Inheritance·graph"/></div> | 58 | <div·class="center"><img·src="a00992.png"·border="0"·usemap="#aMemoryDataSource_inherit__map"·alt="Inheritance·graph"/></div> |
59 | <map·name="aMemoryDataSource_inherit__map"·id="aMemoryDataSource_inherit__map"> | 59 | <map·name="aMemoryDataSource_inherit__map"·id="aMemoryDataSource_inherit__map"> |
60 | <area·shape="rect"·title="Load·an·image·from·a·memory·area."·alt=""·coords="5,79,156,104"/> | 60 | <area·shape="rect"·title="Load·an·image·from·a·memory·area."·alt=""·coords="5,79,156,104"/> |
61 | <area·shape="rect"·href="a00969.html"·title="This·is·an·abstract·class·used·to·provide·data·to·the·loader."·alt=""·coords="32,5,129,31"/> | 61 | <area·shape="rect"·href="a00969.html"·title="This·is·an·abstract·class·used·to·provide·data·to·the·loader."·alt=""·coords="32,5,129,31"/> |
Offset 91, 15 lines modified | Offset 91, 15 lines modified | ||
91 | <tr·class="memdesc:a247628cbb1ca21f3a3d427b6350fe696"><td·class="mdescLeft"> </td><td·class="mdescRight">Retieve·the·byte·at·<em>offset</em>.·<br·/></td></tr> | 91 | <tr·class="memdesc:a247628cbb1ca21f3a3d427b6350fe696"><td·class="mdescLeft"> </td><td·class="mdescRight">Retieve·the·byte·at·<em>offset</em>.·<br·/></td></tr> |
92 | <tr·class="separator:a247628cbb1ca21f3a3d427b6350fe696"><td·class="memSeparator"·colspan="2"> </td></tr> | 92 | <tr·class="separator:a247628cbb1ca21f3a3d427b6350fe696"><td·class="memSeparator"·colspan="2"> </td></tr> |
93 | </table> | 93 | </table> |
94 | <a·name="details"·id="details"></a><h2·class="groupheader">Detailed·Description</h2> | 94 | <a·name="details"·id="details"></a><h2·class="groupheader">Detailed·Description</h2> |
95 | <div·class="textblock"><p>Load·an·image·from·a·memory·area.·</p> | 95 | <div·class="textblock"><p>Load·an·image·from·a·memory·area.·</p> |
96 | <p>This·class·provides·the·services·required·to·load·an·image·from·a·byte·array.·The·object·does·not·change·the·memory·area·and·does·no·take·owner·chip·of·the·data.·</p> | 96 | <p>This·class·provides·the·services·required·to·load·an·image·from·a·byte·array.·The·object·does·not·change·the·memory·area·and·does·no·take·owner·chip·of·the·data.·</p> |
97 | <p·class="definition">Definition·at·line·<a·class="el"·href="a00 | 97 | <p·class="definition">Definition·at·line·<a·class="el"·href="a00086_source.html#l00048">48</a>·of·file·<a·class="el"·href="a00086_source.html">SILLYMemoryDataSource.h</a>.</p> |
98 | </div><h2·class="groupheader">Constructor·&·Destructor·Documentation</h2> | 98 | </div><h2·class="groupheader">Constructor·&·Destructor·Documentation</h2> |
99 | <a·id="aaf9b064e68ab0cd091926faf2ac8ab11"·name="aaf9b064e68ab0cd091926faf2ac8ab11"></a> | 99 | <a·id="aaf9b064e68ab0cd091926faf2ac8ab11"·name="aaf9b064e68ab0cd091926faf2ac8ab11"></a> |
100 | <h2·class="memtitle"><span·class="permalink"><a·href="#aaf9b064e68ab0cd091926faf2ac8ab11">◆ </a></span>MemoryDataSource()</h2> | 100 | <h2·class="memtitle"><span·class="permalink"><a·href="#aaf9b064e68ab0cd091926faf2ac8ab11">◆ </a></span>MemoryDataSource()</h2> |
101 | <div·class="memitem"> | 101 | <div·class="memitem"> |
102 | <div·class="memproto"> | 102 | <div·class="memproto"> |
103 | ······<table·class="memname"> | 103 | ······<table·class="memname"> |
Offset 129, 15 lines modified | Offset 129, 15 lines modified | ||
129 | ··<table·class="params"> | 129 | ··<table·class="params"> |
130 | ····<tr><td·class="paramname">data</td><td>a·byte·array·of·size·<em>size</em>·</td></tr> | 130 | ····<tr><td·class="paramname">data</td><td>a·byte·array·of·size·<em>size</em>·</td></tr> |
131 | ····<tr><td·class="paramname">size</td><td>the·size·of·data·</td></tr> | 131 | ····<tr><td·class="paramname">size</td><td>the·size·of·data·</td></tr> |
132 | ··</table> | 132 | ··</table> |
133 | ··</dd> | 133 | ··</dd> |
134 | </dl> | 134 | </dl> |
135 | <p·class="definition">Definition·at·line·<a·class="el"·href="a000 | 135 | <p·class="definition">Definition·at·line·<a·class="el"·href="a00005_source.html#l00046">46</a>·of·file·<a·class="el"·href="a00005_source.html">SILLYMemoryDataSource.cpp</a>.</p> |
136 | </div> | 136 | </div> |
137 | </div> | 137 | </div> |
138 | <h2·class="groupheader">Member·Function·Documentation</h2> | 138 | <h2·class="groupheader">Member·Function·Documentation</h2> |
139 | <a·id="a363c71a270f739498e576e743cfa0d6e"·name="a363c71a270f739498e576e743cfa0d6e"></a> | 139 | <a·id="a363c71a270f739498e576e743cfa0d6e"·name="a363c71a270f739498e576e743cfa0d6e"></a> |
140 | <h2·class="memtitle"><span·class="permalink"><a·href="#a363c71a270f739498e576e743cfa0d6e">◆ </a></span>getDataPtr()</h2> | 140 | <h2·class="memtitle"><span·class="permalink"><a·href="#a363c71a270f739498e576e743cfa0d6e">◆ </a></span>getDataPtr()</h2> |
Offset 193, 16 lines modified | Offset 193, 16 lines modified | ||
193 | <p>Return·the·size·of·the·data.·</p> | 193 | <p>Return·the·size·of·the·data.·</p> |
194 | <p>Implements·<a·class="el"·href="a00969.html#a319cde5b2ea76e92e922845ecfa5c615">DataSource</a>.</p> | 194 | <p>Implements·<a·class="el"·href="a00969.html#a319cde5b2ea76e92e922845ecfa5c615">DataSource</a>.</p> |
195 | </div> | 195 | </div> |
196 | </div> | 196 | </div> |
197 | <hr/>The·documentation·for·this·class·was·generated·from·the·following·files:<ul> | 197 | <hr/>The·documentation·for·this·class·was·generated·from·the·following·files:<ul> |
198 | <li>/build/reproducible-path/silly-0.1.0/include/<a·class="el"·href="a00 | 198 | <li>/build/reproducible-path/silly-0.1.0/include/<a·class="el"·href="a00086_source.html">SILLYMemoryDataSource.h</a></li> |
199 | <li>/build/reproducible-path/silly-0.1.0/src/<a·class="el"·href="a000 | 199 | <li>/build/reproducible-path/silly-0.1.0/src/<a·class="el"·href="a00005_source.html">SILLYMemoryDataSource.cpp</a></li> |
200 | </ul> | 200 | </ul> |
201 | </div><!--·contents·--> | 201 | </div><!--·contents·--> |
202 | <!--·start·footer·part·--> | 202 | <!--·start·footer·part·--> |
203 | <hr·class="footer"/><address·class="footer"><small> | 203 | <hr·class="footer"/><address·class="footer"><small> |
204 | Generated·by <a·href="https://www.doxygen.org/index.html"><img·class="footer"·src="doxygen.svg"·width="104"·height="31"·alt="doxygen"/></a>·1.9.8 | 204 | Generated·by <a·href="https://www.doxygen.org/index.html"><img·class="footer"·src="doxygen.svg"·width="104"·height="31"·alt="doxygen"/></a>·1.9.8 |
205 | </small></address> | 205 | </small></address> |
206 | </body> | 206 | </body> |
Offset 60, 47 lines modified | Offset 60, 47 lines modified | ||
60 | <tr·class="heading"><td·colspan="2"><h2·class="groupheader"><a·id="subdirs"·name="subdirs"></a> | 60 | <tr·class="heading"><td·colspan="2"><h2·class="groupheader"><a·id="subdirs"·name="subdirs"></a> |
61 | Directories</h2></td></tr> | 61 | Directories</h2></td></tr> |
62 | <tr·class="memitem:"><td·class="memItemLeft"·align="right"·valign="top"><span·class="iconfclosed"></span> </td><td·class="memItemRight"·valign="bottom"><a·class="el"·href="dir_7cea72c962538e8359f822070f2512f7.html">loaders</a></td></tr> | 62 | <tr·class="memitem:"><td·class="memItemLeft"·align="right"·valign="top"><span·class="iconfclosed"></span> </td><td·class="memItemRight"·valign="bottom"><a·class="el"·href="dir_7cea72c962538e8359f822070f2512f7.html">loaders</a></td></tr> |
63 | <tr·class="separator:"><td·class="memSeparator"·colspan="2"> </td></tr> | 63 | <tr·class="separator:"><td·class="memSeparator"·colspan="2"> </td></tr> |
64 | </table><table·class="memberdecls"> | 64 | </table><table·class="memberdecls"> |
65 | <tr·class="heading"><td·colspan="2"><h2·class="groupheader"><a·id="files"·name="files"></a> | 65 | <tr·class="heading"><td·colspan="2"><h2·class="groupheader"><a·id="files"·name="files"></a> |
66 | Files</h2></td></tr> | 66 | Files</h2></td></tr> |
67 | <tr·class="memitem:"><td·class="memItemLeft"·align="right"·valign="top"><a·href="a000 | 67 | <tr·class="memitem:"><td·class="memItemLeft"·align="right"·valign="top"><a·href="a00065_source.html"><span·class="icondoc"></span></a> </td><td·class="memItemRight"·valign="bottom"><b>SILLY.h</b></td></tr> |
68 | <tr·class="separator:"><td·class="memSeparator"·colspan="2"> </td></tr> | 68 | <tr·class="separator:"><td·class="memSeparator"·colspan="2"> </td></tr> |
69 | <tr·class="memitem:"><td·class="memItemLeft"·align="right"·valign="top"><a·href="a00 | 69 | <tr·class="memitem:"><td·class="memItemLeft"·align="right"·valign="top"><a·href="a00044_source.html"><span·class="icondoc"></span></a> </td><td·class="memItemRight"·valign="bottom"><b>SILLYBase.h</b></td></tr> |
70 | <tr·class="separator:"><td·class="memSeparator"·colspan="2"> </td></tr> | 70 | <tr·class="separator:"><td·class="memSeparator"·colspan="2"> </td></tr> |
71 | <tr·class="memitem:"><td·class="memItemLeft"·align="right"·valign="top"><a·href="a00 | 71 | <tr·class="memitem:"><td·class="memItemLeft"·align="right"·valign="top"><a·href="a00083_source.html"><span·class="icondoc"></span></a> </td><td·class="memItemRight"·valign="bottom"><b>SILLYDataSource.h</b></td></tr> |
72 | <tr·class="separator:"><td·class="memSeparator"·colspan="2"> </td></tr> | 72 | <tr·class="separator:"><td·class="memSeparator"·colspan="2"> </td></tr> |
73 | <tr·class="memitem:"><td·class="memItemLeft"·align="right"·valign="top"><a·href="a000 | 73 | <tr·class="memitem:"><td·class="memItemLeft"·align="right"·valign="top"><a·href="a00053_source.html"><span·class="icondoc"></span></a> </td><td·class="memItemRight"·valign="bottom"><b>SILLYDataSource.icpp</b></td></tr> |
74 | <tr·class="separator:"><td·class="memSeparator"·colspan="2"> </td></tr> | 74 | <tr·class="separator:"><td·class="memSeparator"·colspan="2"> </td></tr> |
75 | <tr·class="memitem:"><td·class="memItemLeft"·align="right"·valign="top"><a·href="a000 | 75 | <tr·class="memitem:"><td·class="memItemLeft"·align="right"·valign="top"><a·href="a00068_source.html"><span·class="icondoc"></span></a> </td><td·class="memItemRight"·valign="bottom"><b>SILLYFileDataSource.h</b></td></tr> |
76 | <tr·class="separator:"><td·class="memSeparator"·colspan="2"> </td></tr> | 76 | <tr·class="separator:"><td·class="memSeparator"·colspan="2"> </td></tr> |
77 | <tr·class="memitem:"><td·class="memItemLeft"·align="right"·valign="top"><a·href="a00 | 77 | <tr·class="memitem:"><td·class="memItemLeft"·align="right"·valign="top"><a·href="a00062_source.html"><span·class="icondoc"></span></a> </td><td·class="memItemRight"·valign="bottom"><b>SILLYFileDataSource.icpp</b></td></tr> |
78 | <tr·class="separator:"><td·class="memSeparator"·colspan="2"> </td></tr> | 78 | <tr·class="separator:"><td·class="memSeparator"·colspan="2"> </td></tr> |
79 | <tr·class="memitem:"><td·class="memItemLeft"·align="right"·valign="top"><a·href="a000 | 79 | <tr·class="memitem:"><td·class="memItemLeft"·align="right"·valign="top"><a·href="a00047_source.html"><span·class="icondoc"></span></a> </td><td·class="memItemRight"·valign="bottom"><b>SILLYImage.h</b></td></tr> |
80 | <tr·class="separator:"><td·class="memSeparator"·colspan="2"> </td></tr> | 80 | <tr·class="separator:"><td·class="memSeparator"·colspan="2"> </td></tr> |
81 | <tr·class="memitem:"><td·class="memItemLeft"·align="right"·valign="top"><a·href="a000 | 81 | <tr·class="memitem:"><td·class="memItemLeft"·align="right"·valign="top"><a·href="a00077_source.html"><span·class="icondoc"></span></a> </td><td·class="memItemRight"·valign="bottom"><b>SILLYImage.icpp</b></td></tr> |
82 | <tr·class="separator:"><td·class="memSeparator"·colspan="2"> </td></tr> | 82 | <tr·class="separator:"><td·class="memSeparator"·colspan="2"> </td></tr> |
83 | <tr·class="memitem:"><td·class="memItemLeft"·align="right"·valign="top"><a·href="a000 | 83 | <tr·class="memitem:"><td·class="memItemLeft"·align="right"·valign="top"><a·href="a00074_source.html"><span·class="icondoc"></span></a> </td><td·class="memItemRight"·valign="bottom"><b>SILLYImageContext.h</b></td></tr> |
84 | <tr·class="separator:"><td·class="memSeparator"·colspan="2"> </td></tr> | 84 | <tr·class="separator:"><td·class="memSeparator"·colspan="2"> </td></tr> |
85 | <tr·class="memitem:"><td·class="memItemLeft"·align="right"·valign="top"><a·href="a00 | 85 | <tr·class="memitem:"><td·class="memItemLeft"·align="right"·valign="top"><a·href="a00041_source.html"><span·class="icondoc"></span></a> </td><td·class="memItemRight"·valign="bottom"><b>SILLYImageContext.icpp</b></td></tr> |
86 | <tr·class="separator:"><td·class="memSeparator"·colspan="2"> </td></tr> | 86 | <tr·class="separator:"><td·class="memSeparator"·colspan="2"> </td></tr> |
87 | <tr·class="memitem:"><td·class="memItemLeft"·align="right"·valign="top"><a·href="a000 | 87 | <tr·class="memitem:"><td·class="memItemLeft"·align="right"·valign="top"><a·href="a00071_source.html"><span·class="icondoc"></span></a> </td><td·class="memItemRight"·valign="bottom"><b>SILLYImageLoader.h</b></td></tr> |
88 | <tr·class="separator:"><td·class="memSeparator"·colspan="2"> </td></tr> | 88 | <tr·class="separator:"><td·class="memSeparator"·colspan="2"> </td></tr> |
89 | <tr·class="memitem:"><td·class="memItemLeft"·align="right"·valign="top"><a·href="a00 | 89 | <tr·class="memitem:"><td·class="memItemLeft"·align="right"·valign="top"><a·href="a00056_source.html"><span·class="icondoc"></span></a> </td><td·class="memItemRight"·valign="bottom"><b>SILLYImageLoader.icpp</b></td></tr> |
90 | <tr·class="separator:"><td·class="memSeparator"·colspan="2"> </td></tr> | 90 | <tr·class="separator:"><td·class="memSeparator"·colspan="2"> </td></tr> |
91 | <tr·class="memitem:"><td·class="memItemLeft"·align="right"·valign="top"><a·href="a00 | 91 | <tr·class="memitem:"><td·class="memItemLeft"·align="right"·valign="top"><a·href="a00089_source.html"><span·class="icondoc"></span></a> </td><td·class="memItemRight"·valign="bottom"><b>SILLYImageLoaderManager.h</b></td></tr> |
92 | <tr·class="separator:"><td·class="memSeparator"·colspan="2"> </td></tr> | 92 | <tr·class="separator:"><td·class="memSeparator"·colspan="2"> </td></tr> |
93 | <tr·class="memitem:"><td·class="memItemLeft"·align="right"·valign="top"><a·href="a00 | 93 | <tr·class="memitem:"><td·class="memItemLeft"·align="right"·valign="top"><a·href="a00059_source.html"><span·class="icondoc"></span></a> </td><td·class="memItemRight"·valign="bottom"><b>SILLYImageLoaderManager.icpp</b></td></tr> |
94 | <tr·class="separator:"><td·class="memSeparator"·colspan="2"> </td></tr> | 94 | <tr·class="separator:"><td·class="memSeparator"·colspan="2"> </td></tr> |
95 | <tr·class="memitem:"><td·class="memItemLeft"·align="right"·valign="top"><a·href="a00 | 95 | <tr·class="memitem:"><td·class="memItemLeft"·align="right"·valign="top"><a·href="a00086_source.html"><span·class="icondoc"></span></a> </td><td·class="memItemRight"·valign="bottom"><b>SILLYMemoryDataSource.h</b></td></tr> |
96 | <tr·class="separator:"><td·class="memSeparator"·colspan="2"> </td></tr> | 96 | <tr·class="separator:"><td·class="memSeparator"·colspan="2"> </td></tr> |
97 | <tr·class="memitem:"><td·class="memItemLeft"·align="right"·valign="top"><a·href="a00 | 97 | <tr·class="memitem:"><td·class="memItemLeft"·align="right"·valign="top"><a·href="a00050_source.html"><span·class="icondoc"></span></a> </td><td·class="memItemRight"·valign="bottom"><b>SILLYMemoryDataSource.icpp</b></td></tr> |
98 | <tr·class="separator:"><td·class="memSeparator"·colspan="2"> </td></tr> | 98 | <tr·class="separator:"><td·class="memSeparator"·colspan="2"> </td></tr> |
99 | <tr·class="memitem:"><td·class="memItemLeft"·align="right"·valign="top"><a·href="a0008 | 99 | <tr·class="memitem:"><td·class="memItemLeft"·align="right"·valign="top"><a·href="a00080_source.html"><span·class="icondoc"></span></a> </td><td·class="memItemRight"·valign="bottom"><b>SILLYOptions.h</b></td></tr> |
100 | <tr·class="separator:"><td·class="memSeparator"·colspan="2"> </td></tr> | 100 | <tr·class="separator:"><td·class="memSeparator"·colspan="2"> </td></tr> |
101 | </table> | 101 | </table> |
102 | </div><!--·contents·--> | 102 | </div><!--·contents·--> |
103 | <!--·start·footer·part·--> | 103 | <!--·start·footer·part·--> |
104 | <hr·class="footer"/><address·class="footer"><small> | 104 | <hr·class="footer"/><address·class="footer"><small> |
105 | Generated·by <a·href="https://www.doxygen.org/index.html"><img·class="footer"·src="doxygen.svg"·width="104"·height="31"·alt="doxygen"/></a>·1.9.8 | 105 | Generated·by <a·href="https://www.doxygen.org/index.html"><img·class="footer"·src="doxygen.svg"·width="104"·height="31"·alt="doxygen"/></a>·1.9.8 |
106 | </small></address> | 106 | </small></address> |
Offset 54, 25 lines modified | Offset 54, 25 lines modified | ||
54 | <area·shape="rect"·href="dir_7b011f4828cd5682692dd5e7c066fc3b.html"·title="loaders"·alt=""·coords="27,52,98,77"/> | 54 | <area·shape="rect"·href="dir_7b011f4828cd5682692dd5e7c066fc3b.html"·title="loaders"·alt=""·coords="27,52,98,77"/> |
55 | <area·shape="rect"·href="dir_7b53bc9a32849689d682eb098e891de5.html"·title="src"·alt=""·coords="16,16,109,88"/> | 55 | <area·shape="rect"·href="dir_7b53bc9a32849689d682eb098e891de5.html"·title="src"·alt=""·coords="16,16,109,88"/> |
56 | </map> | 56 | </map> |
57 | </div> | 57 | </div> |
58 | <table·class="memberdecls"> | 58 | <table·class="memberdecls"> |
59 | <tr·class="heading"><td·colspan="2"><h2·class="groupheader"><a·id="files"·name="files"></a> | 59 | <tr·class="heading"><td·colspan="2"><h2·class="groupheader"><a·id="files"·name="files"></a> |
60 | Files</h2></td></tr> | 60 | Files</h2></td></tr> |
61 | <tr·class="memitem:"><td·class="memItemLeft"·align="right"·valign="top"><a·href="a0002 | 61 | <tr·class="memitem:"><td·class="memItemLeft"·align="right"·valign="top"><a·href="a00023_source.html"><span·class="icondoc"></span></a> </td><td·class="memItemRight"·valign="bottom"><b>SILLYJPGImageContext.cpp</b></td></tr> |
62 | <tr·class="separator:"><td·class="memSeparator"·colspan="2"> </td></tr> | 62 | <tr·class="separator:"><td·class="memSeparator"·colspan="2"> </td></tr> |
63 | <tr·class="memitem:"><td·class="memItemLeft"·align="right"·valign="top"><a·href="a0002 | 63 | <tr·class="memitem:"><td·class="memItemLeft"·align="right"·valign="top"><a·href="a00026_source.html"><span·class="icondoc"></span></a> </td><td·class="memItemRight"·valign="bottom"><b>SILLYJPGImageLoader.cpp</b></td></tr> |
64 | <tr·class="separator:"><td·class="memSeparator"·colspan="2"> </td></tr> | 64 | <tr·class="separator:"><td·class="memSeparator"·colspan="2"> </td></tr> |
65 | <tr·class="memitem:"><td·class="memItemLeft"·align="right"·valign="top"><a·href="a000 | 65 | <tr·class="memitem:"><td·class="memItemLeft"·align="right"·valign="top"><a·href="a00020_source.html"><span·class="icondoc"></span></a> </td><td·class="memItemRight"·valign="bottom"><b>SILLYPNGImageContext.cpp</b></td></tr> |
66 | <tr·class="separator:"><td·class="memSeparator"·colspan="2"> </td></tr> | 66 | <tr·class="separator:"><td·class="memSeparator"·colspan="2"> </td></tr> |
67 | <tr·class="memitem:"><td·class="memItemLeft"·align="right"·valign="top"><a·href="a000 | 67 | <tr·class="memitem:"><td·class="memItemLeft"·align="right"·valign="top"><a·href="a00029_source.html"><span·class="icondoc"></span></a> </td><td·class="memItemRight"·valign="bottom"><b>SILLYPNGImageLoader.cpp</b></td></tr> |
68 | <tr·class="separator:"><td·class="memSeparator"·colspan="2"> </td></tr> | 68 | <tr·class="separator:"><td·class="memSeparator"·colspan="2"> </td></tr> |
69 | <tr·class="memitem:"><td·class="memItemLeft"·align="right"·valign="top"><a·href="a000 | 69 | <tr·class="memitem:"><td·class="memItemLeft"·align="right"·valign="top"><a·href="a00032_source.html"><span·class="icondoc"></span></a> </td><td·class="memItemRight"·valign="bottom"><b>SILLYTGAImageContext.cpp</b></td></tr> |
70 | <tr·class="separator:"><td·class="memSeparator"·colspan="2"> </td></tr> | 70 | <tr·class="separator:"><td·class="memSeparator"·colspan="2"> </td></tr> |
71 | <tr·class="memitem:"><td·class="memItemLeft"·align="right"·valign="top"><a·href="a000 | 71 | <tr·class="memitem:"><td·class="memItemLeft"·align="right"·valign="top"><a·href="a00035_source.html"><span·class="icondoc"></span></a> </td><td·class="memItemRight"·valign="bottom"><b>SILLYTGAImageLoader.cpp</b></td></tr> |
72 | <tr·class="separator:"><td·class="memSeparator"·colspan="2"> </td></tr> | 72 | <tr·class="separator:"><td·class="memSeparator"·colspan="2"> </td></tr> |
73 | </table> | 73 | </table> |
74 | </div><!--·contents·--> | 74 | </div><!--·contents·--> |
75 | <!--·start·footer·part·--> | 75 | <!--·start·footer·part·--> |
76 | <hr·class="footer"/><address·class="footer"><small> | 76 | <hr·class="footer"/><address·class="footer"><small> |
77 | Generated·by <a·href="https://www.doxygen.org/index.html"><img·class="footer"·src="doxygen.svg"·width="104"·height="31"·alt="doxygen"/></a>·1.9.8 | 77 | Generated·by <a·href="https://www.doxygen.org/index.html"><img·class="footer"·src="doxygen.svg"·width="104"·height="31"·alt="doxygen"/></a>·1.9.8 |
78 | </small></address> | 78 | </small></address> |
Offset 60, 27 lines modified | Offset 60, 27 lines modified | ||
60 | <tr·class="heading"><td·colspan="2"><h2·class="groupheader"><a·id="subdirs"·name="subdirs"></a> | 60 | <tr·class="heading"><td·colspan="2"><h2·class="groupheader"><a·id="subdirs"·name="subdirs"></a> |
61 | Directories</h2></td></tr> | 61 | Directories</h2></td></tr> |
62 | <tr·class="memitem:"><td·class="memItemLeft"·align="right"·valign="top"><span·class="iconfclosed"></span> </td><td·class="memItemRight"·valign="bottom"><a·class="el"·href="dir_7b011f4828cd5682692dd5e7c066fc3b.html">loaders</a></td></tr> | 62 | <tr·class="memitem:"><td·class="memItemLeft"·align="right"·valign="top"><span·class="iconfclosed"></span> </td><td·class="memItemRight"·valign="bottom"><a·class="el"·href="dir_7b011f4828cd5682692dd5e7c066fc3b.html">loaders</a></td></tr> |
63 | <tr·class="separator:"><td·class="memSeparator"·colspan="2"> </td></tr> | 63 | <tr·class="separator:"><td·class="memSeparator"·colspan="2"> </td></tr> |
64 | </table><table·class="memberdecls"> | 64 | </table><table·class="memberdecls"> |
65 | <tr·class="heading"><td·colspan="2"><h2·class="groupheader"><a·id="files"·name="files"></a> | 65 | <tr·class="heading"><td·colspan="2"><h2·class="groupheader"><a·id="files"·name="files"></a> |
66 | Files</h2></td></tr> | 66 | Files</h2></td></tr> |
67 | <tr·class="memitem:"><td·class="memItemLeft"·align="right"·valign="top"><a·href="a0000 | 67 | <tr·class="memitem:"><td·class="memItemLeft"·align="right"·valign="top"><a·href="a00002_source.html"><span·class="icondoc"></span></a> </td><td·class="memItemRight"·valign="bottom"><b>SILLYDataSource.cpp</b></td></tr> |
68 | <tr·class="separator:"><td·class="memSeparator"·colspan="2"> </td></tr> | 68 | <tr·class="separator:"><td·class="memSeparator"·colspan="2"> </td></tr> |
69 | <tr·class="memitem:"><td·class="memItemLeft"·align="right"·valign="top"><a·href="a000 | 69 | <tr·class="memitem:"><td·class="memItemLeft"·align="right"·valign="top"><a·href="a00017_source.html"><span·class="icondoc"></span></a> </td><td·class="memItemRight"·valign="bottom"><b>SILLYFileDataSource.cpp</b></td></tr> |
70 | <tr·class="separator:"><td·class="memSeparator"·colspan="2"> </td></tr> | 70 | <tr·class="separator:"><td·class="memSeparator"·colspan="2"> </td></tr> |
71 | <tr·class="memitem:"><td·class="memItemLeft"·align="right"·valign="top"><a·href="a000 | 71 | <tr·class="memitem:"><td·class="memItemLeft"·align="right"·valign="top"><a·href="a00014_source.html"><span·class="icondoc"></span></a> </td><td·class="memItemRight"·valign="bottom"><b>SILLYImage.cpp</b></td></tr> |
72 | <tr·class="separator:"><td·class="memSeparator"·colspan="2"> </td></tr> | 72 | <tr·class="separator:"><td·class="memSeparator"·colspan="2"> </td></tr> |
73 | <tr·class="memitem:"><td·class="memItemLeft"·align="right"·valign="top"><a·href="a000 | 73 | <tr·class="memitem:"><td·class="memItemLeft"·align="right"·valign="top"><a·href="a00038_source.html"><span·class="icondoc"></span></a> </td><td·class="memItemRight"·valign="bottom"><b>SILLYImageContext.cpp</b></td></tr> |
74 | <tr·class="separator:"><td·class="memSeparator"·colspan="2"> </td></tr> | 74 | <tr·class="separator:"><td·class="memSeparator"·colspan="2"> </td></tr> |
75 | <tr·class="memitem:"><td·class="memItemLeft"·align="right"·valign="top"><a·href="a000 | 75 | <tr·class="memitem:"><td·class="memItemLeft"·align="right"·valign="top"><a·href="a00008_source.html"><span·class="icondoc"></span></a> </td><td·class="memItemRight"·valign="bottom"><b>SILLYImageLoader.cpp</b></td></tr> |
76 | <tr·class="separator:"><td·class="memSeparator"·colspan="2"> </td></tr> | 76 | <tr·class="separator:"><td·class="memSeparator"·colspan="2"> </td></tr> |
77 | <tr·class="memitem:"><td·class="memItemLeft"·align="right"·valign="top"><a·href="a0001 | 77 | <tr·class="memitem:"><td·class="memItemLeft"·align="right"·valign="top"><a·href="a00011_source.html"><span·class="icondoc"></span></a> </td><td·class="memItemRight"·valign="bottom"><b>SILLYImageLoaderManager.cpp</b></td></tr> |
78 | <tr·class="separator:"><td·class="memSeparator"·colspan="2"> </td></tr> | 78 | <tr·class="separator:"><td·class="memSeparator"·colspan="2"> </td></tr> |
79 | <tr·class="memitem:"><td·class="memItemLeft"·align="right"·valign="top"><a·href="a000 | 79 | <tr·class="memitem:"><td·class="memItemLeft"·align="right"·valign="top"><a·href="a00005_source.html"><span·class="icondoc"></span></a> </td><td·class="memItemRight"·valign="bottom"><b>SILLYMemoryDataSource.cpp</b></td></tr> |
80 | <tr·class="separator:"><td·class="memSeparator"·colspan="2"> </td></tr> | 80 | <tr·class="separator:"><td·class="memSeparator"·colspan="2"> </td></tr> |
81 | </table> | 81 | </table> |
82 | </div><!--·contents·--> | 82 | </div><!--·contents·--> |
83 | <!--·start·footer·part·--> | 83 | <!--·start·footer·part·--> |
84 | <hr·class="footer"/><address·class="footer"><small> | 84 | <hr·class="footer"/><address·class="footer"><small> |
85 | Generated·by <a·href="https://www.doxygen.org/index.html"><img·class="footer"·src="doxygen.svg"·width="104"·height="31"·alt="doxygen"/></a>·1.9.8 | 85 | Generated·by <a·href="https://www.doxygen.org/index.html"><img·class="footer"·src="doxygen.svg"·width="104"·height="31"·alt="doxygen"/></a>·1.9.8 |
86 | </small></address> | 86 | </small></address> |
Offset 54, 37 lines modified | Offset 54, 37 lines modified | ||
54 | <area·shape="rect"·href="dir_7cea72c962538e8359f822070f2512f7.html"·title="loaders"·alt=""·coords="27,52,98,77"/> | 54 | <area·shape="rect"·href="dir_7cea72c962538e8359f822070f2512f7.html"·title="loaders"·alt=""·coords="27,52,98,77"/> |
55 | <area·shape="rect"·href="dir_0d87e2e7ddaae8a2a8572c0afc59fe0d.html"·title="include"·alt=""·coords="16,16,109,88"/> | 55 | <area·shape="rect"·href="dir_0d87e2e7ddaae8a2a8572c0afc59fe0d.html"·title="include"·alt=""·coords="16,16,109,88"/> |
56 | </map> | 56 | </map> |
57 | </div> | 57 | </div> |
58 | <table·class="memberdecls"> | 58 | <table·class="memberdecls"> |
59 | <tr·class="heading"><td·colspan="2"><h2·class="groupheader"><a·id="files"·name="files"></a> | 59 | <tr·class="heading"><td·colspan="2"><h2·class="groupheader"><a·id="files"·name="files"></a> |
60 | Files</h2></td></tr> | 60 | Files</h2></td></tr> |
61 | <tr·class="memitem:"><td·class="memItemLeft"·align="right"·valign="top"><a·href="a0007 | 61 | <tr·class="memitem:"><td·class="memItemLeft"·align="right"·valign="top"><a·href="a00107_source.html"><span·class="icondoc"></span></a> </td><td·class="memItemRight"·valign="bottom"><b>SILLYJPGImageContext.h</b></td></tr> |
62 | <tr·class="separator:"><td·class="memSeparator"·colspan="2"> </td></tr> | 62 | <tr·class="separator:"><td·class="memSeparator"·colspan="2"> </td></tr> |
63 | <tr·class="memitem:"><td·class="memItemLeft"·align="right"·valign="top"><a·href="a000 | 63 | <tr·class="memitem:"><td·class="memItemLeft"·align="right"·valign="top"><a·href="a00095_source.html"><span·class="icondoc"></span></a> </td><td·class="memItemRight"·valign="bottom"><b>SILLYJPGImageContext.icpp</b></td></tr> |
64 | <tr·class="separator:"><td·class="memSeparator"·colspan="2"> </td></tr> | 64 | <tr·class="separator:"><td·class="memSeparator"·colspan="2"> </td></tr> |
65 | <tr·class="memitem:"><td·class="memItemLeft"·align="right"·valign="top"><a·href="a000 | 65 | <tr·class="memitem:"><td·class="memItemLeft"·align="right"·valign="top"><a·href="a00098_source.html"><span·class="icondoc"></span></a> </td><td·class="memItemRight"·valign="bottom"><b>SILLYJPGImageLoader.h</b></td></tr> |
66 | <tr·class="separator:"><td·class="memSeparator"·colspan="2"> </td></tr> | 66 | <tr·class="separator:"><td·class="memSeparator"·colspan="2"> </td></tr> |
67 | <tr·class="memitem:"><td·class="memItemLeft"·align="right"·valign="top"><a·href="a00 | 67 | <tr·class="memitem:"><td·class="memItemLeft"·align="right"·valign="top"><a·href="a00101_source.html"><span·class="icondoc"></span></a> </td><td·class="memItemRight"·valign="bottom"><b>SILLYJPGImageLoader.icpp</b></td></tr> |
68 | <tr·class="separator:"><td·class="memSeparator"·colspan="2"> </td></tr> | 68 | <tr·class="separator:"><td·class="memSeparator"·colspan="2"> </td></tr> |
69 | <tr·class="memitem:"><td·class="memItemLeft"·align="right"·valign="top"><a·href="a000 | 69 | <tr·class="memitem:"><td·class="memItemLeft"·align="right"·valign="top"><a·href="a00092_source.html"><span·class="icondoc"></span></a> </td><td·class="memItemRight"·valign="bottom"><b>SILLYPNGImageContext.h</b></td></tr> |
70 | <tr·class="separator:"><td·class="memSeparator"·colspan="2"> </td></tr> | 70 | <tr·class="separator:"><td·class="memSeparator"·colspan="2"> </td></tr> |
71 | <tr·class="memitem:"><td·class="memItemLeft"·align="right"·valign="top"><a·href="a00 | 71 | <tr·class="memitem:"><td·class="memItemLeft"·align="right"·valign="top"><a·href="a00113_source.html"><span·class="icondoc"></span></a> </td><td·class="memItemRight"·valign="bottom"><b>SILLYPNGImageContext.icpp</b></td></tr> |
72 | <tr·class="separator:"><td·class="memSeparator"·colspan="2"> </td></tr> | 72 | <tr·class="separator:"><td·class="memSeparator"·colspan="2"> </td></tr> |
73 | <tr·class="memitem:"><td·class="memItemLeft"·align="right"·valign="top"><a·href="a00 | 73 | <tr·class="memitem:"><td·class="memItemLeft"·align="right"·valign="top"><a·href="a00104_source.html"><span·class="icondoc"></span></a> </td><td·class="memItemRight"·valign="bottom"><b>SILLYPNGImageLoader.h</b></td></tr> |
74 | <tr·class="separator:"><td·class="memSeparator"·colspan="2"> </td></tr> | 74 | <tr·class="separator:"><td·class="memSeparator"·colspan="2"> </td></tr> |
75 | <tr·class="memitem:"><td·class="memItemLeft"·align="right"·valign="top"><a·href="a00 | 75 | <tr·class="memitem:"><td·class="memItemLeft"·align="right"·valign="top"><a·href="a00116_source.html"><span·class="icondoc"></span></a> </td><td·class="memItemRight"·valign="bottom"><b>SILLYPNGImageLoader.icpp</b></td></tr> |
76 | <tr·class="separator:"><td·class="memSeparator"·colspan="2"> </td></tr> | 76 | <tr·class="separator:"><td·class="memSeparator"·colspan="2"> </td></tr> |
77 | <tr·class="memitem:"><td·class="memItemLeft"·align="right"·valign="top"><a·href="a00 | 77 | <tr·class="memitem:"><td·class="memItemLeft"·align="right"·valign="top"><a·href="a00119_source.html"><span·class="icondoc"></span></a> </td><td·class="memItemRight"·valign="bottom"><b>SILLYTGAImageContext.h</b></td></tr> |
78 | <tr·class="separator:"><td·class="memSeparator"·colspan="2"> </td></tr> | 78 | <tr·class="separator:"><td·class="memSeparator"·colspan="2"> </td></tr> |
79 | <tr·class="memitem:"><td·class="memItemLeft"·align="right"·valign="top"><a·href="a00 | 79 | <tr·class="memitem:"><td·class="memItemLeft"·align="right"·valign="top"><a·href="a00110_source.html"><span·class="icondoc"></span></a> </td><td·class="memItemRight"·valign="bottom"><b>SILLYTGAImageContext.icpp</b></td></tr> |
80 | <tr·class="separator:"><td·class="memSeparator"·colspan="2"> </td></tr> | 80 | <tr·class="separator:"><td·class="memSeparator"·colspan="2"> </td></tr> |
81 | <tr·class="memitem:"><td·class="memItemLeft"·align="right"·valign="top"><a·href="a00 | 81 | <tr·class="memitem:"><td·class="memItemLeft"·align="right"·valign="top"><a·href="a00122_source.html"><span·class="icondoc"></span></a> </td><td·class="memItemRight"·valign="bottom"><b>SILLYTGAImageLoader.h</b></td></tr> |
82 | <tr·class="separator:"><td·class="memSeparator"·colspan="2"> </td></tr> | 82 | <tr·class="separator:"><td·class="memSeparator"·colspan="2"> </td></tr> |
83 | <tr·class="memitem:"><td·class="memItemLeft"·align="right"·valign="top"><a·href="a00 | 83 | <tr·class="memitem:"><td·class="memItemLeft"·align="right"·valign="top"><a·href="a00125_source.html"><span·class="icondoc"></span></a> </td><td·class="memItemRight"·valign="bottom"><b>SILLYTGAImageLoader.icpp</b></td></tr> |
84 | <tr·class="separator:"><td·class="memSeparator"·colspan="2"> </td></tr> | 84 | <tr·class="separator:"><td·class="memSeparator"·colspan="2"> </td></tr> |
85 | </table> | 85 | </table> |
86 | </div><!--·contents·--> | 86 | </div><!--·contents·--> |
87 | <!--·start·footer·part·--> | 87 | <!--·start·footer·part·--> |
88 | <hr·class="footer"/><address·class="footer"><small> | 88 | <hr·class="footer"/><address·class="footer"><small> |
89 | Generated·by <a·href="https://www.doxygen.org/index.html"><img·class="footer"·src="doxygen.svg"·width="104"·height="31"·alt="doxygen"/></a>·1.9.8 | 89 | Generated·by <a·href="https://www.doxygen.org/index.html"><img·class="footer"·src="doxygen.svg"·width="104"·height="31"·alt="doxygen"/></a>·1.9.8 |
90 | </small></address> | 90 | </small></address> |
Offset 45, 58 lines modified | Offset 45, 58 lines modified | ||
45 | <div·class="textblock">Here·is·a·list·of·all·documented·files·with·brief·descriptions:</div><div·class="directory"> | 45 | <div·class="textblock">Here·is·a·list·of·all·documented·files·with·brief·descriptions:</div><div·class="directory"> |
46 | <div·class="levels">[detail·level·<span·onclick="javascript:toggleLevel(1);">1</span><span·onclick="javascript:toggleLevel(2);">2</span><span·onclick="javascript:toggleLevel(3);">3</span><span·onclick="javascript:toggleLevel(4);">4</span><span·onclick="javascript:toggleLevel(5);">5</span><span·onclick="javascript:toggleLevel(6);">6</span>]</div><table·class="directory"> | 46 | <div·class="levels">[detail·level·<span·onclick="javascript:toggleLevel(1);">1</span><span·onclick="javascript:toggleLevel(2);">2</span><span·onclick="javascript:toggleLevel(3);">3</span><span·onclick="javascript:toggleLevel(4);">4</span><span·onclick="javascript:toggleLevel(5);">5</span><span·onclick="javascript:toggleLevel(6);">6</span>]</div><table·class="directory"> |
47 | <tr·id="row_0_"·class="even"><td·class="entry"><span·style="width:0px;display:inline-block;"> </span><span·id="arr_0_"·class="arrow"·onclick="toggleFolder('0_')">▼</span><span·id="img_0_"·class="iconfopen"·onclick="toggleFolder('0_')"> </span><a·class="el"·href="dir_4fef79e7177ba769987a8da36c892c5f.html"·target="_self">build</a></td><td·class="desc"></td></tr> | 47 | <tr·id="row_0_"·class="even"><td·class="entry"><span·style="width:0px;display:inline-block;"> </span><span·id="arr_0_"·class="arrow"·onclick="toggleFolder('0_')">▼</span><span·id="img_0_"·class="iconfopen"·onclick="toggleFolder('0_')"> </span><a·class="el"·href="dir_4fef79e7177ba769987a8da36c892c5f.html"·target="_self">build</a></td><td·class="desc"></td></tr> |
48 | <tr·id="row_0_0_"·class="odd"><td·class="entry"><span·style="width:16px;display:inline-block;"> </span><span·id="arr_0_0_"·class="arrow"·onclick="toggleFolder('0_0_')">▼</span><span·id="img_0_0_"·class="iconfopen"·onclick="toggleFolder('0_0_')"> </span><a·class="el"·href="dir_9def6061848686aab7e6212bb499d615.html"·target="_self">reproducible-path</a></td><td·class="desc"></td></tr> | 48 | <tr·id="row_0_0_"·class="odd"><td·class="entry"><span·style="width:16px;display:inline-block;"> </span><span·id="arr_0_0_"·class="arrow"·onclick="toggleFolder('0_0_')">▼</span><span·id="img_0_0_"·class="iconfopen"·onclick="toggleFolder('0_0_')"> </span><a·class="el"·href="dir_9def6061848686aab7e6212bb499d615.html"·target="_self">reproducible-path</a></td><td·class="desc"></td></tr> |
49 | <tr·id="row_0_0_0_"·class="even"><td·class="entry"><span·style="width:32px;display:inline-block;"> </span><span·id="arr_0_0_0_"·class="arrow"·onclick="toggleFolder('0_0_0_')">▼</span><span·id="img_0_0_0_"·class="iconfopen"·onclick="toggleFolder('0_0_0_')"> </span><a·class="el"·href="dir_74170d5b58cefb7cb5a86fc552b183a3.html"·target="_self">silly-0.1.0</a></td><td·class="desc"></td></tr> | 49 | <tr·id="row_0_0_0_"·class="even"><td·class="entry"><span·style="width:32px;display:inline-block;"> </span><span·id="arr_0_0_0_"·class="arrow"·onclick="toggleFolder('0_0_0_')">▼</span><span·id="img_0_0_0_"·class="iconfopen"·onclick="toggleFolder('0_0_0_')"> </span><a·class="el"·href="dir_74170d5b58cefb7cb5a86fc552b183a3.html"·target="_self">silly-0.1.0</a></td><td·class="desc"></td></tr> |
50 | <tr·id="row_0_0_0_0_"·class="odd"><td·class="entry"><span·style="width:48px;display:inline-block;"> </span><span·id="arr_0_0_0_0_"·class="arrow"·onclick="toggleFolder('0_0_0_0_')">▼</span><span·id="img_0_0_0_0_"·class="iconfopen"·onclick="toggleFolder('0_0_0_0_')"> </span><a·class="el"·href="dir_0d87e2e7ddaae8a2a8572c0afc59fe0d.html"·target="_self">include</a></td><td·class="desc"></td></tr> | 50 | <tr·id="row_0_0_0_0_"·class="odd"><td·class="entry"><span·style="width:48px;display:inline-block;"> </span><span·id="arr_0_0_0_0_"·class="arrow"·onclick="toggleFolder('0_0_0_0_')">▼</span><span·id="img_0_0_0_0_"·class="iconfopen"·onclick="toggleFolder('0_0_0_0_')"> </span><a·class="el"·href="dir_0d87e2e7ddaae8a2a8572c0afc59fe0d.html"·target="_self">include</a></td><td·class="desc"></td></tr> |
51 | <tr·id="row_0_0_0_0_0_"·class="even"><td·class="entry"><span·style="width:64px;display:inline-block;"> </span><span·id="arr_0_0_0_0_0_"·class="arrow"·onclick="toggleFolder('0_0_0_0_0_')">▼</span><span·id="img_0_0_0_0_0_"·class="iconfopen"·onclick="toggleFolder('0_0_0_0_0_')"> </span><a·class="el"·href="dir_7cea72c962538e8359f822070f2512f7.html"·target="_self">loaders</a></td><td·class="desc"></td></tr> | 51 | <tr·id="row_0_0_0_0_0_"·class="even"><td·class="entry"><span·style="width:64px;display:inline-block;"> </span><span·id="arr_0_0_0_0_0_"·class="arrow"·onclick="toggleFolder('0_0_0_0_0_')">▼</span><span·id="img_0_0_0_0_0_"·class="iconfopen"·onclick="toggleFolder('0_0_0_0_0_')"> </span><a·class="el"·href="dir_7cea72c962538e8359f822070f2512f7.html"·target="_self">loaders</a></td><td·class="desc"></td></tr> |
52 | <tr·id="row_0_0_0_0_0_0_"·class="odd"><td·class="entry"><span·style="width:96px;display:inline-block;"> </span><a·href="a0007 | 52 | <tr·id="row_0_0_0_0_0_0_"·class="odd"><td·class="entry"><span·style="width:96px;display:inline-block;"> </span><a·href="a00107_source.html"><span·class="icondoc"></span></a><b>SILLYJPGImageContext.h</b></td><td·class="desc"></td></tr> |
53 | <tr·id="row_0_0_0_0_0_1_"·class="even"><td·class="entry"><span·style="width:96px;display:inline-block;"> </span><a·href="a000 | 53 | <tr·id="row_0_0_0_0_0_1_"·class="even"><td·class="entry"><span·style="width:96px;display:inline-block;"> </span><a·href="a00095_source.html"><span·class="icondoc"></span></a><b>SILLYJPGImageContext.icpp</b></td><td·class="desc"></td></tr> |
54 | <tr·id="row_0_0_0_0_0_2_"·class="odd"><td·class="entry"><span·style="width:96px;display:inline-block;"> </span><a·href="a000 | 54 | <tr·id="row_0_0_0_0_0_2_"·class="odd"><td·class="entry"><span·style="width:96px;display:inline-block;"> </span><a·href="a00098_source.html"><span·class="icondoc"></span></a><b>SILLYJPGImageLoader.h</b></td><td·class="desc"></td></tr> |
55 | <tr·id="row_0_0_0_0_0_3_"·class="even"><td·class="entry"><span·style="width:96px;display:inline-block;"> </span><a·href="a00 | 55 | <tr·id="row_0_0_0_0_0_3_"·class="even"><td·class="entry"><span·style="width:96px;display:inline-block;"> </span><a·href="a00101_source.html"><span·class="icondoc"></span></a><b>SILLYJPGImageLoader.icpp</b></td><td·class="desc"></td></tr> |
56 | <tr·id="row_0_0_0_0_0_4_"·class="odd"><td·class="entry"><span·style="width:96px;display:inline-block;"> </span><a·href="a000 | 56 | <tr·id="row_0_0_0_0_0_4_"·class="odd"><td·class="entry"><span·style="width:96px;display:inline-block;"> </span><a·href="a00092_source.html"><span·class="icondoc"></span></a><b>SILLYPNGImageContext.h</b></td><td·class="desc"></td></tr> |
57 | <tr·id="row_0_0_0_0_0_5_"·class="even"><td·class="entry"><span·style="width:96px;display:inline-block;"> </span><a·href="a00 | 57 | <tr·id="row_0_0_0_0_0_5_"·class="even"><td·class="entry"><span·style="width:96px;display:inline-block;"> </span><a·href="a00113_source.html"><span·class="icondoc"></span></a><b>SILLYPNGImageContext.icpp</b></td><td·class="desc"></td></tr> |
58 | <tr·id="row_0_0_0_0_0_6_"·class="odd"><td·class="entry"><span·style="width:96px;display:inline-block;"> </span><a·href="a00 | 58 | <tr·id="row_0_0_0_0_0_6_"·class="odd"><td·class="entry"><span·style="width:96px;display:inline-block;"> </span><a·href="a00104_source.html"><span·class="icondoc"></span></a><b>SILLYPNGImageLoader.h</b></td><td·class="desc"></td></tr> |
59 | <tr·id="row_0_0_0_0_0_7_"·class="even"><td·class="entry"><span·style="width:96px;display:inline-block;"> </span><a·href="a00 | 59 | <tr·id="row_0_0_0_0_0_7_"·class="even"><td·class="entry"><span·style="width:96px;display:inline-block;"> </span><a·href="a00116_source.html"><span·class="icondoc"></span></a><b>SILLYPNGImageLoader.icpp</b></td><td·class="desc"></td></tr> |
60 | <tr·id="row_0_0_0_0_0_8_"·class="odd"><td·class="entry"><span·style="width:96px;display:inline-block;"> </span><a·href="a00 | 60 | <tr·id="row_0_0_0_0_0_8_"·class="odd"><td·class="entry"><span·style="width:96px;display:inline-block;"> </span><a·href="a00119_source.html"><span·class="icondoc"></span></a><b>SILLYTGAImageContext.h</b></td><td·class="desc"></td></tr> |
61 | <tr·id="row_0_0_0_0_0_9_"·class="even"><td·class="entry"><span·style="width:96px;display:inline-block;"> </span><a·href="a00 | 61 | <tr·id="row_0_0_0_0_0_9_"·class="even"><td·class="entry"><span·style="width:96px;display:inline-block;"> </span><a·href="a00110_source.html"><span·class="icondoc"></span></a><b>SILLYTGAImageContext.icpp</b></td><td·class="desc"></td></tr> |
62 | <tr·id="row_0_0_0_0_0_10_"·class="odd"><td·class="entry"><span·style="width:96px;display:inline-block;"> </span><a·href="a00 | 62 | <tr·id="row_0_0_0_0_0_10_"·class="odd"><td·class="entry"><span·style="width:96px;display:inline-block;"> </span><a·href="a00122_source.html"><span·class="icondoc"></span></a><b>SILLYTGAImageLoader.h</b></td><td·class="desc"></td></tr> |
63 | <tr·id="row_0_0_0_0_0_11_"·class="even"><td·class="entry"><span·style="width:96px;display:inline-block;"> </span><a·href="a00 | 63 | <tr·id="row_0_0_0_0_0_11_"·class="even"><td·class="entry"><span·style="width:96px;display:inline-block;"> </span><a·href="a00125_source.html"><span·class="icondoc"></span></a><b>SILLYTGAImageLoader.icpp</b></td><td·class="desc"></td></tr> |
64 | <tr·id="row_0_0_0_0_1_"·class="odd"><td·class="entry"><span·style="width:80px;display:inline-block;"> </span><a·href="a000 | 64 | <tr·id="row_0_0_0_0_1_"·class="odd"><td·class="entry"><span·style="width:80px;display:inline-block;"> </span><a·href="a00065_source.html"><span·class="icondoc"></span></a><b>SILLY.h</b></td><td·class="desc"></td></tr> |
65 | <tr·id="row_0_0_0_0_2_"·class="even"><td·class="entry"><span·style="width:80px;display:inline-block;"> </span><a·href="a00 | 65 | <tr·id="row_0_0_0_0_2_"·class="even"><td·class="entry"><span·style="width:80px;display:inline-block;"> </span><a·href="a00044_source.html"><span·class="icondoc"></span></a><b>SILLYBase.h</b></td><td·class="desc"></td></tr> |
66 | <tr·id="row_0_0_0_0_3_"·class="odd"><td·class="entry"><span·style="width:80px;display:inline-block;"> </span><a·href="a00 | 66 | <tr·id="row_0_0_0_0_3_"·class="odd"><td·class="entry"><span·style="width:80px;display:inline-block;"> </span><a·href="a00083_source.html"><span·class="icondoc"></span></a><b>SILLYDataSource.h</b></td><td·class="desc"></td></tr> |
67 | <tr·id="row_0_0_0_0_4_"·class="even"><td·class="entry"><span·style="width:80px;display:inline-block;"> </span><a·href="a000 | 67 | <tr·id="row_0_0_0_0_4_"·class="even"><td·class="entry"><span·style="width:80px;display:inline-block;"> </span><a·href="a00053_source.html"><span·class="icondoc"></span></a><b>SILLYDataSource.icpp</b></td><td·class="desc"></td></tr> |
68 | <tr·id="row_0_0_0_0_5_"·class="odd"><td·class="entry"><span·style="width:80px;display:inline-block;"> </span><a·href="a000 | 68 | <tr·id="row_0_0_0_0_5_"·class="odd"><td·class="entry"><span·style="width:80px;display:inline-block;"> </span><a·href="a00068_source.html"><span·class="icondoc"></span></a><b>SILLYFileDataSource.h</b></td><td·class="desc"></td></tr> |
69 | <tr·id="row_0_0_0_0_6_"·class="even"><td·class="entry"><span·style="width:80px;display:inline-block;"> </span><a·href="a00 | 69 | <tr·id="row_0_0_0_0_6_"·class="even"><td·class="entry"><span·style="width:80px;display:inline-block;"> </span><a·href="a00062_source.html"><span·class="icondoc"></span></a><b>SILLYFileDataSource.icpp</b></td><td·class="desc"></td></tr> |
70 | <tr·id="row_0_0_0_0_7_"·class="odd"><td·class="entry"><span·style="width:80px;display:inline-block;"> </span><a·href="a000 | 70 | <tr·id="row_0_0_0_0_7_"·class="odd"><td·class="entry"><span·style="width:80px;display:inline-block;"> </span><a·href="a00047_source.html"><span·class="icondoc"></span></a><b>SILLYImage.h</b></td><td·class="desc"></td></tr> |
71 | <tr·id="row_0_0_0_0_8_"·class="even"><td·class="entry"><span·style="width:80px;display:inline-block;"> </span><a·href="a000 | 71 | <tr·id="row_0_0_0_0_8_"·class="even"><td·class="entry"><span·style="width:80px;display:inline-block;"> </span><a·href="a00077_source.html"><span·class="icondoc"></span></a><b>SILLYImage.icpp</b></td><td·class="desc"></td></tr> |
72 | <tr·id="row_0_0_0_0_9_"·class="odd"><td·class="entry"><span·style="width:80px;display:inline-block;"> </span><a·href="a000 | 72 | <tr·id="row_0_0_0_0_9_"·class="odd"><td·class="entry"><span·style="width:80px;display:inline-block;"> </span><a·href="a00074_source.html"><span·class="icondoc"></span></a><b>SILLYImageContext.h</b></td><td·class="desc"></td></tr> |
73 | <tr·id="row_0_0_0_0_10_"·class="even"><td·class="entry"><span·style="width:80px;display:inline-block;"> </span><a·href="a00 | 73 | <tr·id="row_0_0_0_0_10_"·class="even"><td·class="entry"><span·style="width:80px;display:inline-block;"> </span><a·href="a00041_source.html"><span·class="icondoc"></span></a><b>SILLYImageContext.icpp</b></td><td·class="desc"></td></tr> |
74 | <tr·id="row_0_0_0_0_11_"·class="odd"><td·class="entry"><span·style="width:80px;display:inline-block;"> </span><a·href="a000 | 74 | <tr·id="row_0_0_0_0_11_"·class="odd"><td·class="entry"><span·style="width:80px;display:inline-block;"> </span><a·href="a00071_source.html"><span·class="icondoc"></span></a><b>SILLYImageLoader.h</b></td><td·class="desc"></td></tr> |
75 | <tr·id="row_0_0_0_0_12_"·class="even"><td·class="entry"><span·style="width:80px;display:inline-block;"> </span><a·href="a00 | 75 | <tr·id="row_0_0_0_0_12_"·class="even"><td·class="entry"><span·style="width:80px;display:inline-block;"> </span><a·href="a00056_source.html"><span·class="icondoc"></span></a><b>SILLYImageLoader.icpp</b></td><td·class="desc"></td></tr> |
76 | <tr·id="row_0_0_0_0_13_"·class="odd"><td·class="entry"><span·style="width:80px;display:inline-block;"> </span><a·href="a00 | 76 | <tr·id="row_0_0_0_0_13_"·class="odd"><td·class="entry"><span·style="width:80px;display:inline-block;"> </span><a·href="a00089_source.html"><span·class="icondoc"></span></a><b>SILLYImageLoaderManager.h</b></td><td·class="desc"></td></tr> |
77 | <tr·id="row_0_0_0_0_14_"·class="even"><td·class="entry"><span·style="width:80px;display:inline-block;"> </span><a·href="a00 | 77 | <tr·id="row_0_0_0_0_14_"·class="even"><td·class="entry"><span·style="width:80px;display:inline-block;"> </span><a·href="a00059_source.html"><span·class="icondoc"></span></a><b>SILLYImageLoaderManager.icpp</b></td><td·class="desc"></td></tr> |
78 | <tr·id="row_0_0_0_0_15_"·class="odd"><td·class="entry"><span·style="width:80px;display:inline-block;"> </span><a·href="a00 | 78 | <tr·id="row_0_0_0_0_15_"·class="odd"><td·class="entry"><span·style="width:80px;display:inline-block;"> </span><a·href="a00086_source.html"><span·class="icondoc"></span></a><b>SILLYMemoryDataSource.h</b></td><td·class="desc"></td></tr> |
79 | <tr·id="row_0_0_0_0_16_"·class="even"><td·class="entry"><span·style="width:80px;display:inline-block;"> </span><a·href="a00 | 79 | <tr·id="row_0_0_0_0_16_"·class="even"><td·class="entry"><span·style="width:80px;display:inline-block;"> </span><a·href="a00050_source.html"><span·class="icondoc"></span></a><b>SILLYMemoryDataSource.icpp</b></td><td·class="desc"></td></tr> |
80 | <tr·id="row_0_0_0_0_17_"·class="odd"><td·class="entry"><span·style="width:80px;display:inline-block;"> </span><a·href="a0008 | 80 | <tr·id="row_0_0_0_0_17_"·class="odd"><td·class="entry"><span·style="width:80px;display:inline-block;"> </span><a·href="a00080_source.html"><span·class="icondoc"></span></a><b>SILLYOptions.h</b></td><td·class="desc"></td></tr> |
81 | <tr·id="row_0_0_0_1_"·class="even"><td·class="entry"><span·style="width:48px;display:inline-block;"> </span><span·id="arr_0_0_0_1_"·class="arrow"·onclick="toggleFolder('0_0_0_1_')">▼</span><span·id="img_0_0_0_1_"·class="iconfopen"·onclick="toggleFolder('0_0_0_1_')"> </span><a·class="el"·href="dir_7b53bc9a32849689d682eb098e891de5.html"·target="_self">src</a></td><td·class="desc"></td></tr> | 81 | <tr·id="row_0_0_0_1_"·class="even"><td·class="entry"><span·style="width:48px;display:inline-block;"> </span><span·id="arr_0_0_0_1_"·class="arrow"·onclick="toggleFolder('0_0_0_1_')">▼</span><span·id="img_0_0_0_1_"·class="iconfopen"·onclick="toggleFolder('0_0_0_1_')"> </span><a·class="el"·href="dir_7b53bc9a32849689d682eb098e891de5.html"·target="_self">src</a></td><td·class="desc"></td></tr> |
82 | <tr·id="row_0_0_0_1_0_"·class="odd"><td·class="entry"><span·style="width:64px;display:inline-block;"> </span><span·id="arr_0_0_0_1_0_"·class="arrow"·onclick="toggleFolder('0_0_0_1_0_')">▼</span><span·id="img_0_0_0_1_0_"·class="iconfopen"·onclick="toggleFolder('0_0_0_1_0_')"> </span><a·class="el"·href="dir_7b011f4828cd5682692dd5e7c066fc3b.html"·target="_self">loaders</a></td><td·class="desc"></td></tr> | 82 | <tr·id="row_0_0_0_1_0_"·class="odd"><td·class="entry"><span·style="width:64px;display:inline-block;"> </span><span·id="arr_0_0_0_1_0_"·class="arrow"·onclick="toggleFolder('0_0_0_1_0_')">▼</span><span·id="img_0_0_0_1_0_"·class="iconfopen"·onclick="toggleFolder('0_0_0_1_0_')"> </span><a·class="el"·href="dir_7b011f4828cd5682692dd5e7c066fc3b.html"·target="_self">loaders</a></td><td·class="desc"></td></tr> |
83 | <tr·id="row_0_0_0_1_0_0_"·class="even"><td·class="entry"><span·style="width:96px;display:inline-block;"> </span><a·href="a0002 | 83 | <tr·id="row_0_0_0_1_0_0_"·class="even"><td·class="entry"><span·style="width:96px;display:inline-block;"> </span><a·href="a00023_source.html"><span·class="icondoc"></span></a><b>SILLYJPGImageContext.cpp</b></td><td·class="desc"></td></tr> |
84 | <tr·id="row_0_0_0_1_0_1_"·class="odd"><td·class="entry"><span·style="width:96px;display:inline-block;"> </span><a·href="a0002 | 84 | <tr·id="row_0_0_0_1_0_1_"·class="odd"><td·class="entry"><span·style="width:96px;display:inline-block;"> </span><a·href="a00026_source.html"><span·class="icondoc"></span></a><b>SILLYJPGImageLoader.cpp</b></td><td·class="desc"></td></tr> |
85 | <tr·id="row_0_0_0_1_0_2_"·class="even"><td·class="entry"><span·style="width:96px;display:inline-block;"> </span><a·href="a000 | 85 | <tr·id="row_0_0_0_1_0_2_"·class="even"><td·class="entry"><span·style="width:96px;display:inline-block;"> </span><a·href="a00020_source.html"><span·class="icondoc"></span></a><b>SILLYPNGImageContext.cpp</b></td><td·class="desc"></td></tr> |
86 | <tr·id="row_0_0_0_1_0_3_"·class="odd"><td·class="entry"><span·style="width:96px;display:inline-block;"> </span><a·href="a000 | 86 | <tr·id="row_0_0_0_1_0_3_"·class="odd"><td·class="entry"><span·style="width:96px;display:inline-block;"> </span><a·href="a00029_source.html"><span·class="icondoc"></span></a><b>SILLYPNGImageLoader.cpp</b></td><td·class="desc"></td></tr> |
87 | <tr·id="row_0_0_0_1_0_4_"·class="even"><td·class="entry"><span·style="width:96px;display:inline-block;"> </span><a·href="a000 | 87 | <tr·id="row_0_0_0_1_0_4_"·class="even"><td·class="entry"><span·style="width:96px;display:inline-block;"> </span><a·href="a00032_source.html"><span·class="icondoc"></span></a><b>SILLYTGAImageContext.cpp</b></td><td·class="desc"></td></tr> |
88 | <tr·id="row_0_0_0_1_0_5_"·class="odd"><td·class="entry"><span·style="width:96px;display:inline-block;"> </span><a·href="a000 | 88 | <tr·id="row_0_0_0_1_0_5_"·class="odd"><td·class="entry"><span·style="width:96px;display:inline-block;"> </span><a·href="a00035_source.html"><span·class="icondoc"></span></a><b>SILLYTGAImageLoader.cpp</b></td><td·class="desc"></td></tr> |
89 | <tr·id="row_0_0_0_1_1_"·class="even"><td·class="entry"><span·style="width:80px;display:inline-block;"> </span><a·href="a0000 | 89 | <tr·id="row_0_0_0_1_1_"·class="even"><td·class="entry"><span·style="width:80px;display:inline-block;"> </span><a·href="a00002_source.html"><span·class="icondoc"></span></a><b>SILLYDataSource.cpp</b></td><td·class="desc"></td></tr> |
90 | <tr·id="row_0_0_0_1_2_"·class="odd"><td·class="entry"><span·style="width:80px;display:inline-block;"> </span><a·href="a000 | 90 | <tr·id="row_0_0_0_1_2_"·class="odd"><td·class="entry"><span·style="width:80px;display:inline-block;"> </span><a·href="a00017_source.html"><span·class="icondoc"></span></a><b>SILLYFileDataSource.cpp</b></td><td·class="desc"></td></tr> |
91 | <tr·id="row_0_0_0_1_3_"·class="even"><td·class="entry"><span·style="width:80px;display:inline-block;"> </span><a·href="a000 | 91 | <tr·id="row_0_0_0_1_3_"·class="even"><td·class="entry"><span·style="width:80px;display:inline-block;"> </span><a·href="a00014_source.html"><span·class="icondoc"></span></a><b>SILLYImage.cpp</b></td><td·class="desc"></td></tr> |
92 | <tr·id="row_0_0_0_1_4_"·class="odd"><td·class="entry"><span·style="width:80px;display:inline-block;"> </span><a·href="a000 | 92 | <tr·id="row_0_0_0_1_4_"·class="odd"><td·class="entry"><span·style="width:80px;display:inline-block;"> </span><a·href="a00038_source.html"><span·class="icondoc"></span></a><b>SILLYImageContext.cpp</b></td><td·class="desc"></td></tr> |
93 | <tr·id="row_0_0_0_1_5_"·class="even"><td·class="entry"><span·style="width:80px;display:inline-block;"> </span><a·href="a000 | 93 | <tr·id="row_0_0_0_1_5_"·class="even"><td·class="entry"><span·style="width:80px;display:inline-block;"> </span><a·href="a00008_source.html"><span·class="icondoc"></span></a><b>SILLYImageLoader.cpp</b></td><td·class="desc"></td></tr> |
94 | <tr·id="row_0_0_0_1_6_"·class="odd"><td·class="entry"><span·style="width:80px;display:inline-block;"> </span><a·href="a0001 | 94 | <tr·id="row_0_0_0_1_6_"·class="odd"><td·class="entry"><span·style="width:80px;display:inline-block;"> </span><a·href="a00011_source.html"><span·class="icondoc"></span></a><b>SILLYImageLoaderManager.cpp</b></td><td·class="desc"></td></tr> |
95 | <tr·id="row_0_0_0_1_7_"·class="even"><td·class="entry"><span·style="width:80px;display:inline-block;"> </span><a·href="a000 | 95 | <tr·id="row_0_0_0_1_7_"·class="even"><td·class="entry"><span·style="width:80px;display:inline-block;"> </span><a·href="a00005_source.html"><span·class="icondoc"></span></a><b>SILLYMemoryDataSource.cpp</b></td><td·class="desc"></td></tr> |
96 | </table> | 96 | </table> |
97 | </div><!--·directory·--> | 97 | </div><!--·directory·--> |
98 | </div><!--·contents·--> | 98 | </div><!--·contents·--> |
99 | <!--·start·footer·part·--> | 99 | <!--·start·footer·part·--> |
100 | <hr·class="footer"/><address·class="footer"><small> | 100 | <hr·class="footer"/><address·class="footer"><small> |
101 | Generated·by <a·href="https://www.doxygen.org/index.html"><img·class="footer"·src="doxygen.svg"·width="104"·height="31"·alt="doxygen"/></a>·1.9.8 | 101 | Generated·by <a·href="https://www.doxygen.org/index.html"><img·class="footer"·src="doxygen.svg"·width="104"·height="31"·alt="doxygen"/></a>·1.9.8 |
102 | </small></address> | 102 | </small></address> |
Offset 90, 19 lines modified | Offset 90, 19 lines modified | ||
90 | <div·class="line">}</div> | 90 | <div·class="line">}</div> |
91 | <div·class="line"><span·class="comment">//·Return·a·pointer·to·a·byte·array·containing·the·</span></div> | 91 | <div·class="line"><span·class="comment">//·Return·a·pointer·to·a·byte·array·containing·the·</span></div> |
92 | <div·class="line"><span·class="comment">//·pixels·stored·as·RGBA·</span></div> | 92 | <div·class="line"><span·class="comment">//·pixels·stored·as·RGBA·</span></div> |
93 | <div·class="line">img.getPixelsDataPtr();·</div> | 93 | <div·class="line">img.getPixelsDataPtr();·</div> |
94 | <div·class="line"><span·class="comment">//·Get·the·size·of·the·pixel·array·</span></div> | 94 | <div·class="line"><span·class="comment">//·Get·the·size·of·the·pixel·array·</span></div> |
95 | <div·class="line">img.getPixelsDataSize();</div> | 95 | <div·class="line">img.getPixelsDataSize();</div> |
96 | <div·class="line"><a·class="code·hl_function"·href="a00129.html#a33a519b8226fd733e2ef294f894411f9">SILLY::SILLYCleanup</a>();·<span·class="comment">//·Free·all·memory·used·by·the·library·</span></div> | 96 | <div·class="line"><a·class="code·hl_function"·href="a00129.html#a33a519b8226fd733e2ef294f894411f9">SILLY::SILLYCleanup</a>();·<span·class="comment">//·Free·all·memory·used·by·the·library·</span></div> |
97 | <div·class="ttc"·id="aa00129_html_a0c8186d9b9b7880309c27230bbb5e69d"><div·class="ttname"><a·href="a00129.html#a0c8186d9b9b7880309c27230bbb5e69d">SILLY::byte</a></div><div·class="ttdeci">unsigned·char·byte</div><div·class="ttdoc">Typename·for·a·byte.</div><div·class="ttdef"><b>Definition</b>·<a·href="a00 | 97 | <div·class="ttc"·id="aa00129_html_a0c8186d9b9b7880309c27230bbb5e69d"><div·class="ttname"><a·href="a00129.html#a0c8186d9b9b7880309c27230bbb5e69d">SILLY::byte</a></div><div·class="ttdeci">unsigned·char·byte</div><div·class="ttdoc">Typename·for·a·byte.</div><div·class="ttdef"><b>Definition</b>·<a·href="a00044_source.html#l00080">SILLYBase.h:80</a></div></div> |
98 | <div·class="ttc"·id="aa00129_html_a33a519b8226fd733e2ef294f894411f9"><div·class="ttname"><a·href="a00129.html#a33a519b8226fd733e2ef294f894411f9">SILLY::SILLYCleanup</a></div><div·class="ttdeci">void·SILLYCleanup()</div><div·class="ttdoc">Cleanup·SILLY·library·internal.</div><div·class="ttdef"><b>Definition</b>·<a·href="a0001 | 98 | <div·class="ttc"·id="aa00129_html_a33a519b8226fd733e2ef294f894411f9"><div·class="ttname"><a·href="a00129.html#a33a519b8226fd733e2ef294f894411f9">SILLY::SILLYCleanup</a></div><div·class="ttdeci">void·SILLYCleanup()</div><div·class="ttdoc">Cleanup·SILLY·library·internal.</div><div·class="ttdef"><b>Definition</b>·<a·href="a00011_source.html#l00100">SILLYImageLoaderManager.cpp:100</a></div></div> |
99 | <div·class="ttc"·id="aa00129_html_a61417e4f09222c4b4b96bfc1cd2b62fe"><div·class="ttname"><a·href="a00129.html#a61417e4f09222c4b4b96bfc1cd2b62fe">SILLY::SILLYInit</a></div><div·class="ttdeci">bool·SILLYInit()</div><div·class="ttdoc">Initialize·the·SILLY·Library.</div><div·class="ttdef"><b>Definition</b>·<a·href="a0001 | 99 | <div·class="ttc"·id="aa00129_html_a61417e4f09222c4b4b96bfc1cd2b62fe"><div·class="ttname"><a·href="a00129.html#a61417e4f09222c4b4b96bfc1cd2b62fe">SILLY::SILLYInit</a></div><div·class="ttdeci">bool·SILLYInit()</div><div·class="ttdoc">Initialize·the·SILLY·Library.</div><div·class="ttdef"><b>Definition</b>·<a·href="a00011_source.html#l00087">SILLYImageLoaderManager.cpp:87</a></div></div> |
100 | <div·class="ttc"·id="aa00977_html"><div·class="ttname"><a·href="a00977.html">SILLY::Image</a></div><div·class="ttdoc">Image·is·the·main·user·class·of·the·library.</div><div·class="ttdef"><b>Definition</b>·<a·href="a000 | 100 | <div·class="ttc"·id="aa00977_html"><div·class="ttname"><a·href="a00977.html">SILLY::Image</a></div><div·class="ttdoc">Image·is·the·main·user·class·of·the·library.</div><div·class="ttdef"><b>Definition</b>·<a·href="a00047_source.html#l00046">SILLYImage.h:47</a></div></div> |
101 | <div·class="ttc"·id="aa00993_html"><div·class="ttname"><a·href="a00993.html">SILLY::MemoryDataSource</a></div><div·class="ttdoc">Load·an·image·from·a·memory·area.</div><div·class="ttdef"><b>Definition</b>·<a·href="a00 | 101 | <div·class="ttc"·id="aa00993_html"><div·class="ttname"><a·href="a00993.html">SILLY::MemoryDataSource</a></div><div·class="ttdoc">Load·an·image·from·a·memory·area.</div><div·class="ttdef"><b>Definition</b>·<a·href="a00086_source.html#l00048">SILLYMemoryDataSource.h:49</a></div></div> |
102 | </div><!--·fragment·-->·</div></div><!--·PageDoc·--> | 102 | </div><!--·fragment·-->·</div></div><!--·PageDoc·--> |
103 | </div><!--·contents·--> | 103 | </div><!--·contents·--> |
104 | <!--·start·footer·part·--> | 104 | <!--·start·footer·part·--> |
105 | <hr·class="footer"/><address·class="footer"><small> | 105 | <hr·class="footer"/><address·class="footer"><small> |
106 | Generated·by <a·href="https://www.doxygen.org/index.html"><img·class="footer"·src="doxygen.svg"·width="104"·height="31"·alt="doxygen"/></a>·1.9.8 | 106 | Generated·by <a·href="https://www.doxygen.org/index.html"><img·class="footer"·src="doxygen.svg"·width="104"·height="31"·alt="doxygen"/></a>·1.9.8 |
107 | </small></address> | 107 | </small></address> |
108 | </body> | 108 | </body> |