1.3 MB
/srv/reproducible-results/rbuild-debian/r-b-build.7IYeSCWe/b1/silly_0.1.0-8.1_armhf.changes vs.
/srv/reproducible-results/rbuild-debian/r-b-build.7IYeSCWe/b2/silly_0.1.0-8.1_armhf.changes
456 B
Files
    
Offset 1, 5 lines modifiedOffset 1, 5 lines modified
  
1 ·7a39c1cc33ed0ad76b1a1d93dd399df0·62900·debug·optional·libsilly-dbgsym_0.1.0-8.1_armhf.deb1 ·7a39c1cc33ed0ad76b1a1d93dd399df0·62900·debug·optional·libsilly-dbgsym_0.1.0-8.1_armhf.deb
2 ·393aec52cfb14949135f84a6e0df95c2·21144·libdevel·extra·libsilly-dev_0.1.0-8.1_armhf.deb2 ·393aec52cfb14949135f84a6e0df95c2·21144·libdevel·extra·libsilly-dev_0.1.0-8.1_armhf.deb
3 ·09353fb9bf220c22fff2b909274b724e·181436·doc·extra·libsilly-doc_0.1.0-8.1_all.deb3 ·5b1d20bde0a50994dbb0b0f9cbba927f·181288·doc·extra·libsilly-doc_0.1.0-8.1_all.deb
4 ·ee84754f857986962a622d031f16a4ab·13528·libs·extra·libsilly_0.1.0-8.1_armhf.deb4 ·ee84754f857986962a622d031f16a4ab·13528·libs·extra·libsilly_0.1.0-8.1_armhf.deb
1.3 MB
libsilly-doc_0.1.0-8.1_all.deb
367 B
file list
    
Offset 1, 3 lines modifiedOffset 1, 3 lines modified
1 -rw-r--r--···0········0········0········4·2021-01-03·15:26:07.000000·debian-binary1 -rw-r--r--···0········0········0········4·2021-01-03·15:26:07.000000·debian-binary
2 -rw-r--r--···0········0········0·····3784·2021-01-03·15:26:07.000000·control.tar.xz2 -rw-r--r--···0········0········0·····3784·2021-01-03·15:26:07.000000·control.tar.xz
3 -rw-r--r--···0········0········0···177460·2021-01-03·15:26:07.000000·data.tar.xz3 -rw-r--r--···0········0········0···177312·2021-01-03·15:26:07.000000·data.tar.xz
98.0 B
control.tar.xz
70.0 B
control.tar
48.0 B
./md5sums
30.0 B
./md5sums
Files differ
1.3 MB
data.tar.xz
1.3 MB
data.tar
13.0 KB
file list
    
Offset 3, 56 lines modifiedOffset 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.gz6 -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.gz7 -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/copyright8 -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)····12316·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)····12053·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)····15811·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)····53959·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)····28390·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)····10691·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)····21186·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)····35541·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)····15570·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)····23008·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)····17157·2021-01-03·15:26:07.000000·./usr/share/doc/libsilly-doc/html/a00032_source.html10 -rw-r--r--···0·root·········(0)·root·········(0)····17157·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)····21186·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)····28390·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)····15570·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)····10691·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)····35541·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)····53959·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)····23008·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)····15811·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)····22457·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)····12053·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)····12316·2021-01-03·15:26:07.000000·./usr/share/doc/libsilly-doc/html/a00035_source.html
21 -rw-r--r--···0·root·········(0)·root·········(0)····10528·2021-01-03·15:26:07.000000·./usr/share/doc/libsilly-doc/html/a00035_source.html22 -rw-r--r--···0·root·········(0)·root·········(0)····10528·2021-01-03·15:26:07.000000·./usr/share/doc/libsilly-doc/html/a00038_source.html
22 -rw-r--r--···0·root·········(0)·root·········(0)····22457·2021-01-03·15:26:07.000000·./usr/share/doc/libsilly-doc/html/a00038_source.html 
23 -rw-r--r--···0·root·········(0)·root·········(0)····12721·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)····18660·2021-01-03·15:26:07.000000·./usr/share/doc/libsilly-doc/html/a00044_source.html23 -rw-r--r--···0·root·········(0)·root·········(0)····18660·2021-01-03·15:26:07.000000·./usr/share/doc/libsilly-doc/html/a00041_source.html
25 -rw-r--r--···0·root·········(0)·root·········(0)····18236·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)·····8701·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)····17143·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)····14015·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)····10525·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)····15219·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)·····8592·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)·····8597·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)····23209·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)·····8998·2021-01-03·15:26:07.000000·./usr/share/doc/libsilly-doc/html/a00074_source.html24 -rw-r--r--···0·root·········(0)·root·········(0)·····8998·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)·····8701·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)····12721·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)·····9011·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)····15428·2021-01-03·15:26:07.000000·./usr/share/doc/libsilly-doc/html/a00056_source.html
35 -rw-r--r--···0·root·········(0)·root·········(0)·····8505·2021-01-03·15:26:07.000000·./usr/share/doc/libsilly-doc/html/a00077_source.html29 -rw-r--r--···0·root·········(0)·root·········(0)·····8505·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)····13542·2021-01-03·15:26:07.000000·./usr/share/doc/libsilly-doc/html/a00062_source.html
36 -rw-r--r--···0·root·········(0)·root·········(0)····14670·2021-01-03·15:26:07.000000·./usr/share/doc/libsilly-doc/html/a00080_source.html31 -rw-r--r--···0·root·········(0)·root·········(0)····14670·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)····16111·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)·····7626·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)·····7621·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)·····7626·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)·····7622·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)·····7631·2021-01-03·15:26:07.000000·./usr/share/doc/libsilly-doc/html/a00083_source.html37 -rw-r--r--···0·root·········(0)·root·········(0)·····7631·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)····15428·2021-01-03·15:26:07.000000·./usr/share/doc/libsilly-doc/html/a00086_source.html38 -rw-r--r--···0·root·········(0)·root·········(0)····15713·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)·····7626·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)····13542·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)····15585·2021-01-03·15:26:07.000000·./usr/share/doc/libsilly-doc/html/a00095_source.html39 -rw-r--r--···0·root·········(0)·root·········(0)····15585·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)····17896·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)····10562·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)····16111·2021-01-03·15:26:07.000000·./usr/share/doc/libsilly-doc/html/a00098_source.html42 -rw-r--r--···0·root·········(0)·root·········(0)····14015·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)····15713·2021-01-03·15:26:07.000000·./usr/share/doc/libsilly-doc/html/a00101_source.html43 -rw-r--r--···0·root·········(0)·root·········(0)····15219·2021-01-03·15:26:07.000000·./usr/share/doc/libsilly-doc/html/a00101_source.html
44 -rw-r--r--···0·root·········(0)·root·········(0)·····7621·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)·····7626·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)·····7622·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)····10562·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)····17896·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)·····9011·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)····13435·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)····14655·2021-01-03·15:26:07.000000·./usr/share/doc/libsilly-doc/html/a00125_source.html44 -rw-r--r--···0·root·········(0)·root·········(0)····14655·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)····23209·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)····18236·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)····17143·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)····10525·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)····13435·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)·····8592·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)·····8597·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)····32596·2021-01-03·15:26:07.000000·./usr/share/doc/libsilly-doc/html/a00129.html52 -rw-r--r--···0·root·········(0)·root·········(0)····32596·2021-01-03·15:26:07.000000·./usr/share/doc/libsilly-doc/html/a00129.html
53 -rw-r--r--···0·root·········(0)·root·········(0)·····6963·2021-01-03·15:26:07.000000·./usr/share/doc/libsilly-doc/html/a00942.html53 -rw-r--r--···0·root·········(0)·root·········(0)·····6963·2021-01-03·15:26:07.000000·./usr/share/doc/libsilly-doc/html/a00942.html
54 -rw-r--r--···0·root·········(0)·root·········(0)····17147·2021-01-03·15:26:07.000000·./usr/share/doc/libsilly-doc/html/a00943.png54 -rw-r--r--···0·root·········(0)·root·········(0)····17147·2021-01-03·15:26:07.000000·./usr/share/doc/libsilly-doc/html/a00943.png
55 -rw-r--r--···0·root·········(0)·root·········(0)·····4253·2021-01-03·15:26:07.000000·./usr/share/doc/libsilly-doc/html/a00944.png55 -rw-r--r--···0·root·········(0)·root·········(0)·····4253·2021-01-03·15:26:07.000000·./usr/share/doc/libsilly-doc/html/a00944.png
56 -rw-r--r--···0·root·········(0)·root·········(0)····18861·2021-01-03·15:26:07.000000·./usr/share/doc/libsilly-doc/html/a00945.html56 -rw-r--r--···0·root·········(0)·root·········(0)····18861·2021-01-03·15:26:07.000000·./usr/share/doc/libsilly-doc/html/a00945.html
57 -rw-r--r--···0·root·········(0)·root·········(0)·····4475·2021-01-03·15:26:07.000000·./usr/share/doc/libsilly-doc/html/a00946.html57 -rw-r--r--···0·root·········(0)·root·········(0)·····4475·2021-01-03·15:26:07.000000·./usr/share/doc/libsilly-doc/html/a00946.html
58 -rw-r--r--···0·root·········(0)·root·········(0)·····3277·2021-01-03·15:26:07.000000·./usr/share/doc/libsilly-doc/html/a00947.png58 -rw-r--r--···0·root·········(0)·root·········(0)·····3277·2021-01-03·15:26:07.000000·./usr/share/doc/libsilly-doc/html/a00947.png
21.9 KB
./usr/share/doc/libsilly-doc/html/a00002_source.html
    
Offset 1, 15 lines modifiedOffset 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">2 <html·xmlns="http://www.w3.org/1999/xhtml">
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.4"/>6 <meta·name="generator"·content="Doxygen·1.9.4"/>
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/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 39, 23 lines modifiedOffset 39, 23 lines modified
39 <div·id="main-nav"></div>39 <div·id="main-nav"></div>
40 <div·id="nav-path"·class="navpath">40 <div·id="nav-path"·class="navpath">
41 ··<ul>41 ··<ul>
42 <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>42 <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>
43 </div>43 </div>
44 </div><!--·top·-->44 </div><!--·top·-->
45 <div·class="header">45 <div·class="header">
46 ··<div·class="headertitle"><div·class="title">SILLYImageLoader.cpp</div></div>46 ··<div·class="headertitle"><div·class="title">SILLYFileDataSource.cpp</div></div>
47 </div><!--header-->47 </div><!--header-->
48 <div·class="contents">48 <div·class="contents">
49 <div·class="fragment"><div·class="line"><a·id="l00001"·name="l00001"></a><span·class="lineno">····1</span><span·class="comment">/***********************************************************************</span></div>49 <div·class="fragment"><div·class="line"><a·id="l00001"·name="l00001"></a><span·class="lineno">····1</span><span·class="comment">/***********************************************************************</span></div>
50 <div·class="line"><a·id="l00002"·name="l00002"></a><span·class="lineno">····2</span><span·class="comment">····filename:···ImageLoader.cpp</span></div>50 <div·class="line"><a·id="l00002"·name="l00002"></a><span·class="lineno">····2</span><span·class="comment">····filename:···SILLYFileDataSource.cpp</span></div>
51 <div·class="line"><a·id="l00003"·name="l00003"></a><span·class="lineno">····3</span><span·class="comment">····created:····10·Jun·2006</span></div>51 <div·class="line"><a·id="l00003"·name="l00003"></a><span·class="lineno">····3</span><span·class="comment">····created:····20·Jul·2006</span></div>
52 <div·class="line"><a·id="l00004"·name="l00004"></a><span·class="lineno">····4</span><span·class="comment">····author:·····Olivier·Delannoy·</span></div>52 <div·class="line"><a·id="l00004"·name="l00004"></a><span·class="lineno">····4</span><span·class="comment">····author:·····Olivier·Delannoy·</span></div>
53 <div·class="line"><a·id="l00005"·name="l00005"></a><span·class="lineno">····5</span><span·class="comment"></span>·</div>53 <div·class="line"><a·id="l00005"·name="l00005"></a><span·class="lineno">····5</span><span·class="comment"></span>·</div>
54 <div·class="line"><a·id="l00006"·name="l00006"></a><span·class="lineno">····6</span><span·class="comment">····purpose:····Implementation·of·the·ImageLoader··</span></div>54 <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>
55 <div·class="line"><a·id="l00007"·name="l00007"></a><span·class="lineno">····7</span><span·class="comment">*************************************************************************/</span></div>55 <div·class="line"><a·id="l00007"·name="l00007"></a><span·class="lineno">····7</span><span·class="comment">*************************************************************************/</span></div>
56 <div·class="line"><a·id="l00008"·name="l00008"></a><span·class="lineno">····8</span><span·class="comment">/***************************************************************************</span></div>56 <div·class="line"><a·id="l00008"·name="l00008"></a><span·class="lineno">····8</span><span·class="comment">/***************************************************************************</span></div>
57 <div·class="line"><a·id="l00009"·name="l00009"></a><span·class="lineno">····9</span><span·class="comment">·*···Copyright·(C)·2004·-·2006·Paul·D·Turner·&amp;·The·CEGUI·Development·Team</span></div>57 <div·class="line"><a·id="l00009"·name="l00009"></a><span·class="lineno">····9</span><span·class="comment">·*···Copyright·(C)·2004·-·2006·Paul·D·Turner·&amp;·The·CEGUI·Development·Team</span></div>
58 <div·class="line"><a·id="l00010"·name="l00010"></a><span·class="lineno">···10</span><span·class="comment">·*</span></div>58 <div·class="line"><a·id="l00010"·name="l00010"></a><span·class="lineno">···10</span><span·class="comment">·*</span></div>
59 <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>59 <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>
60 <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>60 <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>
61 <div·class="line"><a·id="l00013"·name="l00013"></a><span·class="lineno">···13</span><span·class="comment">·*···&quot;Software&quot;),·to·deal·in·the·Software·without·restriction,·including</span></div>61 <div·class="line"><a·id="l00013"·name="l00013"></a><span·class="lineno">···13</span><span·class="comment">·*···&quot;Software&quot;),·to·deal·in·the·Software·without·restriction,·including</span></div>
Offset 75, 41 lines modifiedOffset 75, 76 lines modified
75 <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>75 <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>
76 <div·class="line"><a·id="l00028"·name="l00028"></a><span·class="lineno">···28</span><span·class="comment">·*···OTHER·DEALINGS·IN·THE·SOFTWARE.</span></div>76 <div·class="line"><a·id="l00028"·name="l00028"></a><span·class="lineno">···28</span><span·class="comment">·*···OTHER·DEALINGS·IN·THE·SOFTWARE.</span></div>
77 <div·class="line"><a·id="l00029"·name="l00029"></a><span·class="lineno">···29</span><span·class="comment">·***************************************************************************/</span></div>77 <div·class="line"><a·id="l00029"·name="l00029"></a><span·class="lineno">···29</span><span·class="comment">·***************************************************************************/</span></div>
78 <div·class="line"><a·id="l00030"·name="l00030"></a><span·class="lineno">···30</span><span·class="preprocessor">#ifdef·HAVE_CONFIG_H</span></div>78 <div·class="line"><a·id="l00030"·name="l00030"></a><span·class="lineno">···30</span><span·class="preprocessor">#ifdef·HAVE_CONFIG_H</span></div>
79 <div·class="line"><a·id="l00031"·name="l00031"></a><span·class="lineno">···31</span><span·class="preprocessor">#include·&lt;config.h&gt;</span></div>79 <div·class="line"><a·id="l00031"·name="l00031"></a><span·class="lineno">···31</span><span·class="preprocessor">#include·&lt;config.h&gt;</span></div>
80 <div·class="line"><a·id="l00032"·name="l00032"></a><span·class="lineno">···32</span><span·class="preprocessor">#endif</span></div>80 <div·class="line"><a·id="l00032"·name="l00032"></a><span·class="lineno">···32</span><span·class="preprocessor">#endif</span></div>
81 <div·class="line"><a·id="l00033"·name="l00033"></a><span·class="lineno">···33</span>·</div>81 <div·class="line"><a·id="l00033"·name="l00033"></a><span·class="lineno">···33</span>·</div>
82 <div·class="line"><a·id="l00034"·name="l00034"></a><span·class="lineno">···34</span><span·class="preprocessor">#include·&quot;SILLYImageLoader.h&quot;</span></div>82 <div·class="line"><a·id="l00034"·name="l00034"></a><span·class="lineno">···34</span><span·class="preprocessor">#include·&quot;SILLYFileDataSource.h&quot;</span></div>
 83 <div·class="line"><a·id="l00035"·name="l00035"></a><span·class="lineno">···35</span>·</div>
83 <div·class="line"><a·id="l00035"·name="l00035"></a><span·class="lineno">···35</span><span·class="preprocessor">#ifndef·SILLY_OPT_INLINE</span></div>84 <div·class="line"><a·id="l00036"·name="l00036"></a><span·class="lineno">···36</span><span·class="preprocessor">#ifndef·SILLY_OPT_INLINE</span></div>
84 <div·class="line"><a·id="l00036"·name="l00036"></a><span·class="lineno">···36</span><span·class="preprocessor">#define·inline·</span></div>85 <div·class="line"><a·id="l00037"·name="l00037"></a><span·class="lineno">···37</span><span·class="preprocessor">#define·inline·</span></div>
85 <div·class="line"><a·id="l00037"·name="l00037"></a><span·class="lineno">···37</span><span·class="preprocessor">#include·&quot;SILLYImageLoader.icpp&quot;</span></div>86 <div·class="line"><a·id="l00038"·name="l00038"></a><span·class="lineno">···38</span><span·class="preprocessor">#include·&quot;SILLYFileDataSource.icpp&quot;</span></div>
86 <div·class="line"><a·id="l00038"·name="l00038"></a><span·class="lineno">···38</span><span·class="preprocessor">#undef·inline</span></div>87 <div·class="line"><a·id="l00039"·name="l00039"></a><span·class="lineno">···39</span><span·class="preprocessor">#undef·inline</span></div>
87 <div·class="line"><a·id="l00039"·name="l00039"></a><span·class="lineno">···39</span><span·class="preprocessor">#endif·</span></div>88 <div·class="line"><a·id="l00040"·name="l00040"></a><span·class="lineno">···40</span><span·class="preprocessor">#endif·</span></div>
88 <div·class="line"><a·id="l00040"·name="l00040"></a><span·class="lineno">···40</span><span·class="preprocessor">#include·&quot;SILLYImageContext.h&quot;</span>·</div>89 <div·class="line"><a·id="l00041"·name="l00041"></a><span·class="lineno">···41</span><span·class="preprocessor">#include·&lt;stdio.h&gt;</span>·</div>
89 <div·class="line"><a·id="l00041"·name="l00041"></a><span·class="lineno">···41</span>·</div> 
90 <div·class="line"><a·id="l00042"·name="l00042"></a><span·class="lineno">···42</span><span·class="comment">//·Start·of·SILLY·namespace·section</span></div>90 <div·class="line"><a·id="l00042"·name="l00042"></a><span·class="lineno">···42</span><span·class="comment">//·Start·section·of·namespace·SILLY</span></div>
91 <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>91 <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>
92 <div·class="line"><a·id="l00044"·name="l00044"></a><span·class="lineno">···44</span>{</div>92 <div·class="line"><a·id="l00044"·name="l00044"></a><span·class="lineno">···44</span>{</div>
93 <div·class="line"><a·id="l00045"·name="l00045"></a><span·class="lineno">···45</span>·</div>93 <div·class="line"><a·id="l00045"·name="l00045"></a><span·class="lineno">···45</span>·</div>
 94 <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>
94 <div·class="line"><a·id="l00046"·name="l00046"></a><span·class="lineno">···46</span>·</div>95 <div·class="line"><a·id="l00047"·name="l00047"></a><span·class="lineno">···47</span>····:·d_error(true),·d_bytes(0),·d_size(0)</div>
95 <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> 
96 <div·class="line"><a·id="l00048"·name="l00048"></a><span·class="lineno">···48</span>{</div>96 <div·class="line"><a·id="l00048"·name="l00048"></a><span·class="lineno">···48</span>{</div>
 97 <div·class="line"><a·id="l00049"·name="l00049"></a><span·class="lineno">···49</span>····FILE*·data·=·fopen(filename,·<span·class="stringliteral">&quot;rb&quot;</span>);</div>
97 <div·class="line"><a·id="l00049"·name="l00049"></a><span·class="lineno">···49</span>····<span·class="keyword">delete</span>·context;</div>98 <div·class="line"><a·id="l00050"·name="l00050"></a><span·class="lineno">···50</span>····<span·class="keywordflow">if</span>·(data)</div>
98 <div·class="line"><a·id="l00050"·name="l00050"></a><span·class="lineno">···50</span>}</div> 
99 <div·class="line"><a·id="l00051"·name="l00051"></a><span·class="lineno">···51</span>·</div>99 <div·class="line"><a·id="l00051"·name="l00051"></a><span·class="lineno">···51</span>····{</div>
 100 <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>
 101 <div·class="line"><a·id="l00053"·name="l00053"></a><span·class="lineno">···53</span>········<span·class="keywordflow">if</span>·(status·==·-1)</div>
 102 <div·class="line"><a·id="l00054"·name="l00054"></a><span·class="lineno">···54</span>········{</div>
 103 <div·class="line"><a·id="l00055"·name="l00055"></a><span·class="lineno">···55</span>············fclose(data);</div>
 104 <div·class="line"><a·id="l00056"·name="l00056"></a><span·class="lineno">···56</span>············<span·class="keywordflow">return</span>;</div>
 105 <div·class="line"><a·id="l00057"·name="l00057"></a><span·class="lineno">···57</span>········}</div>
 106 <div·class="line"><a·id="l00058"·name="l00058"></a><span·class="lineno">···58</span>········status··=·ftell(data);</div>
 107 <div·class="line"><a·id="l00059"·name="l00059"></a><span·class="lineno">···59</span>········<span·class="keywordflow">if</span>·(status·==·-1)</div>
 108 <div·class="line"><a·id="l00060"·name="l00060"></a><span·class="lineno">···60</span>········{</div>
 109 <div·class="line"><a·id="l00061"·name="l00061"></a><span·class="lineno">···61</span>············fclose(data);</div>
 110 <div·class="line"><a·id="l00062"·name="l00062"></a><span·class="lineno">···62</span>············<span·class="keywordflow">return</span>;</div>
 111 <div·class="line"><a·id="l00063"·name="l00063"></a><span·class="lineno">···63</span>········}</div>
 112 <div·class="line"><a·id="l00064"·name="l00064"></a><span·class="lineno">···64</span>········d_size·=·status;</div>
 113 <div·class="line"><a·id="l00065"·name="l00065"></a><span·class="lineno">···65</span>········<span·class="keywordflow">if</span>·(d_size)</div>
 114 <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>
 115 <div·class="line"><a·id="l00067"·name="l00067"></a><span·class="lineno">···67</span>········<span·class="keywordflow">if</span>·(!·d_bytes)</div>
 116 <div·class="line"><a·id="l00068"·name="l00068"></a><span·class="lineno">···68</span>········{</div>
 117 <div·class="line"><a·id="l00069"·name="l00069"></a><span·class="lineno">···69</span>············fclose(data);</div>
 118 <div·class="line"><a·id="l00070"·name="l00070"></a><span·class="lineno">···70</span>············<span·class="keywordflow">return</span>;</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>········rewind(data);</div>
 121 <div·class="line"><a·id="l00073"·name="l00073"></a><span·class="lineno">···73</span>········status·=·fread(<span·class="keyword">reinterpret_cast&lt;</span><span·class="keywordtype">void</span>*<span·class="keyword">&gt;</span>(d_bytes),·1,·d_size,·data);</div>
 122 <div·class="line"><a·id="l00074"·name="l00074"></a><span·class="lineno">···74</span>········<span·class="keywordflow">if</span>·(status·!=·d_size)</div>
 123 <div·class="line"><a·id="l00075"·name="l00075"></a><span·class="lineno">···75</span>········{</div>
 124 <div·class="line"><a·id="l00076"·name="l00076"></a><span·class="lineno">···76</span>············<span·class="keyword">delete</span>·[]·d_bytes;</div>
 125 <div·class="line"><a·id="l00077"·name="l00077"></a><span·class="lineno">···77</span>············d_bytes·=·0;</div>
 126 <div·class="line"><a·id="l00078"·name="l00078"></a><span·class="lineno">···78</span>············fclose(data);</div>
 127 <div·class="line"><a·id="l00079"·name="l00079"></a><span·class="lineno">···79</span>········}</div>
 128 <div·class="line"><a·id="l00080"·name="l00080"></a><span·class="lineno">···80</span>········fclose(data);</div>
 129 <div·class="line"><a·id="l00081"·name="l00081"></a><span·class="lineno">···81</span>········d_error·=·<span·class="keyword">false</span>;········</div>
100 <div·class="line"><a·id="l00052"·name="l00052"></a><span·class="lineno">···52</span>·</div>130 <div·class="line"><a·id="l00082"·name="l00082"></a><span·class="lineno">···82</span>····}</div>
101 <div·class="line"><a·id="l00053"·name="l00053"></a><span·class="lineno">···53</span>}·<span·class="comment">//·end·of·SILLY·namespace·section·</span></div>131 <div·class="line"><a·id="l00083"·name="l00083"></a><span·class="lineno">···83</span>}</div>
102 <div·class="line"><a·id="l00054"·name="l00054"></a><span·class="lineno">···54</span>·</div>132 <div·class="line"><a·id="l00084"·name="l00084"></a><span·class="lineno">···84</span>·</div>
103 <div·class="line"><a·id="l00055"·name="l00055"></a><span·class="lineno">···55</span>·</div>133 <div·class="line"><a·id="l00085"·name="l00085"></a><span·class="lineno">···85</span>·</div>
104 <div·class="line"><a·id="l00056"·name="l00056"></a><span·class="lineno">···56</span>·</div>134 <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>
105 <div·class="line"><a·id="l00057"·name="l00057"></a><span·class="lineno">···57</span>·</div>135 <div·class="line"><a·id="l00087"·name="l00087"></a><span·class="lineno">···87</span>{</div>
 136 <div·class="line"><a·id="l00088"·name="l00088"></a><span·class="lineno">···88</span>····<span·class="keyword">delete</span>·[]·d_bytes;</div>
 137 <div·class="line"><a·id="l00089"·name="l00089"></a><span·class="lineno">···89</span>}</div>
 138 <div·class="line"><a·id="l00090"·name="l00090"></a><span·class="lineno">···90</span>·</div>
 139 <div·class="line"><a·id="l00091"·name="l00091"></a><span·class="lineno">···91</span>·</div>
 140 <div·class="line"><a·id="l00092"·name="l00092"></a><span·class="lineno">···92</span>}·<span·class="comment">//·End·section·of·namespace·SILLY·</span></div>
106 <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="a00020_source.html#l00045">SILLYJPGImageContext.cpp:46</a></div></div>141 <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="a00005_source.html#l00045">SILLYJPGImageContext.cpp:46</a></div></div>
107 <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="a00047_source.html#l00043">SILLYImageContext.h:44</a></div></div> 
108 <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">Destro[·...·truncated·by·diffoscope;·len:·123,·SHA:·c3f378cf2a3c9b6d61543362bdda59c7dbdb1bb92ef0c644cd65ee811a8ae6f0·...·]</a></div></div>142 <div·class="ttc"·id="aa00973_html_a0e751eeffe45217140e97ea89d65b4d7"><div·class="ttname"><a·href="a00973.html#a0e751eeffe45217140e97ea89d65b4d7">SILLY::FileDataSource::FileDataSource</a></div><div·class="ttdeci">FileDataSource(const·char·*filename)</div><div·class="ttdoc">Create·a·[·...·truncated·by·diffoscope;·len:·140,·SHA:·590f025d91dff85b880f6f948ac2c0d9419926b7e00d227f8a28c82b4312aa99·...·]</a></div></div>
 143 <div·class="ttc"·id="aa00973_html_a376d8b1791d5ab33e4c2674b9541901d"><div·class="ttname"><a·href="a00973.html#a376d8b1791d5ab33e4c2674b9541901d">SILLY::FileDataSource::~FileDataSource</a></div><div·class="ttdeci">~FileDataSource()</div><div·class="ttdoc">destructor</div><div·class="ttdef"><b>Definition:</b>·<a·href="a00002_source.html#l00086">SILLYFileDataSource.cpp:86</a></div></div>
109 </div><!--·fragment·--></div><!--·contents·-->144 </div><!--·fragment·--></div><!--·contents·-->
110 <!--·start·footer·part·-->145 <!--·start·footer·part·-->
111 <hr·class="footer"/><address·class="footer"><small>146 <hr·class="footer"/><address·class="footer"><small>
112 Generated·by&#160;<a·href="https://www.doxygen.org/index.html"><img·class="footer"·src="doxygen.svg"·width="104"·height="31"·alt="doxygen"/></a>·1.9.4147 Generated·by&#160;<a·href="https://www.doxygen.org/index.html"><img·class="footer"·src="doxygen.svg"·width="104"·height="31"·alt="doxygen"/></a>·1.9.4
113 </small></address>148 </small></address>
114 </body>149 </body>
115 </html>150 </html>
3.42 KB
html2text {}
    
Offset 4, 21 lines modifiedOffset 4, 21 lines modified
  
4 Simple·Image·Loading·LibrarY 0.1.04 Simple·Image·Loading·LibrarY 0.1.0
  
5 ····*·build5 ····*·build
6 ····*·reproducible-path6 ····*·reproducible-path
7 ····*·silly-0.1.07 ····*·silly-0.1.0
8 ····*·src8 ····*·src
9 SILLYImageLoader.cpp9 SILLYFileDataSource.cpp
10 ·1/***********************************************************************10 ·1/***********************************************************************
11 ·2·filename:·ImageLoader.cpp11 ·2·filename:·SILLYFileDataSource.cpp
12 ·3·created:·10·Jun·200612 ·3·created:·20·Jul·2006
13 ·4·author:·Olivier·Delannoy13 ·4·author:·Olivier·Delannoy
14 ·514 ·5
15 ·6·purpose:·Implementation·of·the·ImageLoader15 ·6·purpose:·Implementation·of·the·FileDataSource·methods
16 ·7*************************************************************************/16 ·7*************************************************************************/
17 ·8/***************************************************************************17 ·8/***************************************************************************
18 ·9·*·Copyright·(C)·2004·-·2006·Paul·D·Turner·&·The·CEGUI·Development·Team18 ·9·*·Copyright·(C)·2004·-·2006·Paul·D·Turner·&·The·CEGUI·Development·Team
19 ·10·*19 ·10·*
20 ·11·*·Permission·is·hereby·granted,·free·of·charge,·to·any·person·obtaining20 ·11·*·Permission·is·hereby·granted,·free·of·charge,·to·any·person·obtaining
21 ·12·*·a·copy·of·this·software·and·associated·documentation·files·(the21 ·12·*·a·copy·of·this·software·and·associated·documentation·files·(the
22 ·13·*·"Software"),·to·deal·in·the·Software·without·restriction,·including22 ·13·*·"Software"),·to·deal·in·the·Software·without·restriction,·including
Offset 39, 44 lines modifiedOffset 39, 80 lines modified
39 ·28·*·OTHER·DEALINGS·IN·THE·SOFTWARE.39 ·28·*·OTHER·DEALINGS·IN·THE·SOFTWARE.
40 ·2940 ·29
41 ***************************************************************************/41 ***************************************************************************/
42 ·30#ifdef·HAVE_CONFIG_H42 ·30#ifdef·HAVE_CONFIG_H
43 ·31#include·<config.h>43 ·31#include·<config.h>
44 ·32#endif44 ·32#endif
45 ·3345 ·33
46 ·34#include·"SILLYImageLoader.h"46 ·34#include·"SILLYFileDataSource.h"
 47 ·35
47 ·35#ifndef·SILLY_OPT_INLINE48 ·36#ifndef·SILLY_OPT_INLINE
48 ·36#define·inline49 ·37#define·inline
49 ·37#include·"SILLYImageLoader.icpp"50 ·38#include·"SILLYFileDataSource.icpp"
50 ·38#undef·inline51 ·39#undef·inline
51 ·39#endif52 ·40#endif
 53 ·41#include·<stdio.h>
 54 ·42//·Start·section·of·namespace·SILLY
52 ·40#include·"SILLYImageContext.h" 
53 ·41 
54 ·42//·Start·of·SILLY·namespace·section 
55 ·43namespace·SILLY55 ·43namespace·SILLY
56 ·44{56 ·44{
57 ·4557 ·45
58 ·46 
59 47void·ImageLoader::destroyContext(ImageContext*·context)58 46FileDataSource::FileDataSource(const·char*·filename)
 59 ·47·:·d_error(true),·d_bytes(0),·d_size(0)
60 ·48{60 ·48{
61 ·49·delete·context; 
62 ·50}61 ·49·FILE*·data·=·fopen(filename,·"rb");
 62 ·50·if·(data)
63 ·5163 ·51·{
64 ·52 
65 ·53}·//·end·of·SILLY·namespace·section64 ·52·long·status·=·fseek(data,·0,·SEEK_END);
 65 ·53·if·(status·==·-1)
66 ·5466 ·54·{
67 ·55 
68 ·5667 ·55·fclose(data);
 68 ·56·return;
69 ·5769 ·57·}
 70 ·58·status·=·ftell(data);
 71 ·59·if·(status·==·-1)
 72 ·60·{
 73 ·61·fclose(data);
 74 ·62·return;
 75 ·63·}
 76 ·64·d_size·=·status;
 77 ·65·if·(d_size)
 78 ·66·d_bytes·=·new·byte[d_size];
 79 ·67·if·(!·d_bytes)
 80 ·68·{
 81 ·69·fclose(data);
 82 ·70·return;
 83 ·71·}
 84 ·72·rewind(data);
 85 ·73·status·=·fread(reinterpret_cast<void*>(d_bytes),·1,·d_size,·data);
 86 ·74·if·(status·!=·d_size)
 87 ·75·{
 88 ·76·delete·[]·d_bytes;
 89 ·77·d_bytes·=·0;
 90 ·78·fclose(data);
 91 ·79·}
 92 ·80·fclose(data);
 93 ·81·d_error·=·false;
 94 ·82·}
 95 ·83}
 96 ·84
 97 ·85
 98 86FileDataSource::~FileDataSource()
 99 ·87{
 100 ·88·delete·[]·d_bytes;
 101 ·89}
 102 ·90
 103 ·91
 104 ·92}·//·End·section·of·namespace·SILLY
70 SILLY105 SILLY
71 Simple·Image·Loading·LibrarY·namespace.106 Simple·Image·Loading·LibrarY·namespace.
72 Definition:·SILLYJPGImageContext.cpp:46107 Definition:·SILLYJPGImageContext.cpp:46
73 SILLY::ImageContext 
74 Store·the·data·needed·by·an·ImageLoader·object·during·the·parsing·of·an·image. 
75 Definition:·SILLYImageContext.h:44 
76 SILLY::ImageLoader::destroyContext 
77 void·destroyContext(ImageContext·*context) 
78 Destroy·the·image·context. 
79 Definition:·SILLYImageLoader.cpp:47108 SILLY::FileDataSource::FileDataSource
 109 FileDataSource(const·char·*filename)
 110 Create·a·data·source·from·an·existing·file.
 111 Definition:·SILLYFileDataSource.cpp:46
 112 SILLY::FileDataSource::~FileDataSource
 113 ~FileDataSource()
 114 destructor
 115 Definition:·SILLYFileDataSource.cpp:86
  
80 ===============================================================================116 ===============================================================================
81 ·····Generated·by [doxygen]·1.9.4117 ·····Generated·by [doxygen]·1.9.4
27.1 KB
./usr/share/doc/libsilly-doc/html/a00005_source.html
    
Offset 1, 15 lines modifiedOffset 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">2 <html·xmlns="http://www.w3.org/1999/xhtml">
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.4"/>6 <meta·name="generator"·content="Doxygen·1.9.4"/>
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/SILLYMemoryDataSource.cpp·Source·File</title>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 35, 27 lines modifiedOffset 35, 27 lines modified
35 ··initMenu('',false,false,'search.php','Search');35 ··initMenu('',false,false,'search.php','Search');
36 });36 });
37 /*·@license-end·*/37 /*·@license-end·*/
38 </script>38 </script>
39 <div·id="main-nav"></div>39 <div·id="main-nav"></div>
40 <div·id="nav-path"·class="navpath">40 <div·id="nav-path"·class="navpath">
41 ··<ul>41 ··<ul>
42 <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>42 <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>
43 </div>43 </div>
44 </div><!--·top·-->44 </div><!--·top·-->
45 <div·class="header">45 <div·class="header">
46 ··<div·class="headertitle"><div·class="title">SILLYMemoryDataSource.cpp</div></div>46 ··<div·class="headertitle"><div·class="title">SILLYJPGImageContext.cpp</div></div>
47 </div><!--header-->47 </div><!--header-->
48 <div·class="contents">48 <div·class="contents">
49 <div·class="fragment"><div·class="line"><a·id="l00001"·name="l00001"></a><span·class="lineno">····1</span><span·class="comment">/***********************************************************************</span></div>49 <div·class="fragment"><div·class="line"><a·id="l00001"·name="l00001"></a><span·class="lineno">····1</span><span·class="comment">/***********************************************************************</span></div>
50 <div·class="line"><a·id="l00002"·name="l00002"></a><span·class="lineno">····2</span><span·class="comment">····filename:···SILLYMemoryDataSource.cpp</span></div>50 <div·class="line"><a·id="l00002"·name="l00002"></a><span·class="lineno">····2</span><span·class="comment">····filename:···SILLYJPGImageContext.cpp</span></div>
51 <div·class="line"><a·id="l00003"·name="l00003"></a><span·class="lineno">····3</span><span·class="comment">····created:····10·Jun·2006</span></div>51 <div·class="line"><a·id="l00003"·name="l00003"></a><span·class="lineno">····3</span><span·class="comment">····created:····11·Jun·2006</span></div>
52 <div·class="line"><a·id="l00004"·name="l00004"></a><span·class="lineno">····4</span><span·class="comment">····author:·····Olivier·Delannoy·</span></div>52 <div·class="line"><a·id="l00004"·name="l00004"></a><span·class="lineno">····4</span><span·class="comment">····author:·····Olivier·Delannoy·</span></div>
53 <div·class="line"><a·id="l00005"·name="l00005"></a><span·class="lineno">····5</span><span·class="comment"></span>·</div>53 <div·class="line"><a·id="l00005"·name="l00005"></a><span·class="lineno">····5</span><span·class="comment"></span>·</div>
54 <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>54 <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>
55 <div·class="line"><a·id="l00007"·name="l00007"></a><span·class="lineno">····7</span><span·class="comment">*************************************************************************/</span></div>55 <div·class="line"><a·id="l00007"·name="l00007"></a><span·class="lineno">····7</span><span·class="comment">*************************************************************************/</span></div>
56 <div·class="line"><a·id="l00008"·name="l00008"></a><span·class="lineno">····8</span><span·class="comment">/***************************************************************************</span></div>56 <div·class="line"><a·id="l00008"·name="l00008"></a><span·class="lineno">····8</span><span·class="comment">/***************************************************************************</span></div>
57 <div·class="line"><a·id="l00009"·name="l00009"></a><span·class="lineno">····9</span><span·class="comment">·*···Copyright·(C)·2004·-·2006·Paul·D·Turner·&amp;·The·CEGUI·Development·Team</span></div>57 <div·class="line"><a·id="l00009"·name="l00009"></a><span·class="lineno">····9</span><span·class="comment">·*···Copyright·(C)·2004·-·2006·Paul·D·Turner·&amp;·The·CEGUI·Development·Team</span></div>
58 <div·class="line"><a·id="l00010"·name="l00010"></a><span·class="lineno">···10</span><span·class="comment">·*</span></div>58 <div·class="line"><a·id="l00010"·name="l00010"></a><span·class="lineno">···10</span><span·class="comment">·*</span></div>
59 <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>59 <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>
60 <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>60 <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>
61 <div·class="line"><a·id="l00013"·name="l00013"></a><span·class="lineno">···13</span><span·class="comment">·*···&quot;Software&quot;),·to·deal·in·the·Software·without·restriction,·including</span></div>61 <div·class="line"><a·id="l00013"·name="l00013"></a><span·class="lineno">···13</span><span·class="comment">·*···&quot;Software&quot;),·to·deal·in·the·Software·without·restriction,·including</span></div>
Offset 75, 38 lines modifiedOffset 75, 107 lines modified
75 <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>75 <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>
76 <div·class="line"><a·id="l00028"·name="l00028"></a><span·class="lineno">···28</span><span·class="comment">·*···OTHER·DEALINGS·IN·THE·SOFTWARE.</span></div>76 <div·class="line"><a·id="l00028"·name="l00028"></a><span·class="lineno">···28</span><span·class="comment">·*···OTHER·DEALINGS·IN·THE·SOFTWARE.</span></div>
77 <div·class="line"><a·id="l00029"·name="l00029"></a><span·class="lineno">···29</span><span·class="comment">·***************************************************************************/</span></div>77 <div·class="line"><a·id="l00029"·name="l00029"></a><span·class="lineno">···29</span><span·class="comment">·***************************************************************************/</span></div>
78 <div·class="line"><a·id="l00030"·name="l00030"></a><span·class="lineno">···30</span><span·class="preprocessor">#ifdef·HAVE_CONFIG_H</span></div>78 <div·class="line"><a·id="l00030"·name="l00030"></a><span·class="lineno">···30</span><span·class="preprocessor">#ifdef·HAVE_CONFIG_H</span></div>
79 <div·class="line"><a·id="l00031"·name="l00031"></a><span·class="lineno">···31</span><span·class="preprocessor">#include·&lt;config.h&gt;</span></div>79 <div·class="line"><a·id="l00031"·name="l00031"></a><span·class="lineno">···31</span><span·class="preprocessor">#include·&lt;config.h&gt;</span></div>
80 <div·class="line"><a·id="l00032"·name="l00032"></a><span·class="lineno">···32</span><span·class="preprocessor">#endif</span></div>80 <div·class="line"><a·id="l00032"·name="l00032"></a><span·class="lineno">···32</span><span·class="preprocessor">#endif</span></div>
81 <div·class="line"><a·id="l00033"·name="l00033"></a><span·class="lineno">···33</span>·</div>81 <div·class="line"><a·id="l00033"·name="l00033"></a><span·class="lineno">···33</span>·</div>
82 <div·class="line"><a·id="l00034"·name="l00034"></a><span·class="lineno">···34</span><span·class="preprocessor">#include·&quot;SILLYMemoryDataSource.h&quot;</span></div>82 <div·class="line"><a·id="l00034"·name="l00034"></a><span·class="lineno">···34</span><span·class="preprocessor">#include·&quot;loaders/SILLYJPGImageContext.h&quot;</span></div>
83 <div·class="line"><a·id="l00035"·name="l00035"></a><span·class="lineno">···35</span>·</div>83 <div·class="line"><a·id="l00035"·name="l00035"></a><span·class="lineno">···35</span>·</div>
84 <div·class="line"><a·id="l00036"·name="l00036"></a><span·class="lineno">···36</span><span·class="preprocessor">#ifndef·SILLY_OPT_INLINE</span></div>84 <div·class="line"><a·id="l00036"·name="l00036"></a><span·class="lineno">···36</span><span·class="preprocessor">#ifndef·SILLY_OPT_INLINE</span></div>
85 <div·class="line"><a·id="l00037"·name="l00037"></a><span·class="lineno">···37</span><span·class="preprocessor">#define·inline·</span></div>85 <div·class="line"><a·id="l00037"·name="l00037"></a><span·class="lineno">···37</span><span·class="preprocessor">#define·inline·</span></div>
86 <div·class="line"><a·id="l00038"·name="l00038"></a><span·class="lineno">···38</span><span·class="preprocessor">#include·&quot;SILLYMemoryDataSource.icpp&quot;</span></div>86 <div·class="line"><a·id="l00038"·name="l00038"></a><span·class="lineno">···38</span><span·class="preprocessor">#include·&quot;loaders/SILLYJPGImageContext.icpp&quot;</span></div>
87 <div·class="line"><a·id="l00039"·name="l00039"></a><span·class="lineno">···39</span><span·class="preprocessor">#undef·inline</span></div>87 <div·class="line"><a·id="l00039"·name="l00039"></a><span·class="lineno">···39</span><span·class="preprocessor">#undef·inline</span></div>
88 <div·class="line"><a·id="l00040"·name="l00040"></a><span·class="lineno">···40</span><span·class="preprocessor">#endif·</span></div>88 <div·class="line"><a·id="l00040"·name="l00040"></a><span·class="lineno">···40</span><span·class="preprocessor">#endif</span></div>
89 <div·class="line"><a·id="l00041"·name="l00041"></a><span·class="lineno">···41</span>·</div>89 <div·class="line"><a·id="l00041"·name="l00041"></a><span·class="lineno">···41</span>·</div>
 90 <div·class="line"><a·id="l00042"·name="l00042"></a><span·class="lineno">···42</span><span·class="preprocessor">#include·&lt;jpeglib.h&gt;</span>·</div>
 91 <div·class="line"><a·id="l00043"·name="l00043"></a><span·class="lineno">···43</span>·</div>
90 <div·class="line"><a·id="l00042"·name="l00042"></a><span·class="lineno">···42</span><span·class="comment">//·Start·of·SILLY·namespace·section·</span></div>92 <div·class="line"><a·id="l00044"·name="l00044"></a><span·class="lineno">···44</span><span·class="comment">//·Start·section·of·namespace·SILLY</span></div>
91 <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>93 <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>
92 <div·class="line"><a·id="l00044"·name="l00044"></a><span·class="lineno">···44</span>{</div>94 <div·class="line"><a·id="l00046"·name="l00046"></a><span·class="lineno">···46</span>{</div>
93 <div·class="line"><a·id="l00045"·name="l00045"></a><span·class="lineno">···45</span>··</div>95 <div·class="line"><a·id="l00047"·name="l00047"></a><span·class="lineno">···47</span>·</div>
94 <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> 
95 <div·class="line"><a·id="l00047"·name="l00047"></a><span·class="lineno">···47</span>····:·d_bytes(data),·d_size(size)</div> 
96 <div·class="line"><a·id="l00048"·name="l00048"></a><span·class="lineno">···48</span>{</div>96 <div·class="line"><a·id="l00048"·name="l00048"></a><span·class="lineno">···48</span>·</div>
 97 <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>
97 <div·class="line"><a·id="l00049"·name="l00049"></a><span·class="lineno">···49</span>····assert(data·&amp;&amp;·<span·class="stringliteral">&quot;ASSERT:·data·point·to·an·invalid·memory&quot;</span>);</div> 
98 <div·class="line"><a·id="l00050"·name="l00050"></a><span·class="lineno">···50</span>····assert(size·&amp;&amp;·<span·class="stringliteral">&quot;ASSERT:·size·is·equal·to·0&quot;</span>);</div> 
99 <div·class="line"><a·id="l00051"·name="l00051"></a><span·class="lineno">···51</span>}</div>98 <div·class="line"><a·id="l00050"·name="l00050"></a><span·class="lineno">···50</span>{</div>
 99 <div·class="line"><a·id="l00051"·name="l00051"></a><span·class="lineno">···51</span>····<span·class="comment">//·Nothing·to·do·</span></div>
100 <div·class="line"><a·id="l00052"·name="l00052"></a><span·class="lineno">···52</span>·</div>100 <div·class="line"><a·id="l00052"·name="l00052"></a><span·class="lineno">···52</span>}</div>
101 <div·class="line"><a·id="l00053"·name="l00053"></a><span·class="lineno">···53</span>}·<span·class="comment">//·End·of·SILLY·namespace·section·</span></div> 
102 <div·class="line"><a·id="l00054"·name="l00054"></a><span·class="lineno">···54</span>·</div>101 <div·class="line"><a·id="l00053"·name="l00053"></a><span·class="lineno">···53</span>·</div>
 102 <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>
103 <div·class="line"><a·id="l00055"·name="l00055"></a><span·class="lineno">···55</span>·</div>103 <div·class="line"><a·id="l00055"·name="l00055"></a><span·class="lineno">···55</span>{</div>
 104 <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&lt;</span><a·class="code·hl_class"·href="a00945.html">JPGImageContext</a>*<span·class="keyword">&gt;</span>(cinfo-&gt;client_data);</div>
 105 <div·class="line"><a·id="l00057"·name="l00057"></a><span·class="lineno">···57</span>····cinfo-&gt;src-&gt;next_input_byte·=·jpg-&gt;d_source-&gt;<a·class="code·hl_function"·href="a00969.html#a3ae74c9d90450a3d9aa45191e1c21c13">getDataPtr</a>();</div>
 106 <div·class="line"><a·id="l00058"·name="l00058"></a><span·class="lineno">···58</span>····cinfo-&gt;src-&gt;bytes_in_buffer·=·jpg-&gt;d_source-&gt;<a·class="code·hl_function"·href="a00969.html#a319cde5b2ea76e92e922845ecfa5c615">getSize</a>();</div>
 107 <div·class="line"><a·id="l00059"·name="l00059"></a><span·class="lineno">···59</span>····<span·class="keywordflow">return</span>·TRUE;</div>
 108 <div·class="line"><a·id="l00060"·name="l00060"></a><span·class="lineno">···60</span>}</div>
 109 <div·class="line"><a·id="l00061"·name="l00061"></a><span·class="lineno">···61</span>·</div>
 110 <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>
 111 <div·class="line"><a·id="l00063"·name="l00063"></a><span·class="lineno">···63</span>{</div>
 112 <div·class="line"><a·id="l00064"·name="l00064"></a><span·class="lineno">···64</span>····<span·class="keywordflow">if</span>·(num_bytes·&gt;·0)</div>
 113 <div·class="line"><a·id="l00065"·name="l00065"></a><span·class="lineno">···65</span>····{</div>
 114 <div·class="line"><a·id="l00066"·name="l00066"></a><span·class="lineno">···66</span>········cinfo-&gt;src-&gt;next_input_byte·+=·(size_t)num_bytes;</div>
 115 <div·class="line"><a·id="l00067"·name="l00067"></a><span·class="lineno">···67</span>········cinfo-&gt;src-&gt;bytes_in_buffer·-=·(size_t)num_bytes;</div>
 116 <div·class="line"><a·id="l00068"·name="l00068"></a><span·class="lineno">···68</span>····}····</div>
 117 <div·class="line"><a·id="l00069"·name="l00069"></a><span·class="lineno">···69</span>}</div>
 118 <div·class="line"><a·id="l00070"·name="l00070"></a><span·class="lineno">···70</span>·</div>
 119 <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>
 120 <div·class="line"><a·id="l00072"·name="l00072"></a><span·class="lineno">···72</span>{</div>
 121 <div·class="line"><a·id="l00073"·name="l00073"></a><span·class="lineno">···73</span>····<span·class="comment">//·Nothing·to·do·</span></div>
 122 <div·class="line"><a·id="l00074"·name="l00074"></a><span·class="lineno">···74</span>}</div>
 123 <div·class="line"><a·id="l00075"·name="l00075"></a><span·class="lineno">···75</span>·</div>
 124 <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>
 125 <div·class="line"><a·id="l00077"·name="l00077"></a><span·class="lineno">···77</span>{</div>
 126 <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&lt;</span><a·class="code·hl_class"·href="a00945.html">JPGImageContext</a>*<span·class="keyword">&gt;</span>(cinfo-&gt;client_data);</div>
 127 <div·class="line"><a·id="l00079"·name="l00079"></a><span·class="lineno">···79</span>····<span·class="comment">//·TODO·</span></div>
 128 <div·class="line"><a·id="l00080"·name="l00080"></a><span·class="lineno">···80</span>····longjmp(jpg-&gt;setjmp_buffer,·1);</div>
 129 <div·class="line"><a·id="l00081"·name="l00081"></a><span·class="lineno">···81</span>····</div>
 130 <div·class="line"><a·id="l00082"·name="l00082"></a><span·class="lineno">···82</span>}</div>
 131 <div·class="line"><a·id="l00083"·name="l00083"></a><span·class="lineno">···83</span>·</div>
 132 <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>
 133 <div·class="line"><a·id="l00085"·name="l00085"></a><span·class="lineno">···85</span>{</div>
 134 <div·class="line"><a·id="l00086"·name="l00086"></a><span·class="lineno">···86</span>····<span·class="comment">//·Ignore·</span></div>
 135 <div·class="line"><a·id="l00087"·name="l00087"></a><span·class="lineno">···87</span>}</div>
 136 <div·class="line"><a·id="l00088"·name="l00088"></a><span·class="lineno">···88</span>·</div>
 137 <div·class="line"><a·id="l00089"·name="l00089"></a><span·class="lineno">···89</span>·</div>
 138 <div·class="line"><a·id="l00090"·name="l00090"></a><span·class="lineno">···90</span>JPGImageContext::JPGImageContext()</div>
 139 <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>
 140 <div·class="line"><a·id="l00092"·name="l00092"></a><span·class="lineno">···92</span>{</div>
 141 <div·class="line"><a·id="l00093"·name="l00093"></a><span·class="lineno">···93</span>····src_mgr.bytes_in_buffer·=·0;</div>
 142 <div·class="line"><a·id="l00094"·name="l00094"></a><span·class="lineno">···94</span>····src_mgr.next_input_byte·=·0;</div>
 143 <div·class="line"><a·id="l00095"·name="l00095"></a><span·class="lineno">···95</span>····src_mgr.init_source·=·JPG_init_source;</div>
 144 <div·class="line"><a·id="l00096"·name="l00096"></a><span·class="lineno">···96</span>····src_mgr.fill_input_buffer·=·JPG_fill_input_buffer;</div>
 145 <div·class="line"><a·id="l00097"·name="l00097"></a><span·class="lineno">···97</span>····src_mgr.skip_input_data·=·JPG_skip_input_data;</div>
 146 <div·class="line"><a·id="l00098"·name="l00098"></a><span·class="lineno">···98</span>····src_mgr.resync_to_restart·=·jpeg_resync_to_restart;</div>
 147 <div·class="line"><a·id="l00099"·name="l00099"></a><span·class="lineno">···99</span>····src_mgr.term_source·=·JPG_term_source;</div>
 148 <div·class="line"><a·id="l00100"·name="l00100"></a><span·class="lineno">··100</span>····jpeg_create_decompress(&amp;cinfo);</div>
 149 <div·class="line"><a·id="l00101"·name="l00101"></a><span·class="lineno">··101</span>····cinfo.src·=·&amp;src_mgr;</div>
 150 <div·class="line"><a·id="l00102"·name="l00102"></a><span·class="lineno">··102</span>····cinfo.client_data·=·<span·class="keyword">this</span>;</div>
 151 <div·class="line"><a·id="l00103"·name="l00103"></a><span·class="lineno">··103</span>····cinfo.err·=·jpeg_std_error(&amp;d_error_mgr);</div>
 152 <div·class="line"><a·id="l00104"·name="l00104"></a><span·class="lineno">··104</span>····d_error_mgr.error_exit·=·JPG_error_exit;</div>
Max diff block lines reached; 271/22926 bytes (1.18%) of diff not shown.
4.61 KB
html2text {}
    
Offset 4, 21 lines modifiedOffset 4, 22 lines modified
  
4 Simple·Image·Loading·LibrarY 0.1.04 Simple·Image·Loading·LibrarY 0.1.0
  
5 ····*·build5 ····*·build
6 ····*·reproducible-path6 ····*·reproducible-path
7 ····*·silly-0.1.07 ····*·silly-0.1.0
8 ····*·src8 ····*·src
9 SILLYMemoryDataSource.cpp9 ····*·loaders
 10 SILLYJPGImageContext.cpp
10 ·1/***********************************************************************11 ·1/***********************************************************************
11 ·2·filename:·SILLYMemoryDataSource.cpp12 ·2·filename:·SILLYJPGImageContext.cpp
12 ·3·created:·10·Jun·200613 ·3·created:·11·Jun·2006
13 ·4·author:·Olivier·Delannoy14 ·4·author:·Olivier·Delannoy
14 ·515 ·5
15 ·6·purpose:·SILLYMemoryDataSource·definition·for·the·SILLY·library16 ·6·purpose:·Definition·of·the·JPGImageContext·class·methods
16 ·7*************************************************************************/17 ·7*************************************************************************/
17 ·8/***************************************************************************18 ·8/***************************************************************************
18 ·9·*·Copyright·(C)·2004·-·2006·Paul·D·Turner·&·The·CEGUI·Development·Team19 ·9·*·Copyright·(C)·2004·-·2006·Paul·D·Turner·&·The·CEGUI·Development·Team
19 ·10·*20 ·10·*
20 ·11·*·Permission·is·hereby·granted,·free·of·charge,·to·any·person·obtaining21 ·11·*·Permission·is·hereby·granted,·free·of·charge,·to·any·person·obtaining
21 ·12·*·a·copy·of·this·software·and·associated·documentation·files·(the22 ·12·*·a·copy·of·this·software·and·associated·documentation·files·(the
22 ·13·*·"Software"),·to·deal·in·the·Software·without·restriction,·including23 ·13·*·"Software"),·to·deal·in·the·Software·without·restriction,·including
Offset 39, 39 lines modifiedOffset 40, 115 lines modified
39 ·28·*·OTHER·DEALINGS·IN·THE·SOFTWARE.40 ·28·*·OTHER·DEALINGS·IN·THE·SOFTWARE.
40 ·2941 ·29
41 ***************************************************************************/42 ***************************************************************************/
42 ·30#ifdef·HAVE_CONFIG_H43 ·30#ifdef·HAVE_CONFIG_H
43 ·31#include·<config.h>44 ·31#include·<config.h>
44 ·32#endif45 ·32#endif
45 ·3346 ·33
46 ·34#include·"SILLYMemoryDataSource.h"47 ·34#include·"loaders/SILLYJPGImageContext.h"
47 ·3548 ·35
48 ·36#ifndef·SILLY_OPT_INLINE49 ·36#ifndef·SILLY_OPT_INLINE
49 ·37#define·inline50 ·37#define·inline
50 ·38#include·"SILLYMemoryDataSource.icpp"51 ·38#include·"loaders/SILLYJPGImageContext.icpp"
51 ·39#undef·inline52 ·39#undef·inline
52 ·40#endif53 ·40#endif
53 ·4154 ·41
54 ·42//·Start·of·SILLY·namespace·section55 ·42#include·<jpeglib.h>
 56 ·43
 57 ·44//·Start·section·of·namespace·SILLY
55 ·43namespace·SILLY58 45namespace·SILLY
56 ·44{59 ·46{
 60 ·47
57 ·45 
58 46MemoryDataSource::MemoryDataSource(const·byte*·data,·size_t·size) 
59 ·47·:·d_bytes(data),·d_size(size) 
60 ·48{61 ·48
61 ·49·assert(data·&&·"ASSERT:·data·point·to·an·invalid·memory"); 
62 ·50·assert(size·&&·"ASSERT:·size·is·equal·to·0"); 
63 ·51}62 ·49void·JPG_init_source(j_decompress_ptr·cinfo)
 63 ·50{
 64 ·51·//·Nothing·to·do
64 ·5265 ·52}
65 ·53}·//·End·of·SILLY·namespace·section 
66 ·5466 ·53
 67 ·54boolean·JPG_fill_input_buffer(j_decompress_ptr·cinfo)
67 ·5568 ·55{
 69 ·56·JPGImageContext*·jpg·=·reinterpret_cast<JPGImageContext*>(cinfo-
 70 >client_data);
 71 ·57·cinfo->src->next_input_byte·=·jpg->d_source->getDataPtr();
 72 ·58·cinfo->src->bytes_in_buffer·=·jpg->d_source->getSize();
 73 ·59·return·TRUE;
 74 ·60}
 75 ·61
 76 ·62void·JPG_skip_input_data(j_decompress_ptr·cinfo,·long·num_bytes)
 77 ·63{
 78 ·64·if·(num_bytes·>·0)
 79 ·65·{
 80 ·66·cinfo->src->next_input_byte·+=·(size_t)num_bytes;
 81 ·67·cinfo->src->bytes_in_buffer·-=·(size_t)num_bytes;
 82 ·68·}
 83 ·69}
 84 ·70
 85 ·71void·JPG_term_source(j_decompress_ptr·cinfo)
 86 ·72{
 87 ·73·//·Nothing·to·do
 88 ·74}
 89 ·75
 90 ·76void·JPG_error_exit(j_common_ptr·cinfo)
 91 ·77{
 92 ·78·JPGImageContext*·jpg·=·reinterpret_cast<JPGImageContext*>(cinfo-
 93 >client_data);
 94 ·79·//·TODO
 95 ·80·longjmp(jpg->setjmp_buffer,·1);
 96 ·81
 97 ·82}
 98 ·83
 99 ·84void·JPG_emit_message(j_common_ptr·cinfo,·int·msg_level)
 100 ·85{
 101 ·86·//·Ignore
 102 ·87}
 103 ·88
 104 ·89
 105 ·90JPGImageContext::JPGImageContext()
 106 ·91·:·ImageContext(0,·0)
 107 ·92{
 108 ·93·src_mgr.bytes_in_buffer·=·0;
 109 ·94·src_mgr.next_input_byte·=·0;
 110 ·95·src_mgr.init_source·=·JPG_init_source;
 111 ·96·src_mgr.fill_input_buffer·=·JPG_fill_input_buffer;
 112 ·97·src_mgr.skip_input_data·=·JPG_skip_input_data;
 113 ·98·src_mgr.resync_to_restart·=·jpeg_resync_to_restart;
 114 ·99·src_mgr.term_source·=·JPG_term_source;
 115 ·100·jpeg_create_decompress(&cinfo);
 116 ·101·cinfo.src·=·&src_mgr;
 117 ·102·cinfo.client_data·=·this;
 118 ·103·cinfo.err·=·jpeg_std_error(&d_error_mgr);
 119 ·104·d_error_mgr.error_exit·=·JPG_error_exit;
 120 ·105
 121 ·106}
 122 ·107
 123 ·108
 124 ·109JPGImageContext::~JPGImageContext()
 125 ·110{
 126 ·111·jpeg_destroy_decompress(&cinfo);
 127 ·112}
 128 ·113
 129 ·114
 130 ·115void·JPGImageContext::setImageSize()
 131 ·116{
 132 ·117·setWidth(cinfo.output_width);
 133 ·118·setHeight(cinfo.output_height);
 134 ·119}
 135 ·120
 136 ·121}·//·End·section·of·namespace·SILLY
68 SILLY137 SILLY
Max diff block lines reached; 785/4697 bytes (16.71%) of diff not shown.
40.1 KB
./usr/share/doc/libsilly-doc/html/a00008_source.html
    
Offset 1, 15 lines modifiedOffset 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">2 <html·xmlns="http://www.w3.org/1999/xhtml">
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.4"/>6 <meta·name="generator"·content="Doxygen·1.9.4"/>
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/SILLYImageContext.cpp·Source·File</title>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 35, 27 lines modifiedOffset 35, 27 lines modified
35 ··initMenu('',false,false,'search.php','Search');35 ··initMenu('',false,false,'search.php','Search');
36 });36 });
37 /*·@license-end·*/37 /*·@license-end·*/
38 </script>38 </script>
39 <div·id="main-nav"></div>39 <div·id="main-nav"></div>
40 <div·id="nav-path"·class="navpath">40 <div·id="nav-path"·class="navpath">
41 ··<ul>41 ··<ul>
42 <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>42 <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>
43 </div>43 </div>
44 </div><!--·top·-->44 </div><!--·top·-->
45 <div·class="header">45 <div·class="header">
46 ··<div·class="headertitle"><div·class="title">SILLYImageContext.cpp</div></div>46 ··<div·class="headertitle"><div·class="title">SILLYJPGImageLoader.cpp</div></div>
47 </div><!--header-->47 </div><!--header-->
48 <div·class="contents">48 <div·class="contents">
49 <div·class="fragment"><div·class="line"><a·id="l00001"·name="l00001"></a><span·class="lineno">····1</span><span·class="comment">/***********************************************************************</span></div>49 <div·class="fragment"><div·class="line"><a·id="l00001"·name="l00001"></a><span·class="lineno">····1</span><span·class="comment">/***********************************************************************</span></div>
50 <div·class="line"><a·id="l00002"·name="l00002"></a><span·class="lineno">····2</span><span·class="comment">····filename:···SILLYImageContext.cpp</span></div>50 <div·class="line"><a·id="l00002"·name="l00002"></a><span·class="lineno">····2</span><span·class="comment">····filename:···SILLYJPGImageLoader.cpp</span></div>
51 <div·class="line"><a·id="l00003"·name="l00003"></a><span·class="lineno">····3</span><span·class="comment">····created:····10·Jun·2006</span></div>51 <div·class="line"><a·id="l00003"·name="l00003"></a><span·class="lineno">····3</span><span·class="comment">····created:····11·Jun·2006</span></div>
52 <div·class="line"><a·id="l00004"·name="l00004"></a><span·class="lineno">····4</span><span·class="comment">····author:·····Olivier·Delannoy·</span></div>52 <div·class="line"><a·id="l00004"·name="l00004"></a><span·class="lineno">····4</span><span·class="comment">····author:·····Olivier·Delannoy·</span></div>
53 <div·class="line"><a·id="l00005"·name="l00005"></a><span·class="lineno">····5</span><span·class="comment"></span>·</div>53 <div·class="line"><a·id="l00005"·name="l00005"></a><span·class="lineno">····5</span><span·class="comment"></span>·</div>
54 <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>54 <div·class="line"><a·id="l00006"·name="l00006"></a><span·class="lineno">····6</span><span·class="comment">····purpose:····Definition·of·JPGImageLoader·methods··</span></div>
55 <div·class="line"><a·id="l00007"·name="l00007"></a><span·class="lineno">····7</span><span·class="comment">*************************************************************************/</span></div>55 <div·class="line"><a·id="l00007"·name="l00007"></a><span·class="lineno">····7</span><span·class="comment">*************************************************************************/</span></div>
56 <div·class="line"><a·id="l00008"·name="l00008"></a><span·class="lineno">····8</span><span·class="comment">/***************************************************************************</span></div>56 <div·class="line"><a·id="l00008"·name="l00008"></a><span·class="lineno">····8</span><span·class="comment">/***************************************************************************</span></div>
57 <div·class="line"><a·id="l00009"·name="l00009"></a><span·class="lineno">····9</span><span·class="comment">·*···Copyright·(C)·2004·-·2006·Paul·D·Turner·&amp;·The·CEGUI·Development·Team</span></div>57 <div·class="line"><a·id="l00009"·name="l00009"></a><span·class="lineno">····9</span><span·class="comment">·*···Copyright·(C)·2004·-·2006·Paul·D·Turner·&amp;·The·CEGUI·Development·Team</span></div>
58 <div·class="line"><a·id="l00010"·name="l00010"></a><span·class="lineno">···10</span><span·class="comment">·*</span></div>58 <div·class="line"><a·id="l00010"·name="l00010"></a><span·class="lineno">···10</span><span·class="comment">·*</span></div>
59 <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>59 <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>
60 <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>60 <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>
61 <div·class="line"><a·id="l00013"·name="l00013"></a><span·class="lineno">···13</span><span·class="comment">·*···&quot;Software&quot;),·to·deal·in·the·Software·without·restriction,·including</span></div>61 <div·class="line"><a·id="l00013"·name="l00013"></a><span·class="lineno">···13</span><span·class="comment">·*···&quot;Software&quot;),·to·deal·in·the·Software·without·restriction,·including</span></div>
Offset 75, 67 lines modifiedOffset 75, 146 lines modified
75 <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>75 <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>
76 <div·class="line"><a·id="l00028"·name="l00028"></a><span·class="lineno">···28</span><span·class="comment">·*···OTHER·DEALINGS·IN·THE·SOFTWARE.</span></div>76 <div·class="line"><a·id="l00028"·name="l00028"></a><span·class="lineno">···28</span><span·class="comment">·*···OTHER·DEALINGS·IN·THE·SOFTWARE.</span></div>
77 <div·class="line"><a·id="l00029"·name="l00029"></a><span·class="lineno">···29</span><span·class="comment">·***************************************************************************/</span></div>77 <div·class="line"><a·id="l00029"·name="l00029"></a><span·class="lineno">···29</span><span·class="comment">·***************************************************************************/</span></div>
78 <div·class="line"><a·id="l00030"·name="l00030"></a><span·class="lineno">···30</span><span·class="preprocessor">#ifdef·HAVE_CONFIG_H</span></div>78 <div·class="line"><a·id="l00030"·name="l00030"></a><span·class="lineno">···30</span><span·class="preprocessor">#ifdef·HAVE_CONFIG_H</span></div>
79 <div·class="line"><a·id="l00031"·name="l00031"></a><span·class="lineno">···31</span><span·class="preprocessor">#include·&lt;config.h&gt;</span></div>79 <div·class="line"><a·id="l00031"·name="l00031"></a><span·class="lineno">···31</span><span·class="preprocessor">#include·&lt;config.h&gt;</span></div>
80 <div·class="line"><a·id="l00032"·name="l00032"></a><span·class="lineno">···32</span><span·class="preprocessor">#endif</span></div>80 <div·class="line"><a·id="l00032"·name="l00032"></a><span·class="lineno">···32</span><span·class="preprocessor">#endif</span></div>
81 <div·class="line"><a·id="l00033"·name="l00033"></a><span·class="lineno">···33</span>·</div>81 <div·class="line"><a·id="l00033"·name="l00033"></a><span·class="lineno">···33</span>·</div>
82 <div·class="line"><a·id="l00034"·name="l00034"></a><span·class="lineno">···34</span><span·class="preprocessor">#include·&quot;SILLYImageContext.h&quot;</span></div>82 <div·class="line"><a·id="l00034"·name="l00034"></a><span·class="lineno">···34</span><span·class="preprocessor">#include·&quot;loaders/SILLYJPGImageLoader.h&quot;</span></div>
 83 <div·class="line"><a·id="l00035"·name="l00035"></a><span·class="lineno">···35</span>·</div>
83 <div·class="line"><a·id="l00035"·name="l00035"></a><span·class="lineno">···35</span><span·class="preprocessor">#ifndef·SILLY_OPT_INLINE</span></div>84 <div·class="line"><a·id="l00036"·name="l00036"></a><span·class="lineno">···36</span><span·class="preprocessor">#ifndef·SILLY_OPT_INLINE</span></div>
84 <div·class="line"><a·id="l00036"·name="l00036"></a><span·class="lineno">···36</span><span·class="preprocessor">#define·inline·</span></div>85 <div·class="line"><a·id="l00037"·name="l00037"></a><span·class="lineno">···37</span><span·class="preprocessor">#define·inline·</span></div>
85 <div·class="line"><a·id="l00037"·name="l00037"></a><span·class="lineno">···37</span><span·class="preprocessor">#include·&quot;SILLYImageContext.icpp&quot;</span></div>86 <div·class="line"><a·id="l00038"·name="l00038"></a><span·class="lineno">···38</span><span·class="preprocessor">#include·&quot;loaders/SILLYJPGImageLoader.icpp&quot;</span></div>
86 <div·class="line"><a·id="l00038"·name="l00038"></a><span·class="lineno">···38</span><span·class="preprocessor">#undef·inline</span></div>87 <div·class="line"><a·id="l00039"·name="l00039"></a><span·class="lineno">···39</span><span·class="preprocessor">#undef·inline</span></div>
87 <div·class="line"><a·id="l00039"·name="l00039"></a><span·class="lineno">···39</span><span·class="preprocessor">#endif</span></div>88 <div·class="line"><a·id="l00040"·name="l00040"></a><span·class="lineno">···40</span><span·class="preprocessor">#endif</span></div>
88 <div·class="line"><a·id="l00040"·name="l00040"></a><span·class="lineno">···40</span><span·class="preprocessor">#include·&lt;cstring&gt;</span></div>89 <div·class="line"><a·id="l00041"·name="l00041"></a><span·class="lineno">···41</span><span·class="preprocessor">#include·&quot;loaders/SILLYJPGImageContext.h&quot;</span>·</div>
 90 <div·class="line"><a·id="l00042"·name="l00042"></a><span·class="lineno">···42</span>·</div>
89 <div·class="line"><a·id="l00041"·name="l00041"></a><span·class="lineno">···41</span><span·class="comment">//·Start·section·of·namespace·SILLY</span></div>91 <div·class="line"><a·id="l00043"·name="l00043"></a><span·class="lineno">···43</span><span·class="comment">//·Start·section·of·namespace·SILLY</span></div>
90 <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>92 <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>
91 <div·class="line"><a·id="l00043"·name="l00043"></a><span·class="lineno">···43</span>{·</div> 
92 <div·class="line"><a·id="l00044"·name="l00044"></a><span·class="lineno">···44</span>·</div> 
93 <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> 
94 <div·class="line"><a·id="l00046"·name="l00046"></a><span·class="lineno">···46</span>{</div>93 <div·class="line"><a·id="l00045"·name="l00045"></a><span·class="lineno">···45</span>{</div>
95 <div·class="line"><a·id="l00047"·name="l00047"></a><span·class="lineno">···47</span>····<span·class="keywordtype">size_t</span>·depth;</div>94 <div·class="line"><a·id="l00046"·name="l00046"></a><span·class="lineno">···46</span>JPGImageLoader::JPGImageLoader()</div>
 95 <div·class="line"><a·id="l00047"·name="l00047"></a><span·class="lineno">···47</span>····:·ImageLoader(<span·class="stringliteral">&quot;JPG·Image·Loader·based·on·jpeg-6b&quot;</span>)</div>
96 <div·class="line"><a·id="l00048"·name="l00048"></a><span·class="lineno">···48</span>····<span·class="keywordflow">switch</span>(d_format)</div>96 <div·class="line"><a·id="l00048"·name="l00048"></a><span·class="lineno">···48</span>{</div>
97 <div·class="line"><a·id="l00049"·name="l00049"></a><span·class="lineno">···49</span>····{</div>97 <div·class="line"><a·id="l00049"·name="l00049"></a><span·class="lineno">···49</span>}</div>
98 <div·class="line"><a·id="l00050"·name="l00050"></a><span·class="lineno">···50</span>····<span·class="keywordflow">case</span>·PF_A1B5G5R5:</div> 
99 <div·class="line"><a·id="l00051"·name="l00051"></a><span·class="lineno">···51</span>········depth·=·2;</div> 
100 <div·class="line"><a·id="l00052"·name="l00052"></a><span·class="lineno">···52</span>········<span·class="keywordflow">break</span>;</div> 
101 <div·class="line"><a·id="l00053"·name="l00053"></a><span·class="lineno">···53</span>····<span·class="keywordflow">case</span>·PF_RGB:</div> 
102 <div·class="line"><a·id="l00054"·name="l00054"></a><span·class="lineno">···54</span>········depth·=·3;</div> 
103 <div·class="line"><a·id="l00055"·name="l00055"></a><span·class="lineno">···55</span>········<span·class="keywordflow">break</span>;</div> 
104 <div·class="line"><a·id="l00056"·name="l00056"></a><span·class="lineno">···56</span>····<span·class="keywordflow">case</span>·PF_RGBA:</div> 
105 <div·class="line"><a·id="l00057"·name="l00057"></a><span·class="lineno">···57</span>········depth·=·4;</div> 
106 <div·class="line"><a·id="l00058"·name="l00058"></a><span·class="lineno">···58</span>········<span·class="keywordflow">break</span>;</div> 
107 <div·class="line"><a·id="l00059"·name="l00059"></a><span·class="lineno">···59</span>····}</div>98 <div·class="line"><a·id="l00050"·name="l00050"></a><span·class="lineno">···50</span>·</div>
 99 <div·class="line"><a·id="l00051"·name="l00051"></a><span·class="lineno">···51</span>JPGImageLoader::~JPGImageLoader()</div>
 100 <div·class="line"><a·id="l00052"·name="l00052"></a><span·class="lineno">···52</span>{</div>
 101 <div·class="line"><a·id="l00053"·name="l00053"></a><span·class="lineno">···53</span>}</div>
 102 <div·class="line"><a·id="l00054"·name="l00054"></a><span·class="lineno">···54</span>·</div>
 103 <div·class="line"><a·id="l00055"·name="l00055"></a><span·class="lineno">···55</span>·</div>
 104 <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>&amp;·formatSource,·<a·class="code·hl_class"·href="a00969.html">DataSource</a>*·data)</div>
 105 <div·class="line"><a·id="l00057"·name="l00057"></a><span·class="lineno">···57</span>{</div>
 106 <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>
 107 <div·class="line"><a·id="l00059"·name="l00059"></a><span·class="lineno">···59</span>····jpg-&gt;d_source·=·data;</div>
108 <div·class="line"><a·id="l00060"·name="l00060"></a><span·class="lineno">···60</span>·······</div>108 <div·class="line"><a·id="l00060"·name="l00060"></a><span·class="lineno">···60</span>····</div>
109 <div·class="line"><a·id="l00061"·name="l00061"></a><span·class="lineno">···61</span>····<span·class="comment">//·Do·the·flipping·</span></div> 
110 <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> 
111 <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> 
112 <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> 
113 <div·class="line"><a·id="l00065"·name="l00065"></a><span·class="lineno">···65</span>····<span·class="keywordflow">if</span>·(·!tmp·)</div>109 <div·class="line"><a·id="l00061"·name="l00061"></a><span·class="lineno">···61</span>····<span·class="keywordflow">if</span>·(!·jpg)</div>
 110 <div·class="line"><a·id="l00062"·name="l00062"></a><span·class="lineno">···62</span>········<span·class="keywordflow">return</span>·0;</div>
 111 <div·class="line"><a·id="l00063"·name="l00063"></a><span·class="lineno">···63</span>····<span·class="keywordflow">if</span>·(setjmp(jpg-&gt;setjmp_buffer))</div>
 112 <div·class="line"><a·id="l00064"·name="l00064"></a><span·class="lineno">···64</span>····{</div>
 113 <div·class="line"><a·id="l00065"·name="l00065"></a><span·class="lineno">···65</span>········<span·class="keyword">delete</span>·jpg;</div>
114 <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>114 <div·class="line"><a·id="l00066"·name="l00066"></a><span·class="lineno">···66</span>········<span·class="keywordflow">return</span>·0;</div>
115 <div·class="line"><a·id="l00067"·name="l00067"></a><span·class="lineno">···67</span>····</div>115 <div·class="line"><a·id="l00067"·name="l00067"></a><span·class="lineno">···67</span>····}</div>
116 <div·class="line"><a·id="l00068"·name="l00068"></a><span·class="lineno">···68</span>····<span·class="keywordtype">size_t</span>·y·,·y2;</div> 
117 <div·class="line"><a·id="l00069"·name="l00069"></a><span·class="lineno">···69</span>····y2·=·d_height·-·1;</div>116 <div·class="line"><a·id="l00068"·name="l00068"></a><span·class="lineno">···68</span>····jpeg_read_header(&amp;(jpg-&gt;cinfo),·TRUE);</div>
118 <div·class="line"><a·id="l00070"·name="l00070"></a><span·class="lineno">···70</span>····<span·class="keywordflow">for</span>·(·y·=·0;·y·&lt;·d_height·&gt;&gt;·1;·y++·)</div>117 <div·class="line"><a·id="l00069"·name="l00069"></a><span·class="lineno">···69</span>····<span·class="keywordflow">if</span>·(!·jpeg_start_decompress(&amp;(jpg-&gt;cinfo)))</div>
119 <div·class="line"><a·id="l00071"·name="l00071"></a><span·class="lineno">···71</span>····{</div>118 <div·class="line"><a·id="l00070"·name="l00070"></a><span·class="lineno">···70</span>····{</div>
120 <div·class="line"><a·id="l00072"·name="l00072"></a><span·class="lineno">···72</span>········p1·=·(d_pixels)·+·len·*·y;</div> 
121 <div·class="line"><a·id="l00073"·name="l00073"></a><span·class="lineno">···73</span>········p2·=·(d_pixels)·+·len·*·y2;</div> 
122 <div·class="line"><a·id="l00074"·name="l00074"></a><span·class="lineno">···74</span>········memcpy(·tmp,·p1,·len·);</div> 
123 <div·class="line"><a·id="l00075"·name="l00075"></a><span·class="lineno">···75</span>········memcpy(·p1,·p2,·len·);</div> 
124 <div·class="line"><a·id="l00076"·name="l00076"></a><span·class="lineno">···76</span>········memcpy(·p2,·tmp,·len·);</div> 
125 <div·class="line"><a·id="l00077"·name="l00077"></a><span·class="lineno">···77</span>········y2--;</div>119 <div·class="line"><a·id="l00071"·name="l00071"></a><span·class="lineno">···71</span>········<span·class="keyword">delete</span>·jpg;</div>
 120 <div·class="line"><a·id="l00072"·name="l00072"></a><span·class="lineno">···72</span>········<span·class="keywordflow">return</span>·0;</div>
126 <div·class="line"><a·id="l00078"·name="l00078"></a><span·class="lineno">···78</span>····}</div>121 <div·class="line"><a·id="l00073"·name="l00073"></a><span·class="lineno">···73</span>····}</div>
 122 <div·class="line"><a·id="l00074"·name="l00074"></a><span·class="lineno">···74</span>········</div>
 123 <div·class="line"><a·id="l00075"·name="l00075"></a><span·class="lineno">···75</span>····</div>
 124 <div·class="line"><a·id="l00076"·name="l00076"></a><span·class="lineno">···76</span>····<span·class="keywordflow">if</span>·(jpg-&gt;cinfo.output_components·!=·1·&amp;&amp;·jpg-&gt;cinfo.output_components·!=·3)</div>
 125 <div·class="line"><a·id="l00077"·name="l00077"></a><span·class="lineno">···77</span>····{</div>
 126 <div·class="line"><a·id="l00078"·name="l00078"></a><span·class="lineno">···78</span>········printf(<span·class="stringliteral">&quot;JPG·unsupported·bpp:·%d\n&quot;</span>,·jpg-&gt;cinfo.output_components·);</div>
 127 <div·class="line"><a·id="l00079"·name="l00079"></a><span·class="lineno">···79</span>········jpeg_finish_decompress(&amp;·jpg-&gt;cinfo);</div>
127 <div·class="line"><a·id="l00079"·name="l00079"></a><span·class="lineno">···79</span>····<span·class="keyword">delete</span>·[]·tmp;</div>128 <div·class="line"><a·id="l00080"·name="l00080"></a><span·class="lineno">···80</span>········<span·class="keyword">delete</span>·jpg;</div>
128 <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>129 <div·class="line"><a·id="l00081"·name="l00081"></a><span·class="lineno">···81</span>········<span·class="keywordflow">return</span>·0;</div>
129 <div·class="line"><a·id="l00081"·name="l00081"></a><span·class="lineno">···81</span>}</div> 
130 <div·class="line"><a·id="l00082"·name="l00082"></a><span·class="lineno">···82</span>·</div>130 <div·class="line"><a·id="l00082"·name="l00082"></a><span·class="lineno">···82</span>····}</div>
 131 <div·class="line"><a·id="l00083"·name="l00083"></a><span·class="lineno">···83</span>····formatSource··=·PF_RGB;·<span·class="comment">//·It&#39;s·not·true·but·we·handle·both·the·same·way</span></div>
 132 <div·class="line"><a·id="l00084"·name="l00084"></a><span·class="lineno">···84</span>····<span·class="comment">//printf(&quot;Image·info:·size:·%dx%d·-·bpp:·%d\n&quot;,··jpg-&gt;cinfo.output_width,·jpg-&gt;cinfo.output_height,·jpg-&gt;cinfo.output_components);</span></div>
 133 <div·class="line"><a·id="l00085"·name="l00085"></a><span·class="lineno">···85</span>····</div>
 134 <div·class="line"><a·id="l00086"·name="l00086"></a><span·class="lineno">···86</span>····jpg-&gt;setImageSize();</div>
Max diff block lines reached; 271/34572 bytes (0.78%) of diff not shown.
6.2 KB
html2text {}
    
Offset 4, 21 lines modifiedOffset 4, 22 lines modified
  
4 Simple·Image·Loading·LibrarY 0.1.04 Simple·Image·Loading·LibrarY 0.1.0
  
5 ····*·build5 ····*·build
6 ····*·reproducible-path6 ····*·reproducible-path
7 ····*·silly-0.1.07 ····*·silly-0.1.0
8 ····*·src8 ····*·src
9 SILLYImageContext.cpp9 ····*·loaders
 10 SILLYJPGImageLoader.cpp
10 ·1/***********************************************************************11 ·1/***********************************************************************
11 ·2·filename:·SILLYImageContext.cpp12 ·2·filename:·SILLYJPGImageLoader.cpp
12 ·3·created:·10·Jun·200613 ·3·created:·11·Jun·2006
13 ·4·author:·Olivier·Delannoy14 ·4·author:·Olivier·Delannoy
14 ·515 ·5
15 ·6·purpose:·Implementation·file·for·ImageContext·class16 ·6·purpose:·Definition·of·JPGImageLoader·methods
16 ·7*************************************************************************/17 ·7*************************************************************************/
17 ·8/***************************************************************************18 ·8/***************************************************************************
18 ·9·*·Copyright·(C)·2004·-·2006·Paul·D·Turner·&·The·CEGUI·Development·Team19 ·9·*·Copyright·(C)·2004·-·2006·Paul·D·Turner·&·The·CEGUI·Development·Team
19 ·10·*20 ·10·*
20 ·11·*·Permission·is·hereby·granted,·free·of·charge,·to·any·person·obtaining21 ·11·*·Permission·is·hereby·granted,·free·of·charge,·to·any·person·obtaining
21 ·12·*·a·copy·of·this·software·and·associated·documentation·files·(the22 ·12·*·a·copy·of·this·software·and·associated·documentation·files·(the
22 ·13·*·"Software"),·to·deal·in·the·Software·without·restriction,·including23 ·13·*·"Software"),·to·deal·in·the·Software·without·restriction,·including
Offset 39, 68 lines modifiedOffset 40, 163 lines modified
39 ·28·*·OTHER·DEALINGS·IN·THE·SOFTWARE.40 ·28·*·OTHER·DEALINGS·IN·THE·SOFTWARE.
40 ·2941 ·29
41 ***************************************************************************/42 ***************************************************************************/
42 ·30#ifdef·HAVE_CONFIG_H43 ·30#ifdef·HAVE_CONFIG_H
43 ·31#include·<config.h>44 ·31#include·<config.h>
44 ·32#endif45 ·32#endif
45 ·3346 ·33
46 ·34#include·"SILLYImageContext.h"47 ·34#include·"loaders/SILLYJPGImageLoader.h"
 48 ·35
47 ·35#ifndef·SILLY_OPT_INLINE49 ·36#ifndef·SILLY_OPT_INLINE
48 ·36#define·inline50 ·37#define·inline
49 ·37#include·"SILLYImageContext.icpp"51 ·38#include·"loaders/SILLYJPGImageLoader.icpp"
50 ·38#undef·inline52 ·39#undef·inline
51 ·39#endif53 ·40#endif
52 ·40#include·<cstring>54 ·41#include·"loaders/SILLYJPGImageContext.h"
 55 ·42
53 ·41//·Start·section·of·namespace·SILLY56 ·43//·Start·section·of·namespace·SILLY
54 ·42namespace·SILLY57 ·44namespace·SILLY
55 ·43{58 ·45{
56 ·44 
57 45bool·ImageContext::flipVertically()59 ·46JPGImageLoader::JPGImageLoader()
 60 ·47·:·ImageLoader("JPG·Image·Loader·based·on·jpeg-6b")
58 ·46{61 ·48{
 62 ·49}
 63 ·50
 64 ·51JPGImageLoader::~JPGImageLoader()
 65 ·52{
 66 ·53}
 67 ·54
 68 ·55
 69 56ImageContext*·JPGImageLoader::loadHeader(PixelFormat&·formatSource,
 70 DataSource*·data)
 71 ·57{
 72 ·58·JPGImageContext*·jpg·=·new·JPGImageContext;
 73 ·59·jpg->d_source·=·data;
59 ·47·size_t·depth; 
60 ·48·switch(d_format) 
61 ·49·{ 
62 ·50·case·PF_A1B5G5R5: 
63 ·51·depth·=·2; 
64 ·52·break; 
65 ·53·case·PF_RGB: 
66 ·54·depth·=·3; 
67 ·55·break; 
68 ·56·case·PF_RGBA: 
69 ·57·depth·=·4; 
70 ·58·break; 
71 ·59·} 
72 ·6074 ·60
73 ·61·//·Do·the·flipping 
74 ·62·byte·*p1,*p2,*tmp;·//·tmp·pointers 
75 ·63·size_t·len·=·d_width·*·depth;·//·length·of·horizontal·line·in·bytes 
76 ·64·tmp·=·new·byte[len];·//·Allocate·a·temporary·line 
77 ·65·if·(·!tmp·)75 ·61·if·(!·jpg)
 76 ·62·return·0;
 77 ·63·if·(setjmp(jpg->setjmp_buffer))
 78 ·64·{
 79 ·65·delete·jpg;
 80 ·66·return·0;
 81 ·67·}
 82 ·68·jpeg_read_header(&(jpg->cinfo),·TRUE);
 83 ·69·if·(!·jpeg_start_decompress(&(jpg->cinfo)))
 84 ·70·{
 85 ·71·delete·jpg;
 86 ·72·return·0;
 87 ·73·}
 88 ·74
 89 ·75
 90 ·76·if·(jpg->cinfo.output_components·!=·1·&&·jpg->cinfo.output_components·!=·3)
 91 ·77·{
 92 ·78·printf("JPG·unsupported·bpp:·%d\n",·jpg->cinfo.output_components·);
 93 ·79·jpeg_finish_decompress(&·jpg->cinfo);
 94 ·80·delete·jpg;
 95 ·81·return·0;
 96 ·82·}
 97 ·83·formatSource·=·PF_RGB;·//·It's·not·true·but·we·handle·both·the·same·way
 98 ·84·//printf("Image·info:·size:·%dx%d·-·bpp:·%d\n",·jpg->cinfo.output_width,
 99 jpg->cinfo.output_height,·jpg->cinfo.output_components);
 100 ·85
 101 ·86·jpg->setImageSize();
 102 ·87·return·jpg;
 103 ·88}
 104 ·89
 105 90bool·JPGImageLoader::loadImageData(PixelOrigin·origin,
 106 ·91·DataSource*·data,
 107 ·92·ImageContext*·context)
 108 ·93{
 109 ·94·JPGImageContext*·jpg·=·static_cast<JPGImageContext*>(context);
 110 ·95
 111 ·96·//·Allocate·a·buffer
 112 ·97·int·row_stride·=·jpg->getWidth()·*·jpg->cinfo.output_components;
 113 ·98·JSAMPARRAY·buffer·=·(*·jpg->cinfo.mem->alloc_sarray)(
 114 ·99·(j_common_ptr)(&·jpg->cinfo),
 115 ·100·JPOOL_IMAGE,
 116 ·101·row_stride,
 117 ·102·1);
 118 ·103·bool·finished·=·true;
 119 ·104·size_t·height·=·jpg->getHeight();
 120 ·105·size_t·width·=·jpg->getWidth();
 121 ·106
 122 ·107
 123 ·108·while(jpg->cinfo.output_scanline·<·height)
 124 ·109·{
 125 ·110·int·num_rows·=·jpeg_read_scanlines(&·jpg->cinfo,·buffer,·1);
Max diff block lines reached; 996/6324 bytes (15.75%) of diff not shown.
67.4 KB
./usr/share/doc/libsilly-doc/html/a00011_source.html
    
Offset 1, 15 lines modifiedOffset 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">2 <html·xmlns="http://www.w3.org/1999/xhtml">
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.4"/>6 <meta·name="generator"·content="Doxygen·1.9.4"/>
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/SILLYTGAImageLoader.cpp·Source·File</title>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 39, 23 lines modifiedOffset 39, 23 lines modified
39 <div·id="main-nav"></div>39 <div·id="main-nav"></div>
40 <div·id="nav-path"·class="navpath">40 <div·id="nav-path"·class="navpath">
41 ··<ul>41 ··<ul>
42 <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>42 <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>
43 </div>43 </div>
44 </div><!--·top·-->44 </div><!--·top·-->
45 <div·class="header">45 <div·class="header">
46 ··<div·class="headertitle"><div·class="title">SILLYTGAImageLoader.cpp</div></div>46 ··<div·class="headertitle"><div·class="title">SILLYPNGImageContext.cpp</div></div>
47 </div><!--header-->47 </div><!--header-->
48 <div·class="contents">48 <div·class="contents">
49 <div·class="fragment"><div·class="line"><a·id="l00001"·name="l00001"></a><span·class="lineno">····1</span><span·class="comment">/***********************************************************************</span></div>49 <div·class="fragment"><div·class="line"><a·id="l00001"·name="l00001"></a><span·class="lineno">····1</span><span·class="comment">/***********************************************************************</span></div>
50 <div·class="line"><a·id="l00002"·name="l00002"></a><span·class="lineno">····2</span><span·class="comment">····filename:···SILLYTGAImageLoader.cpp</span></div>50 <div·class="line"><a·id="l00002"·name="l00002"></a><span·class="lineno">····2</span><span·class="comment">····filename:···SILLYPNGImageContext.cpp</span></div>
51 <div·class="line"><a·id="l00003"·name="l00003"></a><span·class="lineno">····3</span><span·class="comment">····created:····11·Jun·2006</span></div>51 <div·class="line"><a·id="l00003"·name="l00003"></a><span·class="lineno">····3</span><span·class="comment">····created:····11·Jun·2006</span></div>
52 <div·class="line"><a·id="l00004"·name="l00004"></a><span·class="lineno">····4</span><span·class="comment">····author:·····Olivier·Delannoy·</span></div>52 <div·class="line"><a·id="l00004"·name="l00004"></a><span·class="lineno">····4</span><span·class="comment">····author:·····Olivier·Delannoy·</span></div>
53 <div·class="line"><a·id="l00005"·name="l00005"></a><span·class="lineno">····5</span><span·class="comment"></span>·</div>53 <div·class="line"><a·id="l00005"·name="l00005"></a><span·class="lineno">····5</span><span·class="comment"></span>·</div>
54 <div·class="line"><a·id="l00006"·name="l00006"></a><span·class="lineno">····6</span><span·class="comment">····purpose:····Load·TGA·Image··</span></div>54 <div·class="line"><a·id="l00006"·name="l00006"></a><span·class="lineno">····6</span><span·class="comment">····purpose:····Definition·of·PNGImageContext·methods··</span></div>
55 <div·class="line"><a·id="l00007"·name="l00007"></a><span·class="lineno">····7</span><span·class="comment">*************************************************************************/</span></div>55 <div·class="line"><a·id="l00007"·name="l00007"></a><span·class="lineno">····7</span><span·class="comment">*************************************************************************/</span></div>
56 <div·class="line"><a·id="l00008"·name="l00008"></a><span·class="lineno">····8</span><span·class="comment">/***************************************************************************</span></div>56 <div·class="line"><a·id="l00008"·name="l00008"></a><span·class="lineno">····8</span><span·class="comment">/***************************************************************************</span></div>
57 <div·class="line"><a·id="l00009"·name="l00009"></a><span·class="lineno">····9</span><span·class="comment">·*···Copyright·(C)·2004·-·2006·Paul·D·Turner·&amp;·The·CEGUI·Development·Team</span></div>57 <div·class="line"><a·id="l00009"·name="l00009"></a><span·class="lineno">····9</span><span·class="comment">·*···Copyright·(C)·2004·-·2006·Paul·D·Turner·&amp;·The·CEGUI·Development·Team</span></div>
58 <div·class="line"><a·id="l00010"·name="l00010"></a><span·class="lineno">···10</span><span·class="comment">·*</span></div>58 <div·class="line"><a·id="l00010"·name="l00010"></a><span·class="lineno">···10</span><span·class="comment">·*</span></div>
59 <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>59 <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>
60 <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>60 <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>
61 <div·class="line"><a·id="l00013"·name="l00013"></a><span·class="lineno">···13</span><span·class="comment">·*···&quot;Software&quot;),·to·deal·in·the·Software·without·restriction,·including</span></div>61 <div·class="line"><a·id="l00013"·name="l00013"></a><span·class="lineno">···13</span><span·class="comment">·*···&quot;Software&quot;),·to·deal·in·the·Software·without·restriction,·including</span></div>
Offset 75, 309 lines modifiedOffset 75, 66 lines modified
75 <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>75 <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>
76 <div·class="line"><a·id="l00028"·name="l00028"></a><span·class="lineno">···28</span><span·class="comment">·*···OTHER·DEALINGS·IN·THE·SOFTWARE.</span></div>76 <div·class="line"><a·id="l00028"·name="l00028"></a><span·class="lineno">···28</span><span·class="comment">·*···OTHER·DEALINGS·IN·THE·SOFTWARE.</span></div>
77 <div·class="line"><a·id="l00029"·name="l00029"></a><span·class="lineno">···29</span><span·class="comment">·***************************************************************************/</span></div>77 <div·class="line"><a·id="l00029"·name="l00029"></a><span·class="lineno">···29</span><span·class="comment">·***************************************************************************/</span></div>
78 <div·class="line"><a·id="l00030"·name="l00030"></a><span·class="lineno">···30</span><span·class="preprocessor">#ifdef·HAVE_CONFIG_H</span></div>78 <div·class="line"><a·id="l00030"·name="l00030"></a><span·class="lineno">···30</span><span·class="preprocessor">#ifdef·HAVE_CONFIG_H</span></div>
79 <div·class="line"><a·id="l00031"·name="l00031"></a><span·class="lineno">···31</span><span·class="preprocessor">#include·&lt;config.h&gt;</span></div>79 <div·class="line"><a·id="l00031"·name="l00031"></a><span·class="lineno">···31</span><span·class="preprocessor">#include·&lt;config.h&gt;</span></div>
80 <div·class="line"><a·id="l00032"·name="l00032"></a><span·class="lineno">···32</span><span·class="preprocessor">#endif</span></div>80 <div·class="line"><a·id="l00032"·name="l00032"></a><span·class="lineno">···32</span><span·class="preprocessor">#endif</span></div>
81 <div·class="line"><a·id="l00033"·name="l00033"></a><span·class="lineno">···33</span>·</div>81 <div·class="line"><a·id="l00033"·name="l00033"></a><span·class="lineno">···33</span>·</div>
82 <div·class="line"><a·id="l00034"·name="l00034"></a><span·class="lineno">···34</span><span·class="preprocessor">#include·&quot;loaders/SILLYTGAImageLoader.h&quot;</span></div>82 <div·class="line"><a·id="l00034"·name="l00034"></a><span·class="lineno">···34</span><span·class="preprocessor">#include·&quot;loaders/SILLYPNGImageContext.h&quot;</span></div>
83 <div·class="line"><a·id="l00035"·name="l00035"></a><span·class="lineno">···35</span>·</div>83 <div·class="line"><a·id="l00035"·name="l00035"></a><span·class="lineno">···35</span>·</div>
84 <div·class="line"><a·id="l00036"·name="l00036"></a><span·class="lineno">···36</span><span·class="preprocessor">#ifndef·SILLY_OPT_INLINE</span></div>84 <div·class="line"><a·id="l00036"·name="l00036"></a><span·class="lineno">···36</span><span·class="preprocessor">#ifndef·SILLY_OPT_INLINE</span></div>
85 <div·class="line"><a·id="l00037"·name="l00037"></a><span·class="lineno">···37</span><span·class="preprocessor">#define·inline·</span></div>85 <div·class="line"><a·id="l00037"·name="l00037"></a><span·class="lineno">···37</span><span·class="preprocessor">#define·inline·</span></div>
86 <div·class="line"><a·id="l00038"·name="l00038"></a><span·class="lineno">···38</span><span·class="preprocessor">#include·&quot;loaders/SILLYTGAImageLoader.icpp&quot;</span></div>86 <div·class="line"><a·id="l00038"·name="l00038"></a><span·class="lineno">···38</span><span·class="preprocessor">#include·&quot;loaders/SILLYPNGImageContext.icpp&quot;</span></div>
87 <div·class="line"><a·id="l00039"·name="l00039"></a><span·class="lineno">···39</span><span·class="preprocessor">#undef·inline</span></div>87 <div·class="line"><a·id="l00039"·name="l00039"></a><span·class="lineno">···39</span><span·class="preprocessor">#undef·inline</span></div>
88 <div·class="line"><a·id="l00040"·name="l00040"></a><span·class="lineno">···40</span><span·class="preprocessor">#endif·</span></div>88 <div·class="line"><a·id="l00040"·name="l00040"></a><span·class="lineno">···40</span><span·class="preprocessor">#endif</span></div>
89 <div·class="line"><a·id="l00041"·name="l00041"></a><span·class="lineno">···41</span><span·class="preprocessor">#include·&quot;SILLYDataSource.h&quot;</span>·</div>89 <div·class="line"><a·id="l00041"·name="l00041"></a><span·class="lineno">···41</span><span·class="preprocessor">#include·&lt;string.h&gt;</span></div>
90 <div·class="line"><a·id="l00042"·name="l00042"></a><span·class="lineno">···42</span><span·class="preprocessor">#include·&quot;loaders/SILLYTGAImageContext.h&quot;</span>·</div> 
91 <div·class="line"><a·id="l00043"·name="l00043"></a><span·class="lineno">···43</span>·</div>90 <div·class="line"><a·id="l00042"·name="l00042"></a><span·class="lineno">···42</span>·</div>
92 <div·class="line"><a·id="l00044"·name="l00044"></a><span·class="lineno">···44</span><span·class="preprocessor">#include·&lt;cstring&gt;</span>·</div> 
93 <div·class="line"><a·id="l00045"·name="l00045"></a><span·class="lineno">···45</span><span·class="preprocessor">#include·&lt;cstdio&gt;</span></div> 
94 <div·class="line"><a·id="l00046"·name="l00046"></a><span·class="lineno">···46</span>·</div> 
95 <div·class="line"><a·id="l00047"·name="l00047"></a><span·class="lineno">···47</span><span·class="comment">//·Start·section·of·namespace·SILLY</span></div>91 <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="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>92 <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="l00049"·name="l00049"></a><span·class="lineno">···49</span>{</div>93 <div·class="line"><a·id="l00045"·name="l00045"></a><span·class="lineno">···45</span>{</div>
 94 <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>
 95 <div·class="line"><a·id="l00047"·name="l00047"></a><span·class="lineno">···47</span>{</div>
 96 <div·class="line"><a·id="l00048"·name="l00048"></a><span·class="lineno">···48</span>····<span·class="comment">//printf(&quot;PNG·Read:·%d·bytes·offset:·%d,·size·%d\n&quot;,·</span></div>
 97 <div·class="line"><a·id="l00049"·name="l00049"></a><span·class="lineno">···49</span>····<span·class="comment">//·······length,·d_offset,·d_data-&gt;getSize());</span></div>
98 <div·class="line"><a·id="l00050"·name="l00050"></a><span·class="lineno">···50</span>·</div>98 <div·class="line"><a·id="l00050"·name="l00050"></a><span·class="lineno">···50</span>····</div>
99 <div·class="line"><a·id="l00051"·name="l00051"></a><span·class="lineno">···51</span>TGAImageLoader::TGAImageLoader()</div>99 <div·class="line"><a·id="l00051"·name="l00051"></a><span·class="lineno">···51</span>····<span·class="keywordflow">if</span>·(d_offset·+·length·&gt;·d_data-&gt;<a·class="code·hl_function"·href="a00969.html#a319cde5b2ea76e92e922845ecfa5c615">getSize</a>())</div>
100 <div·class="line"><a·id="l00052"·name="l00052"></a><span·class="lineno">···52</span>····:·ImageLoader(<span·class="stringliteral">&quot;TGA·Image·loader·(builtin)&quot;</span>)</div>100 <div·class="line"><a·id="l00052"·name="l00052"></a><span·class="lineno">···52</span>········<span·class="keywordflow">return</span>·-1;</div>
 101 <div·class="line"><a·id="l00053"·name="l00053"></a><span·class="lineno">···53</span>····memcpy(data,·d_data-&gt;<a·class="code·hl_function"·href="a00969.html#a3ae74c9d90450a3d9aa45191e1c21c13">getDataPtr</a>()·+·d_offset,·length);</div>
101 <div·class="line"><a·id="l00053"·name="l00053"></a><span·class="lineno">···53</span>{</div>102 <div·class="line"><a·id="l00054"·name="l00054"></a><span·class="lineno">···54</span>····d_offset·+=·length;</div>
 103 <div·class="line"><a·id="l00055"·name="l00055"></a><span·class="lineno">···55</span>····<span·class="keywordflow">return</span>·length;</div>
102 <div·class="line"><a·id="l00054"·name="l00054"></a><span·class="lineno">···54</span>}</div>104 <div·class="line"><a·id="l00056"·name="l00056"></a><span·class="lineno">···56</span>}</div>
103 <div·class="line"><a·id="l00055"·name="l00055"></a><span·class="lineno">···55</span>·</div> 
104 <div·class="line"><a·id="l00056"·name="l00056"></a><span·class="lineno">···56</span>TGAImageLoader::~TGAImageLoader()</div> 
105 <div·class="line"><a·id="l00057"·name="l00057"></a><span·class="lineno">···57</span>{</div>105 <div·class="line"><a·id="l00057"·name="l00057"></a><span·class="lineno">···57</span>·</div>
106 <div·class="line"><a·id="l00058"·name="l00058"></a><span·class="lineno">···58</span>}</div>106 <div·class="line"><a·id="l00058"·name="l00058"></a><span·class="lineno">···58</span>··</div>
 107 <div·class="line"><a·id="l00059"·name="l00059"></a><span·class="lineno">···59</span>PNGImageContext::PNGImageContext(DataSource*·data)</div>
 108 <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>
 109 <div·class="line"><a·id="l00061"·name="l00061"></a><span·class="lineno">···61</span>{</div>
 110 <div·class="line"><a·id="l00062"·name="l00062"></a><span·class="lineno">···62</span>····</div>
 111 <div·class="line"><a·id="l00063"·name="l00063"></a><span·class="lineno">···63</span>}</div>
107 <div·class="line"><a·id="l00059"·name="l00059"></a><span·class="lineno">···59</span>·</div>112 <div·class="line"><a·id="l00064"·name="l00064"></a><span·class="lineno">···64</span>·</div>
 113 <div·class="line"><a·id="l00065"·name="l00065"></a><span·class="lineno">···65</span>PNGImageContext::~PNGImageContext()</div>
108 <div·class="line"><a·id="l00060"·name="l00060"></a><span·class="lineno">···60</span><span·class="preprocessor">#ifdef·SILLY_BE</span></div> 
109 <div·class="line"><a·id="l00061"·name="l00061"></a><span·class="lineno">···61</span><span·class="preprocessor">#define·READ_WORD(res,·start)···················\</span></div> 
110 <div·class="line"><a·id="l00062"·name="l00062"></a><span·class="lineno">···62</span><span·class="preprocessor">····(res)·=·0;··································\</span></div> 
111 <div·class="line"><a·id="l00063"·name="l00063"></a><span·class="lineno">···63</span><span·class="preprocessor">····(res)·=·data-&gt;getDataPtr()[(start)·+·1];···············\</span></div> 
112 <div·class="line"><a·id="l00064"·name="l00064"></a><span·class="lineno">···64</span><span·class="preprocessor">····(res)·=·(res)·&lt;&lt;·8;·························\</span></div> 
113 <div·class="line"><a·id="l00065"·name="l00065"></a><span·class="lineno">···65</span><span·class="preprocessor">····(res)·|=·data-&gt;getDataPtr()[(start)];</span></div> 
114 <div·class="line"><a·id="l00066"·name="l00066"></a><span·class="lineno">···66</span><span·class="preprocessor">#else·</span></div>114 <div·class="line"><a·id="l00066"·name="l00066"></a><span·class="lineno">···66</span>{</div>
115 <div·class="line"><a·id="l00067"·name="l00067"></a><span·class="lineno">···67</span><span·class="preprocessor">#define·READ_WORD(res,·start)···················\</span></div> 
116 <div·class="line"><a·id="l00068"·name="l00068"></a><span·class="lineno">···68</span><span·class="preprocessor">····(res)·=·0;··································\</span></div> 
117 <div·class="line"><a·id="l00069"·name="l00069"></a><span·class="lineno">···69</span><span·class="preprocessor">····(res)·=·data-&gt;getDataPtr()[(start)];···················\</span></div> 
118 <div·class="line"><a·id="l00070"·name="l00070"></a><span·class="lineno">···70</span><span·class="preprocessor">····(res)·=·(res)·&lt;&lt;·8;··························\</span></div> 
119 <div·class="line"><a·id="l00071"·name="l00071"></a><span·class="lineno">···71</span><span·class="preprocessor">····(res)·|=·data-&gt;getDataPtr()[(start)·+·1];</span></div> 
120 <div·class="line"><a·id="l00072"·name="l00072"></a><span·class="lineno">···72</span><span·class="preprocessor">#endif·</span></div>115 <div·class="line"><a·id="l00067"·name="l00067"></a><span·class="lineno">···67</span>····<span·class="keywordflow">if</span>·(d_info_ptr)</div>
 116 <div·class="line"><a·id="l00068"·name="l00068"></a><span·class="lineno">···68</span>········png_destroy_read_struct(&amp;d_png_ptr,·&amp;d_info_ptr,·0);····</div>
 117 <div·class="line"><a·id="l00069"·name="l00069"></a><span·class="lineno">···69</span>····<span·class="keywordflow">if</span>·(d_png_ptr)</div>
 118 <div·class="line"><a·id="l00070"·name="l00070"></a><span·class="lineno">···70</span>········png_destroy_read_struct(&amp;d_png_ptr,·0,·0);····</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>·</div>
121 <div·class="line"><a·id="l00073"·name="l00073"></a><span·class="lineno">···73</span>·</div>121 <div·class="line"><a·id="l00073"·name="l00073"></a><span·class="lineno">···73</span>·</div>
122 <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[·...·truncated·by·diffoscope;·len:·101,·SHA:·f2dd7112226afcd829c1fd8154e30224627a5fffcdacc9ca994159dc7f825f33·...·])</div>122 <div·class="line"><a·id="l00074"·name="l00074"></a><span·class="lineno">···74</span><span·class="keywordtype">void</span>·PNGImageContext::setImageSize()</div>
123 <div·class="line"><a·id="l00075"·name="l00075"></a><span·class="lineno">···75</span>{</div>123 <div·class="line"><a·id="l00075"·name="l00075"></a><span·class="lineno">···75</span>{</div>
 124 <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>
 125 <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>
124 <div·class="line"><a·id="l00076"·name="l00076"></a><span·class="lineno">···76</span>····<span·class="keywordtype">byte</span>·idLength·=·data-&gt;<a·class="code·hl_function"·href="a00969.html#a3ae74c9d90450a3d9aa45191e1c21c13">getDataPtr</a>()[0];</div> 
125 <div·class="line"><a·id="l00077"·name="l00077"></a><span·class="lineno">···77</span>····<span·class="keywordtype">byte</span>·colorMapType·=·data-&gt;<a·class="code·hl_function"·href="a00969.html#a3ae74c9d90450a3d9aa45191e1c21c13">getDataPtr</a>()[1];</div> 
126 <div·class="line"><a·id="l00078"·name="l00078"></a><span·class="lineno">···78</span>····<span·class="keywordtype">byte</span>·imageType·=·data-&gt;<a·class="code·hl_function"·href="a00969.html#a3ae74c9d90450a3d9aa45191e1c21c13">getDataPtr</a>()[2];</div> 
127 <div·class="line"><a·id="l00079"·name="l00079"></a><span·class="lineno">···79</span>····<span·class="keywordtype">size_t</span>·width;</div> 
128 <div·class="line"><a·id="l00080"·name="l00080"></a><span·class="lineno">···80</span>····<span·class="keywordtype">size_t</span>·height;</div> 
129 <div·class="line"><a·id="l00081"·name="l00081"></a><span·class="lineno">···81</span>····<span·class="keywordtype">byte</span>·depth;</div> 
130 <div·class="line"><a·id="l00082"·name="l00082"></a><span·class="lineno">···82</span>····<span·class="keywordtype">byte</span>·description;</div> 
131 <div·class="line"><a·id="l00083"·name="l00083"></a><span·class="lineno">···83</span>····<span·class="keywordflow">if</span>·((imageType·!=·2·&amp;&amp;·imageType·!=·10)·||·colorMapType)</div> 
132 <div·class="line"><a·id="l00084"·name="l00084"></a><span·class="lineno">···84</span>····{</div>126 <div·class="line"><a·id="l00078"·name="l00078"></a><span·class="lineno">···78</span>····</div>
133 <div·class="line"><a·id="l00085"·name="l00085"></a><span·class="lineno">···85</span>········<span·class="comment">//·Unsupported·image·format</span></div> 
134 <div·class="line"><a·id="l00086"·name="l00086"></a><span·class="lineno">···86</span>········<span·class="keywordflow">return</span>·0;</div> 
135 <div·class="line"><a·id="l00087"·name="l00087"></a><span·class="lineno">···87</span>····}</div>127 <div·class="line"><a·id="l00079"·name="l00079"></a><span·class="lineno">···79</span>}</div>
136 <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> 
137 <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> 
138 <div·class="line"><a·id="l00090"·name="l00090"></a><span·class="lineno">···90</span><span·class="preprocessor">#ifdef·SILLY_BE·</span></div> 
139 <div·class="line"><a·id="l00091"·name="l00091"></a><span·class="lineno">···91</span>····width·=·data-&gt;<a·class="code·hl_function"·href="a00969.html#a3ae74c9d90450a3d9aa45191e1c21c13">getDataPtr</a>()[12];</div> 
140 <div·class="line"><a·id="l00092"·name="l00092"></a><span·class="lineno">···92</span>····width·=·width·&lt;&lt;·8;</div> 
141 <div·class="line"><a·id="l00093"·name="l00093"></a><span·class="lineno">···93</span>····width·|=·data-&gt;<a·class="code·hl_function"·href="a00969.html#a3ae74c9d90450a3d9aa45191e1c21c13">getDataPtr</a>()[13];</div> 
142 <div·class="line"><a·id="l00094"·name="l00094"></a><span·class="lineno">···94</span>····height·=··data-&gt;<a·class="code·hl_function"·href="a00969.html#a3ae74c9d90450a3d9aa45191e1c21c13">getDataPtr</a>()[14];</div> 
Max diff block lines reached; 1381/58288 bytes (2.37%) of diff not shown.
10.3 KB
html2text {}
    
Offset 5, 21 lines modifiedOffset 5, 21 lines modified
5 Simple·Image·Loading·LibrarY 0.1.05 Simple·Image·Loading·LibrarY 0.1.0
  
6 ····*·build6 ····*·build
7 ····*·reproducible-path7 ····*·reproducible-path
8 ····*·silly-0.1.08 ····*·silly-0.1.0
9 ····*·src9 ····*·src
10 ····*·loaders10 ····*·loaders
11 SILLYTGAImageLoader.cpp11 SILLYPNGImageContext.cpp
12 ·1/***********************************************************************12 ·1/***********************************************************************
13 ·2·filename:·SILLYTGAImageLoader.cpp13 ·2·filename:·SILLYPNGImageContext.cpp
14 ·3·created:·11·Jun·200614 ·3·created:·11·Jun·2006
15 ·4·author:·Olivier·Delannoy15 ·4·author:·Olivier·Delannoy
16 ·516 ·5
17 ·6·purpose:·Load·TGA·Image17 ·6·purpose:·Definition·of·PNGImageContext·methods
18 ·7*************************************************************************/18 ·7*************************************************************************/
19 ·8/***************************************************************************19 ·8/***************************************************************************
20 ·9·*·Copyright·(C)·2004·-·2006·Paul·D·Turner·&·The·CEGUI·Development·Team20 ·9·*·Copyright·(C)·2004·-·2006·Paul·D·Turner·&·The·CEGUI·Development·Team
21 ·10·*21 ·10·*
22 ·11·*·Permission·is·hereby·granted,·free·of·charge,·to·any·person·obtaining22 ·11·*·Permission·is·hereby·granted,·free·of·charge,·to·any·person·obtaining
23 ·12·*·a·copy·of·this·software·and·associated·documentation·files·(the23 ·12·*·a·copy·of·this·software·and·associated·documentation·files·(the
24 ·13·*·"Software"),·to·deal·in·the·Software·without·restriction,·including24 ·13·*·"Software"),·to·deal·in·the·Software·without·restriction,·including
Offset 40, 328 lines modifiedOffset 40, 68 lines modified
40 ·28·*·OTHER·DEALINGS·IN·THE·SOFTWARE.40 ·28·*·OTHER·DEALINGS·IN·THE·SOFTWARE.
41 ·2941 ·29
42 ***************************************************************************/42 ***************************************************************************/
43 ·30#ifdef·HAVE_CONFIG_H43 ·30#ifdef·HAVE_CONFIG_H
44 ·31#include·<config.h>44 ·31#include·<config.h>
45 ·32#endif45 ·32#endif
46 ·3346 ·33
47 ·34#include·"loaders/SILLYTGAImageLoader.h"47 ·34#include·"loaders/SILLYPNGImageContext.h"
48 ·3548 ·35
49 ·36#ifndef·SILLY_OPT_INLINE49 ·36#ifndef·SILLY_OPT_INLINE
50 ·37#define·inline50 ·37#define·inline
51 ·38#include·"loaders/SILLYTGAImageLoader.icpp"51 ·38#include·"loaders/SILLYPNGImageContext.icpp"
52 ·39#undef·inline52 ·39#undef·inline
53 ·40#endif53 ·40#endif
54 ·41#include·"SILLYDataSource.h" 
55 ·42#include·"loaders/SILLYTGAImageContext.h" 
56 ·43 
57 ·44#include·<cstring>54 ·41#include·<string.h>
 55 ·42
58 ·45#include·<cstdio> 
59 ·46 
60 ·47//·Start·section·of·namespace·SILLY56 ·43//·Start·section·of·namespace·SILLY
61 ·48namespace·SILLY57 ·44namespace·SILLY
62 ·49{58 ·45{
 59 ·46int·PNGImageContext::read(png_bytep·data,·png_size_t·length)
 60 ·47{
 61 ·48·//printf("PNG·Read:·%d·bytes·offset:·%d,·size·%d\n",
 62 ·49·//·length,·d_offset,·d_data->getSize());
63 ·5063 ·50
64 ·51TGAImageLoader::TGAImageLoader() 
65 ·52·:·ImageLoader("TGA·Image·loader·(builtin)") 
66 ·53{64 ·51·if·(d_offset·+·length·>·d_data->getSize())
 65 ·52·return·-1;
 66 ·53·memcpy(data,·d_data->getDataPtr()·+·d_offset,·length);
 67 ·54·d_offset·+=·length;
 68 ·55·return·length;
67 ·54}69 ·56}
68 ·55 
69 ·56TGAImageLoader::~TGAImageLoader() 
70 ·57{70 ·57
71 ·58}71 ·58
72 ·59 
73 ·60#ifdef·SILLY_BE 
74 ·61#define·READ_WORD(res,·start)·\ 
75 ·62·(res)·=·0;·\ 
76 ·63·(res)·=·data->getDataPtr()[(start)·+·1];·\ 
77 ·64·(res)·=·(res)·<<·8;·\ 
78 ·65·(res)·|=·data->getDataPtr()[(start)]; 
79 ·66#else 
80 ·67#define·READ_WORD(res,·start)·\ 
81 ·68·(res)·=·0;·\ 
82 ·69·(res)·=·data->getDataPtr()[(start)];·\ 
83 ·70·(res)·=·(res)·<<·8;·\ 
84 ·71·(res)·|=·data->getDataPtr()[(start)·+·1]; 
85 ·72#endif72 ·59PNGImageContext::PNGImageContext(DataSource*·data)
 73 ·60·:·ImageContext(0,0),·d_offset(0),·d_data(data),·d_png_ptr(0),·d_info_ptr(0)
 74 ·61{
 75 ·62
 76 ·63}
 77 ·64
 78 ·65PNGImageContext::~PNGImageContext()
 79 ·66{
 80 ·67·if·(d_info_ptr)
 81 ·68·png_destroy_read_struct(&d_png_ptr,·&d_info_ptr,·0);
 82 ·69·if·(d_png_ptr)
 83 ·70·png_destroy_read_struct(&d_png_ptr,·0,·0);
 84 ·71}
 85 ·72
86 ·7386 ·73
 87 ·74void·PNGImageContext::setImageSize()
87 74ImageContext*·TGAImageLoader::loadHeader(PixelFormat&·formatSource, 
88 DataSource*·data) 
89 ·75{88 ·75{
 89 ·76·setWidth(png_get_image_width(d_png_ptr,·d_info_ptr));
 90 ·77·setHeight(png_get_image_height(d_png_ptr,·d_info_ptr));
 91 ·78
90 ·76·byte·idLength·=·data->getDataPtr()[0]; 
91 ·77·byte·colorMapType·=·data->getDataPtr()[1]; 
92 ·78·byte·imageType·=·data->getDataPtr()[2]; 
93 ·79·size_t·width; 
94 ·80·size_t·height; 
95 ·81·byte·depth; 
96 ·82·byte·description; 
97 ·83·if·((imageType·!=·2·&&·imageType·!=·10)·||·colorMapType) 
98 ·84·{ 
99 ·85·//·Unsupported·image·format 
100 ·86·return·0; 
101 ·87·} 
102 ·88·//·offset:·3·Skip·color·map·+·5·bytes 
103 ·89·//·offset:·8·Skip·xorg·/·yorg·+·4·bytes 
104 ·90#ifdef·SILLY_BE 
105 ·91·width·=·data->getDataPtr()[12]; 
106 ·92·width·=·width·<<·8; 
107 ·93·width·|=·data->getDataPtr()[13]; 
108 ·94·height·=·data->getDataPtr()[14]; 
109 ·95·height·=·height·<<·8; 
110 ·96·height·|=·data->getDataPtr()[15]; 
111 ·97#else 
112 ·98·width·=·data->getDataPtr()[13]; 
113 ·99·width·=·width·<<·8; 
114 ·100·width·|=·data->getDataPtr()[12]; 
115 ·101·height·=·data->getDataPtr()[15]; 
116 ·102·height·=·height·<<·8; 
117 ·103·height·|=·data->getDataPtr()[14]; 
118 ·104#endif 
Max diff block lines reached; 1194/10562 bytes (11.30%) of diff not shown.
32.5 KB
./usr/share/doc/libsilly-doc/html/a00014_source.html
    
Offset 1, 15 lines modifiedOffset 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">2 <html·xmlns="http://www.w3.org/1999/xhtml">
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.4"/>6 <meta·name="generator"·content="Doxygen·1.9.4"/>
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/SILLYJPGImageLoader.cpp·Source·File</title>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 39, 23 lines modifiedOffset 39, 23 lines modified
39 <div·id="main-nav"></div>39 <div·id="main-nav"></div>
40 <div·id="nav-path"·class="navpath">40 <div·id="nav-path"·class="navpath">
41 ··<ul>41 ··<ul>
42 <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>42 <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>
43 </div>43 </div>
44 </div><!--·top·-->44 </div><!--·top·-->
45 <div·class="header">45 <div·class="header">
46 ··<div·class="headertitle"><div·class="title">SILLYJPGImageLoader.cpp</div></div>46 ··<div·class="headertitle"><div·class="title">SILLYTGAImageContext.cpp</div></div>
47 </div><!--header-->47 </div><!--header-->
48 <div·class="contents">48 <div·class="contents">
49 <div·class="fragment"><div·class="line"><a·id="l00001"·name="l00001"></a><span·class="lineno">····1</span><span·class="comment">/***********************************************************************</span></div>49 <div·class="fragment"><div·class="line"><a·id="l00001"·name="l00001"></a><span·class="lineno">····1</span><span·class="comment">/***********************************************************************</span></div>
50 <div·class="line"><a·id="l00002"·name="l00002"></a><span·class="lineno">····2</span><span·class="comment">····filename:···SILLYJPGImageLoader.cpp</span></div>50 <div·class="line"><a·id="l00002"·name="l00002"></a><span·class="lineno">····2</span><span·class="comment">····filename:···SILLYTGAImageContext.cpp</span></div>
51 <div·class="line"><a·id="l00003"·name="l00003"></a><span·class="lineno">····3</span><span·class="comment">····created:····11·Jun·2006</span></div>51 <div·class="line"><a·id="l00003"·name="l00003"></a><span·class="lineno">····3</span><span·class="comment">····created:····11·Jun·2006</span></div>
52 <div·class="line"><a·id="l00004"·name="l00004"></a><span·class="lineno">····4</span><span·class="comment">····author:·····Olivier·Delannoy·</span></div>52 <div·class="line"><a·id="l00004"·name="l00004"></a><span·class="lineno">····4</span><span·class="comment">····author:·····Olivier·Delannoy·</span></div>
53 <div·class="line"><a·id="l00005"·name="l00005"></a><span·class="lineno">····5</span><span·class="comment"></span>·</div>53 <div·class="line"><a·id="l00005"·name="l00005"></a><span·class="lineno">····5</span><span·class="comment"></span>·</div>
54 <div·class="line"><a·id="l00006"·name="l00006"></a><span·class="lineno">····6</span><span·class="comment">····purpose:····Definition·of·JPGImageLoader·methods··</span></div>54 <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>
55 <div·class="line"><a·id="l00007"·name="l00007"></a><span·class="lineno">····7</span><span·class="comment">*************************************************************************/</span></div>55 <div·class="line"><a·id="l00007"·name="l00007"></a><span·class="lineno">····7</span><span·class="comment">*************************************************************************/</span></div>
56 <div·class="line"><a·id="l00008"·name="l00008"></a><span·class="lineno">····8</span><span·class="comment">/***************************************************************************</span></div>56 <div·class="line"><a·id="l00008"·name="l00008"></a><span·class="lineno">····8</span><span·class="comment">/***************************************************************************</span></div>
57 <div·class="line"><a·id="l00009"·name="l00009"></a><span·class="lineno">····9</span><span·class="comment">·*···Copyright·(C)·2004·-·2006·Paul·D·Turner·&amp;·The·CEGUI·Development·Team</span></div>57 <div·class="line"><a·id="l00009"·name="l00009"></a><span·class="lineno">····9</span><span·class="comment">·*···Copyright·(C)·2004·-·2006·Paul·D·Turner·&amp;·The·CEGUI·Development·Team</span></div>
58 <div·class="line"><a·id="l00010"·name="l00010"></a><span·class="lineno">···10</span><span·class="comment">·*</span></div>58 <div·class="line"><a·id="l00010"·name="l00010"></a><span·class="lineno">···10</span><span·class="comment">·*</span></div>
59 <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>59 <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>
60 <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>60 <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>
61 <div·class="line"><a·id="l00013"·name="l00013"></a><span·class="lineno">···13</span><span·class="comment">·*···&quot;Software&quot;),·to·deal·in·the·Software·without·restriction,·including</span></div>61 <div·class="line"><a·id="l00013"·name="l00013"></a><span·class="lineno">···13</span><span·class="comment">·*···&quot;Software&quot;),·to·deal·in·the·Software·without·restriction,·including</span></div>
Offset 75, 146 lines modifiedOffset 75, 31 lines modified
75 <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>75 <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>
76 <div·class="line"><a·id="l00028"·name="l00028"></a><span·class="lineno">···28</span><span·class="comment">·*···OTHER·DEALINGS·IN·THE·SOFTWARE.</span></div>76 <div·class="line"><a·id="l00028"·name="l00028"></a><span·class="lineno">···28</span><span·class="comment">·*···OTHER·DEALINGS·IN·THE·SOFTWARE.</span></div>
77 <div·class="line"><a·id="l00029"·name="l00029"></a><span·class="lineno">···29</span><span·class="comment">·***************************************************************************/</span></div>77 <div·class="line"><a·id="l00029"·name="l00029"></a><span·class="lineno">···29</span><span·class="comment">·***************************************************************************/</span></div>
78 <div·class="line"><a·id="l00030"·name="l00030"></a><span·class="lineno">···30</span><span·class="preprocessor">#ifdef·HAVE_CONFIG_H</span></div>78 <div·class="line"><a·id="l00030"·name="l00030"></a><span·class="lineno">···30</span><span·class="preprocessor">#ifdef·HAVE_CONFIG_H</span></div>
79 <div·class="line"><a·id="l00031"·name="l00031"></a><span·class="lineno">···31</span><span·class="preprocessor">#include·&lt;config.h&gt;</span></div>79 <div·class="line"><a·id="l00031"·name="l00031"></a><span·class="lineno">···31</span><span·class="preprocessor">#include·&lt;config.h&gt;</span></div>
80 <div·class="line"><a·id="l00032"·name="l00032"></a><span·class="lineno">···32</span><span·class="preprocessor">#endif</span></div>80 <div·class="line"><a·id="l00032"·name="l00032"></a><span·class="lineno">···32</span><span·class="preprocessor">#endif</span></div>
81 <div·class="line"><a·id="l00033"·name="l00033"></a><span·class="lineno">···33</span>·</div>81 <div·class="line"><a·id="l00033"·name="l00033"></a><span·class="lineno">···33</span>·</div>
82 <div·class="line"><a·id="l00034"·name="l00034"></a><span·class="lineno">···34</span><span·class="preprocessor">#include·&quot;loaders/SILLYJPGImageLoader.h&quot;</span></div>82 <div·class="line"><a·id="l00034"·name="l00034"></a><span·class="lineno">···34</span><span·class="preprocessor">#include·&quot;loaders/SILLYTGAImageContext.h&quot;</span></div>
83 <div·class="line"><a·id="l00035"·name="l00035"></a><span·class="lineno">···35</span>·</div>83 <div·class="line"><a·id="l00035"·name="l00035"></a><span·class="lineno">···35</span>·</div>
84 <div·class="line"><a·id="l00036"·name="l00036"></a><span·class="lineno">···36</span><span·class="preprocessor">#ifndef·SILLY_OPT_INLINE</span></div>84 <div·class="line"><a·id="l00036"·name="l00036"></a><span·class="lineno">···36</span><span·class="preprocessor">#ifndef·SILLY_OPT_INLINE</span></div>
85 <div·class="line"><a·id="l00037"·name="l00037"></a><span·class="lineno">···37</span><span·class="preprocessor">#define·inline·</span></div>85 <div·class="line"><a·id="l00037"·name="l00037"></a><span·class="lineno">···37</span><span·class="preprocessor">#define·inline·</span></div>
86 <div·class="line"><a·id="l00038"·name="l00038"></a><span·class="lineno">···38</span><span·class="preprocessor">#include·&quot;loaders/SILLYJPGImageLoader.icpp&quot;</span></div>86 <div·class="line"><a·id="l00038"·name="l00038"></a><span·class="lineno">···38</span><span·class="preprocessor">#include·&quot;loaders/SILLYTGAImageContext.icpp&quot;</span></div>
87 <div·class="line"><a·id="l00039"·name="l00039"></a><span·class="lineno">···39</span><span·class="preprocessor">#undef·inline</span></div>87 <div·class="line"><a·id="l00039"·name="l00039"></a><span·class="lineno">···39</span><span·class="preprocessor">#undef·inline</span></div>
88 <div·class="line"><a·id="l00040"·name="l00040"></a><span·class="lineno">···40</span><span·class="preprocessor">#endif</span></div>88 <div·class="line"><a·id="l00040"·name="l00040"></a><span·class="lineno">···40</span><span·class="preprocessor">#endif·</span></div>
89 <div·class="line"><a·id="l00041"·name="l00041"></a><span·class="lineno">···41</span><span·class="preprocessor">#include·&quot;loaders/SILLYJPGImageContext.h&quot;</span>·</div>89 <div·class="line"><a·id="l00041"·name="l00041"></a><span·class="lineno">···41</span><span·class="preprocessor">#include·&lt;cstring&gt;</span></div>
90 <div·class="line"><a·id="l00042"·name="l00042"></a><span·class="lineno">···42</span>·</div>90 <div·class="line"><a·id="l00042"·name="l00042"></a><span·class="lineno">···42</span><span·class="preprocessor">#include·&lt;cstdio&gt;</span></div>
91 <div·class="line"><a·id="l00043"·name="l00043"></a><span·class="lineno">···43</span><span·class="comment">//·Start·section·of·namespace·SILLY</span></div>91 <div·class="line"><a·id="l00043"·name="l00043"></a><span·class="lineno">···43</span><span·class="comment">//·Start·section·of·namespace·SILLY</span></div>
92 <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>92 <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>
93 <div·class="line"><a·id="l00045"·name="l00045"></a><span·class="lineno">···45</span>{</div>93 <div·class="line"><a·id="l00045"·name="l00045"></a><span·class="lineno">···45</span>{</div>
94 <div·class="line"><a·id="l00046"·name="l00046"></a><span·class="lineno">···46</span>JPGImageLoader::JPGImageLoader()</div>94 <div·class="line"><a·id="l00046"·name="l00046"></a><span·class="lineno">···46</span>·</div>
95 <div·class="line"><a·id="l00047"·name="l00047"></a><span·class="lineno">···47</span>····:·ImageLoader(<span·class="stringliteral">&quot;JPG·Image·Loader·based·on·jpeg-6b&quot;</span>)</div>95 <div·class="line"><a·id="l00047"·name="l00047"></a><span·class="lineno">···47</span>·</div>
96 <div·class="line"><a·id="l00048"·name="l00048"></a><span·class="lineno">···48</span>{</div>96 <div·class="line"><a·id="l00048"·name="l00048"></a><span·class="lineno">···48</span>·</div>
97 <div·class="line"><a·id="l00049"·name="l00049"></a><span·class="lineno">···49</span>}</div> 
98 <div·class="line"><a·id="l00050"·name="l00050"></a><span·class="lineno">···50</span>·</div> 
99 <div·class="line"><a·id="l00051"·name="l00051"></a><span·class="lineno">···51</span>JPGImageLoader::~JPGImageLoader()</div> 
100 <div·class="line"><a·id="l00052"·name="l00052"></a><span·class="lineno">···52</span>{</div> 
101 <div·class="line"><a·id="l00053"·name="l00053"></a><span·class="lineno">···53</span>}</div> 
102 <div·class="line"><a·id="l00054"·name="l00054"></a><span·class="lineno">···54</span>·</div> 
103 <div·class="line"><a·id="l00055"·name="l00055"></a><span·class="lineno">···55</span>·</div> 
104 <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>&amp;·formatSource,·<a·class="code·hl_class"·href="a00969.html">DataSource</a>*·data)</div> 
105 <div·class="line"><a·id="l00057"·name="l00057"></a><span·class="lineno">···57</span>{</div> 
106 <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> 
107 <div·class="line"><a·id="l00059"·name="l00059"></a><span·class="lineno">···59</span>····jpg-&gt;d_source·=·data;</div> 
108 <div·class="line"><a·id="l00060"·name="l00060"></a><span·class="lineno">···60</span>····</div> 
109 <div·class="line"><a·id="l00061"·name="l00061"></a><span·class="lineno">···61</span>····<span·class="keywordflow">if</span>·(!·jpg)</div> 
110 <div·class="line"><a·id="l00062"·name="l00062"></a><span·class="lineno">···62</span>········<span·class="keywordflow">return</span>·0;</div> 
111 <div·class="line"><a·id="l00063"·name="l00063"></a><span·class="lineno">···63</span>····<span·class="keywordflow">if</span>·(setjmp(jpg-&gt;setjmp_buffer))</div> 
112 <div·class="line"><a·id="l00064"·name="l00064"></a><span·class="lineno">···64</span>····{</div> 
113 <div·class="line"><a·id="l00065"·name="l00065"></a><span·class="lineno">···65</span>········<span·class="keyword">delete</span>·jpg;</div> 
114 <div·class="line"><a·id="l00066"·name="l00066"></a><span·class="lineno">···66</span>········<span·class="keywordflow">return</span>·0;</div> 
115 <div·class="line"><a·id="l00067"·name="l00067"></a><span·class="lineno">···67</span>····}</div> 
116 <div·class="line"><a·id="l00068"·name="l00068"></a><span·class="lineno">···68</span>····jpeg_read_header(&amp;(jpg-&gt;cinfo),·TRUE);</div> 
117 <div·class="line"><a·id="l00069"·name="l00069"></a><span·class="lineno">···69</span>····<span·class="keywordflow">if</span>·(!·jpeg_start_decompress(&amp;(jpg-&gt;cinfo)))</div> 
118 <div·class="line"><a·id="l00070"·name="l00070"></a><span·class="lineno">···70</span>····{</div> 
119 <div·class="line"><a·id="l00071"·name="l00071"></a><span·class="lineno">···71</span>········<span·class="keyword">delete</span>·jpg;</div> 
120 <div·class="line"><a·id="l00072"·name="l00072"></a><span·class="lineno">···72</span>········<span·class="keywordflow">return</span>·0;</div> 
121 <div·class="line"><a·id="l00073"·name="l00073"></a><span·class="lineno">···73</span>····}</div> 
122 <div·class="line"><a·id="l00074"·name="l00074"></a><span·class="lineno">···74</span>········</div> 
123 <div·class="line"><a·id="l00075"·name="l00075"></a><span·class="lineno">···75</span>····</div> 
124 <div·class="line"><a·id="l00076"·name="l00076"></a><span·class="lineno">···76</span>····<span·class="keywordflow">if</span>·(jpg-&gt;cinfo.output_components·!=·1·&amp;&amp;·jpg-&gt;cinfo.output_components·!=·3)</div> 
125 <div·class="line"><a·id="l00077"·name="l00077"></a><span·class="lineno">···77</span>····{</div> 
126 <div·class="line"><a·id="l00078"·name="l00078"></a><span·class="lineno">···78</span>········printf(<span·class="stringliteral">&quot;JPG·unsupported·bpp:·%d\n&quot;</span>,·jpg-&gt;cinfo.output_components·);</div> 
127 <div·class="line"><a·id="l00079"·name="l00079"></a><span·class="lineno">···79</span>········jpeg_finish_decompress(&amp;·jpg-&gt;cinfo);</div> 
128 <div·class="line"><a·id="l00080"·name="l00080"></a><span·class="lineno">···80</span>········<span·class="keyword">delete</span>·jpg;</div> 
129 <div·class="line"><a·id="l00081"·name="l00081"></a><span·class="lineno">···81</span>········<span·class="keywordflow">return</span>·0;</div> 
130 <div·class="line"><a·id="l00082"·name="l00082"></a><span·class="lineno">···82</span>····}</div> 
131 <div·class="line"><a·id="l00083"·name="l00083"></a><span·class="lineno">···83</span>····formatSource··=·PF_RGB;·<span·class="comment">//·It&#39;s·not·true·but·we·handle·both·the·same·way</span></div> 
132 <div·class="line"><a·id="l00084"·name="l00084"></a><span·class="lineno">···84</span>····<span·class="comment">//printf(&quot;Image·info:·size:·%dx%d·-·bpp:·%d\n&quot;,··jpg-&gt;cinfo.output_width,·jpg-&gt;cinfo.output_height,·jpg-&gt;cinfo.output_components);</span></div> 
133 <div·class="line"><a·id="l00085"·name="l00085"></a><span·class="lineno">···85</span>····</div> 
134 <div·class="line"><a·id="l00086"·name="l00086"></a><span·class="lineno">···86</span>····jpg-&gt;setImageSize();</div> 
135 <div·class="line"><a·id="l00087"·name="l00087"></a><span·class="lineno">···87</span>····<span·class="keywordflow">return</span>·jpg;</div> 
136 <div·class="line"><a·id="l00088"·name="l00088"></a><span·class="lineno">···88</span>}</div> 
137 <div·class="line"><a·id="l00089"·name="l00089"></a><span·class="lineno">···89</span>·</div> 
138 <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> 
139 <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> 
140 <div·class="line"><a·id="l00092"·name="l00092"></a><span·class="lineno">···92</span>···································<a·class="code·hl_class"·href="a00981.html">ImageContext</a>*·context)</div> 
141 <div·class="line"><a·id="l00093"·name="l00093"></a><span·class="lineno">···93</span>{</div> 
142 <div·class="line"><a·id="l00094"·name="l00094"></a><span·class="lineno">···94</span>····<a·class="code·hl_class"·href="a00945.html">JPGImageContext</a>*·jpg·=·<span·class="keyword">static_cast&lt;</span><a·class="code·hl_class"·href="a00945.html">JPGImageContext</a>*<span·class="keyword">&gt;</span>(context);</div> 
143 <div·class="line"><a·id="l00095"·name="l00095"></a><span·class="lineno">···95</span>····</div> 
144 <div·class="line"><a·id="l00096"·name="l00096"></a><span·class="lineno">···96</span>····<span·class="comment">//·Allocate·a·buffer·</span></div> 
145 <div·class="line"><a·id="l00097"·name="l00097"></a><span·class="lineno">···97</span>····<span·class="keywordtype">int</span>·row_stride·=·jpg-&gt;getWidth()·*·jpg-&gt;cinfo.output_components;</div> 
146 <div·class="line"><a·id="l00098"·name="l00098"></a><span·class="lineno">···98</span>····JSAMPARRAY·buffer·=·(*·jpg-&gt;cinfo.mem-&gt;alloc_sarray)(</div> 
147 <div·class="line"><a·id="l00099"·name="l00099"></a><span·class="lineno">···99</span>········(j_common_ptr)(&amp;·jpg-&gt;cinfo),·</div> 
148 <div·class="line"><a·id="l00100"·name="l00100"></a><span·class="lineno">··100</span>········JPOOL_IMAGE,·</div> 
149 <div·class="line"><a·id="l00101"·name="l00101"></a><span·class="lineno">··101</span>········row_stride,·</div> 
150 <div·class="line"><a·id="l00102"·name="l00102"></a><span·class="lineno">··102</span>········1);</div> 
151 <div·class="line"><a·id="l00103"·name="l00103"></a><span·class="lineno">··103</span>····<span·class="keywordtype">bool</span>·finished·=·<span·class="keyword">true</span>;</div> 
152 <div·class="line"><a·id="l00104"·name="l00104"></a><span·class="lineno">··104</span>····<span·class="keywordtype">size_t</span>·height·=·jpg-&gt;getHeight();</div> 
153 <div·class="line"><a·id="l00105"·name="l00105"></a><span·class="lineno">··105</span>····<span·class="keywordtype">size_t</span>·width·=·jpg-&gt;getWidth();</div> 
154 <div·class="line"><a·id="l00106"·name="l00106"></a><span·class="lineno">··106</span>····</div> 
155 <div·class="line"><a·id="l00107"·name="l00107"></a><span·class="lineno">··107</span>····</div> 
156 <div·class="line"><a·id="l00108"·name="l00108"></a><span·class="lineno">··108</span>····<span·class="keywordflow">while</span>(jpg-&gt;cinfo.output_scanline·&lt;·height)</div> 
157 <div·class="line"><a·id="l00109"·name="l00109"></a><span·class="lineno">··109</span>····{</div> 
158 <div·class="line"><a·id="l00110"·name="l00110"></a><span·class="lineno">··110</span>········<span·class="keywordtype">int</span>·num_rows·=·jpeg_read_scanlines(&amp;·jpg-&gt;cinfo,·buffer,·1);</div> 
159 <div·class="line"><a·id="l00111"·name="l00111"></a><span·class="lineno">··111</span>········<span·class="keywordflow">if</span>·(num_rows·!=·1)</div> 
160 <div·class="line"><a·id="l00112"·name="l00112"></a><span·class="lineno">··112</span>········{</div> 
161 <div·class="line"><a·id="l00113"·name="l00113"></a><span·class="lineno">··113</span>············jpeg_finish_decompress(&amp;·jpg-&gt;cinfo);</div> 
Max diff block lines reached; 271/27709 bytes (0.98%) of diff not shown.
5.32 KB
html2text {}
    
Offset 5, 21 lines modifiedOffset 5, 21 lines modified
5 Simple·Image·Loading·LibrarY 0.1.05 Simple·Image·Loading·LibrarY 0.1.0
  
6 ····*·build6 ····*·build
7 ····*·reproducible-path7 ····*·reproducible-path
8 ····*·silly-0.1.08 ····*·silly-0.1.0
9 ····*·src9 ····*·src
10 ····*·loaders10 ····*·loaders
11 SILLYJPGImageLoader.cpp11 SILLYTGAImageContext.cpp
12 ·1/***********************************************************************12 ·1/***********************************************************************
13 ·2·filename:·SILLYJPGImageLoader.cpp13 ·2·filename:·SILLYTGAImageContext.cpp
14 ·3·created:·11·Jun·200614 ·3·created:·11·Jun·2006
15 ·4·author:·Olivier·Delannoy15 ·4·author:·Olivier·Delannoy
16 ·516 ·5
17 ·6·purpose:·Definition·of·JPGImageLoader·methods17 ·6·purpose:·Definition·of·the·TGAImageContext·methods
18 ·7*************************************************************************/18 ·7*************************************************************************/
19 ·8/***************************************************************************19 ·8/***************************************************************************
20 ·9·*·Copyright·(C)·2004·-·2006·Paul·D·Turner·&·The·CEGUI·Development·Team20 ·9·*·Copyright·(C)·2004·-·2006·Paul·D·Turner·&·The·CEGUI·Development·Team
21 ·10·*21 ·10·*
22 ·11·*·Permission·is·hereby·granted,·free·of·charge,·to·any·person·obtaining22 ·11·*·Permission·is·hereby·granted,·free·of·charge,·to·any·person·obtaining
23 ·12·*·a·copy·of·this·software·and·associated·documentation·files·(the23 ·12·*·a·copy·of·this·software·and·associated·documentation·files·(the
24 ·13·*·"Software"),·to·deal·in·the·Software·without·restriction,·including24 ·13·*·"Software"),·to·deal·in·the·Software·without·restriction,·including
Offset 40, 163 lines modifiedOffset 40, 29 lines modified
40 ·28·*·OTHER·DEALINGS·IN·THE·SOFTWARE.40 ·28·*·OTHER·DEALINGS·IN·THE·SOFTWARE.
41 ·2941 ·29
42 ***************************************************************************/42 ***************************************************************************/
43 ·30#ifdef·HAVE_CONFIG_H43 ·30#ifdef·HAVE_CONFIG_H
44 ·31#include·<config.h>44 ·31#include·<config.h>
45 ·32#endif45 ·32#endif
46 ·3346 ·33
47 ·34#include·"loaders/SILLYJPGImageLoader.h"47 ·34#include·"loaders/SILLYTGAImageContext.h"
48 ·3548 ·35
49 ·36#ifndef·SILLY_OPT_INLINE49 ·36#ifndef·SILLY_OPT_INLINE
50 ·37#define·inline50 ·37#define·inline
51 ·38#include·"loaders/SILLYJPGImageLoader.icpp"51 ·38#include·"loaders/SILLYTGAImageContext.icpp"
52 ·39#undef·inline52 ·39#undef·inline
53 ·40#endif53 ·40#endif
54 ·41#include·"loaders/SILLYJPGImageContext.h" 
55 ·4254 ·41#include·<cstring>
 55 ·42#include·<cstdio>
56 ·43//·Start·section·of·namespace·SILLY56 ·43//·Start·section·of·namespace·SILLY
57 ·44namespace·SILLY57 ·44namespace·SILLY
58 ·45{58 ·45{
59 ·46JPGImageLoader::JPGImageLoader() 
60 ·47·:·ImageLoader("JPG·Image·Loader·based·on·jpeg-6b") 
61 ·48{ 
62 ·49} 
63 ·50 
64 ·51JPGImageLoader::~JPGImageLoader() 
65 ·52{ 
66 ·53} 
67 ·54 
68 ·55 
69 56ImageContext*·JPGImageLoader::loadHeader(PixelFormat&·formatSource, 
70 DataSource*·data) 
71 ·57{ 
72 ·58·JPGImageContext*·jpg·=·new·JPGImageContext; 
73 ·59·jpg->d_source·=·data; 
74 ·60 
75 ·61·if·(!·jpg) 
76 ·62·return·0; 
77 ·63·if·(setjmp(jpg->setjmp_buffer)) 
78 ·64·{ 
79 ·65·delete·jpg; 
80 ·66·return·0; 
81 ·67·} 
82 ·68·jpeg_read_header(&(jpg->cinfo),·TRUE); 
83 ·69·if·(!·jpeg_start_decompress(&(jpg->cinfo))) 
84 ·70·{ 
85 ·71·delete·jpg; 
86 ·72·return·0; 
87 ·73·} 
88 ·74 
89 ·75 
90 ·76·if·(jpg->cinfo.output_components·!=·1·&&·jpg->cinfo.output_components·!=·3) 
91 ·77·{ 
92 ·78·printf("JPG·unsupported·bpp:·%d\n",·jpg->cinfo.output_components·); 
93 ·79·jpeg_finish_decompress(&·jpg->cinfo); 
94 ·80·delete·jpg; 
95 ·81·return·0; 
96 ·82·} 
97 ·83·formatSource·=·PF_RGB;·//·It's·not·true·but·we·handle·both·the·same·way 
98 ·84·//printf("Image·info:·size:·%dx%d·-·bpp:·%d\n",·jpg->cinfo.output_width, 
99 jpg->cinfo.output_height,·jpg->cinfo.output_components); 
100 ·85 
101 ·86·jpg->setImageSize(); 
102 ·87·return·jpg; 
103 ·88} 
104 ·89 
105 90bool·JPGImageLoader::loadImageData(PixelOrigin·origin, 
106 ·91·DataSource*·data, 
107 ·92·ImageContext*·context) 
108 ·93{ 
109 ·94·JPGImageContext*·jpg·=·static_cast<JPGImageContext*>(context); 
110 ·95 
111 ·96·//·Allocate·a·buffer 
112 ·97·int·row_stride·=·jpg->getWidth()·*·jpg->cinfo.output_components; 
113 ·98·JSAMPARRAY·buffer·=·(*·jpg->cinfo.mem->alloc_sarray)( 
114 ·99·(j_common_ptr)(&·jpg->cinfo), 
115 ·100·JPOOL_IMAGE, 
116 ·101·row_stride, 
117 ·102·1); 
118 ·103·bool·finished·=·true; 
119 ·104·size_t·height·=·jpg->getHeight(); 
120 ·105·size_t·width·=·jpg->getWidth(); 
121 ·106 
122 ·107 
123 ·108·while(jpg->cinfo.output_scanline·<·height) 
124 ·109·{ 
125 ·110·int·num_rows·=·jpeg_read_scanlines(&·jpg->cinfo,·buffer,·1); 
126 ·111·if·(num_rows·!=·1) 
127 ·112·{ 
128 ·113·jpeg_finish_decompress(&·jpg->cinfo); 
129 ·114·return·false; 
130 ·115·} 
131 ·116·byte·red; 
132 ·117·byte·green; 
133 ·118·byte·blue; 
134 ·119·const·byte·alpha·=·0xff; 
135 ·120·byte*·in·=·(byte*)(*buffer); 
136 ·121·//·Grayscale·image 
137 ·122·if·(jpg->cinfo.output_components·==·1) 
138 ·123·{ 
139 ·124·for(size_t·i·=·0·;·i·<·width·*·num_rows·;·++i) 
140 ·125·{ 
141 ·126·red·=·*in; 
142 ·127·green·=·*in; 
143 ·128·blue·=·*in; 
Max diff block lines reached; 996/5419 bytes (18.38%) of diff not shown.
43.2 KB
./usr/share/doc/libsilly-doc/html/a00017_source.html
    
Offset 1, 15 lines modifiedOffset 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">2 <html·xmlns="http://www.w3.org/1999/xhtml">
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.4"/>6 <meta·name="generator"·content="Doxygen·1.9.4"/>
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/SILLYTGAImageContext.cpp·Source·File</title>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 39, 23 lines modifiedOffset 39, 23 lines modified
39 <div·id="main-nav"></div>39 <div·id="main-nav"></div>
40 <div·id="nav-path"·class="navpath">40 <div·id="nav-path"·class="navpath">
41 ··<ul>41 ··<ul>
42 <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>42 <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>
43 </div>43 </div>
44 </div><!--·top·-->44 </div><!--·top·-->
45 <div·class="header">45 <div·class="header">
46 ··<div·class="headertitle"><div·class="title">SILLYTGAImageContext.cpp</div></div>46 ··<div·class="headertitle"><div·class="title">SILLYPNGImageLoader.cpp</div></div>
47 </div><!--header-->47 </div><!--header-->
48 <div·class="contents">48 <div·class="contents">
49 <div·class="fragment"><div·class="line"><a·id="l00001"·name="l00001"></a><span·class="lineno">····1</span><span·class="comment">/***********************************************************************</span></div>49 <div·class="fragment"><div·class="line"><a·id="l00001"·name="l00001"></a><span·class="lineno">····1</span><span·class="comment">/***********************************************************************</span></div>
50 <div·class="line"><a·id="l00002"·name="l00002"></a><span·class="lineno">····2</span><span·class="comment">····filename:···SILLYTGAImageContext.cpp</span></div>50 <div·class="line"><a·id="l00002"·name="l00002"></a><span·class="lineno">····2</span><span·class="comment">····filename:···SILLYPNGImageLoader.cpp</span></div>
51 <div·class="line"><a·id="l00003"·name="l00003"></a><span·class="lineno">····3</span><span·class="comment">····created:····11·Jun·2006</span></div>51 <div·class="line"><a·id="l00003"·name="l00003"></a><span·class="lineno">····3</span><span·class="comment">····created:····11·Jun·2006</span></div>
52 <div·class="line"><a·id="l00004"·name="l00004"></a><span·class="lineno">····4</span><span·class="comment">····author:·····Olivier·Delannoy·</span></div>52 <div·class="line"><a·id="l00004"·name="l00004"></a><span·class="lineno">····4</span><span·class="comment">····author:·····Olivier·Delannoy</span></div>
53 <div·class="line"><a·id="l00005"·name="l00005"></a><span·class="lineno">····5</span><span·class="comment"></span>·</div>53 <div·class="line"><a·id="l00005"·name="l00005"></a><span·class="lineno">····5</span><span·class="comment"></span>·</div>
54 <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>54 <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>
55 <div·class="line"><a·id="l00007"·name="l00007"></a><span·class="lineno">····7</span><span·class="comment">*************************************************************************/</span></div>55 <div·class="line"><a·id="l00007"·name="l00007"></a><span·class="lineno">····7</span><span·class="comment">*************************************************************************/</span></div>
56 <div·class="line"><a·id="l00008"·name="l00008"></a><span·class="lineno">····8</span><span·class="comment">/***************************************************************************</span></div>56 <div·class="line"><a·id="l00008"·name="l00008"></a><span·class="lineno">····8</span><span·class="comment">/***************************************************************************</span></div>
57 <div·class="line"><a·id="l00009"·name="l00009"></a><span·class="lineno">····9</span><span·class="comment">·*···Copyright·(C)·2004·-·2006·Paul·D·Turner·&amp;·The·CEGUI·Development·Team</span></div>57 <div·class="line"><a·id="l00009"·name="l00009"></a><span·class="lineno">····9</span><span·class="comment">·*···Copyright·(C)·2004·-·2006·Paul·D·Turner·&amp;·The·CEGUI·Development·Team</span></div>
58 <div·class="line"><a·id="l00010"·name="l00010"></a><span·class="lineno">···10</span><span·class="comment">·*</span></div>58 <div·class="line"><a·id="l00010"·name="l00010"></a><span·class="lineno">···10</span><span·class="comment">·*</span></div>
59 <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>59 <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>
60 <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>60 <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>
61 <div·class="line"><a·id="l00013"·name="l00013"></a><span·class="lineno">···13</span><span·class="comment">·*···&quot;Software&quot;),·to·deal·in·the·Software·without·restriction,·including</span></div>61 <div·class="line"><a·id="l00013"·name="l00013"></a><span·class="lineno">···13</span><span·class="comment">·*···&quot;Software&quot;),·to·deal·in·the·Software·without·restriction,·including</span></div>
Offset 73, 33 lines modifiedOffset 73, 198 lines modified
73 <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>73 <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>
74 <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>74 <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>
75 <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>75 <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>
76 <div·class="line"><a·id="l00028"·name="l00028"></a><span·class="lineno">···28</span><span·class="comment">·*···OTHER·DEALINGS·IN·THE·SOFTWARE.</span></div>76 <div·class="line"><a·id="l00028"·name="l00028"></a><span·class="lineno">···28</span><span·class="comment">·*···OTHER·DEALINGS·IN·THE·SOFTWARE.</span></div>
77 <div·class="line"><a·id="l00029"·name="l00029"></a><span·class="lineno">···29</span><span·class="comment">·***************************************************************************/</span></div>77 <div·class="line"><a·id="l00029"·name="l00029"></a><span·class="lineno">···29</span><span·class="comment">·***************************************************************************/</span></div>
78 <div·class="line"><a·id="l00030"·name="l00030"></a><span·class="lineno">···30</span><span·class="preprocessor">#ifdef·HAVE_CONFIG_H</span></div>78 <div·class="line"><a·id="l00030"·name="l00030"></a><span·class="lineno">···30</span><span·class="preprocessor">#ifdef·HAVE_CONFIG_H</span></div>
79 <div·class="line"><a·id="l00031"·name="l00031"></a><span·class="lineno">···31</span><span·class="preprocessor">#include·&lt;config.h&gt;</span></div>79 <div·class="line"><a·id="l00031"·name="l00031"></a><span·class="lineno">···31</span><span·class="preprocessor">#include·&lt;config.h&gt;</span></div>
 80 <div·class="line"><a·id="l00032"·name="l00032"></a><span·class="lineno">···32</span><span·class="preprocessor">#include·&lt;string.h&gt;</span></div>
80 <div·class="line"><a·id="l00032"·name="l00032"></a><span·class="lineno">···32</span><span·class="preprocessor">#endif</span></div>81 <div·class="line"><a·id="l00033"·name="l00033"></a><span·class="lineno">···33</span><span·class="preprocessor">#endif</span></div>
81 <div·class="line"><a·id="l00033"·name="l00033"></a><span·class="lineno">···33</span>·</div>82 <div·class="line"><a·id="l00034"·name="l00034"></a><span·class="lineno">···34</span>·</div>
82 <div·class="line"><a·id="l00034"·name="l00034"></a><span·class="lineno">···34</span><span·class="preprocessor">#include·&quot;loaders/SILLYTGAImageContext.h&quot;</span></div>83 <div·class="line"><a·id="l00035"·name="l00035"></a><span·class="lineno">···35</span><span·class="preprocessor">#include·&quot;loaders/SILLYPNGImageLoader.h&quot;</span></div>
83 <div·class="line"><a·id="l00035"·name="l00035"></a><span·class="lineno">···35</span>·</div>84 <div·class="line"><a·id="l00036"·name="l00036"></a><span·class="lineno">···36</span>·</div>
84 <div·class="line"><a·id="l00036"·name="l00036"></a><span·class="lineno">···36</span><span·class="preprocessor">#ifndef·SILLY_OPT_INLINE</span></div>85 <div·class="line"><a·id="l00037"·name="l00037"></a><span·class="lineno">···37</span><span·class="preprocessor">#ifndef·SILLY_OPT_INLINE</span></div>
85 <div·class="line"><a·id="l00037"·name="l00037"></a><span·class="lineno">···37</span><span·class="preprocessor">#define·inline·</span></div>86 <div·class="line"><a·id="l00038"·name="l00038"></a><span·class="lineno">···38</span><span·class="preprocessor">#define·inline</span></div>
86 <div·class="line"><a·id="l00038"·name="l00038"></a><span·class="lineno">···38</span><span·class="preprocessor">#include·&quot;loaders/SILLYTGAImageContext.icpp&quot;</span></div>87 <div·class="line"><a·id="l00039"·name="l00039"></a><span·class="lineno">···39</span><span·class="preprocessor">#include·&quot;loaders/SILLYPNGImageLoader.icpp&quot;</span></div>
87 <div·class="line"><a·id="l00039"·name="l00039"></a><span·class="lineno">···39</span><span·class="preprocessor">#undef·inline</span></div>88 <div·class="line"><a·id="l00040"·name="l00040"></a><span·class="lineno">···40</span><span·class="preprocessor">#undef·inline</span></div>
88 <div·class="line"><a·id="l00040"·name="l00040"></a><span·class="lineno">···40</span><span·class="preprocessor">#endif·</span></div>89 <div·class="line"><a·id="l00041"·name="l00041"></a><span·class="lineno">···41</span><span·class="preprocessor">#endif</span></div>
 90 <div·class="line"><a·id="l00042"·name="l00042"></a><span·class="lineno">···42</span>·</div>
 91 <div·class="line"><a·id="l00043"·name="l00043"></a><span·class="lineno">···43</span><span·class="preprocessor">#include·&quot;loaders/SILLYPNGImageContext.h&quot;</span></div>
89 <div·class="line"><a·id="l00041"·name="l00041"></a><span·class="lineno">···41</span><span·class="preprocessor">#include·&lt;cstring&gt;</span></div>92 <div·class="line"><a·id="l00044"·name="l00044"></a><span·class="lineno">···44</span><span·class="preprocessor">#include·&lt;png.h&gt;</span></div>
90 <div·class="line"><a·id="l00042"·name="l00042"></a><span·class="lineno">···42</span><span·class="preprocessor">#include·&lt;cstdio&gt;</span></div> 
91 <div·class="line"><a·id="l00043"·name="l00043"></a><span·class="lineno">···43</span><span·class="comment">//·Start·section·of·namespace·SILLY</span></div>93 <div·class="line"><a·id="l00045"·name="l00045"></a><span·class="lineno">···45</span><span·class="comment">//·Start·section·of·namespace·SILLY</span></div>
92 <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>94 <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>
93 <div·class="line"><a·id="l00045"·name="l00045"></a><span·class="lineno">···45</span>{</div> 
94 <div·class="line"><a·id="l00046"·name="l00046"></a><span·class="lineno">···46</span>·</div> 
95 <div·class="line"><a·id="l00047"·name="l00047"></a><span·class="lineno">···47</span>·</div>95 <div·class="line"><a·id="l00047"·name="l00047"></a><span·class="lineno">···47</span>{</div>
 96 <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>
 97 <div·class="line"><a·id="l00049"·name="l00049"></a><span·class="lineno">···49</span>{</div>
 98 <div·class="line"><a·id="l00050"·name="l00050"></a><span·class="lineno">···50</span>····PNGImageContext*·png·=·<span·class="keyword">reinterpret_cast&lt;</span>PNGImageContext*<span·class="keyword">&gt;</span>(png_get_io_ptr(png_ptr));</div>
 99 <div·class="line"><a·id="l00051"·name="l00051"></a><span·class="lineno">···51</span>····<span·class="keywordtype">int</span>·readed·=·png-&gt;read(data,·length);</div>
 100 <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>
 101 <div·class="line"><a·id="l00053"·name="l00053"></a><span·class="lineno">···53</span>····{</div>
 102 <div·class="line"><a·id="l00054"·name="l00054"></a><span·class="lineno">···54</span>········png_error(png_ptr,·<span·class="stringliteral">&quot;PNG_read_function·error&quot;</span>);</div>
 103 <div·class="line"><a·id="l00055"·name="l00055"></a><span·class="lineno">···55</span>····}</div>
 104 <div·class="line"><a·id="l00056"·name="l00056"></a><span·class="lineno">···56</span>}</div>
 105 <div·class="line"><a·id="l00057"·name="l00057"></a><span·class="lineno">···57</span>·</div>
 106 <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>
 107 <div·class="line"><a·id="l00059"·name="l00059"></a><span·class="lineno">···59</span>·················png_const_charp·error)</div>
 108 <div·class="line"><a·id="l00060"·name="l00060"></a><span·class="lineno">···60</span>{</div>
 109 <div·class="line"><a·id="l00061"·name="l00061"></a><span·class="lineno">···61</span><span·class="comment">//····printf(&quot;PNG·Warning:·%s\n&quot;,·error);</span></div>
 110 <div·class="line"><a·id="l00062"·name="l00062"></a><span·class="lineno">···62</span>}</div>
 111 <div·class="line"><a·id="l00063"·name="l00063"></a><span·class="lineno">···63</span>·</div>
 112 <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>
 113 <div·class="line"><a·id="l00065"·name="l00065"></a><span·class="lineno">···65</span>························png_const_charp·error)</div>
 114 <div·class="line"><a·id="l00066"·name="l00066"></a><span·class="lineno">···66</span>{</div>
 115 <div·class="line"><a·id="l00067"·name="l00067"></a><span·class="lineno">···67</span>····<span·class="comment">//··printf(&quot;PNG·Error:·%s\n&quot;,·error);</span></div>
 116 <div·class="line"><a·id="l00068"·name="l00068"></a><span·class="lineno">···68</span>····<span·class="comment">//·copied·from·libpng&#39;s·pngerror.cpp</span></div>
 117 <div·class="line"><a·id="l00069"·name="l00069"></a><span·class="lineno">···69</span>····jmp_buf·buf;</div>
 118 <div·class="line"><a·id="l00070"·name="l00070"></a><span·class="lineno">···70</span><span·class="preprocessor">#if·PNG_LIBPNG_VER_MAJOR·&gt;=·1·&amp;&amp;·PNG_LIBPNG_VER_MINOR·&gt;=·4</span></div>
 119 <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>
 120 <div·class="line"><a·id="l00072"·name="l00072"></a><span·class="lineno">···72</span><span·class="preprocessor">#else</span></div>
 121 <div·class="line"><a·id="l00073"·name="l00073"></a><span·class="lineno">···73</span>····memcpy(buf,·png_ptr-&gt;jmpbuf,·<span·class="keyword">sizeof</span>(jmp_buf));</div>
 122 <div·class="line"><a·id="l00074"·name="l00074"></a><span·class="lineno">···74</span><span·class="preprocessor">#endif</span></div>
 123 <div·class="line"><a·id="l00075"·name="l00075"></a><span·class="lineno">···75</span>····longjmp(buf,·1);</div>
 124 <div·class="line"><a·id="l00076"·name="l00076"></a><span·class="lineno">···76</span>}</div>
 125 <div·class="line"><a·id="l00077"·name="l00077"></a><span·class="lineno">···77</span>·</div>
96 <div·class="line"><a·id="l00048"·name="l00048"></a><span·class="lineno">···48</span>·</div>126 <div·class="line"><a·id="l00078"·name="l00078"></a><span·class="lineno">···78</span>·</div>
 127 <div·class="line"><a·id="l00079"·name="l00079"></a><span·class="lineno">···79</span>PNGImageLoader::PNGImageLoader()</div>
 128 <div·class="line"><a·id="l00080"·name="l00080"></a><span·class="lineno">···80</span>····:·ImageLoader(<span·class="stringliteral">&quot;PNG·Image·Loader·based·on·libpng&quot;</span>)</div>
 129 <div·class="line"><a·id="l00081"·name="l00081"></a><span·class="lineno">···81</span>{</div>
 130 <div·class="line"><a·id="l00082"·name="l00082"></a><span·class="lineno">···82</span>}</div>
 131 <div·class="line"><a·id="l00083"·name="l00083"></a><span·class="lineno">···83</span>PNGImageLoader::~PNGImageLoader()</div>
 132 <div·class="line"><a·id="l00084"·name="l00084"></a><span·class="lineno">···84</span>{</div>
 133 <div·class="line"><a·id="l00085"·name="l00085"></a><span·class="lineno">···85</span>}</div>
 134 <div·class="line"><a·id="l00086"·name="l00086"></a><span·class="lineno">···86</span>·</div>
 135 <div·class="line"><a·id="l00087"·name="l00087"></a><span·class="lineno">···87</span>·</div>
 136 <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>&amp;·formatSource,·<a·class="code·hl_class"·href="a00969.html">DataSource</a>*·data)</div>
 137 <div·class="line"><a·id="l00089"·name="l00089"></a><span·class="lineno">···89</span>{</div>
 138 <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>
 139 <div·class="line"><a·id="l00091"·name="l00091"></a><span·class="lineno">···91</span>····<span·class="keywordflow">if</span>·(!png)</div>
 140 <div·class="line"><a·id="l00092"·name="l00092"></a><span·class="lineno">···92</span>····{</div>
 141 <div·class="line"><a·id="l00093"·name="l00093"></a><span·class="lineno">···93</span>········<span·class="keywordflow">return</span>·0;</div>
 142 <div·class="line"><a·id="l00094"·name="l00094"></a><span·class="lineno">···94</span>·</div>
 143 <div·class="line"><a·id="l00095"·name="l00095"></a><span·class="lineno">···95</span>····}</div>
 144 <div·class="line"><a·id="l00096"·name="l00096"></a><span·class="lineno">···96</span>····<span·class="comment">//·Prepare·png·loading</span></div>
 145 <div·class="line"><a·id="l00097"·name="l00097"></a><span·class="lineno">···97</span>····png-&gt;d_png_ptr·=·png_create_read_struct(PNG_LIBPNG_VER_STRING,·0,·0,·0);</div>
 146 <div·class="line"><a·id="l00098"·name="l00098"></a><span·class="lineno">···98</span>····<span·class="keywordflow">if</span>·(png-&gt;d_png_ptr·==·0)</div>
 147 <div·class="line"><a·id="l00099"·name="l00099"></a><span·class="lineno">···99</span>····{</div>
 148 <div·class="line"><a·id="l00100"·name="l00100"></a><span·class="lineno">··100</span>········<span·class="keyword">delete</span>·png;</div>
 149 <div·class="line"><a·id="l00101"·name="l00101"></a><span·class="lineno">··101</span>········<span·class="keywordflow">return</span>·0;</div>
 150 <div·class="line"><a·id="l00102"·name="l00102"></a><span·class="lineno">··102</span>····}</div>
 151 <div·class="line"><a·id="l00103"·name="l00103"></a><span·class="lineno">··103</span>····png-&gt;d_info_ptr·=·png_create_info_struct(png-&gt;d_png_ptr);</div>
 152 <div·class="line"><a·id="l00104"·name="l00104"></a><span·class="lineno">··104</span>····<span·class="keywordflow">if</span>·(png-&gt;d_info_ptr·==·0)</div>
 153 <div·class="line"><a·id="l00105"·name="l00105"></a><span·class="lineno">··105</span>····{</div>
 154 <div·class="line"><a·id="l00106"·name="l00106"></a><span·class="lineno">··106</span>········<span·class="keyword">delete</span>·png;</div>
 155 <div·class="line"><a·id="l00107"·name="l00107"></a><span·class="lineno">··107</span>········<span·class="keywordflow">return</span>·0;</div>
 156 <div·class="line"><a·id="l00108"·name="l00108"></a><span·class="lineno">··108</span>····}</div>
Max diff block lines reached; 271/36635 bytes (0.74%) of diff not shown.
7.32 KB
html2text {}
    
Offset 5, 21 lines modifiedOffset 5, 21 lines modified
5 Simple·Image·Loading·LibrarY 0.1.05 Simple·Image·Loading·LibrarY 0.1.0
  
6 ····*·build6 ····*·build
7 ····*·reproducible-path7 ····*·reproducible-path
8 ····*·silly-0.1.08 ····*·silly-0.1.0
9 ····*·src9 ····*·src
10 ····*·loaders10 ····*·loaders
11 SILLYTGAImageContext.cpp11 SILLYPNGImageLoader.cpp
12 ·1/***********************************************************************12 ·1/***********************************************************************
13 ·2·filename:·SILLYTGAImageContext.cpp13 ·2·filename:·SILLYPNGImageLoader.cpp
14 ·3·created:·11·Jun·200614 ·3·created:·11·Jun·2006
15 ·4·author:·Olivier·Delannoy15 ·4·author:·Olivier·Delannoy
16 ·516 ·5
17 ·6·purpose:·Definition·of·the·TGAImageContext·methods17 ·6·purpose:·Definition·of·the·PNGImageLoader·methods
18 ·7*************************************************************************/18 ·7*************************************************************************/
19 ·8/***************************************************************************19 ·8/***************************************************************************
20 ·9·*·Copyright·(C)·2004·-·2006·Paul·D·Turner·&·The·CEGUI·Development·Team20 ·9·*·Copyright·(C)·2004·-·2006·Paul·D·Turner·&·The·CEGUI·Development·Team
21 ·10·*21 ·10·*
22 ·11·*·Permission·is·hereby·granted,·free·of·charge,·to·any·person·obtaining22 ·11·*·Permission·is·hereby·granted,·free·of·charge,·to·any·person·obtaining
23 ·12·*·a·copy·of·this·software·and·associated·documentation·files·(the23 ·12·*·a·copy·of·this·software·and·associated·documentation·files·(the
24 ·13·*·"Software"),·to·deal·in·the·Software·without·restriction,·including24 ·13·*·"Software"),·to·deal·in·the·Software·without·restriction,·including
Offset 38, 31 lines modifiedOffset 38, 218 lines modified
38 ·26·*·OTHER·LIABILITY,·WHETHER·IN·AN·ACTION·OF·CONTRACT,·TORT·OR·OTHERWISE,38 ·26·*·OTHER·LIABILITY,·WHETHER·IN·AN·ACTION·OF·CONTRACT,·TORT·OR·OTHERWISE,
39 ·27·*·ARISING·FROM,·OUT·OF·OR·IN·CONNECTION·WITH·THE·SOFTWARE·OR·THE·USE·OR39 ·27·*·ARISING·FROM,·OUT·OF·OR·IN·CONNECTION·WITH·THE·SOFTWARE·OR·THE·USE·OR
40 ·28·*·OTHER·DEALINGS·IN·THE·SOFTWARE.40 ·28·*·OTHER·DEALINGS·IN·THE·SOFTWARE.
41 ·2941 ·29
42 ***************************************************************************/42 ***************************************************************************/
43 ·30#ifdef·HAVE_CONFIG_H43 ·30#ifdef·HAVE_CONFIG_H
44 ·31#include·<config.h>44 ·31#include·<config.h>
 45 ·32#include·<string.h>
45 ·32#endif46 ·33#endif
46 ·3347 ·34
47 ·34#include·"loaders/SILLYTGAImageContext.h"48 ·35#include·"loaders/SILLYPNGImageLoader.h"
48 ·3549 ·36
49 ·36#ifndef·SILLY_OPT_INLINE50 ·37#ifndef·SILLY_OPT_INLINE
50 ·37#define·inline51 ·38#define·inline
51 ·38#include·"loaders/SILLYTGAImageContext.icpp"52 ·39#include·"loaders/SILLYPNGImageLoader.icpp"
52 ·39#undef·inline53 ·40#undef·inline
53 ·40#endif54 ·41#endif
 55 ·42
 56 ·43#include·"loaders/SILLYPNGImageContext.h"
54 ·41#include·<cstring>57 ·44#include·<png.h>
55 ·42#include·<cstdio> 
56 ·43//·Start·section·of·namespace·SILLY58 ·45//·Start·section·of·namespace·SILLY
57 ·44namespace·SILLY59 ·46namespace·SILLY
58 ·45{ 
59 ·46 
60 ·4760 ·47{
61 ·4861 ·48void·PNG_read_function(png_structp·png_ptr,·png_bytep·data,·png_size_t
 62 length)
 63 ·49{
 64 ·50·PNGImageContext*·png·=·reinterpret_cast<PNGImageContext*>(png_get_io_ptr
 65 (png_ptr));
 66 ·51·int·readed·=·png->read(data,·length);
 67 ·52·if·(readed·!=·(int)length)
 68 ·53·{
 69 ·54·png_error(png_ptr,·"PNG_read_function·error");
 70 ·55·}
 71 ·56}
 72 ·57
 73 ·58void·PNG_warning_function(png_structp·png_ptr,
 74 ·59·png_const_charp·error)
 75 ·60{
 76 ·61//·printf("PNG·Warning:·%s\n",·error);
 77 ·62}
 78 ·63
 79 ·64void·PNG_error_function(png_structp·png_ptr,
 80 ·65·png_const_charp·error)
 81 ·66{
 82 ·67·//·printf("PNG·Error:·%s\n",·error);
 83 ·68·//·copied·from·libpng's·pngerror.cpp
 84 ·69·jmp_buf·buf;
 85 ·70#if·PNG_LIBPNG_VER_MAJOR·>=·1·&&·PNG_LIBPNG_VER_MINOR·>=·4
 86 ·71·memcpy(buf,·png_jmpbuf((png_ptr)),·sizeof(jmp_buf));
 87 ·72#else
 88 ·73·memcpy(buf,·png_ptr->jmpbuf,·sizeof(jmp_buf));
 89 ·74#endif
 90 ·75·longjmp(buf,·1);
 91 ·76}
 92 ·77
 93 ·78
 94 ·79PNGImageLoader::PNGImageLoader()
 95 ·80·:·ImageLoader("PNG·Image·Loader·based·on·libpng")
 96 ·81{
 97 ·82}
 98 ·83PNGImageLoader::~PNGImageLoader()
 99 ·84{
 100 ·85}
 101 ·86
 102 ·87
 103 88ImageContext*·PNGImageLoader::loadHeader(PixelFormat&·formatSource,
 104 DataSource*·data)
 105 ·89{
 106 ·90·PNGImageContext*·png·=·new·PNGImageContext(data);
 107 ·91·if·(!png)
 108 ·92·{
 109 ·93·return·0;
 110 ·94
 111 ·95·}
 112 ·96·//·Prepare·png·loading
 113 ·97·png->d_png_ptr·=·png_create_read_struct(PNG_LIBPNG_VER_STRING,·0,·0,·0);
 114 ·98·if·(png->d_png_ptr·==·0)
 115 ·99·{
 116 ·100·delete·png;
 117 ·101·return·0;
 118 ·102·}
 119 ·103·png->d_info_ptr·=·png_create_info_struct(png->d_png_ptr);
 120 ·104·if·(png->d_info_ptr·==·0)
 121 ·105·{
 122 ·106·delete·png;
 123 ·107·return·0;
 124 ·108·}
 125 ·109·if·(setjmp(png_jmpbuf(png->d_png_ptr)))
 126 ·110·{
 127 ·111·delete·png;
 128 ·112·return·0;
 129 ·113·}
 130 ·114·png_set_error_fn(png->d_png_ptr,·0,·PNG_error_function,
 131 PNG_warning_function);
 132 ·115·png_set_read_fn(png->d_png_ptr,·png,·PNG_read_function);
 133 ·116·//png_set_sig_bytes(png->d_png_ptr,·8);
 134 ·117
 135 ·118
 136 ·119
 137 ·120·//·Read·header·Check·whether·PNG·can·depaletize·transparently·or·not
 138 ·121·int·png_transform·=·PNG_TRANSFORM_STRIP_16·|·PNG_TRANSFORM_EXPAND;
 139 ·122·//printf("Start·reading·png\n");
Max diff block lines reached; 996/7472 bytes (13.33%) of diff not shown.
74.0 KB
./usr/share/doc/libsilly-doc/html/a00020_source.html
    
Offset 1, 15 lines modifiedOffset 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">2 <html·xmlns="http://www.w3.org/1999/xhtml">
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.4"/>6 <meta·name="generator"·content="Doxygen·1.9.4"/>
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/SILLYJPGImageContext.cpp·Source·File</title>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 39, 23 lines modifiedOffset 39, 23 lines modified
39 <div·id="main-nav"></div>39 <div·id="main-nav"></div>
40 <div·id="nav-path"·class="navpath">40 <div·id="nav-path"·class="navpath">
41 ··<ul>41 ··<ul>
42 <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>42 <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>
43 </div>43 </div>
44 </div><!--·top·-->44 </div><!--·top·-->
45 <div·class="header">45 <div·class="header">
46 ··<div·class="headertitle"><div·class="title">SILLYJPGImageContext.cpp</div></div>46 ··<div·class="headertitle"><div·class="title">SILLYTGAImageLoader.cpp</div></div>
47 </div><!--header-->47 </div><!--header-->
48 <div·class="contents">48 <div·class="contents">
49 <div·class="fragment"><div·class="line"><a·id="l00001"·name="l00001"></a><span·class="lineno">····1</span><span·class="comment">/***********************************************************************</span></div>49 <div·class="fragment"><div·class="line"><a·id="l00001"·name="l00001"></a><span·class="lineno">····1</span><span·class="comment">/***********************************************************************</span></div>
50 <div·class="line"><a·id="l00002"·name="l00002"></a><span·class="lineno">····2</span><span·class="comment">····filename:···SILLYJPGImageContext.cpp</span></div>50 <div·class="line"><a·id="l00002"·name="l00002"></a><span·class="lineno">····2</span><span·class="comment">····filename:···SILLYTGAImageLoader.cpp</span></div>
51 <div·class="line"><a·id="l00003"·name="l00003"></a><span·class="lineno">····3</span><span·class="comment">····created:····11·Jun·2006</span></div>51 <div·class="line"><a·id="l00003"·name="l00003"></a><span·class="lineno">····3</span><span·class="comment">····created:····11·Jun·2006</span></div>
52 <div·class="line"><a·id="l00004"·name="l00004"></a><span·class="lineno">····4</span><span·class="comment">····author:·····Olivier·Delannoy·</span></div>52 <div·class="line"><a·id="l00004"·name="l00004"></a><span·class="lineno">····4</span><span·class="comment">····author:·····Olivier·Delannoy·</span></div>
53 <div·class="line"><a·id="l00005"·name="l00005"></a><span·class="lineno">····5</span><span·class="comment"></span>·</div>53 <div·class="line"><a·id="l00005"·name="l00005"></a><span·class="lineno">····5</span><span·class="comment"></span>·</div>
54 <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>54 <div·class="line"><a·id="l00006"·name="l00006"></a><span·class="lineno">····6</span><span·class="comment">····purpose:····Load·TGA·Image··</span></div>
55 <div·class="line"><a·id="l00007"·name="l00007"></a><span·class="lineno">····7</span><span·class="comment">*************************************************************************/</span></div>55 <div·class="line"><a·id="l00007"·name="l00007"></a><span·class="lineno">····7</span><span·class="comment">*************************************************************************/</span></div>
56 <div·class="line"><a·id="l00008"·name="l00008"></a><span·class="lineno">····8</span><span·class="comment">/***************************************************************************</span></div>56 <div·class="line"><a·id="l00008"·name="l00008"></a><span·class="lineno">····8</span><span·class="comment">/***************************************************************************</span></div>
57 <div·class="line"><a·id="l00009"·name="l00009"></a><span·class="lineno">····9</span><span·class="comment">·*···Copyright·(C)·2004·-·2006·Paul·D·Turner·&amp;·The·CEGUI·Development·Team</span></div>57 <div·class="line"><a·id="l00009"·name="l00009"></a><span·class="lineno">····9</span><span·class="comment">·*···Copyright·(C)·2004·-·2006·Paul·D·Turner·&amp;·The·CEGUI·Development·Team</span></div>
58 <div·class="line"><a·id="l00010"·name="l00010"></a><span·class="lineno">···10</span><span·class="comment">·*</span></div>58 <div·class="line"><a·id="l00010"·name="l00010"></a><span·class="lineno">···10</span><span·class="comment">·*</span></div>
59 <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>59 <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>
60 <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>60 <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>
61 <div·class="line"><a·id="l00013"·name="l00013"></a><span·class="lineno">···13</span><span·class="comment">·*···&quot;Software&quot;),·to·deal·in·the·Software·without·restriction,·including</span></div>61 <div·class="line"><a·id="l00013"·name="l00013"></a><span·class="lineno">···13</span><span·class="comment">·*···&quot;Software&quot;),·to·deal·in·the·Software·without·restriction,·including</span></div>
Offset 75, 107 lines modifiedOffset 75, 309 lines modified
75 <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>75 <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>
76 <div·class="line"><a·id="l00028"·name="l00028"></a><span·class="lineno">···28</span><span·class="comment">·*···OTHER·DEALINGS·IN·THE·SOFTWARE.</span></div>76 <div·class="line"><a·id="l00028"·name="l00028"></a><span·class="lineno">···28</span><span·class="comment">·*···OTHER·DEALINGS·IN·THE·SOFTWARE.</span></div>
77 <div·class="line"><a·id="l00029"·name="l00029"></a><span·class="lineno">···29</span><span·class="comment">·***************************************************************************/</span></div>77 <div·class="line"><a·id="l00029"·name="l00029"></a><span·class="lineno">···29</span><span·class="comment">·***************************************************************************/</span></div>
78 <div·class="line"><a·id="l00030"·name="l00030"></a><span·class="lineno">···30</span><span·class="preprocessor">#ifdef·HAVE_CONFIG_H</span></div>78 <div·class="line"><a·id="l00030"·name="l00030"></a><span·class="lineno">···30</span><span·class="preprocessor">#ifdef·HAVE_CONFIG_H</span></div>
79 <div·class="line"><a·id="l00031"·name="l00031"></a><span·class="lineno">···31</span><span·class="preprocessor">#include·&lt;config.h&gt;</span></div>79 <div·class="line"><a·id="l00031"·name="l00031"></a><span·class="lineno">···31</span><span·class="preprocessor">#include·&lt;config.h&gt;</span></div>
80 <div·class="line"><a·id="l00032"·name="l00032"></a><span·class="lineno">···32</span><span·class="preprocessor">#endif</span></div>80 <div·class="line"><a·id="l00032"·name="l00032"></a><span·class="lineno">···32</span><span·class="preprocessor">#endif</span></div>
81 <div·class="line"><a·id="l00033"·name="l00033"></a><span·class="lineno">···33</span>·</div>81 <div·class="line"><a·id="l00033"·name="l00033"></a><span·class="lineno">···33</span>·</div>
82 <div·class="line"><a·id="l00034"·name="l00034"></a><span·class="lineno">···34</span><span·class="preprocessor">#include·&quot;loaders/SILLYJPGImageContext.h&quot;</span></div>82 <div·class="line"><a·id="l00034"·name="l00034"></a><span·class="lineno">···34</span><span·class="preprocessor">#include·&quot;loaders/SILLYTGAImageLoader.h&quot;</span></div>
83 <div·class="line"><a·id="l00035"·name="l00035"></a><span·class="lineno">···35</span>·</div>83 <div·class="line"><a·id="l00035"·name="l00035"></a><span·class="lineno">···35</span>·</div>
84 <div·class="line"><a·id="l00036"·name="l00036"></a><span·class="lineno">···36</span><span·class="preprocessor">#ifndef·SILLY_OPT_INLINE</span></div>84 <div·class="line"><a·id="l00036"·name="l00036"></a><span·class="lineno">···36</span><span·class="preprocessor">#ifndef·SILLY_OPT_INLINE</span></div>
85 <div·class="line"><a·id="l00037"·name="l00037"></a><span·class="lineno">···37</span><span·class="preprocessor">#define·inline·</span></div>85 <div·class="line"><a·id="l00037"·name="l00037"></a><span·class="lineno">···37</span><span·class="preprocessor">#define·inline·</span></div>
86 <div·class="line"><a·id="l00038"·name="l00038"></a><span·class="lineno">···38</span><span·class="preprocessor">#include·&quot;loaders/SILLYJPGImageContext.icpp&quot;</span></div>86 <div·class="line"><a·id="l00038"·name="l00038"></a><span·class="lineno">···38</span><span·class="preprocessor">#include·&quot;loaders/SILLYTGAImageLoader.icpp&quot;</span></div>
87 <div·class="line"><a·id="l00039"·name="l00039"></a><span·class="lineno">···39</span><span·class="preprocessor">#undef·inline</span></div>87 <div·class="line"><a·id="l00039"·name="l00039"></a><span·class="lineno">···39</span><span·class="preprocessor">#undef·inline</span></div>
88 <div·class="line"><a·id="l00040"·name="l00040"></a><span·class="lineno">···40</span><span·class="preprocessor">#endif</span></div>88 <div·class="line"><a·id="l00040"·name="l00040"></a><span·class="lineno">···40</span><span·class="preprocessor">#endif·</span></div>
89 <div·class="line"><a·id="l00041"·name="l00041"></a><span·class="lineno">···41</span>·</div> 
90 <div·class="line"><a·id="l00042"·name="l00042"></a><span·class="lineno">···42</span><span·class="preprocessor">#include·&lt;jpeglib.h&gt;</span>·</div>89 <div·class="line"><a·id="l00041"·name="l00041"></a><span·class="lineno">···41</span><span·class="preprocessor">#include·&quot;SILLYDataSource.h&quot;</span>·</div>
 90 <div·class="line"><a·id="l00042"·name="l00042"></a><span·class="lineno">···42</span><span·class="preprocessor">#include·&quot;loaders/SILLYTGAImageContext.h&quot;</span>·</div>
91 <div·class="line"><a·id="l00043"·name="l00043"></a><span·class="lineno">···43</span>·</div>91 <div·class="line"><a·id="l00043"·name="l00043"></a><span·class="lineno">···43</span>·</div>
92 <div·class="line"><a·id="l00044"·name="l00044"></a><span·class="lineno">···44</span><span·class="comment">//·Start·section·of·namespace·SILLY</span></div>92 <div·class="line"><a·id="l00044"·name="l00044"></a><span·class="lineno">···44</span><span·class="preprocessor">#include·&lt;cstring&gt;</span>·</div>
93 <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>93 <div·class="line"><a·id="l00045"·name="l00045"></a><span·class="lineno">···45</span><span·class="preprocessor">#include·&lt;cstdio&gt;</span></div>
94 <div·class="line"><a·id="l00046"·name="l00046"></a><span·class="lineno">···46</span>{</div>94 <div·class="line"><a·id="l00046"·name="l00046"></a><span·class="lineno">···46</span>·</div>
 95 <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="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>
95 <div·class="line"><a·id="l00047"·name="l00047"></a><span·class="lineno">···47</span>·</div>97 <div·class="line"><a·id="l00049"·name="l00049"></a><span·class="lineno">···49</span>{</div>
96 <div·class="line"><a·id="l00048"·name="l00048"></a><span·class="lineno">···48</span>·</div> 
97 <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> 
98 <div·class="line"><a·id="l00050"·name="l00050"></a><span·class="lineno">···50</span>{</div>98 <div·class="line"><a·id="l00050"·name="l00050"></a><span·class="lineno">···50</span>·</div>
99 <div·class="line"><a·id="l00051"·name="l00051"></a><span·class="lineno">···51</span>····<span·class="comment">//·Nothing·to·do·</span></div> 
100 <div·class="line"><a·id="l00052"·name="l00052"></a><span·class="lineno">···52</span>}</div>99 <div·class="line"><a·id="l00051"·name="l00051"></a><span·class="lineno">···51</span>TGAImageLoader::TGAImageLoader()</div>
 100 <div·class="line"><a·id="l00052"·name="l00052"></a><span·class="lineno">···52</span>····:·ImageLoader(<span·class="stringliteral">&quot;TGA·Image·loader·(builtin)&quot;</span>)</div>
101 <div·class="line"><a·id="l00053"·name="l00053"></a><span·class="lineno">···53</span>·</div>101 <div·class="line"><a·id="l00053"·name="l00053"></a><span·class="lineno">···53</span>{</div>
102 <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>102 <div·class="line"><a·id="l00054"·name="l00054"></a><span·class="lineno">···54</span>}</div>
103 <div·class="line"><a·id="l00055"·name="l00055"></a><span·class="lineno">···55</span>{</div>103 <div·class="line"><a·id="l00055"·name="l00055"></a><span·class="lineno">···55</span>·</div>
104 <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&lt;</span><a·class="code·hl_class"·href="a00945.html">JPGImageContext</a>*<span·class="keyword">&gt;</span>(cinfo-&gt;client_data);</div> 
105 <div·class="line"><a·id="l00057"·name="l00057"></a><span·class="lineno">···57</span>····cinfo-&gt;src-&gt;next_input_byte·=·jpg-&gt;d_source-&gt;<a·class="code·hl_function"·href="a00969.html#a3ae74c9d90450a3d9aa45191e1c21c13">getDataPtr</a>();</div> 
106 <div·class="line"><a·id="l00058"·name="l00058"></a><span·class="lineno">···58</span>····cinfo-&gt;src-&gt;bytes_in_buffer·=·jpg-&gt;d_source-&gt;<a·class="code·hl_function"·href="a00969.html#a319cde5b2ea76e92e922845ecfa5c615">getSize</a>();</div> 
107 <div·class="line"><a·id="l00059"·name="l00059"></a><span·class="lineno">···59</span>····<span·class="keywordflow">return</span>·TRUE;</div> 
108 <div·class="line"><a·id="l00060"·name="l00060"></a><span·class="lineno">···60</span>}</div>104 <div·class="line"><a·id="l00056"·name="l00056"></a><span·class="lineno">···56</span>TGAImageLoader::~TGAImageLoader()</div>
109 <div·class="line"><a·id="l00061"·name="l00061"></a><span·class="lineno">···61</span>·</div> 
110 <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> 
111 <div·class="line"><a·id="l00063"·name="l00063"></a><span·class="lineno">···63</span>{</div> 
112 <div·class="line"><a·id="l00064"·name="l00064"></a><span·class="lineno">···64</span>····<span·class="keywordflow">if</span>·(num_bytes·&gt;·0)</div> 
113 <div·class="line"><a·id="l00065"·name="l00065"></a><span·class="lineno">···65</span>····{</div> 
114 <div·class="line"><a·id="l00066"·name="l00066"></a><span·class="lineno">···66</span>········cinfo-&gt;src-&gt;next_input_byte·+=·(size_t)num_bytes;</div> 
115 <div·class="line"><a·id="l00067"·name="l00067"></a><span·class="lineno">···67</span>········cinfo-&gt;src-&gt;bytes_in_buffer·-=·(size_t)num_bytes;</div> 
116 <div·class="line"><a·id="l00068"·name="l00068"></a><span·class="lineno">···68</span>····}····</div> 
117 <div·class="line"><a·id="l00069"·name="l00069"></a><span·class="lineno">···69</span>}</div> 
118 <div·class="line"><a·id="l00070"·name="l00070"></a><span·class="lineno">···70</span>·</div> 
119 <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> 
120 <div·class="line"><a·id="l00072"·name="l00072"></a><span·class="lineno">···72</span>{</div>105 <div·class="line"><a·id="l00057"·name="l00057"></a><span·class="lineno">···57</span>{</div>
 106 <div·class="line"><a·id="l00058"·name="l00058"></a><span·class="lineno">···58</span>}</div>
 107 <div·class="line"><a·id="l00059"·name="l00059"></a><span·class="lineno">···59</span>·</div>
 108 <div·class="line"><a·id="l00060"·name="l00060"></a><span·class="lineno">···60</span><span·class="preprocessor">#ifdef·SILLY_BE</span></div>
 109 <div·class="line"><a·id="l00061"·name="l00061"></a><span·class="lineno">···61</span><span·class="preprocessor">#define·READ_WORD(res,·start)···················\</span></div>
 110 <div·class="line"><a·id="l00062"·name="l00062"></a><span·class="lineno">···62</span><span·class="preprocessor">····(res)·=·0;··································\</span></div>
 111 <div·class="line"><a·id="l00063"·name="l00063"></a><span·class="lineno">···63</span><span·class="preprocessor">····(res)·=·data-&gt;getDataPtr()[(start)·+·1];···············\</span></div>
 112 <div·class="line"><a·id="l00064"·name="l00064"></a><span·class="lineno">···64</span><span·class="preprocessor">····(res)·=·(res)·&lt;&lt;·8;·························\</span></div>
 113 <div·class="line"><a·id="l00065"·name="l00065"></a><span·class="lineno">···65</span><span·class="preprocessor">····(res)·|=·data-&gt;getDataPtr()[(start)];</span></div>
 114 <div·class="line"><a·id="l00066"·name="l00066"></a><span·class="lineno">···66</span><span·class="preprocessor">#else·</span></div>
 115 <div·class="line"><a·id="l00067"·name="l00067"></a><span·class="lineno">···67</span><span·class="preprocessor">#define·READ_WORD(res,·start)···················\</span></div>
 116 <div·class="line"><a·id="l00068"·name="l00068"></a><span·class="lineno">···68</span><span·class="preprocessor">····(res)·=·0;··································\</span></div>
 117 <div·class="line"><a·id="l00069"·name="l00069"></a><span·class="lineno">···69</span><span·class="preprocessor">····(res)·=·data-&gt;getDataPtr()[(start)];···················\</span></div>
 118 <div·class="line"><a·id="l00070"·name="l00070"></a><span·class="lineno">···70</span><span·class="preprocessor">····(res)·=·(res)·&lt;&lt;·8;··························\</span></div>
 119 <div·class="line"><a·id="l00071"·name="l00071"></a><span·class="lineno">···71</span><span·class="preprocessor">····(res)·|=·data-&gt;getDataPtr()[(start)·+·1];</span></div>
121 <div·class="line"><a·id="l00073"·name="l00073"></a><span·class="lineno">···73</span>····<span·class="comment">//·Nothing·to·do·</span></div>120 <div·class="line"><a·id="l00072"·name="l00072"></a><span·class="lineno">···72</span><span·class="preprocessor">#endif·</span></div>
122 <div·class="line"><a·id="l00074"·name="l00074"></a><span·class="lineno">···74</span>}</div>121 <div·class="line"><a·id="l00073"·name="l00073"></a><span·class="lineno">···73</span>·</div>
 122 <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>&amp;·formatSource,·<a·class="code·hl_class"·href="a00969.html">DataSource</a>*·data)</div>
123 <div·class="line"><a·id="l00075"·name="l00075"></a><span·class="lineno">···75</span>·</div>123 <div·class="line"><a·id="l00075"·name="l00075"></a><span·class="lineno">···75</span>{</div>
124 <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> 
125 <div·class="line"><a·id="l00077"·name="l00077"></a><span·class="lineno">···77</span>{</div> 
126 <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&lt;</span><a·class="code·hl_class"·href="a00945.html">JPGImageContext</a>*<span·class="k[·...·truncated·by·diffoscope;·len:·42,·SHA:·72fef9b5af3cf509dff73019fd5d375f60606b6e72ec3622c22468c8b902f298·...·];</div>124 <div·class="line"><a·id="l00076"·name="l00076"></a><span·class="lineno">···76</span>····<span·class="keywordtype">byte</span>·idLength·=·data-&gt;<a·class="code·hl_function"·href="a00969.html#a3ae74c9d90450a3d9aa45191e1c21c13">getDataPtr</a>()[0];</div>
 125 <div·class="line"><a·id="l00077"·name="l00077"></a><span·class="lineno">···77</span>····<span·class="keywordtype">byte</span>·colorMapType·=·data-&gt;<a·class="code·hl_function"·href="a00969.html#a3ae74c9d90450a3d9aa45191e1c21c13">getDataPtr</a>()[1];</div>
 126 <div·class="line"><a·id="l00078"·name="l00078"></a><span·class="lineno">···78</span>····<span·class="keywordtype">byte</span>·imageType·=·data-&gt;<a·class="code·hl_function"·href="a00969.html#a3ae74c9d90450a3d9aa45191e1c21c13">getDataPtr</a>()[2];</div>
127 <div·class="line"><a·id="l00079"·name="l00079"></a><span·class="lineno">···79</span>····<span·class="comment">//·TODO·</span></div>127 <div·class="line"><a·id="l00079"·name="l00079"></a><span·class="lineno">···79</span>····<span·class="keywordtype">size_t</span>·width;</div>
128 <div·class="line"><a·id="l00080"·name="l00080"></a><span·class="lineno">···80</span>····longjmp(jpg-&gt;setjmp_buffer,·1);</div>128 <div·class="line"><a·id="l00080"·name="l00080"></a><span·class="lineno">···80</span>····<span·class="keywordtype">size_t</span>·height;</div>
 129 <div·class="line"><a·id="l00081"·name="l00081"></a><span·class="lineno">···81</span>····<span·class="keywordtype">byte</span>·depth;</div>
 130 <div·class="line"><a·id="l00082"·name="l00082"></a><span·class="lineno">···82</span>····<span·class="keywordtype">byte</span>·description;</div>
 131 <div·class="line"><a·id="l00083"·name="l00083"></a><span·class="lineno">···83</span>····<span·class="keywordflow">if</span>·((imageType·!=·2·&amp;&amp;·imageType·!=·10)·||·colorMapType)</div>
129 <div·class="line"><a·id="l00081"·name="l00081"></a><span·class="lineno">···81</span>····</div>132 <div·class="line"><a·id="l00084"·name="l00084"></a><span·class="lineno">···84</span>····{</div>
130 <div·class="line"><a·id="l00082"·name="l00082"></a><span·class="lineno">···82</span>}</div> 
131 <div·class="line"><a·id="l00083"·name="l00083"></a><span·class="lineno">···83</span>·</div> 
132 <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> 
133 <div·class="line"><a·id="l00085"·name="l00085"></a><span·class="lineno">···85</span>{</div> 
134 <div·class="line"><a·id="l00086"·name="l00086"></a><span·class="lineno">···86</span>····<span·class="comment">//·Ignore·</span></div>133 <div·class="line"><a·id="l00085"·name="l00085"></a><span·class="lineno">···85</span>········<span·class="comment">//·Unsupported·image·format</span></div>
 134 <div·class="line"><a·id="l00086"·name="l00086"></a><span·class="lineno">···86</span>········<span·class="keywordflow">return</span>·0;</div>
135 <div·class="line"><a·id="l00087"·name="l00087"></a><span·class="lineno">···87</span>}</div>135 <div·class="line"><a·id="l00087"·name="l00087"></a><span·class="lineno">···87</span>····}</div>
136 <div·class="line"><a·id="l00088"·name="l00088"></a><span·class="lineno">···88</span>·</div>136 <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>
Max diff block lines reached; 1704/64039 bytes (2.66%) of diff not shown.
11.4 KB
html2text {}
    
Offset 5, 21 lines modifiedOffset 5, 21 lines modified
5 Simple·Image·Loading·LibrarY 0.1.05 Simple·Image·Loading·LibrarY 0.1.0
  
6 ····*·build6 ····*·build
7 ····*·reproducible-path7 ····*·reproducible-path
8 ····*·silly-0.1.08 ····*·silly-0.1.0
9 ····*·src9 ····*·src
10 ····*·loaders10 ····*·loaders
11 SILLYJPGImageContext.cpp11 SILLYTGAImageLoader.cpp
12 ·1/***********************************************************************12 ·1/***********************************************************************
13 ·2·filename:·SILLYJPGImageContext.cpp13 ·2·filename:·SILLYTGAImageLoader.cpp
14 ·3·created:·11·Jun·200614 ·3·created:·11·Jun·2006
15 ·4·author:·Olivier·Delannoy15 ·4·author:·Olivier·Delannoy
16 ·516 ·5
17 ·6·purpose:·Definition·of·the·JPGImageContext·class·methods17 ·6·purpose:·Load·TGA·Image
18 ·7*************************************************************************/18 ·7*************************************************************************/
19 ·8/***************************************************************************19 ·8/***************************************************************************
20 ·9·*·Copyright·(C)·2004·-·2006·Paul·D·Turner·&·The·CEGUI·Development·Team20 ·9·*·Copyright·(C)·2004·-·2006·Paul·D·Turner·&·The·CEGUI·Development·Team
21 ·10·*21 ·10·*
22 ·11·*·Permission·is·hereby·granted,·free·of·charge,·to·any·person·obtaining22 ·11·*·Permission·is·hereby·granted,·free·of·charge,·to·any·person·obtaining
23 ·12·*·a·copy·of·this·software·and·associated·documentation·files·(the23 ·12·*·a·copy·of·this·software·and·associated·documentation·files·(the
24 ·13·*·"Software"),·to·deal·in·the·Software·without·restriction,·including24 ·13·*·"Software"),·to·deal·in·the·Software·without·restriction,·including
Offset 40, 115 lines modifiedOffset 40, 328 lines modified
40 ·28·*·OTHER·DEALINGS·IN·THE·SOFTWARE.40 ·28·*·OTHER·DEALINGS·IN·THE·SOFTWARE.
41 ·2941 ·29
42 ***************************************************************************/42 ***************************************************************************/
43 ·30#ifdef·HAVE_CONFIG_H43 ·30#ifdef·HAVE_CONFIG_H
44 ·31#include·<config.h>44 ·31#include·<config.h>
45 ·32#endif45 ·32#endif
46 ·3346 ·33
47 ·34#include·"loaders/SILLYJPGImageContext.h"47 ·34#include·"loaders/SILLYTGAImageLoader.h"
48 ·3548 ·35
49 ·36#ifndef·SILLY_OPT_INLINE49 ·36#ifndef·SILLY_OPT_INLINE
50 ·37#define·inline50 ·37#define·inline
51 ·38#include·"loaders/SILLYJPGImageContext.icpp"51 ·38#include·"loaders/SILLYTGAImageLoader.icpp"
52 ·39#undef·inline52 ·39#undef·inline
53 ·40#endif53 ·40#endif
54 ·41 
55 ·42#include·<jpeglib.h>54 ·41#include·"SILLYDataSource.h"
 55 ·42#include·"loaders/SILLYTGAImageContext.h"
56 ·4356 ·43
 57 ·44#include·<cstring>
 58 ·45#include·<cstdio>
 59 ·46
57 ·44//·Start·section·of·namespace·SILLY60 ·47//·Start·section·of·namespace·SILLY
58 45namespace·SILLY61 ·48namespace·SILLY
59 ·46{62 ·49{
60 ·47 
61 ·48 
62 ·49void·JPG_init_source(j_decompress_ptr·cinfo) 
63 ·50{63 ·50
64 ·51·//·Nothing·to·do 
65 ·52}64 ·51TGAImageLoader::TGAImageLoader()
 65 ·52·:·ImageLoader("TGA·Image·loader·(builtin)")
66 ·5366 ·53{
67 ·54boolean·JPG_fill_input_buffer(j_decompress_ptr·cinfo)67 ·54}
68 ·55{68 ·55
 69 ·56TGAImageLoader::~TGAImageLoader()
69 ·56·JPGImageContext*·jpg·=·reinterpret_cast<JPGImageContext*>(cinfo- 
70 >client_data); 
71 ·57·cinfo->src->next_input_byte·=·jpg->d_source->getDataPtr(); 
72 ·58·cinfo->src->bytes_in_buffer·=·jpg->d_source->getSize(); 
73 ·59·return·TRUE; 
74 ·60} 
75 ·61 
76 ·62void·JPG_skip_input_data(j_decompress_ptr·cinfo,·long·num_bytes) 
77 ·63{ 
78 ·64·if·(num_bytes·>·0) 
79 ·65·{ 
80 ·66·cinfo->src->next_input_byte·+=·(size_t)num_bytes; 
81 ·67·cinfo->src->bytes_in_buffer·-=·(size_t)num_bytes; 
82 ·68·} 
83 ·69} 
84 ·70 
85 ·71void·JPG_term_source(j_decompress_ptr·cinfo) 
86 ·72{70 ·57{
87 ·73·//·Nothing·to·do 
88 ·74}71 ·58}
 72 ·59
 73 ·60#ifdef·SILLY_BE
 74 ·61#define·READ_WORD(res,·start)·\
 75 ·62·(res)·=·0;·\
 76 ·63·(res)·=·data->getDataPtr()[(start)·+·1];·\
 77 ·64·(res)·=·(res)·<<·8;·\
 78 ·65·(res)·|=·data->getDataPtr()[(start)];
 79 ·66#else
 80 ·67#define·READ_WORD(res,·start)·\
 81 ·68·(res)·=·0;·\
 82 ·69·(res)·=·data->getDataPtr()[(start)];·\
 83 ·70·(res)·=·(res)·<<·8;·\
 84 ·71·(res)·|=·data->getDataPtr()[(start)·+·1];
 85 ·72#endif
 86 ·73
 87 74ImageContext*·TGAImageLoader::loadHeader(PixelFormat&·formatSource,
 88 DataSource*·data)
89 ·7589 ·75{
 90 ·76·byte·idLength·=·data->getDataPtr()[0];
 91 ·77·byte·colorMapType·=·data->getDataPtr()[1];
 92 ·78·byte·imageType·=·data->getDataPtr()[2];
 93 ·79·size_t·width;
 94 ·80·size_t·height;
 95 ·81·byte·depth;
 96 ·82·byte·description;
 97 ·83·if·((imageType·!=·2·&&·imageType·!=·10)·||·colorMapType)
 98 ·84·{
 99 ·85·//·Unsupported·image·format
 100 ·86·return·0;
90 ·76void·JPG_error_exit(j_common_ptr·cinfo) 
91 ·77{ 
92 ·78·JPGImageContext*·jpg·=·reinterpret_cast<JPGImageContext*>(cinfo- 
93 >client_data); 
94 ·79·//·TODO 
95 ·80·longjmp(jpg->setjmp_buffer,·1); 
96 ·81 
97 ·82} 
98 ·83 
99 ·84void·JPG_emit_message(j_common_ptr·cinfo,·int·msg_level) 
100 ·85{ 
101 ·86·//·Ignore 
102 ·87}101 ·87·}
103 ·88 
104 ·89 
105 ·90JPGImageContext::JPGImageContext() 
106 ·91·:·ImageContext(0,·0) 
107 ·92{ 
108 ·93·src_mgr.bytes_in_buffer·=·0; 
109 ·94·src_mgr.next_input_byte·=·0; 
110 ·95·src_mgr.init_source·=·JPG_init_source; 
Max diff block lines reached; 1294/11646 bytes (11.11%) of diff not shown.
58.1 KB
./usr/share/doc/libsilly-doc/html/a00023_source.html
    
Offset 1, 15 lines modifiedOffset 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">2 <html·xmlns="http://www.w3.org/1999/xhtml">
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.4"/>6 <meta·name="generator"·content="Doxygen·1.9.4"/>
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/SILLYPNGImageLoader.cpp·Source·File</title>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 35, 27 lines modifiedOffset 35, 27 lines modified
35 ··initMenu('',false,false,'search.php','Search');35 ··initMenu('',false,false,'search.php','Search');
36 });36 });
37 /*·@license-end·*/37 /*·@license-end·*/
38 </script>38 </script>
39 <div·id="main-nav"></div>39 <div·id="main-nav"></div>
40 <div·id="nav-path"·class="navpath">40 <div·id="nav-path"·class="navpath">
41 ··<ul>41 ··<ul>
42 <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>42 <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>
43 </div>43 </div>
44 </div><!--·top·-->44 </div><!--·top·-->
45 <div·class="header">45 <div·class="header">
46 ··<div·class="headertitle"><div·class="title">SILLYPNGImageLoader.cpp</div></div>46 ··<div·class="headertitle"><div·class="title">SILLYImage.cpp</div></div>
47 </div><!--header-->47 </div><!--header-->
48 <div·class="contents">48 <div·class="contents">
49 <div·class="fragment"><div·class="line"><a·id="l00001"·name="l00001"></a><span·class="lineno">····1</span><span·class="comment">/***********************************************************************</span></div>49 <div·class="fragment"><div·class="line"><a·id="l00001"·name="l00001"></a><span·class="lineno">····1</span><span·class="comment">/***********************************************************************</span></div>
50 <div·class="line"><a·id="l00002"·name="l00002"></a><span·class="lineno">····2</span><span·class="comment">····filename:···SILLYPNGImageLoader.cpp</span></div>50 <div·class="line"><a·id="l00002"·name="l00002"></a><span·class="lineno">····2</span><span·class="comment">····filename:···SILLYImage.cpp</span></div>
51 <div·class="line"><a·id="l00003"·name="l00003"></a><span·class="lineno">····3</span><span·class="comment">····created:····11·Jun·2006</span></div>51 <div·class="line"><a·id="l00003"·name="l00003"></a><span·class="lineno">····3</span><span·class="comment">····created:····10·Jun·2006</span></div>
52 <div·class="line"><a·id="l00004"·name="l00004"></a><span·class="lineno">····4</span><span·class="comment">····author:·····Olivier·Delannoy</span></div>52 <div·class="line"><a·id="l00004"·name="l00004"></a><span·class="lineno">····4</span><span·class="comment">····author:·····Olivier·Delannoy·</span></div>
53 <div·class="line"><a·id="l00005"·name="l00005"></a><span·class="lineno">····5</span><span·class="comment"></span>·</div>53 <div·class="line"><a·id="l00005"·name="l00005"></a><span·class="lineno">····5</span><span·class="comment"></span>·</div>
54 <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>54 <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>
55 <div·class="line"><a·id="l00007"·name="l00007"></a><span·class="lineno">····7</span><span·class="comment">*************************************************************************/</span></div>55 <div·class="line"><a·id="l00007"·name="l00007"></a><span·class="lineno">····7</span><span·class="comment">*************************************************************************/</span></div>
56 <div·class="line"><a·id="l00008"·name="l00008"></a><span·class="lineno">····8</span><span·class="comment">/***************************************************************************</span></div>56 <div·class="line"><a·id="l00008"·name="l00008"></a><span·class="lineno">····8</span><span·class="comment">/***************************************************************************</span></div>
57 <div·class="line"><a·id="l00009"·name="l00009"></a><span·class="lineno">····9</span><span·class="comment">·*···Copyright·(C)·2004·-·2006·Paul·D·Turner·&amp;·The·CEGUI·Development·Team</span></div>57 <div·class="line"><a·id="l00009"·name="l00009"></a><span·class="lineno">····9</span><span·class="comment">·*···Copyright·(C)·2004·-·2006·Paul·D·Turner·&amp;·The·CEGUI·Development·Team</span></div>
58 <div·class="line"><a·id="l00010"·name="l00010"></a><span·class="lineno">···10</span><span·class="comment">·*</span></div>58 <div·class="line"><a·id="l00010"·name="l00010"></a><span·class="lineno">···10</span><span·class="comment">·*</span></div>
59 <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>59 <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>
60 <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>60 <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>
61 <div·class="line"><a·id="l00013"·name="l00013"></a><span·class="lineno">···13</span><span·class="comment">·*···&quot;Software&quot;),·to·deal·in·the·Software·without·restriction,·including</span></div>61 <div·class="line"><a·id="l00013"·name="l00013"></a><span·class="lineno">···13</span><span·class="comment">·*···&quot;Software&quot;),·to·deal·in·the·Software·without·restriction,·including</span></div>
Offset 73, 198 lines modifiedOffset 73, 102 lines modified
73 <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>73 <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>
74 <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>74 <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>
75 <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>75 <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>
76 <div·class="line"><a·id="l00028"·name="l00028"></a><span·class="lineno">···28</span><span·class="comment">·*···OTHER·DEALINGS·IN·THE·SOFTWARE.</span></div>76 <div·class="line"><a·id="l00028"·name="l00028"></a><span·class="lineno">···28</span><span·class="comment">·*···OTHER·DEALINGS·IN·THE·SOFTWARE.</span></div>
77 <div·class="line"><a·id="l00029"·name="l00029"></a><span·class="lineno">···29</span><span·class="comment">·***************************************************************************/</span></div>77 <div·class="line"><a·id="l00029"·name="l00029"></a><span·class="lineno">···29</span><span·class="comment">·***************************************************************************/</span></div>
78 <div·class="line"><a·id="l00030"·name="l00030"></a><span·class="lineno">···30</span><span·class="preprocessor">#ifdef·HAVE_CONFIG_H</span></div>78 <div·class="line"><a·id="l00030"·name="l00030"></a><span·class="lineno">···30</span><span·class="preprocessor">#ifdef·HAVE_CONFIG_H</span></div>
79 <div·class="line"><a·id="l00031"·name="l00031"></a><span·class="lineno">···31</span><span·class="preprocessor">#include·&lt;config.h&gt;</span></div>79 <div·class="line"><a·id="l00031"·name="l00031"></a><span·class="lineno">···31</span><span·class="preprocessor">#include·&lt;config.h&gt;</span></div>
80 <div·class="line"><a·id="l00032"·name="l00032"></a><span·class="lineno">···32</span><span·class="preprocessor">#include·&lt;string.h&gt;</span></div> 
81 <div·class="line"><a·id="l00033"·name="l00033"></a><span·class="lineno">···33</span><span·class="preprocessor">#endif</span></div>80 <div·class="line"><a·id="l00032"·name="l00032"></a><span·class="lineno">···32</span><span·class="preprocessor">#endif</span></div>
82 <div·class="line"><a·id="l00034"·name="l00034"></a><span·class="lineno">···34</span>·</div>81 <div·class="line"><a·id="l00033"·name="l00033"></a><span·class="lineno">···33</span>·</div>
83 <div·class="line"><a·id="l00035"·name="l00035"></a><span·class="lineno">···35</span><span·class="preprocessor">#include·&quot;loaders/SILLYPNGImageLoader.h&quot;</span></div>82 <div·class="line"><a·id="l00034"·name="l00034"></a><span·class="lineno">···34</span><span·class="preprocessor">#include·&quot;SILLYImage.h&quot;</span></div>
84 <div·class="line"><a·id="l00036"·name="l00036"></a><span·class="lineno">···36</span>·</div>83 <div·class="line"><a·id="l00035"·name="l00035"></a><span·class="lineno">···35</span>·</div>
85 <div·class="line"><a·id="l00037"·name="l00037"></a><span·class="lineno">···37</span><span·class="preprocessor">#ifndef·SILLY_OPT_INLINE</span></div>84 <div·class="line"><a·id="l00036"·name="l00036"></a><span·class="lineno">···36</span><span·class="preprocessor">#ifndef·SILLY_OPT_INLINE</span></div>
86 <div·class="line"><a·id="l00038"·name="l00038"></a><span·class="lineno">···38</span><span·class="preprocessor">#define·inline</span></div>85 <div·class="line"><a·id="l00037"·name="l00037"></a><span·class="lineno">···37</span><span·class="preprocessor">#define·inline·</span></div>
87 <div·class="line"><a·id="l00039"·name="l00039"></a><span·class="lineno">···39</span><span·class="preprocessor">#include·&quot;loaders/SILLYPNGImageLoader.icpp&quot;</span></div>86 <div·class="line"><a·id="l00038"·name="l00038"></a><span·class="lineno">···38</span><span·class="preprocessor">#include·&quot;SILLYImage.icpp&quot;</span></div>
88 <div·class="line"><a·id="l00040"·name="l00040"></a><span·class="lineno">···40</span><span·class="preprocessor">#undef·inline</span></div>87 <div·class="line"><a·id="l00039"·name="l00039"></a><span·class="lineno">···39</span><span·class="preprocessor">#undef·inline</span></div>
89 <div·class="line"><a·id="l00041"·name="l00041"></a><span·class="lineno">···41</span><span·class="preprocessor">#endif</span></div>88 <div·class="line"><a·id="l00040"·name="l00040"></a><span·class="lineno">···40</span><span·class="preprocessor">#endif·</span></div>
 89 <div·class="line"><a·id="l00041"·name="l00041"></a><span·class="lineno">···41</span><span·class="preprocessor">#include·&quot;SILLYImageLoaderManager.h&quot;</span></div>
90 <div·class="line"><a·id="l00042"·name="l00042"></a><span·class="lineno">···42</span>·</div>90 <div·class="line"><a·id="l00042"·name="l00042"></a><span·class="lineno">···42</span>·</div>
 91 <div·class="line"><a·id="l00043"·name="l00043"></a><span·class="lineno">···43</span>·</div>
91 <div·class="line"><a·id="l00043"·name="l00043"></a><span·class="lineno">···43</span><span·class="preprocessor">#include·&quot;loaders/SILLYPNGImageContext.h&quot;</span></div> 
92 <div·class="line"><a·id="l00044"·name="l00044"></a><span·class="lineno">···44</span><span·class="preprocessor">#include·&lt;png.h&gt;</span></div> 
93 <div·class="line"><a·id="l00045"·name="l00045"></a><span·class="lineno">···45</span><span·class="comment">//·Start·section·of·namespace·SILLY</span></div>92 <div·class="line"><a·id="l00044"·name="l00044"></a><span·class="lineno">···44</span><span·class="comment">//·Start·section·of·namespace·SILLY</span></div>
94 <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>93 <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>
 94 <div·class="line"><a·id="l00046"·name="l00046"></a><span·class="lineno">···46</span>{</div>
95 <div·class="line"><a·id="l00047"·name="l00047"></a><span·class="lineno">···47</span>{</div>95 <div·class="line"><a·id="l00047"·name="l00047"></a><span·class="lineno">···47</span>·</div>
96 <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>96 <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>&amp;·source)</div>
 97 <div·class="line"><a·id="l00049"·name="l00049"></a><span·class="lineno">···49</span>··:··d_bpp(0),·d_pixels(0),·d_data(&amp;source),·d_imageContext(0),·d_imageLoader(0)</div>
97 <div·class="line"><a·id="l00049"·name="l00049"></a><span·class="lineno">···49</span>{</div>98 <div·class="line"><a·id="l00050"·name="l00050"></a><span·class="lineno">···50</span>{</div>
 99 <div·class="line"><a·id="l00051"·name="l00051"></a><span·class="lineno">···51</span>}</div>
 100 <div·class="line"><a·id="l00052"·name="l00052"></a><span·class="lineno">···52</span>·</div>
98 <div·class="line"><a·id="l00050"·name="l00050"></a><span·class="lineno">···50</span>····PNGImageContext*·png·=·<span·class="keyword">reinterpret_cast&lt;</span>PNGImageContext*<span·class="keyword">&gt;</span>(png_get_io_ptr(png_ptr));</div> 
99 <div·class="line"><a·id="l00051"·name="l00051"></a><span·class="lineno">···51</span>····<span·class="keywordtype">int</span>·readed·=·png-&gt;read(data,·length);</div> 
100 <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> 
101 <div·class="line"><a·id="l00053"·name="l00053"></a><span·class="lineno">···53</span>····{</div>101 <div·class="line"><a·id="l00053"·name="l00053"></a><span·class="lineno">···53</span>·</div>
102 <div·class="line"><a·id="l00054"·name="l00054"></a><span·class="lineno">···54</span>········png_error(png_ptr,·<span·class="stringliteral">&quot;PNG_read_function·error&quot;</span>);</div>102 <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>
103 <div·class="line"><a·id="l00055"·name="l00055"></a><span·class="lineno">···55</span>····}</div>103 <div·class="line"><a·id="l00055"·name="l00055"></a><span·class="lineno">···55</span>{</div>
104 <div·class="line"><a·id="l00056"·name="l00056"></a><span·class="lineno">···56</span>}</div>104 <div·class="line"><a·id="l00056"·name="l00056"></a><span·class="lineno">···56</span>····ImageLoaderList::iterator·iter·=·ImageLoaderManager::getSingleton().begin();</div>
 105 <div·class="line"><a·id="l00057"·name="l00057"></a><span·class="lineno">···57</span>····<span·class="keywordflow">for</span>·(;·!·d_imageLoader·&amp;&amp;·iter·!=·ImageLoaderManager::getSingleton().end()·;·++iter)</div>
105 <div·class="line"><a·id="l00057"·name="l00057"></a><span·class="lineno">···57</span>·</div>106 <div·class="line"><a·id="l00058"·name="l00058"></a><span·class="lineno">···58</span>····{</div>
 107 <div·class="line"><a·id="l00059"·name="l00059"></a><span·class="lineno">···59</span>········d_imageContext·=·(*iter)-&gt;loadHeader(d_pfSource,·d_data);</div>
106 <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>108 <div·class="line"><a·id="l00060"·name="l00060"></a><span·class="lineno">···60</span>········<span·class="keywordflow">if</span>·(d_imageContext)</div>
107 <div·class="line"><a·id="l00059"·name="l00059"></a><span·class="lineno">···59</span>·················png_const_charp·error)</div>109 <div·class="line"><a·id="l00061"·name="l00061"></a><span·class="lineno">···61</span>············d_imageLoader·=·(*iter);</div>
108 <div·class="line"><a·id="l00060"·name="l00060"></a><span·class="lineno">···60</span>{</div> 
109 <div·class="line"><a·id="l00061"·name="l00061"></a><span·class="lineno">···61</span><span·class="comment">//····printf(&quot;PNG·Warning:·%s\n&quot;,·error);</span></div> 
110 <div·class="line"><a·id="l00062"·name="l00062"></a><span·class="lineno">···62</span>}</div>110 <div·class="line"><a·id="l00062"·name="l00062"></a><span·class="lineno">···62</span>····}</div>
 111 <div·class="line"><a·id="l00063"·name="l00063"></a><span·class="lineno">···63</span>····assert((!·d_imageLoader·||·d_imageContext)·&amp;&amp;·<span·class="stringliteral">&quot;ASSERT:·Internal·state·of·image·invalid&quot;</span>);</div>
 112 <div·class="line"><a·id="l00064"·name="l00064"></a><span·class="lineno">···64</span>····<span·class="keywordflow">return</span>·d_imageLoader·!=·0;</div>
111 <div·class="line"><a·id="l00063"·name="l00063"></a><span·class="lineno">···63</span>·</div>113 <div·class="line"><a·id="l00065"·name="l00065"></a><span·class="lineno">···65</span>····</div>
112 <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> 
113 <div·class="line"><a·id="l00065"·name="l00065"></a><span·class="lineno">···65</span>························png_const_charp·error)</div> 
114 <div·class="line"><a·id="l00066"·name="l00066"></a><span·class="lineno">···66</span>{</div>114 <div·class="line"><a·id="l00066"·name="l00066"></a><span·class="lineno">···66</span>}</div>
115 <div·class="line"><a·id="l00067"·name="l00067"></a><span·class="lineno">···67</span>····<span·class="comment">//··printf(&quot;PNG·Error:·%s\n&quot;,·error);</span></div> 
116 <div·class="line"><a·id="l00068"·name="l00068"></a><span·class="lineno">···68</span>····<span·class="comment">//·copied·from·libpng&#39;s·pngerror.cpp</span></div> 
117 <div·class="line"><a·id="l00069"·name="l00069"></a><span·class="lineno">···69</span>····jmp_buf·buf;</div> 
118 <div·class="line"><a·id="l00070"·name="l00070"></a><span·class="lineno">···70</span><span·class="preprocessor">#if·PNG_LIBPNG_VER_MAJOR·&gt;=·1·&amp;&amp;·PNG_LIBPNG_VER_MINOR·&gt;=·4</span></div> 
119 <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> 
120 <div·class="line"><a·id="l00072"·name="l00072"></a><span·class="lineno">···72</span><span·class="preprocessor">#else</span></div> 
121 <div·class="line"><a·id="l00073"·name="l00073"></a><span·class="lineno">···73</span>····memcpy(buf,·png_ptr-&gt;jmpbuf,·<span·class="keyword">sizeof</span>(jmp_buf));</div> 
122 <div·class="line"><a·id="l00074"·name="l00074"></a><span·class="lineno">···74</span><span·class="preprocessor">#endif</span></div> 
123 <div·class="line"><a·id="l00075"·name="l00075"></a><span·class="lineno">···75</span>····longjmp(buf,·1);</div> 
124 <div·class="line"><a·id="l00076"·name="l00076"></a><span·class="lineno">···76</span>}</div> 
125 <div·class="line"><a·id="l00077"·name="l00077"></a><span·class="lineno">···77</span>·</div>115 <div·class="line"><a·id="l00067"·name="l00067"></a><span·class="lineno">···67</span>·</div>
 116 <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>
 117 <div·class="line"><a·id="l00069"·name="l00069"></a><span·class="lineno">···69</span>{</div>
 118 <div·class="line"><a·id="l00070"·name="l00070"></a><span·class="lineno">···70</span>····<span·class="keywordflow">switch</span>·(resultFormat)</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>····<span·class="keywordflow">case</span>·PF_A1B5G5R5:</div>
 121 <div·class="line"><a·id="l00073"·name="l00073"></a><span·class="lineno">···73</span>········d_bpp·=·2;</div>
 122 <div·class="line"><a·id="l00074"·name="l00074"></a><span·class="lineno">···74</span>········<span·class="keywordflow">break</span>;</div>
 123 <div·class="line"><a·id="l00075"·name="l00075"></a><span·class="lineno">···75</span>····<span·class="keywordflow">case</span>·PF_RGB:</div>
 124 <div·class="line"><a·id="l00076"·name="l00076"></a><span·class="lineno">···76</span>········d_bpp·=·3;</div>
 125 <div·class="line"><a·id="l00077"·name="l00077"></a><span·class="lineno">···77</span>········<span·class="keywordflow">break</span>;</div>
126 <div·class="line"><a·id="l00078"·name="l00078"></a><span·class="lineno">···78</span>·</div>126 <div·class="line"><a·id="l00078"·name="l00078"></a><span·class="lineno">···78</span>·</div>
 127 <div·class="line"><a·id="l00079"·name="l00079"></a><span·class="lineno">···79</span>····<span·class="keywordflow">case</span>·PF_RGBA:····</div>
127 <div·class="line"><a·id="l00079"·name="l00079"></a><span·class="lineno">···79</span>PNGImageLoader::PNGImageLoader()</div> 
128 <div·class="line"><a·id="l00080"·name="l00080"></a><span·class="lineno">···80</span>····:·ImageLoader(<span·class="stringliteral">&quot;PNG·Image·Loader·based·on·libpng&quot;</span>)</div> 
129 <div·class="line"><a·id="l00081"·name="l00081"></a><span·class="lineno">···81</span>{</div>128 <div·class="line"><a·id="l00080"·name="l00080"></a><span·class="lineno">···80</span>········d_bpp·=·4;</div>
 129 <div·class="line"><a·id="l00081"·name="l00081"></a><span·class="lineno">···81</span>········<span·class="keywordflow">break</span>;</div>
130 <div·class="line"><a·id="l00082"·name="l00082"></a><span·class="lineno">···82</span>}</div>130 <div·class="line"><a·id="l00082"·name="l00082"></a><span·class="lineno">···82</span>········<span·class="comment">//default:</span></div>
131 <div·class="line"><a·id="l00083"·name="l00083"></a><span·class="lineno">···83</span>PNGImageLoader::~PNGImageLoader()</div>131 <div·class="line"><a·id="l00083"·name="l00083"></a><span·class="lineno">···83</span>········<span·class="comment">//·Unsupported·format·</span></div>
132 <div·class="line"><a·id="l00084"·name="l00084"></a><span·class="lineno">···84</span>{</div>132 <div·class="line"><a·id="l00084"·name="l00084"></a><span·class="lineno">···84</span>····};</div>
133 <div·class="line"><a·id="l00085"·name="l00085"></a><span·class="lineno">···85</span>}</div>133 <div·class="line"><a·id="l00085"·name="l00085"></a><span·class="lineno">···85</span>·</div>
Max diff block lines reached; 271/49583 bytes (0.55%) of diff not shown.
9.62 KB
html2text {}
    
Offset 4, 22 lines modifiedOffset 4, 21 lines modified
  
4 Simple·Image·Loading·LibrarY 0.1.04 Simple·Image·Loading·LibrarY 0.1.0
  
5 ····*·build5 ····*·build
6 ····*·reproducible-path6 ····*·reproducible-path
7 ····*·silly-0.1.07 ····*·silly-0.1.0
8 ····*·src8 ····*·src
9 ····*·loaders 
10 SILLYPNGImageLoader.cpp9 SILLYImage.cpp
11 ·1/***********************************************************************10 ·1/***********************************************************************
12 ·2·filename:·SILLYPNGImageLoader.cpp11 ·2·filename:·SILLYImage.cpp
13 ·3·created:·11·Jun·200612 ·3·created:·10·Jun·2006
14 ·4·author:·Olivier·Delannoy13 ·4·author:·Olivier·Delannoy
15 ·514 ·5
16 ·6·purpose:·Definition·of·the·PNGImageLoader·methods15 ·6·purpose:·Implementation·of·the·Image·class
17 ·7*************************************************************************/16 ·7*************************************************************************/
18 ·8/***************************************************************************17 ·8/***************************************************************************
19 ·9·*·Copyright·(C)·2004·-·2006·Paul·D·Turner·&·The·CEGUI·Development·Team18 ·9·*·Copyright·(C)·2004·-·2006·Paul·D·Turner·&·The·CEGUI·Development·Team
20 ·10·*19 ·10·*
21 ·11·*·Permission·is·hereby·granted,·free·of·charge,·to·any·person·obtaining20 ·11·*·Permission·is·hereby·granted,·free·of·charge,·to·any·person·obtaining
22 ·12·*·a·copy·of·this·software·and·associated·documentation·files·(the21 ·12·*·a·copy·of·this·software·and·associated·documentation·files·(the
23 ·13·*·"Software"),·to·deal·in·the·Software·without·restriction,·including22 ·13·*·"Software"),·to·deal·in·the·Software·without·restriction,·including
Offset 38, 218 lines modifiedOffset 37, 132 lines modified
38 ·26·*·OTHER·LIABILITY,·WHETHER·IN·AN·ACTION·OF·CONTRACT,·TORT·OR·OTHERWISE,37 ·26·*·OTHER·LIABILITY,·WHETHER·IN·AN·ACTION·OF·CONTRACT,·TORT·OR·OTHERWISE,
39 ·27·*·ARISING·FROM,·OUT·OF·OR·IN·CONNECTION·WITH·THE·SOFTWARE·OR·THE·USE·OR38 ·27·*·ARISING·FROM,·OUT·OF·OR·IN·CONNECTION·WITH·THE·SOFTWARE·OR·THE·USE·OR
40 ·28·*·OTHER·DEALINGS·IN·THE·SOFTWARE.39 ·28·*·OTHER·DEALINGS·IN·THE·SOFTWARE.
41 ·2940 ·29
42 ***************************************************************************/41 ***************************************************************************/
43 ·30#ifdef·HAVE_CONFIG_H42 ·30#ifdef·HAVE_CONFIG_H
44 ·31#include·<config.h>43 ·31#include·<config.h>
45 ·32#include·<string.h> 
46 ·33#endif44 ·32#endif
47 ·34 
48 ·35#include·"loaders/SILLYPNGImageLoader.h" 
49 ·3645 ·33
 46 ·34#include·"SILLYImage.h"
 47 ·35
50 ·37#ifndef·SILLY_OPT_INLINE48 ·36#ifndef·SILLY_OPT_INLINE
51 ·38#define·inline49 ·37#define·inline
52 ·39#include·"loaders/SILLYPNGImageLoader.icpp"50 ·38#include·"SILLYImage.icpp"
53 ·40#undef·inline51 ·39#undef·inline
54 ·41#endif52 ·40#endif
 53 ·41#include·"SILLYImageLoaderManager.h"
55 ·4254 ·42
 55 ·43
56 ·43#include·"loaders/SILLYPNGImageContext.h" 
57 ·44#include·<png.h> 
58 ·45//·Start·section·of·namespace·SILLY56 ·44//·Start·section·of·namespace·SILLY
59 ·46namespace·SILLY57 ·45namespace·SILLY
 58 ·46{
60 ·47{59 ·47
61 ·48void·PNG_read_function(png_structp·png_ptr,·png_bytep·data,·png_size_t 
62 length) 
63 ·49{ 
64 ·50·PNGImageContext*·png·=·reinterpret_cast<PNGImageContext*>(png_get_io_ptr 
65 (png_ptr)); 
66 ·51·int·readed·=·png->read(data,·length); 
67 ·52·if·(readed·!=·(int)length)60 48Image::Image(DataSource&·source)
 61 ·49·:·d_bpp(0),·d_pixels(0),·d_data(&source),·d_imageContext(0),·d_imageLoader
 62 (0)
 63 ·50{
 64 ·51}
 65 ·52
 66 ·53
 67 54bool·Image::loadImageHeader()
 68 ·55{
 69 ·56·ImageLoaderList::iterator·iter·=·ImageLoaderManager::getSingleton().begin
 70 ();
 71 ·57·for·(;·!·d_imageLoader·&&·iter·!=·ImageLoaderManager::getSingleton().end()
 72 ;·++iter)
68 ·53·{73 ·58·{
 74 ·59·d_imageContext·=·(*iter)->loadHeader(d_pfSource,·d_data);
 75 ·60·if·(d_imageContext)
 76 ·61·d_imageLoader·=·(*iter);
69 ·54·png_error(png_ptr,·"PNG_read_function·error"); 
70 ·55·} 
71 ·56} 
72 ·57 
73 ·58void·PNG_warning_function(png_structp·png_ptr, 
74 ·59·png_const_charp·error) 
75 ·60{ 
76 ·61//·printf("PNG·Warning:·%s\n",·error); 
77 ·62}77 ·62·}
78 ·63 
79 ·64void·PNG_error_function(png_structp·png_ptr, 
80 ·65·png_const_charp·error)78 ·63·assert((!·d_imageLoader·||·d_imageContext)·&&·"ASSERT:·Internal·state·of
 79 image·invalid");
 80 ·64·return·d_imageLoader·!=·0;
 81 ·65
81 ·66{82 ·66}
82 ·67·//·printf("PNG·Error:·%s\n",·error); 
83 ·68·//·copied·from·libpng's·pngerror.cpp 
84 ·69·jmp_buf·buf; 
85 ·70#if·PNG_LIBPNG_VER_MAJOR·>=·1·&&·PNG_LIBPNG_VER_MINOR·>=·4 
86 ·71·memcpy(buf,·png_jmpbuf((png_ptr)),·sizeof(jmp_buf)); 
87 ·72#else 
88 ·73·memcpy(buf,·png_ptr->jmpbuf,·sizeof(jmp_buf)); 
89 ·74#endif 
90 ·75·longjmp(buf,·1); 
91 ·76} 
92 ·7783 ·67
 84 68bool·Image::loadImageData(PixelFormat·resultFormat,·PixelOrigin·order)
 85 ·69{
 86 ·70·switch·(resultFormat)
 87 ·71·{
 88 ·72·case·PF_A1B5G5R5:
 89 ·73·d_bpp·=·2;
 90 ·74·break;
 91 ·75·case·PF_RGB:
 92 ·76·d_bpp·=·3;
 93 ·77·break;
93 ·7894 ·78
94 ·79PNGImageLoader::PNGImageLoader() 
95 ·80·:·ImageLoader("PNG·Image·Loader·based·on·libpng") 
96 ·81{ 
97 ·82} 
98 ·83PNGImageLoader::~PNGImageLoader() 
99 ·84{95 ·79·case·PF_RGBA:
 96 ·80·d_bpp·=·4;
 97 ·81·break;
 98 ·82·//default:
 99 ·83·//·Unsupported·format
 100 ·84·};
100 ·85}101 ·85
101 ·86102 ·86·if·(!·allocate())
102 ·87103 ·87·{
 104 ·88·return·false;
Max diff block lines reached; 1944/9822 bytes (19.79%) of diff not shown.
25.2 KB
./usr/share/doc/libsilly-doc/html/a00026_source.html
    
Offset 1, 15 lines modifiedOffset 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">2 <html·xmlns="http://www.w3.org/1999/xhtml">
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.4"/>6 <meta·name="generator"·content="Doxygen·1.9.4"/>
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/SILLYPNGImageContext.cpp·Source·File</title>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 35, 27 lines modifiedOffset 35, 27 lines modified
35 ··initMenu('',false,false,'search.php','Search');35 ··initMenu('',false,false,'search.php','Search');
36 });36 });
37 /*·@license-end·*/37 /*·@license-end·*/
38 </script>38 </script>
39 <div·id="main-nav"></div>39 <div·id="main-nav"></div>
40 <div·id="nav-path"·class="navpath">40 <div·id="nav-path"·class="navpath">
41 ··<ul>41 ··<ul>
42 <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>42 <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>
43 </div>43 </div>
44 </div><!--·top·-->44 </div><!--·top·-->
45 <div·class="header">45 <div·class="header">
46 ··<div·class="headertitle"><div·class="title">SILLYPNGImageContext.cpp</div></div>46 ··<div·class="headertitle"><div·class="title">SILLYImageContext.cpp</div></div>
47 </div><!--header-->47 </div><!--header-->
48 <div·class="contents">48 <div·class="contents">
49 <div·class="fragment"><div·class="line"><a·id="l00001"·name="l00001"></a><span·class="lineno">····1</span><span·class="comment">/***********************************************************************</span></div>49 <div·class="fragment"><div·class="line"><a·id="l00001"·name="l00001"></a><span·class="lineno">····1</span><span·class="comment">/***********************************************************************</span></div>
50 <div·class="line"><a·id="l00002"·name="l00002"></a><span·class="lineno">····2</span><span·class="comment">····filename:···SILLYPNGImageContext.cpp</span></div>50 <div·class="line"><a·id="l00002"·name="l00002"></a><span·class="lineno">····2</span><span·class="comment">····filename:···SILLYImageContext.cpp</span></div>
51 <div·class="line"><a·id="l00003"·name="l00003"></a><span·class="lineno">····3</span><span·class="comment">····created:····11·Jun·2006</span></div>51 <div·class="line"><a·id="l00003"·name="l00003"></a><span·class="lineno">····3</span><span·class="comment">····created:····10·Jun·2006</span></div>
52 <div·class="line"><a·id="l00004"·name="l00004"></a><span·class="lineno">····4</span><span·class="comment">····author:·····Olivier·Delannoy·</span></div>52 <div·class="line"><a·id="l00004"·name="l00004"></a><span·class="lineno">····4</span><span·class="comment">····author:·····Olivier·Delannoy·</span></div>
53 <div·class="line"><a·id="l00005"·name="l00005"></a><span·class="lineno">····5</span><span·class="comment"></span>·</div>53 <div·class="line"><a·id="l00005"·name="l00005"></a><span·class="lineno">····5</span><span·class="comment"></span>·</div>
54 <div·class="line"><a·id="l00006"·name="l00006"></a><span·class="lineno">····6</span><span·class="comment">····purpose:····Definition·of·PNGImageContext·methods··</span></div>54 <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>
55 <div·class="line"><a·id="l00007"·name="l00007"></a><span·class="lineno">····7</span><span·class="comment">*************************************************************************/</span></div>55 <div·class="line"><a·id="l00007"·name="l00007"></a><span·class="lineno">····7</span><span·class="comment">*************************************************************************/</span></div>
56 <div·class="line"><a·id="l00008"·name="l00008"></a><span·class="lineno">····8</span><span·class="comment">/***************************************************************************</span></div>56 <div·class="line"><a·id="l00008"·name="l00008"></a><span·class="lineno">····8</span><span·class="comment">/***************************************************************************</span></div>
57 <div·class="line"><a·id="l00009"·name="l00009"></a><span·class="lineno">····9</span><span·class="comment">·*···Copyright·(C)·2004·-·2006·Paul·D·Turner·&amp;·The·CEGUI·Development·Team</span></div>57 <div·class="line"><a·id="l00009"·name="l00009"></a><span·class="lineno">····9</span><span·class="comment">·*···Copyright·(C)·2004·-·2006·Paul·D·Turner·&amp;·The·CEGUI·Development·Team</span></div>
58 <div·class="line"><a·id="l00010"·name="l00010"></a><span·class="lineno">···10</span><span·class="comment">·*</span></div>58 <div·class="line"><a·id="l00010"·name="l00010"></a><span·class="lineno">···10</span><span·class="comment">·*</span></div>
59 <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>59 <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>
60 <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>60 <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>
61 <div·class="line"><a·id="l00013"·name="l00013"></a><span·class="lineno">···13</span><span·class="comment">·*···&quot;Software&quot;),·to·deal·in·the·Software·without·restriction,·including</span></div>61 <div·class="line"><a·id="l00013"·name="l00013"></a><span·class="lineno">···13</span><span·class="comment">·*···&quot;Software&quot;),·to·deal·in·the·Software·without·restriction,·including</span></div>
Offset 75, 66 lines modifiedOffset 75, 67 lines modified
75 <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>75 <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>
76 <div·class="line"><a·id="l00028"·name="l00028"></a><span·class="lineno">···28</span><span·class="comment">·*···OTHER·DEALINGS·IN·THE·SOFTWARE.</span></div>76 <div·class="line"><a·id="l00028"·name="l00028"></a><span·class="lineno">···28</span><span·class="comment">·*···OTHER·DEALINGS·IN·THE·SOFTWARE.</span></div>
77 <div·class="line"><a·id="l00029"·name="l00029"></a><span·class="lineno">···29</span><span·class="comment">·***************************************************************************/</span></div>77 <div·class="line"><a·id="l00029"·name="l00029"></a><span·class="lineno">···29</span><span·class="comment">·***************************************************************************/</span></div>
78 <div·class="line"><a·id="l00030"·name="l00030"></a><span·class="lineno">···30</span><span·class="preprocessor">#ifdef·HAVE_CONFIG_H</span></div>78 <div·class="line"><a·id="l00030"·name="l00030"></a><span·class="lineno">···30</span><span·class="preprocessor">#ifdef·HAVE_CONFIG_H</span></div>
79 <div·class="line"><a·id="l00031"·name="l00031"></a><span·class="lineno">···31</span><span·class="preprocessor">#include·&lt;config.h&gt;</span></div>79 <div·class="line"><a·id="l00031"·name="l00031"></a><span·class="lineno">···31</span><span·class="preprocessor">#include·&lt;config.h&gt;</span></div>
80 <div·class="line"><a·id="l00032"·name="l00032"></a><span·class="lineno">···32</span><span·class="preprocessor">#endif</span></div>80 <div·class="line"><a·id="l00032"·name="l00032"></a><span·class="lineno">···32</span><span·class="preprocessor">#endif</span></div>
81 <div·class="line"><a·id="l00033"·name="l00033"></a><span·class="lineno">···33</span>·</div>81 <div·class="line"><a·id="l00033"·name="l00033"></a><span·class="lineno">···33</span>·</div>
82 <div·class="line"><a·id="l00034"·name="l00034"></a><span·class="lineno">···34</span><span·class="preprocessor">#include·&quot;loaders/SILLYPNGImageContext.h&quot;</span></div>82 <div·class="line"><a·id="l00034"·name="l00034"></a><span·class="lineno">···34</span><span·class="preprocessor">#include·&quot;SILLYImageContext.h&quot;</span></div>
83 <div·class="line"><a·id="l00035"·name="l00035"></a><span·class="lineno">···35</span>·</div> 
84 <div·class="line"><a·id="l00036"·name="l00036"></a><span·class="lineno">···36</span><span·class="preprocessor">#ifndef·SILLY_OPT_INLINE</span></div>83 <div·class="line"><a·id="l00035"·name="l00035"></a><span·class="lineno">···35</span><span·class="preprocessor">#ifndef·SILLY_OPT_INLINE</span></div>
85 <div·class="line"><a·id="l00037"·name="l00037"></a><span·class="lineno">···37</span><span·class="preprocessor">#define·inline·</span></div>84 <div·class="line"><a·id="l00036"·name="l00036"></a><span·class="lineno">···36</span><span·class="preprocessor">#define·inline·</span></div>
86 <div·class="line"><a·id="l00038"·name="l00038"></a><span·class="lineno">···38</span><span·class="preprocessor">#include·&quot;loaders/SILLYPNGImageContext.icpp&quot;</span></div>85 <div·class="line"><a·id="l00037"·name="l00037"></a><span·class="lineno">···37</span><span·class="preprocessor">#include·&quot;SILLYImageContext.icpp&quot;</span></div>
87 <div·class="line"><a·id="l00039"·name="l00039"></a><span·class="lineno">···39</span><span·class="preprocessor">#undef·inline</span></div>86 <div·class="line"><a·id="l00038"·name="l00038"></a><span·class="lineno">···38</span><span·class="preprocessor">#undef·inline</span></div>
88 <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="l00039"·name="l00039"></a><span·class="lineno">···39</span><span·class="preprocessor">#endif</span></div>
89 <div·class="line"><a·id="l00041"·name="l00041"></a><span·class="lineno">···41</span><span·class="preprocessor">#include·&lt;string.h&gt;</span></div>88 <div·class="line"><a·id="l00040"·name="l00040"></a><span·class="lineno">···40</span><span·class="preprocessor">#include·&lt;cstring&gt;</span></div>
90 <div·class="line"><a·id="l00042"·name="l00042"></a><span·class="lineno">···42</span>·</div> 
91 <div·class="line"><a·id="l00043"·name="l00043"></a><span·class="lineno">···43</span><span·class="comment">//·Start·section·of·namespace·SILLY</span></div>89 <div·class="line"><a·id="l00041"·name="l00041"></a><span·class="lineno">···41</span><span·class="comment">//·Start·section·of·namespace·SILLY</span></div>
92 <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>90 <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>
 91 <div·class="line"><a·id="l00043"·name="l00043"></a><span·class="lineno">···43</span>{·</div>
 92 <div·class="line"><a·id="l00044"·name="l00044"></a><span·class="lineno">···44</span>·</div>
 93 <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>
93 <div·class="line"><a·id="l00045"·name="l00045"></a><span·class="lineno">···45</span>{</div>94 <div·class="line"><a·id="l00046"·name="l00046"></a><span·class="lineno">···46</span>{</div>
94 <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>95 <div·class="line"><a·id="l00047"·name="l00047"></a><span·class="lineno">···47</span>····<span·class="keywordtype">size_t</span>·depth;</div>
 96 <div·class="line"><a·id="l00048"·name="l00048"></a><span·class="lineno">···48</span>····<span·class="keywordflow">switch</span>(d_format)</div>
95 <div·class="line"><a·id="l00047"·name="l00047"></a><span·class="lineno">···47</span>{</div>97 <div·class="line"><a·id="l00049"·name="l00049"></a><span·class="lineno">···49</span>····{</div>
 98 <div·class="line"><a·id="l00050"·name="l00050"></a><span·class="lineno">···50</span>····<span·class="keywordflow">case</span>·PF_A1B5G5R5:</div>
96 <div·class="line"><a·id="l00048"·name="l00048"></a><span·class="lineno">···48</span>····<span·class="comment">//printf(&quot;PNG·Read:·%d·bytes·offset:·%d,·size·%d\n&quot;,·</span></div> 
97 <div·class="line"><a·id="l00049"·name="l00049"></a><span·class="lineno">···49</span>····<span·class="comment">//·······length,·d_offset,·d_data-&gt;getSize());</span></div> 
98 <div·class="line"><a·id="l00050"·name="l00050"></a><span·class="lineno">···50</span>····</div>99 <div·class="line"><a·id="l00051"·name="l00051"></a><span·class="lineno">···51</span>········depth·=·2;</div>
99 <div·class="line"><a·id="l00051"·name="l00051"></a><span·class="lineno">···51</span>····<span·class="keywordflow">if</span>·(d_offset·+·length·&gt;·d_data-&gt;<a·class="code·hl_function"·href="a00969.html#a319cde5b2ea76e92e922845ecfa5c615">getSize</a>())</div> 
100 <div·class="line"><a·id="l00052"·name="l00052"></a><span·class="lineno">···52</span>········<span·class="keywordflow">return</span>·-1;</div>100 <div·class="line"><a·id="l00052"·name="l00052"></a><span·class="lineno">···52</span>········<span·class="keywordflow">break</span>;</div>
101 <div·class="line"><a·id="l00053"·name="l00053"></a><span·class="lineno">···53</span>····memcpy(data,·d_data-&gt;<a·class="code·hl_function"·href="a00969.html#a3ae74c9d90450a3d9aa45191e1c21c13">getDataPtr</a>()·+·d_offset,·length);</div>101 <div·class="line"><a·id="l00053"·name="l00053"></a><span·class="lineno">···53</span>····<span·class="keywordflow">case</span>·PF_RGB:</div>
102 <div·class="line"><a·id="l00054"·name="l00054"></a><span·class="lineno">···54</span>····d_offset·+=·length;</div>102 <div·class="line"><a·id="l00054"·name="l00054"></a><span·class="lineno">···54</span>········depth·=·3;</div>
103 <div·class="line"><a·id="l00055"·name="l00055"></a><span·class="lineno">···55</span>····<span·class="keywordflow">return</span>·length;</div>103 <div·class="line"><a·id="l00055"·name="l00055"></a><span·class="lineno">···55</span>········<span·class="keywordflow">break</span>;</div>
104 <div·class="line"><a·id="l00056"·name="l00056"></a><span·class="lineno">···56</span>}</div>104 <div·class="line"><a·id="l00056"·name="l00056"></a><span·class="lineno">···56</span>····<span·class="keywordflow">case</span>·PF_RGBA:</div>
105 <div·class="line"><a·id="l00057"·name="l00057"></a><span·class="lineno">···57</span>·</div>105 <div·class="line"><a·id="l00057"·name="l00057"></a><span·class="lineno">···57</span>········depth·=·4;</div>
 106 <div·class="line"><a·id="l00058"·name="l00058"></a><span·class="lineno">···58</span>········<span·class="keywordflow">break</span>;</div>
106 <div·class="line"><a·id="l00058"·name="l00058"></a><span·class="lineno">···58</span>··</div>107 <div·class="line"><a·id="l00059"·name="l00059"></a><span·class="lineno">···59</span>····}</div>
107 <div·class="line"><a·id="l00059"·name="l00059"></a><span·class="lineno">···59</span>PNGImageContext::PNGImageContext(DataSource*·data)</div> 
108 <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> 
109 <div·class="line"><a·id="l00061"·name="l00061"></a><span·class="lineno">···61</span>{</div>108 <div·class="line"><a·id="l00060"·name="l00060"></a><span·class="lineno">···60</span>·······</div>
 109 <div·class="line"><a·id="l00061"·name="l00061"></a><span·class="lineno">···61</span>····<span·class="comment">//·Do·the·flipping·</span></div>
 110 <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>
 111 <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>
 112 <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>
 113 <div·class="line"><a·id="l00065"·name="l00065"></a><span·class="lineno">···65</span>····<span·class="keywordflow">if</span>·(·!tmp·)</div>
 114 <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>
110 <div·class="line"><a·id="l00062"·name="l00062"></a><span·class="lineno">···62</span>····</div>115 <div·class="line"><a·id="l00067"·name="l00067"></a><span·class="lineno">···67</span>····</div>
111 <div·class="line"><a·id="l00063"·name="l00063"></a><span·class="lineno">···63</span>}</div>116 <div·class="line"><a·id="l00068"·name="l00068"></a><span·class="lineno">···68</span>····<span·class="keywordtype">size_t</span>·y·,·y2;</div>
112 <div·class="line"><a·id="l00064"·name="l00064"></a><span·class="lineno">···64</span>·</div>117 <div·class="line"><a·id="l00069"·name="l00069"></a><span·class="lineno">···69</span>····y2·=·d_height·-·1;</div>
113 <div·class="line"><a·id="l00065"·name="l00065"></a><span·class="lineno">···65</span>PNGImageContext::~PNGImageContext()</div> 
114 <div·class="line"><a·id="l00066"·name="l00066"></a><span·class="lineno">···66</span>{</div> 
115 <div·class="line"><a·id="l00067"·name="l00067"></a><span·class="lineno">···67</span>····<span·class="keywordflow">if</span>·(d_info_ptr)</div>118 <div·class="line"><a·id="l00070"·name="l00070"></a><span·class="lineno">···70</span>····<span·class="keywordflow">for</span>·(·y·=·0;·y·&lt;·d_height·&gt;&gt;·1;·y++·)</div>
116 <div·class="line"><a·id="l00068"·name="l00068"></a><span·class="lineno">···68</span>········png_destroy_read_struct(&amp;d_png_ptr,·&amp;d_info_ptr,·0);····</div> 
117 <div·class="line"><a·id="l00069"·name="l00069"></a><span·class="lineno">···69</span>····<span·class="keywordflow">if</span>·(d_png_ptr)</div> 
118 <div·class="line"><a·id="l00070"·name="l00070"></a><span·class="lineno">···70</span>········png_destroy_read_struct(&amp;d_png_ptr,·0,·0);····</div> 
119 <div·class="line"><a·id="l00071"·name="l00071"></a><span·class="lineno">···71</span>}</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>········p1·=·(d_pixels)·+·len·*·y;</div>
 121 <div·class="line"><a·id="l00073"·name="l00073"></a><span·class="lineno">···73</span>········p2·=·(d_pixels)·+·len·*·y2;</div>
 122 <div·class="line"><a·id="l00074"·name="l00074"></a><span·class="lineno">···74</span>········memcpy(·tmp,·p1,·len·);</div>
 123 <div·class="line"><a·id="l00075"·name="l00075"></a><span·class="lineno">···75</span>········memcpy(·p1,·p2,·len·);</div>
 124 <div·class="line"><a·id="l00076"·name="l00076"></a><span·class="lineno">···76</span>········memcpy(·p2,·tmp,·len·);</div>
120 <div·class="line"><a·id="l00072"·name="l00072"></a><span·class="lineno">···72</span>·</div>125 <div·class="line"><a·id="l00077"·name="l00077"></a><span·class="lineno">···77</span>········y2--;</div>
121 <div·class="line"><a·id="l00073"·name="l00073"></a><span·class="lineno">···73</span>·</div> 
122 <div·class="line"><a·id="l00074"·name="l00074"></a><span·class="lineno">···74</span><span·class="keywordtype">void</span>·PNGImageContext::setImageSize()</div> 
123 <div·class="line"><a·id="l00075"·name="l00075"></a><span·class="lineno">···75</span>{</div> 
124 <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> 
125 <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> 
126 <div·class="line"><a·id="l00078"·name="l00078"></a><span·class="lineno">···78</span>····</div>126 <div·class="line"><a·id="l00078"·name="l00078"></a><span·class="lineno">···78</span>····}</div>
127 <div·class="line"><a·id="l00079"·name="l00079"></a><span·class="lineno">···79</span>}</div>127 <div·class="line"><a·id="l00079"·name="l00079"></a><span·class="lineno">···79</span>····<span·class="keyword">delete</span>·[]·tmp;</div>
128 <div·class="line"><a·id="l00080"·name="l00080"></a><span·class="lineno">···80</span>·</div>128 <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>
129 <div·class="line"><a·id="l00081"·name="l00081"></a><span·class="lineno">···81</span>·</div>129 <div·class="line"><a·id="l00081"·name="l00081"></a><span·class="lineno">···81</span>}</div>
 130 <div·class="line"><a·id="l00082"·name="l00082"></a><span·class="lineno">···82</span>·</div>
 131 <div·class="line"><a·id="l00083"·name="l00083"></a><span·class="lineno">···83</span>·</div>
130 <div·class="line"><a·id="l00082"·name="l00082"></a><span·class="lineno">···82</span>}·<span·class="comment">//·End·section·of·namespace·SILLY·</span></div>132 <div·class="line"><a·id="l00084"·name="l00084"></a><span·class="lineno">···84</span>}·<span·class="comment">//·End·section·of·namespace·SILLY·</span></div>
131 <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="a00020_source.html#l00045">SILLYJPGImageContext.cpp:46</a></div></div>133 <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="a00005_source.html#l00045">SILLYJPGImageContext.cpp:46</a></div></div>
 134 <div·class="ttc"·id="aa00981_html_a23cd315e8ce80deeb7a06e268f65412f"><div·class="ttname"><a·href="a00981.html#a23cd315e8ce80deeb7a06e268f65412f">SILLY::ImageContext::flipVertically</a></div><div·class="ttdeci">bool·flipVertically()</div><div·class="ttdoc">Flip·pixel·ordering.</div><div·class="ttdef"><b>Definition:</b>·<a·href="a00026_source.html#l00045">SILLYImageContext.cpp:45</a></div></div>
132 <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> 
133 <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> 
134 </div><!--·fragment·--></div><!--·contents·-->135 </div><!--·fragment·--></div><!--·contents·-->
135 <!--·start·footer·part·-->136 <!--·start·footer·part·-->
136 <hr·class="footer"/><address·class="footer"><small>137 <hr·class="footer"/><address·class="footer"><small>
137 Generated·by&#160;<a·href="https://www.doxygen.org/index.html"><img·class="footer"·src="doxygen.svg"·width="104"·height="31"·alt="doxygen"/></a>·1.9.4138 Generated·by&#160;<a·href="https://www.doxygen.org/index.html"><img·class="footer"·src="doxygen.svg"·width="104"·height="31"·alt="doxygen"/></a>·1.9.4
Max diff block lines reached; 18/21671 bytes (0.08%) of diff not shown.
3.97 KB
html2text {}
    
Offset 4, 22 lines modifiedOffset 4, 21 lines modified
  
4 Simple·Image·Loading·LibrarY 0.1.04 Simple·Image·Loading·LibrarY 0.1.0
  
5 ····*·build5 ····*·build
6 ····*·reproducible-path6 ····*·reproducible-path
7 ····*·silly-0.1.07 ····*·silly-0.1.0
8 ····*·src8 ····*·src
9 ····*·loaders 
10 SILLYPNGImageContext.cpp9 SILLYImageContext.cpp
11 ·1/***********************************************************************10 ·1/***********************************************************************
12 ·2·filename:·SILLYPNGImageContext.cpp11 ·2·filename:·SILLYImageContext.cpp
13 ·3·created:·11·Jun·200612 ·3·created:·10·Jun·2006
14 ·4·author:·Olivier·Delannoy13 ·4·author:·Olivier·Delannoy
15 ·514 ·5
16 ·6·purpose:·Definition·of·PNGImageContext·methods15 ·6·purpose:·Implementation·file·for·ImageContext·class
17 ·7*************************************************************************/16 ·7*************************************************************************/
18 ·8/***************************************************************************17 ·8/***************************************************************************
19 ·9·*·Copyright·(C)·2004·-·2006·Paul·D·Turner·&·The·CEGUI·Development·Team18 ·9·*·Copyright·(C)·2004·-·2006·Paul·D·Turner·&·The·CEGUI·Development·Team
20 ·10·*19 ·10·*
21 ·11·*·Permission·is·hereby·granted,·free·of·charge,·to·any·person·obtaining20 ·11·*·Permission·is·hereby·granted,·free·of·charge,·to·any·person·obtaining
22 ·12·*·a·copy·of·this·software·and·associated·documentation·files·(the21 ·12·*·a·copy·of·this·software·and·associated·documentation·files·(the
23 ·13·*·"Software"),·to·deal·in·the·Software·without·restriction,·including22 ·13·*·"Software"),·to·deal·in·the·Software·without·restriction,·including
Offset 40, 68 lines modifiedOffset 39, 68 lines modified
40 ·28·*·OTHER·DEALINGS·IN·THE·SOFTWARE.39 ·28·*·OTHER·DEALINGS·IN·THE·SOFTWARE.
41 ·2940 ·29
42 ***************************************************************************/41 ***************************************************************************/
43 ·30#ifdef·HAVE_CONFIG_H42 ·30#ifdef·HAVE_CONFIG_H
44 ·31#include·<config.h>43 ·31#include·<config.h>
45 ·32#endif44 ·32#endif
46 ·3345 ·33
47 ·34#include·"loaders/SILLYPNGImageContext.h"46 ·34#include·"SILLYImageContext.h"
48 ·35 
49 ·36#ifndef·SILLY_OPT_INLINE47 ·35#ifndef·SILLY_OPT_INLINE
50 ·37#define·inline48 ·36#define·inline
51 ·38#include·"loaders/SILLYPNGImageContext.icpp"49 ·37#include·"SILLYImageContext.icpp"
52 ·39#undef·inline50 ·38#undef·inline
53 ·40#endif51 ·39#endif
54 ·41#include·<string.h>52 ·40#include·<cstring>
55 ·42 
56 ·43//·Start·section·of·namespace·SILLY53 ·41//·Start·section·of·namespace·SILLY
57 ·44namespace·SILLY54 ·42namespace·SILLY
58 ·45{55 ·43{
59 ·46int·PNGImageContext::read(png_bytep·data,·png_size_t·length)56 ·44
 57 45bool·ImageContext::flipVertically()
60 ·47{58 ·46{
61 ·48·//printf("PNG·Read:·%d·bytes·offset:·%d,·size·%d\n", 
62 ·49·//·length,·d_offset,·d_data->getSize()); 
63 ·50 
64 ·51·if·(d_offset·+·length·>·d_data->getSize()) 
65 ·52·return·-1; 
66 ·53·memcpy(data,·d_data->getDataPtr()·+·d_offset,·length); 
67 ·54·d_offset·+=·length; 
68 ·55·return·length; 
69 ·56} 
70 ·57 
71 ·58 
72 ·59PNGImageContext::PNGImageContext(DataSource*·data) 
73 ·60·:·ImageContext(0,0),·d_offset(0),·d_data(data),·d_png_ptr(0),·d_info_ptr(0) 
74 ·61{ 
75 ·62 
76 ·63} 
77 ·64 
78 ·65PNGImageContext::~PNGImageContext() 
79 ·66{ 
80 ·67·if·(d_info_ptr) 
81 ·68·png_destroy_read_struct(&d_png_ptr,·&d_info_ptr,·0); 
82 ·69·if·(d_png_ptr) 
83 ·70·png_destroy_read_struct(&d_png_ptr,·0,·0); 
84 ·71} 
85 ·72 
86 ·73 
87 ·74void·PNGImageContext::setImageSize() 
88 ·75{ 
89 ·76·setWidth(png_get_image_width(d_png_ptr,·d_info_ptr)); 
90 ·77·setHeight(png_get_image_height(d_png_ptr,·d_info_ptr));59 ·47·size_t·depth;
 60 ·48·switch(d_format)
 61 ·49·{
 62 ·50·case·PF_A1B5G5R5:
 63 ·51·depth·=·2;
 64 ·52·break;
 65 ·53·case·PF_RGB:
 66 ·54·depth·=·3;
 67 ·55·break;
 68 ·56·case·PF_RGBA:
 69 ·57·depth·=·4;
 70 ·58·break;
 71 ·59·}
 72 ·60
 73 ·61·//·Do·the·flipping
 74 ·62·byte·*p1,*p2,*tmp;·//·tmp·pointers
 75 ·63·size_t·len·=·d_width·*·depth;·//·length·of·horizontal·line·in·bytes
 76 ·64·tmp·=·new·byte[len];·//·Allocate·a·temporary·line
 77 ·65·if·(·!tmp·)
 78 ·66·return·false;
 79 ·67
 80 ·68·size_t·y·,·y2;
 81 ·69·y2·=·d_height·-·1;
 82 ·70·for·(·y·=·0;·y·<·d_height·>>·1;·y++·)
 83 ·71·{
 84 ·72·p1·=·(d_pixels)·+·len·*·y;
 85 ·73·p2·=·(d_pixels)·+·len·*·y2;
 86 ·74·memcpy(·tmp,·p1,·len·);
 87 ·75·memcpy(·p1,·p2,·len·);
 88 ·76·memcpy(·p2,·tmp,·len·);
 89 ·77·y2--;
91 ·7890 ·78·}
92 ·79} 
93 ·8091 ·79·delete·[]·tmp;
 92 ·80·return·true;
94 ·8193 ·81}
 94 ·82
 95 ·83
95 ·82}·//·End·section·of·namespace·SILLY96 ·84}·//·End·section·of·namespace·SILLY
96 SILLY97 SILLY
97 Simple·Image·Loading·LibrarY·namespace.98 Simple·Image·Loading·LibrarY·namespace.
98 Definition:·SILLYJPGImageContext.cpp:4699 Definition:·SILLYJPGImageContext.cpp:46
 100 SILLY::ImageContext::flipVertically
 101 bool·flipVertically()
 102 Flip·pixel·ordering.
 103 Definition:·SILLYImageContext.cpp:45
99 SILLY::DataSource::getSize 
100 virtual·size_t·getSize()·const·=0 
101 Return·the·size·of·the·data. 
102 SILLY::DataSource::getDataPtr 
103 virtual·const·byte·*·getDataPtr()·const·=0 
104 Get·raw·access·to·the·image·data. 
  
Max diff block lines reached; 35/4046 bytes (0.87%) of diff not shown.
39.7 KB
./usr/share/doc/libsilly-doc/html/a00029_source.html
    
Offset 1, 15 lines modifiedOffset 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">2 <html·xmlns="http://www.w3.org/1999/xhtml">
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.4"/>6 <meta·name="generator"·content="Doxygen·1.9.4"/>
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.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 39, 23 lines modifiedOffset 39, 23 lines modified
39 <div·id="main-nav"></div>39 <div·id="main-nav"></div>
40 <div·id="nav-path"·class="navpath">40 <div·id="nav-path"·class="navpath">
41 ··<ul>41 ··<ul>
42 <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>42 <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>
43 </div>43 </div>
44 </div><!--·top·-->44 </div><!--·top·-->
45 <div·class="header">45 <div·class="header">
46 ··<div·class="headertitle"><div·class="title">SILLYImage.cpp</div></div>46 ··<div·class="headertitle"><div·class="title">SILLYImageLoaderManager.cpp</div></div>
47 </div><!--header-->47 </div><!--header-->
48 <div·class="contents">48 <div·class="contents">
49 <div·class="fragment"><div·class="line"><a·id="l00001"·name="l00001"></a><span·class="lineno">····1</span><span·class="comment">/***********************************************************************</span></div>49 <div·class="fragment"><div·class="line"><a·id="l00001"·name="l00001"></a><span·class="lineno">····1</span><span·class="comment">/***********************************************************************</span></div>
50 <div·class="line"><a·id="l00002"·name="l00002"></a><span·class="lineno">····2</span><span·class="comment">····filename:···SILLYImage.cpp</span></div>50 <div·class="line"><a·id="l00002"·name="l00002"></a><span·class="lineno">····2</span><span·class="comment">····filename:···ImageLoaderManager.cpp</span></div>
51 <div·class="line"><a·id="l00003"·name="l00003"></a><span·class="lineno">····3</span><span·class="comment">····created:····10·Jun·2006</span></div>51 <div·class="line"><a·id="l00003"·name="l00003"></a><span·class="lineno">····3</span><span·class="comment">····created:····10·Jun·2006</span></div>
52 <div·class="line"><a·id="l00004"·name="l00004"></a><span·class="lineno">····4</span><span·class="comment">····author:·····Olivier·Delannoy·</span></div>52 <div·class="line"><a·id="l00004"·name="l00004"></a><span·class="lineno">····4</span><span·class="comment">····author:·····Olivier·Delannoy·</span></div>
53 <div·class="line"><a·id="l00005"·name="l00005"></a><span·class="lineno">····5</span><span·class="comment"></span>·</div>53 <div·class="line"><a·id="l00005"·name="l00005"></a><span·class="lineno">····5</span><span·class="comment"></span>·</div>
54 <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>54 <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>
55 <div·class="line"><a·id="l00007"·name="l00007"></a><span·class="lineno">····7</span><span·class="comment">*************************************************************************/</span></div>55 <div·class="line"><a·id="l00007"·name="l00007"></a><span·class="lineno">····7</span><span·class="comment">*************************************************************************/</span></div>
56 <div·class="line"><a·id="l00008"·name="l00008"></a><span·class="lineno">····8</span><span·class="comment">/***************************************************************************</span></div>56 <div·class="line"><a·id="l00008"·name="l00008"></a><span·class="lineno">····8</span><span·class="comment">/***************************************************************************</span></div>
57 <div·class="line"><a·id="l00009"·name="l00009"></a><span·class="lineno">····9</span><span·class="comment">·*···Copyright·(C)·2004·-·2006·Paul·D·Turner·&amp;·The·CEGUI·Development·Team</span></div>57 <div·class="line"><a·id="l00009"·name="l00009"></a><span·class="lineno">····9</span><span·class="comment">·*···Copyright·(C)·2004·-·2006·Paul·D·Turner·&amp;·The·CEGUI·Development·Team</span></div>
58 <div·class="line"><a·id="l00010"·name="l00010"></a><span·class="lineno">···10</span><span·class="comment">·*</span></div>58 <div·class="line"><a·id="l00010"·name="l00010"></a><span·class="lineno">···10</span><span·class="comment">·*</span></div>
59 <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>59 <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>
60 <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>60 <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>
61 <div·class="line"><a·id="l00013"·name="l00013"></a><span·class="lineno">···13</span><span·class="comment">·*···&quot;Software&quot;),·to·deal·in·the·Software·without·restriction,·including</span></div>61 <div·class="line"><a·id="l00013"·name="l00013"></a><span·class="lineno">···13</span><span·class="comment">·*···&quot;Software&quot;),·to·deal·in·the·Software·without·restriction,·including</span></div>
Offset 75, 100 lines modifiedOffset 75, 101 lines modified
75 <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>75 <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>
76 <div·class="line"><a·id="l00028"·name="l00028"></a><span·class="lineno">···28</span><span·class="comment">·*···OTHER·DEALINGS·IN·THE·SOFTWARE.</span></div>76 <div·class="line"><a·id="l00028"·name="l00028"></a><span·class="lineno">···28</span><span·class="comment">·*···OTHER·DEALINGS·IN·THE·SOFTWARE.</span></div>
77 <div·class="line"><a·id="l00029"·name="l00029"></a><span·class="lineno">···29</span><span·class="comment">·***************************************************************************/</span></div>77 <div·class="line"><a·id="l00029"·name="l00029"></a><span·class="lineno">···29</span><span·class="comment">·***************************************************************************/</span></div>
78 <div·class="line"><a·id="l00030"·name="l00030"></a><span·class="lineno">···30</span><span·class="preprocessor">#ifdef·HAVE_CONFIG_H</span></div>78 <div·class="line"><a·id="l00030"·name="l00030"></a><span·class="lineno">···30</span><span·class="preprocessor">#ifdef·HAVE_CONFIG_H</span></div>
79 <div·class="line"><a·id="l00031"·name="l00031"></a><span·class="lineno">···31</span><span·class="preprocessor">#include·&lt;config.h&gt;</span></div>79 <div·class="line"><a·id="l00031"·name="l00031"></a><span·class="lineno">···31</span><span·class="preprocessor">#include·&lt;config.h&gt;</span></div>
80 <div·class="line"><a·id="l00032"·name="l00032"></a><span·class="lineno">···32</span><span·class="preprocessor">#endif</span></div>80 <div·class="line"><a·id="l00032"·name="l00032"></a><span·class="lineno">···32</span><span·class="preprocessor">#endif</span></div>
81 <div·class="line"><a·id="l00033"·name="l00033"></a><span·class="lineno">···33</span>·</div>81 <div·class="line"><a·id="l00033"·name="l00033"></a><span·class="lineno">···33</span>·</div>
82 <div·class="line"><a·id="l00034"·name="l00034"></a><span·class="lineno">···34</span><span·class="preprocessor">#include·&quot;SILLYImage.h&quot;</span></div>82 <div·class="line"><a·id="l00034"·name="l00034"></a><span·class="lineno">···34</span><span·class="preprocessor">#include·&quot;SILLYImageLoaderManager.h&quot;</span></div>
83 <div·class="line"><a·id="l00035"·name="l00035"></a><span·class="lineno">···35</span>·</div>83 <div·class="line"><a·id="l00035"·name="l00035"></a><span·class="lineno">···35</span>·</div>
84 <div·class="line"><a·id="l00036"·name="l00036"></a><span·class="lineno">···36</span><span·class="preprocessor">#ifndef·SILLY_OPT_INLINE</span></div>84 <div·class="line"><a·id="l00036"·name="l00036"></a><span·class="lineno">···36</span><span·class="preprocessor">#ifndef·SILLY_OPT_INLINE</span></div>
85 <div·class="line"><a·id="l00037"·name="l00037"></a><span·class="lineno">···37</span><span·class="preprocessor">#define·inline·</span></div>85 <div·class="line"><a·id="l00037"·name="l00037"></a><span·class="lineno">···37</span><span·class="preprocessor">#define·inline·</span></div>
86 <div·class="line"><a·id="l00038"·name="l00038"></a><span·class="lineno">···38</span><span·class="preprocessor">#include·&quot;SILLYImage.icpp&quot;</span></div>86 <div·class="line"><a·id="l00038"·name="l00038"></a><span·class="lineno">···38</span><span·class="preprocessor">#include·&quot;SILLYImageLoaderManager.icpp&quot;</span></div>
87 <div·class="line"><a·id="l00039"·name="l00039"></a><span·class="lineno">···39</span><span·class="preprocessor">#undef·inline</span></div>87 <div·class="line"><a·id="l00039"·name="l00039"></a><span·class="lineno">···39</span><span·class="preprocessor">#undef·inline</span></div>
88 <div·class="line"><a·id="l00040"·name="l00040"></a><span·class="lineno">···40</span><span·class="preprocessor">#endif·</span></div>88 <div·class="line"><a·id="l00040"·name="l00040"></a><span·class="lineno">···40</span><span·class="preprocessor">#endif·</span></div>
89 <div·class="line"><a·id="l00041"·name="l00041"></a><span·class="lineno">···41</span><span·class="preprocessor">#include·&quot;SILLYImageLoaderManager.h&quot;</span></div>89 <div·class="line"><a·id="l00041"·name="l00041"></a><span·class="lineno">···41</span><span·class="preprocessor">#include·&quot;SILLYImageLoader.h&quot;</span></div>
90 <div·class="line"><a·id="l00042"·name="l00042"></a><span·class="lineno">···42</span>·</div>90 <div·class="line"><a·id="l00042"·name="l00042"></a><span·class="lineno">···42</span><span·class="preprocessor">#include·&quot;loaders/SILLYTGAImageLoader.h&quot;</span></div>
91 <div·class="line"><a·id="l00043"·name="l00043"></a><span·class="lineno">···43</span>·</div>91 <div·class="line"><a·id="l00043"·name="l00043"></a><span·class="lineno">···43</span>·</div>
92 <div·class="line"><a·id="l00044"·name="l00044"></a><span·class="lineno">···44</span><span·class="comment">//·Start·section·of·namespace·SILLY</span></div>92 <div·class="line"><a·id="l00044"·name="l00044"></a><span·class="lineno">···44</span><span·class="preprocessor">#ifdef·SILLY_HAVE_JPG</span></div>
93 <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>93 <div·class="line"><a·id="l00045"·name="l00045"></a><span·class="lineno">···45</span><span·class="preprocessor">#include·&quot;loaders/SILLYJPGImageLoader.h&quot;</span>·</div>
94 <div·class="line"><a·id="l00046"·name="l00046"></a><span·class="lineno">···46</span>{</div>94 <div·class="line"><a·id="l00046"·name="l00046"></a><span·class="lineno">···46</span><span·class="preprocessor">#endif·</span></div>
95 <div·class="line"><a·id="l00047"·name="l00047"></a><span·class="lineno">···47</span>·</div>95 <div·class="line"><a·id="l00047"·name="l00047"></a><span·class="lineno">···47</span>·</div>
96 <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>&amp;·source)</div> 
97 <div·class="line"><a·id="l00049"·name="l00049"></a><span·class="lineno">···49</span>··:··d_bpp(0),·d_pixels(0),·d_data(&amp;source),·d_imageContext(0),·d_imageLoader(0)</div>96 <div·class="line"><a·id="l00048"·name="l00048"></a><span·class="lineno">···48</span><span·class="preprocessor">#ifdef·SILLY_HAVE_PNG</span></div>
 97 <div·class="line"><a·id="l00049"·name="l00049"></a><span·class="lineno">···49</span><span·class="preprocessor">#include·&quot;loaders/SILLYPNGImageLoader.h&quot;</span>·</div>
98 <div·class="line"><a·id="l00050"·name="l00050"></a><span·class="lineno">···50</span>{</div>98 <div·class="line"><a·id="l00050"·name="l00050"></a><span·class="lineno">···50</span><span·class="preprocessor">#endif·</span></div>
99 <div·class="line"><a·id="l00051"·name="l00051"></a><span·class="lineno">···51</span>}</div>99 <div·class="line"><a·id="l00051"·name="l00051"></a><span·class="lineno">···51</span>·</div>
 100 <div·class="line"><a·id="l00052"·name="l00052"></a><span·class="lineno">···52</span><span·class="comment">//·Start·of·SILLY·namespace·section·</span></div>
 101 <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>
100 <div·class="line"><a·id="l00052"·name="l00052"></a><span·class="lineno">···52</span>·</div>102 <div·class="line"><a·id="l00054"·name="l00054"></a><span·class="lineno">···54</span>{</div>
101 <div·class="line"><a·id="l00053"·name="l00053"></a><span·class="lineno">···53</span>·</div> 
102 <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> 
103 <div·class="line"><a·id="l00055"·name="l00055"></a><span·class="lineno">···55</span>{</div>103 <div·class="line"><a·id="l00055"·name="l00055"></a><span·class="lineno">···55</span>·</div>
 104 <div·class="line"><a·id="l00056"·name="l00056"></a><span·class="lineno">···56</span><span·class="comment">//·we·need·to·do·&quot;reference·counting&quot;·for·init/exit·to·allow·silly·to·be·used</span></div>
 105 <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>
 106 <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>
104 <div·class="line"><a·id="l00056"·name="l00056"></a><span·class="lineno">···56</span>····ImageLoaderList::iterator·iter·=·ImageLoaderManager::getSingleton().begin();</div> 
105 <div·class="line"><a·id="l00057"·name="l00057"></a><span·class="lineno">···57</span>····<span·class="keywordflow">for</span>·(;·!·d_imageLoader·&amp;&amp;·iter·!=·ImageLoaderManager::getSingleton().end()·;·++iter)</div> 
106 <div·class="line"><a·id="l00058"·name="l00058"></a><span·class="lineno">···58</span>····{</div> 
107 <div·class="line"><a·id="l00059"·name="l00059"></a><span·class="lineno">···59</span>········d_imageContext·=·(*iter)-&gt;loadHeader(d_pfSource,·d_data);</div> 
108 <div·class="line"><a·id="l00060"·name="l00060"></a><span·class="lineno">···60</span>········<span·class="keywordflow">if</span>·(d_imageContext)</div> 
109 <div·class="line"><a·id="l00061"·name="l00061"></a><span·class="lineno">···61</span>············d_imageLoader·=·(*iter);</div> 
110 <div·class="line"><a·id="l00062"·name="l00062"></a><span·class="lineno">···62</span>····}</div> 
111 <div·class="line"><a·id="l00063"·name="l00063"></a><span·class="lineno">···63</span>····assert((!·d_imageLoader·||·d_imageContext)·&amp;&amp;·<span·class="stringliteral">&quot;ASSERT:·Internal·state·of·image·invalid&quot;</span>);</div> 
112 <div·class="line"><a·id="l00064"·name="l00064"></a><span·class="lineno">···64</span>····<span·class="keywordflow">return</span>·d_imageLoader·!=·0;</div> 
113 <div·class="line"><a·id="l00065"·name="l00065"></a><span·class="lineno">···65</span>····</div>107 <div·class="line"><a·id="l00059"·name="l00059"></a><span·class="lineno">···59</span>·</div>
114 <div·class="line"><a·id="l00066"·name="l00066"></a><span·class="lineno">···66</span>}</div>108 <div·class="line"><a·id="l00060"·name="l00060"></a><span·class="lineno">···60</span>ImageLoaderManager*·ImageLoaderManager::d_instance·=·0;</div>
115 <div·class="line"><a·id="l00067"·name="l00067"></a><span·class="lineno">···67</span>·</div>109 <div·class="line"><a·id="l00061"·name="l00061"></a><span·class="lineno">···61</span>·</div>
116 <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::loa[·...·truncated·by·diffoscope;·len:·234,·SHA:·2477ca099adf8b5db1d1d021168367d1f22c1784febcd160ee5cef7e3c3490bb·...·])</div>110 <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="l00069"·name="l00069"></a><span·class="lineno">···69</span>{</div>111 <div·class="line"><a·id="l00063"·name="l00063"></a><span·class="lineno">···63</span>{</div>
 112 <div·class="line"><a·id="l00064"·name="l00064"></a><span·class="lineno">···64</span>····assert(d_instance·==·0);</div>
118 <div·class="line"><a·id="l00070"·name="l00070"></a><span·class="lineno">···70</span>····<span·class="keywordflow">switch</span>·(resultFormat)</div>113 <div·class="line"><a·id="l00065"·name="l00065"></a><span·class="lineno">···65</span>····d_instance·=·<span·class="keyword">this</span>;</div>
 114 <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>
 115 <div·class="line"><a·id="l00067"·name="l00067"></a><span·class="lineno">···67</span><span·class="preprocessor">#ifdef·SILLY_HAVE_JPG</span></div>
 116 <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>
 117 <div·class="line"><a·id="l00069"·name="l00069"></a><span·class="lineno">···69</span><span·class="preprocessor">#endif</span></div>
 118 <div·class="line"><a·id="l00070"·name="l00070"></a><span·class="lineno">···70</span><span·class="preprocessor">#ifdef·SILLY_HAVE_PNG</span></div>
 119 <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>
 120 <div·class="line"><a·id="l00072"·name="l00072"></a><span·class="lineno">···72</span><span·class="preprocessor">#endif·</span></div>
 121 <div·class="line"><a·id="l00073"·name="l00073"></a><span·class="lineno">···73</span><span·class="comment">//·Add·other·builtins·loader·here·</span></div>
119 <div·class="line"><a·id="l00071"·name="l00071"></a><span·class="lineno">···71</span>····{</div>122 <div·class="line"><a·id="l00074"·name="l00074"></a><span·class="lineno">···74</span>·</div>
120 <div·class="line"><a·id="l00072"·name="l00072"></a><span·class="lineno">···72</span>····<span·class="keywordflow">case</span>·PF_A1B5G5R5:</div> 
121 <div·class="line"><a·id="l00073"·name="l00073"></a><span·class="lineno">···73</span>········d_bpp·=·2;</div>123 <div·class="line"><a·id="l00075"·name="l00075"></a><span·class="lineno">···75</span>}</div>
122 <div·class="line"><a·id="l00074"·name="l00074"></a><span·class="lineno">···74</span>········<span·class="keywordflow">break</span>;</div> 
123 <div·class="line"><a·id="l00075"·name="l00075"></a><span·class="lineno">···75</span>····<span·class="keywordflow">case</span>·PF_RGB:</div> 
124 <div·class="line"><a·id="l00076"·name="l00076"></a><span·class="lineno">···76</span>········d_bpp·=·3;</div>124 <div·class="line"><a·id="l00076"·name="l00076"></a><span·class="lineno">···76</span>·</div>
125 <div·class="line"><a·id="l00077"·name="l00077"></a><span·class="lineno">···77</span>········<span·class="keywordflow">break</span>;</div>125 <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>
126 <div·class="line"><a·id="l00078"·name="l00078"></a><span·class="lineno">···78</span>·</div>126 <div·class="line"><a·id="l00078"·name="l00078"></a><span·class="lineno">···78</span>{</div>
127 <div·class="line"><a·id="l00079"·name="l00079"></a><span·class="lineno">···79</span>····<span·class="keywordflow">case</span>·PF_RGBA:····</div>127 <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>
128 <div·class="line"><a·id="l00080"·name="l00080"></a><span·class="lineno">···80</span>········d_bpp·=·4;</div>128 <div·class="line"><a·id="l00080"·name="l00080"></a><span·class="lineno">···80</span>····{</div>
129 <div·class="line"><a·id="l00081"·name="l00081"></a><span·class="lineno">···81</span>········<span·class="keywordflow">break</span>;</div>129 <div·class="line"><a·id="l00081"·name="l00081"></a><span·class="lineno">···81</span>········<span·class="keyword">delete</span>·(*iter);</div>
130 <div·class="line"><a·id="l00082"·name="l00082"></a><span·class="lineno">···82</span>········<span·class="comment">//default:</span></div>130 <div·class="line"><a·id="l00082"·name="l00082"></a><span·class="lineno">···82</span>····}</div>
131 <div·class="line"><a·id="l00083"·name="l00083"></a><span·class="lineno">···83</span>········<span·class="comment">//·Unsupported·format·</span></div>131 <div·class="line"><a·id="l00083"·name="l00083"></a><span·class="lineno">···83</span>····d_instance·=·0;</div>
132 <div·class="line"><a·id="l00084"·name="l00084"></a><span·class="lineno">···84</span>····};</div>132 <div·class="line"><a·id="l00084"·name="l00084"></a><span·class="lineno">···84</span>}</div>
133 <div·class="line"><a·id="l00085"·name="l00085"></a><span·class="lineno">···85</span>·</div>133 <div·class="line"><a·id="l00085"·name="l00085"></a><span·class="lineno">···85</span>·</div>
134 <div·class="line"><a·id="l00086"·name="l00086"></a><span·class="lineno">···86</span>····<span·class="keywordflow">if</span>·(!·allocate())</div> 
135 <div·class="line"><a·id="l00087"·name="l00087"></a><span·class="lineno">···87</span>····{</div>134 <div·class="line"><a·id="l00086"·name="l00086"></a><span·class="lineno">···86</span>·</div>
136 <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>135 <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<[·...·truncated·by·diffoscope;·len:·5,·SHA:·b6d2c653082d298bfdba507caeb3ef8e92e00e24d82e8dff37e156ed22c7600b·...·]</div>
137 <div·class="line"><a·id="l00089"·name="l00089"></a><span·class="lineno">···89</span>····}</div>136 <div·class="line"><a·id="l00088"·name="l00088"></a><span·class="lineno">···88</span>{</div>
 137 <div·class="line"><a·id="l00089"·name="l00089"></a><span·class="lineno">···89</span>····<span·class="keywordflow">if</span>·(ImageLoaderManager::getSingletonPtr()·==·0)</div>
138 <div·class="line"><a·id="l00090"·name="l00090"></a><span·class="lineno">···90</span>····d_imageContext-&gt;<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> 
139 <div·class="line"><a·id="l00091"·name="l00091"></a><span·class="lineno">···91</span>·</div> 
140 <div·class="line"><a·id="l00092"·name="l00092"></a><span·class="lineno">···92</span>····<span·class="keywordflow">if</span>·(!·d_imageLoader-&gt;<a·class="code·hl_function"·href="a00985.html#a7622e69834f644d7cf1201c1cabd80c6">loadImageData</a>(order,·d_data,·d_imageContext))</div> 
141 <div·class="line"><a·id="l00093"·name="l00093"></a><span·class="lineno">···93</span>····{</div>138 <div·class="line"><a·id="l00090"·name="l00090"></a><span·class="lineno">···90</span>····{</div>
 139 <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>
142 <div·class="line"><a·id="l00094"·name="l00094"></a><span·class="lineno">···94</span>········<span·class="keyword">delete</span>·[]·d_pixels;</div>140 <div·class="line"><a·id="l00092"·name="l00092"></a><span·class="lineno">···92</span>········{</div>
143 <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>141 <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>
 142 <div·class="line"><a·id="l00094"·name="l00094"></a><span·class="lineno">···94</span>········}</div>
Max diff block lines reached; 10281/33607 bytes (30.59%) of diff not shown.
6.74 KB
html2text {}
    
Offset 4, 21 lines modifiedOffset 4, 21 lines modified
  
4 Simple·Image·Loading·LibrarY 0.1.04 Simple·Image·Loading·LibrarY 0.1.0
  
5 ····*·build5 ····*·build
6 ····*·reproducible-path6 ····*·reproducible-path
7 ····*·silly-0.1.07 ····*·silly-0.1.0
8 ····*·src8 ····*·src
9 SILLYImage.cpp9 SILLYImageLoaderManager.cpp
10 ·1/***********************************************************************10 ·1/***********************************************************************
11 ·2·filename:·SILLYImage.cpp11 ·2·filename:·ImageLoaderManager.cpp
12 ·3·created:·10·Jun·200612 ·3·created:·10·Jun·2006
13 ·4·author:·Olivier·Delannoy13 ·4·author:·Olivier·Delannoy
14 ·514 ·5
15 ·6·purpose:·Implementation·of·the·Image·class15 ·6·purpose:·Manage·the·list·of·existing·ImageLoader
16 ·7*************************************************************************/16 ·7*************************************************************************/
17 ·8/***************************************************************************17 ·8/***************************************************************************
18 ·9·*·Copyright·(C)·2004·-·2006·Paul·D·Turner·&·The·CEGUI·Development·Team18 ·9·*·Copyright·(C)·2004·-·2006·Paul·D·Turner·&·The·CEGUI·Development·Team
19 ·10·*19 ·10·*
20 ·11·*·Permission·is·hereby·granted,·free·of·charge,·to·any·person·obtaining20 ·11·*·Permission·is·hereby·granted,·free·of·charge,·to·any·person·obtaining
21 ·12·*·a·copy·of·this·software·and·associated·documentation·files·(the21 ·12·*·a·copy·of·this·software·and·associated·documentation·files·(the
22 ·13·*·"Software"),·to·deal·in·the·Software·without·restriction,·including22 ·13·*·"Software"),·to·deal·in·the·Software·without·restriction,·including
Offset 39, 130 lines modifiedOffset 39, 123 lines modified
39 ·28·*·OTHER·DEALINGS·IN·THE·SOFTWARE.39 ·28·*·OTHER·DEALINGS·IN·THE·SOFTWARE.
40 ·2940 ·29
41 ***************************************************************************/41 ***************************************************************************/
42 ·30#ifdef·HAVE_CONFIG_H42 ·30#ifdef·HAVE_CONFIG_H
43 ·31#include·<config.h>43 ·31#include·<config.h>
44 ·32#endif44 ·32#endif
45 ·3345 ·33
46 ·34#include·"SILLYImage.h"46 ·34#include·"SILLYImageLoaderManager.h"
47 ·3547 ·35
48 ·36#ifndef·SILLY_OPT_INLINE48 ·36#ifndef·SILLY_OPT_INLINE
49 ·37#define·inline49 ·37#define·inline
50 ·38#include·"SILLYImage.icpp"50 ·38#include·"SILLYImageLoaderManager.icpp"
51 ·39#undef·inline51 ·39#undef·inline
52 ·40#endif52 ·40#endif
53 ·41#include·"SILLYImageLoaderManager.h"53 ·41#include·"SILLYImageLoader.h"
54 ·4254 ·42#include·"loaders/SILLYTGAImageLoader.h"
55 ·4355 ·43
56 ·44//·Start·section·of·namespace·SILLY 
57 ·45namespace·SILLY 
58 ·46{56 ·44#ifdef·SILLY_HAVE_JPG
 57 ·45#include·"loaders/SILLYJPGImageLoader.h"
 58 ·46#endif
59 ·4759 ·47
 60 ·48#ifdef·SILLY_HAVE_PNG
 61 ·49#include·"loaders/SILLYPNGImageLoader.h"
 62 ·50#endif
60 48Image::Image(DataSource&·source) 
61 ·49·:·d_bpp(0),·d_pixels(0),·d_data(&source),·d_imageContext(0),·d_imageLoader 
62 (0) 
63 ·50{ 
64 ·51}63 ·51
65 ·52 
66 ·53 
67 54bool·Image::loadImageHeader()64 ·52//·Start·of·SILLY·namespace·section
 65 ·53namespace·SILLY
 66 ·54{
68 ·55{67 ·55
 68 ·56//·we·need·to·do·"reference·counting"·for·init/exit·to·allow·silly·to·be
 69 used
 70 ·57//·from·inside·multiple·independent·libraries·simultaneously.
 71 ·58static·size_t·silly_init_counter·=·0;
 72 ·59
 73 ·60ImageLoaderManager*·ImageLoaderManager::d_instance·=·0;
 74 ·61
 75 62ImageLoaderManager::ImageLoaderManager()
69 ·56·ImageLoaderList::iterator·iter·=·ImageLoaderManager::getSingleton().begin 
70 (); 
71 ·57·for·(;·!·d_imageLoader·&&·iter·!=·ImageLoaderManager::getSingleton().end() 
72 ;·++iter) 
73 ·58·{ 
74 ·59·d_imageContext·=·(*iter)->loadHeader(d_pfSource,·d_data); 
75 ·60·if·(d_imageContext) 
76 ·61·d_imageLoader·=·(*iter); 
77 ·62·} 
78 ·63·assert((!·d_imageLoader·||·d_imageContext)·&&·"ASSERT:·Internal·state·of 
79 image·invalid"); 
80 ·64·return·d_imageLoader·!=·0; 
81 ·65 
82 ·66} 
83 ·67 
84 68bool·Image::loadImageData(PixelFormat·resultFormat,·PixelOrigin·order) 
85 ·69{76 ·63{
86 ·70·switch·(resultFormat) 
87 ·71·{ 
88 ·72·case·PF_A1B5G5R5: 
89 ·73·d_bpp·=·2; 
90 ·74·break; 
91 ·75·case·PF_RGB: 
92 ·76·d_bpp·=·3; 
93 ·77·break;77 ·64·assert(d_instance·==·0);
 78 ·65·d_instance·=·this;
 79 ·66·add(new·TGAImageLoader);
 80 ·67#ifdef·SILLY_HAVE_JPG
 81 ·68·add(new·JPGImageLoader);
 82 ·69#endif
 83 ·70#ifdef·SILLY_HAVE_PNG
 84 ·71·add(new·PNGImageLoader);
 85 ·72#endif
 86 ·73//·Add·other·builtins·loader·here
 87 ·74
 88 ·75}
 89 ·76
 90 77ImageLoaderManager::~ImageLoaderManager()
94 ·7891 ·78{
95 ·79·case·PF_RGBA: 
96 ·80·d_bpp·=·4; 
97 ·81·break; 
98 ·82·//default: 
99 ·83·//·Unsupported·format92 ·79·for(ImageLoaderList::iterator·iter·=·d_loaders.begin()·;·iter·!=
 93 d_loaders.end()·;·++iter)
 94 ·80·{
 95 ·81·delete·(*iter);
 96 ·82·}
 97 ·83·d_instance·=·0;
100 ·84·};98 ·84}
101 ·8599 ·85
 100 ·86
 101 87bool·SILLYInit()
 102 ·88{
 103 ·89·if·(ImageLoaderManager::getSingletonPtr()·==·0)
102 ·86·if·(!·allocate()) 
103 ·87·{ 
104 ·88·return·false; 
105 ·89·} 
106 ·90·d_imageContext->setDestination(d_pixels,·getWidth()·*·getHeight()·*·d_bpp, 
Max diff block lines reached; 2822/6874 bytes (41.05%) of diff not shown.
21.0 KB
./usr/share/doc/libsilly-doc/html/a00032_source.html
    
Offset 1, 15 lines modifiedOffset 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">2 <html·xmlns="http://www.w3.org/1999/xhtml">
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.4"/>6 <meta·name="generator"·content="Doxygen·1.9.4"/>
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/SILLYFileDataSource.cpp·Source·File</title>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 39, 23 lines modifiedOffset 39, 23 lines modified
39 <div·id="main-nav"></div>39 <div·id="main-nav"></div>
40 <div·id="nav-path"·class="navpath">40 <div·id="nav-path"·class="navpath">
41 ··<ul>41 ··<ul>
42 <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>42 <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>
43 </div>43 </div>
44 </div><!--·top·-->44 </div><!--·top·-->
45 <div·class="header">45 <div·class="header">
46 ··<div·class="headertitle"><div·class="title">SILLYFileDataSource.cpp</div></div>46 ··<div·class="headertitle"><div·class="title">SILLYMemoryDataSource.cpp</div></div>
47 </div><!--header-->47 </div><!--header-->
48 <div·class="contents">48 <div·class="contents">
49 <div·class="fragment"><div·class="line"><a·id="l00001"·name="l00001"></a><span·class="lineno">····1</span><span·class="comment">/***********************************************************************</span></div>49 <div·class="fragment"><div·class="line"><a·id="l00001"·name="l00001"></a><span·class="lineno">····1</span><span·class="comment">/***********************************************************************</span></div>
50 <div·class="line"><a·id="l00002"·name="l00002"></a><span·class="lineno">····2</span><span·class="comment">····filename:···SILLYFileDataSource.cpp</span></div>50 <div·class="line"><a·id="l00002"·name="l00002"></a><span·class="lineno">····2</span><span·class="comment">····filename:···SILLYMemoryDataSource.cpp</span></div>
51 <div·class="line"><a·id="l00003"·name="l00003"></a><span·class="lineno">····3</span><span·class="comment">····created:····20·Jul·2006</span></div>51 <div·class="line"><a·id="l00003"·name="l00003"></a><span·class="lineno">····3</span><span·class="comment">····created:····10·Jun·2006</span></div>
52 <div·class="line"><a·id="l00004"·name="l00004"></a><span·class="lineno">····4</span><span·class="comment">····author:·····Olivier·Delannoy·</span></div>52 <div·class="line"><a·id="l00004"·name="l00004"></a><span·class="lineno">····4</span><span·class="comment">····author:·····Olivier·Delannoy·</span></div>
53 <div·class="line"><a·id="l00005"·name="l00005"></a><span·class="lineno">····5</span><span·class="comment"></span>·</div>53 <div·class="line"><a·id="l00005"·name="l00005"></a><span·class="lineno">····5</span><span·class="comment"></span>·</div>
54 <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>54 <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>
55 <div·class="line"><a·id="l00007"·name="l00007"></a><span·class="lineno">····7</span><span·class="comment">*************************************************************************/</span></div>55 <div·class="line"><a·id="l00007"·name="l00007"></a><span·class="lineno">····7</span><span·class="comment">*************************************************************************/</span></div>
56 <div·class="line"><a·id="l00008"·name="l00008"></a><span·class="lineno">····8</span><span·class="comment">/***************************************************************************</span></div>56 <div·class="line"><a·id="l00008"·name="l00008"></a><span·class="lineno">····8</span><span·class="comment">/***************************************************************************</span></div>
57 <div·class="line"><a·id="l00009"·name="l00009"></a><span·class="lineno">····9</span><span·class="comment">·*···Copyright·(C)·2004·-·2006·Paul·D·Turner·&amp;·The·CEGUI·Development·Team</span></div>57 <div·class="line"><a·id="l00009"·name="l00009"></a><span·class="lineno">····9</span><span·class="comment">·*···Copyright·(C)·2004·-·2006·Paul·D·Turner·&amp;·The·CEGUI·Development·Team</span></div>
58 <div·class="line"><a·id="l00010"·name="l00010"></a><span·class="lineno">···10</span><span·class="comment">·*</span></div>58 <div·class="line"><a·id="l00010"·name="l00010"></a><span·class="lineno">···10</span><span·class="comment">·*</span></div>
59 <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>59 <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>
60 <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>60 <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>
61 <div·class="line"><a·id="l00013"·name="l00013"></a><span·class="lineno">···13</span><span·class="comment">·*···&quot;Software&quot;),·to·deal·in·the·Software·without·restriction,·including</span></div>61 <div·class="line"><a·id="l00013"·name="l00013"></a><span·class="lineno">···13</span><span·class="comment">·*···&quot;Software&quot;),·to·deal·in·the·Software·without·restriction,·including</span></div>
Offset 75, 76 lines modifiedOffset 75, 38 lines modified
75 <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>75 <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>
76 <div·class="line"><a·id="l00028"·name="l00028"></a><span·class="lineno">···28</span><span·class="comment">·*···OTHER·DEALINGS·IN·THE·SOFTWARE.</span></div>76 <div·class="line"><a·id="l00028"·name="l00028"></a><span·class="lineno">···28</span><span·class="comment">·*···OTHER·DEALINGS·IN·THE·SOFTWARE.</span></div>
77 <div·class="line"><a·id="l00029"·name="l00029"></a><span·class="lineno">···29</span><span·class="comment">·***************************************************************************/</span></div>77 <div·class="line"><a·id="l00029"·name="l00029"></a><span·class="lineno">···29</span><span·class="comment">·***************************************************************************/</span></div>
78 <div·class="line"><a·id="l00030"·name="l00030"></a><span·class="lineno">···30</span><span·class="preprocessor">#ifdef·HAVE_CONFIG_H</span></div>78 <div·class="line"><a·id="l00030"·name="l00030"></a><span·class="lineno">···30</span><span·class="preprocessor">#ifdef·HAVE_CONFIG_H</span></div>
79 <div·class="line"><a·id="l00031"·name="l00031"></a><span·class="lineno">···31</span><span·class="preprocessor">#include·&lt;config.h&gt;</span></div>79 <div·class="line"><a·id="l00031"·name="l00031"></a><span·class="lineno">···31</span><span·class="preprocessor">#include·&lt;config.h&gt;</span></div>
80 <div·class="line"><a·id="l00032"·name="l00032"></a><span·class="lineno">···32</span><span·class="preprocessor">#endif</span></div>80 <div·class="line"><a·id="l00032"·name="l00032"></a><span·class="lineno">···32</span><span·class="preprocessor">#endif</span></div>
81 <div·class="line"><a·id="l00033"·name="l00033"></a><span·class="lineno">···33</span>·</div>81 <div·class="line"><a·id="l00033"·name="l00033"></a><span·class="lineno">···33</span>·</div>
82 <div·class="line"><a·id="l00034"·name="l00034"></a><span·class="lineno">···34</span><span·class="preprocessor">#include·&quot;SILLYFileDataSource.h&quot;</span></div>82 <div·class="line"><a·id="l00034"·name="l00034"></a><span·class="lineno">···34</span><span·class="preprocessor">#include·&quot;SILLYMemoryDataSource.h&quot;</span></div>
83 <div·class="line"><a·id="l00035"·name="l00035"></a><span·class="lineno">···35</span>·</div>83 <div·class="line"><a·id="l00035"·name="l00035"></a><span·class="lineno">···35</span>·</div>
84 <div·class="line"><a·id="l00036"·name="l00036"></a><span·class="lineno">···36</span><span·class="preprocessor">#ifndef·SILLY_OPT_INLINE</span></div>84 <div·class="line"><a·id="l00036"·name="l00036"></a><span·class="lineno">···36</span><span·class="preprocessor">#ifndef·SILLY_OPT_INLINE</span></div>
85 <div·class="line"><a·id="l00037"·name="l00037"></a><span·class="lineno">···37</span><span·class="preprocessor">#define·inline·</span></div>85 <div·class="line"><a·id="l00037"·name="l00037"></a><span·class="lineno">···37</span><span·class="preprocessor">#define·inline·</span></div>
86 <div·class="line"><a·id="l00038"·name="l00038"></a><span·class="lineno">···38</span><span·class="preprocessor">#include·&quot;SILLYFileDataSource.icpp&quot;</span></div>86 <div·class="line"><a·id="l00038"·name="l00038"></a><span·class="lineno">···38</span><span·class="preprocessor">#include·&quot;SILLYMemoryDataSource.icpp&quot;</span></div>
87 <div·class="line"><a·id="l00039"·name="l00039"></a><span·class="lineno">···39</span><span·class="preprocessor">#undef·inline</span></div>87 <div·class="line"><a·id="l00039"·name="l00039"></a><span·class="lineno">···39</span><span·class="preprocessor">#undef·inline</span></div>
88 <div·class="line"><a·id="l00040"·name="l00040"></a><span·class="lineno">···40</span><span·class="preprocessor">#endif·</span></div>88 <div·class="line"><a·id="l00040"·name="l00040"></a><span·class="lineno">···40</span><span·class="preprocessor">#endif·</span></div>
89 <div·class="line"><a·id="l00041"·name="l00041"></a><span·class="lineno">···41</span><span·class="preprocessor">#include·&lt;stdio.h&gt;</span>·</div>89 <div·class="line"><a·id="l00041"·name="l00041"></a><span·class="lineno">···41</span>·</div>
90 <div·class="line"><a·id="l00042"·name="l00042"></a><span·class="lineno">···42</span><span·class="comment">//·Start·section·of·namespace·SILLY</span></div>90 <div·class="line"><a·id="l00042"·name="l00042"></a><span·class="lineno">···42</span><span·class="comment">//·Start·of·SILLY·namespace·section·</span></div>
91 <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>91 <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>
92 <div·class="line"><a·id="l00044"·name="l00044"></a><span·class="lineno">···44</span>{</div>92 <div·class="line"><a·id="l00044"·name="l00044"></a><span·class="lineno">···44</span>{</div>
93 <div·class="line"><a·id="l00045"·name="l00045"></a><span·class="lineno">···45</span>·</div>93 <div·class="line"><a·id="l00045"·name="l00045"></a><span·class="lineno">···45</span>··</div>
94 <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>94 <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>*·dat[·...·truncated·by·diffoscope;·len:·46,·SHA:·e97a55c821826d7c6eba2157261d0c06b404c8474530e67c616efeb5889b556b·...·]e)</div>
95 <div·class="line"><a·id="l00047"·name="l00047"></a><span·class="lineno">···47</span>····:·d_error(true),·d_bytes(0),·d_size(0)</div>95 <div·class="line"><a·id="l00047"·name="l00047"></a><span·class="lineno">···47</span>····:·d_bytes(data),·d_size(size)</div>
96 <div·class="line"><a·id="l00048"·name="l00048"></a><span·class="lineno">···48</span>{</div>96 <div·class="line"><a·id="l00048"·name="l00048"></a><span·class="lineno">···48</span>{</div>
 97 <div·class="line"><a·id="l00049"·name="l00049"></a><span·class="lineno">···49</span>····assert(data·&amp;&amp;·<span·class="stringliteral">&quot;ASSERT:·data·point·to·an·invalid·memory&quot;</span>);</div>
97 <div·class="line"><a·id="l00049"·name="l00049"></a><span·class="lineno">···49</span>····FILE*·data·=·fopen(filename,·<span·class="stringliteral">&quot;rb&quot;</span>);</div>98 <div·class="line"><a·id="l00050"·name="l00050"></a><span·class="lineno">···50</span>····assert(size·&amp;&amp;·<span·class="stringliteral">&quot;ASSERT:·size·is·equal·to·0&quot;</span>);</div>
98 <div·class="line"><a·id="l00050"·name="l00050"></a><span·class="lineno">···50</span>····<span·class="keywordflow">if</span>·(data)</div> 
99 <div·class="line"><a·id="l00051"·name="l00051"></a><span·class="lineno">···51</span>····{</div>99 <div·class="line"><a·id="l00051"·name="l00051"></a><span·class="lineno">···51</span>}</div>
100 <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> 
101 <div·class="line"><a·id="l00053"·name="l00053"></a><span·class="lineno">···53</span>········<span·class="keywordflow">if</span>·(status·==·-1)</div> 
102 <div·class="line"><a·id="l00054"·name="l00054"></a><span·class="lineno">···54</span>········{</div> 
103 <div·class="line"><a·id="l00055"·name="l00055"></a><span·class="lineno">···55</span>············fclose(data);</div> 
104 <div·class="line"><a·id="l00056"·name="l00056"></a><span·class="lineno">···56</span>············<span·class="keywordflow">return</span>;</div> 
105 <div·class="line"><a·id="l00057"·name="l00057"></a><span·class="lineno">···57</span>········}</div> 
106 <div·class="line"><a·id="l00058"·name="l00058"></a><span·class="lineno">···58</span>········status··=·ftell(data);</div> 
107 <div·class="line"><a·id="l00059"·name="l00059"></a><span·class="lineno">···59</span>········<span·class="keywordflow">if</span>·(status·==·-1)</div> 
108 <div·class="line"><a·id="l00060"·name="l00060"></a><span·class="lineno">···60</span>········{</div> 
109 <div·class="line"><a·id="l00061"·name="l00061"></a><span·class="lineno">···61</span>············fclose(data);</div> 
110 <div·class="line"><a·id="l00062"·name="l00062"></a><span·class="lineno">···62</span>············<span·class="keywordflow">return</span>;</div> 
111 <div·class="line"><a·id="l00063"·name="l00063"></a><span·class="lineno">···63</span>········}</div> 
112 <div·class="line"><a·id="l00064"·name="l00064"></a><span·class="lineno">···64</span>········d_size·=·status;</div> 
113 <div·class="line"><a·id="l00065"·name="l00065"></a><span·class="lineno">···65</span>········<span·class="keywordflow">if</span>·(d_size)</div> 
114 <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> 
115 <div·class="line"><a·id="l00067"·name="l00067"></a><span·class="lineno">···67</span>········<span·class="keywordflow">if</span>·(!·d_bytes)</div> 
116 <div·class="line"><a·id="l00068"·name="l00068"></a><span·class="lineno">···68</span>········{</div> 
117 <div·class="line"><a·id="l00069"·name="l00069"></a><span·class="lineno">···69</span>············fclose(data);</div> 
118 <div·class="line"><a·id="l00070"·name="l00070"></a><span·class="lineno">···70</span>············<span·class="keywordflow">return</span>;</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>········rewind(data);</div> 
121 <div·class="line"><a·id="l00073"·name="l00073"></a><span·class="lineno">···73</span>········status·=·fread(<span·class="keyword">reinterpret_cast&lt;</span><span·class="keywordtype">void</span>*<span·class="keyword">&gt;</span>(d_bytes),·1,·d_size,·data);</div> 
122 <div·class="line"><a·id="l00074"·name="l00074"></a><span·class="lineno">···74</span>········<span·class="keywordflow">if</span>·(status·!=·d_size)</div> 
123 <div·class="line"><a·id="l00075"·name="l00075"></a><span·class="lineno">···75</span>········{</div> 
124 <div·class="line"><a·id="l00076"·name="l00076"></a><span·class="lineno">···76</span>············<span·class="keyword">delete</span>·[]·d_bytes;</div> 
125 <div·class="line"><a·id="l00077"·name="l00077"></a><span·class="lineno">···77</span>············d_bytes·=·0;</div> 
126 <div·class="line"><a·id="l00078"·name="l00078"></a><span·class="lineno">···78</span>············fclose(data);</div> 
127 <div·class="line"><a·id="l00079"·name="l00079"></a><span·class="lineno">···79</span>········}</div> 
128 <div·class="line"><a·id="l00080"·name="l00080"></a><span·class="lineno">···80</span>········fclose(data);</div> 
129 <div·class="line"><a·id="l00081"·name="l00081"></a><span·class="lineno">···81</span>········d_error·=·<span·class="keyword">false</span>;········</div> 
130 <div·class="line"><a·id="l00082"·name="l00082"></a><span·class="lineno">···82</span>····}</div> 
131 <div·class="line"><a·id="l00083"·name="l00083"></a><span·class="lineno">···83</span>}</div> 
132 <div·class="line"><a·id="l00084"·name="l00084"></a><span·class="lineno">···84</span>·</div> 
133 <div·class="line"><a·id="l00085"·name="l00085"></a><span·class="lineno">···85</span>·</div>100 <div·class="line"><a·id="l00052"·name="l00052"></a><span·class="lineno">···52</span>·</div>
134 <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> 
135 <div·class="line"><a·id="l00087"·name="l00087"></a><span·class="lineno">···87</span>{</div> 
136 <div·class="line"><a·id="l00088"·name="l00088"></a><span·class="lineno">···88</span>····<span·class="keyword">delete</span>·[]·d_bytes;</div>101 <div·class="line"><a·id="l00053"·name="l00053"></a><span·class="lineno">···53</span>}·<span·class="comment">//·End·of·SILLY·namespace·section·</span></div>
137 <div·class="line"><a·id="l00089"·name="l00089"></a><span·class="lineno">···89</span>}</div> 
138 <div·class="line"><a·id="l00090"·name="l00090"></a><span·class="lineno">···90</span>·</div>102 <div·class="line"><a·id="l00054"·name="l00054"></a><span·class="lineno">···54</span>·</div>
139 <div·class="line"><a·id="l00091"·name="l00091"></a><span·class="lineno">···91</span>·</div>103 <div·class="line"><a·id="l00055"·name="l00055"></a><span·class="lineno">···55</span>·</div>
140 <div·class="line"><a·id="l00092"·name="l00092"></a><span·class="lineno">···92</span>}·<span·class="comment">//·End·section·of·namespace·SILLY·</span></div> 
141 <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="a00020_source.html#l00045">SILLYJPGImageContext.cpp:46</a></div></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="a00005_source.html#l00045">SILLYJPGImageContext.cpp:46</a></div></div>
142 <div·class="ttc"·id="aa00973_html_a0e751eeffe45217140e97ea89d65b4d7"><div·class="ttname"><a·href="a00973.html#a0e751eeffe45217140e97ea89d65b4d7">SILLY::FileDataSource::FileDataSource</a></div><div·class="ttdeci">FileDataSource(const·char·*filename)</div><div·class="ttdoc">Create·a·[·...·truncated·by·diffoscope;·len:·123,·SHA:·4f7424aa6b2854530d12a72904626a142c1e594f98dd835cc63780edc78ad053·...·]DataSource.cpp:46</a></div></div>105 <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:·147,·SHA:·28e8484ac8987b88505fde6e870130fffdfe043b44a11c04abaf55592ef68b5f·...·]DataSource.cpp:46</a></div></div>
143 <div·class="ttc"·id="aa00973_html_a376d8b1791d5ab33e4c2674b9541901d"><div·class="ttname"><a·href="a00973.html#a376d8b1791d5ab33e4c2674b9541901d">SILLY::FileDataSource::~FileDataSource</a></div><div·class="ttdeci">~FileDataSource()</div><div·class="ttdoc">destructor</div><div·class="ttdef"><b>Definition:</b>·<a·href="a00032_source.html#l00086">SILLYFileDataSource.cpp:86</a></div></div> 
144 </div><!--·fragment·--></div><!--·contents·-->106 </div><!--·fragment·--></div><!--·contents·-->
145 <!--·start·footer·part·-->107 <!--·start·footer·part·-->
146 <hr·class="footer"/><address·class="footer"><small>108 <hr·class="footer"/><address·class="footer"><small>
147 Generated·by&#160;<a·href="https://www.doxygen.org/index.html"><img·class="footer"·src="doxygen.svg"·width="104"·height="31"·alt="doxygen"/></a>·1.9.4109 Generated·by&#160;<a·href="https://www.doxygen.org/index.html"><img·class="footer"·src="doxygen.svg"·width="104"·height="31"·alt="doxygen"/></a>·1.9.4
148 </small></address>110 </small></address>
149 </body>111 </body>
150 </html>112 </html>
3.38 KB
html2text {}
    
Offset 4, 21 lines modifiedOffset 4, 21 lines modified
  
4 Simple·Image·Loading·LibrarY 0.1.04 Simple·Image·Loading·LibrarY 0.1.0
  
5 ····*·build5 ····*·build
6 ····*·reproducible-path6 ····*·reproducible-path
7 ····*·silly-0.1.07 ····*·silly-0.1.0
8 ····*·src8 ····*·src
9 SILLYFileDataSource.cpp9 SILLYMemoryDataSource.cpp
10 ·1/***********************************************************************10 ·1/***********************************************************************
11 ·2·filename:·SILLYFileDataSource.cpp11 ·2·filename:·SILLYMemoryDataSource.cpp
12 ·3·created:·20·Jul·200612 ·3·created:·10·Jun·2006
13 ·4·author:·Olivier·Delannoy13 ·4·author:·Olivier·Delannoy
14 ·514 ·5
15 ·6·purpose:·Implementation·of·the·FileDataSource·methods15 ·6·purpose:·SILLYMemoryDataSource·definition·for·the·SILLY·library
16 ·7*************************************************************************/16 ·7*************************************************************************/
17 ·8/***************************************************************************17 ·8/***************************************************************************
18 ·9·*·Copyright·(C)·2004·-·2006·Paul·D·Turner·&·The·CEGUI·Development·Team18 ·9·*·Copyright·(C)·2004·-·2006·Paul·D·Turner·&·The·CEGUI·Development·Team
19 ·10·*19 ·10·*
20 ·11·*·Permission·is·hereby·granted,·free·of·charge,·to·any·person·obtaining20 ·11·*·Permission·is·hereby·granted,·free·of·charge,·to·any·person·obtaining
21 ·12·*·a·copy·of·this·software·and·associated·documentation·files·(the21 ·12·*·a·copy·of·this·software·and·associated·documentation·files·(the
22 ·13·*·"Software"),·to·deal·in·the·Software·without·restriction,·including22 ·13·*·"Software"),·to·deal·in·the·Software·without·restriction,·including
Offset 39, 80 lines modifiedOffset 39, 39 lines modified
39 ·28·*·OTHER·DEALINGS·IN·THE·SOFTWARE.39 ·28·*·OTHER·DEALINGS·IN·THE·SOFTWARE.
40 ·2940 ·29
41 ***************************************************************************/41 ***************************************************************************/
42 ·30#ifdef·HAVE_CONFIG_H42 ·30#ifdef·HAVE_CONFIG_H
43 ·31#include·<config.h>43 ·31#include·<config.h>
44 ·32#endif44 ·32#endif
45 ·3345 ·33
46 ·34#include·"SILLYFileDataSource.h"46 ·34#include·"SILLYMemoryDataSource.h"
47 ·3547 ·35
48 ·36#ifndef·SILLY_OPT_INLINE48 ·36#ifndef·SILLY_OPT_INLINE
49 ·37#define·inline49 ·37#define·inline
50 ·38#include·"SILLYFileDataSource.icpp"50 ·38#include·"SILLYMemoryDataSource.icpp"
51 ·39#undef·inline51 ·39#undef·inline
52 ·40#endif52 ·40#endif
53 ·41#include·<stdio.h> 
54 ·42//·Start·section·of·namespace·SILLY53 ·41
 54 ·42//·Start·of·SILLY·namespace·section
55 ·43namespace·SILLY55 ·43namespace·SILLY
56 ·44{56 ·44{
57 ·4557 ·45
58 46FileDataSource::FileDataSource(const·char*·filename) 
59 ·47·:·d_error(true),·d_bytes(0),·d_size(0)58 46MemoryDataSource::MemoryDataSource(const·byte*·data,·size_t·size)
 59 ·47·:·d_bytes(data),·d_size(size)
60 ·48{60 ·48{
61 ·49·FILE*·data·=·fopen(filename,·"rb"); 
62 ·50·if·(data) 
63 ·51·{ 
64 ·52·long·status·=·fseek(data,·0,·SEEK_END); 
65 ·53·if·(status·==·-1)61 ·49·assert(data·&&·"ASSERT:·data·point·to·an·invalid·memory");
 62 ·50·assert(size·&&·"ASSERT:·size·is·equal·to·0");
 63 ·51}
 64 ·52
 65 ·53}·//·End·of·SILLY·namespace·section
66 ·54·{66 ·54
 67 ·55
67 ·55·fclose(data); 
68 ·56·return; 
69 ·57·} 
70 ·58·status·=·ftell(data); 
71 ·59·if·(status·==·-1) 
72 ·60·{ 
73 ·61·fclose(data); 
74 ·62·return; 
75 ·63·} 
76 ·64·d_size·=·status; 
77 ·65·if·(d_size) 
78 ·66·d_bytes·=·new·byte[d_size]; 
79 ·67·if·(!·d_bytes) 
80 ·68·{ 
81 ·69·fclose(data); 
82 ·70·return; 
83 ·71·} 
84 ·72·rewind(data); 
85 ·73·status·=·fread(reinterpret_cast<void*>(d_bytes),·1,·d_size,·data); 
86 ·74·if·(status·!=·d_size) 
87 ·75·{ 
88 ·76·delete·[]·d_bytes; 
89 ·77·d_bytes·=·0; 
90 ·78·fclose(data); 
91 ·79·} 
92 ·80·fclose(data); 
93 ·81·d_error·=·false; 
94 ·82·} 
95 ·83} 
96 ·84 
97 ·85 
98 86FileDataSource::~FileDataSource() 
99 ·87{ 
100 ·88·delete·[]·d_bytes; 
101 ·89} 
102 ·90 
103 ·91 
104 ·92}·//·End·section·of·namespace·SILLY 
105 SILLY68 SILLY
106 Simple·Image·Loading·LibrarY·namespace.69 Simple·Image·Loading·LibrarY·namespace.
107 Definition:·SILLYJPGImageContext.cpp:4670 Definition:·SILLYJPGImageContext.cpp:46
108 SILLY::FileDataSource::FileDataSource71 SILLY::MemoryDataSource::MemoryDataSource
109 FileDataSource(const·char·*filename)72 MemoryDataSource(const·byte·*data,·size_t·size)
110 Create·a·data·source·from·an·existing·file.73 Create·a·data·source·from·an·existing·memory·area.
111 Definition:·SILLYFileDataSource.cpp:4674 Definition:·SILLYMemoryDataSource.cpp:46
112 SILLY::FileDataSource::~FileDataSource 
113 ~FileDataSource() 
114 destructor 
115 Definition:·SILLYFileDataSource.cpp:86 
  
116 ===============================================================================75 ===============================================================================
117 ·····Generated·by [doxygen]·1.9.476 ·····Generated·by [doxygen]·1.9.4
14.1 KB
./usr/share/doc/libsilly-doc/html/a00035_source.html
    
Offset 1, 15 lines modifiedOffset 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">2 <html·xmlns="http://www.w3.org/1999/xhtml">
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.4"/>6 <meta·name="generator"·content="Doxygen·1.9.4"/>
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/SILLYDataSource.cpp·Source·File</title>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 39, 23 lines modifiedOffset 39, 23 lines modified
39 <div·id="main-nav"></div>39 <div·id="main-nav"></div>
40 <div·id="nav-path"·class="navpath">40 <div·id="nav-path"·class="navpath">
41 ··<ul>41 ··<ul>
42 <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>42 <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>
43 </div>43 </div>
44 </div><!--·top·-->44 </div><!--·top·-->
45 <div·class="header">45 <div·class="header">
46 ··<div·class="headertitle"><div·class="title">SILLYDataSource.cpp</div></div>46 ··<div·class="headertitle"><div·class="title">SILLYImageLoader.cpp</div></div>
47 </div><!--header-->47 </div><!--header-->
48 <div·class="contents">48 <div·class="contents">
49 <div·class="fragment"><div·class="line"><a·id="l00001"·name="l00001"></a><span·class="lineno">····1</span><span·class="comment">/***********************************************************************</span></div>49 <div·class="fragment"><div·class="line"><a·id="l00001"·name="l00001"></a><span·class="lineno">····1</span><span·class="comment">/***********************************************************************</span></div>
50 <div·class="line"><a·id="l00002"·name="l00002"></a><span·class="lineno">····2</span><span·class="comment">····filename:···SILLYDataSource.cpp</span></div>50 <div·class="line"><a·id="l00002"·name="l00002"></a><span·class="lineno">····2</span><span·class="comment">····filename:···ImageLoader.cpp</span></div>
51 <div·class="line"><a·id="l00003"·name="l00003"></a><span·class="lineno">····3</span><span·class="comment">····created:····10·Jun·2006</span></div>51 <div·class="line"><a·id="l00003"·name="l00003"></a><span·class="lineno">····3</span><span·class="comment">····created:····10·Jun·2006</span></div>
52 <div·class="line"><a·id="l00004"·name="l00004"></a><span·class="lineno">····4</span><span·class="comment">····author:·····Olivier·Delannoy</span></div>52 <div·class="line"><a·id="l00004"·name="l00004"></a><span·class="lineno">····4</span><span·class="comment">····author:·····Olivier·Delannoy·</span></div>
53 <div·class="line"><a·id="l00005"·name="l00005"></a><span·class="lineno">····5</span><span·class="comment"></span>·</div>53 <div·class="line"><a·id="l00005"·name="l00005"></a><span·class="lineno">····5</span><span·class="comment"></span>·</div>
54 <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>54 <div·class="line"><a·id="l00006"·name="l00006"></a><span·class="lineno">····6</span><span·class="comment">····purpose:····Implementation·of·the·ImageLoader··</span></div>
55 <div·class="line"><a·id="l00007"·name="l00007"></a><span·class="lineno">····7</span><span·class="comment">*************************************************************************/</span></div>55 <div·class="line"><a·id="l00007"·name="l00007"></a><span·class="lineno">····7</span><span·class="comment">*************************************************************************/</span></div>
56 <div·class="line"><a·id="l00008"·name="l00008"></a><span·class="lineno">····8</span><span·class="comment">/***************************************************************************</span></div>56 <div·class="line"><a·id="l00008"·name="l00008"></a><span·class="lineno">····8</span><span·class="comment">/***************************************************************************</span></div>
57 <div·class="line"><a·id="l00009"·name="l00009"></a><span·class="lineno">····9</span><span·class="comment">·*···Copyright·(C)·2004·-·2006·Paul·D·Turner·&amp;·The·CEGUI·Development·Team</span></div>57 <div·class="line"><a·id="l00009"·name="l00009"></a><span·class="lineno">····9</span><span·class="comment">·*···Copyright·(C)·2004·-·2006·Paul·D·Turner·&amp;·The·CEGUI·Development·Team</span></div>
58 <div·class="line"><a·id="l00010"·name="l00010"></a><span·class="lineno">···10</span><span·class="comment">·*</span></div>58 <div·class="line"><a·id="l00010"·name="l00010"></a><span·class="lineno">···10</span><span·class="comment">·*</span></div>
59 <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>59 <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>
60 <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>60 <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>
61 <div·class="line"><a·id="l00013"·name="l00013"></a><span·class="lineno">···13</span><span·class="comment">·*···&quot;Software&quot;),·to·deal·in·the·Software·without·restriction,·including</span></div>61 <div·class="line"><a·id="l00013"·name="l00013"></a><span·class="lineno">···13</span><span·class="comment">·*···&quot;Software&quot;),·to·deal·in·the·Software·without·restriction,·including</span></div>
Offset 75, 32 lines modifiedOffset 75, 41 lines modified
75 <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>75 <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>
76 <div·class="line"><a·id="l00028"·name="l00028"></a><span·class="lineno">···28</span><span·class="comment">·*···OTHER·DEALINGS·IN·THE·SOFTWARE.</span></div>76 <div·class="line"><a·id="l00028"·name="l00028"></a><span·class="lineno">···28</span><span·class="comment">·*···OTHER·DEALINGS·IN·THE·SOFTWARE.</span></div>
77 <div·class="line"><a·id="l00029"·name="l00029"></a><span·class="lineno">···29</span><span·class="comment">·***************************************************************************/</span></div>77 <div·class="line"><a·id="l00029"·name="l00029"></a><span·class="lineno">···29</span><span·class="comment">·***************************************************************************/</span></div>
78 <div·class="line"><a·id="l00030"·name="l00030"></a><span·class="lineno">···30</span><span·class="preprocessor">#ifdef·HAVE_CONFIG_H</span></div>78 <div·class="line"><a·id="l00030"·name="l00030"></a><span·class="lineno">···30</span><span·class="preprocessor">#ifdef·HAVE_CONFIG_H</span></div>
79 <div·class="line"><a·id="l00031"·name="l00031"></a><span·class="lineno">···31</span><span·class="preprocessor">#include·&lt;config.h&gt;</span></div>79 <div·class="line"><a·id="l00031"·name="l00031"></a><span·class="lineno">···31</span><span·class="preprocessor">#include·&lt;config.h&gt;</span></div>
80 <div·class="line"><a·id="l00032"·name="l00032"></a><span·class="lineno">···32</span><span·class="preprocessor">#endif</span></div>80 <div·class="line"><a·id="l00032"·name="l00032"></a><span·class="lineno">···32</span><span·class="preprocessor">#endif</span></div>
81 <div·class="line"><a·id="l00033"·name="l00033"></a><span·class="lineno">···33</span>·</div>81 <div·class="line"><a·id="l00033"·name="l00033"></a><span·class="lineno">···33</span>·</div>
82 <div·class="line"><a·id="l00034"·name="l00034"></a><span·class="lineno">···34</span><span·class="preprocessor">#include·&quot;SILLYDataSource.h&quot;</span></div>82 <div·class="line"><a·id="l00034"·name="l00034"></a><span·class="lineno">···34</span><span·class="preprocessor">#include·&quot;SILLYImageLoader.h&quot;</span></div>
83 <div·class="line"><a·id="l00035"·name="l00035"></a><span·class="lineno">···35</span>·</div> 
84 <div·class="line"><a·id="l00036"·name="l00036"></a><span·class="lineno">···36</span><span·class="preprocessor">#ifndef·SILLY_OPT_INLINE</span></div>83 <div·class="line"><a·id="l00035"·name="l00035"></a><span·class="lineno">···35</span><span·class="preprocessor">#ifndef·SILLY_OPT_INLINE</span></div>
85 <div·class="line"><a·id="l00037"·name="l00037"></a><span·class="lineno">···37</span><span·class="preprocessor">#define·inline·</span></div>84 <div·class="line"><a·id="l00036"·name="l00036"></a><span·class="lineno">···36</span><span·class="preprocessor">#define·inline·</span></div>
86 <div·class="line"><a·id="l00038"·name="l00038"></a><span·class="lineno">···38</span><span·class="preprocessor">#include·&quot;SILLYDataSource.icpp&quot;</span></div>85 <div·class="line"><a·id="l00037"·name="l00037"></a><span·class="lineno">···37</span><span·class="preprocessor">#include·&quot;SILLYImageLoader.icpp&quot;</span></div>
87 <div·class="line"><a·id="l00039"·name="l00039"></a><span·class="lineno">···39</span><span·class="preprocessor">#undef·inline</span></div>86 <div·class="line"><a·id="l00038"·name="l00038"></a><span·class="lineno">···38</span><span·class="preprocessor">#undef·inline</span></div>
88 <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="l00039"·name="l00039"></a><span·class="lineno">···39</span><span·class="preprocessor">#endif·</span></div>
 88 <div·class="line"><a·id="l00040"·name="l00040"></a><span·class="lineno">···40</span><span·class="preprocessor">#include·&quot;SILLYImageContext.h&quot;</span>·</div>
89 <div·class="line"><a·id="l00041"·name="l00041"></a><span·class="lineno">···41</span>·</div>89 <div·class="line"><a·id="l00041"·name="l00041"></a><span·class="lineno">···41</span>·</div>
90 <div·class="line"><a·id="l00042"·name="l00042"></a><span·class="lineno">···42</span><span·class="comment">//·Start·of·SILLY·namespace·section</span></div>90 <div·class="line"><a·id="l00042"·name="l00042"></a><span·class="lineno">···42</span><span·class="comment">//·Start·of·SILLY·namespace·section</span></div>
91 <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>91 <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>
92 <div·class="line"><a·id="l00044"·name="l00044"></a><span·class="lineno">···44</span>{</div>92 <div·class="line"><a·id="l00044"·name="l00044"></a><span·class="lineno">···44</span>{</div>
93 <div·class="line"><a·id="l00045"·name="l00045"></a><span·class="lineno">···45</span>··</div>93 <div·class="line"><a·id="l00045"·name="l00045"></a><span·class="lineno">···45</span>·</div>
94 <div·class="line"><a·id="l00046"·name="l00046"></a><span·class="lineno">···46</span>}·<span·class="comment">//·End·of·SILLY·namespace·section·</span></div> 
95 <div·class="line"><a·id="l00047"·name="l00047"></a><span·class="lineno">···47</span>·</div>94 <div·class="line"><a·id="l00046"·name="l00046"></a><span·class="lineno">···46</span>·</div>
 95 <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>
96 <div·class="line"><a·id="l00048"·name="l00048"></a><span·class="lineno">···48</span>·</div>96 <div·class="line"><a·id="l00048"·name="l00048"></a><span·class="lineno">···48</span>{</div>
97 <div·class="line"><a·id="l00049"·name="l00049"></a><span·class="lineno">···49</span>·</div>97 <div·class="line"><a·id="l00049"·name="l00049"></a><span·class="lineno">···49</span>····<span·class="keyword">delete</span>·context;</div>
98 <div·class="line"><a·id="l00050"·name="l00050"></a><span·class="lineno">···50</span>·</div>98 <div·class="line"><a·id="l00050"·name="l00050"></a><span·class="lineno">···50</span>}</div>
 99 <div·class="line"><a·id="l00051"·name="l00051"></a><span·class="lineno">···51</span>·</div>
 100 <div·class="line"><a·id="l00052"·name="l00052"></a><span·class="lineno">···52</span>·</div>
 101 <div·class="line"><a·id="l00053"·name="l00053"></a><span·class="lineno">···53</span>}·<span·class="comment">//·end·of·SILLY·namespace·section·</span></div>
 102 <div·class="line"><a·id="l00054"·name="l00054"></a><span·class="lineno">···54</span>·</div>
 103 <div·class="line"><a·id="l00055"·name="l00055"></a><span·class="lineno">···55</span>·</div>
 104 <div·class="line"><a·id="l00056"·name="l00056"></a><span·class="lineno">···56</span>·</div>
 105 <div·class="line"><a·id="l00057"·name="l00057"></a><span·class="lineno">···57</span>·</div>
99 <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="a00020_source.html#l00045">SILLYJPGImageContext.cpp:46</a></div></div>106 <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="a00005_source.html#l00045">SILLYJPGImageContext.cpp:46</a></div></div>
 107 <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="a00110_source.html#l00043">SILLYImageContext.h:44</a></div></div>
 108 <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="a00035_source.html#l00047">SILLYImageLoader.cpp:47</a></div></div>
100 </div><!--·fragment·--></div><!--·contents·-->109 </div><!--·fragment·--></div><!--·contents·-->
101 <!--·start·footer·part·-->110 <!--·start·footer·part·-->
102 <hr·class="footer"/><address·class="footer"><small>111 <hr·class="footer"/><address·class="footer"><small>
103 Generated·by&#160;<a·href="https://www.doxygen.org/index.html"><img·class="footer"·src="doxygen.svg"·width="104"·height="31"·alt="doxygen"/></a>·1.9.4112 Generated·by&#160;<a·href="https://www.doxygen.org/index.html"><img·class="footer"·src="doxygen.svg"·width="104"·height="31"·alt="doxygen"/></a>·1.9.4
104 </small></address>113 </small></address>
105 </body>114 </body>
106 </html>115 </html>
2.24 KB
html2text {}
    
Offset 4, 21 lines modifiedOffset 4, 21 lines modified
  
4 Simple·Image·Loading·LibrarY 0.1.04 Simple·Image·Loading·LibrarY 0.1.0
  
5 ····*·build5 ····*·build
6 ····*·reproducible-path6 ····*·reproducible-path
7 ····*·silly-0.1.07 ····*·silly-0.1.0
8 ····*·src8 ····*·src
9 SILLYDataSource.cpp9 SILLYImageLoader.cpp
10 ·1/***********************************************************************10 ·1/***********************************************************************
11 ·2·filename:·SILLYDataSource.cpp11 ·2·filename:·ImageLoader.cpp
12 ·3·created:·10·Jun·200612 ·3·created:·10·Jun·2006
13 ·4·author:·Olivier·Delannoy13 ·4·author:·Olivier·Delannoy
14 ·514 ·5
15 ·6·purpose:·SILLYDataSource·definition·for·the·SILLY·library15 ·6·purpose:·Implementation·of·the·ImageLoader
16 ·7*************************************************************************/16 ·7*************************************************************************/
17 ·8/***************************************************************************17 ·8/***************************************************************************
18 ·9·*·Copyright·(C)·2004·-·2006·Paul·D·Turner·&·The·CEGUI·Development·Team18 ·9·*·Copyright·(C)·2004·-·2006·Paul·D·Turner·&·The·CEGUI·Development·Team
19 ·10·*19 ·10·*
20 ·11·*·Permission·is·hereby·granted,·free·of·charge,·to·any·person·obtaining20 ·11·*·Permission·is·hereby·granted,·free·of·charge,·to·any·person·obtaining
21 ·12·*·a·copy·of·this·software·and·associated·documentation·files·(the21 ·12·*·a·copy·of·this·software·and·associated·documentation·files·(the
22 ·13·*·"Software"),·to·deal·in·the·Software·without·restriction,·including22 ·13·*·"Software"),·to·deal·in·the·Software·without·restriction,·including
Offset 39, 30 lines modifiedOffset 39, 44 lines modified
39 ·28·*·OTHER·DEALINGS·IN·THE·SOFTWARE.39 ·28·*·OTHER·DEALINGS·IN·THE·SOFTWARE.
40 ·2940 ·29
41 ***************************************************************************/41 ***************************************************************************/
42 ·30#ifdef·HAVE_CONFIG_H42 ·30#ifdef·HAVE_CONFIG_H
43 ·31#include·<config.h>43 ·31#include·<config.h>
44 ·32#endif44 ·32#endif
45 ·3345 ·33
46 ·34#include·"SILLYDataSource.h"46 ·34#include·"SILLYImageLoader.h"
47 ·35 
48 ·36#ifndef·SILLY_OPT_INLINE47 ·35#ifndef·SILLY_OPT_INLINE
49 ·37#define·inline48 ·36#define·inline
50 ·38#include·"SILLYDataSource.icpp"49 ·37#include·"SILLYImageLoader.icpp"
51 ·39#undef·inline50 ·38#undef·inline
52 ·40#endif51 ·39#endif
 52 ·40#include·"SILLYImageContext.h"
53 ·4153 ·41
54 ·42//·Start·of·SILLY·namespace·section54 ·42//·Start·of·SILLY·namespace·section
55 ·43namespace·SILLY55 ·43namespace·SILLY
56 ·44{56 ·44{
57 ·4557 ·45
 58 ·46
 59 47void·ImageLoader::destroyContext(ImageContext*·context)
 60 ·48{
 61 ·49·delete·context;
 62 ·50}
 63 ·51
 64 ·52
58 ·46}·//·End·of·SILLY·namespace·section65 ·53}·//·end·of·SILLY·namespace·section
59 ·47 
60 ·48 
61 ·49 
62 ·5066 ·54
 67 ·55
 68 ·56
 69 ·57
63 SILLY70 SILLY
64 Simple·Image·Loading·LibrarY·namespace.71 Simple·Image·Loading·LibrarY·namespace.
65 Definition:·SILLYJPGImageContext.cpp:4672 Definition:·SILLYJPGImageContext.cpp:46
 73 SILLY::ImageContext
 74 Store·the·data·needed·by·an·ImageLoader·object·during·the·parsing·of·an·image.
 75 Definition:·SILLYImageContext.h:44
 76 SILLY::ImageLoader::destroyContext
 77 void·destroyContext(ImageContext·*context)
 78 Destroy·the·image·context.
 79 Definition:·SILLYImageLoader.cpp:47
  
66 ===============================================================================80 ===============================================================================
67 ·····Generated·by [doxygen]·1.9.481 ·····Generated·by [doxygen]·1.9.4
25.8 KB
./usr/share/doc/libsilly-doc/html/a00038_source.html
    
Offset 1, 15 lines modifiedOffset 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">2 <html·xmlns="http://www.w3.org/1999/xhtml">
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.4"/>6 <meta·name="generator"·content="Doxygen·1.9.4"/>
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/SILLYImageLoaderManager.cpp·Source·File</title>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 39, 23 lines modifiedOffset 39, 23 lines modified
39 <div·id="main-nav"></div>39 <div·id="main-nav"></div>
40 <div·id="nav-path"·class="navpath">40 <div·id="nav-path"·class="navpath">
41 ··<ul>41 ··<ul>
42 <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>42 <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>
43 </div>43 </div>
44 </div><!--·top·-->44 </div><!--·top·-->
45 <div·class="header">45 <div·class="header">
46 ··<div·class="headertitle"><div·class="title">SILLYImageLoaderManager.cpp</div></div>46 ··<div·class="headertitle"><div·class="title">SILLYDataSource.cpp</div></div>
47 </div><!--header-->47 </div><!--header-->
48 <div·class="contents">48 <div·class="contents">
49 <div·class="fragment"><div·class="line"><a·id="l00001"·name="l00001"></a><span·class="lineno">····1</span><span·class="comment">/***********************************************************************</span></div>49 <div·class="fragment"><div·class="line"><a·id="l00001"·name="l00001"></a><span·class="lineno">····1</span><span·class="comment">/***********************************************************************</span></div>
50 <div·class="line"><a·id="l00002"·name="l00002"></a><span·class="lineno">····2</span><span·class="comment">····filename:···ImageLoaderManager.cpp</span></div>50 <div·class="line"><a·id="l00002"·name="l00002"></a><span·class="lineno">····2</span><span·class="comment">····filename:···SILLYDataSource.cpp</span></div>
51 <div·class="line"><a·id="l00003"·name="l00003"></a><span·class="lineno">····3</span><span·class="comment">····created:····10·Jun·2006</span></div>51 <div·class="line"><a·id="l00003"·name="l00003"></a><span·class="lineno">····3</span><span·class="comment">····created:····10·Jun·2006</span></div>
52 <div·class="line"><a·id="l00004"·name="l00004"></a><span·class="lineno">····4</span><span·class="comment">····author:·····Olivier·Delannoy·</span></div>52 <div·class="line"><a·id="l00004"·name="l00004"></a><span·class="lineno">····4</span><span·class="comment">····author:·····Olivier·Delannoy</span></div>
53 <div·class="line"><a·id="l00005"·name="l00005"></a><span·class="lineno">····5</span><span·class="comment"></span>·</div>53 <div·class="line"><a·id="l00005"·name="l00005"></a><span·class="lineno">····5</span><span·class="comment"></span>·</div>
54 <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>54 <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>
55 <div·class="line"><a·id="l00007"·name="l00007"></a><span·class="lineno">····7</span><span·class="comment">*************************************************************************/</span></div>55 <div·class="line"><a·id="l00007"·name="l00007"></a><span·class="lineno">····7</span><span·class="comment">*************************************************************************/</span></div>
56 <div·class="line"><a·id="l00008"·name="l00008"></a><span·class="lineno">····8</span><span·class="comment">/***************************************************************************</span></div>56 <div·class="line"><a·id="l00008"·name="l00008"></a><span·class="lineno">····8</span><span·class="comment">/***************************************************************************</span></div>
57 <div·class="line"><a·id="l00009"·name="l00009"></a><span·class="lineno">····9</span><span·class="comment">·*···Copyright·(C)·2004·-·2006·Paul·D·Turner·&amp;·The·CEGUI·Development·Team</span></div>57 <div·class="line"><a·id="l00009"·name="l00009"></a><span·class="lineno">····9</span><span·class="comment">·*···Copyright·(C)·2004·-·2006·Paul·D·Turner·&amp;·The·CEGUI·Development·Team</span></div>
58 <div·class="line"><a·id="l00010"·name="l00010"></a><span·class="lineno">···10</span><span·class="comment">·*</span></div>58 <div·class="line"><a·id="l00010"·name="l00010"></a><span·class="lineno">···10</span><span·class="comment">·*</span></div>
59 <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>59 <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>
60 <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>60 <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>
61 <div·class="line"><a·id="l00013"·name="l00013"></a><span·class="lineno">···13</span><span·class="comment">·*···&quot;Software&quot;),·to·deal·in·the·Software·without·restriction,·including</span></div>61 <div·class="line"><a·id="l00013"·name="l00013"></a><span·class="lineno">···13</span><span·class="comment">·*···&quot;Software&quot;),·to·deal·in·the·Software·without·restriction,·including</span></div>
Offset 75, 101 lines modifiedOffset 75, 32 lines modified
75 <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>75 <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>
76 <div·class="line"><a·id="l00028"·name="l00028"></a><span·class="lineno">···28</span><span·class="comment">·*···OTHER·DEALINGS·IN·THE·SOFTWARE.</span></div>76 <div·class="line"><a·id="l00028"·name="l00028"></a><span·class="lineno">···28</span><span·class="comment">·*···OTHER·DEALINGS·IN·THE·SOFTWARE.</span></div>
77 <div·class="line"><a·id="l00029"·name="l00029"></a><span·class="lineno">···29</span><span·class="comment">·***************************************************************************/</span></div>77 <div·class="line"><a·id="l00029"·name="l00029"></a><span·class="lineno">···29</span><span·class="comment">·***************************************************************************/</span></div>
78 <div·class="line"><a·id="l00030"·name="l00030"></a><span·class="lineno">···30</span><span·class="preprocessor">#ifdef·HAVE_CONFIG_H</span></div>78 <div·class="line"><a·id="l00030"·name="l00030"></a><span·class="lineno">···30</span><span·class="preprocessor">#ifdef·HAVE_CONFIG_H</span></div>
79 <div·class="line"><a·id="l00031"·name="l00031"></a><span·class="lineno">···31</span><span·class="preprocessor">#include·&lt;config.h&gt;</span></div>79 <div·class="line"><a·id="l00031"·name="l00031"></a><span·class="lineno">···31</span><span·class="preprocessor">#include·&lt;config.h&gt;</span></div>
80 <div·class="line"><a·id="l00032"·name="l00032"></a><span·class="lineno">···32</span><span·class="preprocessor">#endif</span></div>80 <div·class="line"><a·id="l00032"·name="l00032"></a><span·class="lineno">···32</span><span·class="preprocessor">#endif</span></div>
81 <div·class="line"><a·id="l00033"·name="l00033"></a><span·class="lineno">···33</span>·</div>81 <div·class="line"><a·id="l00033"·name="l00033"></a><span·class="lineno">···33</span>·</div>
82 <div·class="line"><a·id="l00034"·name="l00034"></a><span·class="lineno">···34</span><span·class="preprocessor">#include·&quot;SILLYImageLoaderManager.h&quot;</span></div>82 <div·class="line"><a·id="l00034"·name="l00034"></a><span·class="lineno">···34</span><span·class="preprocessor">#include·&quot;SILLYDataSource.h&quot;</span></div>
83 <div·class="line"><a·id="l00035"·name="l00035"></a><span·class="lineno">···35</span>·</div>83 <div·class="line"><a·id="l00035"·name="l00035"></a><span·class="lineno">···35</span>·</div>
84 <div·class="line"><a·id="l00036"·name="l00036"></a><span·class="lineno">···36</span><span·class="preprocessor">#ifndef·SILLY_OPT_INLINE</span></div>84 <div·class="line"><a·id="l00036"·name="l00036"></a><span·class="lineno">···36</span><span·class="preprocessor">#ifndef·SILLY_OPT_INLINE</span></div>
85 <div·class="line"><a·id="l00037"·name="l00037"></a><span·class="lineno">···37</span><span·class="preprocessor">#define·inline·</span></div>85 <div·class="line"><a·id="l00037"·name="l00037"></a><span·class="lineno">···37</span><span·class="preprocessor">#define·inline·</span></div>
86 <div·class="line"><a·id="l00038"·name="l00038"></a><span·class="lineno">···38</span><span·class="preprocessor">#include·&quot;SILLYImageLoaderManager.icpp&quot;</span></div>86 <div·class="line"><a·id="l00038"·name="l00038"></a><span·class="lineno">···38</span><span·class="preprocessor">#include·&quot;SILLYDataSource.icpp&quot;</span></div>
87 <div·class="line"><a·id="l00039"·name="l00039"></a><span·class="lineno">···39</span><span·class="preprocessor">#undef·inline</span></div>87 <div·class="line"><a·id="l00039"·name="l00039"></a><span·class="lineno">···39</span><span·class="preprocessor">#undef·inline</span></div>
88 <div·class="line"><a·id="l00040"·name="l00040"></a><span·class="lineno">···40</span><span·class="preprocessor">#endif·</span></div>88 <div·class="line"><a·id="l00040"·name="l00040"></a><span·class="lineno">···40</span><span·class="preprocessor">#endif·</span></div>
89 <div·class="line"><a·id="l00041"·name="l00041"></a><span·class="lineno">···41</span><span·class="preprocessor">#include·&quot;SILLYImageLoader.h&quot;</span></div> 
90 <div·class="line"><a·id="l00042"·name="l00042"></a><span·class="lineno">···42</span><span·class="preprocessor">#include·&quot;loaders/SILLYTGAImageLoader.h&quot;</span></div> 
91 <div·class="line"><a·id="l00043"·name="l00043"></a><span·class="lineno">···43</span>·</div>89 <div·class="line"><a·id="l00041"·name="l00041"></a><span·class="lineno">···41</span>·</div>
92 <div·class="line"><a·id="l00044"·name="l00044"></a><span·class="lineno">···44</span><span·class="preprocessor">#ifdef·SILLY_HAVE_JPG</span></div>90 <div·class="line"><a·id="l00042"·name="l00042"></a><span·class="lineno">···42</span><span·class="comment">//·Start·of·SILLY·namespace·section</span></div>
93 <div·class="line"><a·id="l00045"·name="l00045"></a><span·class="lineno">···45</span><span·class="preprocessor">#include·&quot;loaders/SILLYJPGImageLoader.h&quot;</span>·</div>91 <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>
 92 <div·class="line"><a·id="l00044"·name="l00044"></a><span·class="lineno">···44</span>{</div>
 93 <div·class="line"><a·id="l00045"·name="l00045"></a><span·class="lineno">···45</span>··</div>
94 <div·class="line"><a·id="l00046"·name="l00046"></a><span·class="lineno">···46</span><span·class="preprocessor">#endif·</span></div>94 <div·class="line"><a·id="l00046"·name="l00046"></a><span·class="lineno">···46</span>}·<span·class="comment">//·End·of·SILLY·namespace·section·</span></div>
95 <div·class="line"><a·id="l00047"·name="l00047"></a><span·class="lineno">···47</span>·</div>95 <div·class="line"><a·id="l00047"·name="l00047"></a><span·class="lineno">···47</span>·</div>
96 <div·class="line"><a·id="l00048"·name="l00048"></a><span·class="lineno">···48</span><span·class="preprocessor">#ifdef·SILLY_HAVE_PNG</span></div> 
97 <div·class="line"><a·id="l00049"·name="l00049"></a><span·class="lineno">···49</span><span·class="preprocessor">#include·&quot;loaders/SILLYPNGImageLoader.h&quot;</span>·</div> 
98 <div·class="line"><a·id="l00050"·name="l00050"></a><span·class="lineno">···50</span><span·class="preprocessor">#endif·</span></div> 
99 <div·class="line"><a·id="l00051"·name="l00051"></a><span·class="lineno">···51</span>·</div> 
100 <div·class="line"><a·id="l00052"·name="l00052"></a><span·class="lineno">···52</span><span·class="comment">//·Start·of·SILLY·namespace·section·</span></div> 
101 <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> 
102 <div·class="line"><a·id="l00054"·name="l00054"></a><span·class="lineno">···54</span>{</div> 
103 <div·class="line"><a·id="l00055"·name="l00055"></a><span·class="lineno">···55</span>·</div> 
104 <div·class="line"><a·id="l00056"·name="l00056"></a><span·class="lineno">···56</span><span·class="comment">//·we·need·to·do·&quot;reference·counting&quot;·for·init/exit·to·allow·silly·to·be·used</span></div> 
105 <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> 
106 <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> 
107 <div·class="line"><a·id="l00059"·name="l00059"></a><span·class="lineno">···59</span>·</div> 
108 <div·class="line"><a·id="l00060"·name="l00060"></a><span·class="lineno">···60</span>ImageLoaderManager*·ImageLoaderManager::d_instance·=·0;</div> 
109 <div·class="line"><a·id="l00061"·name="l00061"></a><span·class="lineno">···61</span>·</div> 
110 <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> 
111 <div·class="line"><a·id="l00063"·name="l00063"></a><span·class="lineno">···63</span>{</div> 
112 <div·class="line"><a·id="l00064"·name="l00064"></a><span·class="lineno">···64</span>····assert(d_instance·==·0);</div> 
113 <div·class="line"><a·id="l00065"·name="l00065"></a><span·class="lineno">···65</span>····d_instance·=·<span·class="keyword">this</span>;</div> 
114 <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> 
115 <div·class="line"><a·id="l00067"·name="l00067"></a><span·class="lineno">···67</span><span·class="preprocessor">#ifdef·SILLY_HAVE_JPG</span></div> 
116 <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> 
117 <div·class="line"><a·id="l00069"·name="l00069"></a><span·class="lineno">···69</span><span·class="preprocessor">#endif</span></div> 
118 <div·class="line"><a·id="l00070"·name="l00070"></a><span·class="lineno">···70</span><span·class="preprocessor">#ifdef·SILLY_HAVE_PNG</span></div> 
119 <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> 
120 <div·class="line"><a·id="l00072"·name="l00072"></a><span·class="lineno">···72</span><span·class="preprocessor">#endif·</span></div> 
121 <div·class="line"><a·id="l00073"·name="l00073"></a><span·class="lineno">···73</span><span·class="comment">//·Add·other·builtins·loader·here·</span></div> 
122 <div·class="line"><a·id="l00074"·name="l00074"></a><span·class="lineno">···74</span>·</div>96 <div·class="line"><a·id="l00048"·name="l00048"></a><span·class="lineno">···48</span>·</div>
123 <div·class="line"><a·id="l00075"·name="l00075"></a><span·class="lineno">···75</span>}</div> 
124 <div·class="line"><a·id="l00076"·name="l00076"></a><span·class="lineno">···76</span>·</div> 
125 <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> 
126 <div·class="line"><a·id="l00078"·name="l00078"></a><span·class="lineno">···78</span>{</div> 
127 <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> 
128 <div·class="line"><a·id="l00080"·name="l00080"></a><span·class="lineno">···80</span>····{</div> 
129 <div·class="line"><a·id="l00081"·name="l00081"></a><span·class="lineno">···81</span>········<span·class="keyword">delete</span>·(*iter);</div> 
130 <div·class="line"><a·id="l00082"·name="l00082"></a><span·class="lineno">···82</span>····}</div> 
131 <div·class="line"><a·id="l00083"·name="l00083"></a><span·class="lineno">···83</span>····d_instance·=·0;</div> 
132 <div·class="line"><a·id="l00084"·name="l00084"></a><span·class="lineno">···84</span>}</div> 
133 <div·class="line"><a·id="l00085"·name="l00085"></a><span·class="lineno">···85</span>·</div> 
134 <div·class="line"><a·id="l00086"·name="l00086"></a><span·class="lineno">···86</span>·</div> 
135 <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> 
136 <div·class="line"><a·id="l00088"·name="l00088"></a><span·class="lineno">···88</span>{</div> 
137 <div·class="line"><a·id="l00089"·name="l00089"></a><span·class="lineno">···89</span>····<span·class="keywordflow">if</span>·(ImageLoaderManager::getSingletonPtr()·==·0)</div> 
138 <div·class="line"><a·id="l00090"·name="l00090"></a><span·class="lineno">···90</span>····{</div> 
139 <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> 
140 <div·class="line"><a·id="l00092"·name="l00092"></a><span·class="lineno">···92</span>········{</div> 
141 <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> 
142 <div·class="line"><a·id="l00094"·name="l00094"></a><span·class="lineno">···94</span>········}</div> 
143 <div·class="line"><a·id="l00095"·name="l00095"></a><span·class="lineno">···95</span>····}</div> 
144 <div·class="line"><a·id="l00096"·name="l00096"></a><span·class="lineno">···96</span>····++silly_init_counter;</div> 
145 <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> 
146 <div·class="line"><a·id="l00098"·name="l00098"></a><span·class="lineno">···98</span>}</div> 
147 <div·class="line"><a·id="l00099"·name="l00099"></a><span·class="lineno">···99</span>·</div>97 <div·class="line"><a·id="l00049"·name="l00049"></a><span·class="lineno">···49</span>·</div>
148 <div·class="line"><a·id="l00100"·name="l00100"></a><span·class="lineno"><a·class="line"·href="a00129.html#a33a519b8226fd733e2ef294f894411f9">··100</a></span><span·class="keywordtype">void</span>·<a·class="code·hl_function"·href="a00129.html#a33a519b8226fd733e2ef294f894411f9">SILLYCleanup</a>()</div> 
149 <div·class="line"><a·id="l00101"·name="l00101"></a><span·class="lineno">··101</span>{</div> 
150 <div·class="line"><a·id="l00102"·name="l00102"></a><span·class="lineno">··102</span>····<span·class="keywordflow">if</span>·(--silly_init_counter·==·0)</div> 
151 <div·class="line"><a·id="l00103"·name="l00103"></a><span·class="lineno">··103</span>····{</div> 
152 <div·class="line"><a·id="l00104"·name="l00104"></a><span·class="lineno">··104</span>········<span·class="keyword">delete</span>·ImageLoaderManager::getSingletonPtr();</div> 
153 <div·class="line"><a·id="l00105"·name="l00105"></a><span·class="lineno">··105</span>····}</div>98 <div·class="line"><a·id="l00050"·name="l00050"></a><span·class="lineno">···50</span>·</div>
154 <div·class="line"><a·id="l00106"·name="l00106"></a><span·class="lineno">··106</span>}</div> 
155 <div·class="line"><a·id="l00107"·name="l00107"></a><span·class="lineno">··107</span>·</div> 
156 <div·class="line"><a·id="l00108"·name="l00108"></a><span·class="lineno">··108</span>}·<span·class="comment">//·End·of·SILLY·namespace·section·</span></div> 
157 <div·class="line"><a·id="l00109"·name="l00109"></a><span·class="lineno">··109</span>·</div> 
158 <div·class="line"><a·id="l00110"·name="l00110"></a><span·class="lineno">··110</span>·</div> 
159 <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="a00020_source.html#l00045">SILLYJPGImageContext.cpp:46</a></div></div>99 <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="a00005_source.html#l00045">SILLYJPGImageContext.cpp:46</a></div></div>
Max diff block lines reached; 271/22033 bytes (1.23%) of diff not shown.
4.17 KB
html2text {}
    
Offset 4, 21 lines modifiedOffset 4, 21 lines modified
  
4 Simple·Image·Loading·LibrarY 0.1.04 Simple·Image·Loading·LibrarY 0.1.0
  
5 ····*·build5 ····*·build
6 ····*·reproducible-path6 ····*·reproducible-path
7 ····*·silly-0.1.07 ····*·silly-0.1.0
8 ····*·src8 ····*·src
9 SILLYImageLoaderManager.cpp9 SILLYDataSource.cpp
10 ·1/***********************************************************************10 ·1/***********************************************************************
11 ·2·filename:·ImageLoaderManager.cpp11 ·2·filename:·SILLYDataSource.cpp
12 ·3·created:·10·Jun·200612 ·3·created:·10·Jun·2006
13 ·4·author:·Olivier·Delannoy13 ·4·author:·Olivier·Delannoy
14 ·514 ·5
15 ·6·purpose:·Manage·the·list·of·existing·ImageLoader15 ·6·purpose:·SILLYDataSource·definition·for·the·SILLY·library
16 ·7*************************************************************************/16 ·7*************************************************************************/
17 ·8/***************************************************************************17 ·8/***************************************************************************
18 ·9·*·Copyright·(C)·2004·-·2006·Paul·D·Turner·&·The·CEGUI·Development·Team18 ·9·*·Copyright·(C)·2004·-·2006·Paul·D·Turner·&·The·CEGUI·Development·Team
19 ·10·*19 ·10·*
20 ·11·*·Permission·is·hereby·granted,·free·of·charge,·to·any·person·obtaining20 ·11·*·Permission·is·hereby·granted,·free·of·charge,·to·any·person·obtaining
21 ·12·*·a·copy·of·this·software·and·associated·documentation·files·(the21 ·12·*·a·copy·of·this·software·and·associated·documentation·files·(the
22 ·13·*·"Software"),·to·deal·in·the·Software·without·restriction,·including22 ·13·*·"Software"),·to·deal·in·the·Software·without·restriction,·including
Offset 39, 123 lines modifiedOffset 39, 30 lines modified
39 ·28·*·OTHER·DEALINGS·IN·THE·SOFTWARE.39 ·28·*·OTHER·DEALINGS·IN·THE·SOFTWARE.
40 ·2940 ·29
41 ***************************************************************************/41 ***************************************************************************/
42 ·30#ifdef·HAVE_CONFIG_H42 ·30#ifdef·HAVE_CONFIG_H
43 ·31#include·<config.h>43 ·31#include·<config.h>
44 ·32#endif44 ·32#endif
45 ·3345 ·33
46 ·34#include·"SILLYImageLoaderManager.h"46 ·34#include·"SILLYDataSource.h"
47 ·3547 ·35
48 ·36#ifndef·SILLY_OPT_INLINE48 ·36#ifndef·SILLY_OPT_INLINE
49 ·37#define·inline49 ·37#define·inline
50 ·38#include·"SILLYImageLoaderManager.icpp"50 ·38#include·"SILLYDataSource.icpp"
51 ·39#undef·inline51 ·39#undef·inline
52 ·40#endif52 ·40#endif
53 ·41#include·"SILLYImageLoader.h" 
54 ·42#include·"loaders/SILLYTGAImageLoader.h" 
55 ·43 
56 ·44#ifdef·SILLY_HAVE_JPG 
57 ·45#include·"loaders/SILLYJPGImageLoader.h" 
58 ·46#endif53 ·41
 54 ·42//·Start·of·SILLY·namespace·section
 55 ·43namespace·SILLY
 56 ·44{
 57 ·45
 58 ·46}·//·End·of·SILLY·namespace·section
59 ·4759 ·47
 60 ·48
 61 ·49
 62 ·50
60 ·48#ifdef·SILLY_HAVE_PNG 
61 ·49#include·"loaders/SILLYPNGImageLoader.h" 
62 ·50#endif 
63 ·51 
64 ·52//·Start·of·SILLY·namespace·section 
65 ·53namespace·SILLY 
66 ·54{ 
67 ·55 
68 ·56//·we·need·to·do·"reference·counting"·for·init/exit·to·allow·silly·to·be 
69 used 
70 ·57//·from·inside·multiple·independent·libraries·simultaneously. 
71 ·58static·size_t·silly_init_counter·=·0; 
72 ·59 
73 ·60ImageLoaderManager*·ImageLoaderManager::d_instance·=·0; 
74 ·61 
75 62ImageLoaderManager::ImageLoaderManager() 
76 ·63{ 
77 ·64·assert(d_instance·==·0); 
78 ·65·d_instance·=·this; 
79 ·66·add(new·TGAImageLoader); 
80 ·67#ifdef·SILLY_HAVE_JPG 
81 ·68·add(new·JPGImageLoader); 
82 ·69#endif 
83 ·70#ifdef·SILLY_HAVE_PNG 
84 ·71·add(new·PNGImageLoader); 
85 ·72#endif 
86 ·73//·Add·other·builtins·loader·here 
87 ·74 
88 ·75} 
89 ·76 
90 77ImageLoaderManager::~ImageLoaderManager() 
91 ·78{ 
92 ·79·for(ImageLoaderList::iterator·iter·=·d_loaders.begin()·;·iter·!= 
93 d_loaders.end()·;·++iter) 
94 ·80·{ 
95 ·81·delete·(*iter); 
96 ·82·} 
97 ·83·d_instance·=·0; 
98 ·84} 
99 ·85 
100 ·86 
101 87bool·SILLYInit() 
102 ·88{ 
103 ·89·if·(ImageLoaderManager::getSingletonPtr()·==·0) 
104 ·90·{ 
105 ·91·if·(!new·ImageLoaderManager) 
106 ·92·{ 
107 ·93·return·false; 
108 ·94·} 
109 ·95·} 
110 ·96·++silly_init_counter; 
111 ·97·return·true; 
112 ·98} 
113 ·99 
114 100void·SILLYCleanup() 
115 ·101{ 
116 ·102·if·(--silly_init_counter·==·0) 
117 ·103·{ 
118 ·104·delete·ImageLoaderManager::getSingletonPtr(); 
119 ·105·} 
120 ·106} 
121 ·107 
122 ·108}·//·End·of·SILLY·namespace·section 
123 ·109 
124 ·110 
125 SILLY63 SILLY
126 Simple·Image·Loading·LibrarY·namespace.64 Simple·Image·Loading·LibrarY·namespace.
127 Definition:·SILLYJPGImageContext.cpp:4665 Definition:·SILLYJPGImageContext.cpp:46
128 SILLY::SILLYCleanup 
129 void·SILLYCleanup() 
130 Cleanup·SILLY·library·internal. 
131 Definition:·SILLYImageLoaderManager.cpp:100 
132 SILLY::SILLYInit 
133 bool·SILLYInit() 
134 Initialize·the·SILLY·Library. 
135 Definition:·SILLYImageLoaderManager.cpp:87 
Max diff block lines reached; 116/4249 bytes (2.73%) of diff not shown.
32.6 KB
./usr/share/doc/libsilly-doc/html/a00041_source.html
    
Offset 1, 15 lines modifiedOffset 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">2 <html·xmlns="http://www.w3.org/1999/xhtml">
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.4"/>6 <meta·name="generator"·content="Doxygen·1.9.4"/>
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.icpp·Source·File</title>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 39, 101 lines modifiedOffset 39, 110 lines modified
39 <div·id="main-nav"></div>39 <div·id="main-nav"></div>
40 <div·id="nav-path"·class="navpath">40 <div·id="nav-path"·class="navpath">
41 ··<ul>41 ··<ul>
42 <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>42 <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>
43 </div>43 </div>
44 </div><!--·top·-->44 </div><!--·top·-->
45 <div·class="header">45 <div·class="header">
46 ··<div·class="headertitle"><div·class="title">SILLYImage.icpp</div></div>46 ··<div·class="headertitle"><div·class="title">SILLYImageLoaderManager.h</div></div>
47 </div><!--header-->47 </div><!--header-->
48 <div·class="contents">48 <div·class="contents">
49 <div·class="fragment"><div·class="line"><a·id="l00001"·name="l00001"></a><span·class="lineno">····1</span>/***********************************************************************</div>49 <div·class="fragment"><div·class="line"><a·id="l00001"·name="l00001"></a><span·class="lineno">····1</span><span·class="comment">/***********************************************************************</span></div>
50 <div·class="line"><a·id="l00002"·name="l00002"></a><span·class="lineno">····2</span>····filename:···SILLYImage.icpp·</div>50 <div·class="line"><a·id="l00002"·name="l00002"></a><span·class="lineno">····2</span><span·class="comment">····filename:···ImageLoaderManager.h</span></div>
51 <div·class="line"><a·id="l00003"·name="l00003"></a><span·class="lineno">····3</span>····created:····10·Jun·2006</div>51 <div·class="line"><a·id="l00003"·name="l00003"></a><span·class="lineno">····3</span><span·class="comment">····created:····10·Jun·2006</span></div>
52 <div·class="line"><a·id="l00004"·name="l00004"></a><span·class="lineno">····4</span>····author:·····Olivier·Delannoy</div>52 <div·class="line"><a·id="l00004"·name="l00004"></a><span·class="lineno">····4</span><span·class="comment">····author:·····Olivier·Delannoy</span></div>
53 <div·class="line"><a·id="l00005"·name="l00005"></a><span·class="lineno">····5</span>·</div>53 <div·class="line"><a·id="l00005"·name="l00005"></a><span·class="lineno">····5</span><span·class="comment"></span>·</div>
54 <div·class="line"><a·id="l00006"·name="l00006"></a><span·class="lineno">····6</span>····purpose:····Inline·definition·of·the·image·class···</div>54 <div·class="line"><a·id="l00006"·name="l00006"></a><span·class="lineno">····6</span><span·class="comment">····purpose:····Manage·all·available·loader</span></div>
55 <div·class="line"><a·id="l00007"·name="l00007"></a><span·class="lineno">····7</span>*************************************************************************/</div>55 <div·class="line"><a·id="l00007"·name="l00007"></a><span·class="lineno">····7</span><span·class="comment">*************************************************************************/</span></div>
56 <div·class="line"><a·id="l00008"·name="l00008"></a><span·class="lineno">····8</span>/***************************************************************************</div>56 <div·class="line"><a·id="l00008"·name="l00008"></a><span·class="lineno">····8</span><span·class="comment">/***************************************************************************</span></div>
57 <div·class="line"><a·id="l00009"·name="l00009"></a><span·class="lineno">····9</span>·*···Copyright·(C)·2004·-·2006·Paul·D·Turner·&amp;·The·CEGUI·Development·Team</div>57 <div·class="line"><a·id="l00009"·name="l00009"></a><span·class="lineno">····9</span><span·class="comment">·*···Copyright·(C)·2004·-·2006·Paul·D·Turner·&amp;·The·CEGUI·Development·Team</span></div>
58 <div·class="line"><a·id="l00010"·name="l00010"></a><span·class="lineno">···10</span>·*</div>58 <div·class="line"><a·id="l00010"·name="l00010"></a><span·class="lineno">···10</span><span·class="comment">·*</span></div>
59 <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>59 <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>
60 <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>60 <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>
61 <div·class="line"><a·id="l00013"·name="l00013"></a><span·class="lineno">···13</span>·*···&quot;Software&quot;),·to·deal·in·the·Software·without·restriction,·including</div>61 <div·class="line"><a·id="l00013"·name="l00013"></a><span·class="lineno">···13</span><span·class="comment">·*···&quot;Software&quot;),·to·deal·in·the·Software·without·restriction,·including</span></div>
62 <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>62 <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>
63 <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>63 <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>
64 <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>64 <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>
65 <div·class="line"><a·id="l00017"·name="l00017"></a><span·class="lineno">···17</span>·*···the·following·conditions:</div>65 <div·class="line"><a·id="l00017"·name="l00017"></a><span·class="lineno">···17</span><span·class="comment">·*···the·following·conditions:</span></div>
66 <div·class="line"><a·id="l00018"·name="l00018"></a><span·class="lineno">···18</span>·*</div>66 <div·class="line"><a·id="l00018"·name="l00018"></a><span·class="lineno">···18</span><span·class="comment">·*</span></div>
67 <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>67 <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>
68 <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>68 <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>
69 <div·class="line"><a·id="l00021"·name="l00021"></a><span·class="lineno">···21</span>·*</div>69 <div·class="line"><a·id="l00021"·name="l00021"></a><span·class="lineno">···21</span><span·class="comment">·*</span></div>
70 <div·class="line"><a·id="l00022"·name="l00022"></a><span·class="lineno">···22</span>·*···THE·SOFTWARE·IS·PROVIDED·&quot;AS·IS&quot;,·WITHOUT·WARRANTY·OF·ANY·KIND,</div>70 <div·class="line"><a·id="l00022"·name="l00022"></a><span·class="lineno">···22</span><span·class="comment">·*···THE·SOFTWARE·IS·PROVIDED·&quot;AS·IS&quot;,·WITHOUT·WARRANTY·OF·ANY·KIND,</span></div>
71 <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>71 <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>
72 <div·class="line"><a·id="l00024"·name="l00024"></a><span·class="lineno">···24</span>·*···MERCHANTABILITY,·FITNESS·FOR·A·PARTICULAR·PURPOSE·AND·NONINFRINGEMENT.</div>72 <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>
73 <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>73 <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>
74 <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>74 <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>
75 <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>75 <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>
76 <div·class="line"><a·id="l00028"·name="l00028"></a><span·class="lineno">···28</span>·*···OTHER·DEALINGS·IN·THE·SOFTWARE.</div>76 <div·class="line"><a·id="l00028"·name="l00028"></a><span·class="lineno">···28</span><span·class="comment">·*···OTHER·DEALINGS·IN·THE·SOFTWARE.</span></div>
77 <div·class="line"><a·id="l00029"·name="l00029"></a><span·class="lineno">···29</span>·***************************************************************************/</div>77 <div·class="line"><a·id="l00029"·name="l00029"></a><span·class="lineno">···29</span><span·class="comment">·***************************************************************************/</span></div>
78 <div·class="line"><a·id="l00030"·name="l00030"></a><span·class="lineno">···30</span>·</div>78 <div·class="line"><a·id="l00030"·name="l00030"></a><span·class="lineno">···30</span><span·class="preprocessor">#ifndef·_SILLYImageLoaderManager_h_·</span></div>
 79 <div·class="line"><a·id="l00031"·name="l00031"></a><span·class="lineno">···31</span><span·class="preprocessor">#define·_SILLYImageLoaderManager_h_</span></div>
 80 <div·class="line"><a·id="l00032"·name="l00032"></a><span·class="lineno">···32</span><span·class="preprocessor">#include·&quot;SILLYBase.h&quot;</span>·</div>
 81 <div·class="line"><a·id="l00033"·name="l00033"></a><span·class="lineno">···33</span><span·class="preprocessor">#include·&lt;vector&gt;</span>·</div>
79 <div·class="line"><a·id="l00031"·name="l00031"></a><span·class="lineno">···31</span>//·Start·of·section·namespace·SILLY</div>82 <div·class="line"><a·id="l00034"·name="l00034"></a><span·class="lineno">···34</span><span·class="comment">//·Start·of·section·namespace·SILLY·</span></div>
 83 <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>
80 <div·class="line"><a·id="l00032"·name="l00032"></a><span·class="lineno">···32</span>namespace·SILLY</div> 
81 <div·class="line"><a·id="l00033"·name="l00033"></a><span·class="lineno">···33</span>{</div> 
82 <div·class="line"><a·id="l00034"·name="l00034"></a><span·class="lineno">···34</span>·</div> 
83 <div·class="line"><a·id="l00035"·name="l00035"></a><span·class="lineno">···35</span>inline·bool·Image::isValid()·const</div> 
84 <div·class="line"><a·id="l00036"·name="l00036"></a><span·class="lineno">···36</span>{</div>84 <div·class="line"><a·id="l00036"·name="l00036"></a><span·class="lineno">···36</span>{</div>
 85 <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>
 86 <div·class="line"><a·id="l00042"·name="l00042"></a><span·class="lineno"><a·class="line"·href="a00129.html#a9f85557d059f38f7bb66a898472d394e">···42</a></span><span·class="comment"></span><span·class="keyword">typedef</span>·std::vector&lt;ImageLoader*&gt;·<a·class="code·hl_typedef"·href="a00129.html#a9f85557d059f38f7bb66a898472d394e">ImageLoaderList</a>;</div>
85 <div·class="line"><a·id="l00037"·name="l00037"></a><span·class="lineno">···37</span>····return·d_imageContext·&amp;&amp;·d_pixels;</div> 
86 <div·class="line"><a·id="l00038"·name="l00038"></a><span·class="lineno">···38</span>}</div> 
87 <div·class="line"><a·id="l00039"·name="l00039"></a><span·class="lineno">···39</span>·</div> 
88 <div·class="line"><a·id="l00040"·name="l00040"></a><span·class="lineno">···40</span>inline·size_t·Image::getWidth()·const</div> 
89 <div·class="line"><a·id="l00041"·name="l00041"></a><span·class="lineno">···41</span>{</div> 
90 <div·class="line"><a·id="l00042"·name="l00042"></a><span·class="lineno">···42</span>····return·d_imageContext-&gt;getWidth();</div> 
91 <div·class="line"><a·id="l00043"·name="l00043"></a><span·class="lineno">···43</span>}</div>87 <div·class="line"><a·id="l00043"·name="l00043"></a><span·class="lineno">···43</span>·</div>
 88 <div·class="line"><a·id="l00044"·name="l00044"></a><span·class="lineno">···44</span><span·class="preprocessor">#if·defined(_MSC_VER)</span></div>
92 <div·class="line"><a·id="l00044"·name="l00044"></a><span·class="lineno">···44</span>·</div>89 <div·class="line"><a·id="l00045"·name="l00045"></a><span·class="lineno">···45</span>·</div>
93 <div·class="line"><a·id="l00045"·name="l00045"></a><span·class="lineno">···45</span>inline·size_t·Image::getHeight()·const</div>90 <div·class="line"><a·id="l00046"·name="l00046"></a><span·class="lineno">···46</span><span·class="preprocessor">#···pragma·warning(push)</span></div>
94 <div·class="line"><a·id="l00046"·name="l00046"></a><span·class="lineno">···46</span>{</div>91 <div·class="line"><a·id="l00047"·name="l00047"></a><span·class="lineno">···47</span>·</div>
 92 <div·class="line"><a·id="l00048"·name="l00048"></a><span·class="lineno">···48</span><span·class="preprocessor">#···pragma·warning(disable·:·4251)</span></div>
95 <div·class="line"><a·id="l00047"·name="l00047"></a><span·class="lineno">···47</span>····return·d_imageContext-&gt;getHeight();</div> 
96 <div·class="line"><a·id="l00048"·name="l00048"></a><span·class="lineno">···48</span>}</div> 
97 <div·class="line"><a·id="l00049"·name="l00049"></a><span·class="lineno">···49</span>·</div>93 <div·class="line"><a·id="l00049"·name="l00049"></a><span·class="lineno">···49</span>·</div>
98 <div·class="line"><a·id="l00050"·name="l00050"></a><span·class="lineno">···50</span>inline·PixelFormat·Image::getSourcePixelFormat()·const</div>94 <div·class="line"><a·id="l00050"·name="l00050"></a><span·class="lineno">···50</span><span·class="preprocessor">#endif</span></div>
99 <div·class="line"><a·id="l00051"·name="l00051"></a><span·class="lineno">···51</span>{</div>95 <div·class="line"><a·id="l00051"·name="l00051"></a><span·class="lineno">···51</span>·</div>
 96 <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>
100 <div·class="line"><a·id="l00052"·name="l00052"></a><span·class="lineno">···52</span>····return·d_pfSource;</div> 
101 <div·class="line"><a·id="l00053"·name="l00053"></a><span·class="lineno">···53</span>}</div> 
102 <div·class="line"><a·id="l00054"·name="l00054"></a><span·class="lineno">···54</span>·</div> 
103 <div·class="line"><a·id="l00055"·name="l00055"></a><span·class="lineno">···55</span>inline·PixelFormat·Image::getPixelFormat()·const</div> 
104 <div·class="line"><a·id="l00056"·name="l00056"></a><span·class="lineno">···56</span>{</div>97 <div·class="line"><a·id="l00057"·name="l00057"></a><span·class="lineno">···57</span>{</div>
105 <div·class="line"><a·id="l00057"·name="l00057"></a><span·class="lineno">···57</span>····return·d_imageContext-&gt;getPixelFormat();</div> 
106 <div·class="line"><a·id="l00058"·name="l00058"></a><span·class="lineno">···58</span>}</div>98 <div·class="line"><a·id="l00058"·name="l00058"></a><span·class="lineno">···58</span>····</div>
 99 <div·class="line"><a·id="l00059"·name="l00059"></a><span·class="lineno">···59</span><span·class="keyword">public</span>:</div>
 100 <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>
 101 <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>
 102 <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>
 103 <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>
 104 <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>
 105 <div·class="line"><a·id="l00087"·name="l00087"></a><span·class="lineno">···87</span>····</div>
 106 <div·class="line"><a·id="l00088"·name="l00088"></a><span·class="lineno">···88</span><span·class="keyword">private</span>:</div>
 107 <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>
107 <div·class="line"><a·id="l00059"·name="l00059"></a><span·class="lineno">···59</span>·</div>108 <div·class="line"><a·id="l00090"·name="l00090"></a><span·class="lineno">···90</span>·</div>
108 <div·class="line"><a·id="l00060"·name="l00060"></a><span·class="lineno">···60</span>inline·const·byte*·Image::getPixelsDataPtr()·const</div> 
109 <div·class="line"><a·id="l00061"·name="l00061"></a><span·class="lineno">···61</span>{</div>109 <div·class="line"><a·id="l00091"·name="l00091"></a><span·class="lineno">···91</span><span·class="keyword">public</span>:</div>
110 <div·class="line"><a·id="l00062"·name="l00062"></a><span·class="lineno">···62</span>····return·d_pixels;</div> 
111 <div·class="line"><a·id="l00063"·name="l00063"></a><span·class="lineno">···63</span>}</div>110 <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>
 111 <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>&amp;·getSingleton();</div>
112 <div·class="line"><a·id="l00064"·name="l00064"></a><span·class="lineno">···64</span>·</div>112 <div·class="line"><a·id="l00094"·name="l00094"></a><span·class="lineno">···94</span>·</div>
113 <div·class="line"><a·id="l00065"·name="l00065"></a><span·class="lineno">···65</span>inline·size_t·Image::getPixelsDataSize()·const</div> 
114 <div·class="line"><a·id="l00066"·name="l00066"></a><span·class="lineno">···66</span>{</div>113 <div·class="line"><a·id="l00095"·name="l00095"></a><span·class="lineno">···95</span><span·class="keyword">private</span>:</div>
 114 <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>
115 <div·class="line"><a·id="l00067"·name="l00067"></a><span·class="lineno">···67</span>····return·getWidth()·*·getHeight()·*·d_bpp;</div> 
116 <div·class="line"><a·id="l00068"·name="l00068"></a><span·class="lineno">···68</span>}</div> 
117 <div·class="line"><a·id="l00069"·name="l00069"></a><span·class="lineno">···69</span>·</div>115 <div·class="line"><a·id="l00097"·name="l00097"></a><span·class="lineno">···97</span>····</div>
118 <div·class="line"><a·id="l00070"·name="l00070"></a><span·class="lineno">···70</span>inline·Image::~Image()</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>····delete·[]·d_pixels;</div> 
121 <div·class="line"><a·id="l00073"·name="l00073"></a><span·class="lineno">···73</span>····if·(d_imageLoader)</div> 
122 <div·class="line"><a·id="l00074"·name="l00074"></a><span·class="lineno">···74</span>········d_imageLoader-&gt;destroyContext(d_imageContext);</div> 
123 <div·class="line"><a·id="l00075"·name="l00075"></a><span·class="lineno">···75</span>}</div> 
124 <div·class="line"><a·id="l00076"·name="l00076"></a><span·class="lineno">···76</span>inline·const·char*·Image::getLoaderIdentifierString()·const</div> 
125 <div·class="line"><a·id="l00077"·name="l00077"></a><span·class="lineno">···77</span>{</div> 
126 <div·class="line"><a·id="l00078"·name="l00078"></a><span·class="lineno">···78</span>····if·(d_imageLoader)</div>116 <div·class="line"><a·id="l00098"·name="l00098"></a><span·class="lineno">···98</span>··<span·class="comment">//·Disabled·operations</span></div>
127 <div·class="line"><a·id="l00079"·name="l00079"></a><span·class="lineno">···79</span>········return·d_imageLoader-&gt;getIdentifierString();</div> 
128 <div·class="line"><a·id="l00080"·name="l00080"></a><span·class="lineno">···80</span>····return·0;</div>117 <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>&amp;);</div>
 118 <div·class="line"><a·id="l00100"·name="l00100"></a><span·class="lineno">··100</span>··<a·class="code·hl_class"·href="a00989.html">ImageLoaderManager</a>&amp;·operator=(<a·class="code·hl_class"·href="a00989.html">ImageLoaderManager</a>&amp;);</div>
Max diff block lines reached; 271/28486 bytes (0.95%) of diff not shown.
4.73 KB
html2text {}
    
Offset 4, 21 lines modifiedOffset 4, 21 lines modified
  
4 Simple·Image·Loading·LibrarY 0.1.04 Simple·Image·Loading·LibrarY 0.1.0
  
5 ····*·build5 ····*·build
6 ····*·reproducible-path6 ····*·reproducible-path
7 ····*·silly-0.1.07 ····*·silly-0.1.0
8 ····*·include8 ····*·include
9 SILLYImage.icpp9 SILLYImageLoaderManager.h
10 ·1/***********************************************************************10 ·1/***********************************************************************
11 ·2·filename:·SILLYImage.icpp11 ·2·filename:·ImageLoaderManager.h
12 ·3·created:·10·Jun·200612 ·3·created:·10·Jun·2006
13 ·4·author:·Olivier·Delannoy13 ·4·author:·Olivier·Delannoy
14 ·514 ·5
15 ·6·purpose:·Inline·definition·of·the·image·class15 ·6·purpose:·Manage·all·available·loader
16 ·7*************************************************************************/16 ·7*************************************************************************/
17 ·8/***************************************************************************17 ·8/***************************************************************************
18 ·9·*·Copyright·(C)·2004·-·2006·Paul·D·Turner·&·The·CEGUI·Development·Team18 ·9·*·Copyright·(C)·2004·-·2006·Paul·D·Turner·&·The·CEGUI·Development·Team
19 ·10·*19 ·10·*
20 ·11·*·Permission·is·hereby·granted,·free·of·charge,·to·any·person·obtaining20 ·11·*·Permission·is·hereby·granted,·free·of·charge,·to·any·person·obtaining
21 ·12·*·a·copy·of·this·software·and·associated·documentation·files·(the21 ·12·*·a·copy·of·this·software·and·associated·documentation·files·(the
22 ·13·*·"Software"),·to·deal·in·the·Software·without·restriction,·including22 ·13·*·"Software"),·to·deal·in·the·Software·without·restriction,·including
Offset 35, 65 lines modifiedOffset 35, 89 lines modified
35 ·24·*·MERCHANTABILITY,·FITNESS·FOR·A·PARTICULAR·PURPOSE·AND·NONINFRINGEMENT.35 ·24·*·MERCHANTABILITY,·FITNESS·FOR·A·PARTICULAR·PURPOSE·AND·NONINFRINGEMENT.
36 ·25·*·IN·NO·EVENT·SHALL·THE·AUTHORS·BE·LIABLE·FOR·ANY·CLAIM,·DAMAGES·OR36 ·25·*·IN·NO·EVENT·SHALL·THE·AUTHORS·BE·LIABLE·FOR·ANY·CLAIM,·DAMAGES·OR
37 ·26·*·OTHER·LIABILITY,·WHETHER·IN·AN·ACTION·OF·CONTRACT,·TORT·OR·OTHERWISE,37 ·26·*·OTHER·LIABILITY,·WHETHER·IN·AN·ACTION·OF·CONTRACT,·TORT·OR·OTHERWISE,
38 ·27·*·ARISING·FROM,·OUT·OF·OR·IN·CONNECTION·WITH·THE·SOFTWARE·OR·THE·USE·OR38 ·27·*·ARISING·FROM,·OUT·OF·OR·IN·CONNECTION·WITH·THE·SOFTWARE·OR·THE·USE·OR
39 ·28·*·OTHER·DEALINGS·IN·THE·SOFTWARE.39 ·28·*·OTHER·DEALINGS·IN·THE·SOFTWARE.
40 ·2940 ·29
41 ***************************************************************************/41 ***************************************************************************/
42 ·3042 ·30#ifndef·_SILLYImageLoaderManager_h_
 43 ·31#define·_SILLYImageLoaderManager_h_
 44 ·32#include·"SILLYBase.h"
 45 ·33#include·<vector>
43 ·31//·Start·of·section·namespace·SILLY46 ·34//·Start·of·section·namespace·SILLY
44 ·32namespace·SILLY47 ·35namespace·SILLY
45 ·33{ 
46 ·34 
47 ·35inline·bool·Image::isValid()·const 
48 ·36{48 ·36{
 49 ·37class·ImageLoader;·//·Forward·declaration
 50 42typedef·std::vector<ImageLoader*>·ImageLoaderList;
49 ·37·return·d_imageContext·&&·d_pixels; 
50 ·38} 
51 ·39 
52 ·40inline·size_t·Image::getWidth()·const 
53 ·41{ 
54 ·42·return·d_imageContext->getWidth(); 
55 ·43}51 ·43
56 ·44 
57 ·45inline·size_t·Image::getHeight()·const 
58 ·46{ 
59 ·47·return·d_imageContext->getHeight(); 
60 ·48}52 ·44#if·defined(_MSC_VER)
 53 ·45
 54 ·46#·pragma·warning(push)
 55 ·47
 56 ·48#·pragma·warning(disable·:·4251)
61 ·4957 ·49
62 ·50inline·PixelFormat·Image::getSourcePixelFormat()·const58 ·50#endif
63 ·51{59 ·51
 60 56class·SILLY_EXPORT·ImageLoaderManager
64 ·52·return·d_pfSource; 
65 ·53} 
66 ·54 
67 ·55inline·PixelFormat·Image::getPixelFormat()·const 
68 ·56{61 ·57{
69 ·57·return·d_imageContext->getPixelFormat(); 
70 ·58}62 ·58
71 ·59 
72 ·60inline·const·byte*·Image::getPixelsDataPtr()·const 
73 ·61{ 
74 ·62·return·d_pixels; 
75 ·63} 
76 ·64 
77 ·65inline·size_t·Image::getPixelsDataSize()·const 
78 ·66{ 
79 ·67·return·getWidth()·*·getHeight()·*·d_bpp; 
80 ·68} 
81 ·69 
82 ·70inline·Image::~Image() 
83 ·71{ 
84 ·72·delete·[]·d_pixels; 
85 ·73·if·(d_imageLoader) 
86 ·74·d_imageLoader->destroyContext(d_imageContext); 
87 ·75} 
88 ·76inline·const·char*·Image::getLoaderIdentifierString()·const 
89 ·77{ 
90 ·78·if·(d_imageLoader) 
91 ·79·return·d_imageLoader->getIdentifierString(); 
92 ·80·return·0; 
93 ·81} 
94 ·8263 ·59public:
 64 ·64·ImageLoaderManager();
 65 ·69·~ImageLoaderManager();
 66 74·ImageLoaderList::iterator·begin();
 67 79·ImageLoaderList::iterator·end();
 68 86·void·add(ImageLoader*·loader);
 69 ·87
 70 ·88private:
 71 ·89·ImageLoaderList·d_loaders;
 72 ·90
 73 ·91public:
 74 ·92·static·ImageLoaderManager*·getSingletonPtr();
 75 ·93·static·ImageLoaderManager&·getSingleton();
 76 ·94
 77 ·95private:
 78 ·96·static·ImageLoaderManager*·d_instance;
 79 ·97
 80 ·98·//·Disabled·operations
 81 ·99·ImageLoaderManager(ImageLoaderManager&);
 82 ·100·ImageLoaderManager&·operator=(ImageLoaderManager&);
 83 ·101};
 84 ·102
 85 ·103#if·defined(_MSC_VER)
 86 ·104
 87 ·105#·pragma·warning(pop)
 88 ·106
 89 ·107#endif
 90 ·108
95 ·83}·//·End·of·section·namespace·SILLY91 ·109}·//·End·of·section·namespace·SILLY
96 ·8492 ·110
 93 ·111//·Inclue·inline·function·when·needed
 94 ·112#ifdef·SILLY_OPT_INLINE
 95 ·113#include·"SILLYImageLoaderManager.icpp"
 96 ·114#endif
 97 ·115
 98 ·116#endif·//·end·of·guard·_SILLYImageLoaderManager_h_
Max diff block lines reached; 116/4816 bytes (2.41%) of diff not shown.
30.3 KB
./usr/share/doc/libsilly-doc/html/a00044_source.html
    
Offset 1, 15 lines modifiedOffset 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">2 <html·xmlns="http://www.w3.org/1999/xhtml">
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.4"/>6 <meta·name="generator"·content="Doxygen·1.9.4"/>
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/SILLYImageLoaderManager.h·Source·File</title>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 39, 110 lines modifiedOffset 39, 56 lines modified
39 <div·id="main-nav"></div>39 <div·id="main-nav"></div>
40 <div·id="nav-path"·class="navpath">40 <div·id="nav-path"·class="navpath">
41 ··<ul>41 ··<ul>
42 <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>42 <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>
43 </div>43 </div>
44 </div><!--·top·-->44 </div><!--·top·-->
45 <div·class="header">45 <div·class="header">
46 ··<div·class="headertitle"><div·class="title">SILLYImageLoaderManager.h</div></div>46 ··<div·class="headertitle"><div·class="title">SILLYOptions.h</div></div>
47 </div><!--header-->47 </div><!--header-->
48 <div·class="contents">48 <div·class="contents">
 49 <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>
49 <div·class="fragment"><div·class="line"><a·id="l00001"·name="l00001"></a><span·class="lineno">····1</span><span·class="comment">/***********************************************************************</span></div>50 <div·class="line"><a·id="l00002"·name="l00002"></a><span·class="lineno">····2</span><span·class="comment">/***********************************************************************</span></div>
50 <div·class="line"><a·id="l00002"·name="l00002"></a><span·class="lineno">····2</span><span·class="comment">····filename:···ImageLoaderManager.h</span></div>51 <div·class="line"><a·id="l00003"·name="l00003"></a><span·class="lineno">····3</span><span·class="comment">····filename:···SILLYOptions.h.in</span></div>
51 <div·class="line"><a·id="l00003"·name="l00003"></a><span·class="lineno">····3</span><span·class="comment">····created:····10·Jun·2006</span></div>52 <div·class="line"><a·id="l00004"·name="l00004"></a><span·class="lineno">····4</span><span·class="comment">····created:····2006/06/10</span></div>
52 <div·class="line"><a·id="l00004"·name="l00004"></a><span·class="lineno">····4</span><span·class="comment">····author:·····Olivier·Delannoy</span></div>53 <div·class="line"><a·id="l00005"·name="l00005"></a><span·class="lineno">····5</span><span·class="comment">····author:·····Olivier·Delannoy</span></div>
53 <div·class="line"><a·id="l00005"·name="l00005"></a><span·class="lineno">····5</span><span·class="comment"></span>·</div>54 <div·class="line"><a·id="l00006"·name="l00006"></a><span·class="lineno">····6</span><span·class="comment"></span>·</div>
54 <div·class="line"><a·id="l00006"·name="l00006"></a><span·class="lineno">····6</span><span·class="comment">····purpose:····Manage·all·available·loader</span></div>55 <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>
55 <div·class="line"><a·id="l00007"·name="l00007"></a><span·class="lineno">····7</span><span·class="comment">*************************************************************************/</span></div> 
56 <div·class="line"><a·id="l00008"·name="l00008"></a><span·class="lineno">····8</span><span·class="comment">/***************************************************************************</span></div>56 <div·class="line"><a·id="l00008"·name="l00008"></a><span·class="lineno">····8</span><span·class="comment">*************************************************************************/</span></div>
 57 <div·class="line"><a·id="l00009"·name="l00009"></a><span·class="lineno">····9</span><span·class="comment">/***************************************************************************</span></div>
57 <div·class="line"><a·id="l00009"·name="l00009"></a><span·class="lineno">····9</span><span·class="comment">·*···Copyright·(C)·2004·-·2006·Paul·D·Turner·&amp;·The·CEGUI·Development·Team</span></div>58 <div·class="line"><a·id="l00010"·name="l00010"></a><span·class="lineno">···10</span><span·class="comment">·*···Copyright·(C)·2004·-·2006·Paul·D·Turner·&amp;·The·CEGUI·Development·Team</span></div>
58 <div·class="line"><a·id="l00010"·name="l00010"></a><span·class="lineno">···10</span><span·class="comment">·*</span></div>59 <div·class="line"><a·id="l00011"·name="l00011"></a><span·class="lineno">···11</span><span·class="comment">·*</span></div>
59 <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>60 <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>
60 <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>61 <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>
61 <div·class="line"><a·id="l00013"·name="l00013"></a><span·class="lineno">···13</span><span·class="comment">·*···&quot;Software&quot;),·to·deal·in·the·Software·without·restriction,·including</span></div>62 <div·class="line"><a·id="l00014"·name="l00014"></a><span·class="lineno">···14</span><span·class="comment">·*···&quot;Software&quot;),·to·deal·in·the·Software·without·restriction,·including</span></div>
62 <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>63 <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>
63 <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>64 <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>
64 <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>65 <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>
65 <div·class="line"><a·id="l00017"·name="l00017"></a><span·class="lineno">···17</span><span·class="comment">·*···the·following·conditions:</span></div>66 <div·class="line"><a·id="l00018"·name="l00018"></a><span·class="lineno">···18</span><span·class="comment">·*···the·following·conditions:</span></div>
66 <div·class="line"><a·id="l00018"·name="l00018"></a><span·class="lineno">···18</span><span·class="comment">·*</span></div>67 <div·class="line"><a·id="l00019"·name="l00019"></a><span·class="lineno">···19</span><span·class="comment">·*</span></div>
67 <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>68 <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>
68 <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>69 <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>
69 <div·class="line"><a·id="l00021"·name="l00021"></a><span·class="lineno">···21</span><span·class="comment">·*</span></div>70 <div·class="line"><a·id="l00022"·name="l00022"></a><span·class="lineno">···22</span><span·class="comment">·*</span></div>
70 <div·class="line"><a·id="l00022"·name="l00022"></a><span·class="lineno">···22</span><span·class="comment">·*···THE·SOFTWARE·IS·PROVIDED·&quot;AS·IS&quot;,·WITHOUT·WARRANTY·OF·ANY·KIND,</span></div>71 <div·class="line"><a·id="l00023"·name="l00023"></a><span·class="lineno">···23</span><span·class="comment">·*···THE·SOFTWARE·IS·PROVIDED·&quot;AS·IS&quot;,·WITHOUT·WARRANTY·OF·ANY·KIND,</span></div>
71 <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>72 <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>
72 <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>73 <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>
73 <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>74 <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>
74 <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>75 <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>
75 <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>76 <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>
76 <div·class="line"><a·id="l00028"·name="l00028"></a><span·class="lineno">···28</span><span·class="comment">·*···OTHER·DEALINGS·IN·THE·SOFTWARE.</span></div>77 <div·class="line"><a·id="l00029"·name="l00029"></a><span·class="lineno">···29</span><span·class="comment">·*···OTHER·DEALINGS·IN·THE·SOFTWARE.</span></div>
77 <div·class="line"><a·id="l00029"·name="l00029"></a><span·class="lineno">···29</span><span·class="comment">·***************************************************************************/</span></div>78 <div·class="line"><a·id="l00030"·name="l00030"></a><span·class="lineno">···30</span><span·class="comment">·***************************************************************************/</span></div>
78 <div·class="line"><a·id="l00030"·name="l00030"></a><span·class="lineno">···30</span><span·class="preprocessor">#ifndef·_SILLYImageLoaderManager_h_·</span></div>79 <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>
79 <div·class="line"><a·id="l00031"·name="l00031"></a><span·class="lineno">···31</span><span·class="preprocessor">#define·_SILLYImageLoaderManager_h_</span></div>80 <div·class="line"><a·id="l00032"·name="l00032"></a><span·class="lineno">···32</span><span·class="preprocessor">#define·SILLY_OPT_INLINE·1</span></div>
80 <div·class="line"><a·id="l00032"·name="l00032"></a><span·class="lineno">···32</span><span·class="preprocessor">#include·&quot;SILLYBase.h&quot;</span>·</div> 
81 <div·class="line"><a·id="l00033"·name="l00033"></a><span·class="lineno">···33</span><span·class="preprocessor">#include·&lt;vector&gt;</span>·</div>81 <div·class="line"><a·id="l00033"·name="l00033"></a><span·class="lineno">···33</span>·</div>
82 <div·class="line"><a·id="l00034"·name="l00034"></a><span·class="lineno">···34</span><span·class="comment">//·Start·of·section·namespace·SILLY·</span></div>82 <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>
83 <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="l00035"·name="l00035"></a><span·class="lineno">···35</span><span·class="comment">/*·#undef·SILLY_OPT_DEBUG·*/</span></div>
84 <div·class="line"><a·id="l00036"·name="l00036"></a><span·class="lineno">···36</span>{</div>84 <div·class="line"><a·id="l00036"·name="l00036"></a><span·class="lineno">···36</span>·</div>
85 <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> 
86 <div·class="line"><a·id="l00042"·name="l00042"></a><span·class="lineno"><a·class="line"·href="a00129.html#a9f85557d059f38f7bb66a898472d394e">···42</a></span><span·class="comment"></span><span·class="keyword">typedef</span>·std::vector&lt;ImageLoader*&gt;·<a·class="code·hl_typedef"·hre[·...·truncated·by·diffoscope;·len:·70,·SHA:·7ff6e1b1aea7f1c560e47d6c7e2a4d8544e8d2d3f538153bb0337b15c580d28e·...·]</div>85 <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>
 86 <div·class="line"><a·id="l00038"·name="l00038"></a><span·class="lineno">···38</span><span·class="comment">/*·#undef·SILLY_OPT_PROFILE·*/</span></div>
87 <div·class="line"><a·id="l00043"·name="l00043"></a><span·class="lineno">···43</span>·</div>87 <div·class="line"><a·id="l00039"·name="l00039"></a><span·class="lineno">···39</span>·</div>
88 <div·class="line"><a·id="l00044"·name="l00044"></a><span·class="lineno">···44</span><span·class="preprocessor">#if·defined(_MSC_VER)</span></div> 
89 <div·class="line"><a·id="l00045"·name="l00045"></a><span·class="lineno">···45</span>·</div> 
90 <div·class="line"><a·id="l00046"·name="l00046"></a><span·class="lineno">···46</span><span·class="preprocessor">#···pragma·warning(push)</span></div> 
91 <div·class="line"><a·id="l00047"·name="l00047"></a><span·class="lineno">···47</span>·</div> 
92 <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>·</div> 
94 <div·class="line"><a·id="l00050"·name="l00050"></a><span·class="lineno">···50</span><span·class="preprocessor">#endif</span></div> 
95 <div·class="line"><a·id="l00051"·name="l00051"></a><span·class="lineno">···51</span>·</div> 
96 <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> 
97 <div·class="line"><a·id="l00057"·name="l00057"></a><span·class="lineno">···57</span>{</div> 
98 <div·class="line"><a·id="l00058"·name="l00058"></a><span·class="lineno">···58</span>····</div> 
99 <div·class="line"><a·id="l00059"·name="l00059"></a><span·class="lineno">···59</span><span·class="keyword">public</span>:</div> 
100 <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> 
101 <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> 
102 <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> 
103 <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> 
104 <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> 
105 <div·class="line"><a·id="l00087"·name="l00087"></a><span·class="lineno">···87</span>····</div> 
106 <div·class="line"><a·id="l00088"·name="l00088"></a><span·class="lineno">···88</span><span·class="keyword">private</span>:</div> 
107 <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> 
108 <div·class="line"><a·id="l00090"·name="l00090"></a><span·class="lineno">···90</span>·</div> 
109 <div·class="line"><a·id="l00091"·name="l00091"></a><span·class="lineno">···91</span><span·class="keyword">public</span>:</div> 
110 <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> 
111 <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>&amp;·getSingleton();</div> 
112 <div·class="line"><a·id="l00094"·name="l00094"></a><span·class="lineno">···94</span>·</div> 
113 <div·class="line"><a·id="l00095"·name="l00095"></a><span·class="lineno">···95</span><span·class="keyword">private</span>:</div> 
114 <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> 
115 <div·class="line"><a·id="l00097"·name="l00097"></a><span·class="lineno">···97</span>····</div> 
116 <div·class="line"><a·id="l00098"·name="l00098"></a><span·class="lineno">···98</span>··<span·class="comment">//·Disabled·operations</span></div> 
117 <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>&amp;);</div> 
118 <div·class="line"><a·id="l00100"·name="l00100"></a><span·class="lineno">··100</span>··<a·class="code·hl_class"·href="a00989.html">ImageLoaderManager</a>&amp;·operator=(<a·class="code·hl_class"·href="a00989.html">ImageLoaderManager</a>&amp;);</div> 
119 <div·class="line"><a·id="l00101"·name="l00101"></a><span·class="lineno">··101</span>};</div> 
120 <div·class="line"><a·id="l00102"·name="l00102"></a><span·class="lineno">··102</span>·</div> 
121 <div·class="line"><a·id="l00103"·name="l00103"></a><span·class="lineno">··103</span><span·class="preprocessor">#if·defined(_MSC_VER)</span></div> 
122 <div·class="line"><a·id="l00104"·name="l00104"></a><span·class="lineno">··104</span>·</div> 
123 <div·class="line"><a·id="l00105"·name="l00105"></a><span·class="lineno">··105</span><span·class="preprocessor">#···pragma·warning(pop)</span></div> 
124 <div·class="line"><a·id="l00106"·name="l00106"></a><span·class="lineno">··106</span>·</div> 
125 <div·class="line"><a·id="l00107"·name="l00107"></a><span·class="lineno">··107</span><span·class="preprocessor">#endif··</span></div> 
126 <div·class="line"><a·id="l00108"·name="l00108"></a><span·class="lineno">··108</span>··</div> 
127 <div·class="line"><a·id="l00109"·name="l00109"></a><span·class="lineno">··109</span>}·<span·class="comment">//·End·of·section·namespace·SILLY·</span></div> 
128 <div·class="line"><a·id="l00110"·name="l00110"></a><span·class="lineno">··110</span>·</div> 
129 <div·class="line"><a·id="l00111"·name="l00111"></a><span·class="lineno">··111</span><span·class="comment">//·Inclue·inline·function·when·needed·</span></div> 
130 <div·class="line"><a·id="l00112"·name="l00112"></a><span·class="lineno">··112</span><span·class="preprocessor">#ifdef·SILLY_OPT_INLINE</span></div> 
131 <div·class="line"><a·id="l00113"·name="l00113"></a><span·class="lineno">··113</span><span·class="preprocessor">#include·&quot;SILLYImageLoaderManager.icpp&quot;</span></div> 
132 <div·class="line"><a·id="l00114"·name="l00114"></a><span·class="lineno">··114</span><span·class="preprocessor">#endif·</span></div> 
133 <div·class="line"><a·id="l00115"·name="l00115"></a><span·class="lineno">··115</span>·</div> 
134 <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> 
135 <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="a00020_source.html#l00045">SILLYJPGImageContext.cpp:46</a></div></div> 
136 <div·class="ttc"·id="aa00129_html_a9f85557d059f38f7bb66a898472d394e"><div·class="ttname"><a·href="a00129.html#a9f85557d059f38f7bb66a898472d394e">SILLY::ImageLoaderList</a></div><div·class="ttdeci">std::vector&lt;·ImageLoader·*·&gt;·ImageLoaderList</div><div·class="ttdoc">Typename·for·a·collection·of·image·loader.</div><div·class="ttdef"><b>Definition:</b>·<a·href="a00044_source.html#l00042">SILLYImageLoaderManager.h:42</a></div></div> 
137 <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="a00116_source.html#l00046">SILLYImageLoader.h:47</a></div></div> 
138 <div·class="ttc"·id="aa00989_html"><div·class="ttname"><a·href="a00989.html">SILLY::ImageLoaderManager</a></div><div·class="ttdoc">Manage·the·list·of·all·supported·ImageLoader.</div><div·class="ttdef"><b>Definition:</b>·<a·href="a00044_source.html#l00056">SILLYImageLoaderManager.h:57</a></div></div> 
139 <div·class="ttc"·id="aa00989_html_a38aa5b3d86db46f24cd330bda6d0b696"><div·class="ttname"><a·href="a00989.html#a38aa5b3d86db46f24cd330bda6d0b696">SILLY::ImageLoaderManager::add</a></div><div·class="ttdeci">void·add(ImageLoader·*loader)</div><div·class="ttdoc">Register·an·ImageLoader·object.</div></div> 
140 <div·class="ttc"·id="aa00989_html_ae2e05642dfe82aad71558d37a9377e6e"><div·class="ttname"><a·href="a00989.html#ae2e05642dfe82aad71558d37a9377e6e">SILLY::ImageLoaderManager::begin</a></div><div·class="ttdeci">ImageLoaderList::iterator·begin()</div><div·class="ttdoc">Get·an·iterator·to·the·first·ImageLoader·registered.</div></div> 
141 <div·class="ttc"·id="aa00989_html_ae5ad548bf73ed505eaf533eeb053f2cc"><div·class="ttname"><a·href="a00989.html#ae5ad548bf73ed505eaf533eeb053f2cc">SILLY::ImageLoaderManager::end</a></div><div·class="ttdeci">ImageLoaderList::iterator·end()</div><div·class="ttdoc">Get·an·iterator·to·the·first·not·registered·ImageLoader.</div></div> 
142 </div><!--·fragment·--></div><!--·contents·-->88 </div><!--·fragment·--></div><!--·contents·-->
143 <!--·start·footer·part·-->89 <!--·start·footer·part·-->
144 <hr·class="footer"/><address·class="footer"><small>90 <hr·class="footer"/><address·class="footer"><small>
145 Generated·by&#160;<a·href="https://www.doxygen.org/index.html"><img·class="footer"·src="doxygen.svg"·width="104"·height="31"·alt="doxygen"/></a>·1.9.491 Generated·by&#160;<a·href="https://www.doxygen.org/index.html"><img·class="footer"·src="doxygen.svg"·width="104"·height="31"·alt="doxygen"/></a>·1.9.4
146 </small></address>92 </small></address>
Max diff block lines reached; 9/24903 bytes (0.04%) of diff not shown.
5.93 KB
html2text {}
    
Offset 4, 120 lines modifiedOffset 4, 51 lines modified
  
4 Simple·Image·Loading·LibrarY 0.1.04 Simple·Image·Loading·LibrarY 0.1.0
  
5 ····*·build5 ····*·build
6 ····*·reproducible-path6 ····*·reproducible-path
7 ····*·silly-0.1.07 ····*·silly-0.1.0
8 ····*·include8 ····*·include
9 SILLYImageLoaderManager.h9 SILLYOptions.h
 10 ·1/*·include/SILLYOptions.h.·Generated·from·SILLYOptions.h.in·by·configure.·*/
10 ·1/***********************************************************************11 ·2/***********************************************************************
11 ·2·filename:·ImageLoaderManager.h 
12 ·3·created:·10·Jun·200612 ·3·filename:·SILLYOptions.h.in
 13 ·4·created:·2006/06/10
13 ·4·author:·Olivier·Delannoy14 ·5·author:·Olivier·Delannoy
14 ·5 
15 ·6·purpose:·Manage·all·available·loader15 ·6
 16 ·7·purpose:·Store·options·of·the·SILLY·library
16 ·7*************************************************************************/17 ·8*************************************************************************/
17 ·8/***************************************************************************18 ·9/***************************************************************************
18 ·9·*·Copyright·(C)·2004·-·2006·Paul·D·Turner·&·The·CEGUI·Development·Team19 ·10·*·Copyright·(C)·2004·-·2006·Paul·D·Turner·&·The·CEGUI·Development·Team
19 ·10·*20 ·11·*
20 ·11·*·Permission·is·hereby·granted,·free·of·charge,·to·any·person·obtaining21 ·12·*·Permission·is·hereby·granted,·free·of·charge,·to·any·person·obtaining
21 ·12·*·a·copy·of·this·software·and·associated·documentation·files·(the22 ·13·*·a·copy·of·this·software·and·associated·documentation·files·(the
22 ·13·*·"Software"),·to·deal·in·the·Software·without·restriction,·including23 ·14·*·"Software"),·to·deal·in·the·Software·without·restriction,·including
23 ·14·*·without·limitation·the·rights·to·use,·copy,·modify,·merge,·publish,24 ·15·*·without·limitation·the·rights·to·use,·copy,·modify,·merge,·publish,
24 ·15·*·distribute,·sublicense,·and/or·sell·copies·of·the·Software,·and·to25 ·16·*·distribute,·sublicense,·and/or·sell·copies·of·the·Software,·and·to
25 ·16·*·permit·persons·to·whom·the·Software·is·furnished·to·do·so,·subject·to26 ·17·*·permit·persons·to·whom·the·Software·is·furnished·to·do·so,·subject·to
26 ·17·*·the·following·conditions:27 ·18·*·the·following·conditions:
27 ·18·*28 ·19·*
28 ·19·*·The·above·copyright·notice·and·this·permission·notice·shall·be29 ·20·*·The·above·copyright·notice·and·this·permission·notice·shall·be
29 ·20·*·included·in·all·copies·or·substantial·portions·of·the·Software.30 ·21·*·included·in·all·copies·or·substantial·portions·of·the·Software.
30 ·21·*31 ·22·*
31 ·22·*·THE·SOFTWARE·IS·PROVIDED·"AS·IS",·WITHOUT·WARRANTY·OF·ANY·KIND,32 ·23·*·THE·SOFTWARE·IS·PROVIDED·"AS·IS",·WITHOUT·WARRANTY·OF·ANY·KIND,
32 ·23·*·EXPRESS·OR·IMPLIED,·INCLUDING·BUT·NOT·LIMITED·TO·THE·WARRANTIES·OF33 ·24·*·EXPRESS·OR·IMPLIED,·INCLUDING·BUT·NOT·LIMITED·TO·THE·WARRANTIES·OF
33 ·24·*·MERCHANTABILITY,·FITNESS·FOR·A·PARTICULAR·PURPOSE·AND·NONINFRINGEMENT.34 ·25·*·MERCHANTABILITY,·FITNESS·FOR·A·PARTICULAR·PURPOSE·AND·NONINFRINGEMENT.
34 ·25·*·IN·NO·EVENT·SHALL·THE·AUTHORS·BE·LIABLE·FOR·ANY·CLAIM,·DAMAGES·OR35 ·26·*·IN·NO·EVENT·SHALL·THE·AUTHORS·BE·LIABLE·FOR·ANY·CLAIM,·DAMAGES·OR
35 ·26·*·OTHER·LIABILITY,·WHETHER·IN·AN·ACTION·OF·CONTRACT,·TORT·OR·OTHERWISE,36 ·27·*·OTHER·LIABILITY,·WHETHER·IN·AN·ACTION·OF·CONTRACT,·TORT·OR·OTHERWISE,
36 ·27·*·ARISING·FROM,·OUT·OF·OR·IN·CONNECTION·WITH·THE·SOFTWARE·OR·THE·USE·OR37 ·28·*·ARISING·FROM,·OUT·OF·OR·IN·CONNECTION·WITH·THE·SOFTWARE·OR·THE·USE·OR
37 ·28·*·OTHER·DEALINGS·IN·THE·SOFTWARE.38 ·29·*·OTHER·DEALINGS·IN·THE·SOFTWARE.
38 ·2939 ·30
39 ***************************************************************************/40 ***************************************************************************/
 41 ·31/*·Defined·to·1·if·inline·is·enabled·*/
 42 ·32#define·SILLY_OPT_INLINE·1
 43 ·33
 44 ·34/*·Defined·to·1·if·debug·is·enabled·*/
 45 ·35/*·#undef·SILLY_OPT_DEBUG·*/
40 ·30#ifndef·_SILLYImageLoaderManager_h_ 
41 ·31#define·_SILLYImageLoaderManager_h_ 
42 ·32#include·"SILLYBase.h" 
43 ·33#include·<vector> 
44 ·34//·Start·of·section·namespace·SILLY 
45 ·35namespace·SILLY 
46 ·36{46 ·36
 47 ·37/*·Defined·to·1·if·profile·is·enabled·*/
 48 ·38/*·#undef·SILLY_OPT_PROFILE·*/
 49 ·39
47 ·37class·ImageLoader;·//·Forward·declaration 
48 42typedef·std::vector<ImageLoader*>·ImageLoaderList; 
49 ·43 
50 ·44#if·defined(_MSC_VER) 
51 ·45 
52 ·46#·pragma·warning(push) 
53 ·47 
54 ·48#·pragma·warning(disable·:·4251) 
55 ·49 
56 ·50#endif 
57 ·51 
58 56class·SILLY_EXPORT·ImageLoaderManager 
59 ·57{ 
60 ·58 
61 ·59public: 
62 ·64·ImageLoaderManager(); 
63 ·69·~ImageLoaderManager(); 
64 74·ImageLoaderList::iterator·begin(); 
65 79·ImageLoaderList::iterator·end(); 
66 86·void·add(ImageLoader*·loader); 
67 ·87 
68 ·88private: 
69 ·89·ImageLoaderList·d_loaders; 
70 ·90 
71 ·91public: 
72 ·92·static·ImageLoaderManager*·getSingletonPtr(); 
73 ·93·static·ImageLoaderManager&·getSingleton(); 
74 ·94 
75 ·95private: 
76 ·96·static·ImageLoaderManager*·d_instance; 
77 ·97 
78 ·98·//·Disabled·operations 
79 ·99·ImageLoaderManager(ImageLoaderManager&); 
80 ·100·ImageLoaderManager&·operator=(ImageLoaderManager&); 
81 ·101}; 
82 ·102 
83 ·103#if·defined(_MSC_VER) 
84 ·104 
85 ·105#·pragma·warning(pop) 
86 ·106 
87 ·107#endif 
88 ·108 
89 ·109}·//·End·of·section·namespace·SILLY 
90 ·110 
91 ·111//·Inclue·inline·function·when·needed 
92 ·112#ifdef·SILLY_OPT_INLINE 
93 ·113#include·"SILLYImageLoaderManager.icpp" 
94 ·114#endif 
95 ·115 
96 ·116#endif·//·end·of·guard·_SILLYImageLoaderManager_h_ 
97 SILLY 
98 Simple·Image·Loading·LibrarY·namespace. 
99 Definition:·SILLYJPGImageContext.cpp:46 
100 SILLY::ImageLoaderList 
101 std::vector<·ImageLoader·*·>·ImageLoaderList 
102 Typename·for·a·collection·of·image·loader. 
103 Definition:·SILLYImageLoaderManager.h:42 
104 SILLY::ImageLoader 
105 This·is·an·abstract·class·that·define·the·interface·of·all·image·loader. 
106 Definition:·SILLYImageLoader.h:47 
107 SILLY::ImageLoaderManager 
108 Manage·the·list·of·all·supported·ImageLoader. 
109 Definition:·SILLYImageLoaderManager.h:57 
110 SILLY::ImageLoaderManager::add 
111 void·add(ImageLoader·*loader) 
112 Register·an·ImageLoader·object. 
113 SILLY::ImageLoaderManager::begin 
114 ImageLoaderList::iterator·begin() 
115 Get·an·iterator·to·the·first·ImageLoader·registered. 
116 SILLY::ImageLoaderManager::end 
117 ImageLoaderList::iterator·end() 
Max diff block lines reached; 116/6046 bytes (1.92%) of diff not shown.
27.5 KB
./usr/share/doc/libsilly-doc/html/a00047_source.html
    
Offset 1, 15 lines modifiedOffset 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">2 <html·xmlns="http://www.w3.org/1999/xhtml">
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.4"/>6 <meta·name="generator"·content="Doxygen·1.9.4"/>
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/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 39, 104 lines modifiedOffset 39, 64 lines modified
39 <div·id="main-nav"></div>39 <div·id="main-nav"></div>
40 <div·id="nav-path"·class="navpath">40 <div·id="nav-path"·class="navpath">
41 ··<ul>41 ··<ul>
42 <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>42 <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>
43 </div>43 </div>
44 </div><!--·top·-->44 </div><!--·top·-->
45 <div·class="header">45 <div·class="header">
46 ··<div·class="headertitle"><div·class="title">SILLYImageContext.h</div></div>46 ··<div·class="headertitle"><div·class="title">SILLYImageLoader.icpp</div></div>
47 </div><!--header-->47 </div><!--header-->
48 <div·class="contents">48 <div·class="contents">
49 <div·class="fragment"><div·class="line"><a·id="l00001"·name="l00001"></a><span·class="lineno">····1</span><span·class="comment">/***********************************************************************</span></div>49 <div·class="fragment"><div·class="line"><a·id="l00001"·name="l00001"></a><span·class="lineno">····1</span>/***********************************************************************</div>
50 <div·class="line"><a·id="l00002"·name="l00002"></a><span·class="lineno">····2</span><span·class="comment">····filename:···SILLYImageContext.h</span></div>50 <div·class="line"><a·id="l00002"·name="l00002"></a><span·class="lineno">····2</span>····filename:···ImageLoader.icpp·</div>
51 <div·class="line"><a·id="l00003"·name="l00003"></a><span·class="lineno">····3</span><span·class="comment">····created:····10·Jun·2006</span></div>51 <div·class="line"><a·id="l00003"·name="l00003"></a><span·class="lineno">····3</span>····created:····10·Jun·2006</div>
52 <div·class="line"><a·id="l00004"·name="l00004"></a><span·class="lineno">····4</span><span·class="comment">····author:·····Olivier·Delannoy</span></div>52 <div·class="line"><a·id="l00004"·name="l00004"></a><span·class="lineno">····4</span>····author:·····Olivier·Delannoy</div>
53 <div·class="line"><a·id="l00005"·name="l00005"></a><span·class="lineno">····5</span><span·class="comment"></span>·</div>53 <div·class="line"><a·id="l00005"·name="l00005"></a><span·class="lineno">····5</span>·</div>
54 <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>54 <div·class="line"><a·id="l00006"·name="l00006"></a><span·class="lineno">····6</span>····purpose:····Inline·function·definition·for·ImageLoader·class··</div>
55 <div·class="line"><a·id="l00007"·name="l00007"></a><span·class="lineno">····7</span><span·class="comment">*************************************************************************/</span></div>55 <div·class="line"><a·id="l00007"·name="l00007"></a><span·class="lineno">····7</span>*************************************************************************/</div>
56 <div·class="line"><a·id="l00008"·name="l00008"></a><span·class="lineno">····8</span><span·class="comment">/***************************************************************************</span></div>56 <div·class="line"><a·id="l00008"·name="l00008"></a><span·class="lineno">····8</span>/***************************************************************************</div>
57 <div·class="line"><a·id="l00009"·name="l00009"></a><span·class="lineno">····9</span><span·class="comment">·*···Copyright·(C)·2004·-·2006·Paul·D·Turner·&amp;·The·CEGUI·Development·Team</span></div>57 <div·class="line"><a·id="l00009"·name="l00009"></a><span·class="lineno">····9</span>·*···Copyright·(C)·2004·-·2006·Paul·D·Turner·&amp;·The·CEGUI·Development·Team</div>
58 <div·class="line"><a·id="l00010"·name="l00010"></a><span·class="lineno">···10</span><span·class="comment">·*</span></div>58 <div·class="line"><a·id="l00010"·name="l00010"></a><span·class="lineno">···10</span>·*</div>
59 <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>59 <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>
60 <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>60 <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>
61 <div·class="line"><a·id="l00013"·name="l00013"></a><span·class="lineno">···13</span><span·class="comment">·*···&quot;Software&quot;),·to·deal·in·the·Software·without·restriction,·including</span></div>61 <div·class="line"><a·id="l00013"·name="l00013"></a><span·class="lineno">···13</span>·*···&quot;Software&quot;),·to·deal·in·the·Software·without·restriction,·including</div>
62 <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>62 <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>
63 <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>63 <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>
64 <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>64 <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>
65 <div·class="line"><a·id="l00017"·name="l00017"></a><span·class="lineno">···17</span><span·class="comment">·*···the·following·conditions:</span></div>65 <div·class="line"><a·id="l00017"·name="l00017"></a><span·class="lineno">···17</span>·*···the·following·conditions:</div>
66 <div·class="line"><a·id="l00018"·name="l00018"></a><span·class="lineno">···18</span><span·class="comment">·*</span></div>66 <div·class="line"><a·id="l00018"·name="l00018"></a><span·class="lineno">···18</span>·*</div>
67 <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>67 <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>
68 <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>68 <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>
69 <div·class="line"><a·id="l00021"·name="l00021"></a><span·class="lineno">···21</span><span·class="comment">·*</span></div>69 <div·class="line"><a·id="l00021"·name="l00021"></a><span·class="lineno">···21</span>·*</div>
70 <div·class="line"><a·id="l00022"·name="l00022"></a><span·class="lineno">···22</span><span·class="comment">·*···THE·SOFTWARE·IS·PROVIDED·&quot;AS·IS&quot;,·WITHOUT·WARRANTY·OF·ANY·KIND,</span></div>70 <div·class="line"><a·id="l00022"·name="l00022"></a><span·class="lineno">···22</span>·*···THE·SOFTWARE·IS·PROVIDED·&quot;AS·IS&quot;,·WITHOUT·WARRANTY·OF·ANY·KIND,</div>
71 <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>71 <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>
72 <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>72 <div·class="line"><a·id="l00024"·name="l00024"></a><span·class="lineno">···24</span>·*···MERCHANTABILITY,·FITNESS·FOR·A·PARTICULAR·PURPOSE·AND·NONINFRINGEMENT.</div>
73 <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>73 <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>
74 <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>74 <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>
75 <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>75 <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>
76 <div·class="line"><a·id="l00028"·name="l00028"></a><span·class="lineno">···28</span><span·class="comment">·*···OTHER·DEALINGS·IN·THE·SOFTWARE.</span></div>76 <div·class="line"><a·id="l00028"·name="l00028"></a><span·class="lineno">···28</span>·*···OTHER·DEALINGS·IN·THE·SOFTWARE.</div>
77 <div·class="line"><a·id="l00029"·name="l00029"></a><span·class="lineno">···29</span><span·class="comment">·***************************************************************************/</span></div>77 <div·class="line"><a·id="l00029"·name="l00029"></a><span·class="lineno">···29</span>·***************************************************************************/</div>
78 <div·class="line"><a·id="l00030"·name="l00030"></a><span·class="lineno">···30</span><span·class="preprocessor">#ifndef·_SILLYImageContext_h_·</span></div> 
79 <div·class="line"><a·id="l00031"·name="l00031"></a><span·class="lineno">···31</span><span·class="preprocessor">#define·_SILLYImageContext_h_</span></div>78 <div·class="line"><a·id="l00030"·name="l00030"></a><span·class="lineno">···30</span>·</div>
 79 <div·class="line"><a·id="l00031"·name="l00031"></a><span·class="lineno">···31</span>//·Start·of·section·namespace·SILLY</div>
80 <div·class="line"><a·id="l00032"·name="l00032"></a><span·class="lineno">···32</span><span·class="preprocessor">#include·&quot;SILLYBase.h&quot;</span>·</div>80 <div·class="line"><a·id="l00032"·name="l00032"></a><span·class="lineno">···32</span>namespace·SILLY</div>
81 <div·class="line"><a·id="l00033"·name="l00033"></a><span·class="lineno">···33</span>·</div>81 <div·class="line"><a·id="l00033"·name="l00033"></a><span·class="lineno">···33</span>{</div>
82 <div·class="line"><a·id="l00034"·name="l00034"></a><span·class="lineno">···34</span><span·class="comment">//·Start·of·section·namespace·SILLY·</span></div> 
83 <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>82 <div·class="line"><a·id="l00034"·name="l00034"></a><span·class="lineno">···34</span>inline·ImageLoader::ImageLoader(const·char*·name)</div>
 83 <div·class="line"><a·id="l00035"·name="l00035"></a><span·class="lineno">···35</span>····:·d_name(name)</div>
84 <div·class="line"><a·id="l00036"·name="l00036"></a><span·class="lineno">···36</span>{</div>84 <div·class="line"><a·id="l00036"·name="l00036"></a><span·class="lineno">···36</span>{</div>
85 <div·class="line"><a·id="l00037"·name="l00037"></a><span·class="lineno">···37</span>·</div>85 <div·class="line"><a·id="l00037"·name="l00037"></a><span·class="lineno">···37</span>}</div>
86 <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>86 <div·class="line"><a·id="l00038"·name="l00038"></a><span·class="lineno">···38</span>inline·ImageLoader::~ImageLoader()</div>
 87 <div·class="line"><a·id="l00039"·name="l00039"></a><span·class="lineno">···39</span>{·······</div>
 88 <div·class="line"><a·id="l00040"·name="l00040"></a><span·class="lineno">···40</span>}</div>
 89 <div·class="line"><a·id="l00041"·name="l00041"></a><span·class="lineno">···41</span>inline·const·char*·ImageLoader::getIdentifierString()·const</div>
 90 <div·class="line"><a·id="l00042"·name="l00042"></a><span·class="lineno">···42</span>{</div>
 91 <div·class="line"><a·id="l00043"·name="l00043"></a><span·class="lineno">···43</span>····return·d_name;</div>
87 <div·class="line"><a·id="l00044"·name="l00044"></a><span·class="lineno">···44</span>{</div>92 <div·class="line"><a·id="l00044"·name="l00044"></a><span·class="lineno">···44</span>}</div>
88 <div·class="line"><a·id="l00045"·name="l00045"></a><span·class="lineno">···45</span><span·class="keyword">public</span>:</div> 
89 <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> 
90 <div·class="line"><a·id="l00051"·name="l00051"></a><span·class="lineno">···51</span>····</div>93 <div·class="line"><a·id="l00045"·name="l00045"></a><span·class="lineno">···45</span>·</div>
91 <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">setDestination</a>(<span·class="keywordtype">byte</span>*·pixels,·<span·class="keywordtype">size_t</span>·length,·<a·class="code·hl_enumeration"·href="a00129.html#a60883d4958a60b91661e97027a85072a">PixelFormat</a>·format);</div> 
92 <div·class="line"><a·id="l00057"·name="l00057"></a><span·class="lineno">···57</span>····</div> 
93 <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> 
94 <div·class="line"><a·id="l00063"·name="l00063"></a><span·class="lineno">···63</span>·</div> 
95 <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> 
96 <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> 
97 <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> 
98 <div·class="line"><a·id="l00067"·name="l00067"></a><span·class="lineno">···67</span>····</div>94 <div·class="line"><a·id="l00046"·name="l00046"></a><span·class="lineno">···46</span>}·//·End·of·section·namespace·SILLY</div>
99 <div·class="line"><a·id="l00074"·name="l00074"></a><span·class="lineno">···74</span>····<span·class="keywordtype">bool</span>··flipVertically();</div> 
100 <div·class="line"><a·id="l00075"·name="l00075"></a><span·class="lineno">···75</span>·<span·class="keyword">protected</span>:</div> 
101 <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> 
102 <div·class="line"><a·id="l00077"·name="l00077"></a><span·class="lineno">···77</span>····</div> 
103 <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> 
104 <div·class="line"><a·id="l00079"·name="l00079"></a><span·class="lineno">···79</span>······</div> 
105 <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> 
106 <div·class="line"><a·id="l00089"·name="l00089"></a><span·class="lineno">···89</span>·</div> 
107 <div·class="line"><a·id="l00090"·name="l00090"></a><span·class="lineno">···90</span><span·class="keyword">private</span>:····</div> 
108 <div·class="line"><a·id="l00091"·name="l00091"></a><span·class="lineno">···91</span>····<span·class="keywordtype">byte</span>*·d_pixels;</div> 
109 <div·class="line"><a·id="l00092"·name="l00092"></a><span·class="lineno">···92</span>····<span·class="keywordtype">size_t</span>·d_length;</div> 
110 <div·class="line"><a·id="l00093"·name="l00093"></a><span·class="lineno">···93</span>····<span·class="keywordtype">size_t</span>·d_width;</div> 
111 <div·class="line"><a·id="l00094"·name="l00094"></a><span·class="lineno">···94</span>····<span·class="keywordtype">size_t</span>·d_height;</div> 
112 <div·class="line"><a·id="l00095"·name="l00095"></a><span·class="lineno">···95</span>····<span·class="keywordtype">size_t</span>·d_currentOffset;</div> 
113 <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> 
114 <div·class="line"><a·id="l00097"·name="l00097"></a><span·class="lineno">···97</span>·</div>95 <div·class="line"><a·id="l00047"·name="l00047"></a><span·class="lineno">···47</span>·</div>
115 <div·class="line"><a·id="l00098"·name="l00098"></a><span·class="lineno">···98</span>····<span·class="comment">//·Disabled·operation</span></div> 
116 <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>&amp;);</div> 
117 <div·class="line"><a·id="l00100"·name="l00100"></a><span·class="lineno">··100</span>····<a·class="code·hl_class"·href="a00981.html">ImageContext</a>&amp;·operator=(<a·class="code·hl_class"·href="a00981.html">ImageContext</a>&amp;);</div> 
118 <div·class="line"><a·id="l00101"·name="l00101"></a><span·class="lineno">··101</span>};</div> 
119 <div·class="line"><a·id="l00102"·name="l00102"></a><span·class="lineno">··102</span>··</div> 
120 <div·class="line"><a·id="l00103"·name="l00103"></a><span·class="lineno">··103</span>··</div> 
121 <div·class="line"><a·id="l00104"·name="l00104"></a><span·class="lineno">··104</span>}·<span·class="comment">//·End·of·section·namespace·SILLY·</span></div> 
122 <div·class="line"><a·id="l00105"·name="l00105"></a><span·class="lineno">··105</span>·</div> 
123 <div·class="line"><a·id="l00106"·name="l00106"></a><span·class="lineno">··106</span><span·class="comment">//·Inclue·inline·function·when·needed·</span></div> 
124 <div·class="line"><a·id="l00107"·name="l00107"></a><span·class="lineno">··107</span><span·class="preprocessor">#ifdef·SILLY_OPT_INLINE</span></div> 
125 <div·class="line"><a·id="l00108"·name="l00108"></a><span·class="lineno">··108</span><span·class="preprocessor">#include·&quot;SILLYImageContext.icpp&quot;</span></div> 
126 <div·class="line"><a·id="l00109"·name="l00109"></a><span·class="lineno">··109</span><span·class="preprocessor">#endif·</span></div> 
127 <div·class="line"><a·id="l00110"·name="l00110"></a><span·class="lineno">··110</span>·</div> 
128 <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> 
129 <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="a00020_source.html#l00045">SILLYJPGImageContext.cpp:46</a></div></div> 
130 <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="a00053_source.html#l00059">SILLYBase.h:60</a></div></div> 
131 <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="a00047_source.html#l00043">SILLYImageContext.h:44</a></div></div> 
132 <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> 
133 <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> 
134 <div·class="ttc"·id="aa00981_html_a65eda98c8a4f75b1d92a9edc8db86313"><div·class="ttname"><a·href="a00981.html#a65eda98c8a4f75b1d92a9edc8db86313">SILLY::ImageContext::ImageContext</a></div><div·class="ttdeci">ImageContext(size_t·width,·size_t·height)</div><div·class="ttdoc">Constructor.</div></div> 
135 <div·class="ttc"·id="aa00981_html_a792018d60b642b286f3bbb7d328214b0"><div·class="ttname"><a·href="a00981.html#a792018d60b642b286f3bbb7d328214b0">SILLY::ImageContext::~ImageContext</a></div><div·class="ttdeci">virtual·~ImageContext()</div><div·class="ttdoc">Destructor.</div></div> 
136 </div><!--·fragment·--></div><!--·contents·-->96 </div><!--·fragment·--></div><!--·contents·-->
137 <!--·start·footer·part·-->97 <!--·start·footer·part·-->
138 <hr·class="footer"/><address·class="footer"><small>98 <hr·class="footer"/><address·class="footer"><small>
139 Generated·by&#160;<a·href="https://www.doxygen.org/index.html"><img·class="footer"·src="doxygen.svg"·width="104"·height="31"·alt="doxygen"/></a>·1.9.499 Generated·by&#160;<a·href="https://www.doxygen.org/index.html"><img·class="footer"·src="doxygen.svg"·width="104"·height="31"·alt="doxygen"/></a>·1.9.4
140 </small></address>100 </small></address>
141 </body>101 </body>
142 </html>102 </html>
Max diff block lines reached; -1/24091 bytes (-0.00%) of diff not shown.
3.84 KB
html2text {}
    
Offset 4, 22 lines modifiedOffset 4, 21 lines modified
  
4 Simple·Image·Loading·LibrarY 0.1.04 Simple·Image·Loading·LibrarY 0.1.0
  
5 ····*·build5 ····*·build
6 ····*·reproducible-path6 ····*·reproducible-path
7 ····*·silly-0.1.07 ····*·silly-0.1.0
8 ····*·include8 ····*·include
9 SILLYImageContext.h9 SILLYImageLoader.icpp
10 ·1/***********************************************************************10 ·1/***********************************************************************
11 ·2·filename:·SILLYImageContext.h11 ·2·filename:·ImageLoader.icpp
12 ·3·created:·10·Jun·200612 ·3·created:·10·Jun·2006
13 ·4·author:·Olivier·Delannoy13 ·4·author:·Olivier·Delannoy
14 ·514 ·5
 15 ·6·purpose:·Inline·function·definition·for·ImageLoader·class
15 ·6·purpose:·ImageContext·is·an·abstract·class·used·to·hide·the·loader·specific 
16 data·needed·during·the·parsing·of·an·image 
17 ·7*************************************************************************/16 ·7*************************************************************************/
18 ·8/***************************************************************************17 ·8/***************************************************************************
19 ·9·*·Copyright·(C)·2004·-·2006·Paul·D·Turner·&·The·CEGUI·Development·Team18 ·9·*·Copyright·(C)·2004·-·2006·Paul·D·Turner·&·The·CEGUI·Development·Team
20 ·10·*19 ·10·*
21 ·11·*·Permission·is·hereby·granted,·free·of·charge,·to·any·person·obtaining20 ·11·*·Permission·is·hereby·granted,·free·of·charge,·to·any·person·obtaining
22 ·12·*·a·copy·of·this·software·and·associated·documentation·files·(the21 ·12·*·a·copy·of·this·software·and·associated·documentation·files·(the
23 ·13·*·"Software"),·to·deal·in·the·Software·without·restriction,·including22 ·13·*·"Software"),·to·deal·in·the·Software·without·restriction,·including
Offset 36, 83 lines modifiedOffset 35, 28 lines modified
36 ·24·*·MERCHANTABILITY,·FITNESS·FOR·A·PARTICULAR·PURPOSE·AND·NONINFRINGEMENT.35 ·24·*·MERCHANTABILITY,·FITNESS·FOR·A·PARTICULAR·PURPOSE·AND·NONINFRINGEMENT.
37 ·25·*·IN·NO·EVENT·SHALL·THE·AUTHORS·BE·LIABLE·FOR·ANY·CLAIM,·DAMAGES·OR36 ·25·*·IN·NO·EVENT·SHALL·THE·AUTHORS·BE·LIABLE·FOR·ANY·CLAIM,·DAMAGES·OR
38 ·26·*·OTHER·LIABILITY,·WHETHER·IN·AN·ACTION·OF·CONTRACT,·TORT·OR·OTHERWISE,37 ·26·*·OTHER·LIABILITY,·WHETHER·IN·AN·ACTION·OF·CONTRACT,·TORT·OR·OTHERWISE,
39 ·27·*·ARISING·FROM,·OUT·OF·OR·IN·CONNECTION·WITH·THE·SOFTWARE·OR·THE·USE·OR38 ·27·*·ARISING·FROM,·OUT·OF·OR·IN·CONNECTION·WITH·THE·SOFTWARE·OR·THE·USE·OR
40 ·28·*·OTHER·DEALINGS·IN·THE·SOFTWARE.39 ·28·*·OTHER·DEALINGS·IN·THE·SOFTWARE.
41 ·2940 ·29
42 ***************************************************************************/41 ***************************************************************************/
 42 ·30
43 ·30#ifndef·_SILLYImageContext_h_ 
44 ·31#define·_SILLYImageContext_h_ 
45 ·32#include·"SILLYBase.h" 
46 ·33 
47 ·34//·Start·of·section·namespace·SILLY43 ·31//·Start·of·section·namespace·SILLY
48 ·35namespace·SILLY44 ·32namespace·SILLY
 45 ·33{
 46 ·34inline·ImageLoader::ImageLoader(const·char*·name)
 47 ·35·:·d_name(name)
49 ·36{48 ·36{
50 ·3749 ·37}
51 43class·SILLY_EXPORT·ImageContext50 ·38inline·ImageLoader::~ImageLoader()
 51 ·39{
 52 ·40}
 53 ·41inline·const·char*·ImageLoader::getIdentifierString()·const
52 ·44{54 ·42{
 55 ·43·return·d_name;
 56 ·44}
 57 ·45
53 ·45public: 
54 50·virtual·~ImageContext(); 
55 ·51 
56 56·void·setDestination(byte*·pixels,·size_t·length,·PixelFormat·format); 
57 ·57 
58 62·void·setNextPixel(byte·red,·byte·green,·byte·bleu,·byte·alpha); 
59 ·63 
60 ·64·size_t·getWidth()·const; 
61 ·65·size_t·getHeight()·const; 
62 ·66·PixelFormat·getPixelFormat()·const; 
63 ·67 
64 ·74·bool·flipVertically(); 
65 ·75·protected: 
66 ·76·void·setWidth(size_t·width); 
67 ·77 
68 ·78·void·setHeight(size_t·height); 
69 ·79 
70 88·ImageContext(size_t·width,·size_t·height); 
71 ·89 
72 ·90private: 
73 ·91·byte*·d_pixels; 
74 ·92·size_t·d_length; 
75 ·93·size_t·d_width; 
76 ·94·size_t·d_height; 
77 ·95·size_t·d_currentOffset; 
78 ·96·PixelFormat·d_format; 
79 ·97 
80 ·98·//·Disabled·operation 
81 ·99·ImageContext(ImageContext&); 
82 ·100·ImageContext&·operator=(ImageContext&); 
83 ·101}; 
84 ·102 
85 ·103 
86 ·104}·//·End·of·section·namespace·SILLY58 ·46}·//·End·of·section·namespace·SILLY
 59 ·47
87 ·105 
88 ·106//·Inclue·inline·function·when·needed 
89 ·107#ifdef·SILLY_OPT_INLINE 
90 ·108#include·"SILLYImageContext.icpp" 
91 ·109#endif 
92 ·110 
93 ·111#endif·//·end·of·guard·_SILLYImageContext_h_ 
94 SILLY 
95 Simple·Image·Loading·LibrarY·namespace. 
96 Definition:·SILLYJPGImageContext.cpp:46 
97 SILLY::PixelFormat 
98 PixelFormat 
99 List·all·pixel·format·supported. 
100 Definition:·SILLYBase.h:60 
101 SILLY::ImageContext 
102 Store·the·data·needed·by·an·ImageLoader·object·during·the·parsing·of·an·image. 
103 Definition:·SILLYImageContext.h:44 
104 SILLY::ImageContext::setNextPixel 
105 void·setNextPixel(byte·red,·byte·green,·byte·bleu,·byte·alpha) 
106 Set·the·next·pixel·of·the·image. 
107 SILLY::ImageContext::setDestination 
108 void·setDestination(byte·*pixels,·size_t·length,·PixelFormat·format) 
109 Set·the·destination·of·the·loading. 
110 SILLY::ImageContext::ImageContext 
111 ImageContext(size_t·width,·size_t·height) 
112 Constructor. 
113 SILLY::ImageContext::~ImageContext 
114 virtual·~ImageContext() 
115 Destructor. 
  
116 ===============================================================================60 ===============================================================================
117 ·····Generated·by [doxygen]·1.9.461 ·····Generated·by [doxygen]·1.9.4
14.6 KB
./usr/share/doc/libsilly-doc/html/a00050_source.html
    
Offset 1, 15 lines modifiedOffset 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">2 <html·xmlns="http://www.w3.org/1999/xhtml">
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.4"/>6 <meta·name="generator"·content="Doxygen·1.9.4"/>
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/SILLYImageLoader.icpp·Source·File</title>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 39, 23 lines modifiedOffset 39, 23 lines modified
39 <div·id="main-nav"></div>39 <div·id="main-nav"></div>
40 <div·id="nav-path"·class="navpath">40 <div·id="nav-path"·class="navpath">
41 ··<ul>41 ··<ul>
42 <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>42 <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>
43 </div>43 </div>
44 </div><!--·top·-->44 </div><!--·top·-->
45 <div·class="header">45 <div·class="header">
46 ··<div·class="headertitle"><div·class="title">SILLYImageLoader.icpp</div></div>46 ··<div·class="headertitle"><div·class="title">SILLYImage.icpp</div></div>
47 </div><!--header-->47 </div><!--header-->
48 <div·class="contents">48 <div·class="contents">
49 <div·class="fragment"><div·class="line"><a·id="l00001"·name="l00001"></a><span·class="lineno">····1</span>/***********************************************************************</div>49 <div·class="fragment"><div·class="line"><a·id="l00001"·name="l00001"></a><span·class="lineno">····1</span>/***********************************************************************</div>
50 <div·class="line"><a·id="l00002"·name="l00002"></a><span·class="lineno">····2</span>····filename:···ImageLoader.icpp·</div>50 <div·class="line"><a·id="l00002"·name="l00002"></a><span·class="lineno">····2</span>····filename:···SILLYImage.icpp·</div>
51 <div·class="line"><a·id="l00003"·name="l00003"></a><span·class="lineno">····3</span>····created:····10·Jun·2006</div>51 <div·class="line"><a·id="l00003"·name="l00003"></a><span·class="lineno">····3</span>····created:····10·Jun·2006</div>
52 <div·class="line"><a·id="l00004"·name="l00004"></a><span·class="lineno">····4</span>····author:·····Olivier·Delannoy</div>52 <div·class="line"><a·id="l00004"·name="l00004"></a><span·class="lineno">····4</span>····author:·····Olivier·Delannoy</div>
53 <div·class="line"><a·id="l00005"·name="l00005"></a><span·class="lineno">····5</span>·</div>53 <div·class="line"><a·id="l00005"·name="l00005"></a><span·class="lineno">····5</span>·</div>
54 <div·class="line"><a·id="l00006"·name="l00006"></a><span·class="lineno">····6</span>····purpose:····Inline·function·definition·for·ImageLoader·class··</div>54 <div·class="line"><a·id="l00006"·name="l00006"></a><span·class="lineno">····6</span>····purpose:····Inline·definition·of·the·image·class···</div>
55 <div·class="line"><a·id="l00007"·name="l00007"></a><span·class="lineno">····7</span>*************************************************************************/</div>55 <div·class="line"><a·id="l00007"·name="l00007"></a><span·class="lineno">····7</span>*************************************************************************/</div>
56 <div·class="line"><a·id="l00008"·name="l00008"></a><span·class="lineno">····8</span>/***************************************************************************</div>56 <div·class="line"><a·id="l00008"·name="l00008"></a><span·class="lineno">····8</span>/***************************************************************************</div>
57 <div·class="line"><a·id="l00009"·name="l00009"></a><span·class="lineno">····9</span>·*···Copyright·(C)·2004·-·2006·Paul·D·Turner·&amp;·The·CEGUI·Development·Team</div>57 <div·class="line"><a·id="l00009"·name="l00009"></a><span·class="lineno">····9</span>·*···Copyright·(C)·2004·-·2006·Paul·D·Turner·&amp;·The·CEGUI·Development·Team</div>
58 <div·class="line"><a·id="l00010"·name="l00010"></a><span·class="lineno">···10</span>·*</div>58 <div·class="line"><a·id="l00010"·name="l00010"></a><span·class="lineno">···10</span>·*</div>
59 <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>59 <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>
60 <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>60 <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>
61 <div·class="line"><a·id="l00013"·name="l00013"></a><span·class="lineno">···13</span>·*···&quot;Software&quot;),·to·deal·in·the·Software·without·restriction,·including</div>61 <div·class="line"><a·id="l00013"·name="l00013"></a><span·class="lineno">···13</span>·*···&quot;Software&quot;),·to·deal·in·the·Software·without·restriction,·including</div>
Offset 75, 28 lines modifiedOffset 75, 65 lines modified
75 <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>75 <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>
76 <div·class="line"><a·id="l00028"·name="l00028"></a><span·class="lineno">···28</span>·*···OTHER·DEALINGS·IN·THE·SOFTWARE.</div>76 <div·class="line"><a·id="l00028"·name="l00028"></a><span·class="lineno">···28</span>·*···OTHER·DEALINGS·IN·THE·SOFTWARE.</div>
77 <div·class="line"><a·id="l00029"·name="l00029"></a><span·class="lineno">···29</span>·***************************************************************************/</div>77 <div·class="line"><a·id="l00029"·name="l00029"></a><span·class="lineno">···29</span>·***************************************************************************/</div>
78 <div·class="line"><a·id="l00030"·name="l00030"></a><span·class="lineno">···30</span>·</div>78 <div·class="line"><a·id="l00030"·name="l00030"></a><span·class="lineno">···30</span>·</div>
79 <div·class="line"><a·id="l00031"·name="l00031"></a><span·class="lineno">···31</span>//·Start·of·section·namespace·SILLY</div>79 <div·class="line"><a·id="l00031"·name="l00031"></a><span·class="lineno">···31</span>//·Start·of·section·namespace·SILLY</div>
80 <div·class="line"><a·id="l00032"·name="l00032"></a><span·class="lineno">···32</span>namespace·SILLY</div>80 <div·class="line"><a·id="l00032"·name="l00032"></a><span·class="lineno">···32</span>namespace·SILLY</div>
81 <div·class="line"><a·id="l00033"·name="l00033"></a><span·class="lineno">···33</span>{</div>81 <div·class="line"><a·id="l00033"·name="l00033"></a><span·class="lineno">···33</span>{</div>
82 <div·class="line"><a·id="l00034"·name="l00034"></a><span·class="lineno">···34</span>inline·ImageLoader::ImageLoader(const·char*·name)</div> 
83 <div·class="line"><a·id="l00035"·name="l00035"></a><span·class="lineno">···35</span>····:·d_name(name)</div>82 <div·class="line"><a·id="l00034"·name="l00034"></a><span·class="lineno">···34</span>·</div>
 83 <div·class="line"><a·id="l00035"·name="l00035"></a><span·class="lineno">···35</span>inline·bool·Image::isValid()·const</div>
84 <div·class="line"><a·id="l00036"·name="l00036"></a><span·class="lineno">···36</span>{</div>84 <div·class="line"><a·id="l00036"·name="l00036"></a><span·class="lineno">···36</span>{</div>
 85 <div·class="line"><a·id="l00037"·name="l00037"></a><span·class="lineno">···37</span>····return·d_imageContext·&amp;&amp;·d_pixels;</div>
85 <div·class="line"><a·id="l00037"·name="l00037"></a><span·class="lineno">···37</span>}</div>86 <div·class="line"><a·id="l00038"·name="l00038"></a><span·class="lineno">···38</span>}</div>
86 <div·class="line"><a·id="l00038"·name="l00038"></a><span·class="lineno">···38</span>inline·ImageLoader::~ImageLoader()</div> 
87 <div·class="line"><a·id="l00039"·name="l00039"></a><span·class="lineno">···39</span>{·······</div>87 <div·class="line"><a·id="l00039"·name="l00039"></a><span·class="lineno">···39</span>·</div>
88 <div·class="line"><a·id="l00040"·name="l00040"></a><span·class="lineno">···40</span>}</div> 
89 <div·class="line"><a·id="l00041"·name="l00041"></a><span·class="lineno">···41</span>inline·const·char*·ImageLoader::getIdentifierString()·const</div>88 <div·class="line"><a·id="l00040"·name="l00040"></a><span·class="lineno">···40</span>inline·size_t·Image::getWidth()·const</div>
90 <div·class="line"><a·id="l00042"·name="l00042"></a><span·class="lineno">···42</span>{</div>89 <div·class="line"><a·id="l00041"·name="l00041"></a><span·class="lineno">···41</span>{</div>
 90 <div·class="line"><a·id="l00042"·name="l00042"></a><span·class="lineno">···42</span>····return·d_imageContext-&gt;getWidth();</div>
91 <div·class="line"><a·id="l00043"·name="l00043"></a><span·class="lineno">···43</span>····return·d_name;</div>91 <div·class="line"><a·id="l00043"·name="l00043"></a><span·class="lineno">···43</span>}</div>
92 <div·class="line"><a·id="l00044"·name="l00044"></a><span·class="lineno">···44</span>}</div>92 <div·class="line"><a·id="l00044"·name="l00044"></a><span·class="lineno">···44</span>·</div>
 93 <div·class="line"><a·id="l00045"·name="l00045"></a><span·class="lineno">···45</span>inline·size_t·Image::getHeight()·const</div>
 94 <div·class="line"><a·id="l00046"·name="l00046"></a><span·class="lineno">···46</span>{</div>
 95 <div·class="line"><a·id="l00047"·name="l00047"></a><span·class="lineno">···47</span>····return·d_imageContext-&gt;getHeight();</div>
 96 <div·class="line"><a·id="l00048"·name="l00048"></a><span·class="lineno">···48</span>}</div>
93 <div·class="line"><a·id="l00045"·name="l00045"></a><span·class="lineno">···45</span>·</div>97 <div·class="line"><a·id="l00049"·name="l00049"></a><span·class="lineno">···49</span>·</div>
 98 <div·class="line"><a·id="l00050"·name="l00050"></a><span·class="lineno">···50</span>inline·PixelFormat·Image::getSourcePixelFormat()·const</div>
 99 <div·class="line"><a·id="l00051"·name="l00051"></a><span·class="lineno">···51</span>{</div>
94 <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="l00052"·name="l00052"></a><span·class="lineno">···52</span>····return·d_pfSource;</div>
 101 <div·class="line"><a·id="l00053"·name="l00053"></a><span·class="lineno">···53</span>}</div>
95 <div·class="line"><a·id="l00047"·name="l00047"></a><span·class="lineno">···47</span>·</div>102 <div·class="line"><a·id="l00054"·name="l00054"></a><span·class="lineno">···54</span>·</div>
 103 <div·class="line"><a·id="l00055"·name="l00055"></a><span·class="lineno">···55</span>inline·PixelFormat·Image::getPixelFormat()·const</div>
 104 <div·class="line"><a·id="l00056"·name="l00056"></a><span·class="lineno">···56</span>{</div>
 105 <div·class="line"><a·id="l00057"·name="l00057"></a><span·class="lineno">···57</span>····return·d_imageContext-&gt;getPixelFormat();</div>
 106 <div·class="line"><a·id="l00058"·name="l00058"></a><span·class="lineno">···58</span>}</div>
 107 <div·class="line"><a·id="l00059"·name="l00059"></a><span·class="lineno">···59</span>·</div>
 108 <div·class="line"><a·id="l00060"·name="l00060"></a><span·class="lineno">···60</span>inline·const·byte*·Image::getPixelsDataPtr()·const</div>
 109 <div·class="line"><a·id="l00061"·name="l00061"></a><span·class="lineno">···61</span>{</div>
 110 <div·class="line"><a·id="l00062"·name="l00062"></a><span·class="lineno">···62</span>····return·d_pixels;</div>
 111 <div·class="line"><a·id="l00063"·name="l00063"></a><span·class="lineno">···63</span>}</div>
 112 <div·class="line"><a·id="l00064"·name="l00064"></a><span·class="lineno">···64</span>·</div>
 113 <div·class="line"><a·id="l00065"·name="l00065"></a><span·class="lineno">···65</span>inline·size_t·Image::getPixelsDataSize()·const</div>
 114 <div·class="line"><a·id="l00066"·name="l00066"></a><span·class="lineno">···66</span>{</div>
 115 <div·class="line"><a·id="l00067"·name="l00067"></a><span·class="lineno">···67</span>····return·getWidth()·*·getHeight()·*·d_bpp;</div>
 116 <div·class="line"><a·id="l00068"·name="l00068"></a><span·class="lineno">···68</span>}</div>
 117 <div·class="line"><a·id="l00069"·name="l00069"></a><span·class="lineno">···69</span>·</div>
 118 <div·class="line"><a·id="l00070"·name="l00070"></a><span·class="lineno">···70</span>inline·Image::~Image()</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>····delete·[]·d_pixels;</div>
 121 <div·class="line"><a·id="l00073"·name="l00073"></a><span·class="lineno">···73</span>····if·(d_imageLoader)</div>
 122 <div·class="line"><a·id="l00074"·name="l00074"></a><span·class="lineno">···74</span>········d_imageLoader-&gt;destroyContext(d_imageContext);</div>
 123 <div·class="line"><a·id="l00075"·name="l00075"></a><span·class="lineno">···75</span>}</div>
 124 <div·class="line"><a·id="l00076"·name="l00076"></a><span·class="lineno">···76</span>inline·const·char*·Image::getLoaderIdentifierString()·const</div>
 125 <div·class="line"><a·id="l00077"·name="l00077"></a><span·class="lineno">···77</span>{</div>
 126 <div·class="line"><a·id="l00078"·name="l00078"></a><span·class="lineno">···78</span>····if·(d_imageLoader)</div>
 127 <div·class="line"><a·id="l00079"·name="l00079"></a><span·class="lineno">···79</span>········return·d_imageLoader-&gt;getIdentifierString();</div>
 128 <div·class="line"><a·id="l00080"·name="l00080"></a><span·class="lineno">···80</span>····return·0;</div>
 129 <div·class="line"><a·id="l00081"·name="l00081"></a><span·class="lineno">···81</span>}</div>
 130 <div·class="line"><a·id="l00082"·name="l00082"></a><span·class="lineno">···82</span>·</div>
 131 <div·class="line"><a·id="l00083"·name="l00083"></a><span·class="lineno">···83</span>}·//·End·of·section·namespace·SILLY</div>
 132 <div·class="line"><a·id="l00084"·name="l00084"></a><span·class="lineno">···84</span>·</div>
96 </div><!--·fragment·--></div><!--·contents·-->133 </div><!--·fragment·--></div><!--·contents·-->
97 <!--·start·footer·part·-->134 <!--·start·footer·part·-->
98 <hr·class="footer"/><address·class="footer"><small>135 <hr·class="footer"/><address·class="footer"><small>
99 Generated·by&#160;<a·href="https://www.doxygen.org/index.html"><img·class="footer"·src="doxygen.svg"·width="104"·height="31"·alt="doxygen"/></a>·1.9.4136 Generated·by&#160;<a·href="https://www.doxygen.org/index.html"><img·class="footer"·src="doxygen.svg"·width="104"·height="31"·alt="doxygen"/></a>·1.9.4
100 </small></address>137 </small></address>
101 </body>138 </body>
102 </html>139 </html>
2.59 KB
html2text {}
    
Offset 4, 21 lines modifiedOffset 4, 21 lines modified
  
4 Simple·Image·Loading·LibrarY 0.1.04 Simple·Image·Loading·LibrarY 0.1.0
  
5 ····*·build5 ····*·build
6 ····*·reproducible-path6 ····*·reproducible-path
7 ····*·silly-0.1.07 ····*·silly-0.1.0
8 ····*·include8 ····*·include
9 SILLYImageLoader.icpp9 SILLYImage.icpp
10 ·1/***********************************************************************10 ·1/***********************************************************************
11 ·2·filename:·ImageLoader.icpp11 ·2·filename:·SILLYImage.icpp
12 ·3·created:·10·Jun·200612 ·3·created:·10·Jun·2006
13 ·4·author:·Olivier·Delannoy13 ·4·author:·Olivier·Delannoy
14 ·514 ·5
15 ·6·purpose:·Inline·function·definition·for·ImageLoader·class15 ·6·purpose:·Inline·definition·of·the·image·class
16 ·7*************************************************************************/16 ·7*************************************************************************/
17 ·8/***************************************************************************17 ·8/***************************************************************************
18 ·9·*·Copyright·(C)·2004·-·2006·Paul·D·Turner·&·The·CEGUI·Development·Team18 ·9·*·Copyright·(C)·2004·-·2006·Paul·D·Turner·&·The·CEGUI·Development·Team
19 ·10·*19 ·10·*
20 ·11·*·Permission·is·hereby·granted,·free·of·charge,·to·any·person·obtaining20 ·11·*·Permission·is·hereby·granted,·free·of·charge,·to·any·person·obtaining
21 ·12·*·a·copy·of·this·software·and·associated·documentation·files·(the21 ·12·*·a·copy·of·this·software·and·associated·documentation·files·(the
22 ·13·*·"Software"),·to·deal·in·the·Software·without·restriction,·including22 ·13·*·"Software"),·to·deal·in·the·Software·without·restriction,·including
Offset 39, 24 lines modifiedOffset 39, 61 lines modified
39 ·28·*·OTHER·DEALINGS·IN·THE·SOFTWARE.39 ·28·*·OTHER·DEALINGS·IN·THE·SOFTWARE.
40 ·2940 ·29
41 ***************************************************************************/41 ***************************************************************************/
42 ·3042 ·30
43 ·31//·Start·of·section·namespace·SILLY43 ·31//·Start·of·section·namespace·SILLY
44 ·32namespace·SILLY44 ·32namespace·SILLY
45 ·33{45 ·33{
46 ·34inline·ImageLoader::ImageLoader(const·char*·name) 
47 ·35·:·d_name(name)46 ·34
 47 ·35inline·bool·Image::isValid()·const
48 ·36{48 ·36{
 49 ·37·return·d_imageContext·&&·d_pixels;
49 ·37}50 ·38}
50 ·38inline·ImageLoader::~ImageLoader() 
51 ·39{51 ·39
 52 ·40inline·size_t·Image::getWidth()·const
 53 ·41{
 54 ·42·return·d_imageContext->getWidth();
52 ·40}55 ·43}
 56 ·44
 57 ·45inline·size_t·Image::getHeight()·const
 58 ·46{
 59 ·47·return·d_imageContext->getHeight();
 60 ·48}
 61 ·49
 62 ·50inline·PixelFormat·Image::getSourcePixelFormat()·const
 63 ·51{
 64 ·52·return·d_pfSource;
 65 ·53}
 66 ·54
 67 ·55inline·PixelFormat·Image::getPixelFormat()·const
 68 ·56{
 69 ·57·return·d_imageContext->getPixelFormat();
 70 ·58}
 71 ·59
 72 ·60inline·const·byte*·Image::getPixelsDataPtr()·const
 73 ·61{
 74 ·62·return·d_pixels;
 75 ·63}
 76 ·64
 77 ·65inline·size_t·Image::getPixelsDataSize()·const
 78 ·66{
 79 ·67·return·getWidth()·*·getHeight()·*·d_bpp;
 80 ·68}
 81 ·69
 82 ·70inline·Image::~Image()
 83 ·71{
 84 ·72·delete·[]·d_pixels;
 85 ·73·if·(d_imageLoader)
 86 ·74·d_imageLoader->destroyContext(d_imageContext);
 87 ·75}
53 ·41inline·const·char*·ImageLoader::getIdentifierString()·const88 ·76inline·const·char*·Image::getLoaderIdentifierString()·const
54 ·42{ 
55 ·43·return·d_name; 
56 ·44} 
57 ·4589 ·77{
 90 ·78·if·(d_imageLoader)
 91 ·79·return·d_imageLoader->getIdentifierString();
 92 ·80·return·0;
 93 ·81}
 94 ·82
58 ·46}·//·End·of·section·namespace·SILLY95 ·83}·//·End·of·section·namespace·SILLY
59 ·4796 ·84
  
60 ===============================================================================97 ===============================================================================
61 ·····Generated·by [doxygen]·1.9.498 ·····Generated·by [doxygen]·1.9.4
26.5 KB
./usr/share/doc/libsilly-doc/html/a00053_source.html
    
Offset 1, 15 lines modifiedOffset 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">2 <html·xmlns="http://www.w3.org/1999/xhtml">
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.4"/>6 <meta·name="generator"·content="Doxygen·1.9.4"/>
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/SILLYBase.h·Source·File</title>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 39, 99 lines modifiedOffset 39, 67 lines modified
39 <div·id="main-nav"></div>39 <div·id="main-nav"></div>
40 <div·id="nav-path"·class="navpath">40 <div·id="nav-path"·class="navpath">
41 ··<ul>41 ··<ul>
42 <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>42 <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>
43 </div>43 </div>
44 </div><!--·top·-->44 </div><!--·top·-->
45 <div·class="header">45 <div·class="header">
46 ··<div·class="headertitle"><div·class="title">SILLYBase.h</div></div>46 ··<div·class="headertitle"><div·class="title">SILLYFileDataSource.icpp</div></div>
47 </div><!--header-->47 </div><!--header-->
48 <div·class="contents">48 <div·class="contents">
49 <div·class="fragment"><div·class="line"><a·id="l00001"·name="l00001"></a><span·class="lineno">····1</span><span·class="comment">/***********************************************************************</span></div>49 <div·class="fragment"><div·class="line"><a·id="l00001"·name="l00001"></a><span·class="lineno">····1</span>/***********************************************************************</div>
50 <div·class="line"><a·id="l00002"·name="l00002"></a><span·class="lineno">····2</span><span·class="comment">····filename:···SILLYBase.h</span></div>50 <div·class="line"><a·id="l00002"·name="l00002"></a><span·class="lineno">····2</span>····filename:···SILLYFileDataSource.icpp·</div>
51 <div·class="line"><a·id="l00003"·name="l00003"></a><span·class="lineno">····3</span><span·class="comment">····created:····2006/06/10</span></div>51 <div·class="line"><a·id="l00003"·name="l00003"></a><span·class="lineno">····3</span>····created:····20·Jul·2006</div>
52 <div·class="line"><a·id="l00004"·name="l00004"></a><span·class="lineno">····4</span><span·class="comment">····author:·····Olivier·Delannoy</span></div>52 <div·class="line"><a·id="l00004"·name="l00004"></a><span·class="lineno">····4</span>····author:·····Olivier·Delannoy</div>
53 <div·class="line"><a·id="l00005"·name="l00005"></a><span·class="lineno">····5</span><span·class="comment"></span>·</div>53 <div·class="line"><a·id="l00005"·name="l00005"></a><span·class="lineno">····5</span>·</div>
54 <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>54 <div·class="line"><a·id="l00006"·name="l00006"></a><span·class="lineno">····6</span>····purpose:····Inline·function·definition·for·the·FileDataSource·class···</div>
55 <div·class="line"><a·id="l00007"·name="l00007"></a><span·class="lineno">····7</span><span·class="comment">*************************************************************************/</span></div>55 <div·class="line"><a·id="l00007"·name="l00007"></a><span·class="lineno">····7</span>*************************************************************************/</div>
56 <div·class="line"><a·id="l00008"·name="l00008"></a><span·class="lineno">····8</span><span·class="comment">/***************************************************************************</span></div>56 <div·class="line"><a·id="l00008"·name="l00008"></a><span·class="lineno">····8</span>/***************************************************************************</div>
57 <div·class="line"><a·id="l00009"·name="l00009"></a><span·class="lineno">····9</span><span·class="comment">·*···Copyright·(C)·2004·-·2006·Paul·D·Turner·&amp;·The·CEGUI·Development·Team</span></div>57 <div·class="line"><a·id="l00009"·name="l00009"></a><span·class="lineno">····9</span>·*···Copyright·(C)·2004·-·2006·Paul·D·Turner·&amp;·The·CEGUI·Development·Team</div>
58 <div·class="line"><a·id="l00010"·name="l00010"></a><span·class="lineno">···10</span><span·class="comment">·*</span></div>58 <div·class="line"><a·id="l00010"·name="l00010"></a><span·class="lineno">···10</span>·*</div>
59 <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>59 <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>
60 <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>60 <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>
61 <div·class="line"><a·id="l00013"·name="l00013"></a><span·class="lineno">···13</span><span·class="comment">·*···&quot;Software&quot;),·to·deal·in·the·Software·without·restriction,·including</span></div>61 <div·class="line"><a·id="l00013"·name="l00013"></a><span·class="lineno">···13</span>·*···&quot;Software&quot;),·to·deal·in·the·Software·without·restriction,·including</div>
62 <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>62 <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>
63 <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>63 <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>
64 <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>64 <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>
65 <div·class="line"><a·id="l00017"·name="l00017"></a><span·class="lineno">···17</span><span·class="comment">·*···the·following·conditions:</span></div>65 <div·class="line"><a·id="l00017"·name="l00017"></a><span·class="lineno">···17</span>·*···the·following·conditions:</div>
66 <div·class="line"><a·id="l00018"·name="l00018"></a><span·class="lineno">···18</span><span·class="comment">·*</span></div>66 <div·class="line"><a·id="l00018"·name="l00018"></a><span·class="lineno">···18</span>·*</div>
67 <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>67 <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>
68 <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>68 <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>
69 <div·class="line"><a·id="l00021"·name="l00021"></a><span·class="lineno">···21</span><span·class="comment">·*</span></div>69 <div·class="line"><a·id="l00021"·name="l00021"></a><span·class="lineno">···21</span>·*</div>
70 <div·class="line"><a·id="l00022"·name="l00022"></a><span·class="lineno">···22</span><span·class="comment">·*···THE·SOFTWARE·IS·PROVIDED·&quot;AS·IS&quot;,·WITHOUT·WARRANTY·OF·ANY·KIND,</span></div>70 <div·class="line"><a·id="l00022"·name="l00022"></a><span·class="lineno">···22</span>·*···THE·SOFTWARE·IS·PROVIDED·&quot;AS·IS&quot;,·WITHOUT·WARRANTY·OF·ANY·KIND,</div>
71 <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>71 <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>
72 <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>72 <div·class="line"><a·id="l00024"·name="l00024"></a><span·class="lineno">···24</span>·*···MERCHANTABILITY,·FITNESS·FOR·A·PARTICULAR·PURPOSE·AND·NONINFRINGEMENT.</div>
73 <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>73 <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>
74 <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>74 <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>
75 <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>75 <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>
76 <div·class="line"><a·id="l00028"·name="l00028"></a><span·class="lineno">···28</span><span·class="comment">·*···OTHER·DEALINGS·IN·THE·SOFTWARE.</span></div>76 <div·class="line"><a·id="l00028"·name="l00028"></a><span·class="lineno">···28</span>·*···OTHER·DEALINGS·IN·THE·SOFTWARE.</div>
77 <div·class="line"><a·id="l00029"·name="l00029"></a><span·class="lineno">···29</span><span·class="comment">·***************************************************************************/</span></div>77 <div·class="line"><a·id="l00029"·name="l00029"></a><span·class="lineno">···29</span>·***************************************************************************/</div>
78 <div·class="line"><a·id="l00030"·name="l00030"></a><span·class="lineno">···30</span><span·class="preprocessor">#ifndef·_SILLYBase_h_·</span></div> 
79 <div·class="line"><a·id="l00031"·name="l00031"></a><span·class="lineno">···31</span><span·class="preprocessor">#define·_SILLYBase_h_·</span></div> 
80 <div·class="line"><a·id="l00032"·name="l00032"></a><span·class="lineno">···32</span><span·class="preprocessor">#include·&lt;cassert&gt;</span></div> 
81 <div·class="line"><a·id="l00033"·name="l00033"></a><span·class="lineno">···33</span><span·class="preprocessor">#include·&lt;cstddef&gt;</span></div> 
82 <div·class="line"><a·id="l00034"·name="l00034"></a><span·class="lineno">···34</span>·</div>78 <div·class="line"><a·id="l00030"·name="l00030"></a><span·class="lineno">···30</span>·</div>
 79 <div·class="line"><a·id="l00031"·name="l00031"></a><span·class="lineno">···31</span>//·Start·of·section·namespace·SILLY</div>
83 <div·class="line"><a·id="l00035"·name="l00035"></a><span·class="lineno">···35</span><span·class="preprocessor">#if·defined(USE_SILLYOPTIONS_H)</span></div>80 <div·class="line"><a·id="l00032"·name="l00032"></a><span·class="lineno">···32</span>namespace·SILLY</div>
84 <div·class="line"><a·id="l00036"·name="l00036"></a><span·class="lineno">···36</span><span·class="preprocessor">#include·&quot;SILLYOptions.h&quot;</span></div>81 <div·class="line"><a·id="l00033"·name="l00033"></a><span·class="lineno">···33</span>{</div>
 82 <div·class="line"><a·id="l00034"·name="l00034"></a><span·class="lineno">···34</span>inline·bool·FileDataSource::isValid()·const·</div>
 83 <div·class="line"><a·id="l00035"·name="l00035"></a><span·class="lineno">···35</span>{</div>
 84 <div·class="line"><a·id="l00036"·name="l00036"></a><span·class="lineno">···36</span>····return·d_error;</div>
85 <div·class="line"><a·id="l00037"·name="l00037"></a><span·class="lineno">···37</span><span·class="preprocessor">#endif</span></div>85 <div·class="line"><a·id="l00037"·name="l00037"></a><span·class="lineno">···37</span>}</div>
86 <div·class="line"><a·id="l00038"·name="l00038"></a><span·class="lineno">···38</span>·</div>86 <div·class="line"><a·id="l00038"·name="l00038"></a><span·class="lineno">···38</span>·</div>
87 <div·class="line"><a·id="l00039"·name="l00039"></a><span·class="lineno">···39</span><span·class="preprocessor">#if·defined(_WIN32)·||·defined(__WIN32__)</span></div> 
88 <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> 
89 <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>87 <div·class="line"><a·id="l00039"·name="l00039"></a><span·class="lineno">···39</span>inline·const·byte*·FileDataSource::getDataPtr()·const</div>
 88 <div·class="line"><a·id="l00040"·name="l00040"></a><span·class="lineno">···40</span>{</div>
 89 <div·class="line"><a·id="l00041"·name="l00041"></a><span·class="lineno">···41</span>····return·d_bytes;</div>
90 <div·class="line"><a·id="l00042"·name="l00042"></a><span·class="lineno">···42</span><span·class="preprocessor">#···ifdef·SILLY_EXPORTS</span></div>90 <div·class="line"><a·id="l00042"·name="l00042"></a><span·class="lineno">···42</span>}</div>
91 <div·class="line"><a·id="l00043"·name="l00043"></a><span·class="lineno">···43</span><span·class="preprocessor">#·······define·SILLY_EXPORT·__declspec(dllexport)</span></div> 
92 <div·class="line"><a·id="l00044"·name="l00044"></a><span·class="lineno">···44</span><span·class="preprocessor">#···else</span></div>91 <div·class="line"><a·id="l00043"·name="l00043"></a><span·class="lineno">···43</span>·</div>
93 <div·class="line"><a·id="l00045"·name="l00045"></a><span·class="lineno">···45</span><span·class="preprocessor">#·······define·SILLY_EXPORT·__declspec(dllimport)</span></div>92 <div·class="line"><a·id="l00044"·name="l00044"></a><span·class="lineno">···44</span>inline·size_t·FileDataSource::getSize()·const</div>
 93 <div·class="line"><a·id="l00045"·name="l00045"></a><span·class="lineno">···45</span>{</div>
94 <div·class="line"><a·id="l00046"·name="l00046"></a><span·class="lineno">···46</span><span·class="preprocessor">#···endif</span></div>94 <div·class="line"><a·id="l00046"·name="l00046"></a><span·class="lineno">···46</span>····return·d_size;</div>
95 <div·class="line"><a·id="l00047"·name="l00047"></a><span·class="lineno">···47</span><span·class="preprocessor">#else</span></div>95 <div·class="line"><a·id="l00047"·name="l00047"></a><span·class="lineno">···47</span>}</div>
96 <div·class="line"><a·id="l00048"·name="l00048"></a><span·class="lineno">···48</span><span·class="preprocessor">#···define·SILLY_EXPORT</span></div> 
97 <div·class="line"><a·id="l00049"·name="l00049"></a><span·class="lineno">···49</span><span·class="preprocessor">#endif</span></div>96 <div·class="line"><a·id="l00048"·name="l00048"></a><span·class="lineno">···48</span>·</div>
 97 <div·class="line"><a·id="l00049"·name="l00049"></a><span·class="lineno">···49</span>}·//·End·of·section·namespace·SILLY</div>
98 <div·class="line"><a·id="l00050"·name="l00050"></a><span·class="lineno">···50</span>·</div>98 <div·class="line"><a·id="l00050"·name="l00050"></a><span·class="lineno">···50</span>·</div>
99 <div·class="line"><a·id="l00051"·name="l00051"></a><span·class="lineno">···51</span><span·class="comment">//·Start·of·section·namespace·SILLY·</span></div> 
100 <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> 
101 <div·class="line"><a·id="l00053"·name="l00053"></a><span·class="lineno">···53</span>{</div> 
102 <div·class="line"><a·id="l00054"·name="l00054"></a><span·class="lineno">···54</span>·</div> 
103 <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> 
104 <div·class="line"><a·id="l00060"·name="l00060"></a><span·class="lineno">···60</span>{</div> 
105 <div·class="line"><a·id="l00061"·name="l00061"></a><span·class="lineno">···61</span>····PF_A1B5G5R5,····<span·class="comment">//&lt;!·16·bits,·pixel·format·is·A1R5G5B5·(GGGBBBBB,ARRRRRGG·on·disk)</span></div> 
106 <div·class="line"><a·id="l00062"·name="l00062"></a><span·class="lineno">···62</span>····PF_RGB,·········<span·class="comment">//&lt;!·24·bits,·pixel·format·is·8·bits·for·R,·G,·B·</span></div> 
107 <div·class="line"><a·id="l00063"·name="l00063"></a><span·class="lineno">···63</span>····PF_RGBA,········<span·class="comment">//&lt;!·32·bits,·pixel·format·is·8·bits·for·R,·G,·B·and·A·channel·····</span></div> 
108 <div·class="line"><a·id="l00064"·name="l00064"></a><span·class="lineno">···64</span>····PF_ORIGIN,······<span·class="comment">//&lt;!·This·format·is·used·when·the·input·storage·use·a·specific·pixel·format·</span></div> 
109 <div·class="line"><a·id="l00065"·name="l00065"></a><span·class="lineno">···65</span>};</div> 
110 <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> 
111 <div·class="line"><a·id="l00071"·name="l00071"></a><span·class="lineno">···71</span>{</div> 
112 <div·class="line"><a·id="l00072"·name="l00072"></a><span·class="lineno">···72</span>····PO_TOP_LEFT,·····<span·class="comment">//&lt;!·The·resulting·image·origine·is·Top·Left</span></div> 
113 <div·class="line"><a·id="l00073"·name="l00073"></a><span·class="lineno">···73</span>····PO_BOTTOM_LEFT,··<span·class="comment">//&lt;!·The·resulting·image·origine·is·Bottom·Left</span></div> 
114 <div·class="line"><a·id="l00074"·name="l00074"></a><span·class="lineno">···74</span>};</div> 
115 <div·class="line"><a·id="l00075"·name="l00075"></a><span·class="lineno">···75</span>·</div> 
116 <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> 
117 <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> 
118 <div·class="line"><a·id="l00089"·name="l00089"></a><span·class="lineno">···89</span>·</div> 
119 <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> 
120 <div·class="line"><a·id="l00095"·name="l00095"></a><span·class="lineno">···95</span>·</div> 
121 <div·class="line"><a·id="l00096"·name="l00096"></a><span·class="lineno">···96</span>}·<span·class="comment">//·End·of·section·namespace·SILLY·</span></div> 
122 <div·class="line"><a·id="l00097"·name="l00097"></a><span·class="lineno">···97</span>·</div> 
123 <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> 
124 <div·class="line"><a·id="l00099"·name="l00099"></a><span·class="lineno">···99</span>·</div> 
125 <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="a00020_source.html#l00045">SILLYJPGImageContext.cpp:46</a></div></div> 
126 <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="a00053_source.html#l00080">SILLYBase.h:80</a></div></div> 
127 <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="a00038_source.html#l00100">SILLYImageLoaderManager.cpp:100</a></div></div> 
128 <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="a00053_source.html#l00059">SILLYBase.h:60</a></div></div> 
129 <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="a00038_source.html#l00087">SILLYImageLoaderManager.cpp:87</a></div></div> 
130 <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="a00053_source.html#l00070">SILLYBase.h:71</a></div></div> 
131 </div><!--·fragment·--></div><!--·contents·-->99 </div><!--·fragment·--></div><!--·contents·-->
132 <!--·start·footer·part·-->100 <!--·start·footer·part·-->
133 <hr·class="footer"/><address·class="footer"><small>101 <hr·class="footer"/><address·class="footer"><small>
134 Generated·by&#160;<a·href="https://www.doxygen.org/index.html"><img·class="footer"·src="doxygen.svg"·width="104"·height="31"·alt="doxygen"/></a>·1.9.4102 Generated·by&#160;<a·href="https://www.doxygen.org/index.html"><img·class="footer"·src="doxygen.svg"·width="104"·height="31"·alt="doxygen"/></a>·1.9.4
135 </small></address>103 </small></address>
136 </body>104 </body>
137 </html>105 </html>
3.75 KB
html2text {}
    
Offset 4, 21 lines modifiedOffset 4, 21 lines modified
  
4 Simple·Image·Loading·LibrarY 0.1.04 Simple·Image·Loading·LibrarY 0.1.0
  
5 ····*·build5 ····*·build
6 ····*·reproducible-path6 ····*·reproducible-path
7 ····*·silly-0.1.07 ····*·silly-0.1.0
8 ····*·include8 ····*·include
9 SILLYBase.h9 SILLYFileDataSource.icpp
10 ·1/***********************************************************************10 ·1/***********************************************************************
11 ·2·filename:·SILLYBase.h 
12 ·3·created:·2006/06/1011 ·2·filename:·SILLYFileDataSource.icpp
 12 ·3·created:·20·Jul·2006
13 ·4·author:·Olivier·Delannoy13 ·4·author:·Olivier·Delannoy
14 ·514 ·5
15 ·6·purpose:·Common·header·for·the·SILLY·library15 ·6·purpose:·Inline·function·definition·for·the·FileDataSource·class
16 ·7*************************************************************************/16 ·7*************************************************************************/
17 ·8/***************************************************************************17 ·8/***************************************************************************
18 ·9·*·Copyright·(C)·2004·-·2006·Paul·D·Turner·&·The·CEGUI·Development·Team18 ·9·*·Copyright·(C)·2004·-·2006·Paul·D·Turner·&·The·CEGUI·Development·Team
19 ·10·*19 ·10·*
20 ·11·*·Permission·is·hereby·granted,·free·of·charge,·to·any·person·obtaining20 ·11·*·Permission·is·hereby·granted,·free·of·charge,·to·any·person·obtaining
21 ·12·*·a·copy·of·this·software·and·associated·documentation·files·(the21 ·12·*·a·copy·of·this·software·and·associated·documentation·files·(the
22 ·13·*·"Software"),·to·deal·in·the·Software·without·restriction,·including22 ·13·*·"Software"),·to·deal·in·the·Software·without·restriction,·including
Offset 35, 82 lines modifiedOffset 35, 31 lines modified
35 ·24·*·MERCHANTABILITY,·FITNESS·FOR·A·PARTICULAR·PURPOSE·AND·NONINFRINGEMENT.35 ·24·*·MERCHANTABILITY,·FITNESS·FOR·A·PARTICULAR·PURPOSE·AND·NONINFRINGEMENT.
36 ·25·*·IN·NO·EVENT·SHALL·THE·AUTHORS·BE·LIABLE·FOR·ANY·CLAIM,·DAMAGES·OR36 ·25·*·IN·NO·EVENT·SHALL·THE·AUTHORS·BE·LIABLE·FOR·ANY·CLAIM,·DAMAGES·OR
37 ·26·*·OTHER·LIABILITY,·WHETHER·IN·AN·ACTION·OF·CONTRACT,·TORT·OR·OTHERWISE,37 ·26·*·OTHER·LIABILITY,·WHETHER·IN·AN·ACTION·OF·CONTRACT,·TORT·OR·OTHERWISE,
38 ·27·*·ARISING·FROM,·OUT·OF·OR·IN·CONNECTION·WITH·THE·SOFTWARE·OR·THE·USE·OR38 ·27·*·ARISING·FROM,·OUT·OF·OR·IN·CONNECTION·WITH·THE·SOFTWARE·OR·THE·USE·OR
39 ·28·*·OTHER·DEALINGS·IN·THE·SOFTWARE.39 ·28·*·OTHER·DEALINGS·IN·THE·SOFTWARE.
40 ·2940 ·29
41 ***************************************************************************/41 ***************************************************************************/
42 ·30#ifndef·_SILLYBase_h_ 
43 ·31#define·_SILLYBase_h_ 
44 ·32#include·<cassert> 
45 ·33#include·<cstddef> 
46 ·34 
47 ·35#if·defined(USE_SILLYOPTIONS_H) 
48 ·36#include·"SILLYOptions.h" 
49 ·37#endif42 ·30
 43 ·31//·Start·of·section·namespace·SILLY
 44 ·32namespace·SILLY
 45 ·33{
 46 ·34inline·bool·FileDataSource::isValid()·const
 47 ·35{
 48 ·36·return·d_error;
 49 ·37}
50 ·3850 ·38
51 ·39#if·defined(_WIN32)·||·defined(__WIN32__) 
52 ·40#·undef·SILLY_OPT_INLINE·//·No·inlining 
53 ·41#·undef·SILLY_BE·//·Little·Endian 
54 ·42#·ifdef·SILLY_EXPORTS 
55 ·43#·define·SILLY_EXPORT·__declspec(dllexport) 
56 ·44#·else 
57 ·45#·define·SILLY_EXPORT·__declspec(dllimport) 
58 ·46#·endif 
59 ·47#else 
60 ·48#·define·SILLY_EXPORT 
61 ·49#endif51 ·39inline·const·byte*·FileDataSource::getDataPtr()·const
 52 ·40{
 53 ·41·return·d_bytes;
 54 ·42}
 55 ·43
 56 ·44inline·size_t·FileDataSource::getSize()·const
 57 ·45{
 58 ·46·return·d_size;
 59 ·47}
 60 ·48
 61 ·49}·//·End·of·section·namespace·SILLY
62 ·5062 ·50
63 ·51//·Start·of·section·namespace·SILLY 
64 ·52namespace·SILLY 
65 ·53{ 
66 ·54 
67 59enum·PixelFormat 
68 ·60{ 
69 ·61·PF_A1B5G5R5,·//<!·16·bits,·pixel·format·is·A1R5G5B5·(GGGBBBBB,ARRRRRGG·on 
70 disk) 
71 ·62·PF_RGB,·//<!·24·bits,·pixel·format·is·8·bits·for·R,·G,·B 
72 ·63·PF_RGBA,·//<!·32·bits,·pixel·format·is·8·bits·for·R,·G,·B·and·A·channel 
73 ·64·PF_ORIGIN,·//<!·This·format·is·used·when·the·input·storage·use·a·specific 
74 pixel·format 
75 ·65}; 
76 70enum·PixelOrigin 
77 ·71{ 
78 ·72·PO_TOP_LEFT,·//<!·The·resulting·image·origine·is·Top·Left 
79 ·73·PO_BOTTOM_LEFT,·//<!·The·resulting·image·origine·is·Bottom·Left 
80 ·74}; 
81 ·75 
82 80typedef·unsigned·char·byte; 
83 ·88bool·SILLY_EXPORT·SILLYInit(); 
84 ·89 
85 ·94void·SILLY_EXPORT·SILLYCleanup(); 
86 ·95 
87 ·96}·//·End·of·section·namespace·SILLY 
88 ·97 
89 ·98#endif·//·end·of·guard·_SILLYBase_h_ 
90 ·99 
91 SILLY 
92 Simple·Image·Loading·LibrarY·namespace. 
93 Definition:·SILLYJPGImageContext.cpp:46 
94 SILLY::byte 
95 unsigned·char·byte 
96 Typename·for·a·byte. 
97 Definition:·SILLYBase.h:80 
98 SILLY::SILLYCleanup 
99 void·SILLYCleanup() 
100 Cleanup·SILLY·library·internal. 
101 Definition:·SILLYImageLoaderManager.cpp:100 
102 SILLY::PixelFormat 
103 PixelFormat 
104 List·all·pixel·format·supported. 
105 Definition:·SILLYBase.h:60 
106 SILLY::SILLYInit 
107 bool·SILLYInit() 
108 Initialize·the·SILLY·Library. 
109 Definition:·SILLYImageLoaderManager.cpp:87 
110 SILLY::PixelOrigin 
111 PixelOrigin 
112 List·all·pixel·origin·supported. 
113 Definition:·SILLYBase.h:71 
  
114 ===============================================================================63 ===============================================================================
115 ·····Generated·by [doxygen]·1.9.464 ·····Generated·by [doxygen]·1.9.4
24.6 KB
./usr/share/doc/libsilly-doc/html/a00056_source.html
    
Offset 1, 15 lines modifiedOffset 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">2 <html·xmlns="http://www.w3.org/1999/xhtml">
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.4"/>6 <meta·name="generator"·content="Doxygen·1.9.4"/>
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/SILLYMemoryDataSource.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 35, 27 lines modifiedOffset 35, 27 lines modified
35 ··initMenu('',false,false,'search.php','Search');35 ··initMenu('',false,false,'search.php','Search');
36 });36 });
37 /*·@license-end·*/37 /*·@license-end·*/
38 </script>38 </script>
39 <div·id="main-nav"></div>39 <div·id="main-nav"></div>
40 <div·id="nav-path"·class="navpath">40 <div·id="nav-path"·class="navpath">
41 ··<ul>41 ··<ul>
42 <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>42 <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>
43 </div>43 </div>
44 </div><!--·top·-->44 </div><!--·top·-->
45 <div·class="header">45 <div·class="header">
46 ··<div·class="headertitle"><div·class="title">SILLYMemoryDataSource.h</div></div>46 ··<div·class="headertitle"><div·class="title">SILLYJPGImageLoader.h</div></div>
47 </div><!--header-->47 </div><!--header-->
48 <div·class="contents">48 <div·class="contents">
49 <div·class="fragment"><div·class="line"><a·id="l00001"·name="l00001"></a><span·class="lineno">····1</span><span·class="comment">/***********************************************************************</span></div>49 <div·class="fragment"><div·class="line"><a·id="l00001"·name="l00001"></a><span·class="lineno">····1</span><span·class="comment">/***********************************************************************</span></div>
50 <div·class="line"><a·id="l00002"·name="l00002"></a><span·class="lineno">····2</span><span·class="comment">····filename:···SILLYMemoryDataSource.h</span></div>50 <div·class="line"><a·id="l00002"·name="l00002"></a><span·class="lineno">····2</span><span·class="comment">····filename:···SILLYJPGImageLoader.h</span></div>
51 <div·class="line"><a·id="l00003"·name="l00003"></a><span·class="lineno">····3</span><span·class="comment">····created:····10·Jun·2006</span></div>51 <div·class="line"><a·id="l00003"·name="l00003"></a><span·class="lineno">····3</span><span·class="comment">····created:····11·Jun·2006</span></div>
52 <div·class="line"><a·id="l00004"·name="l00004"></a><span·class="lineno">····4</span><span·class="comment">····author:·····Olivier·Delannoy·</span></div>52 <div·class="line"><a·id="l00004"·name="l00004"></a><span·class="lineno">····4</span><span·class="comment">····author:·····Olivier·Delannoy</span></div>
53 <div·class="line"><a·id="l00005"·name="l00005"></a><span·class="lineno">····5</span><span·class="comment"></span>·</div>53 <div·class="line"><a·id="l00005"·name="l00005"></a><span·class="lineno">····5</span><span·class="comment"></span>·</div>
54 <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>54 <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>
55 <div·class="line"><a·id="l00007"·name="l00007"></a><span·class="lineno">····7</span><span·class="comment">*************************************************************************/</span></div>55 <div·class="line"><a·id="l00007"·name="l00007"></a><span·class="lineno">····7</span><span·class="comment">*************************************************************************/</span></div>
56 <div·class="line"><a·id="l00008"·name="l00008"></a><span·class="lineno">····8</span><span·class="comment">/***************************************************************************</span></div>56 <div·class="line"><a·id="l00008"·name="l00008"></a><span·class="lineno">····8</span><span·class="comment">/***************************************************************************</span></div>
57 <div·class="line"><a·id="l00009"·name="l00009"></a><span·class="lineno">····9</span><span·class="comment">·*···Copyright·(C)·2004·-·2006·Paul·D·Turner·&amp;·The·CEGUI·Development·Team</span></div>57 <div·class="line"><a·id="l00009"·name="l00009"></a><span·class="lineno">····9</span><span·class="comment">·*···Copyright·(C)·2004·-·2006·Paul·D·Turner·&amp;·The·CEGUI·Development·Team</span></div>
58 <div·class="line"><a·id="l00010"·name="l00010"></a><span·class="lineno">···10</span><span·class="comment">·*</span></div>58 <div·class="line"><a·id="l00010"·name="l00010"></a><span·class="lineno">···10</span><span·class="comment">·*</span></div>
59 <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>59 <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>
60 <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>60 <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>
61 <div·class="line"><a·id="l00013"·name="l00013"></a><span·class="lineno">···13</span><span·class="comment">·*···&quot;Software&quot;),·to·deal·in·the·Software·without·restriction,·including</span></div>61 <div·class="line"><a·id="l00013"·name="l00013"></a><span·class="lineno">···13</span><span·class="comment">·*···&quot;Software&quot;),·to·deal·in·the·Software·without·restriction,·including</span></div>
Offset 71, 50 lines modifiedOffset 71, 50 lines modified
71 <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>71 <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>
72 <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>72 <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>
73 <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>73 <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>
74 <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>74 <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>
75 <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>75 <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>
76 <div·class="line"><a·id="l00028"·name="l00028"></a><span·class="lineno">···28</span><span·class="comment">·*···OTHER·DEALINGS·IN·THE·SOFTWARE.</span></div>76 <div·class="line"><a·id="l00028"·name="l00028"></a><span·class="lineno">···28</span><span·class="comment">·*···OTHER·DEALINGS·IN·THE·SOFTWARE.</span></div>
77 <div·class="line"><a·id="l00029"·name="l00029"></a><span·class="lineno">···29</span><span·class="comment">·***************************************************************************/</span></div>77 <div·class="line"><a·id="l00029"·name="l00029"></a><span·class="lineno">···29</span><span·class="comment">·***************************************************************************/</span></div>
78 <div·class="line"><a·id="l00030"·name="l00030"></a><span·class="lineno">···30</span><span·class="preprocessor">#ifndef·_SILLYMemoryDataSource_h_·</span></div>78 <div·class="line"><a·id="l00030"·name="l00030"></a><span·class="lineno">···30</span><span·class="preprocessor">#ifndef·_SILLYJPGImageLoader_h_·</span></div>
79 <div·class="line"><a·id="l00031"·name="l00031"></a><span·class="lineno">···31</span><span·class="preprocessor">#define·_SILLYMemoryDataSource_h_</span></div>79 <div·class="line"><a·id="l00031"·name="l00031"></a><span·class="lineno">···31</span><span·class="preprocessor">#define·_SILLYJPGImageLoader_h_</span></div>
80 <div·class="line"><a·id="l00032"·name="l00032"></a><span·class="lineno">···32</span><span·class="preprocessor">#include·&quot;SILLYBase.h&quot;</span>·</div>80 <div·class="line"><a·id="l00032"·name="l00032"></a><span·class="lineno">···32</span><span·class="preprocessor">#include·&quot;SILLYBase.h&quot;</span></div>
81 <div·class="line"><a·id="l00033"·name="l00033"></a><span·class="lineno">···33</span><span·class="preprocessor">#include·&quot;SILLYDataSource.h&quot;</span>·</div>81 <div·class="line"><a·id="l00033"·name="l00033"></a><span·class="lineno">···33</span><span·class="preprocessor">#include·&quot;SILLYImageLoader.h&quot;</span>·</div>
82 <div·class="line"><a·id="l00034"·name="l00034"></a><span·class="lineno">···34</span><span·class="comment">//·Start·of·section·namespace·SILLY·</span></div>82 <div·class="line"><a·id="l00034"·name="l00034"></a><span·class="lineno">···34</span><span·class="comment">//·Start·of·section·namespace·SILLY·</span></div>
83 <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="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>
84 <div·class="line"><a·id="l00036"·name="l00036"></a><span·class="lineno">···36</span>{</div>84 <div·class="line"><a·id="l00036"·name="l00036"></a><span·class="lineno">···36</span>{</div>
85 <div·class="line"><a·id="l00037"·name="l00037"></a><span·class="lineno">···37</span>·</div>85 <div·class="line"><a·id="l00037"·name="l00037"></a><span·class="lineno">···37</span>··</div>
86 <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="co[·...·truncated·by·diffoscope;·len:·47,·SHA:·35a4a24aabffba0480e997661ce2ab625e3b9e71ec35dce77abc403254fe6509·...·]</div>86 <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:·32,·SHA:·2128c152ce27c8d310d2f1d8920b83cea27c202d1c010999d5cb94fb540edfd1·...·]</div>
87 <div·class="line"><a·id="l00049"·name="l00049"></a><span·class="lineno">···49</span>{</div>87 <div·class="line"><a·id="l00043"·name="l00043"></a><span·class="lineno">···43</span>{</div>
88 <div·class="line"><a·id="l00050"·name="l00050"></a><span·class="lineno">···50</span><span·class="keyword">public</span>:</div>88 <div·class="line"><a·id="l00044"·name="l00044"></a><span·class="lineno">···44</span><span·class="keyword">public</span>:</div>
 89 <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>
 90 <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>
 91 <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>&amp;·header,·<a·class="code·hl_class"·href="a00969.html">DataSource</a>*·data);</div>
 92 <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>
89 <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> 
90 <div·class="line"><a·id="l00064"·name="l00064"></a><span·class="lineno">···64</span>·</div> 
91 <div·class="line"><a·id="l00065"·name="l00065"></a><span·class="lineno">···65</span>·</div> 
92 <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> 
93 <div·class="line"><a·id="l00067"·name="l00067"></a><span·class="lineno">···67</span>·</div> 
94 <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> 
95 <div·class="line"><a·id="l00069"·name="l00069"></a><span·class="lineno">···69</span><span·class="keyword">private</span>:</div>93 <div·class="line"><a·id="l00049"·name="l00049"></a><span·class="lineno">···49</span><span·class="keyword">private</span>:</div>
96 <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> 
97 <div·class="line"><a·id="l00071"·name="l00071"></a><span·class="lineno">···71</span>····<span·class="keywordtype">size_t</span>·d_size;··············</div>94 <div·class="line"><a·id="l00050"·name="l00050"></a><span·class="lineno">···50</span>};</div>
 95 <div·class="line"><a·id="l00051"·name="l00051"></a><span·class="lineno">···51</span>··</div>
98 <div·class="line"><a·id="l00072"·name="l00072"></a><span·class="lineno">···72</span>};</div>96 <div·class="line"><a·id="l00052"·name="l00052"></a><span·class="lineno">···52</span>··</div>
99 <div·class="line"><a·id="l00073"·name="l00073"></a><span·class="lineno">···73</span>··</div> 
100 <div·class="line"><a·id="l00074"·name="l00074"></a><span·class="lineno">···74</span>··</div> 
101 <div·class="line"><a·id="l00075"·name="l00075"></a><span·class="lineno">···75</span>}·<span·class="comment">//·End·of·section·namespace·SILLY·</span></div>97 <div·class="line"><a·id="l00053"·name="l00053"></a><span·class="lineno">···53</span>}·<span·class="comment">//·End·of·section·namespace·SILLY·</span></div>
102 <div·class="line"><a·id="l00076"·name="l00076"></a><span·class="lineno">···76</span>·</div>98 <div·class="line"><a·id="l00054"·name="l00054"></a><span·class="lineno">···54</span>·</div>
103 <div·class="line"><a·id="l00077"·name="l00077"></a><span·class="lineno">···77</span><span·class="comment">//·Inclue·inline·function·when·needed·</span></div>99 <div·class="line"><a·id="l00055"·name="l00055"></a><span·class="lineno">···55</span><span·class="comment">//·Inclue·inline·function·when·needed·</span></div>
104 <div·class="line"><a·id="l00078"·name="l00078"></a><span·class="lineno">···78</span><span·class="preprocessor">#ifdef·SILLY_OPT_INLINE</span></div>100 <div·class="line"><a·id="l00056"·name="l00056"></a><span·class="lineno">···56</span><span·class="preprocessor">#ifdef·SILLY_OPT_INLINE</span></div>
105 <div·class="line"><a·id="l00079"·name="l00079"></a><span·class="lineno">···79</span><span·class="preprocessor">#include·&quot;SILLYMemoryDataSource.icpp&quot;</span></div>101 <div·class="line"><a·id="l00057"·name="l00057"></a><span·class="lineno">···57</span><span·class="preprocessor">#include·&quot;SILLYJPGImageLoader.icpp&quot;</span></div>
106 <div·class="line"><a·id="l00080"·name="l00080"></a><span·class="lineno">···80</span><span·class="preprocessor">#endif·</span></div>102 <div·class="line"><a·id="l00058"·name="l00058"></a><span·class="lineno">···58</span><span·class="preprocessor">#endif·</span></div>
107 <div·class="line"><a·id="l00081"·name="l00081"></a><span·class="lineno">···81</span>·</div>103 <div·class="line"><a·id="l00059"·name="l00059"></a><span·class="lineno">···59</span>·</div>
108 <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>104 <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>
109 <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="a00020_source.html#l00045">SILLYJPGImageContext.cpp:46</a></div></div>105 <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="a00005_source.html#l00045">SILLYJPGImageContext.cpp:46</a></div></div>
 106 <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="a00113_source.html#l00059">SILLYBase.h:60</a></div></div>
 107 <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="a00113_source.html#l00070">SILLYBase.h:71</a></div></div>
 108 <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="a00056_source.html#l00042">SILLYJPGImageLoader.h:43</a></div></div>
 109 <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="a00008_source.html#l00090">SILLYJPGImageLoader.cpp:90</a></div></div>
 110 <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·&amp;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="a00008_source.html#l00056">SILLYJPGImageLoader.cpp:56</a></div></div>
110 <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="a00122_source.html#l00046">SILLYDataSource.h:47</a></div></div>111 <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="a00119_source.html#l00046">SILLYDataSource.h:47</a></div></div>
 112 <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="a00110_source.html#l00043">SILLYImageContext.h:44</a></div></div>
 113 <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="a00092_source.html#l00046">SILLYImageLoader.h:47</a></div></div>
111 <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="a00056_source.html#l00048">SILLYMemoryDataSource.h:49</a></div></div> 
112 <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> 
113 <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> 
114 </div><!--·fragment·--></div><!--·contents·-->114 </div><!--·fragment·--></div><!--·contents·-->
115 <!--·start·footer·part·-->115 <!--·start·footer·part·-->
116 <hr·class="footer"/><address·class="footer"><small>116 <hr·class="footer"/><address·class="footer"><small>
117 Generated·by&#160;<a·href="https://www.doxygen.org/index.html"><img·class="footer"·src="doxygen.svg"·width="104"·height="31"·alt="doxygen"/></a>·1.9.4117 Generated·by&#160;<a·href="https://www.doxygen.org/index.html"><img·class="footer"·src="doxygen.svg"·width="104"·height="31"·alt="doxygen"/></a>·1.9.4
118 </small></address>118 </small></address>
119 </body>119 </body>
120 </html>120 </html>
4.31 KB
html2text {}
    
Offset 4, 21 lines modifiedOffset 4, 22 lines modified
  
4 Simple·Image·Loading·LibrarY 0.1.04 Simple·Image·Loading·LibrarY 0.1.0
  
5 ····*·build5 ····*·build
6 ····*·reproducible-path6 ····*·reproducible-path
7 ····*·silly-0.1.07 ····*·silly-0.1.0
8 ····*·include8 ····*·include
9 SILLYMemoryDataSource.h9 ····*·loaders
 10 SILLYJPGImageLoader.h
10 ·1/***********************************************************************11 ·1/***********************************************************************
11 ·2·filename:·SILLYMemoryDataSource.h12 ·2·filename:·SILLYJPGImageLoader.h
12 ·3·created:·10·Jun·200613 ·3·created:·11·Jun·2006
13 ·4·author:·Olivier·Delannoy14 ·4·author:·Olivier·Delannoy
14 ·515 ·5
15 ·6·purpose:·SILLYMemoryDataSource·declaration·for·the·SILLY·library16 ·6·purpose:·Declaration·of·the·JPGImageLoader·class
16 ·7*************************************************************************/17 ·7*************************************************************************/
17 ·8/***************************************************************************18 ·8/***************************************************************************
18 ·9·*·Copyright·(C)·2004·-·2006·Paul·D·Turner·&·The·CEGUI·Development·Team19 ·9·*·Copyright·(C)·2004·-·2006·Paul·D·Turner·&·The·CEGUI·Development·Team
19 ·10·*20 ·10·*
20 ·11·*·Permission·is·hereby·granted,·free·of·charge,·to·any·person·obtaining21 ·11·*·Permission·is·hereby·granted,·free·of·charge,·to·any·person·obtaining
21 ·12·*·a·copy·of·this·software·and·associated·documentation·files·(the22 ·12·*·a·copy·of·this·software·and·associated·documentation·files·(the
22 ·13·*·"Software"),·to·deal·in·the·Software·without·restriction,·including23 ·13·*·"Software"),·to·deal·in·the·Software·without·restriction,·including
Offset 35, 56 lines modifiedOffset 36, 69 lines modified
35 ·24·*·MERCHANTABILITY,·FITNESS·FOR·A·PARTICULAR·PURPOSE·AND·NONINFRINGEMENT.36 ·24·*·MERCHANTABILITY,·FITNESS·FOR·A·PARTICULAR·PURPOSE·AND·NONINFRINGEMENT.
36 ·25·*·IN·NO·EVENT·SHALL·THE·AUTHORS·BE·LIABLE·FOR·ANY·CLAIM,·DAMAGES·OR37 ·25·*·IN·NO·EVENT·SHALL·THE·AUTHORS·BE·LIABLE·FOR·ANY·CLAIM,·DAMAGES·OR
37 ·26·*·OTHER·LIABILITY,·WHETHER·IN·AN·ACTION·OF·CONTRACT,·TORT·OR·OTHERWISE,38 ·26·*·OTHER·LIABILITY,·WHETHER·IN·AN·ACTION·OF·CONTRACT,·TORT·OR·OTHERWISE,
38 ·27·*·ARISING·FROM,·OUT·OF·OR·IN·CONNECTION·WITH·THE·SOFTWARE·OR·THE·USE·OR39 ·27·*·ARISING·FROM,·OUT·OF·OR·IN·CONNECTION·WITH·THE·SOFTWARE·OR·THE·USE·OR
39 ·28·*·OTHER·DEALINGS·IN·THE·SOFTWARE.40 ·28·*·OTHER·DEALINGS·IN·THE·SOFTWARE.
40 ·2941 ·29
41 ***************************************************************************/42 ***************************************************************************/
42 ·30#ifndef·_SILLYMemoryDataSource_h_ 
43 ·31#define·_SILLYMemoryDataSource_h_43 ·30#ifndef·_SILLYJPGImageLoader_h_
 44 ·31#define·_SILLYJPGImageLoader_h_
44 ·32#include·"SILLYBase.h"45 ·32#include·"SILLYBase.h"
45 ·33#include·"SILLYDataSource.h"46 ·33#include·"SILLYImageLoader.h"
46 ·34//·Start·of·section·namespace·SILLY47 ·34//·Start·of·section·namespace·SILLY
47 ·35namespace·SILLY48 ·35namespace·SILLY
48 ·36{49 ·36{
49 ·3750 ·37
50 48class·SILLY_EXPORT·MemoryDataSource·:·public·DataSource51 42class·JPGImageLoader·:·public·ImageLoader
51 ·49{52 ·43{
52 ·50public:53 ·44public:
 54 ·45·JPGImageLoader();
 55 ·46·~JPGImageLoader();
 56 ·47·ImageContext*·loadHeader(PixelFormat&·header,·DataSource*·data);
 57 ·48·bool·loadImageData(PixelOrigin·origin,·DataSource*·data,·ImageContext*
 58 context);
53 ·63·MemoryDataSource(const·byte*·data,·size_t·size); 
54 ·64 
55 ·65 
56 66·const·byte*·getDataPtr()·const; 
57 ·67 
58 68·size_t·getSize()·const; 
59 ·69private:59 ·49private:
 60 ·50};
 61 ·51
 62 ·52
60 ·70·const·byte*·d_bytes; 
61 ·71·size_t·d_size; 
62 ·72}; 
63 ·73 
64 ·74 
65 ·75}·//·End·of·section·namespace·SILLY63 ·53}·//·End·of·section·namespace·SILLY
66 ·7664 ·54
67 ·77//·Inclue·inline·function·when·needed65 ·55//·Inclue·inline·function·when·needed
68 ·78#ifdef·SILLY_OPT_INLINE66 ·56#ifdef·SILLY_OPT_INLINE
69 ·79#include·"SILLYMemoryDataSource.icpp"67 ·57#include·"SILLYJPGImageLoader.icpp"
70 ·80#endif68 ·58#endif
71 ·81 
72 ·82#endif·//·end·of·guard·_SILLYMemoryDataSource_h_69 ·59
 70 ·60#endif·//·end·of·guard·_SILLYJPGImageLoader_h_
73 SILLY71 SILLY
74 Simple·Image·Loading·LibrarY·namespace.72 Simple·Image·Loading·LibrarY·namespace.
75 Definition:·SILLYJPGImageContext.cpp:4673 Definition:·SILLYJPGImageContext.cpp:46
 74 SILLY::PixelFormat
 75 PixelFormat
 76 List·all·pixel·format·supported.
 77 Definition:·SILLYBase.h:60
 78 SILLY::PixelOrigin
 79 PixelOrigin
 80 List·all·pixel·origin·supported.
 81 Definition:·SILLYBase.h:71
 82 SILLY::JPGImageLoader
 83 Loader·class·for·JPG·Image.
 84 Definition:·SILLYJPGImageLoader.h:43
 85 SILLY::JPGImageLoader::loadImageData
 86 bool·loadImageData(PixelOrigin·origin,·DataSource·*data,·ImageContext·*context)
 87 Parse·the·pixels·data·of·the·image·and·fill·the·header·struct.
 88 Definition:·SILLYJPGImageLoader.cpp:90
 89 SILLY::JPGImageLoader::loadHeader
 90 ImageContext·*·loadHeader(PixelFormat·&header,·DataSource·*data)
 91 Parse·the·header·of·the·image·and·fill·the·header·struct.
 92 Definition:·SILLYJPGImageLoader.cpp:56
76 SILLY::DataSource93 SILLY::DataSource
77 This·is·an·abstract·class·used·to·provide·data·to·the·loader.94 This·is·an·abstract·class·used·to·provide·data·to·the·loader.
78 Definition:·SILLYDataSource.h:4795 Definition:·SILLYDataSource.h:47
 96 SILLY::ImageContext
 97 Store·the·data·needed·by·an·ImageLoader·object·during·the·parsing·of·an·image.
 98 Definition:·SILLYImageContext.h:44
 99 SILLY::ImageLoader
 100 This·is·an·abstract·class·that·define·the·interface·of·all·image·loader.
 101 Definition:·SILLYImageLoader.h:47
79 SILLY::MemoryDataSource 
80 Load·an·image·from·a·memory·area. 
81 Definition:·SILLYMemoryDataSource.h:49 
82 SILLY::MemoryDataSource::getDataPtr 
83 const·byte·*·getDataPtr()·const 
84 Get·raw·access·to·the·image·data. 
85 SILLY::MemoryDataSource::getSize 
86 size_t·getSize()·const 
87 Return·the·size·of·the·data. 
  
88 ===============================================================================102 ===============================================================================
89 ·····Generated·by [doxygen]·1.9.4103 ·····Generated·by [doxygen]·1.9.4
12.4 KB
./usr/share/doc/libsilly-doc/html/a00059_source.html
    
Offset 1, 15 lines modifiedOffset 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">2 <html·xmlns="http://www.w3.org/1999/xhtml">
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.4"/>6 <meta·name="generator"·content="Doxygen·1.9.4"/>
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/SILLYImageLoaderManager.icpp·Source·File</title>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 35, 27 lines modifiedOffset 35, 27 lines modified
35 ··initMenu('',false,false,'search.php','Search');35 ··initMenu('',false,false,'search.php','Search');
36 });36 });
37 /*·@license-end·*/37 /*·@license-end·*/
38 </script>38 </script>
39 <div·id="main-nav"></div>39 <div·id="main-nav"></div>
40 <div·id="nav-path"·class="navpath">40 <div·id="nav-path"·class="navpath">
41 ··<ul>41 ··<ul>
42 <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>42 <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>
43 </div>43 </div>
44 </div><!--·top·-->44 </div><!--·top·-->
45 <div·class="header">45 <div·class="header">
46 ··<div·class="headertitle"><div·class="title">SILLYImageLoaderManager.icpp</div></div>46 ··<div·class="headertitle"><div·class="title">SILLYTGAImageContext.icpp</div></div>
47 </div><!--header-->47 </div><!--header-->
48 <div·class="contents">48 <div·class="contents">
49 <div·class="fragment"><div·class="line"><a·id="l00001"·name="l00001"></a><span·class="lineno">····1</span>/***********************************************************************</div>49 <div·class="fragment"><div·class="line"><a·id="l00001"·name="l00001"></a><span·class="lineno">····1</span>/***********************************************************************</div>
50 <div·class="line"><a·id="l00002"·name="l00002"></a><span·class="lineno">····2</span>····filename:···SILLYImageLoaderManager.icpp·</div>50 <div·class="line"><a·id="l00002"·name="l00002"></a><span·class="lineno">····2</span>····filename:···SILLYTGAImageContext.icpp·</div>
51 <div·class="line"><a·id="l00003"·name="l00003"></a><span·class="lineno">····3</span>····created:····10·Jun·2006</div>51 <div·class="line"><a·id="l00003"·name="l00003"></a><span·class="lineno">····3</span>····created:····11·Jun·2006</div>
52 <div·class="line"><a·id="l00004"·name="l00004"></a><span·class="lineno">····4</span>····author:·····Olivier·Delannoy</div>52 <div·class="line"><a·id="l00004"·name="l00004"></a><span·class="lineno">····4</span>····author:·····Olivier·Delannoy</div>
53 <div·class="line"><a·id="l00005"·name="l00005"></a><span·class="lineno">····5</span>·</div>53 <div·class="line"><a·id="l00005"·name="l00005"></a><span·class="lineno">····5</span>·</div>
54 <div·class="line"><a·id="l00006"·name="l00006"></a><span·class="lineno">····6</span>····purpose:····Inline·definition·for·ImageLoaderManager·class···</div>54 <div·class="line"><a·id="l00006"·name="l00006"></a><span·class="lineno">····6</span>····purpose:····Inline·definition·for·TGAImageContext·class···</div>
55 <div·class="line"><a·id="l00007"·name="l00007"></a><span·class="lineno">····7</span>*************************************************************************/</div>55 <div·class="line"><a·id="l00007"·name="l00007"></a><span·class="lineno">····7</span>*************************************************************************/</div>
56 <div·class="line"><a·id="l00008"·name="l00008"></a><span·class="lineno">····8</span>/***************************************************************************</div>56 <div·class="line"><a·id="l00008"·name="l00008"></a><span·class="lineno">····8</span>/***************************************************************************</div>
57 <div·class="line"><a·id="l00009"·name="l00009"></a><span·class="lineno">····9</span>·*···Copyright·(C)·2004·-·2006·Paul·D·Turner·&amp;·The·CEGUI·Development·Team</div>57 <div·class="line"><a·id="l00009"·name="l00009"></a><span·class="lineno">····9</span>·*···Copyright·(C)·2004·-·2006·Paul·D·Turner·&amp;·The·CEGUI·Development·Team</div>
58 <div·class="line"><a·id="l00010"·name="l00010"></a><span·class="lineno">···10</span>·*</div>58 <div·class="line"><a·id="l00010"·name="l00010"></a><span·class="lineno">···10</span>·*</div>
59 <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>59 <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>
60 <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>60 <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>
61 <div·class="line"><a·id="l00013"·name="l00013"></a><span·class="lineno">···13</span>·*···&quot;Software&quot;),·to·deal·in·the·Software·without·restriction,·including</div>61 <div·class="line"><a·id="l00013"·name="l00013"></a><span·class="lineno">···13</span>·*···&quot;Software&quot;),·to·deal·in·the·Software·without·restriction,·including</div>
Offset 75, 43 lines modifiedOffset 75, 25 lines modified
75 <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>75 <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>
76 <div·class="line"><a·id="l00028"·name="l00028"></a><span·class="lineno">···28</span>·*···OTHER·DEALINGS·IN·THE·SOFTWARE.</div>76 <div·class="line"><a·id="l00028"·name="l00028"></a><span·class="lineno">···28</span>·*···OTHER·DEALINGS·IN·THE·SOFTWARE.</div>
77 <div·class="line"><a·id="l00029"·name="l00029"></a><span·class="lineno">···29</span>·***************************************************************************/</div>77 <div·class="line"><a·id="l00029"·name="l00029"></a><span·class="lineno">···29</span>·***************************************************************************/</div>
78 <div·class="line"><a·id="l00030"·name="l00030"></a><span·class="lineno">···30</span>·</div>78 <div·class="line"><a·id="l00030"·name="l00030"></a><span·class="lineno">···30</span>·</div>
79 <div·class="line"><a·id="l00031"·name="l00031"></a><span·class="lineno">···31</span>//·Start·of·section·namespace·SILLY</div>79 <div·class="line"><a·id="l00031"·name="l00031"></a><span·class="lineno">···31</span>//·Start·of·section·namespace·SILLY</div>
80 <div·class="line"><a·id="l00032"·name="l00032"></a><span·class="lineno">···32</span>namespace·SILLY</div>80 <div·class="line"><a·id="l00032"·name="l00032"></a><span·class="lineno">···32</span>namespace·SILLY</div>
81 <div·class="line"><a·id="l00033"·name="l00033"></a><span·class="lineno">···33</span>{</div>81 <div·class="line"><a·id="l00033"·name="l00033"></a><span·class="lineno">···33</span>{</div>
82 <div·class="line"><a·id="l00034"·name="l00034"></a><span·class="lineno">···34</span>inline·ImageLoaderList::iterator·ImageLoaderManager::begin()</div>82 <div·class="line"><a·id="l00034"·name="l00034"></a><span·class="lineno">···34</span>inline·TGAImageContext::TGAImageContext(size_t·width,·size_t·height)</div>
 83 <div·class="line"><a·id="l00035"·name="l00035"></a><span·class="lineno">···35</span>····:·ImageContext(width,·height)</div>
83 <div·class="line"><a·id="l00035"·name="l00035"></a><span·class="lineno">···35</span>{</div>84 <div·class="line"><a·id="l00036"·name="l00036"></a><span·class="lineno">···36</span>{</div>
84 <div·class="line"><a·id="l00036"·name="l00036"></a><span·class="lineno">···36</span>····return·d_loaders.begin();</div> 
85 <div·class="line"><a·id="l00037"·name="l00037"></a><span·class="lineno">···37</span>}</div>85 <div·class="line"><a·id="l00037"·name="l00037"></a><span·class="lineno">···37</span>}</div>
86 <div·class="line"><a·id="l00038"·name="l00038"></a><span·class="lineno">···38</span>·</div>86 <div·class="line"><a·id="l00038"·name="l00038"></a><span·class="lineno">···38</span>·</div>
87 <div·class="line"><a·id="l00039"·name="l00039"></a><span·class="lineno">···39</span>inline·ImageLoaderList::iterator·ImageLoaderManager::end()·</div>87 <div·class="line"><a·id="l00039"·name="l00039"></a><span·class="lineno">···39</span>inline·TGAImageContext::~TGAImageContext()</div>
88 <div·class="line"><a·id="l00040"·name="l00040"></a><span·class="lineno">···40</span>{</div>88 <div·class="line"><a·id="l00040"·name="l00040"></a><span·class="lineno">···40</span>{</div>
89 <div·class="line"><a·id="l00041"·name="l00041"></a><span·class="lineno">···41</span>····return·d_loaders.end();</div>89 <div·class="line"><a·id="l00041"·name="l00041"></a><span·class="lineno">···41</span>}</div>
90 <div·class="line"><a·id="l00042"·name="l00042"></a><span·class="lineno">···42</span>}</div>90 <div·class="line"><a·id="l00042"·name="l00042"></a><span·class="lineno">···42</span>·</div>
 91 <div·class="line"><a·id="l00043"·name="l00043"></a><span·class="lineno">···43</span>}·//·End·of·section·namespace·SILLY</div>
91 <div·class="line"><a·id="l00043"·name="l00043"></a><span·class="lineno">···43</span>·</div>92 <div·class="line"><a·id="l00044"·name="l00044"></a><span·class="lineno">···44</span>·</div>
92 <div·class="line"><a·id="l00044"·name="l00044"></a><span·class="lineno">···44</span>inline·ImageLoaderManager*·ImageLoaderManager::getSingletonPtr()</div> 
93 <div·class="line"><a·id="l00045"·name="l00045"></a><span·class="lineno">···45</span>{</div> 
94 <div·class="line"><a·id="l00046"·name="l00046"></a><span·class="lineno">···46</span>····return·d_instance;</div> 
95 <div·class="line"><a·id="l00047"·name="l00047"></a><span·class="lineno">···47</span>}</div> 
96 <div·class="line"><a·id="l00048"·name="l00048"></a><span·class="lineno">···48</span>·</div> 
97 <div·class="line"><a·id="l00049"·name="l00049"></a><span·class="lineno">···49</span>inline·ImageLoaderManager&amp;·ImageLoaderManager::getSingleton()</div> 
98 <div·class="line"><a·id="l00050"·name="l00050"></a><span·class="lineno">···50</span>{</div> 
99 <div·class="line"><a·id="l00051"·name="l00051"></a><span·class="lineno">···51</span>····assert(d_instance·&amp;&amp;·&quot;ASSERT:·Singleton·object·not·yet·created&quot;);</div> 
100 <div·class="line"><a·id="l00052"·name="l00052"></a><span·class="lineno">···52</span>····return·*d_instance;</div> 
101 <div·class="line"><a·id="l00053"·name="l00053"></a><span·class="lineno">···53</span>}</div> 
102 <div·class="line"><a·id="l00054"·name="l00054"></a><span·class="lineno">···54</span>·</div> 
103 <div·class="line"><a·id="l00055"·name="l00055"></a><span·class="lineno">···55</span>inline·void·ImageLoaderManager::add(ImageLoader*·loader)</div> 
104 <div·class="line"><a·id="l00056"·name="l00056"></a><span·class="lineno">···56</span>{</div> 
105 <div·class="line"><a·id="l00057"·name="l00057"></a><span·class="lineno">···57</span>····assert(loader·&amp;&amp;·&quot;ASSERT:·adding·a·none·existing·loader·object&quot;);</div> 
106 <div·class="line"><a·id="l00058"·name="l00058"></a><span·class="lineno">···58</span>····d_loaders.push_back(loader);</div> 
107 <div·class="line"><a·id="l00059"·name="l00059"></a><span·class="lineno">···59</span>}</div> 
108 <div·class="line"><a·id="l00060"·name="l00060"></a><span·class="lineno">···60</span>·</div> 
109 <div·class="line"><a·id="l00061"·name="l00061"></a><span·class="lineno">···61</span>}·//·End·of·section·namespace·SILLY</div> 
110 <div·class="line"><a·id="l00062"·name="l00062"></a><span·class="lineno">···62</span>·</div> 
111 </div><!--·fragment·--></div><!--·contents·-->93 </div><!--·fragment·--></div><!--·contents·-->
112 <!--·start·footer·part·-->94 <!--·start·footer·part·-->
113 <hr·class="footer"/><address·class="footer"><small>95 <hr·class="footer"/><address·class="footer"><small>
114 Generated·by&#160;<a·href="https://www.doxygen.org/index.html"><img·class="footer"·src="doxygen.svg"·width="104"·height="31"·alt="doxygen"/></a>·1.9.496 Generated·by&#160;<a·href="https://www.doxygen.org/index.html"><img·class="footer"·src="doxygen.svg"·width="104"·height="31"·alt="doxygen"/></a>·1.9.4
115 </small></address>97 </small></address>
116 </body>98 </body>
117 </html>99 </html>
2.28 KB
html2text {}
    
Offset 4, 21 lines modifiedOffset 4, 22 lines modified
  
4 Simple·Image·Loading·LibrarY 0.1.04 Simple·Image·Loading·LibrarY 0.1.0
  
5 ····*·build5 ····*·build
6 ····*·reproducible-path6 ····*·reproducible-path
7 ····*·silly-0.1.07 ····*·silly-0.1.0
8 ····*·include8 ····*·include
9 SILLYImageLoaderManager.icpp9 ····*·loaders
 10 SILLYTGAImageContext.icpp
10 ·1/***********************************************************************11 ·1/***********************************************************************
11 ·2·filename:·SILLYImageLoaderManager.icpp12 ·2·filename:·SILLYTGAImageContext.icpp
12 ·3·created:·10·Jun·200613 ·3·created:·11·Jun·2006
13 ·4·author:·Olivier·Delannoy14 ·4·author:·Olivier·Delannoy
14 ·515 ·5
15 ·6·purpose:·Inline·definition·for·ImageLoaderManager·class16 ·6·purpose:·Inline·definition·for·TGAImageContext·class
16 ·7*************************************************************************/17 ·7*************************************************************************/
17 ·8/***************************************************************************18 ·8/***************************************************************************
18 ·9·*·Copyright·(C)·2004·-·2006·Paul·D·Turner·&·The·CEGUI·Development·Team19 ·9·*·Copyright·(C)·2004·-·2006·Paul·D·Turner·&·The·CEGUI·Development·Team
19 ·10·*20 ·10·*
20 ·11·*·Permission·is·hereby·granted,·free·of·charge,·to·any·person·obtaining21 ·11·*·Permission·is·hereby·granted,·free·of·charge,·to·any·person·obtaining
21 ·12·*·a·copy·of·this·software·and·associated·documentation·files·(the22 ·12·*·a·copy·of·this·software·and·associated·documentation·files·(the
22 ·13·*·"Software"),·to·deal·in·the·Software·without·restriction,·including23 ·13·*·"Software"),·to·deal·in·the·Software·without·restriction,·including
Offset 39, 39 lines modifiedOffset 40, 21 lines modified
39 ·28·*·OTHER·DEALINGS·IN·THE·SOFTWARE.40 ·28·*·OTHER·DEALINGS·IN·THE·SOFTWARE.
40 ·2941 ·29
41 ***************************************************************************/42 ***************************************************************************/
42 ·3043 ·30
43 ·31//·Start·of·section·namespace·SILLY44 ·31//·Start·of·section·namespace·SILLY
44 ·32namespace·SILLY45 ·32namespace·SILLY
45 ·33{46 ·33{
46 ·34inline·ImageLoaderList::iterator·ImageLoaderManager::begin()47 ·34inline·TGAImageContext::TGAImageContext(size_t·width,·size_t·height)
 48 ·35·:·ImageContext(width,·height)
47 ·35{49 ·36{
48 ·36·return·d_loaders.begin(); 
49 ·37}50 ·37}
50 ·3851 ·38
51 ·39inline·ImageLoaderList::iterator·ImageLoaderManager::end()52 ·39inline·TGAImageContext::~TGAImageContext()
52 ·40{53 ·40{
53 ·41·return·d_loaders.end();54 ·41}
54 ·42}55 ·42
55 ·43 
56 ·44inline·ImageLoaderManager*·ImageLoaderManager::getSingletonPtr() 
57 ·45{ 
58 ·46·return·d_instance; 
59 ·47} 
60 ·48 
61 ·49inline·ImageLoaderManager&·ImageLoaderManager::getSingleton() 
62 ·50{ 
63 ·51·assert(d_instance·&&·"ASSERT:·Singleton·object·not·yet·created"); 
64 ·52·return·*d_instance; 
65 ·53} 
66 ·54 
67 ·55inline·void·ImageLoaderManager::add(ImageLoader*·loader) 
68 ·56{ 
69 ·57·assert(loader·&&·"ASSERT:·adding·a·none·existing·loader·object"); 
70 ·58·d_loaders.push_back(loader); 
71 ·59} 
72 ·60 
73 ·61}·//·End·of·section·namespace·SILLY56 ·43}·//·End·of·section·namespace·SILLY
74 ·6257 ·44
  
75 ===============================================================================58 ===============================================================================
76 ·····Generated·by [doxygen]·1.9.459 ·····Generated·by [doxygen]·1.9.4
30.3 KB
./usr/share/doc/libsilly-doc/html/a00062_source.html
    
Offset 1, 15 lines modifiedOffset 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">2 <html·xmlns="http://www.w3.org/1999/xhtml">
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.4"/>6 <meta·name="generator"·content="Doxygen·1.9.4"/>
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.icpp·Source·File</title>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 35, 125 lines modifiedOffset 35, 86 lines modified
35 ··initMenu('',false,false,'search.php','Search');35 ··initMenu('',false,false,'search.php','Search');
36 });36 });
37 /*·@license-end·*/37 /*·@license-end·*/
38 </script>38 </script>
39 <div·id="main-nav"></div>39 <div·id="main-nav"></div>
40 <div·id="nav-path"·class="navpath">40 <div·id="nav-path"·class="navpath">
41 ··<ul>41 ··<ul>
42 <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>42 <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>
43 </div>43 </div>
44 </div><!--·top·-->44 </div><!--·top·-->
45 <div·class="header">45 <div·class="header">
46 ··<div·class="headertitle"><div·class="title">SILLYImageContext.icpp</div></div>46 ··<div·class="headertitle"><div·class="title">SILLYTGAImageContext.h</div></div>
47 </div><!--header-->47 </div><!--header-->
48 <div·class="contents">48 <div·class="contents">
49 <div·class="fragment"><div·class="line"><a·id="l00001"·name="l00001"></a><span·class="lineno">····1</span>/***********************************************************************</div>49 <div·class="fragment"><div·class="line"><a·id="l00001"·name="l00001"></a><span·class="lineno">····1</span><span·class="comment">/***********************************************************************</span></div>
50 <div·class="line"><a·id="l00002"·name="l00002"></a><span·class="lineno">····2</span>····filename:···SILLYImageContext.icpp·</div>50 <div·class="line"><a·id="l00002"·name="l00002"></a><span·class="lineno">····2</span><span·class="comment">····filename:···SILLYTGAImageContext.h</span></div>
51 <div·class="line"><a·id="l00003"·name="l00003"></a><span·class="lineno">····3</span>····created:····10·Jun·2006</div>51 <div·class="line"><a·id="l00003"·name="l00003"></a><span·class="lineno">····3</span><span·class="comment">····created:····11·Jun·2006</span></div>
52 <div·class="line"><a·id="l00004"·name="l00004"></a><span·class="lineno">····4</span>····author:·····Olivier·Delannoy</div>52 <div·class="line"><a·id="l00004"·name="l00004"></a><span·class="lineno">····4</span><span·class="comment">····author:·····Olivier·Delannoy</span></div>
53 <div·class="line"><a·id="l00005"·name="l00005"></a><span·class="lineno">····5</span>·</div>53 <div·class="line"><a·id="l00005"·name="l00005"></a><span·class="lineno">····5</span><span·class="comment"></span>·</div>
54 <div·class="line"><a·id="l00006"·name="l00006"></a><span·class="lineno">····6</span>····purpose:····Inline·definition·for·ImageContext··</div>54 <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>
55 <div·class="line"><a·id="l00007"·name="l00007"></a><span·class="lineno">····7</span>*************************************************************************/</div>55 <div·class="line"><a·id="l00007"·name="l00007"></a><span·class="lineno">····7</span><span·class="comment">*************************************************************************/</span></div>
56 <div·class="line"><a·id="l00008"·name="l00008"></a><span·class="lineno">····8</span>/***************************************************************************</div>56 <div·class="line"><a·id="l00008"·name="l00008"></a><span·class="lineno">····8</span><span·class="comment">/***************************************************************************</span></div>
57 <div·class="line"><a·id="l00009"·name="l00009"></a><span·class="lineno">····9</span>·*···Copyright·(C)·2004·-·2006·Paul·D·Turner·&amp;·The·CEGUI·Development·Team</div>57 <div·class="line"><a·id="l00009"·name="l00009"></a><span·class="lineno">····9</span><span·class="comment">·*···Copyright·(C)·2004·-·2006·Paul·D·Turner·&amp;·The·CEGUI·Development·Team</span></div>
58 <div·class="line"><a·id="l00010"·name="l00010"></a><span·class="lineno">···10</span>·*</div>58 <div·class="line"><a·id="l00010"·name="l00010"></a><span·class="lineno">···10</span><span·class="comment">·*</span></div>
59 <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>59 <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>
60 <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>60 <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>
61 <div·class="line"><a·id="l00013"·name="l00013"></a><span·class="lineno">···13</span>·*···&quot;Software&quot;),·to·deal·in·the·Software·without·restriction,·including</div>61 <div·class="line"><a·id="l00013"·name="l00013"></a><span·class="lineno">···13</span><span·class="comment">·*···&quot;Software&quot;),·to·deal·in·the·Software·without·restriction,·including</span></div>
62 <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>62 <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>
63 <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>63 <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>
64 <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>64 <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>
65 <div·class="line"><a·id="l00017"·name="l00017"></a><span·class="lineno">···17</span>·*···the·following·conditions:</div>65 <div·class="line"><a·id="l00017"·name="l00017"></a><span·class="lineno">···17</span><span·class="comment">·*···the·following·conditions:</span></div>
66 <div·class="line"><a·id="l00018"·name="l00018"></a><span·class="lineno">···18</span>·*</div>66 <div·class="line"><a·id="l00018"·name="l00018"></a><span·class="lineno">···18</span><span·class="comment">·*</span></div>
67 <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>67 <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>
68 <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>68 <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>
69 <div·class="line"><a·id="l00021"·name="l00021"></a><span·class="lineno">···21</span>·*</div>69 <div·class="line"><a·id="l00021"·name="l00021"></a><span·class="lineno">···21</span><span·class="comment">·*</span></div>
70 <div·class="line"><a·id="l00022"·name="l00022"></a><span·class="lineno">···22</span>·*···THE·SOFTWARE·IS·PROVIDED·&quot;AS·IS&quot;,·WITHOUT·WARRANTY·OF·ANY·KIND,</div>70 <div·class="line"><a·id="l00022"·name="l00022"></a><span·class="lineno">···22</span><span·class="comment">·*···THE·SOFTWARE·IS·PROVIDED·&quot;AS·IS&quot;,·WITHOUT·WARRANTY·OF·ANY·KIND,</span></div>
71 <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>71 <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>
72 <div·class="line"><a·id="l00024"·name="l00024"></a><span·class="lineno">···24</span>·*···MERCHANTABILITY,·FITNESS·FOR·A·PARTICULAR·PURPOSE·AND·NONINFRINGEMENT.</div>72 <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>
73 <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>73 <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>
74 <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>74 <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>
75 <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>75 <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>
76 <div·class="line"><a·id="l00028"·name="l00028"></a><span·class="lineno">···28</span>·*···OTHER·DEALINGS·IN·THE·SOFTWARE.</div>76 <div·class="line"><a·id="l00028"·name="l00028"></a><span·class="lineno">···28</span><span·class="comment">·*···OTHER·DEALINGS·IN·THE·SOFTWARE.</span></div>
77 <div·class="line"><a·id="l00029"·name="l00029"></a><span·class="lineno">···29</span>·***************************************************************************/</div>77 <div·class="line"><a·id="l00029"·name="l00029"></a><span·class="lineno">···29</span><span·class="comment">·***************************************************************************/</span></div>
 78 <div·class="line"><a·id="l00030"·name="l00030"></a><span·class="lineno">···30</span><span·class="preprocessor">#ifndef·_SILLYTGAImageContext_h_·</span></div>
 79 <div·class="line"><a·id="l00031"·name="l00031"></a><span·class="lineno">···31</span><span·class="preprocessor">#define·_SILLYTGAImageContext_h_</span></div>
 80 <div·class="line"><a·id="l00032"·name="l00032"></a><span·class="lineno">···32</span><span·class="preprocessor">#include·&quot;SILLYBase.h&quot;</span>·</div>
 81 <div·class="line"><a·id="l00033"·name="l00033"></a><span·class="lineno">···33</span><span·class="preprocessor">#include·&quot;SILLYImageContext.h&quot;</span>·</div>
 82 <div·class="line"><a·id="l00034"·name="l00034"></a><span·class="lineno">···34</span><span·class="comment">//·Start·of·section·namespace·SILLY·</span></div>
 83 <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>
78 <div·class="line"><a·id="l00030"·name="l00030"></a><span·class="lineno">···30</span>·</div>84 <div·class="line"><a·id="l00036"·name="l00036"></a><span·class="lineno">···36</span>{··</div>
 85 <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>
79 <div·class="line"><a·id="l00031"·name="l00031"></a><span·class="lineno">···31</span>//·Start·of·section·namespace·SILLY</div> 
80 <div·class="line"><a·id="l00032"·name="l00032"></a><span·class="lineno">···32</span>namespace·SILLY</div> 
81 <div·class="line"><a·id="l00033"·name="l00033"></a><span·class="lineno">···33</span>{</div>86 <div·class="line"><a·id="l00043"·name="l00043"></a><span·class="lineno">···43</span>{</div>
82 <div·class="line"><a·id="l00034"·name="l00034"></a><span·class="lineno">···34</span>·</div> 
83 <div·class="line"><a·id="l00035"·name="l00035"></a><span·class="lineno">···35</span>inline·ImageContext::ImageContext(size_t·width,·size_t·height)</div> 
84 <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> 
85 <div·class="line"><a·id="l00037"·name="l00037"></a><span·class="lineno">···37</span>{</div> 
86 <div·class="line"><a·id="l00038"·name="l00038"></a><span·class="lineno">···38</span>}</div> 
87 <div·class="line"><a·id="l00039"·name="l00039"></a><span·class="lineno">···39</span>·</div> 
88 <div·class="line"><a·id="l00040"·name="l00040"></a><span·class="lineno">···40</span>·</div> 
89 <div·class="line"><a·id="l00041"·name="l00041"></a><span·class="lineno">···41</span>inline·ImageContext::~ImageContext()·</div> 
90 <div·class="line"><a·id="l00042"·name="l00042"></a><span·class="lineno">···42</span>{</div> 
91 <div·class="line"><a·id="l00043"·name="l00043"></a><span·class="lineno">···43</span>}·······</div> 
92 <div·class="line"><a·id="l00044"·name="l00044"></a><span·class="lineno">···44</span>·</div>87 <div·class="line"><a·id="l00044"·name="l00044"></a><span·class="lineno">···44</span><span·class="keyword">public</span>:</div>
93 <div·class="line"><a·id="l00045"·name="l00045"></a><span·class="lineno">···45</span>·</div> 
94 <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>88 <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>
 89 <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>
95 <div·class="line"><a·id="l00047"·name="l00047"></a><span·class="lineno">···47</span>{</div>90 <div·class="line"><a·id="l00047"·name="l00047"></a><span·class="lineno">···47</span>··</div>
96 <div·class="line"><a·id="l00048"·name="l00048"></a><span·class="lineno">···48</span>····d_pixels·=·pixels;</div>91 <div·class="line"><a·id="l00048"·name="l00048"></a><span·class="lineno">···48</span><span·class="keyword">private</span>:</div>
97 <div·class="line"><a·id="l00049"·name="l00049"></a><span·class="lineno">···49</span>····d_length·=·length;</div>92 <div·class="line"><a·id="l00049"·name="l00049"></a><span·class="lineno">···49</span>··<span·class="keywordtype">byte</span>·d_idLength;</div>
98 <div·class="line"><a·id="l00050"·name="l00050"></a><span·class="lineno">···50</span>····d_currentOffset·=·0;</div>93 <div·class="line"><a·id="l00050"·name="l00050"></a><span·class="lineno">···50</span>··<span·class="keywordtype">byte</span>·d_imageType;</div>
99 <div·class="line"><a·id="l00051"·name="l00051"></a><span·class="lineno">···51</span>····d_format·=·format;</div>94 <div·class="line"><a·id="l00051"·name="l00051"></a><span·class="lineno">···51</span>··<span·class="keywordtype">byte</span>·d_depth;</div>
100 <div·class="line"><a·id="l00052"·name="l00052"></a><span·class="lineno">···52</span>}</div>95 <div·class="line"><a·id="l00052"·name="l00052"></a><span·class="lineno">···52</span>··<span·class="keywordtype">byte</span>·d_description;</div>
101 <div·class="line"><a·id="l00053"·name="l00053"></a><span·class="lineno">···53</span>·</div>96 <div·class="line"><a·id="l00053"·name="l00053"></a><span·class="lineno">···53</span>·</div>
102 <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>97 <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>
103 <div·class="line"><a·id="l00055"·name="l00055"></a><span·class="lineno">···55</span>{</div>98 <div·class="line"><a·id="l00055"·name="l00055"></a><span·class="lineno">···55</span>··</div>
104 <div·class="line"><a·id="l00056"·name="l00056"></a><span·class="lineno">···56</span>····//assert(d_currentOffset·&lt;·d_length·&amp;&amp;·&quot;ASSERT:·try·to·set·a·pixel·outside·of·the·image&quot;);</div>99 <div·class="line"><a·id="l00056"·name="l00056"></a><span·class="lineno">···56</span>};</div>
105 <div·class="line"><a·id="l00057"·name="l00057"></a><span·class="lineno">···57</span>····switch(d_format)</div>100 <div·class="line"><a·id="l00057"·name="l00057"></a><span·class="lineno">···57</span>··</div>
106 <div·class="line"><a·id="l00058"·name="l00058"></a><span·class="lineno">···58</span>····{</div>101 <div·class="line"><a·id="l00058"·name="l00058"></a><span·class="lineno">···58</span>··</div>
 102 <div·class="line"><a·id="l00059"·name="l00059"></a><span·class="lineno">···59</span>}·<span·class="comment">//·End·of·section·namespace·SILLY·</span></div>
107 <div·class="line"><a·id="l00059"·name="l00059"></a><span·class="lineno">···59</span>····case·PF_A1B5G5R5:</div> 
108 <div·class="line"><a·id="l00060"·name="l00060"></a><span·class="lineno">···60</span>········//·The·hard·part·</div> 
109 <div·class="line"><a·id="l00061"·name="l00061"></a><span·class="lineno">···61</span>········assert(0·&amp;&amp;·&quot;ASSERT:·Not·yet·implemented&quot;);</div> 
110 <div·class="line"><a·id="l00062"·name="l00062"></a><span·class="lineno">···62</span>········break;</div> 
111 <div·class="line"><a·id="l00063"·name="l00063"></a><span·class="lineno">···63</span>····case·PF_RGB:</div> 
112 <div·class="line"><a·id="l00064"·name="l00064"></a><span·class="lineno">···64</span>········//·Ignore·alpha·channel·</div> 
113 <div·class="line"><a·id="l00065"·name="l00065"></a><span·class="lineno">···65</span>········d_pixels[d_currentOffset++]·=·red;</div> 
114 <div·class="line"><a·id="l00066"·name="l00066"></a><span·class="lineno">···66</span>········d_pixels[d_currentOffset++]·=·green;</div> 
115 <div·class="line"><a·id="l00067"·name="l00067"></a><span·class="lineno">···67</span>········d_pixels[d_currentOffset++]·=·bleu;</div> 
116 <div·class="line"><a·id="l00068"·name="l00068"></a><span·class="lineno">···68</span>········break;</div> 
117 <div·class="line"><a·id="l00069"·name="l00069"></a><span·class="lineno">···69</span>·</div>103 <div·class="line"><a·id="l00060"·name="l00060"></a><span·class="lineno">···60</span>·</div>
 104 <div·class="line"><a·id="l00061"·name="l00061"></a><span·class="lineno">···61</span><span·class="comment">//·Inclue·inline·function·when·needed·</span></div>
 105 <div·class="line"><a·id="l00062"·name="l00062"></a><span·class="lineno">···62</span><span·class="preprocessor">#ifdef·SILLY_OPT_INLINE</span></div>
 106 <div·class="line"><a·id="l00063"·name="l00063"></a><span·class="lineno">···63</span><span·class="preprocessor">#include·&quot;SILLYTGAImageContext.icpp&quot;</span></div>
118 <div·class="line"><a·id="l00070"·name="l00070"></a><span·class="lineno">···70</span>····case·PF_RGBA:····</div> 
119 <div·class="line"><a·id="l00071"·name="l00071"></a><span·class="lineno">···71</span>········d_pixels[d_currentOffset++]·=·red;</div> 
120 <div·class="line"><a·id="l00072"·name="l00072"></a><span·class="lineno">···72</span>········d_pixels[d_currentOffset++]·=·green;</div> 
121 <div·class="line"><a·id="l00073"·name="l00073"></a><span·class="lineno">···73</span>········d_pixels[d_currentOffset++]·=·bleu;</div> 
122 <div·class="line"><a·id="l00074"·name="l00074"></a><span·class="lineno">···74</span>········d_pixels[d_currentOffset++]·=·alpha;</div> 
123 <div·class="line"><a·id="l00075"·name="l00075"></a><span·class="lineno">···75</span>········break;···</div> 
124 <div·class="line"><a·id="l00076"·name="l00076"></a><span·class="lineno">···76</span>····</div>107 <div·class="line"><a·id="l00064"·name="l00064"></a><span·class="lineno">···64</span><span·class="preprocessor">#endif·</span></div>
125 <div·class="line"><a·id="l00077"·name="l00077"></a><span·class="lineno">···77</span>····}</div> 
126 <div·class="line"><a·id="l00078"·name="l00078"></a><span·class="lineno">···78</span>}</div> 
127 <div·class="line"><a·id="l00079"·name="l00079"></a><span·class="lineno">···79</span>inline·size_t·ImageContext::getWidth()·const</div> 
128 <div·class="line"><a·id="l00080"·name="l00080"></a><span·class="lineno">···80</span>{</div> 
129 <div·class="line"><a·id="l00081"·name="l00081"></a><span·class="lineno">···81</span>····return·d_width;</div> 
130 <div·class="line"><a·id="l00082"·name="l00082"></a><span·class="lineno">···82</span>}</div> 
131 <div·class="line"><a·id="l00083"·name="l00083"></a><span·class="lineno">···83</span>·</div> 
132 <div·class="line"><a·id="l00084"·name="l00084"></a><span·class="lineno">···84</span>inline·void·ImageContext::setWidth(size_t·width)·</div> 
133 <div·class="line"><a·id="l00085"·name="l00085"></a><span·class="lineno">···85</span>{</div>108 <div·class="line"><a·id="l00065"·name="l00065"></a><span·class="lineno">···65</span>·</div>
Max diff block lines reached; 271/26454 bytes (1.02%) of diff not shown.
4.39 KB
html2text {}
    
Offset 4, 21 lines modifiedOffset 4, 22 lines modified
  
4 Simple·Image·Loading·LibrarY 0.1.04 Simple·Image·Loading·LibrarY 0.1.0
  
5 ····*·build5 ····*·build
6 ····*·reproducible-path6 ····*·reproducible-path
7 ····*·silly-0.1.07 ····*·silly-0.1.0
8 ····*·include8 ····*·include
 9 ····*·loaders
9 SILLYImageContext.icpp10 SILLYTGAImageContext.h
10 ·1/***********************************************************************11 ·1/***********************************************************************
11 ·2·filename:·SILLYImageContext.icpp12 ·2·filename:·SILLYTGAImageContext.h
12 ·3·created:·10·Jun·200613 ·3·created:·11·Jun·2006
13 ·4·author:·Olivier·Delannoy14 ·4·author:·Olivier·Delannoy
14 ·515 ·5
15 ·6·purpose:·Inline·definition·for·ImageContext16 ·6·purpose:·Declaration·of·the·TGAImageContext·class
16 ·7*************************************************************************/17 ·7*************************************************************************/
17 ·8/***************************************************************************18 ·8/***************************************************************************
18 ·9·*·Copyright·(C)·2004·-·2006·Paul·D·Turner·&·The·CEGUI·Development·Team19 ·9·*·Copyright·(C)·2004·-·2006·Paul·D·Turner·&·The·CEGUI·Development·Team
19 ·10·*20 ·10·*
20 ·11·*·Permission·is·hereby·granted,·free·of·charge,·to·any·person·obtaining21 ·11·*·Permission·is·hereby·granted,·free·of·charge,·to·any·person·obtaining
21 ·12·*·a·copy·of·this·software·and·associated·documentation·files·(the22 ·12·*·a·copy·of·this·software·and·associated·documentation·files·(the
22 ·13·*·"Software"),·to·deal·in·the·Software·without·restriction,·including23 ·13·*·"Software"),·to·deal·in·the·Software·without·restriction,·including
Offset 35, 89 lines modifiedOffset 36, 54 lines modified
35 ·24·*·MERCHANTABILITY,·FITNESS·FOR·A·PARTICULAR·PURPOSE·AND·NONINFRINGEMENT.36 ·24·*·MERCHANTABILITY,·FITNESS·FOR·A·PARTICULAR·PURPOSE·AND·NONINFRINGEMENT.
36 ·25·*·IN·NO·EVENT·SHALL·THE·AUTHORS·BE·LIABLE·FOR·ANY·CLAIM,·DAMAGES·OR37 ·25·*·IN·NO·EVENT·SHALL·THE·AUTHORS·BE·LIABLE·FOR·ANY·CLAIM,·DAMAGES·OR
37 ·26·*·OTHER·LIABILITY,·WHETHER·IN·AN·ACTION·OF·CONTRACT,·TORT·OR·OTHERWISE,38 ·26·*·OTHER·LIABILITY,·WHETHER·IN·AN·ACTION·OF·CONTRACT,·TORT·OR·OTHERWISE,
38 ·27·*·ARISING·FROM,·OUT·OF·OR·IN·CONNECTION·WITH·THE·SOFTWARE·OR·THE·USE·OR39 ·27·*·ARISING·FROM,·OUT·OF·OR·IN·CONNECTION·WITH·THE·SOFTWARE·OR·THE·USE·OR
39 ·28·*·OTHER·DEALINGS·IN·THE·SOFTWARE.40 ·28·*·OTHER·DEALINGS·IN·THE·SOFTWARE.
40 ·2941 ·29
41 ***************************************************************************/42 ***************************************************************************/
42 ·3043 ·30#ifndef·_SILLYTGAImageContext_h_
 44 ·31#define·_SILLYTGAImageContext_h_
 45 ·32#include·"SILLYBase.h"
 46 ·33#include·"SILLYImageContext.h"
43 ·31//·Start·of·section·namespace·SILLY47 ·34//·Start·of·section·namespace·SILLY
44 ·32namespace·SILLY48 ·35namespace·SILLY
45 ·33{49 ·36{
46 ·3450 42class·TGAImageContext·:·public·ImageContext
 51 ·43{
 52 ·44public:
47 ·35inline·ImageContext::ImageContext(size_t·width,·size_t·height)53 ·45·TGAImageContext(size_t·width,·size_t·height);
 54 ·46·~TGAImageContext();
48 ·36·:·d_pixels(0),·d_length(0),·d_width(width),·d_height(height), 
49 d_currentOffset(0),·d_format(PF_RGBA) 
50 ·37{ 
51 ·38} 
52 ·39 
53 ·40 
54 ·41inline·ImageContext::~ImageContext() 
55 ·42{ 
56 ·43} 
57 ·44 
58 ·45 
59 ·46inline·void·ImageContext::setDestination(byte*·pixels,·size_t·length, 
60 PixelFormat·format) 
61 ·47{55 ·47
62 ·48·d_pixels·=·pixels; 
63 ·49·d_length·=·length; 
64 ·50·d_currentOffset·=·0; 
65 ·51·d_format·=·format; 
66 ·52}56 ·48private:
 57 ·49·byte·d_idLength;
 58 ·50·byte·d_imageType;
 59 ·51·byte·d_depth;
 60 ·52·byte·d_description;
67 ·5361 ·53
 62 ·54·friend·class·TGAImageLoader;
68 ·54inline·void·ImageContext::setNextPixel(byte·red,·byte·green,·byte·bleu,·byte 
69 alpha) 
70 ·55{63 ·55
 64 ·56};
 65 ·57
71 ·56·//assert(d_currentOffset·<·d_length·&&·"ASSERT:·try·to·set·a·pixel·outside 
72 of·the·image"); 
73 ·57·switch(d_format) 
74 ·58·{66 ·58
75 ·59·case·PF_A1B5G5R5: 
76 ·60·//·The·hard·part 
77 ·61·assert(0·&&·"ASSERT:·Not·yet·implemented"); 
78 ·62·break; 
79 ·63·case·PF_RGB: 
80 ·64·//·Ignore·alpha·channel 
81 ·65·d_pixels[d_currentOffset++]·=·red; 
82 ·66·d_pixels[d_currentOffset++]·=·green; 
83 ·67·d_pixels[d_currentOffset++]·=·bleu; 
84 ·68·break; 
85 ·69 
86 ·70·case·PF_RGBA: 
87 ·71·d_pixels[d_currentOffset++]·=·red; 
88 ·72·d_pixels[d_currentOffset++]·=·green; 
89 ·73·d_pixels[d_currentOffset++]·=·bleu; 
90 ·74·d_pixels[d_currentOffset++]·=·alpha; 
91 ·75·break; 
92 ·76 
93 ·77·} 
94 ·78} 
95 ·79inline·size_t·ImageContext::getWidth()·const 
96 ·80{ 
97 ·81·return·d_width; 
98 ·82} 
99 ·83 
100 ·84inline·void·ImageContext::setWidth(size_t·width) 
101 ·85{ 
102 ·86·d_width·=·width; 
103 ·87} 
104 ·88 
105 ·89inline·size_t·ImageContext::getHeight()·const 
106 ·90{ 
107 ·91·return·d_height; 
108 ·92} 
109 ·93 
110 ·94inline·void·ImageContext::setHeight(size_t·height) 
111 ·95{ 
112 ·96·d_height·=·height; 
113 ·97} 
114 ·98inline·PixelFormat·ImageContext::getPixelFormat()·const 
115 ·99{ 
116 ·100·return·d_format; 
117 ·101} 
118 ·102 
119 ·103}·//·End·of·section·namespace·SILLY67 ·59}·//·End·of·section·namespace·SILLY
120 ·10468 ·60
 69 ·61//·Inclue·inline·function·when·needed
 70 ·62#ifdef·SILLY_OPT_INLINE
 71 ·63#include·"SILLYTGAImageContext.icpp"
 72 ·64#endif
 73 ·65
Max diff block lines reached; 116/4473 bytes (2.59%) of diff not shown.
23.8 KB
./usr/share/doc/libsilly-doc/html/a00065_source.html
    
Offset 1, 15 lines modifiedOffset 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">2 <html·xmlns="http://www.w3.org/1999/xhtml">
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.4"/>6 <meta·name="generator"·content="Doxygen·1.9.4"/>
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/SILLYMemoryDataSource.icpp·Source·File</title>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 35, 67 lines modifiedOffset 35, 96 lines modified
35 ··initMenu('',false,false,'search.php','Search');35 ··initMenu('',false,false,'search.php','Search');
36 });36 });
37 /*·@license-end·*/37 /*·@license-end·*/
38 </script>38 </script>
39 <div·id="main-nav"></div>39 <div·id="main-nav"></div>
40 <div·id="nav-path"·class="navpath">40 <div·id="nav-path"·class="navpath">
41 ··<ul>41 ··<ul>
42 <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>42 <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>
43 </div>43 </div>
44 </div><!--·top·-->44 </div><!--·top·-->
45 <div·class="header">45 <div·class="header">
46 ··<div·class="headertitle"><div·class="title">SILLYMemoryDataSource.icpp</div></div>46 ··<div·class="headertitle"><div·class="title">SILLYJPGImageContext.h</div></div>
47 </div><!--header-->47 </div><!--header-->
48 <div·class="contents">48 <div·class="contents">
49 <div·class="fragment"><div·class="line"><a·id="l00001"·name="l00001"></a><span·class="lineno">····1</span>/***********************************************************************</div>49 <div·class="fragment"><div·class="line"><a·id="l00001"·name="l00001"></a><span·class="lineno">····1</span><span·class="comment">/***********************************************************************</span></div>
50 <div·class="line"><a·id="l00002"·name="l00002"></a><span·class="lineno">····2</span>····Filename:···SILLYMemoryDataSource.icpp·</div>50 <div·class="line"><a·id="l00002"·name="l00002"></a><span·class="lineno">····2</span><span·class="comment">····filename:···SILLYJPGImageContext.h</span></div>
51 <div·class="line"><a·id="l00003"·name="l00003"></a><span·class="lineno">····3</span>····created:····10·Jun·2006</div>51 <div·class="line"><a·id="l00003"·name="l00003"></a><span·class="lineno">····3</span><span·class="comment">····created:····11·Jun·2006</span></div>
52 <div·class="line"><a·id="l00004"·name="l00004"></a><span·class="lineno">····4</span>····author:·····Olivier·Delannoy</div>52 <div·class="line"><a·id="l00004"·name="l00004"></a><span·class="lineno">····4</span><span·class="comment">····author:·····Olivier·Delannoy</span></div>
53 <div·class="line"><a·id="l00005"·name="l00005"></a><span·class="lineno">····5</span>·</div>53 <div·class="line"><a·id="l00005"·name="l00005"></a><span·class="lineno">····5</span><span·class="comment"></span>·</div>
54 <div·class="line"><a·id="l00006"·name="l00006"></a><span·class="lineno">····6</span>····purpose:····Inline·function·definition·for·MemoryDataSource·class··</div>54 <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>
55 <div·class="line"><a·id="l00007"·name="l00007"></a><span·class="lineno">····7</span>*************************************************************************/</div>55 <div·class="line"><a·id="l00007"·name="l00007"></a><span·class="lineno">····7</span><span·class="comment">*************************************************************************/</span></div>
56 <div·class="line"><a·id="l00008"·name="l00008"></a><span·class="lineno">····8</span>/***************************************************************************</div>56 <div·class="line"><a·id="l00008"·name="l00008"></a><span·class="lineno">····8</span><span·class="comment">/***************************************************************************</span></div>
57 <div·class="line"><a·id="l00009"·name="l00009"></a><span·class="lineno">····9</span>·*···Copyright·(C)·2004·-·2006·Paul·D·Turner·&amp;·The·CEGUI·Development·Team</div>57 <div·class="line"><a·id="l00009"·name="l00009"></a><span·class="lineno">····9</span><span·class="comment">·*···Copyright·(C)·2004·-·2006·Paul·D·Turner·&amp;·The·CEGUI·Development·Team</span></div>
58 <div·class="line"><a·id="l00010"·name="l00010"></a><span·class="lineno">···10</span>·*</div>58 <div·class="line"><a·id="l00010"·name="l00010"></a><span·class="lineno">···10</span><span·class="comment">·*</span></div>
59 <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>59 <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>
60 <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>60 <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>
61 <div·class="line"><a·id="l00013"·name="l00013"></a><span·class="lineno">···13</span>·*···&quot;Software&quot;),·to·deal·in·the·Software·without·restriction,·including</div>61 <div·class="line"><a·id="l00013"·name="l00013"></a><span·class="lineno">···13</span><span·class="comment">·*···&quot;Software&quot;),·to·deal·in·the·Software·without·restriction,·including</span></div>
62 <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>62 <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>
63 <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>63 <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>
64 <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>64 <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>
65 <div·class="line"><a·id="l00017"·name="l00017"></a><span·class="lineno">···17</span>·*···the·following·conditions:</div>65 <div·class="line"><a·id="l00017"·name="l00017"></a><span·class="lineno">···17</span><span·class="comment">·*···the·following·conditions:</span></div>
66 <div·class="line"><a·id="l00018"·name="l00018"></a><span·class="lineno">···18</span>·*</div>66 <div·class="line"><a·id="l00018"·name="l00018"></a><span·class="lineno">···18</span><span·class="comment">·*</span></div>
67 <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>67 <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>
68 <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>68 <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>
69 <div·class="line"><a·id="l00021"·name="l00021"></a><span·class="lineno">···21</span>·*</div>69 <div·class="line"><a·id="l00021"·name="l00021"></a><span·class="lineno">···21</span><span·class="comment">·*</span></div>
70 <div·class="line"><a·id="l00022"·name="l00022"></a><span·class="lineno">···22</span>·*···THE·SOFTWARE·IS·PROVIDED·&quot;AS·IS&quot;,·WITHOUT·WARRANTY·OF·ANY·KIND,</div>70 <div·class="line"><a·id="l00022"·name="l00022"></a><span·class="lineno">···22</span><span·class="comment">·*···THE·SOFTWARE·IS·PROVIDED·&quot;AS·IS&quot;,·WITHOUT·WARRANTY·OF·ANY·KIND,</span></div>
71 <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>71 <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>
72 <div·class="line"><a·id="l00024"·name="l00024"></a><span·class="lineno">···24</span>·*···MERCHANTABILITY,·FITNESS·FOR·A·PARTICULAR·PURPOSE·AND·NONINFRINGEMENT.</div>72 <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>
73 <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>73 <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>
74 <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>74 <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>
75 <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>75 <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>
76 <div·class="line"><a·id="l00028"·name="l00028"></a><span·class="lineno">···28</span>·*···OTHER·DEALINGS·IN·THE·SOFTWARE.</div>76 <div·class="line"><a·id="l00028"·name="l00028"></a><span·class="lineno">···28</span><span·class="comment">·*···OTHER·DEALINGS·IN·THE·SOFTWARE.</span></div>
77 <div·class="line"><a·id="l00029"·name="l00029"></a><span·class="lineno">···29</span>·***************************************************************************/</div>77 <div·class="line"><a·id="l00029"·name="l00029"></a><span·class="lineno">···29</span><span·class="comment">·***************************************************************************/</span></div>
78 <div·class="line"><a·id="l00030"·name="l00030"></a><span·class="lineno">···30</span>·</div>78 <div·class="line"><a·id="l00030"·name="l00030"></a><span·class="lineno">···30</span><span·class="preprocessor">#ifndef·_SILLYJPGImageContext_h_·</span></div>
 79 <div·class="line"><a·id="l00031"·name="l00031"></a><span·class="lineno">···31</span><span·class="preprocessor">#define·_SILLYJPGImageContext_h_</span></div>
 80 <div·class="line"><a·id="l00032"·name="l00032"></a><span·class="lineno">···32</span><span·class="preprocessor">#include·&quot;SILLYBase.h&quot;</span>·</div>
 81 <div·class="line"><a·id="l00033"·name="l00033"></a><span·class="lineno">···33</span><span·class="preprocessor">#include·&quot;SILLYImageContext.h&quot;</span>·</div>
 82 <div·class="line"><a·id="l00034"·name="l00034"></a><span·class="lineno">···34</span><span·class="preprocessor">#include·&quot;SILLYDataSource.h&quot;</span>·</div>
79 <div·class="line"><a·id="l00031"·name="l00031"></a><span·class="lineno">···31</span>//·Start·of·section·namespace·SILLY</div>83 <div·class="line"><a·id="l00035"·name="l00035"></a><span·class="lineno">···35</span><span·class="comment">//·Start·of·section·namespace·SILLY·</span></div>
80 <div·class="line"><a·id="l00032"·name="l00032"></a><span·class="lineno">···32</span>namespace·SILLY</div> 
81 <div·class="line"><a·id="l00033"·name="l00033"></a><span·class="lineno">···33</span>{</div> 
82 <div·class="line"><a·id="l00034"·name="l00034"></a><span·class="lineno">···34</span>·</div> 
83 <div·class="line"><a·id="l00035"·name="l00035"></a><span·class="lineno">···35</span>inline·const·byte*·MemoryDataSource::getDataPtr()·const</div> 
84 <div·class="line"><a·id="l00036"·name="l00036"></a><span·class="lineno">···36</span>{</div>84 <div·class="line"><a·id="l00036"·name="l00036"></a><span·class="lineno">···36</span><span·class="preprocessor">#include·&lt;setjmp.h&gt;</span></div>
85 <div·class="line"><a·id="l00037"·name="l00037"></a><span·class="lineno">···37</span>····return·d_bytes;</div>85 <div·class="line"><a·id="l00037"·name="l00037"></a><span·class="lineno">···37</span><span·class="preprocessor">#include·&lt;stdio.h&gt;</span></div>
86 <div·class="line"><a·id="l00038"·name="l00038"></a><span·class="lineno">···38</span>}</div>86 <div·class="line"><a·id="l00038"·name="l00038"></a><span·class="lineno">···38</span><span·class="preprocessor">#include·&lt;string.h&gt;</span></div>
 87 <div·class="line"><a·id="l00039"·name="l00039"></a><span·class="lineno">···39</span><span·class="keyword">extern</span>·<span·class="stringliteral">&quot;C&quot;</span>·</div>
87 <div·class="line"><a·id="l00039"·name="l00039"></a><span·class="lineno">···39</span>·</div> 
88 <div·class="line"><a·id="l00040"·name="l00040"></a><span·class="lineno">···40</span>inline·size_t·MemoryDataSource::getSize()·const</div> 
89 <div·class="line"><a·id="l00041"·name="l00041"></a><span·class="lineno">···41</span>{</div>88 <div·class="line"><a·id="l00040"·name="l00040"></a><span·class="lineno">···40</span>{</div>
90 <div·class="line"><a·id="l00042"·name="l00042"></a><span·class="lineno">···42</span>····return·d_size;</div>89 <div·class="line"><a·id="l00041"·name="l00041"></a><span·class="lineno">···41</span><span·class="preprocessor">#include·&lt;jpeglib.h&gt;</span></div>
91 <div·class="line"><a·id="l00043"·name="l00043"></a><span·class="lineno">···43</span>}</div>90 <div·class="line"><a·id="l00042"·name="l00042"></a><span·class="lineno">···42</span>}</div>
 91 <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>
92 <div·class="line"><a·id="l00044"·name="l00044"></a><span·class="lineno">···44</span>····</div>92 <div·class="line"><a·id="l00044"·name="l00044"></a><span·class="lineno">···44</span>{</div>
93 <div·class="line"><a·id="l00045"·name="l00045"></a><span·class="lineno">···45</span>}·//·End·of·section·namespace·SILLY</div> 
94 <div·class="line"><a·id="l00046"·name="l00046"></a><span·class="lineno">···46</span>·</div>93 <div·class="line"><a·id="l00045"·name="l00045"></a><span·class="lineno">···45</span>·</div>
 94 <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>
 95 <div·class="line"><a·id="l00057"·name="l00057"></a><span·class="lineno">···57</span>{</div>
 96 <div·class="line"><a·id="l00058"·name="l00058"></a><span·class="lineno">···58</span><span·class="keyword">public</span>:</div>
 97 <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>
 98 <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>
 99 <div·class="line"><a·id="l00061"·name="l00061"></a><span·class="lineno">···61</span>·</div>
 100 <div·class="line"><a·id="l00062"·name="l00062"></a><span·class="lineno">···62</span>····<span·class="keywordtype">void</span>·setImageSize();</div>
 101 <div·class="line"><a·id="l00063"·name="l00063"></a><span·class="lineno">···63</span>····</div>
 102 <div·class="line"><a·id="l00064"·name="l00064"></a><span·class="lineno">···64</span>····</div>
 103 <div·class="line"><a·id="l00065"·name="l00065"></a><span·class="lineno">···65</span>····jpeg_source_mgr·src_mgr;</div>
 104 <div·class="line"><a·id="l00066"·name="l00066"></a><span·class="lineno">···66</span>····jpeg_decompress_struct·cinfo;</div>
 105 <div·class="line"><a·id="l00067"·name="l00067"></a><span·class="lineno">···67</span>····</div>
 106 <div·class="line"><a·id="l00068"·name="l00068"></a><span·class="lineno">···68</span>····jpeg_error_mgr·d_error_mgr;</div>
 107 <div·class="line"><a·id="l00069"·name="l00069"></a><span·class="lineno">···69</span>····jmp_buf·setjmp_buffer;</div>
 108 <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>
 109 <div·class="line"><a·id="l00071"·name="l00071"></a><span·class="lineno">···71</span>};</div>
 110 <div·class="line"><a·id="l00072"·name="l00072"></a><span·class="lineno">···72</span>··</div>
 111 <div·class="line"><a·id="l00073"·name="l00073"></a><span·class="lineno">···73</span>··</div>
 112 <div·class="line"><a·id="l00074"·name="l00074"></a><span·class="lineno">···74</span>}·<span·class="comment">//·End·of·section·namespace·SILLY·</span></div>
 113 <div·class="line"><a·id="l00075"·name="l00075"></a><span·class="lineno">···75</span>·</div>
 114 <div·class="line"><a·id="l00076"·name="l00076"></a><span·class="lineno">···76</span><span·class="comment">//·Inclue·inline·function·when·needed·</span></div>
 115 <div·class="line"><a·id="l00077"·name="l00077"></a><span·class="lineno">···77</span><span·class="preprocessor">#ifdef·SILLY_OPT_INLINE</span></div>
 116 <div·class="line"><a·id="l00078"·name="l00078"></a><span·class="lineno">···78</span><span·class="preprocessor">#include·&quot;SILLYJPGImageContext.icpp&quot;</span></div>
 117 <div·class="line"><a·id="l00079"·name="l00079"></a><span·class="lineno">···79</span><span·class="preprocessor">#endif·</span></div>
 118 <div·class="line"><a·id="l00080"·name="l00080"></a><span·class="lineno">···80</span>·</div>
 119 <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>
 120 <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="a00005_source.html#l00045">SILLYJPGImageContext.cpp:46</a></div></div>
 121 <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="a00065_source.html#l00056">SILLYJPGImageContext.h:57</a></div></div>
 122 <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="a00119_source.html#l00046">SILLYDataSource.h:47</a></div></div>
 123 <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="a00110_source.html#l00043">SILLYImageContext.h:44</a></div></div>
95 </div><!--·fragment·--></div><!--·contents·-->124 </div><!--·fragment·--></div><!--·contents·-->
96 <!--·start·footer·part·-->125 <!--·start·footer·part·-->
97 <hr·class="footer"/><address·class="footer"><small>126 <hr·class="footer"/><address·class="footer"><small>
98 Generated·by&#160;<a·href="https://www.doxygen.org/index.html"><img·class="footer"·src="doxygen.svg"·width="104"·height="31"·alt="doxygen"/></a>·1.9.4127 Generated·by&#160;<a·href="https://www.doxygen.org/index.html"><img·class="footer"·src="doxygen.svg"·width="104"·height="31"·alt="doxygen"/></a>·1.9.4
99 </small></address>128 </small></address>
100 </body>129 </body>
101 </html>130 </html>
3.2 KB
html2text {}
    
Offset 4, 21 lines modifiedOffset 4, 22 lines modified
  
4 Simple·Image·Loading·LibrarY 0.1.04 Simple·Image·Loading·LibrarY 0.1.0
  
5 ····*·build5 ····*·build
6 ····*·reproducible-path6 ····*·reproducible-path
7 ····*·silly-0.1.07 ····*·silly-0.1.0
8 ····*·include8 ····*·include
9 SILLYMemoryDataSource.icpp9 ····*·loaders
 10 SILLYJPGImageContext.h
10 ·1/***********************************************************************11 ·1/***********************************************************************
11 ·2·Filename:·SILLYMemoryDataSource.icpp12 ·2·filename:·SILLYJPGImageContext.h
12 ·3·created:·10·Jun·200613 ·3·created:·11·Jun·2006
13 ·4·author:·Olivier·Delannoy14 ·4·author:·Olivier·Delannoy
14 ·515 ·5
15 ·6·purpose:·Inline·function·definition·for·MemoryDataSource·class16 ·6·purpose:·Declaration·of·the·JPGImageContext·class
16 ·7*************************************************************************/17 ·7*************************************************************************/
17 ·8/***************************************************************************18 ·8/***************************************************************************
18 ·9·*·Copyright·(C)·2004·-·2006·Paul·D·Turner·&·The·CEGUI·Development·Team19 ·9·*·Copyright·(C)·2004·-·2006·Paul·D·Turner·&·The·CEGUI·Development·Team
19 ·10·*20 ·10·*
20 ·11·*·Permission·is·hereby·granted,·free·of·charge,·to·any·person·obtaining21 ·11·*·Permission·is·hereby·granted,·free·of·charge,·to·any·person·obtaining
21 ·12·*·a·copy·of·this·software·and·associated·documentation·files·(the22 ·12·*·a·copy·of·this·software·and·associated·documentation·files·(the
22 ·13·*·"Software"),·to·deal·in·the·Software·without·restriction,·including23 ·13·*·"Software"),·to·deal·in·the·Software·without·restriction,·including
Offset 35, 27 lines modifiedOffset 36, 64 lines modified
35 ·24·*·MERCHANTABILITY,·FITNESS·FOR·A·PARTICULAR·PURPOSE·AND·NONINFRINGEMENT.36 ·24·*·MERCHANTABILITY,·FITNESS·FOR·A·PARTICULAR·PURPOSE·AND·NONINFRINGEMENT.
36 ·25·*·IN·NO·EVENT·SHALL·THE·AUTHORS·BE·LIABLE·FOR·ANY·CLAIM,·DAMAGES·OR37 ·25·*·IN·NO·EVENT·SHALL·THE·AUTHORS·BE·LIABLE·FOR·ANY·CLAIM,·DAMAGES·OR
37 ·26·*·OTHER·LIABILITY,·WHETHER·IN·AN·ACTION·OF·CONTRACT,·TORT·OR·OTHERWISE,38 ·26·*·OTHER·LIABILITY,·WHETHER·IN·AN·ACTION·OF·CONTRACT,·TORT·OR·OTHERWISE,
38 ·27·*·ARISING·FROM,·OUT·OF·OR·IN·CONNECTION·WITH·THE·SOFTWARE·OR·THE·USE·OR39 ·27·*·ARISING·FROM,·OUT·OF·OR·IN·CONNECTION·WITH·THE·SOFTWARE·OR·THE·USE·OR
39 ·28·*·OTHER·DEALINGS·IN·THE·SOFTWARE.40 ·28·*·OTHER·DEALINGS·IN·THE·SOFTWARE.
40 ·2941 ·29
41 ***************************************************************************/42 ***************************************************************************/
42 ·3043 ·30#ifndef·_SILLYJPGImageContext_h_
 44 ·31#define·_SILLYJPGImageContext_h_
 45 ·32#include·"SILLYBase.h"
 46 ·33#include·"SILLYImageContext.h"
 47 ·34#include·"SILLYDataSource.h"
43 ·31//·Start·of·section·namespace·SILLY48 ·35//·Start·of·section·namespace·SILLY
 49 ·36#include·<setjmp.h>
 50 ·37#include·<stdio.h>
 51 ·38#include·<string.h>
 52 ·39extern·"C"
 53 ·40{
 54 ·41#include·<jpeglib.h>
 55 ·42}
44 ·32namespace·SILLY56 ·43namespace·SILLY
45 ·33{ 
46 ·34 
47 ·35inline·const·byte*·MemoryDataSource::getDataPtr()·const 
48 ·36{ 
49 ·37·return·d_bytes; 
50 ·38} 
51 ·39 
52 ·40inline·size_t·MemoryDataSource::getSize()·const 
53 ·41{ 
54 ·42·return·d_size; 
55 ·43} 
56 ·4457 ·44{
 58 ·45
 59 56class·JPGImageContext·:·public·ImageContext
 60 ·57{
 61 ·58public:
 62 ·59·JPGImageContext();
 63 ·60·~JPGImageContext();
 64 ·61
 65 ·62·void·setImageSize();
 66 ·63
 67 ·64
 68 ·65·jpeg_source_mgr·src_mgr;
 69 ·66·jpeg_decompress_struct·cinfo;
 70 ·67
 71 ·68·jpeg_error_mgr·d_error_mgr;
 72 ·69·jmp_buf·setjmp_buffer;
 73 ·70·DataSource*·d_source;
 74 ·71};
 75 ·72
 76 ·73
57 ·45}·//·End·of·section·namespace·SILLY77 ·74}·//·End·of·section·namespace·SILLY
58 ·4678 ·75
 79 ·76//·Inclue·inline·function·when·needed
 80 ·77#ifdef·SILLY_OPT_INLINE
 81 ·78#include·"SILLYJPGImageContext.icpp"
 82 ·79#endif
 83 ·80
 84 ·81#endif·//·end·of·guard·_SILLYJPGImageContext_h_
 85 SILLY
 86 Simple·Image·Loading·LibrarY·namespace.
 87 Definition:·SILLYJPGImageContext.cpp:46
 88 SILLY::JPGImageContext
 89 Image·Context·for·JPG·image·loader.
 90 Definition:·SILLYJPGImageContext.h:57
 91 SILLY::DataSource
 92 This·is·an·abstract·class·used·to·provide·data·to·the·loader.
 93 Definition:·SILLYDataSource.h:47
 94 SILLY::ImageContext
 95 Store·the·data·needed·by·an·ImageLoader·object·during·the·parsing·of·an·image.
 96 Definition:·SILLYImageContext.h:44
  
59 ===============================================================================97 ===============================================================================
60 ·····Generated·by [doxygen]·1.9.498 ·····Generated·by [doxygen]·1.9.4
25.9 KB
./usr/share/doc/libsilly-doc/html/a00068_source.html
    
Offset 1, 15 lines modifiedOffset 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">2 <html·xmlns="http://www.w3.org/1999/xhtml">
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.4"/>6 <meta·name="generator"·content="Doxygen·1.9.4"/>
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.icpp·Source·File</title>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 35, 66 lines modifiedOffset 35, 92 lines modified
35 ··initMenu('',false,false,'search.php','Search');35 ··initMenu('',false,false,'search.php','Search');
36 });36 });
37 /*·@license-end·*/37 /*·@license-end·*/
38 </script>38 </script>
39 <div·id="main-nav"></div>39 <div·id="main-nav"></div>
40 <div·id="nav-path"·class="navpath">40 <div·id="nav-path"·class="navpath">
41 ··<ul>41 ··<ul>
42 <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>42 <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>
43 </div>43 </div>
44 </div><!--·top·-->44 </div><!--·top·-->
45 <div·class="header">45 <div·class="header">
46 ··<div·class="headertitle"><div·class="title">SILLYDataSource.icpp</div></div>46 ··<div·class="headertitle"><div·class="title">SILLYPNGImageLoader.h</div></div>
47 </div><!--header-->47 </div><!--header-->
48 <div·class="contents">48 <div·class="contents">
49 <div·class="fragment"><div·class="line"><a·id="l00001"·name="l00001"></a><span·class="lineno">····1</span>/***********************************************************************</div>49 <div·class="fragment"><div·class="line"><a·id="l00001"·name="l00001"></a><span·class="lineno">····1</span><span·class="comment">/***********************************************************************</span></div>
50 <div·class="line"><a·id="l00002"·name="l00002"></a><span·class="lineno">····2</span>····filename:···SILLYDataSource.icpp·</div>50 <div·class="line"><a·id="l00002"·name="l00002"></a><span·class="lineno">····2</span><span·class="comment">····filename:···SILLYPNGImageLoader.h</span></div>
51 <div·class="line"><a·id="l00003"·name="l00003"></a><span·class="lineno">····3</span>····created:····10·Jun·2006</div>51 <div·class="line"><a·id="l00003"·name="l00003"></a><span·class="lineno">····3</span><span·class="comment">····created:····11·Jun·2006</span></div>
52 <div·class="line"><a·id="l00004"·name="l00004"></a><span·class="lineno">····4</span>····author:·····ode@dalfy.dalfy.dyndns.org</div>52 <div·class="line"><a·id="l00004"·name="l00004"></a><span·class="lineno">····4</span><span·class="comment">····author:·····Olivier·Delannoy</span></div>
53 <div·class="line"><a·id="l00005"·name="l00005"></a><span·class="lineno">····5</span>·</div>53 <div·class="line"><a·id="l00005"·name="l00005"></a><span·class="lineno">····5</span><span·class="comment"></span>·</div>
54 <div·class="line"><a·id="l00006"·name="l00006"></a><span·class="lineno">····6</span>····purpose:····Inline·function·definition·for·(F&gt;&gt;&gt;ILE_SANS&lt;&lt;&lt;)·class··</div>54 <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>
55 <div·class="line"><a·id="l00007"·name="l00007"></a><span·class="lineno">····7</span>*************************************************************************/</div>55 <div·class="line"><a·id="l00007"·name="l00007"></a><span·class="lineno">····7</span><span·class="comment">*************************************************************************/</span></div>
56 <div·class="line"><a·id="l00008"·name="l00008"></a><span·class="lineno">····8</span>/***************************************************************************</div>56 <div·class="line"><a·id="l00008"·name="l00008"></a><span·class="lineno">····8</span><span·class="comment">/***************************************************************************</span></div>
57 <div·class="line"><a·id="l00009"·name="l00009"></a><span·class="lineno">····9</span>·*···Copyright·(C)·2004·-·2006·Paul·D·Turner·&amp;·The·CEGUI·Development·Team</div>57 <div·class="line"><a·id="l00009"·name="l00009"></a><span·class="lineno">····9</span><span·class="comment">·*···Copyright·(C)·2004·-·2006·Paul·D·Turner·&amp;·The·CEGUI·Development·Team</span></div>
58 <div·class="line"><a·id="l00010"·name="l00010"></a><span·class="lineno">···10</span>·*</div>58 <div·class="line"><a·id="l00010"·name="l00010"></a><span·class="lineno">···10</span><span·class="comment">·*</span></div>
59 <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>59 <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>
60 <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>60 <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>
61 <div·class="line"><a·id="l00013"·name="l00013"></a><span·class="lineno">···13</span>·*···&quot;Software&quot;),·to·deal·in·the·Software·without·restriction,·including</div>61 <div·class="line"><a·id="l00013"·name="l00013"></a><span·class="lineno">···13</span><span·class="comment">·*···&quot;Software&quot;),·to·deal·in·the·Software·without·restriction,·including</span></div>
62 <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>62 <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>
63 <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>63 <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>
64 <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>64 <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>
65 <div·class="line"><a·id="l00017"·name="l00017"></a><span·class="lineno">···17</span>·*···the·following·conditions:</div>65 <div·class="line"><a·id="l00017"·name="l00017"></a><span·class="lineno">···17</span><span·class="comment">·*···the·following·conditions:</span></div>
66 <div·class="line"><a·id="l00018"·name="l00018"></a><span·class="lineno">···18</span>·*</div>66 <div·class="line"><a·id="l00018"·name="l00018"></a><span·class="lineno">···18</span><span·class="comment">·*</span></div>
67 <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>67 <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>
68 <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>68 <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>
69 <div·class="line"><a·id="l00021"·name="l00021"></a><span·class="lineno">···21</span>·*</div>69 <div·class="line"><a·id="l00021"·name="l00021"></a><span·class="lineno">···21</span><span·class="comment">·*</span></div>
70 <div·class="line"><a·id="l00022"·name="l00022"></a><span·class="lineno">···22</span>·*···THE·SOFTWARE·IS·PROVIDED·&quot;AS·IS&quot;,·WITHOUT·WARRANTY·OF·ANY·KIND,</div>70 <div·class="line"><a·id="l00022"·name="l00022"></a><span·class="lineno">···22</span><span·class="comment">·*···THE·SOFTWARE·IS·PROVIDED·&quot;AS·IS&quot;,·WITHOUT·WARRANTY·OF·ANY·KIND,</span></div>
71 <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>71 <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>
72 <div·class="line"><a·id="l00024"·name="l00024"></a><span·class="lineno">···24</span>·*···MERCHANTABILITY,·FITNESS·FOR·A·PARTICULAR·PURPOSE·AND·NONINFRINGEMENT.</div>72 <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>
73 <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>73 <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>
74 <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>74 <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>
75 <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>75 <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>
76 <div·class="line"><a·id="l00028"·name="l00028"></a><span·class="lineno">···28</span>·*···OTHER·DEALINGS·IN·THE·SOFTWARE.</div>76 <div·class="line"><a·id="l00028"·name="l00028"></a><span·class="lineno">···28</span><span·class="comment">·*···OTHER·DEALINGS·IN·THE·SOFTWARE.</span></div>
77 <div·class="line"><a·id="l00029"·name="l00029"></a><span·class="lineno">···29</span>·***************************************************************************/</div>77 <div·class="line"><a·id="l00029"·name="l00029"></a><span·class="lineno">···29</span><span·class="comment">·***************************************************************************/</span></div>
78 <div·class="line"><a·id="l00030"·name="l00030"></a><span·class="lineno">···30</span>·</div>78 <div·class="line"><a·id="l00030"·name="l00030"></a><span·class="lineno">···30</span><span·class="preprocessor">#ifndef·_SILLYPNGImageLoader_h_·</span></div>
 79 <div·class="line"><a·id="l00031"·name="l00031"></a><span·class="lineno">···31</span><span·class="preprocessor">#define·_SILLYPNGImageLoader_h_</span></div>
 80 <div·class="line"><a·id="l00032"·name="l00032"></a><span·class="lineno">···32</span><span·class="preprocessor">#include·&quot;SILLYBase.h&quot;</span>·</div>
 81 <div·class="line"><a·id="l00033"·name="l00033"></a><span·class="lineno">···33</span><span·class="preprocessor">#include·&quot;SILLYImageLoader.h&quot;</span>·</div>
 82 <div·class="line"><a·id="l00034"·name="l00034"></a><span·class="lineno">···34</span><span·class="preprocessor">#include·&quot;SILLYDataSource.h&quot;</span>·</div>
79 <div·class="line"><a·id="l00031"·name="l00031"></a><span·class="lineno">···31</span>//·Start·of·section·namespace·SILLY</div>83 <div·class="line"><a·id="l00035"·name="l00035"></a><span·class="lineno">···35</span><span·class="comment">//·Start·of·section·namespace·SILLY·</span></div>
 84 <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>
80 <div·class="line"><a·id="l00032"·name="l00032"></a><span·class="lineno">···32</span>namespace·SILLY</div> 
81 <div·class="line"><a·id="l00033"·name="l00033"></a><span·class="lineno">···33</span>{</div> 
82 <div·class="line"><a·id="l00034"·name="l00034"></a><span·class="lineno">···34</span>inline·DataSource::~DataSource()·</div> 
83 <div·class="line"><a·id="l00035"·name="l00035"></a><span·class="lineno">···35</span>{</div> 
84 <div·class="line"><a·id="l00036"·name="l00036"></a><span·class="lineno">···36</span>}</div> 
85 <div·class="line"><a·id="l00037"·name="l00037"></a><span·class="lineno">···37</span>·</div>85 <div·class="line"><a·id="l00037"·name="l00037"></a><span·class="lineno">···37</span>{</div>
 86 <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>
86 <div·class="line"><a·id="l00038"·name="l00038"></a><span·class="lineno">···38</span>inline·byte·DataSource::operator[](size_t·offset)·const</div> 
87 <div·class="line"><a·id="l00039"·name="l00039"></a><span·class="lineno">···39</span>{</div> 
88 <div·class="line"><a·id="l00040"·name="l00040"></a><span·class="lineno">···40</span>····assert(offset·&lt;·getSize()·&amp;&amp;·&quot;ASSERT:·Trying·to·access·pixel·outside·of·the·data&quot;);</div> 
89 <div·class="line"><a·id="l00041"·name="l00041"></a><span·class="lineno">···41</span>····return·getDataPtr()[offset];</div> 
90 <div·class="line"><a·id="l00042"·name="l00042"></a><span·class="lineno">···42</span>}</div> 
91 <div·class="line"><a·id="l00043"·name="l00043"></a><span·class="lineno">···43</span>·</div>87 <div·class="line"><a·id="l00043"·name="l00043"></a><span·class="lineno">···43</span>{</div>
 88 <div·class="line"><a·id="l00044"·name="l00044"></a><span·class="lineno">···44</span><span·class="keyword">public</span>:</div>
 89 <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>
92 <div·class="line"><a·id="l00044"·name="l00044"></a><span·class="lineno">···44</span>}·//·End·of·section·namespace·SILLY</div>90 <div·class="line"><a·id="l00046"·name="l00046"></a><span·class="lineno">···46</span>····</div>
 91 <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>
 92 <div·class="line"><a·id="l00048"·name="l00048"></a><span·class="lineno">···48</span>····</div>
 93 <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>&amp;·formatSource,·<a·class="code·hl_class"·href="a00969.html">DataSource</a>*·data);</div>
 94 <div·class="line"><a·id="l00050"·name="l00050"></a><span·class="lineno">···50</span>····</div>
 95 <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>
 96 <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>
 97 <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>
 98 <div·class="line"><a·id="l00054"·name="l00054"></a><span·class="lineno">···54</span><span·class="keyword">private</span>:</div>
93 <div·class="line"><a·id="l00045"·name="l00045"></a><span·class="lineno">···45</span>·</div>99 <div·class="line"><a·id="l00055"·name="l00055"></a><span·class="lineno">···55</span>·</div>
 100 <div·class="line"><a·id="l00056"·name="l00056"></a><span·class="lineno">···56</span>};</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>··</div>
 103 <div·class="line"><a·id="l00059"·name="l00059"></a><span·class="lineno">···59</span>}·<span·class="comment">//·End·of·section·namespace·SILLY·</span></div>
 104 <div·class="line"><a·id="l00060"·name="l00060"></a><span·class="lineno">···60</span>·</div>
 105 <div·class="line"><a·id="l00061"·name="l00061"></a><span·class="lineno">···61</span><span·class="comment">//·Inclue·inline·function·when·needed·</span></div>
 106 <div·class="line"><a·id="l00062"·name="l00062"></a><span·class="lineno">···62</span><span·class="preprocessor">#ifdef·SILLY_OPT_INLINE</span></div>
 107 <div·class="line"><a·id="l00063"·name="l00063"></a><span·class="lineno">···63</span><span·class="preprocessor">#include·&quot;SILLYPNGImageLoader.icpp&quot;</span></div>
 108 <div·class="line"><a·id="l00064"·name="l00064"></a><span·class="lineno">···64</span><span·class="preprocessor">#endif·</span></div>
 109 <div·class="line"><a·id="l00065"·name="l00065"></a><span·class="lineno">···65</span>·</div>
 110 <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>
 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="a00005_source.html#l00045">SILLYJPGImageContext.cpp:46</a></div></div>
 112 <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="a00113_source.html#l00059">SILLYBase.h:60</a></div></div>
 113 <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="a00113_source.html#l00070">SILLYBase.h:71</a></div></div>
 114 <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="a00068_source.html#l00042">SILLYPNGImageLoader.h:43</a></div></div>
 115 <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·&amp;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="a00017_source.html#l00088">SILLYPNGImageLoader.cpp:88</a></div></div>
 116 <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="a00017_source.html#l00154">SILLYPNGImageLoader.cpp:154</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="a00119_source.html#l00046">SILLYDataSource.h:47</a></div></div>
 118 <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="a00110_source.html#l00043">SILLYImageContext.h:44</a></div></div>
 119 <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="a00092_source.html#l00046">SILLYImageLoader.h:47</a></div></div>
94 </div><!--·fragment·--></div><!--·contents·-->120 </div><!--·fragment·--></div><!--·contents·-->
95 <!--·start·footer·part·-->121 <!--·start·footer·part·-->
96 <hr·class="footer"/><address·class="footer"><small>122 <hr·class="footer"/><address·class="footer"><small>
97 Generated·by&#160;<a·href="https://www.doxygen.org/index.html"><img·class="footer"·src="doxygen.svg"·width="104"·height="31"·alt="doxygen"/></a>·1.9.4123 Generated·by&#160;<a·href="https://www.doxygen.org/index.html"><img·class="footer"·src="doxygen.svg"·width="104"·height="31"·alt="doxygen"/></a>·1.9.4
98 </small></address>124 </small></address>
99 </body>125 </body>
100 </html>126 </html>
3.87 KB
html2text {}
    
Offset 4, 21 lines modifiedOffset 4, 22 lines modified
  
4 Simple·Image·Loading·LibrarY 0.1.04 Simple·Image·Loading·LibrarY 0.1.0
  
5 ····*·build5 ····*·build
6 ····*·reproducible-path6 ····*·reproducible-path
7 ····*·silly-0.1.07 ····*·silly-0.1.0
8 ····*·include8 ····*·include
9 SILLYDataSource.icpp9 ····*·loaders
 10 SILLYPNGImageLoader.h
10 ·1/***********************************************************************11 ·1/***********************************************************************
11 ·2·filename:·SILLYDataSource.icpp12 ·2·filename:·SILLYPNGImageLoader.h
12 ·3·created:·10·Jun·200613 ·3·created:·11·Jun·2006
13 ·4·author:·ode@dalfy.dalfy.dyndns.org14 ·4·author:·Olivier·Delannoy
14 ·515 ·5
15 ·6·purpose:·Inline·function·definition·for·(F>>>ILE_SANS<<<)·class16 ·6·purpose:·Declaration·of·the·PNGImageLoader·class
16 ·7*************************************************************************/17 ·7*************************************************************************/
17 ·8/***************************************************************************18 ·8/***************************************************************************
18 ·9·*·Copyright·(C)·2004·-·2006·Paul·D·Turner·&·The·CEGUI·Development·Team19 ·9·*·Copyright·(C)·2004·-·2006·Paul·D·Turner·&·The·CEGUI·Development·Team
19 ·10·*20 ·10·*
20 ·11·*·Permission·is·hereby·granted,·free·of·charge,·to·any·person·obtaining21 ·11·*·Permission·is·hereby·granted,·free·of·charge,·to·any·person·obtaining
21 ·12·*·a·copy·of·this·software·and·associated·documentation·files·(the22 ·12·*·a·copy·of·this·software·and·associated·documentation·files·(the
22 ·13·*·"Software"),·to·deal·in·the·Software·without·restriction,·including23 ·13·*·"Software"),·to·deal·in·the·Software·without·restriction,·including
Offset 35, 27 lines modifiedOffset 36, 74 lines modified
35 ·24·*·MERCHANTABILITY,·FITNESS·FOR·A·PARTICULAR·PURPOSE·AND·NONINFRINGEMENT.36 ·24·*·MERCHANTABILITY,·FITNESS·FOR·A·PARTICULAR·PURPOSE·AND·NONINFRINGEMENT.
36 ·25·*·IN·NO·EVENT·SHALL·THE·AUTHORS·BE·LIABLE·FOR·ANY·CLAIM,·DAMAGES·OR37 ·25·*·IN·NO·EVENT·SHALL·THE·AUTHORS·BE·LIABLE·FOR·ANY·CLAIM,·DAMAGES·OR
37 ·26·*·OTHER·LIABILITY,·WHETHER·IN·AN·ACTION·OF·CONTRACT,·TORT·OR·OTHERWISE,38 ·26·*·OTHER·LIABILITY,·WHETHER·IN·AN·ACTION·OF·CONTRACT,·TORT·OR·OTHERWISE,
38 ·27·*·ARISING·FROM,·OUT·OF·OR·IN·CONNECTION·WITH·THE·SOFTWARE·OR·THE·USE·OR39 ·27·*·ARISING·FROM,·OUT·OF·OR·IN·CONNECTION·WITH·THE·SOFTWARE·OR·THE·USE·OR
39 ·28·*·OTHER·DEALINGS·IN·THE·SOFTWARE.40 ·28·*·OTHER·DEALINGS·IN·THE·SOFTWARE.
40 ·2941 ·29
41 ***************************************************************************/42 ***************************************************************************/
42 ·3043 ·30#ifndef·_SILLYPNGImageLoader_h_
 44 ·31#define·_SILLYPNGImageLoader_h_
 45 ·32#include·"SILLYBase.h"
 46 ·33#include·"SILLYImageLoader.h"
 47 ·34#include·"SILLYDataSource.h"
43 ·31//·Start·of·section·namespace·SILLY48 ·35//·Start·of·section·namespace·SILLY
44 ·32namespace·SILLY49 ·36namespace·SILLY
45 ·33{ 
46 ·34inline·DataSource::~DataSource() 
47 ·35{ 
48 ·36} 
49 ·3750 ·37{
 51 42class·PNGImageLoader·:·public·ImageLoader
50 ·38inline·byte·DataSource::operator[](size_t·offset)·const 
51 ·39{ 
52 ·40·assert(offset·<·getSize()·&&·"ASSERT:·Trying·to·access·pixel·outside·of·the 
53 data"); 
54 ·41·return·getDataPtr()[offset]; 
55 ·42} 
56 ·4352 ·43{
 53 ·44public:
 54 ·45·PNGImageLoader();
 55 ·46
 56 ·47·~PNGImageLoader();
 57 ·48
 58 ·49·ImageContext*·loadHeader(PixelFormat&·formatSource,·DataSource*·data);
 59 ·50
 60 ·51·bool·loadImageData(PixelOrigin·origin,
 61 ·52·DataSource*·data,
 62 ·53·ImageContext*·context);
 63 ·54private:
 64 ·55
 65 ·56};
 66 ·57
 67 ·58
57 ·44}·//·End·of·section·namespace·SILLY68 ·59}·//·End·of·section·namespace·SILLY
58 ·4569 ·60
 70 ·61//·Inclue·inline·function·when·needed
 71 ·62#ifdef·SILLY_OPT_INLINE
 72 ·63#include·"SILLYPNGImageLoader.icpp"
 73 ·64#endif
 74 ·65
 75 ·66#endif·//·end·of·guard·_SILLYPNGImageLoader_h_
 76 SILLY
 77 Simple·Image·Loading·LibrarY·namespace.
 78 Definition:·SILLYJPGImageContext.cpp:46
 79 SILLY::PixelFormat
 80 PixelFormat
 81 List·all·pixel·format·supported.
 82 Definition:·SILLYBase.h:60
 83 SILLY::PixelOrigin
 84 PixelOrigin
 85 List·all·pixel·origin·supported.
 86 Definition:·SILLYBase.h:71
 87 SILLY::PNGImageLoader
 88 Loader·for·PNG·Image.
 89 Definition:·SILLYPNGImageLoader.h:43
 90 SILLY::PNGImageLoader::loadHeader
 91 ImageContext·*·loadHeader(PixelFormat·&formatSource,·DataSource·*data)
 92 Parse·the·header·of·the·image·and·fill·the·header·struct.
 93 Definition:·SILLYPNGImageLoader.cpp:88
 94 SILLY::PNGImageLoader::loadImageData
 95 bool·loadImageData(PixelOrigin·origin,·DataSource·*data,·ImageContext·*context)
 96 Parse·the·pixels·data·of·the·image·and·fill·the·header·struct.
 97 Definition:·SILLYPNGImageLoader.cpp:154
 98 SILLY::DataSource
 99 This·is·an·abstract·class·used·to·provide·data·to·the·loader.
 100 Definition:·SILLYDataSource.h:47
 101 SILLY::ImageContext
 102 Store·the·data·needed·by·an·ImageLoader·object·during·the·parsing·of·an·image.
 103 Definition:·SILLYImageContext.h:44
 104 SILLY::ImageLoader
 105 This·is·an·abstract·class·that·define·the·interface·of·all·image·loader.
 106 Definition:·SILLYImageLoader.h:47
  
59 ===============================================================================107 ===============================================================================
60 ·····Generated·by [doxygen]·1.9.4108 ·····Generated·by [doxygen]·1.9.4
34.6 KB
./usr/share/doc/libsilly-doc/html/a00071_source.html
    
Offset 1, 15 lines modifiedOffset 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">2 <html·xmlns="http://www.w3.org/1999/xhtml">
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.4"/>6 <meta·name="generator"·content="Doxygen·1.9.4"/>
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.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 35, 128 lines modifiedOffset 35, 57 lines modified
35 ··initMenu('',false,false,'search.php','Search');35 ··initMenu('',false,false,'search.php','Search');
36 });36 });
37 /*·@license-end·*/37 /*·@license-end·*/
38 </script>38 </script>
39 <div·id="main-nav"></div>39 <div·id="main-nav"></div>
40 <div·id="nav-path"·class="navpath">40 <div·id="nav-path"·class="navpath">
41 ··<ul>41 ··<ul>
42 <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>42 <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>
43 </div>43 </div>
44 </div><!--·top·-->44 </div><!--·top·-->
45 <div·class="header">45 <div·class="header">
46 ··<div·class="headertitle"><div·class="title">SILLYImage.h</div></div>46 ··<div·class="headertitle"><div·class="title">SILLYJPGImageLoader.icpp</div></div>
47 </div><!--header-->47 </div><!--header-->
48 <div·class="contents">48 <div·class="contents">
49 <div·class="fragment"><div·class="line"><a·id="l00001"·name="l00001"></a><span·class="lineno">····1</span>·</div> 
50 <div·class="line"><a·id="l00002"·name="l00002"></a><span·class="lineno">····2</span><span·class="comment">/***********************************************************************</span></div>49 <div·class="fragment"><div·class="line"><a·id="l00001"·name="l00001"></a><span·class="lineno">····1</span>/***********************************************************************</div>
51 <div·class="line"><a·id="l00003"·name="l00003"></a><span·class="lineno">····3</span><span·class="comment">····filename:···SILLYImage.h</span></div>50 <div·class="line"><a·id="l00002"·name="l00002"></a><span·class="lineno">····2</span>····filename:···SILLYJPGImageLoader.icpp·</div>
52 <div·class="line"><a·id="l00004"·name="l00004"></a><span·class="lineno">····4</span><span·class="comment">····created:····10·Jun·2006</span></div>51 <div·class="line"><a·id="l00003"·name="l00003"></a><span·class="lineno">····3</span>····created:····11·Jun·2006</div>
53 <div·class="line"><a·id="l00005"·name="l00005"></a><span·class="lineno">····5</span><span·class="comment">····author:·····Olivier·Delannoy</span></div>52 <div·class="line"><a·id="l00004"·name="l00004"></a><span·class="lineno">····4</span>····author:·····Olivier·Delannoy</div>
54 <div·class="line"><a·id="l00006"·name="l00006"></a><span·class="lineno">····6</span><span·class="comment"></span>·</div> 
55 <div·class="line"><a·id="l00007"·name="l00007"></a><span·class="lineno">····7</span><span·class="comment">····purpose:····Image·class·definition</span></div> 
56 <div·class="line"><a·id="l00008"·name="l00008"></a><span·class="lineno">····8</span><span·class="comment">*************************************************************************/</span></div> 
57 <div·class="line"><a·id="l00009"·name="l00009"></a><span·class="lineno">····9</span><span·class="comment">/***************************************************************************</span></div> 
58 <div·class="line"><a·id="l00010"·name="l00010"></a><span·class="lineno">···10</span><span·class="comment">·*···Copyright·(C)·2004·-·2006·Paul·D·Turner·&amp;·The·CEGUI·Development·Team</span></div> 
59 <div·class="line"><a·id="l00011"·name="l00011"></a><span·class="lineno">···11</span><span·class="comment">·*</span></div> 
60 <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> 
61 <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> 
62 <div·class="line"><a·id="l00014"·name="l00014"></a><span·class="lineno">···14</span><span·class="comment">·*···&quot;Software&quot;),·to·deal·in·the·Software·without·restriction,·including</span></div> 
63 <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> 
64 <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> 
65 <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> 
66 <div·class="line"><a·id="l00018"·name="l00018"></a><span·class="lineno">···18</span><span·class="comment">·*···the·following·conditions:</span></div> 
67 <div·class="line"><a·id="l00019"·name="l00019"></a><span·class="lineno">···19</span><span·class="comment">·*</span></div> 
68 <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> 
69 <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> 
70 <div·class="line"><a·id="l00022"·name="l00022"></a><span·class="lineno">···22</span><span·class="comment">·*</span></div> 
71 <div·class="line"><a·id="l00023"·name="l00023"></a><span·class="lineno">···23</span><span·class="comment">·*···THE·SOFTWARE·IS·PROVIDED·&quot;AS·IS&quot;,·WITHOUT·WARRANTY·OF·ANY·KIND,</span></div> 
72 <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> 
73 <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> 
74 <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> 
75 <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> 
76 <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> 
77 <div·class="line"><a·id="l00029"·name="l00029"></a><span·class="lineno">···29</span><span·class="comment">·*···OTHER·DEALINGS·IN·THE·SOFTWARE.</span></div> 
78 <div·class="line"><a·id="l00030"·name="l00030"></a><span·class="lineno">···30</span><span·class="comment">·***************************************************************************/</span></div> 
79 <div·class="line"><a·id="l00031"·name="l00031"></a><span·class="lineno">···31</span><span·class="preprocessor">#ifndef·_SILLYImage_h_·</span></div> 
80 <div·class="line"><a·id="l00032"·name="l00032"></a><span·class="lineno">···32</span><span·class="preprocessor">#define·_SILLYImage_h_</span></div> 
81 <div·class="line"><a·id="l00033"·name="l00033"></a><span·class="lineno">···33</span><span·class="preprocessor">#include·&quot;SILLYBase.h&quot;</span>·</div> 
82 <div·class="line"><a·id="l00034"·name="l00034"></a><span·class="lineno">···34</span><span·class="preprocessor">#include·&quot;SILLYImageContext.h&quot;</span></div> 
83 <div·class="line"><a·id="l00035"·name="l00035"></a><span·class="lineno">···35</span><span·class="preprocessor">#include·&quot;SILLYDataSource.h&quot;</span></div> 
84 <div·class="line"><a·id="l00036"·name="l00036"></a><span·class="lineno">···36</span><span·class="preprocessor">#include·&quot;SILLYImageLoader.h&quot;</span>·</div> 
85 <div·class="line"><a·id="l00037"·name="l00037"></a><span·class="lineno">···37</span>·</div> 
86 <div·class="line"><a·id="l00038"·name="l00038"></a><span·class="lineno">···38</span><span·class="comment">//·Start·of·section·namespace·SILLY·</span></div> 
87 <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> 
88 <div·class="line"><a·id="l00040"·name="l00040"></a><span·class="lineno">···40</span>{</div> 
89 <div·class="line"><a·id="l00041"·name="l00041"></a><span·class="lineno">···41</span>·</div> 
90 <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> 
91 <div·class="line"><a·id="l00047"·name="l00047"></a><span·class="lineno">···47</span>{</div> 
92 <div·class="line"><a·id="l00048"·name="l00048"></a><span·class="lineno">···48</span><span·class="keyword">public</span>:</div> 
93 <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>&amp;·data);</div> 
94 <div·class="line"><a·id="l00056"·name="l00056"></a><span·class="lineno">···56</span>·</div>53 <div·class="line"><a·id="l00005"·name="l00005"></a><span·class="lineno">····5</span>·</div>
95 <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>54 <div·class="line"><a·id="l00006"·name="l00006"></a><span·class="lineno">····6</span>····purpose:····Inline·definition·of·JPGImageLoader·class··</div>
 55 <div·class="line"><a·id="l00007"·name="l00007"></a><span·class="lineno">····7</span>*************************************************************************/</div>
 56 <div·class="line"><a·id="l00008"·name="l00008"></a><span·class="lineno">····8</span>/***************************************************************************</div>
 57 <div·class="line"><a·id="l00009"·name="l00009"></a><span·class="lineno">····9</span>·*···Copyright·(C)·2004·-·2006·Paul·D·Turner·&amp;·The·CEGUI·Development·Team</div>
 58 <div·class="line"><a·id="l00010"·name="l00010"></a><span·class="lineno">···10</span>·*</div>
 59 <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>
 60 <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>
 61 <div·class="line"><a·id="l00013"·name="l00013"></a><span·class="lineno">···13</span>·*···&quot;Software&quot;),·to·deal·in·the·Software·without·restriction,·including</div>
 62 <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>
 63 <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>
 64 <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>
 65 <div·class="line"><a·id="l00017"·name="l00017"></a><span·class="lineno">···17</span>·*···the·following·conditions:</div>
 66 <div·class="line"><a·id="l00018"·name="l00018"></a><span·class="lineno">···18</span>·*</div>
 67 <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>
 68 <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>
 69 <div·class="line"><a·id="l00021"·name="l00021"></a><span·class="lineno">···21</span>·*</div>
 70 <div·class="line"><a·id="l00022"·name="l00022"></a><span·class="lineno">···22</span>·*···THE·SOFTWARE·IS·PROVIDED·&quot;AS·IS&quot;,·WITHOUT·WARRANTY·OF·ANY·KIND,</div>
 71 <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>
 72 <div·class="line"><a·id="l00024"·name="l00024"></a><span·class="lineno">···24</span>·*···MERCHANTABILITY,·FITNESS·FOR·A·PARTICULAR·PURPOSE·AND·NONINFRINGEMENT.</div>
 73 <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>
 74 <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>
 75 <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>
 76 <div·class="line"><a·id="l00028"·name="l00028"></a><span·class="lineno">···28</span>·*···OTHER·DEALINGS·IN·THE·SOFTWARE.</div>
 77 <div·class="line"><a·id="l00029"·name="l00029"></a><span·class="lineno">···29</span>·***************************************************************************/</div>
 78 <div·class="line"><a·id="l00030"·name="l00030"></a><span·class="lineno">···30</span>·</div>
 79 <div·class="line"><a·id="l00031"·name="l00031"></a><span·class="lineno">···31</span>//·Start·of·section·namespace·SILLY</div>
 80 <div·class="line"><a·id="l00032"·name="l00032"></a><span·class="lineno">···32</span>namespace·SILLY</div>
 81 <div·class="line"><a·id="l00033"·name="l00033"></a><span·class="lineno">···33</span>{</div>
 82 <div·class="line"><a·id="l00034"·name="l00034"></a><span·class="lineno">···34</span>····</div>
 83 <div·class="line"><a·id="l00035"·name="l00035"></a><span·class="lineno">···35</span>}·//·End·of·section·namespace·SILLY</div>
96 <div·class="line"><a·id="l00062"·name="l00062"></a><span·class="lineno">···62</span>·</div>84 <div·class="line"><a·id="l00036"·name="l00036"></a><span·class="lineno">···36</span>·</div>
97 <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> 
98 <div·class="line"><a·id="l00068"·name="l00068"></a><span·class="lineno">···68</span>····</div> 
99 <div·class="line"><a·id="l00069"·name="l00069"></a><span·class="lineno">···69</span>·</div> 
100 <div·class="line"><a·id="l00076"·name="l00076"></a><span·class="lineno">···76</span>····<span·class="keywordtype">bool</span>·loadImageHeader();</div> 
101 <div·class="line"><a·id="l00077"·name="l00077"></a><span·class="lineno">···77</span>·</div> 
102 <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> 
103 <div·class="line"><a·id="l00092"·name="l00092"></a><span·class="lineno">···92</span>·</div> 
104 <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> 
105 <div·class="line"><a·id="l00098"·name="l00098"></a><span·class="lineno">···98</span>····</div> 
106 <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> 
107 <div·class="line"><a·id="l00104"·name="l00104"></a><span·class="lineno">··104</span>····</div> 
108 <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> 
109 <div·class="line"><a·id="l00110"·name="l00110"></a><span·class="lineno">··110</span>·</div> 
110 <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> 
111 <div·class="line"><a·id="l00116"·name="l00116"></a><span·class="lineno">··116</span>····</div> 
112 <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> 
113 <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> 
114 <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> 
115 <div·class="line"><a·id="l00131"·name="l00131"></a><span·class="lineno">··131</span><span·class="keyword">private</span>:</div> 
116 <div·class="line"><a·id="l00132"·name="l00132"></a><span·class="lineno">··132</span>····<span·class="keywordtype">bool</span>·allocate();</div> 
Max diff block lines reached; 271/28595 bytes (0.95%) of diff not shown.
6.57 KB
html2text {}
    
Offset 4, 154 lines modifiedOffset 4, 49 lines modified
  
4 Simple·Image·Loading·LibrarY 0.1.04 Simple·Image·Loading·LibrarY 0.1.0
  
5 ····*·build5 ····*·build
6 ····*·reproducible-path6 ····*·reproducible-path
7 ····*·silly-0.1.07 ····*·silly-0.1.0
8 ····*·include8 ····*·include
9 SILLYImage.h 
10 ·19 ····*·loaders
 10 SILLYJPGImageLoader.icpp
11 ·2/***********************************************************************11 ·1/***********************************************************************
12 ·3·filename:·SILLYImage.h12 ·2·filename:·SILLYJPGImageLoader.icpp
13 ·4·created:·10·Jun·200613 ·3·created:·11·Jun·2006
14 ·5·author:·Olivier·Delannoy14 ·4·author:·Olivier·Delannoy
15 ·6 
16 ·7·purpose:·Image·class·definition15 ·5
 16 ·6·purpose:·Inline·definition·of·JPGImageLoader·class
17 ·8*************************************************************************/17 ·7*************************************************************************/
18 ·9/***************************************************************************18 ·8/***************************************************************************
19 ·10·*·Copyright·(C)·2004·-·2006·Paul·D·Turner·&·The·CEGUI·Development·Team19 ·9·*·Copyright·(C)·2004·-·2006·Paul·D·Turner·&·The·CEGUI·Development·Team
20 ·11·*20 ·10·*
21 ·12·*·Permission·is·hereby·granted,·free·of·charge,·to·any·person·obtaining21 ·11·*·Permission·is·hereby·granted,·free·of·charge,·to·any·person·obtaining
22 ·13·*·a·copy·of·this·software·and·associated·documentation·files·(the22 ·12·*·a·copy·of·this·software·and·associated·documentation·files·(the
23 ·14·*·"Software"),·to·deal·in·the·Software·without·restriction,·including23 ·13·*·"Software"),·to·deal·in·the·Software·without·restriction,·including
24 ·15·*·without·limitation·the·rights·to·use,·copy,·modify,·merge,·publish,24 ·14·*·without·limitation·the·rights·to·use,·copy,·modify,·merge,·publish,
25 ·16·*·distribute,·sublicense,·and/or·sell·copies·of·the·Software,·and·to25 ·15·*·distribute,·sublicense,·and/or·sell·copies·of·the·Software,·and·to
26 ·17·*·permit·persons·to·whom·the·Software·is·furnished·to·do·so,·subject·to26 ·16·*·permit·persons·to·whom·the·Software·is·furnished·to·do·so,·subject·to
27 ·18·*·the·following·conditions:27 ·17·*·the·following·conditions:
28 ·19·*28 ·18·*
29 ·20·*·The·above·copyright·notice·and·this·permission·notice·shall·be29 ·19·*·The·above·copyright·notice·and·this·permission·notice·shall·be
30 ·21·*·included·in·all·copies·or·substantial·portions·of·the·Software.30 ·20·*·included·in·all·copies·or·substantial·portions·of·the·Software.
31 ·22·*31 ·21·*
32 ·23·*·THE·SOFTWARE·IS·PROVIDED·"AS·IS",·WITHOUT·WARRANTY·OF·ANY·KIND,32 ·22·*·THE·SOFTWARE·IS·PROVIDED·"AS·IS",·WITHOUT·WARRANTY·OF·ANY·KIND,
33 ·24·*·EXPRESS·OR·IMPLIED,·INCLUDING·BUT·NOT·LIMITED·TO·THE·WARRANTIES·OF33 ·23·*·EXPRESS·OR·IMPLIED,·INCLUDING·BUT·NOT·LIMITED·TO·THE·WARRANTIES·OF
34 ·25·*·MERCHANTABILITY,·FITNESS·FOR·A·PARTICULAR·PURPOSE·AND·NONINFRINGEMENT.34 ·24·*·MERCHANTABILITY,·FITNESS·FOR·A·PARTICULAR·PURPOSE·AND·NONINFRINGEMENT.
35 ·26·*·IN·NO·EVENT·SHALL·THE·AUTHORS·BE·LIABLE·FOR·ANY·CLAIM,·DAMAGES·OR35 ·25·*·IN·NO·EVENT·SHALL·THE·AUTHORS·BE·LIABLE·FOR·ANY·CLAIM,·DAMAGES·OR
36 ·27·*·OTHER·LIABILITY,·WHETHER·IN·AN·ACTION·OF·CONTRACT,·TORT·OR·OTHERWISE,36 ·26·*·OTHER·LIABILITY,·WHETHER·IN·AN·ACTION·OF·CONTRACT,·TORT·OR·OTHERWISE,
37 ·28·*·ARISING·FROM,·OUT·OF·OR·IN·CONNECTION·WITH·THE·SOFTWARE·OR·THE·USE·OR37 ·27·*·ARISING·FROM,·OUT·OF·OR·IN·CONNECTION·WITH·THE·SOFTWARE·OR·THE·USE·OR
38 ·29·*·OTHER·DEALINGS·IN·THE·SOFTWARE.38 ·28·*·OTHER·DEALINGS·IN·THE·SOFTWARE.
39 ·3039 ·29
40 ***************************************************************************/40 ***************************************************************************/
 41 ·30
41 ·31#ifndef·_SILLYImage_h_ 
42 ·32#define·_SILLYImage_h_ 
43 ·33#include·"SILLYBase.h" 
44 ·34#include·"SILLYImageContext.h" 
45 ·35#include·"SILLYDataSource.h" 
46 ·36#include·"SILLYImageLoader.h" 
47 ·37 
48 ·38//·Start·of·section·namespace·SILLY42 ·31//·Start·of·section·namespace·SILLY
49 ·39namespace·SILLY43 ·32namespace·SILLY
50 ·40{ 
51 ·41 
52 46class·SILLY_EXPORT·Image 
53 ·47{ 
54 ·48public: 
55 ·55·Image(DataSource&·data); 
56 ·56 
57 61·~Image(); 
58 ·62 
59 67·bool·isValid()·const; 
60 ·68 
61 ·69 
62 ·76·bool·loadImageHeader(); 
63 ·77 
64 ·91·bool·loadImageData(PixelFormat·resultFormat·=·PF_RGBA,·PixelOrigin·origin·= 
65 PO_TOP_LEFT); 
66 ·92 
67 97·size_t·getWidth()·const; 
68 ·98 
69 103·size_t·getHeight()·const; 
70 ·104 
71 109·PixelFormat·getSourcePixelFormat()·const; 
72 ·110 
73 115·PixelFormat·getPixelFormat()·const; 
74 ·116 
75 120·const·byte*·getPixelsDataPtr()·const; 
76 125·size_t·getPixelsDataSize()·const; 
77 130·const·char*·getLoaderIdentifierString()·const; 
78 ·131private: 
79 ·132·bool·allocate(); 
80 ·13344 ·33{
 45 ·34
81 ·134private: 
82 ·135 
83 ·136·size_t·d_bpp; 
84 ·137·PixelFormat·d_pfSource; 
85 ·138·byte*·d_pixels; 
86 ·139·DataSource*·d_data; 
87 ·140·ImageContext*·d_imageContext; 
88 ·141·ImageLoader*·d_imageLoader; 
89 ·142 
90 ·143·//·Disabled·operation 
91 ·144·Image(Image&); 
92 ·145·Image&·operator=(Image&); 
93 ·146}; 
94 ·147 
95 ·148}·//·End·of·section·namespace·SILLY46 ·35}·//·End·of·section·namespace·SILLY
 47 ·36
96 ·149 
97 ·150//·Inclue·inline·function·when·needed 
98 ·151#ifdef·SILLY_OPT_INLINE 
99 ·152#include·"SILLYImage.icpp" 
100 ·153#endif 
101 ·154 
102 ·155#endif·//·end·of·guard·_SILLYImage_h_ 
103 SILLY 
104 Simple·Image·Loading·LibrarY·namespace. 
105 Definition:·SILLYJPGImageContext.cpp:46 
106 SILLY::PixelFormat 
107 PixelFormat 
108 List·all·pixel·format·supported. 
109 Definition:·SILLYBase.h:60 
110 SILLY::PixelOrigin 
111 PixelOrigin 
112 List·all·pixel·origin·supported. 
113 Definition:·SILLYBase.h:71 
114 SILLY::DataSource 
115 This·is·an·abstract·class·used·to·provide·data·to·the·loader. 
116 Definition:·SILLYDataSource.h:47 
117 SILLY::Image 
118 Image·is·the·main·user·class·of·the·library. 
119 Definition:·SILLYImage.h:47 
120 SILLY::Image::getSourcePixelFormat 
121 PixelFormat·getSourcePixelFormat()·const 
122 Retrieve·the·pixel·format·used·for·the·image·storage. 
123 SILLY::Image::getLoaderIdentifierString 
Max diff block lines reached; 116/6701 bytes (1.73%) of diff not shown.
17.9 KB
./usr/share/doc/libsilly-doc/html/a00074_source.html
    
Offset 1, 15 lines modifiedOffset 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">2 <html·xmlns="http://www.w3.org/1999/xhtml">
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.4"/>6 <meta·name="generator"·content="Doxygen·1.9.4"/>
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/SILLYOptions.h·Source·File</title>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 35, 60 lines modifiedOffset 35, 57 lines modified
35 ··initMenu('',false,false,'search.php','Search');35 ··initMenu('',false,false,'search.php','Search');
36 });36 });
37 /*·@license-end·*/37 /*·@license-end·*/
38 </script>38 </script>
39 <div·id="main-nav"></div>39 <div·id="main-nav"></div>
40 <div·id="nav-path"·class="navpath">40 <div·id="nav-path"·class="navpath">
41 ··<ul>41 ··<ul>
42 <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>42 <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>
43 </div>43 </div>
44 </div><!--·top·-->44 </div><!--·top·-->
45 <div·class="header">45 <div·class="header">
46 ··<div·class="headertitle"><div·class="title">SILLYOptions.h</div></div>46 ··<div·class="headertitle"><div·class="title">SILLYPNGImageLoader.icpp</div></div>
47 </div><!--header-->47 </div><!--header-->
48 <div·class="contents">48 <div·class="contents">
49 <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>49 <div·class="fragment"><div·class="line"><a·id="l00001"·name="l00001"></a><span·class="lineno">····1</span>/***********************************************************************</div>
 50 <div·class="line"><a·id="l00002"·name="l00002"></a><span·class="lineno">····2</span>····filename:···SILLYPNGImageLoader.icpp·</div>
 51 <div·class="line"><a·id="l00003"·name="l00003"></a><span·class="lineno">····3</span>····created:····11·Jun·2006</div>
 52 <div·class="line"><a·id="l00004"·name="l00004"></a><span·class="lineno">····4</span>····author:·····Olivier·Delannoy</div>
 53 <div·class="line"><a·id="l00005"·name="l00005"></a><span·class="lineno">····5</span>·</div>
 54 <div·class="line"><a·id="l00006"·name="l00006"></a><span·class="lineno">····6</span>····purpose:····Inline·definition·for·PNGImageLoader··</div>
50 <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="l00007"·name="l00007"></a><span·class="lineno">····7</span>*************************************************************************/</div>
51 <div·class="line"><a·id="l00003"·name="l00003"></a><span·class="lineno">····3</span><span·class="comment">····filename:···SILLYOptions.h.in</span></div> 
52 <div·class="line"><a·id="l00004"·name="l00004"></a><span·class="lineno">····4</span><span·class="comment">····created:····2006/06/10</span></div> 
53 <div·class="line"><a·id="l00005"·name="l00005"></a><span·class="lineno">····5</span><span·class="comment">····author:·····Olivier·Delannoy</span></div> 
54 <div·class="line"><a·id="l00006"·name="l00006"></a><span·class="lineno">····6</span><span·class="comment"></span>·</div> 
55 <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> 
56 <div·class="line"><a·id="l00008"·name="l00008"></a><span·class="lineno">····8</span><span·class="comment">*************************************************************************/</span></div>56 <div·class="line"><a·id="l00008"·name="l00008"></a><span·class="lineno">····8</span>/***************************************************************************</div>
57 <div·class="line"><a·id="l00009"·name="l00009"></a><span·class="lineno">····9</span><span·class="comment">/***************************************************************************</span></div> 
58 <div·class="line"><a·id="l00010"·name="l00010"></a><span·class="lineno">···10</span><span·class="comment">·*···Copyright·(C)·2004·-·2006·Paul·D·Turner·&amp;·The·CEGUI·Development·Team</span></div>57 <div·class="line"><a·id="l00009"·name="l00009"></a><span·class="lineno">····9</span>·*···Copyright·(C)·2004·-·2006·Paul·D·Turner·&amp;·The·CEGUI·Development·Team</div>
59 <div·class="line"><a·id="l00011"·name="l00011"></a><span·class="lineno">···11</span><span·class="comment">·*</span></div>58 <div·class="line"><a·id="l00010"·name="l00010"></a><span·class="lineno">···10</span>·*</div>
60 <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>59 <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>
61 <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>60 <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>
62 <div·class="line"><a·id="l00014"·name="l00014"></a><span·class="lineno">···14</span><span·class="comment">·*···&quot;Software&quot;),·to·deal·in·the·Software·without·restriction,·including</span></div>61 <div·class="line"><a·id="l00013"·name="l00013"></a><span·class="lineno">···13</span>·*···&quot;Software&quot;),·to·deal·in·the·Software·without·restriction,·including</div>
63 <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>62 <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>
64 <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>63 <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>
65 <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>64 <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>
66 <div·class="line"><a·id="l00018"·name="l00018"></a><span·class="lineno">···18</span><span·class="comment">·*···the·following·conditions:</span></div>65 <div·class="line"><a·id="l00017"·name="l00017"></a><span·class="lineno">···17</span>·*···the·following·conditions:</div>
67 <div·class="line"><a·id="l00019"·name="l00019"></a><span·class="lineno">···19</span><span·class="comment">·*</span></div>66 <div·class="line"><a·id="l00018"·name="l00018"></a><span·class="lineno">···18</span>·*</div>
68 <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>67 <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>
69 <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>68 <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>
70 <div·class="line"><a·id="l00022"·name="l00022"></a><span·class="lineno">···22</span><span·class="comment">·*</span></div>69 <div·class="line"><a·id="l00021"·name="l00021"></a><span·class="lineno">···21</span>·*</div>
71 <div·class="line"><a·id="l00023"·name="l00023"></a><span·class="lineno">···23</span><span·class="comment">·*···THE·SOFTWARE·IS·PROVIDED·&quot;AS·IS&quot;,·WITHOUT·WARRANTY·OF·ANY·KIND,</span></div>70 <div·class="line"><a·id="l00022"·name="l00022"></a><span·class="lineno">···22</span>·*···THE·SOFTWARE·IS·PROVIDED·&quot;AS·IS&quot;,·WITHOUT·WARRANTY·OF·ANY·KIND,</div>
72 <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>71 <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>
73 <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>72 <div·class="line"><a·id="l00024"·name="l00024"></a><span·class="lineno">···24</span>·*···MERCHANTABILITY,·FITNESS·FOR·A·PARTICULAR·PURPOSE·AND·NONINFRINGEMENT.</div>
74 <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>73 <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>
75 <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>74 <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>
76 <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>75 <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>
77 <div·class="line"><a·id="l00029"·name="l00029"></a><span·class="lineno">···29</span><span·class="comment">·*···OTHER·DEALINGS·IN·THE·SOFTWARE.</span></div>76 <div·class="line"><a·id="l00028"·name="l00028"></a><span·class="lineno">···28</span>·*···OTHER·DEALINGS·IN·THE·SOFTWARE.</div>
78 <div·class="line"><a·id="l00030"·name="l00030"></a><span·class="lineno">···30</span><span·class="comment">·***************************************************************************/</span></div>77 <div·class="line"><a·id="l00029"·name="l00029"></a><span·class="lineno">···29</span>·***************************************************************************/</div>
79 <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>78 <div·class="line"><a·id="l00030"·name="l00030"></a><span·class="lineno">···30</span>·</div>
 79 <div·class="line"><a·id="l00031"·name="l00031"></a><span·class="lineno">···31</span>//·Start·of·section·namespace·SILLY</div>
80 <div·class="line"><a·id="l00032"·name="l00032"></a><span·class="lineno">···32</span><span·class="preprocessor">#define·SILLY_OPT_INLINE·1</span></div>80 <div·class="line"><a·id="l00032"·name="l00032"></a><span·class="lineno">···32</span>namespace·SILLY</div>
81 <div·class="line"><a·id="l00033"·name="l00033"></a><span·class="lineno">···33</span>·</div>81 <div·class="line"><a·id="l00033"·name="l00033"></a><span·class="lineno">···33</span>{</div>
82 <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> 
83 <div·class="line"><a·id="l00035"·name="l00035"></a><span·class="lineno">···35</span><span·class="comment">/*·#undef·SILLY_OPT_DEBUG·*/</span></div>82 <div·class="line"><a·id="l00034"·name="l00034"></a><span·class="lineno">···34</span>····</div>
 83 <div·class="line"><a·id="l00035"·name="l00035"></a><span·class="lineno">···35</span>}·//·End·of·section·namespace·SILLY</div>
84 <div·class="line"><a·id="l00036"·name="l00036"></a><span·class="lineno">···36</span>·</div>84 <div·class="line"><a·id="l00036"·name="l00036"></a><span·class="lineno">···36</span>·</div>
85 <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> 
86 <div·class="line"><a·id="l00038"·name="l00038"></a><span·class="lineno">···38</span><span·class="comment">/*·#undef·SILLY_OPT_PROFILE·*/</span></div> 
87 <div·class="line"><a·id="l00039"·name="l00039"></a><span·class="lineno">···39</span>·</div> 
88 </div><!--·fragment·--></div><!--·contents·-->85 </div><!--·fragment·--></div><!--·contents·-->
89 <!--·start·footer·part·-->86 <!--·start·footer·part·-->
90 <hr·class="footer"/><address·class="footer"><small>87 <hr·class="footer"/><address·class="footer"><small>
91 Generated·by&#160;<a·href="https://www.doxygen.org/index.html"><img·class="footer"·src="doxygen.svg"·width="104"·height="31"·alt="doxygen"/></a>·1.9.488 Generated·by&#160;<a·href="https://www.doxygen.org/index.html"><img·class="footer"·src="doxygen.svg"·width="104"·height="31"·alt="doxygen"/></a>·1.9.4
92 </small></address>89 </small></address>
93 </body>90 </body>
94 </html>91 </html>
3.93 KB
html2text {}
    
Offset 4, 51 lines modifiedOffset 4, 49 lines modified
  
4 Simple·Image·Loading·LibrarY 0.1.04 Simple·Image·Loading·LibrarY 0.1.0
  
5 ····*·build5 ····*·build
6 ····*·reproducible-path6 ····*·reproducible-path
7 ····*·silly-0.1.07 ····*·silly-0.1.0
8 ····*·include8 ····*·include
9 SILLYOptions.h 
10 ·1/*·include/SILLYOptions.h.·Generated·from·SILLYOptions.h.in·by·configure.·*/9 ····*·loaders
 10 SILLYPNGImageLoader.icpp
11 ·2/***********************************************************************11 ·1/***********************************************************************
12 ·3·filename:·SILLYOptions.h.in 
13 ·4·created:·2006/06/1012 ·2·filename:·SILLYPNGImageLoader.icpp
 13 ·3·created:·11·Jun·2006
14 ·5·author:·Olivier·Delannoy14 ·4·author:·Olivier·Delannoy
15 ·6 
16 ·7·purpose:·Store·options·of·the·SILLY·library15 ·5
 16 ·6·purpose:·Inline·definition·for·PNGImageLoader
17 ·8*************************************************************************/17 ·7*************************************************************************/
18 ·9/***************************************************************************18 ·8/***************************************************************************
19 ·10·*·Copyright·(C)·2004·-·2006·Paul·D·Turner·&·The·CEGUI·Development·Team19 ·9·*·Copyright·(C)·2004·-·2006·Paul·D·Turner·&·The·CEGUI·Development·Team
20 ·11·*20 ·10·*
21 ·12·*·Permission·is·hereby·granted,·free·of·charge,·to·any·person·obtaining21 ·11·*·Permission·is·hereby·granted,·free·of·charge,·to·any·person·obtaining
22 ·13·*·a·copy·of·this·software·and·associated·documentation·files·(the22 ·12·*·a·copy·of·this·software·and·associated·documentation·files·(the
23 ·14·*·"Software"),·to·deal·in·the·Software·without·restriction,·including23 ·13·*·"Software"),·to·deal·in·the·Software·without·restriction,·including
24 ·15·*·without·limitation·the·rights·to·use,·copy,·modify,·merge,·publish,24 ·14·*·without·limitation·the·rights·to·use,·copy,·modify,·merge,·publish,
25 ·16·*·distribute,·sublicense,·and/or·sell·copies·of·the·Software,·and·to25 ·15·*·distribute,·sublicense,·and/or·sell·copies·of·the·Software,·and·to
26 ·17·*·permit·persons·to·whom·the·Software·is·furnished·to·do·so,·subject·to26 ·16·*·permit·persons·to·whom·the·Software·is·furnished·to·do·so,·subject·to
27 ·18·*·the·following·conditions:27 ·17·*·the·following·conditions:
28 ·19·*28 ·18·*
29 ·20·*·The·above·copyright·notice·and·this·permission·notice·shall·be29 ·19·*·The·above·copyright·notice·and·this·permission·notice·shall·be
30 ·21·*·included·in·all·copies·or·substantial·portions·of·the·Software.30 ·20·*·included·in·all·copies·or·substantial·portions·of·the·Software.
31 ·22·*31 ·21·*
32 ·23·*·THE·SOFTWARE·IS·PROVIDED·"AS·IS",·WITHOUT·WARRANTY·OF·ANY·KIND,32 ·22·*·THE·SOFTWARE·IS·PROVIDED·"AS·IS",·WITHOUT·WARRANTY·OF·ANY·KIND,
33 ·24·*·EXPRESS·OR·IMPLIED,·INCLUDING·BUT·NOT·LIMITED·TO·THE·WARRANTIES·OF33 ·23·*·EXPRESS·OR·IMPLIED,·INCLUDING·BUT·NOT·LIMITED·TO·THE·WARRANTIES·OF
34 ·25·*·MERCHANTABILITY,·FITNESS·FOR·A·PARTICULAR·PURPOSE·AND·NONINFRINGEMENT.34 ·24·*·MERCHANTABILITY,·FITNESS·FOR·A·PARTICULAR·PURPOSE·AND·NONINFRINGEMENT.
35 ·26·*·IN·NO·EVENT·SHALL·THE·AUTHORS·BE·LIABLE·FOR·ANY·CLAIM,·DAMAGES·OR35 ·25·*·IN·NO·EVENT·SHALL·THE·AUTHORS·BE·LIABLE·FOR·ANY·CLAIM,·DAMAGES·OR
36 ·27·*·OTHER·LIABILITY,·WHETHER·IN·AN·ACTION·OF·CONTRACT,·TORT·OR·OTHERWISE,36 ·26·*·OTHER·LIABILITY,·WHETHER·IN·AN·ACTION·OF·CONTRACT,·TORT·OR·OTHERWISE,
37 ·28·*·ARISING·FROM,·OUT·OF·OR·IN·CONNECTION·WITH·THE·SOFTWARE·OR·THE·USE·OR37 ·27·*·ARISING·FROM,·OUT·OF·OR·IN·CONNECTION·WITH·THE·SOFTWARE·OR·THE·USE·OR
38 ·29·*·OTHER·DEALINGS·IN·THE·SOFTWARE.38 ·28·*·OTHER·DEALINGS·IN·THE·SOFTWARE.
39 ·3039 ·29
40 ***************************************************************************/40 ***************************************************************************/
41 ·31/*·Defined·to·1·if·inline·is·enabled·*/ 
42 ·32#define·SILLY_OPT_INLINE·141 ·30
 42 ·31//·Start·of·section·namespace·SILLY
 43 ·32namespace·SILLY
43 ·3344 ·33{
44 ·34/*·Defined·to·1·if·debug·is·enabled·*/ 
45 ·35/*·#undef·SILLY_OPT_DEBUG·*/45 ·34
 46 ·35}·//·End·of·section·namespace·SILLY
46 ·3647 ·36
47 ·37/*·Defined·to·1·if·profile·is·enabled·*/ 
48 ·38/*·#undef·SILLY_OPT_PROFILE·*/ 
49 ·39 
  
50 ===============================================================================48 ===============================================================================
51 ·····Generated·by [doxygen]·1.9.449 ·····Generated·by [doxygen]·1.9.4
8.37 KB
./usr/share/doc/libsilly-doc/html/a00077_source.html
    
Offset 1, 15 lines modifiedOffset 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">2 <html·xmlns="http://www.w3.org/1999/xhtml">
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.4"/>6 <meta·name="generator"·content="Doxygen·1.9.4"/>
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/loaders/SILLYTGAImageContext.icpp·Source·File</title>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 39, 23 lines modifiedOffset 39, 23 lines modified
39 <div·id="main-nav"></div>39 <div·id="main-nav"></div>
40 <div·id="nav-path"·class="navpath">40 <div·id="nav-path"·class="navpath">
41 ··<ul>41 ··<ul>
42 <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>42 <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>
43 </div>43 </div>
44 </div><!--·top·-->44 </div><!--·top·-->
45 <div·class="header">45 <div·class="header">
46 ··<div·class="headertitle"><div·class="title">SILLYTGAImageContext.icpp</div></div>46 ··<div·class="headertitle"><div·class="title">SILLYTGAImageLoader.icpp</div></div>
47 </div><!--header-->47 </div><!--header-->
48 <div·class="contents">48 <div·class="contents">
49 <div·class="fragment"><div·class="line"><a·id="l00001"·name="l00001"></a><span·class="lineno">····1</span>/***********************************************************************</div>49 <div·class="fragment"><div·class="line"><a·id="l00001"·name="l00001"></a><span·class="lineno">····1</span>/***********************************************************************</div>
50 <div·class="line"><a·id="l00002"·name="l00002"></a><span·class="lineno">····2</span>····filename:···SILLYTGAImageContext.icpp·</div>50 <div·class="line"><a·id="l00002"·name="l00002"></a><span·class="lineno">····2</span>····filename:···SILLYTGAImageLoader.icpp·</div>
51 <div·class="line"><a·id="l00003"·name="l00003"></a><span·class="lineno">····3</span>····created:····11·Jun·2006</div>51 <div·class="line"><a·id="l00003"·name="l00003"></a><span·class="lineno">····3</span>····created:····11·Jun·2006</div>
52 <div·class="line"><a·id="l00004"·name="l00004"></a><span·class="lineno">····4</span>····author:·····Olivier·Delannoy</div>52 <div·class="line"><a·id="l00004"·name="l00004"></a><span·class="lineno">····4</span>····author:·····Olivier·Delannoy</div>
53 <div·class="line"><a·id="l00005"·name="l00005"></a><span·class="lineno">····5</span>·</div>53 <div·class="line"><a·id="l00005"·name="l00005"></a><span·class="lineno">····5</span>·</div>
54 <div·class="line"><a·id="l00006"·name="l00006"></a><span·class="lineno">····6</span>····purpose:····Inline·definition·for·TGAImageContext·class···</div>54 <div·class="line"><a·id="l00006"·name="l00006"></a><span·class="lineno">····6</span>····purpose:····Inline·defintion·of·TGAImageLoader·class···</div>
55 <div·class="line"><a·id="l00007"·name="l00007"></a><span·class="lineno">····7</span>*************************************************************************/</div>55 <div·class="line"><a·id="l00007"·name="l00007"></a><span·class="lineno">····7</span>*************************************************************************/</div>
56 <div·class="line"><a·id="l00008"·name="l00008"></a><span·class="lineno">····8</span>/***************************************************************************</div>56 <div·class="line"><a·id="l00008"·name="l00008"></a><span·class="lineno">····8</span>/***************************************************************************</div>
57 <div·class="line"><a·id="l00009"·name="l00009"></a><span·class="lineno">····9</span>·*···Copyright·(C)·2004·-·2006·Paul·D·Turner·&amp;·The·CEGUI·Development·Team</div>57 <div·class="line"><a·id="l00009"·name="l00009"></a><span·class="lineno">····9</span>·*···Copyright·(C)·2004·-·2006·Paul·D·Turner·&amp;·The·CEGUI·Development·Team</div>
58 <div·class="line"><a·id="l00010"·name="l00010"></a><span·class="lineno">···10</span>·*</div>58 <div·class="line"><a·id="l00010"·name="l00010"></a><span·class="lineno">···10</span>·*</div>
59 <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>59 <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>
60 <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>60 <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>
61 <div·class="line"><a·id="l00013"·name="l00013"></a><span·class="lineno">···13</span>·*···&quot;Software&quot;),·to·deal·in·the·Software·without·restriction,·including</div>61 <div·class="line"><a·id="l00013"·name="l00013"></a><span·class="lineno">···13</span>·*···&quot;Software&quot;),·to·deal·in·the·Software·without·restriction,·including</div>
Offset 75, 25 lines modifiedOffset 75, 17 lines modified
75 <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>75 <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>
76 <div·class="line"><a·id="l00028"·name="l00028"></a><span·class="lineno">···28</span>·*···OTHER·DEALINGS·IN·THE·SOFTWARE.</div>76 <div·class="line"><a·id="l00028"·name="l00028"></a><span·class="lineno">···28</span>·*···OTHER·DEALINGS·IN·THE·SOFTWARE.</div>
77 <div·class="line"><a·id="l00029"·name="l00029"></a><span·class="lineno">···29</span>·***************************************************************************/</div>77 <div·class="line"><a·id="l00029"·name="l00029"></a><span·class="lineno">···29</span>·***************************************************************************/</div>
78 <div·class="line"><a·id="l00030"·name="l00030"></a><span·class="lineno">···30</span>·</div>78 <div·class="line"><a·id="l00030"·name="l00030"></a><span·class="lineno">···30</span>·</div>
79 <div·class="line"><a·id="l00031"·name="l00031"></a><span·class="lineno">···31</span>//·Start·of·section·namespace·SILLY</div>79 <div·class="line"><a·id="l00031"·name="l00031"></a><span·class="lineno">···31</span>//·Start·of·section·namespace·SILLY</div>
80 <div·class="line"><a·id="l00032"·name="l00032"></a><span·class="lineno">···32</span>namespace·SILLY</div>80 <div·class="line"><a·id="l00032"·name="l00032"></a><span·class="lineno">···32</span>namespace·SILLY</div>
81 <div·class="line"><a·id="l00033"·name="l00033"></a><span·class="lineno">···33</span>{</div>81 <div·class="line"><a·id="l00033"·name="l00033"></a><span·class="lineno">···33</span>{</div>
82 <div·class="line"><a·id="l00034"·name="l00034"></a><span·class="lineno">···34</span>inline·TGAImageContext::TGAImageContext(size_t·width,·size_t·height)</div> 
83 <div·class="line"><a·id="l00035"·name="l00035"></a><span·class="lineno">···35</span>····:·ImageContext(width,·height)</div>82 <div·class="line"><a·id="l00034"·name="l00034"></a><span·class="lineno">···34</span>····</div>
 83 <div·class="line"><a·id="l00035"·name="l00035"></a><span·class="lineno">···35</span>}·//·End·of·section·namespace·SILLY</div>
84 <div·class="line"><a·id="l00036"·name="l00036"></a><span·class="lineno">···36</span>{</div>84 <div·class="line"><a·id="l00036"·name="l00036"></a><span·class="lineno">···36</span>·</div>
85 <div·class="line"><a·id="l00037"·name="l00037"></a><span·class="lineno">···37</span>}</div> 
86 <div·class="line"><a·id="l00038"·name="l00038"></a><span·class="lineno">···38</span>·</div> 
87 <div·class="line"><a·id="l00039"·name="l00039"></a><span·class="lineno">···39</span>inline·TGAImageContext::~TGAImageContext()</div> 
88 <div·class="line"><a·id="l00040"·name="l00040"></a><span·class="lineno">···40</span>{</div> 
89 <div·class="line"><a·id="l00041"·name="l00041"></a><span·class="lineno">···41</span>}</div> 
90 <div·class="line"><a·id="l00042"·name="l00042"></a><span·class="lineno">···42</span>·</div> 
91 <div·class="line"><a·id="l00043"·name="l00043"></a><span·class="lineno">···43</span>}·//·End·of·section·namespace·SILLY</div> 
92 <div·class="line"><a·id="l00044"·name="l00044"></a><span·class="lineno">···44</span>·</div> 
93 </div><!--·fragment·--></div><!--·contents·-->85 </div><!--·fragment·--></div><!--·contents·-->
94 <!--·start·footer·part·-->86 <!--·start·footer·part·-->
95 <hr·class="footer"/><address·class="footer"><small>87 <hr·class="footer"/><address·class="footer"><small>
96 Generated·by&#160;<a·href="https://www.doxygen.org/index.html"><img·class="footer"·src="doxygen.svg"·width="104"·height="31"·alt="doxygen"/></a>·1.9.488 Generated·by&#160;<a·href="https://www.doxygen.org/index.html"><img·class="footer"·src="doxygen.svg"·width="104"·height="31"·alt="doxygen"/></a>·1.9.4
97 </small></address>89 </small></address>
98 </body>90 </body>
99 </html>91 </html>
1.58 KB
html2text {}
    
Offset 5, 21 lines modifiedOffset 5, 21 lines modified
5 Simple·Image·Loading·LibrarY 0.1.05 Simple·Image·Loading·LibrarY 0.1.0
  
6 ····*·build6 ····*·build
7 ····*·reproducible-path7 ····*·reproducible-path
8 ····*·silly-0.1.08 ····*·silly-0.1.0
9 ····*·include9 ····*·include
10 ····*·loaders10 ····*·loaders
11 SILLYTGAImageContext.icpp11 SILLYTGAImageLoader.icpp
12 ·1/***********************************************************************12 ·1/***********************************************************************
13 ·2·filename:·SILLYTGAImageContext.icpp13 ·2·filename:·SILLYTGAImageLoader.icpp
14 ·3·created:·11·Jun·200614 ·3·created:·11·Jun·2006
15 ·4·author:·Olivier·Delannoy15 ·4·author:·Olivier·Delannoy
16 ·516 ·5
17 ·6·purpose:·Inline·definition·for·TGAImageContext·class17 ·6·purpose:·Inline·defintion·of·TGAImageLoader·class
18 ·7*************************************************************************/18 ·7*************************************************************************/
19 ·8/***************************************************************************19 ·8/***************************************************************************
20 ·9·*·Copyright·(C)·2004·-·2006·Paul·D·Turner·&·The·CEGUI·Development·Team20 ·9·*·Copyright·(C)·2004·-·2006·Paul·D·Turner·&·The·CEGUI·Development·Team
21 ·10·*21 ·10·*
22 ·11·*·Permission·is·hereby·granted,·free·of·charge,·to·any·person·obtaining22 ·11·*·Permission·is·hereby·granted,·free·of·charge,·to·any·person·obtaining
23 ·12·*·a·copy·of·this·software·and·associated·documentation·files·(the23 ·12·*·a·copy·of·this·software·and·associated·documentation·files·(the
24 ·13·*·"Software"),·to·deal·in·the·Software·without·restriction,·including24 ·13·*·"Software"),·to·deal·in·the·Software·without·restriction,·including
Offset 40, 21 lines modifiedOffset 40, 13 lines modified
40 ·28·*·OTHER·DEALINGS·IN·THE·SOFTWARE.40 ·28·*·OTHER·DEALINGS·IN·THE·SOFTWARE.
41 ·2941 ·29
42 ***************************************************************************/42 ***************************************************************************/
43 ·3043 ·30
44 ·31//·Start·of·section·namespace·SILLY44 ·31//·Start·of·section·namespace·SILLY
45 ·32namespace·SILLY45 ·32namespace·SILLY
46 ·33{46 ·33{
 47 ·34
47 ·34inline·TGAImageContext::TGAImageContext(size_t·width,·size_t·height) 
48 ·35·:·ImageContext(width,·height) 
49 ·36{ 
50 ·37} 
51 ·38 
52 ·39inline·TGAImageContext::~TGAImageContext() 
53 ·40{ 
54 ·41} 
55 ·42 
56 ·43}·//·End·of·section·namespace·SILLY48 ·35}·//·End·of·section·namespace·SILLY
57 ·4449 ·36
  
58 ===============================================================================50 ===============================================================================
59 ·····Generated·by [doxygen]·1.9.451 ·····Generated·by [doxygen]·1.9.4
22.0 KB
./usr/share/doc/libsilly-doc/html/a00080_source.html
    
Offset 1, 15 lines modifiedOffset 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">2 <html·xmlns="http://www.w3.org/1999/xhtml">
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.4"/>6 <meta·name="generator"·content="Doxygen·1.9.4"/>
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/loaders/SILLYJPGImageContext.h·Source·File</title>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 39, 92 lines modifiedOffset 39, 53 lines modified
39 <div·id="main-nav"></div>39 <div·id="main-nav"></div>
40 <div·id="nav-path"·class="navpath">40 <div·id="nav-path"·class="navpath">
41 ··<ul>41 ··<ul>
42 <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>42 <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>
43 </div>43 </div>
44 </div><!--·top·-->44 </div><!--·top·-->
45 <div·class="header">45 <div·class="header">
46 ··<div·class="headertitle"><div·class="title">SILLYJPGImageContext.h</div></div>46 ··<div·class="headertitle"><div·class="title">SILLYJPGImageContext.icpp</div></div>
47 </div><!--header-->47 </div><!--header-->
48 <div·class="contents">48 <div·class="contents">
49 <div·class="fragment"><div·class="line"><a·id="l00001"·name="l00001"></a><span·class="lineno">····1</span><span·class="comment">/***********************************************************************</span></div>49 <div·class="fragment"><div·class="line"><a·id="l00001"·name="l00001"></a><span·class="lineno">····1</span>/***********************************************************************</div>
50 <div·class="line"><a·id="l00002"·name="l00002"></a><span·class="lineno">····2</span><span·class="comment">····filename:···SILLYJPGImageContext.h</span></div>50 <div·class="line"><a·id="l00002"·name="l00002"></a><span·class="lineno">····2</span>····filename:···SILLYJPGImageContext.icpp·</div>
51 <div·class="line"><a·id="l00003"·name="l00003"></a><span·class="lineno">····3</span><span·class="comment">····created:····11·Jun·2006</span></div>51 <div·class="line"><a·id="l00003"·name="l00003"></a><span·class="lineno">····3</span>····created:····11·Jun·2006</div>
52 <div·class="line"><a·id="l00004"·name="l00004"></a><span·class="lineno">····4</span><span·class="comment">····author:·····Olivier·Delannoy</span></div>52 <div·class="line"><a·id="l00004"·name="l00004"></a><span·class="lineno">····4</span>····author:·····Olivier·Delannoy</div>
53 <div·class="line"><a·id="l00005"·name="l00005"></a><span·class="lineno">····5</span><span·class="comment"></span>·</div> 
54 <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> 
55 <div·class="line"><a·id="l00007"·name="l00007"></a><span·class="lineno">····7</span><span·class="comment">*************************************************************************/</span></div> 
56 <div·class="line"><a·id="l00008"·name="l00008"></a><span·class="lineno">····8</span><span·class="comment">/***************************************************************************</span></div> 
57 <div·class="line"><a·id="l00009"·name="l00009"></a><span·class="lineno">····9</span><span·class="comment">·*···Copyright·(C)·2004·-·2006·Paul·D·Turner·&amp;·The·CEGUI·Development·Team</span></div> 
58 <div·class="line"><a·id="l00010"·name="l00010"></a><span·class="lineno">···10</span><span·class="comment">·*</span></div> 
59 <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> 
60 <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> 
61 <div·class="line"><a·id="l00013"·name="l00013"></a><span·class="lineno">···13</span><span·class="comment">·*···&quot;Software&quot;),·to·deal·in·the·Software·without·restriction,·including</span></div> 
62 <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> 
63 <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> 
64 <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> 
65 <div·class="line"><a·id="l00017"·name="l00017"></a><span·class="lineno">···17</span><span·class="comment">·*···the·following·conditions:</span></div> 
66 <div·class="line"><a·id="l00018"·name="l00018"></a><span·class="lineno">···18</span><span·class="comment">·*</span></div> 
67 <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> 
68 <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> 
69 <div·class="line"><a·id="l00021"·name="l00021"></a><span·class="lineno">···21</span><span·class="comment">·*</span></div> 
70 <div·class="line"><a·id="l00022"·name="l00022"></a><span·class="lineno">···22</span><span·class="comment">·*···THE·SOFTWARE·IS·PROVIDED·&quot;AS·IS&quot;,·WITHOUT·WARRANTY·OF·ANY·KIND,</span></div> 
71 <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> 
72 <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> 
73 <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> 
74 <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> 
75 <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> 
76 <div·class="line"><a·id="l00028"·name="l00028"></a><span·class="lineno">···28</span><span·class="comment">·*···OTHER·DEALINGS·IN·THE·SOFTWARE.</span></div> 
77 <div·class="line"><a·id="l00029"·name="l00029"></a><span·class="lineno">···29</span><span·class="comment">·***************************************************************************/</span></div> 
78 <div·class="line"><a·id="l00030"·name="l00030"></a><span·class="lineno">···30</span><span·class="preprocessor">#ifndef·_SILLYJPGImageContext_h_·</span></div> 
79 <div·class="line"><a·id="l00031"·name="l00031"></a><span·class="lineno">···31</span><span·class="preprocessor">#define·_SILLYJPGImageContext_h_</span></div> 
80 <div·class="line"><a·id="l00032"·name="l00032"></a><span·class="lineno">···32</span><span·class="preprocessor">#include·&quot;SILLYBase.h&quot;</span>·</div> 
81 <div·class="line"><a·id="l00033"·name="l00033"></a><span·class="lineno">···33</span><span·class="preprocessor">#include·&quot;SILLYImageContext.h&quot;</span>·</div> 
82 <div·class="line"><a·id="l00034"·name="l00034"></a><span·class="lineno">···34</span><span·class="preprocessor">#include·&quot;SILLYDataSource.h&quot;</span>·</div> 
83 <div·class="line"><a·id="l00035"·name="l00035"></a><span·class="lineno">···35</span><span·class="comment">//·Start·of·section·namespace·SILLY·</span></div> 
84 <div·class="line"><a·id="l00036"·name="l00036"></a><span·class="lineno">···36</span><span·class="preprocessor">#include·&lt;setjmp.h&gt;</span></div> 
85 <div·class="line"><a·id="l00037"·name="l00037"></a><span·class="lineno">···37</span><span·class="preprocessor">#include·&lt;stdio.h&gt;</span></div> 
86 <div·class="line"><a·id="l00038"·name="l00038"></a><span·class="lineno">···38</span><span·class="preprocessor">#include·&lt;string.h&gt;</span></div> 
87 <div·class="line"><a·id="l00039"·name="l00039"></a><span·class="lineno">···39</span><span·class="keyword">extern</span>·<span·class="stringliteral">&quot;C&quot;</span>·</div> 
88 <div·class="line"><a·id="l00040"·name="l00040"></a><span·class="lineno">···40</span>{</div> 
89 <div·class="line"><a·id="l00041"·name="l00041"></a><span·class="lineno">···41</span><span·class="preprocessor">#include·&lt;jpeglib.h&gt;</span></div> 
90 <div·class="line"><a·id="l00042"·name="l00042"></a><span·class="lineno">···42</span>}</div> 
91 <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> 
92 <div·class="line"><a·id="l00044"·name="l00044"></a><span·class="lineno">···44</span>{</div> 
93 <div·class="line"><a·id="l00045"·name="l00045"></a><span·class="lineno">···45</span>·</div>53 <div·class="line"><a·id="l00005"·name="l00005"></a><span·class="lineno">····5</span>·</div>
 54 <div·class="line"><a·id="l00006"·name="l00006"></a><span·class="lineno">····6</span>····purpose:····Inline·definition·for·JPG·context···</div>
 55 <div·class="line"><a·id="l00007"·name="l00007"></a><span·class="lineno">····7</span>*************************************************************************/</div>
 56 <div·class="line"><a·id="l00008"·name="l00008"></a><span·class="lineno">····8</span>/***************************************************************************</div>
 57 <div·class="line"><a·id="l00009"·name="l00009"></a><span·class="lineno">····9</span>·*···Copyright·(C)·2004·-·2006·Paul·D·Turner·&amp;·The·CEGUI·Development·Team</div>
94 <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> 
95 <div·class="line"><a·id="l00057"·name="l00057"></a><span·class="lineno">···57</span>{</div> 
96 <div·class="line"><a·id="l00058"·name="l00058"></a><span·class="lineno">···58</span><span·class="keyword">public</span>:</div> 
97 <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> 
98 <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> 
99 <div·class="line"><a·id="l00061"·name="l00061"></a><span·class="lineno">···61</span>·</div>58 <div·class="line"><a·id="l00010"·name="l00010"></a><span·class="lineno">···10</span>·*</div>
100 <div·class="line"><a·id="l00062"·name="l00062"></a><span·class="lineno">···62</span>····<span·class="keywordtype">void</span>·setImageSize();</div>59 <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>
 60 <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>
 61 <div·class="line"><a·id="l00013"·name="l00013"></a><span·class="lineno">···13</span>·*···&quot;Software&quot;),·to·deal·in·the·Software·without·restriction,·including</div>
 62 <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>
 63 <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>
 64 <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>
 65 <div·class="line"><a·id="l00017"·name="l00017"></a><span·class="lineno">···17</span>·*···the·following·conditions:</div>
 66 <div·class="line"><a·id="l00018"·name="l00018"></a><span·class="lineno">···18</span>·*</div>
 67 <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>
 68 <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>
 69 <div·class="line"><a·id="l00021"·name="l00021"></a><span·class="lineno">···21</span>·*</div>
 70 <div·class="line"><a·id="l00022"·name="l00022"></a><span·class="lineno">···22</span>·*···THE·SOFTWARE·IS·PROVIDED·&quot;AS·IS&quot;,·WITHOUT·WARRANTY·OF·ANY·KIND,</div>
 71 <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>
 72 <div·class="line"><a·id="l00024"·name="l00024"></a><span·class="lineno">···24</span>·*···MERCHANTABILITY,·FITNESS·FOR·A·PARTICULAR·PURPOSE·AND·NONINFRINGEMENT.</div>
 73 <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>
 74 <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>
 75 <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>
 76 <div·class="line"><a·id="l00028"·name="l00028"></a><span·class="lineno">···28</span>·*···OTHER·DEALINGS·IN·THE·SOFTWARE.</div>
 77 <div·class="line"><a·id="l00029"·name="l00029"></a><span·class="lineno">···29</span>·***************************************************************************/</div>
 78 <div·class="line"><a·id="l00030"·name="l00030"></a><span·class="lineno">···30</span>·</div>
 79 <div·class="line"><a·id="l00031"·name="l00031"></a><span·class="lineno">···31</span>//·Start·of·section·namespace·SILLY</div>
 80 <div·class="line"><a·id="l00032"·name="l00032"></a><span·class="lineno">···32</span>namespace·SILLY</div>
 81 <div·class="line"><a·id="l00033"·name="l00033"></a><span·class="lineno">···33</span>{</div>
101 <div·class="line"><a·id="l00063"·name="l00063"></a><span·class="lineno">···63</span>····</div>82 <div·class="line"><a·id="l00034"·name="l00034"></a><span·class="lineno">···34</span>····</div>
102 <div·class="line"><a·id="l00064"·name="l00064"></a><span·class="lineno">···64</span>····</div>83 <div·class="line"><a·id="l00035"·name="l00035"></a><span·class="lineno">···35</span>}·//·End·of·section·namespace·SILLY</div>
103 <div·class="line"><a·id="l00065"·name="l00065"></a><span·class="lineno">···65</span>····jpeg_source_mgr·src_mgr;</div> 
104 <div·class="line"><a·id="l00066"·name="l00066"></a><span·class="lineno">···66</span>····jpeg_decompress_struct·cinfo;</div> 
105 <div·class="line"><a·id="l00067"·name="l00067"></a><span·class="lineno">···67</span>····</div> 
106 <div·class="line"><a·id="l00068"·name="l00068"></a><span·class="lineno">···68</span>····jpeg_error_mgr·d_error_mgr;</div> 
107 <div·class="line"><a·id="l00069"·name="l00069"></a><span·class="lineno">···69</span>····jmp_buf·setjmp_buffer;</div> 
108 <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> 
109 <div·class="line"><a·id="l00071"·name="l00071"></a><span·class="lineno">···71</span>};</div> 
110 <div·class="line"><a·id="l00072"·name="l00072"></a><span·class="lineno">···72</span>··</div> 
111 <div·class="line"><a·id="l00073"·name="l00073"></a><span·class="lineno">···73</span>··</div>84 <div·class="line"><a·id="l00036"·name="l00036"></a><span·class="lineno">···36</span>·</div>
112 <div·class="line"><a·id="l00074"·name="l00074"></a><span·class="lineno">···74</span>}·<span·class="comment">//·End·of·section·namespace·SILLY·</span></div> 
113 <div·class="line"><a·id="l00075"·name="l00075"></a><span·class="lineno">···75</span>·</div> 
114 <div·class="line"><a·id="l00076"·name="l00076"></a><span·class="lineno">···76</span><span·class="comment">//·Inclue·inline·function·when·needed·</span></div> 
115 <div·class="line"><a·id="l00077"·name="l00077"></a><span·class="lineno">···77</span><span·class="preprocessor">#ifdef·SILLY_OPT_INLINE</span></div> 
116 <div·class="line"><a·id="l00078"·name="l00078"></a><span·class="lineno">···78</span><span·class="preprocessor">#include·&quot;SILLYJPGImageContext.icpp&quot;</span></div> 
117 <div·class="line"><a·id="l00079"·name="l00079"></a><span·class="lineno">···79</span><span·class="preprocessor">#endif·</span></div> 
118 <div·class="line"><a·id="l00080"·name="l00080"></a><span·class="lineno">···80</span>·</div> 
119 <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> 
120 <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="a00020_source.html#l00045">SILLYJPGImageContext.cpp:46</a></div></div> 
121 <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="a00080_source.html#l00056">SILLYJPGImageContext.h:57</a></div></div> 
122 <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="a00122_source.html#l00046">SILLYDataSource.h:47</a></div></div> 
123 <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="a00047_source.html#l00043">SILLYImageContext.h:44</a></div></div> 
Max diff block lines reached; 271/19416 bytes (1.40%) of diff not shown.
2.97 KB
html2text {}
    
Offset 5, 21 lines modifiedOffset 5, 21 lines modified
5 Simple·Image·Loading·LibrarY 0.1.05 Simple·Image·Loading·LibrarY 0.1.0
  
6 ····*·build6 ····*·build
7 ····*·reproducible-path7 ····*·reproducible-path
8 ····*·silly-0.1.08 ····*·silly-0.1.0
9 ····*·include9 ····*·include
10 ····*·loaders10 ····*·loaders
11 SILLYJPGImageContext.h11 SILLYJPGImageContext.icpp
12 ·1/***********************************************************************12 ·1/***********************************************************************
13 ·2·filename:·SILLYJPGImageContext.h13 ·2·filename:·SILLYJPGImageContext.icpp
14 ·3·created:·11·Jun·200614 ·3·created:·11·Jun·2006
15 ·4·author:·Olivier·Delannoy15 ·4·author:·Olivier·Delannoy
16 ·516 ·5
17 ·6·purpose:·Declaration·of·the·JPGImageContext·class17 ·6·purpose:·Inline·definition·for·JPG·context
18 ·7*************************************************************************/18 ·7*************************************************************************/
19 ·8/***************************************************************************19 ·8/***************************************************************************
20 ·9·*·Copyright·(C)·2004·-·2006·Paul·D·Turner·&·The·CEGUI·Development·Team20 ·9·*·Copyright·(C)·2004·-·2006·Paul·D·Turner·&·The·CEGUI·Development·Team
21 ·10·*21 ·10·*
22 ·11·*·Permission·is·hereby·granted,·free·of·charge,·to·any·person·obtaining22 ·11·*·Permission·is·hereby·granted,·free·of·charge,·to·any·person·obtaining
23 ·12·*·a·copy·of·this·software·and·associated·documentation·files·(the23 ·12·*·a·copy·of·this·software·and·associated·documentation·files·(the
24 ·13·*·"Software"),·to·deal·in·the·Software·without·restriction,·including24 ·13·*·"Software"),·to·deal·in·the·Software·without·restriction,·including
Offset 36, 64 lines modifiedOffset 36, 17 lines modified
36 ·24·*·MERCHANTABILITY,·FITNESS·FOR·A·PARTICULAR·PURPOSE·AND·NONINFRINGEMENT.36 ·24·*·MERCHANTABILITY,·FITNESS·FOR·A·PARTICULAR·PURPOSE·AND·NONINFRINGEMENT.
37 ·25·*·IN·NO·EVENT·SHALL·THE·AUTHORS·BE·LIABLE·FOR·ANY·CLAIM,·DAMAGES·OR37 ·25·*·IN·NO·EVENT·SHALL·THE·AUTHORS·BE·LIABLE·FOR·ANY·CLAIM,·DAMAGES·OR
38 ·26·*·OTHER·LIABILITY,·WHETHER·IN·AN·ACTION·OF·CONTRACT,·TORT·OR·OTHERWISE,38 ·26·*·OTHER·LIABILITY,·WHETHER·IN·AN·ACTION·OF·CONTRACT,·TORT·OR·OTHERWISE,
39 ·27·*·ARISING·FROM,·OUT·OF·OR·IN·CONNECTION·WITH·THE·SOFTWARE·OR·THE·USE·OR39 ·27·*·ARISING·FROM,·OUT·OF·OR·IN·CONNECTION·WITH·THE·SOFTWARE·OR·THE·USE·OR
40 ·28·*·OTHER·DEALINGS·IN·THE·SOFTWARE.40 ·28·*·OTHER·DEALINGS·IN·THE·SOFTWARE.
41 ·2941 ·29
42 ***************************************************************************/42 ***************************************************************************/
 43 ·30
43 ·30#ifndef·_SILLYJPGImageContext_h_ 
44 ·31#define·_SILLYJPGImageContext_h_ 
45 ·32#include·"SILLYBase.h" 
46 ·33#include·"SILLYImageContext.h" 
47 ·34#include·"SILLYDataSource.h" 
48 ·35//·Start·of·section·namespace·SILLY44 ·31//·Start·of·section·namespace·SILLY
49 ·36#include·<setjmp.h> 
50 ·37#include·<stdio.h> 
51 ·38#include·<string.h> 
52 ·39extern·"C" 
53 ·40{ 
54 ·41#include·<jpeglib.h> 
55 ·42} 
56 ·43namespace·SILLY45 ·32namespace·SILLY
 46 ·33{
 47 ·34
57 ·44{ 
58 ·45 
59 56class·JPGImageContext·:·public·ImageContext 
60 ·57{ 
61 ·58public: 
62 ·59·JPGImageContext(); 
63 ·60·~JPGImageContext(); 
64 ·61 
65 ·62·void·setImageSize(); 
66 ·63 
67 ·64 
68 ·65·jpeg_source_mgr·src_mgr; 
69 ·66·jpeg_decompress_struct·cinfo; 
70 ·67 
71 ·68·jpeg_error_mgr·d_error_mgr; 
72 ·69·jmp_buf·setjmp_buffer; 
73 ·70·DataSource*·d_source; 
74 ·71}; 
75 ·72 
76 ·73 
77 ·74}·//·End·of·section·namespace·SILLY48 ·35}·//·End·of·section·namespace·SILLY
 49 ·36
78 ·75 
79 ·76//·Inclue·inline·function·when·needed 
80 ·77#ifdef·SILLY_OPT_INLINE 
81 ·78#include·"SILLYJPGImageContext.icpp" 
82 ·79#endif 
83 ·80 
84 ·81#endif·//·end·of·guard·_SILLYJPGImageContext_h_ 
85 SILLY 
86 Simple·Image·Loading·LibrarY·namespace. 
87 Definition:·SILLYJPGImageContext.cpp:46 
88 SILLY::JPGImageContext 
89 Image·Context·for·JPG·image·loader. 
90 Definition:·SILLYJPGImageContext.h:57 
91 SILLY::DataSource 
92 This·is·an·abstract·class·used·to·provide·data·to·the·loader. 
93 Definition:·SILLYDataSource.h:47 
94 SILLY::ImageContext 
95 Store·the·data·needed·by·an·ImageLoader·object·during·the·parsing·of·an·image. 
96 Definition:·SILLYImageContext.h:44 
  
97 ===============================================================================50 ===============================================================================
98 ·····Generated·by [doxygen]·1.9.451 ·····Generated·by [doxygen]·1.9.4
25.1 KB
./usr/share/doc/libsilly-doc/html/a00086_source.html
    
Offset 1, 15 lines modifiedOffset 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">2 <html·xmlns="http://www.w3.org/1999/xhtml">
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.4"/>6 <meta·name="generator"·content="Doxygen·1.9.4"/>
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/loaders/SILLYJPGImageLoader.h·Source·File</title>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 39, 23 lines modifiedOffset 39, 23 lines modified
39 <div·id="main-nav"></div>39 <div·id="main-nav"></div>
40 <div·id="nav-path"·class="navpath">40 <div·id="nav-path"·class="navpath">
41 ··<ul>41 ··<ul>
42 <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>42 <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>
43 </div>43 </div>
44 </div><!--·top·-->44 </div><!--·top·-->
45 <div·class="header">45 <div·class="header">
46 ··<div·class="headertitle"><div·class="title">SILLYJPGImageLoader.h</div></div>46 ··<div·class="headertitle"><div·class="title">SILLYTGAImageLoader.h</div></div>
47 </div><!--header-->47 </div><!--header-->
48 <div·class="contents">48 <div·class="contents">
49 <div·class="fragment"><div·class="line"><a·id="l00001"·name="l00001"></a><span·class="lineno">····1</span><span·class="comment">/***********************************************************************</span></div>49 <div·class="fragment"><div·class="line"><a·id="l00001"·name="l00001"></a><span·class="lineno">····1</span><span·class="comment">/***********************************************************************</span></div>
50 <div·class="line"><a·id="l00002"·name="l00002"></a><span·class="lineno">····2</span><span·class="comment">····filename:···SILLYJPGImageLoader.h</span></div>50 <div·class="line"><a·id="l00002"·name="l00002"></a><span·class="lineno">····2</span><span·class="comment">····filename:···SILLYTGAImageLoader.h</span></div>
51 <div·class="line"><a·id="l00003"·name="l00003"></a><span·class="lineno">····3</span><span·class="comment">····created:····11·Jun·2006</span></div>51 <div·class="line"><a·id="l00003"·name="l00003"></a><span·class="lineno">····3</span><span·class="comment">····created:····11·Jun·2006</span></div>
52 <div·class="line"><a·id="l00004"·name="l00004"></a><span·class="lineno">····4</span><span·class="comment">····author:·····Olivier·Delannoy</span></div>52 <div·class="line"><a·id="l00004"·name="l00004"></a><span·class="lineno">····4</span><span·class="comment">····author:·····Olivier·Delannoy</span></div>
53 <div·class="line"><a·id="l00005"·name="l00005"></a><span·class="lineno">····5</span><span·class="comment"></span>·</div>53 <div·class="line"><a·id="l00005"·name="l00005"></a><span·class="lineno">····5</span><span·class="comment"></span>·</div>
54 <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>54 <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>
55 <div·class="line"><a·id="l00007"·name="l00007"></a><span·class="lineno">····7</span><span·class="comment">*************************************************************************/</span></div>55 <div·class="line"><a·id="l00007"·name="l00007"></a><span·class="lineno">····7</span><span·class="comment">*************************************************************************/</span></div>
56 <div·class="line"><a·id="l00008"·name="l00008"></a><span·class="lineno">····8</span><span·class="comment">/***************************************************************************</span></div>56 <div·class="line"><a·id="l00008"·name="l00008"></a><span·class="lineno">····8</span><span·class="comment">/***************************************************************************</span></div>
57 <div·class="line"><a·id="l00009"·name="l00009"></a><span·class="lineno">····9</span><span·class="comment">·*···Copyright·(C)·2004·-·2006·Paul·D·Turner·&amp;·The·CEGUI·Development·Team</span></div>57 <div·class="line"><a·id="l00009"·name="l00009"></a><span·class="lineno">····9</span><span·class="comment">·*···Copyright·(C)·2004·-·2006·Paul·D·Turner·&amp;·The·CEGUI·Development·Team</span></div>
58 <div·class="line"><a·id="l00010"·name="l00010"></a><span·class="lineno">···10</span><span·class="comment">·*</span></div>58 <div·class="line"><a·id="l00010"·name="l00010"></a><span·class="lineno">···10</span><span·class="comment">·*</span></div>
59 <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>59 <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>
60 <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>60 <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>
61 <div·class="line"><a·id="l00013"·name="l00013"></a><span·class="lineno">···13</span><span·class="comment">·*···&quot;Software&quot;),·to·deal·in·the·Software·without·restriction,·including</span></div>61 <div·class="line"><a·id="l00013"·name="l00013"></a><span·class="lineno">···13</span><span·class="comment">·*···&quot;Software&quot;),·to·deal·in·the·Software·without·restriction,·including</span></div>
Offset 71, 50 lines modifiedOffset 71, 52 lines modified
71 <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>71 <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>
72 <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>72 <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>
73 <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>73 <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>
74 <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>74 <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>
75 <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>75 <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>
76 <div·class="line"><a·id="l00028"·name="l00028"></a><span·class="lineno">···28</span><span·class="comment">·*···OTHER·DEALINGS·IN·THE·SOFTWARE.</span></div>76 <div·class="line"><a·id="l00028"·name="l00028"></a><span·class="lineno">···28</span><span·class="comment">·*···OTHER·DEALINGS·IN·THE·SOFTWARE.</span></div>
77 <div·class="line"><a·id="l00029"·name="l00029"></a><span·class="lineno">···29</span><span·class="comment">·***************************************************************************/</span></div>77 <div·class="line"><a·id="l00029"·name="l00029"></a><span·class="lineno">···29</span><span·class="comment">·***************************************************************************/</span></div>
78 <div·class="line"><a·id="l00030"·name="l00030"></a><span·class="lineno">···30</span><span·class="preprocessor">#ifndef·_SILLYJPGImageLoader_h_·</span></div>78 <div·class="line"><a·id="l00030"·name="l00030"></a><span·class="lineno">···30</span><span·class="preprocessor">#ifndef·_SILLYTGAImageLoader_h_·</span></div>
79 <div·class="line"><a·id="l00031"·name="l00031"></a><span·class="lineno">···31</span><span·class="preprocessor">#define·_SILLYJPGImageLoader_h_</span></div>79 <div·class="line"><a·id="l00031"·name="l00031"></a><span·class="lineno">···31</span><span·class="preprocessor">#define·_SILLYTGAImageLoader_h_</span></div>
80 <div·class="line"><a·id="l00032"·name="l00032"></a><span·class="lineno">···32</span><span·class="preprocessor">#include·&quot;SILLYBase.h&quot;</span></div>80 <div·class="line"><a·id="l00032"·name="l00032"></a><span·class="lineno">···32</span><span·class="preprocessor">#include·&quot;SILLYBase.h&quot;</span>·</div>
81 <div·class="line"><a·id="l00033"·name="l00033"></a><span·class="lineno">···33</span><span·class="preprocessor">#include·&quot;SILLYImageLoader.h&quot;</span>·</div>81 <div·class="line"><a·id="l00033"·name="l00033"></a><span·class="lineno">···33</span><span·class="preprocessor">#include·&quot;SILLYImageLoader.h&quot;</span>·</div>
82 <div·class="line"><a·id="l00034"·name="l00034"></a><span·class="lineno">···34</span><span·class="comment">//·Start·of·section·namespace·SILLY·</span></div>82 <div·class="line"><a·id="l00034"·name="l00034"></a><span·class="lineno">···34</span><span·class="comment">//·Start·of·section·namespace·SILLY·</span></div>
83 <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="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>
84 <div·class="line"><a·id="l00036"·name="l00036"></a><span·class="lineno">···36</span>{</div>84 <div·class="line"><a·id="l00036"·name="l00036"></a><span·class="lineno">···36</span>{</div>
85 <div·class="line"><a·id="l00037"·name="l00037"></a><span·class="lineno">···37</span>··</div>85 <div·class="line"><a·id="l00037"·name="l00037"></a><span·class="lineno">···37</span><span·class="keyword">class·</span>TGAImageContext;</div>
86 <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:·32,·SHA:·2128c152ce27c8d310d2f1d8920b83cea27c202d1c010999d5cb94fb540edfd1·...·]</div>86 <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:·33,·SHA:·26c792b66584816efa8f9b899ae0e655979b5fefddc0465fa7a536702df0e2b7·...·]</div>
87 <div·class="line"><a·id="l00043"·name="l00043"></a><span·class="lineno">···43</span>{</div>87 <div·class="line"><a·id="l00044"·name="l00044"></a><span·class="lineno">···44</span>{</div>
88 <div·class="line"><a·id="l00044"·name="l00044"></a><span·class="lineno">···44</span><span·class="keyword">public</span>:</div>88 <div·class="line"><a·id="l00045"·name="l00045"></a><span·class="lineno">···45</span><span·class="keyword">public</span>:</div>
89 <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> 
90 <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>89 <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>
 90 <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>
91 <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="a00[·...·truncated·by·diffoscope;·len:·71,·SHA:·e63296c92670f89ca10ac4e3a13f8c1bc90051b83b607ffa6bf858e98ec7eb01·...·],·<a·class="code·hl_class"·href="a00969.html">DataSource</a>*·data);</div>91 <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="a00[·...·truncated·by·diffoscope;·len:·77,·SHA:·692020b9ff47417a893baef2880bbf93e44e50c6f077a217bb80a62c5bb55706·...·],·<a·class="code·hl_class"·href="a00969.html">DataSource</a>*·data);</div>
92 <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#aebdd89f2279[·...·truncated·by·diffoscope;·len:·184,·SHA:·0ff09f986cf2712878d2d97b5bb1528bf3af0f39d85f2b5fb1c6b3cdc3a5766c·...·]</div>92 <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#aebdd89f2279[·...·truncated·by·diffoscope;·len:·47,·SHA:·40a1fbfd6a77a2eb39509a37ba81574ab217988d6989924654a92d1c9c3a9227·...·]</div>
 93 <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>
 94 <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>
93 <div·class="line"><a·id="l00049"·name="l00049"></a><span·class="lineno">···49</span><span·class="keyword">private</span>:</div>95 <div·class="line"><a·id="l00052"·name="l00052"></a><span·class="lineno">···52</span><span·class="keyword">private</span>:</div>
94 <div·class="line"><a·id="l00050"·name="l00050"></a><span·class="lineno">···50</span>};</div> 
95 <div·class="line"><a·id="l00051"·name="l00051"></a><span·class="lineno">···51</span>··</div>96 <div·class="line"><a·id="l00053"·name="l00053"></a><span·class="lineno">···53</span>·</div>
96 <div·class="line"><a·id="l00052"·name="l00052"></a><span·class="lineno">···52</span>··</div> 
97 <div·class="line"><a·id="l00053"·name="l00053"></a><span·class="lineno">···53</span>}·<span·class="comment">//·End·of·section·namespace·SILLY·</span></div> 
98 <div·class="line"><a·id="l00054"·name="l00054"></a><span·class="lineno">···54</span>·</div>97 <div·class="line"><a·id="l00054"·name="l00054"></a><span·class="lineno">···54</span>};</div>
 98 <div·class="line"><a·id="l00055"·name="l00055"></a><span·class="lineno">···55</span>·</div>
 99 <div·class="line"><a·id="l00056"·name="l00056"></a><span·class="lineno">···56</span>}·<span·class="comment">//·End·of·section·namespace·SILLY·</span></div>
 100 <div·class="line"><a·id="l00057"·name="l00057"></a><span·class="lineno">···57</span>·</div>
99 <div·class="line"><a·id="l00055"·name="l00055"></a><span·class="lineno">···55</span><span·class="comment">//·Inclue·inline·function·when·needed·</span></div>101 <div·class="line"><a·id="l00058"·name="l00058"></a><span·class="lineno">···58</span><span·class="comment">//·Inclue·inline·function·when·needed·</span></div>
100 <div·class="line"><a·id="l00056"·name="l00056"></a><span·class="lineno">···56</span><span·class="preprocessor">#ifdef·SILLY_OPT_INLINE</span></div>102 <div·class="line"><a·id="l00059"·name="l00059"></a><span·class="lineno">···59</span><span·class="preprocessor">#ifdef·SILLY_OPT_INLINE</span></div>
101 <div·class="line"><a·id="l00057"·name="l00057"></a><span·class="lineno">···57</span><span·class="preprocessor">#include·&quot;SILLYJPGImageLoader.icpp&quot;</span></div>103 <div·class="line"><a·id="l00060"·name="l00060"></a><span·class="lineno">···60</span><span·class="preprocessor">#include·&quot;SILLYTGAImageLoader.icpp&quot;</span></div>
102 <div·class="line"><a·id="l00058"·name="l00058"></a><span·class="lineno">···58</span><span·class="preprocessor">#endif·</span></div>104 <div·class="line"><a·id="l00061"·name="l00061"></a><span·class="lineno">···61</span><span·class="preprocessor">#endif·</span></div>
103 <div·class="line"><a·id="l00059"·name="l00059"></a><span·class="lineno">···59</span>·</div>105 <div·class="line"><a·id="l00062"·name="l00062"></a><span·class="lineno">···62</span>·</div>
104 <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>106 <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>
105 <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="a00020_source.html#l00045">SILLYJPGImageContext.cpp:46</a></div></div>107 <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="a00005_source.html#l00045">SILLYJPGImageContext.cpp:46</a></div></div>
106 <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="a00053_source.html#l00059">SILLYBase.h:60</a></div></div>108 <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="a00113_source.html#l00059">SILLYBase.h:60</a></div></div>
107 <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="a00053_source.html#l00070">SILLYBase.h:71</a></div></div>109 <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="a00113_source.html#l00070">SILLYBase.h:71</a></div></div>
108 <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="a00086_source.html#l00042">SILLYJPGImageLoader.h:43</a></div></div>110 <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="a00086_source.html#l00043">SILLYTGAImageLoader.h:44</a></div></div>
 111 <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·&amp;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="a00020_source.html#l00074">SILLYTGAImageLoader.cpp:74</a></div></div>
109 <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·*[·...·truncated·by·diffoscope;·len:·201,·SHA:·b02b966ee25ac33a473f51a834d8b0136d73a262bb76240e750d7342fbc8f62e·...·]</a></div></div>112 <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·*[·...·truncated·by·diffoscope;·len:·202,·SHA:·e0601619dde47911186b0055039c3ef5433f867cb8653374f2a37020820ef038·...·]</a></div></div>
110 <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·&amp;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="a00014_source.html#l00056">SILLYJPGImageLoader.cpp:56</a></div></div> 
111 <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="a00122_source.html#l00046">SILLYDataSource.h:47</a></div></div>113 <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="a00119_source.html#l00046">SILLYDataSource.h:47</a></div></div>
112 <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="a00047_source.html#l00043">SILLYImageContext.h:44</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="a00110_source.html#l00043">SILLYImageContext.h:44</a></div></div>
113 <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="a00116_source.html#l00046">SILLYImageLoader.h:47</a></div></div>115 <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="a00092_source.html#l00046">SILLYImageLoader.h:47</a></div></div>
114 </div><!--·fragment·--></div><!--·contents·-->116 </div><!--·fragment·--></div><!--·contents·-->
115 <!--·start·footer·part·-->117 <!--·start·footer·part·-->
116 <hr·class="footer"/><address·class="footer"><small>118 <hr·class="footer"/><address·class="footer"><small>
117 Generated·by&#160;<a·href="https://www.doxygen.org/index.html"><img·class="footer"·src="doxygen.svg"·width="104"·height="31"·alt="doxygen"/></a>·1.9.4119 Generated·by&#160;<a·href="https://www.doxygen.org/index.html"><img·class="footer"·src="doxygen.svg"·width="104"·height="31"·alt="doxygen"/></a>·1.9.4
118 </small></address>120 </small></address>
119 </body>121 </body>
120 </html>122 </html>
4.13 KB
html2text {}
    
Offset 5, 21 lines modifiedOffset 5, 21 lines modified
5 Simple·Image·Loading·LibrarY 0.1.05 Simple·Image·Loading·LibrarY 0.1.0
  
6 ····*·build6 ····*·build
7 ····*·reproducible-path7 ····*·reproducible-path
8 ····*·silly-0.1.08 ····*·silly-0.1.0
9 ····*·include9 ····*·include
10 ····*·loaders10 ····*·loaders
11 SILLYJPGImageLoader.h11 SILLYTGAImageLoader.h
12 ·1/***********************************************************************12 ·1/***********************************************************************
13 ·2·filename:·SILLYJPGImageLoader.h13 ·2·filename:·SILLYTGAImageLoader.h
14 ·3·created:·11·Jun·200614 ·3·created:·11·Jun·2006
15 ·4·author:·Olivier·Delannoy15 ·4·author:·Olivier·Delannoy
16 ·516 ·5
17 ·6·purpose:·Declaration·of·the·JPGImageLoader·class17 ·6·purpose:·Declaration·of·the·TGAImageLoader·class
18 ·7*************************************************************************/18 ·7*************************************************************************/
19 ·8/***************************************************************************19 ·8/***************************************************************************
20 ·9·*·Copyright·(C)·2004·-·2006·Paul·D·Turner·&·The·CEGUI·Development·Team20 ·9·*·Copyright·(C)·2004·-·2006·Paul·D·Turner·&·The·CEGUI·Development·Team
21 ·10·*21 ·10·*
22 ·11·*·Permission·is·hereby·granted,·free·of·charge,·to·any·person·obtaining22 ·11·*·Permission·is·hereby·granted,·free·of·charge,·to·any·person·obtaining
23 ·12·*·a·copy·of·this·software·and·associated·documentation·files·(the23 ·12·*·a·copy·of·this·software·and·associated·documentation·files·(the
24 ·13·*·"Software"),·to·deal·in·the·Software·without·restriction,·including24 ·13·*·"Software"),·to·deal·in·the·Software·without·restriction,·including
Offset 36, 64 lines modifiedOffset 36, 65 lines modified
36 ·24·*·MERCHANTABILITY,·FITNESS·FOR·A·PARTICULAR·PURPOSE·AND·NONINFRINGEMENT.36 ·24·*·MERCHANTABILITY,·FITNESS·FOR·A·PARTICULAR·PURPOSE·AND·NONINFRINGEMENT.
37 ·25·*·IN·NO·EVENT·SHALL·THE·AUTHORS·BE·LIABLE·FOR·ANY·CLAIM,·DAMAGES·OR37 ·25·*·IN·NO·EVENT·SHALL·THE·AUTHORS·BE·LIABLE·FOR·ANY·CLAIM,·DAMAGES·OR
38 ·26·*·OTHER·LIABILITY,·WHETHER·IN·AN·ACTION·OF·CONTRACT,·TORT·OR·OTHERWISE,38 ·26·*·OTHER·LIABILITY,·WHETHER·IN·AN·ACTION·OF·CONTRACT,·TORT·OR·OTHERWISE,
39 ·27·*·ARISING·FROM,·OUT·OF·OR·IN·CONNECTION·WITH·THE·SOFTWARE·OR·THE·USE·OR39 ·27·*·ARISING·FROM,·OUT·OF·OR·IN·CONNECTION·WITH·THE·SOFTWARE·OR·THE·USE·OR
40 ·28·*·OTHER·DEALINGS·IN·THE·SOFTWARE.40 ·28·*·OTHER·DEALINGS·IN·THE·SOFTWARE.
41 ·2941 ·29
42 ***************************************************************************/42 ***************************************************************************/
43 ·30#ifndef·_SILLYJPGImageLoader_h_43 ·30#ifndef·_SILLYTGAImageLoader_h_
44 ·31#define·_SILLYJPGImageLoader_h_44 ·31#define·_SILLYTGAImageLoader_h_
45 ·32#include·"SILLYBase.h"45 ·32#include·"SILLYBase.h"
46 ·33#include·"SILLYImageLoader.h"46 ·33#include·"SILLYImageLoader.h"
47 ·34//·Start·of·section·namespace·SILLY47 ·34//·Start·of·section·namespace·SILLY
48 ·35namespace·SILLY48 ·35namespace·SILLY
49 ·36{49 ·36{
50 ·3750 ·37class·TGAImageContext;
51 42class·JPGImageLoader·:·public·ImageLoader51 43class·TGAImageLoader·:·public·ImageLoader
52 ·43{52 ·44{
53 ·44public:53 ·45public:
54 ·45·JPGImageLoader(); 
55 ·46·~JPGImageLoader();54 ·46·TGAImageLoader();
 55 ·47·~TGAImageLoader();
56 ·47·ImageContext*·loadHeader(PixelFormat&·header,·DataSource*·data);56 ·48·ImageContext*·loadHeader(PixelFormat&·formatSource,·DataSource*·data);
57 ·48·bool·loadImageData(PixelOrigin·origin,·DataSource*·data,·ImageContext* 
58 context);57 ·49·bool·loadImageData(PixelOrigin·origin,
 58 ·50·DataSource*·data,
 59 ·51·ImageContext*·context);
59 ·49private:60 ·52private:
 61 ·53
60 ·50};62 ·54};
 63 ·55
61 ·51 
62 ·52 
63 ·53}·//·End·of·section·namespace·SILLY64 ·56}·//·End·of·section·namespace·SILLY
64 ·5465 ·57
65 ·55//·Inclue·inline·function·when·needed66 ·58//·Inclue·inline·function·when·needed
66 ·56#ifdef·SILLY_OPT_INLINE67 ·59#ifdef·SILLY_OPT_INLINE
67 ·57#include·"SILLYJPGImageLoader.icpp"68 ·60#include·"SILLYTGAImageLoader.icpp"
68 ·58#endif69 ·61#endif
69 ·5970 ·62
70 ·60#endif·//·end·of·guard·_SILLYJPGImageLoader_h_71 ·63#endif·//·end·of·guard·_SILLYTGAImageLoader_h_
71 SILLY72 SILLY
72 Simple·Image·Loading·LibrarY·namespace.73 Simple·Image·Loading·LibrarY·namespace.
73 Definition:·SILLYJPGImageContext.cpp:4674 Definition:·SILLYJPGImageContext.cpp:46
74 SILLY::PixelFormat75 SILLY::PixelFormat
75 PixelFormat76 PixelFormat
76 List·all·pixel·format·supported.77 List·all·pixel·format·supported.
77 Definition:·SILLYBase.h:6078 Definition:·SILLYBase.h:60
78 SILLY::PixelOrigin79 SILLY::PixelOrigin
79 PixelOrigin80 PixelOrigin
80 List·all·pixel·origin·supported.81 List·all·pixel·origin·supported.
81 Definition:·SILLYBase.h:7182 Definition:·SILLYBase.h:71
82 SILLY::JPGImageLoader83 SILLY::TGAImageLoader
83 Loader·class·for·JPG·Image.84 Loader·for·Targa·image.
84 Definition:·SILLYJPGImageLoader.h:4385 Definition:·SILLYTGAImageLoader.h:44
 86 SILLY::TGAImageLoader::loadHeader
 87 ImageContext·*·loadHeader(PixelFormat·&formatSource,·DataSource·*data)
 88 Parse·the·header·of·the·image·and·fill·the·header·struct.
 89 Definition:·SILLYTGAImageLoader.cpp:74
85 SILLY::JPGImageLoader::loadImageData90 SILLY::TGAImageLoader::loadImageData
86 bool·loadImageData(PixelOrigin·origin,·DataSource·*data,·ImageContext·*context)91 bool·loadImageData(PixelOrigin·origin,·DataSource·*data,·ImageContext·*context)
87 Parse·the·pixels·data·of·the·image·and·fill·the·header·struct.92 Parse·the·pixels·data·of·the·image·and·fill·the·header·struct.
88 Definition:·SILLYJPGImageLoader.cpp:9093 Definition:·SILLYTGAImageLoader.cpp:134
89 SILLY::JPGImageLoader::loadHeader 
90 ImageContext·*·loadHeader(PixelFormat·&header,·DataSource·*data) 
91 Parse·the·header·of·the·image·and·fill·the·header·struct. 
92 Definition:·SILLYJPGImageLoader.cpp:56 
93 SILLY::DataSource94 SILLY::DataSource
94 This·is·an·abstract·class·used·to·provide·data·to·the·loader.95 This·is·an·abstract·class·used·to·provide·data·to·the·loader.
95 Definition:·SILLYDataSource.h:4796 Definition:·SILLYDataSource.h:47
96 SILLY::ImageContext97 SILLY::ImageContext
97 Store·the·data·needed·by·an·ImageLoader·object·during·the·parsing·of·an·image.98 Store·the·data·needed·by·an·ImageLoader·object·during·the·parsing·of·an·image.
98 Definition:·SILLYImageContext.h:4499 Definition:·SILLYImageContext.h:44
99 SILLY::ImageLoader100 SILLY::ImageLoader
23.1 KB
./usr/share/doc/libsilly-doc/html/a00089_source.html
    
Offset 1, 15 lines modifiedOffset 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">2 <html·xmlns="http://www.w3.org/1999/xhtml">
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.4"/>6 <meta·name="generator"·content="Doxygen·1.9.4"/>
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/loaders/SILLYJPGImageLoader.icpp·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 39, 53 lines modifiedOffset 39, 98 lines modified
39 <div·id="main-nav"></div>39 <div·id="main-nav"></div>
40 <div·id="nav-path"·class="navpath">40 <div·id="nav-path"·class="navpath">
41 ··<ul>41 ··<ul>
42 <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>42 <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>
43 </div>43 </div>
44 </div><!--·top·-->44 </div><!--·top·-->
45 <div·class="header">45 <div·class="header">
46 ··<div·class="headertitle"><div·class="title">SILLYJPGImageLoader.icpp</div></div>46 ··<div·class="headertitle"><div·class="title">SILLYPNGImageContext.h</div></div>
47 </div><!--header-->47 </div><!--header-->
48 <div·class="contents">48 <div·class="contents">
49 <div·class="fragment"><div·class="line"><a·id="l00001"·name="l00001"></a><span·class="lineno">····1</span>/***********************************************************************</div>49 <div·class="fragment"><div·class="line"><a·id="l00001"·name="l00001"></a><span·class="lineno">····1</span><span·class="comment">/***********************************************************************</span></div>
50 <div·class="line"><a·id="l00002"·name="l00002"></a><span·class="lineno">····2</span>····filename:···SILLYJPGImageLoader.icpp·</div>50 <div·class="line"><a·id="l00002"·name="l00002"></a><span·class="lineno">····2</span><span·class="comment">····filename:···SILLYPNGImageContext.h</span></div>
51 <div·class="line"><a·id="l00003"·name="l00003"></a><span·class="lineno">····3</span>····created:····11·Jun·2006</div>51 <div·class="line"><a·id="l00003"·name="l00003"></a><span·class="lineno">····3</span><span·class="comment">····created:····11·Jun·2006</span></div>
52 <div·class="line"><a·id="l00004"·name="l00004"></a><span·class="lineno">····4</span>····author:·····Olivier·Delannoy</div>52 <div·class="line"><a·id="l00004"·name="l00004"></a><span·class="lineno">····4</span><span·class="comment">····author:·····Olivier·Delannoy</span></div>
53 <div·class="line"><a·id="l00005"·name="l00005"></a><span·class="lineno">····5</span>·</div>53 <div·class="line"><a·id="l00005"·name="l00005"></a><span·class="lineno">····5</span><span·class="comment"></span>·</div>
54 <div·class="line"><a·id="l00006"·name="l00006"></a><span·class="lineno">····6</span>····purpose:····Inline·definition·of·JPGImageLoader·class··</div>54 <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>
55 <div·class="line"><a·id="l00007"·name="l00007"></a><span·class="lineno">····7</span>*************************************************************************/</div>55 <div·class="line"><a·id="l00007"·name="l00007"></a><span·class="lineno">····7</span><span·class="comment">*************************************************************************/</span></div>
56 <div·class="line"><a·id="l00008"·name="l00008"></a><span·class="lineno">····8</span>/***************************************************************************</div>56 <div·class="line"><a·id="l00008"·name="l00008"></a><span·class="lineno">····8</span><span·class="comment">/***************************************************************************</span></div>
57 <div·class="line"><a·id="l00009"·name="l00009"></a><span·class="lineno">····9</span>·*···Copyright·(C)·2004·-·2006·Paul·D·Turner·&amp;·The·CEGUI·Development·Team</div>57 <div·class="line"><a·id="l00009"·name="l00009"></a><span·class="lineno">····9</span><span·class="comment">·*···Copyright·(C)·2004·-·2006·Paul·D·Turner·&amp;·The·CEGUI·Development·Team</span></div>
58 <div·class="line"><a·id="l00010"·name="l00010"></a><span·class="lineno">···10</span>·*</div>58 <div·class="line"><a·id="l00010"·name="l00010"></a><span·class="lineno">···10</span><span·class="comment">·*</span></div>
59 <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>59 <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>
60 <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>60 <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>
61 <div·class="line"><a·id="l00013"·name="l00013"></a><span·class="lineno">···13</span>·*···&quot;Software&quot;),·to·deal·in·the·Software·without·restriction,·including</div>61 <div·class="line"><a·id="l00013"·name="l00013"></a><span·class="lineno">···13</span><span·class="comment">·*···&quot;Software&quot;),·to·deal·in·the·Software·without·restriction,·including</span></div>
62 <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>62 <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>
63 <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>63 <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>
64 <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>64 <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>
65 <div·class="line"><a·id="l00017"·name="l00017"></a><span·class="lineno">···17</span>·*···the·following·conditions:</div>65 <div·class="line"><a·id="l00017"·name="l00017"></a><span·class="lineno">···17</span><span·class="comment">·*···the·following·conditions:</span></div>
66 <div·class="line"><a·id="l00018"·name="l00018"></a><span·class="lineno">···18</span>·*</div>66 <div·class="line"><a·id="l00018"·name="l00018"></a><span·class="lineno">···18</span><span·class="comment">·*</span></div>
67 <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>67 <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>
68 <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>68 <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>
69 <div·class="line"><a·id="l00021"·name="l00021"></a><span·class="lineno">···21</span>·*</div>69 <div·class="line"><a·id="l00021"·name="l00021"></a><span·class="lineno">···21</span><span·class="comment">·*</span></div>
70 <div·class="line"><a·id="l00022"·name="l00022"></a><span·class="lineno">···22</span>·*···THE·SOFTWARE·IS·PROVIDED·&quot;AS·IS&quot;,·WITHOUT·WARRANTY·OF·ANY·KIND,</div>70 <div·class="line"><a·id="l00022"·name="l00022"></a><span·class="lineno">···22</span><span·class="comment">·*···THE·SOFTWARE·IS·PROVIDED·&quot;AS·IS&quot;,·WITHOUT·WARRANTY·OF·ANY·KIND,</span></div>
71 <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>71 <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>
72 <div·class="line"><a·id="l00024"·name="l00024"></a><span·class="lineno">···24</span>·*···MERCHANTABILITY,·FITNESS·FOR·A·PARTICULAR·PURPOSE·AND·NONINFRINGEMENT.</div>72 <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>
73 <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>73 <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>
74 <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>74 <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>
75 <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>75 <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>
76 <div·class="line"><a·id="l00028"·name="l00028"></a><span·class="lineno">···28</span>·*···OTHER·DEALINGS·IN·THE·SOFTWARE.</div>76 <div·class="line"><a·id="l00028"·name="l00028"></a><span·class="lineno">···28</span><span·class="comment">·*···OTHER·DEALINGS·IN·THE·SOFTWARE.</span></div>
77 <div·class="line"><a·id="l00029"·name="l00029"></a><span·class="lineno">···29</span>·***************************************************************************/</div>77 <div·class="line"><a·id="l00029"·name="l00029"></a><span·class="lineno">···29</span><span·class="comment">·***************************************************************************/</span></div>
78 <div·class="line"><a·id="l00030"·name="l00030"></a><span·class="lineno">···30</span>·</div>78 <div·class="line"><a·id="l00030"·name="l00030"></a><span·class="lineno">···30</span><span·class="preprocessor">#ifndef·_SILLYPNGImageContext_h_·</span></div>
 79 <div·class="line"><a·id="l00031"·name="l00031"></a><span·class="lineno">···31</span><span·class="preprocessor">#define·_SILLYPNGImageContext_h_</span></div>
 80 <div·class="line"><a·id="l00032"·name="l00032"></a><span·class="lineno">···32</span><span·class="preprocessor">#include·&quot;SILLYBase.h&quot;</span>·</div>
 81 <div·class="line"><a·id="l00033"·name="l00033"></a><span·class="lineno">···33</span><span·class="preprocessor">#include·&quot;SILLYImageContext.h&quot;</span>·</div>
 82 <div·class="line"><a·id="l00034"·name="l00034"></a><span·class="lineno">···34</span><span·class="preprocessor">#include·&quot;SILLYDataSource.h&quot;</span>·</div>
 83 <div·class="line"><a·id="l00035"·name="l00035"></a><span·class="lineno">···35</span><span·class="preprocessor">#include·&lt;png.h&gt;</span>·</div>
79 <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="l00036"·name="l00036"></a><span·class="lineno">···36</span><span·class="comment">//·Start·of·section·namespace·SILLY·</span></div>
80 <div·class="line"><a·id="l00032"·name="l00032"></a><span·class="lineno">···32</span>namespace·SILLY</div>85 <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>
81 <div·class="line"><a·id="l00033"·name="l00033"></a><span·class="lineno">···33</span>{</div>86 <div·class="line"><a·id="l00038"·name="l00038"></a><span·class="lineno">···38</span>{</div>
 87 <div·class="line"><a·id="l00039"·name="l00039"></a><span·class="lineno">···39</span>·</div>
 88 <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="code·hl_class"·href="a00981.html">ImageContext</a>·</div>
 89 <div·class="line"><a·id="l00046"·name="l00046"></a><span·class="lineno">···46</span>{</div>
 90 <div·class="line"><a·id="l00047"·name="l00047"></a><span·class="lineno">···47</span><span·class="keyword">public</span>:</div>
 91 <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>
 92 <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>
 93 <div·class="line"><a·id="l00050"·name="l00050"></a><span·class="lineno">···50</span>····</div>
 94 <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>
 95 <div·class="line"><a·id="l00052"·name="l00052"></a><span·class="lineno">···52</span>··</div>
82 <div·class="line"><a·id="l00034"·name="l00034"></a><span·class="lineno">···34</span>····</div>96 <div·class="line"><a·id="l00053"·name="l00053"></a><span·class="lineno">···53</span>····</div>
83 <div·class="line"><a·id="l00035"·name="l00035"></a><span·class="lineno">···35</span>}·//·End·of·section·namespace·SILLY</div>97 <div·class="line"><a·id="l00054"·name="l00054"></a><span·class="lineno">···54</span>····</div>
 98 <div·class="line"><a·id="l00055"·name="l00055"></a><span·class="lineno">···55</span><span·class="keyword">private</span>:</div>
 99 <div·class="line"><a·id="l00056"·name="l00056"></a><span·class="lineno">···56</span>····<span·class="keywordtype">void</span>·setImageSize();</div>
 100 <div·class="line"><a·id="l00057"·name="l00057"></a><span·class="lineno">···57</span>····</div>
 101 <div·class="line"><a·id="l00058"·name="l00058"></a><span·class="lineno">···58</span>····<span·class="keywordtype">size_t</span>·d_offset;</div>
 102 <div·class="line"><a·id="l00059"·name="l00059"></a><span·class="lineno">···59</span>····</div>
 103 <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>
 104 <div·class="line"><a·id="l00061"·name="l00061"></a><span·class="lineno">···61</span>····</div>
 105 <div·class="line"><a·id="l00062"·name="l00062"></a><span·class="lineno">···62</span>····png_structp·d_png_ptr;</div>
84 <div·class="line"><a·id="l00036"·name="l00036"></a><span·class="lineno">···36</span>·</div>106 <div·class="line"><a·id="l00063"·name="l00063"></a><span·class="lineno">···63</span>·</div>
 107 <div·class="line"><a·id="l00064"·name="l00064"></a><span·class="lineno">···64</span>····png_infop·d_info_ptr;</div>
 108 <div·class="line"><a·id="l00065"·name="l00065"></a><span·class="lineno">···65</span>··</div>
 109 <div·class="line"><a·id="l00066"·name="l00066"></a><span·class="lineno">···66</span>····<span·class="keywordtype">size_t</span>·d_bit_depth;</div>
 110 <div·class="line"><a·id="l00067"·name="l00067"></a><span·class="lineno">···67</span>····<span·class="keywordtype">size_t</span>·d_num_channels;</div>
 111 <div·class="line"><a·id="l00068"·name="l00068"></a><span·class="lineno">···68</span>····</div>
 112 <div·class="line"><a·id="l00069"·name="l00069"></a><span·class="lineno">···69</span>····</div>
 113 <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>
 114 <div·class="line"><a·id="l00071"·name="l00071"></a><span·class="lineno">···71</span>};</div>
 115 <div·class="line"><a·id="l00072"·name="l00072"></a><span·class="lineno">···72</span>··</div>
 116 <div·class="line"><a·id="l00073"·name="l00073"></a><span·class="lineno">···73</span>··</div>
 117 <div·class="line"><a·id="l00074"·name="l00074"></a><span·class="lineno">···74</span>}·<span·class="comment">//·End·of·section·namespace·SILLY·</span></div>
 118 <div·class="line"><a·id="l00075"·name="l00075"></a><span·class="lineno">···75</span>·</div>
 119 <div·class="line"><a·id="l00076"·name="l00076"></a><span·class="lineno">···76</span><span·class="comment">//·Inclue·inline·function·when·needed·</span></div>
 120 <div·class="line"><a·id="l00077"·name="l00077"></a><span·class="lineno">···77</span><span·class="preprocessor">#ifdef·SILLY_OPT_INLINE</span></div>
 121 <div·class="line"><a·id="l00078"·name="l00078"></a><span·class="lineno">···78</span><span·class="preprocessor">#include·&quot;SILLYPNGImageContext.icpp&quot;</span></div>
 122 <div·class="line"><a·id="l00079"·name="l00079"></a><span·class="lineno">···79</span><span·class="preprocessor">#endif·</span></div>
 123 <div·class="line"><a·id="l00080"·name="l00080"></a><span·class="lineno">···80</span>·</div>
 124 <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>
 125 <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="a00005_source.html#l00045">SILLYJPGImageContext.cpp:46</a></div></div>
 126 <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="a00089_source.html#l00045">SILLYPNGImageContext.h:46</a></div></div>
 127 <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="a00068_source.html#l00042">SILLYPNGImageLoader.h:43</a></div></div>
 128 <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="a00119_source.html#l00046">SILLYDataSource.h:47</a></div></div>
 129 <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="a00110_source.html#l00043">SILLYImageContext.h:44</a></div></div>
85 </div><!--·fragment·--></div><!--·contents·-->130 </div><!--·fragment·--></div><!--·contents·-->
86 <!--·start·footer·part·-->131 <!--·start·footer·part·-->
87 <hr·class="footer"/><address·class="footer"><small>132 <hr·class="footer"/><address·class="footer"><small>
88 Generated·by&#160;<a·href="https://www.doxygen.org/index.html"><img·class="footer"·src="doxygen.svg"·width="104"·height="31"·alt="doxygen"/></a>·1.9.4133 Generated·by&#160;<a·href="https://www.doxygen.org/index.html"><img·class="footer"·src="doxygen.svg"·width="104"·height="31"·alt="doxygen"/></a>·1.9.4
89 </small></address>134 </small></address>
90 </body>135 </body>
91 </html>136 </html>
3.11 KB
html2text {}
    
Offset 5, 21 lines modifiedOffset 5, 21 lines modified
5 Simple·Image·Loading·LibrarY 0.1.05 Simple·Image·Loading·LibrarY 0.1.0
  
6 ····*·build6 ····*·build
7 ····*·reproducible-path7 ····*·reproducible-path
8 ····*·silly-0.1.08 ····*·silly-0.1.0
9 ····*·include9 ····*·include
10 ····*·loaders10 ····*·loaders
11 SILLYJPGImageLoader.icpp11 SILLYPNGImageContext.h
12 ·1/***********************************************************************12 ·1/***********************************************************************
13 ·2·filename:·SILLYJPGImageLoader.icpp13 ·2·filename:·SILLYPNGImageContext.h
14 ·3·created:·11·Jun·200614 ·3·created:·11·Jun·2006
15 ·4·author:·Olivier·Delannoy15 ·4·author:·Olivier·Delannoy
16 ·516 ·5
17 ·6·purpose:·Inline·definition·of·JPGImageLoader·class17 ·6·purpose:·Declaration·of·the·PNGImageContext·class
18 ·7*************************************************************************/18 ·7*************************************************************************/
19 ·8/***************************************************************************19 ·8/***************************************************************************
20 ·9·*·Copyright·(C)·2004·-·2006·Paul·D·Turner·&·The·CEGUI·Development·Team20 ·9·*·Copyright·(C)·2004·-·2006·Paul·D·Turner·&·The·CEGUI·Development·Team
21 ·10·*21 ·10·*
22 ·11·*·Permission·is·hereby·granted,·free·of·charge,·to·any·person·obtaining22 ·11·*·Permission·is·hereby·granted,·free·of·charge,·to·any·person·obtaining
23 ·12·*·a·copy·of·this·software·and·associated·documentation·files·(the23 ·12·*·a·copy·of·this·software·and·associated·documentation·files·(the
24 ·13·*·"Software"),·to·deal·in·the·Software·without·restriction,·including24 ·13·*·"Software"),·to·deal·in·the·Software·without·restriction,·including
Offset 36, 17 lines modifiedOffset 36, 72 lines modified
36 ·24·*·MERCHANTABILITY,·FITNESS·FOR·A·PARTICULAR·PURPOSE·AND·NONINFRINGEMENT.36 ·24·*·MERCHANTABILITY,·FITNESS·FOR·A·PARTICULAR·PURPOSE·AND·NONINFRINGEMENT.
37 ·25·*·IN·NO·EVENT·SHALL·THE·AUTHORS·BE·LIABLE·FOR·ANY·CLAIM,·DAMAGES·OR37 ·25·*·IN·NO·EVENT·SHALL·THE·AUTHORS·BE·LIABLE·FOR·ANY·CLAIM,·DAMAGES·OR
38 ·26·*·OTHER·LIABILITY,·WHETHER·IN·AN·ACTION·OF·CONTRACT,·TORT·OR·OTHERWISE,38 ·26·*·OTHER·LIABILITY,·WHETHER·IN·AN·ACTION·OF·CONTRACT,·TORT·OR·OTHERWISE,
39 ·27·*·ARISING·FROM,·OUT·OF·OR·IN·CONNECTION·WITH·THE·SOFTWARE·OR·THE·USE·OR39 ·27·*·ARISING·FROM,·OUT·OF·OR·IN·CONNECTION·WITH·THE·SOFTWARE·OR·THE·USE·OR
40 ·28·*·OTHER·DEALINGS·IN·THE·SOFTWARE.40 ·28·*·OTHER·DEALINGS·IN·THE·SOFTWARE.
41 ·2941 ·29
42 ***************************************************************************/42 ***************************************************************************/
43 ·3043 ·30#ifndef·_SILLYPNGImageContext_h_
 44 ·31#define·_SILLYPNGImageContext_h_
 45 ·32#include·"SILLYBase.h"
 46 ·33#include·"SILLYImageContext.h"
 47 ·34#include·"SILLYDataSource.h"
 48 ·35#include·<png.h>
44 ·31//·Start·of·section·namespace·SILLY49 ·36//·Start·of·section·namespace·SILLY
45 ·32namespace·SILLY50 ·37namespace·SILLY
46 ·33{51 ·38{
47 ·3452 ·39
 53 45class·SILLY_EXPORT·PNGImageContext·:·public·ImageContext
 54 ·46{
 55 ·47public:
 56 ·48·PNGImageContext(DataSource*·data);
 57 ·49·~PNGImageContext();
 58 ·50
 59 ·51·int·read(png_bytep·data,·png_size_t·length);
 60 ·52
 61 ·53
 62 ·54
 63 ·55private:
 64 ·56·void·setImageSize();
 65 ·57
 66 ·58·size_t·d_offset;
 67 ·59
 68 ·60·DataSource*·d_data;
 69 ·61
 70 ·62·png_structp·d_png_ptr;
 71 ·63
 72 ·64·png_infop·d_info_ptr;
 73 ·65
 74 ·66·size_t·d_bit_depth;
 75 ·67·size_t·d_num_channels;
 76 ·68
 77 ·69
 78 ·70·friend·class·PNGImageLoader;
 79 ·71};
 80 ·72
 81 ·73
48 ·35}·//·End·of·section·namespace·SILLY82 ·74}·//·End·of·section·namespace·SILLY
49 ·3683 ·75
 84 ·76//·Inclue·inline·function·when·needed
 85 ·77#ifdef·SILLY_OPT_INLINE
 86 ·78#include·"SILLYPNGImageContext.icpp"
 87 ·79#endif
 88 ·80
 89 ·81#endif·//·end·of·guard·_SILLYPNGImageContext_h_
 90 SILLY
 91 Simple·Image·Loading·LibrarY·namespace.
 92 Definition:·SILLYJPGImageContext.cpp:46
 93 SILLY::PNGImageContext
 94 Image·Context·for·PNG·Image·Loader.
 95 Definition:·SILLYPNGImageContext.h:46
 96 SILLY::PNGImageLoader
 97 Loader·for·PNG·Image.
 98 Definition:·SILLYPNGImageLoader.h:43
 99 SILLY::DataSource
 100 This·is·an·abstract·class·used·to·provide·data·to·the·loader.
 101 Definition:·SILLYDataSource.h:47
 102 SILLY::ImageContext
 103 Store·the·data·needed·by·an·ImageLoader·object·during·the·parsing·of·an·image.
 104 Definition:·SILLYImageContext.h:44
  
50 ===============================================================================105 ===============================================================================
51 ·····Generated·by [doxygen]·1.9.4106 ·····Generated·by [doxygen]·1.9.4
27.1 KB
./usr/share/doc/libsilly-doc/html/a00092_source.html
    
Offset 1, 15 lines modifiedOffset 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">2 <html·xmlns="http://www.w3.org/1999/xhtml">
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.4"/>6 <meta·name="generator"·content="Doxygen·1.9.4"/>
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/loaders/SILLYTGAImageContext.h·Source·File</title>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 35, 27 lines modifiedOffset 35, 27 lines modified
35 ··initMenu('',false,false,'search.php','Search');35 ··initMenu('',false,false,'search.php','Search');
36 });36 });
37 /*·@license-end·*/37 /*·@license-end·*/
38 </script>38 </script>
39 <div·id="main-nav"></div>39 <div·id="main-nav"></div>
40 <div·id="nav-path"·class="navpath">40 <div·id="nav-path"·class="navpath">
41 ··<ul>41 ··<ul>
42 <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>42 <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>
43 </div>43 </div>
44 </div><!--·top·-->44 </div><!--·top·-->
45 <div·class="header">45 <div·class="header">
46 ··<div·class="headertitle"><div·class="title">SILLYTGAImageContext.h</div></div>46 ··<div·class="headertitle"><div·class="title">SILLYImageLoader.h</div></div>
47 </div><!--header-->47 </div><!--header-->
48 <div·class="contents">48 <div·class="contents">
49 <div·class="fragment"><div·class="line"><a·id="l00001"·name="l00001"></a><span·class="lineno">····1</span><span·class="comment">/***********************************************************************</span></div>49 <div·class="fragment"><div·class="line"><a·id="l00001"·name="l00001"></a><span·class="lineno">····1</span><span·class="comment">/***********************************************************************</span></div>
50 <div·class="line"><a·id="l00002"·name="l00002"></a><span·class="lineno">····2</span><span·class="comment">····filename:···SILLYTGAImageContext.h</span></div>50 <div·class="line"><a·id="l00002"·name="l00002"></a><span·class="lineno">····2</span><span·class="comment">····filename:···SILLYImageLoader.h</span></div>
51 <div·class="line"><a·id="l00003"·name="l00003"></a><span·class="lineno">····3</span><span·class="comment">····created:····11·Jun·2006</span></div>51 <div·class="line"><a·id="l00003"·name="l00003"></a><span·class="lineno">····3</span><span·class="comment">····created:····10·Jun·2006</span></div>
52 <div·class="line"><a·id="l00004"·name="l00004"></a><span·class="lineno">····4</span><span·class="comment">····author:·····Olivier·Delannoy</span></div>52 <div·class="line"><a·id="l00004"·name="l00004"></a><span·class="lineno">····4</span><span·class="comment">····author:·····Olivier·Delannoy</span></div>
53 <div·class="line"><a·id="l00005"·name="l00005"></a><span·class="lineno">····5</span><span·class="comment"></span>·</div>53 <div·class="line"><a·id="l00005"·name="l00005"></a><span·class="lineno">····5</span><span·class="comment"></span>·</div>
54 <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>54 <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>
55 <div·class="line"><a·id="l00007"·name="l00007"></a><span·class="lineno">····7</span><span·class="comment">*************************************************************************/</span></div>55 <div·class="line"><a·id="l00007"·name="l00007"></a><span·class="lineno">····7</span><span·class="comment">*************************************************************************/</span></div>
56 <div·class="line"><a·id="l00008"·name="l00008"></a><span·class="lineno">····8</span><span·class="comment">/***************************************************************************</span></div>56 <div·class="line"><a·id="l00008"·name="l00008"></a><span·class="lineno">····8</span><span·class="comment">/***************************************************************************</span></div>
57 <div·class="line"><a·id="l00009"·name="l00009"></a><span·class="lineno">····9</span><span·class="comment">·*···Copyright·(C)·2004·-·2006·Paul·D·Turner·&amp;·The·CEGUI·Development·Team</span></div>57 <div·class="line"><a·id="l00009"·name="l00009"></a><span·class="lineno">····9</span><span·class="comment">·*···Copyright·(C)·2004·-·2006·Paul·D·Turner·&amp;·The·CEGUI·Development·Team</span></div>
58 <div·class="line"><a·id="l00010"·name="l00010"></a><span·class="lineno">···10</span><span·class="comment">·*</span></div>58 <div·class="line"><a·id="l00010"·name="l00010"></a><span·class="lineno">···10</span><span·class="comment">·*</span></div>
59 <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>59 <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>
60 <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>60 <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>
61 <div·class="line"><a·id="l00013"·name="l00013"></a><span·class="lineno">···13</span><span·class="comment">·*···&quot;Software&quot;),·to·deal·in·the·Software·without·restriction,·including</span></div>61 <div·class="line"><a·id="l00013"·name="l00013"></a><span·class="lineno">···13</span><span·class="comment">·*···&quot;Software&quot;),·to·deal·in·the·Software·without·restriction,·including</span></div>
Offset 71, 50 lines modifiedOffset 71, 63 lines modified
71 <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>71 <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>
72 <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>72 <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>
73 <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>73 <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>
74 <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>74 <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>
75 <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>75 <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>
76 <div·class="line"><a·id="l00028"·name="l00028"></a><span·class="lineno">···28</span><span·class="comment">·*···OTHER·DEALINGS·IN·THE·SOFTWARE.</span></div>76 <div·class="line"><a·id="l00028"·name="l00028"></a><span·class="lineno">···28</span><span·class="comment">·*···OTHER·DEALINGS·IN·THE·SOFTWARE.</span></div>
77 <div·class="line"><a·id="l00029"·name="l00029"></a><span·class="lineno">···29</span><span·class="comment">·***************************************************************************/</span></div>77 <div·class="line"><a·id="l00029"·name="l00029"></a><span·class="lineno">···29</span><span·class="comment">·***************************************************************************/</span></div>
78 <div·class="line"><a·id="l00030"·name="l00030"></a><span·class="lineno">···30</span><span·class="preprocessor">#ifndef·_SILLYTGAImageContext_h_·</span></div>78 <div·class="line"><a·id="l00030"·name="l00030"></a><span·class="lineno">···30</span><span·class="preprocessor">#ifndef·_SILLYImageLoader_h_·</span></div>
79 <div·class="line"><a·id="l00031"·name="l00031"></a><span·class="lineno">···31</span><span·class="preprocessor">#define·_SILLYTGAImageContext_h_</span></div>79 <div·class="line"><a·id="l00031"·name="l00031"></a><span·class="lineno">···31</span><span·class="preprocessor">#define·_SILLYImageLoader_h_</span></div>
80 <div·class="line"><a·id="l00032"·name="l00032"></a><span·class="lineno">···32</span><span·class="preprocessor">#include·&quot;SILLYBase.h&quot;</span>·</div>80 <div·class="line"><a·id="l00032"·name="l00032"></a><span·class="lineno">···32</span><span·class="preprocessor">#include·&quot;SILLYBase.h&quot;</span></div>
81 <div·class="line"><a·id="l00033"·name="l00033"></a><span·class="lineno">···33</span><span·class="preprocessor">#include·&quot;SILLYImageContext.h&quot;</span>·</div> 
82 <div·class="line"><a·id="l00034"·name="l00034"></a><span·class="lineno">···34</span><span·class="comment">//·Start·of·section·namespace·SILLY·</span></div>81 <div·class="line"><a·id="l00033"·name="l00033"></a><span·class="lineno">···33</span><span·class="comment">//·Start·of·section·namespace·SILLY·</span></div>
83 <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>82 <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>
84 <div·class="line"><a·id="l00036"·name="l00036"></a><span·class="lineno">···36</span>{··</div> 
85 <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> 
86 <div·class="line"><a·id="l00043"·name="l00043"></a><span·class="lineno">···43</span>{</div>83 <div·class="line"><a·id="l00035"·name="l00035"></a><span·class="lineno">···35</span>{</div>
 84 <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>
 85 <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>
87 <div·class="line"><a·id="l00044"·name="l00044"></a><span·class="lineno">···44</span><span·class="keyword">public</span>:</div>86 <div·class="line"><a·id="l00038"·name="l00038"></a><span·class="lineno">···38</span>·</div>
 87 <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>
88 <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> 
89 <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> 
90 <div·class="line"><a·id="l00047"·name="l00047"></a><span·class="lineno">···47</span>··</div>88 <div·class="line"><a·id="l00047"·name="l00047"></a><span·class="lineno">···47</span>{</div>
91 <div·class="line"><a·id="l00048"·name="l00048"></a><span·class="lineno">···48</span><span·class="keyword">private</span>:</div>89 <div·class="line"><a·id="l00048"·name="l00048"></a><span·class="lineno">···48</span><span·class="keyword">protected</span>:</div>
 90 <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>
92 <div·class="line"><a·id="l00049"·name="l00049"></a><span·class="lineno">···49</span>··<span·class="keywordtype">byte</span>·d_idLength;</div> 
93 <div·class="line"><a·id="l00050"·name="l00050"></a><span·class="lineno">···50</span>··<span·class="keywordtype">byte</span>·d_imageType;</div> 
94 <div·class="line"><a·id="l00051"·name="l00051"></a><span·class="lineno">···51</span>··<span·class="keywordtype">byte</span>·d_depth;</div>91 <div·class="line"><a·id="l00053"·name="l00053"></a><span·class="lineno">···53</span><span·class="keyword">public</span>:</div>
95 <div·class="line"><a·id="l00052"·name="l00052"></a><span·class="lineno">···52</span>··<span·class="keywordtype">byte</span>·d_description;</div> 
96 <div·class="line"><a·id="l00053"·name="l00053"></a><span·class="lineno">···53</span>·</div> 
97 <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> 
98 <div·class="line"><a·id="l00055"·name="l00055"></a><span·class="lineno">···55</span>··</div>92 <div·class="line"><a·id="l00054"·name="l00054"></a><span·class="lineno">···54</span>········</div>
 93 <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>
99 <div·class="line"><a·id="l00056"·name="l00056"></a><span·class="lineno">···56</span>};</div> 
100 <div·class="line"><a·id="l00057"·name="l00057"></a><span·class="lineno">···57</span>··</div> 
101 <div·class="line"><a·id="l00058"·name="l00058"></a><span·class="lineno">···58</span>··</div> 
102 <div·class="line"><a·id="l00059"·name="l00059"></a><span·class="lineno">···59</span>}·<span·class="comment">//·End·of·section·namespace·SILLY·</span></div> 
103 <div·class="line"><a·id="l00060"·name="l00060"></a><span·class="lineno">···60</span>·</div>94 <div·class="line"><a·id="l00060"·name="l00060"></a><span·class="lineno">···60</span>·</div>
 95 <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>&amp;·formatSource,·<a·class="code·hl_class"·href="a00969.html">DataSource</a>*·data)·=·0;</div>
 96 <div·class="line"><a·id="l00072"·name="l00072"></a><span·class="lineno">···72</span>·</div>
 97 <div·class="line"><a·id="l00073"·name="l00073"></a><span·class="lineno">···73</span>·</div>
 98 <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>
 99 <div·class="line"><a·id="l00087"·name="l00087"></a><span·class="lineno">···87</span>····</div>
 100 <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>
 101 <div·class="line"><a·id="l00095"·name="l00095"></a><span·class="lineno">···95</span>····</div>
 102 <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>
 103 <div·class="line"><a·id="l00101"·name="l00101"></a><span·class="lineno">··101</span><span·class="keyword">private</span>:</div>
 104 <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>
 105 <div·class="line"><a·id="l00103"·name="l00103"></a><span·class="lineno">··103</span>·</div>
 106 <div·class="line"><a·id="l00104"·name="l00104"></a><span·class="lineno">··104</span>};</div>
 107 <div·class="line"><a·id="l00105"·name="l00105"></a><span·class="lineno">··105</span>··</div>
 108 <div·class="line"><a·id="l00106"·name="l00106"></a><span·class="lineno">··106</span>}·<span·class="comment">//·End·of·section·namespace·SILLY·</span></div>
 109 <div·class="line"><a·id="l00107"·name="l00107"></a><span·class="lineno">··107</span>·</div>
104 <div·class="line"><a·id="l00061"·name="l00061"></a><span·class="lineno">···61</span><span·class="comment">//·Inclue·inline·function·when·needed·</span></div>110 <div·class="line"><a·id="l00108"·name="l00108"></a><span·class="lineno">··108</span><span·class="comment">//·Inclue·inline·function·when·needed·</span></div>
105 <div·class="line"><a·id="l00062"·name="l00062"></a><span·class="lineno">···62</span><span·class="preprocessor">#ifdef·SILLY_OPT_INLINE</span></div>111 <div·class="line"><a·id="l00109"·name="l00109"></a><span·class="lineno">··109</span><span·class="preprocessor">#ifdef·SILLY_OPT_INLINE</span></div>
106 <div·class="line"><a·id="l00063"·name="l00063"></a><span·class="lineno">···63</span><span·class="preprocessor">#include·&quot;SILLYTGAImageContext.icpp&quot;</span></div>112 <div·class="line"><a·id="l00110"·name="l00110"></a><span·class="lineno">··110</span><span·class="preprocessor">#include·&quot;SILLYImageLoader.icpp&quot;</span></div>
107 <div·class="line"><a·id="l00064"·name="l00064"></a><span·class="lineno">···64</span><span·class="preprocessor">#endif·</span></div>113 <div·class="line"><a·id="l00111"·name="l00111"></a><span·class="lineno">··111</span><span·class="preprocessor">#endif·</span></div>
108 <div·class="line"><a·id="l00065"·name="l00065"></a><span·class="lineno">···65</span>·</div>114 <div·class="line"><a·id="l00112"·name="l00112"></a><span·class="lineno">··112</span>·</div>
109 <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>115 <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>
110 <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="a00020_source.html#l00045">SILLYJPGImageContext.cpp:46</a></div></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="a00005_source.html#l00045">SILLYJPGImageContext.cpp:46</a></div></div>
111 <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="a00092_source.html#l00042">SILLYTGAImageContext.h:43</a></div></div> 
112 <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="a00101_source.html#l00043">SILLYTGAImageLoader.h:44</a></div></div>117 <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="tt[·...·truncated·by·diffoscope;·len:·74,·SHA:·a9e826a17bfab8727c1d418bbf833e2a0a0101854e21ac574f034ca09ac388fd·...·]</a></div></div>
 118 <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="a00113_source.html#l00070">SILLYBase.h:71</a></div></div>
 119 <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="a00119_source.html#l00046">SILLYDataSource.h:47</a></div></div>
113 <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="a00047_source.html#l00043">SILLYImageContext.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="a00110_source.html#l00043">SILLYImageContext.h:44</a></div></div>
 121 <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="a00092_source.html#l00046">SILLYImageLoader.h:47</a></div></div>
 122 <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>
 123 <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·&amp;formatSource,·DataSource·*data)=0</div><div·class="ttdoc">Parse·the·header·of·the·image·and·fill·the·header·struct.</div></div>
 124 <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>
 125 <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>
 126 <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>
114 </div><!--·fragment·--></div><!--·contents·-->127 </div><!--·fragment·--></div><!--·contents·-->
115 <!--·start·footer·part·-->128 <!--·start·footer·part·-->
116 <hr·class="footer"/><address·class="footer"><small>129 <hr·class="footer"/><address·class="footer"><small>
117 Generated·by&#160;<a·href="https://www.doxygen.org/index.html"><img·class="footer"·src="doxygen.svg"·width="104"·height="31"·alt="doxygen"/></a>·1.9.4130 Generated·by&#160;<a·href="https://www.doxygen.org/index.html"><img·class="footer"·src="doxygen.svg"·width="104"·height="31"·alt="doxygen"/></a>·1.9.4
118 </small></address>131 </small></address>
119 </body>132 </body>
120 </html>133 </html>
4.62 KB
html2text {}
    
Offset 4, 22 lines modifiedOffset 4, 21 lines modified
  
4 Simple·Image·Loading·LibrarY 0.1.04 Simple·Image·Loading·LibrarY 0.1.0
  
5 ····*·build5 ····*·build
6 ····*·reproducible-path6 ····*·reproducible-path
7 ····*·silly-0.1.07 ····*·silly-0.1.0
8 ····*·include8 ····*·include
 9 SILLYImageLoader.h
9 ····*·loaders 
10 SILLYTGAImageContext.h 
11 ·1/***********************************************************************10 ·1/***********************************************************************
12 ·2·filename:·SILLYTGAImageContext.h11 ·2·filename:·SILLYImageLoader.h
13 ·3·created:·11·Jun·200612 ·3·created:·10·Jun·2006
14 ·4·author:·Olivier·Delannoy13 ·4·author:·Olivier·Delannoy
15 ·514 ·5
16 ·6·purpose:·Declaration·of·the·TGAImageContext·class15 ·6·purpose:·Abstract·class·for·all·image·loader
17 ·7*************************************************************************/16 ·7*************************************************************************/
18 ·8/***************************************************************************17 ·8/***************************************************************************
19 ·9·*·Copyright·(C)·2004·-·2006·Paul·D·Turner·&·The·CEGUI·Development·Team18 ·9·*·Copyright·(C)·2004·-·2006·Paul·D·Turner·&·The·CEGUI·Development·Team
20 ·10·*19 ·10·*
21 ·11·*·Permission·is·hereby·granted,·free·of·charge,·to·any·person·obtaining20 ·11·*·Permission·is·hereby·granted,·free·of·charge,·to·any·person·obtaining
22 ·12·*·a·copy·of·this·software·and·associated·documentation·files·(the21 ·12·*·a·copy·of·this·software·and·associated·documentation·files·(the
23 ·13·*·"Software"),·to·deal·in·the·Software·without·restriction,·including22 ·13·*·"Software"),·to·deal·in·the·Software·without·restriction,·including
Offset 36, 54 lines modifiedOffset 35, 87 lines modified
36 ·24·*·MERCHANTABILITY,·FITNESS·FOR·A·PARTICULAR·PURPOSE·AND·NONINFRINGEMENT.35 ·24·*·MERCHANTABILITY,·FITNESS·FOR·A·PARTICULAR·PURPOSE·AND·NONINFRINGEMENT.
37 ·25·*·IN·NO·EVENT·SHALL·THE·AUTHORS·BE·LIABLE·FOR·ANY·CLAIM,·DAMAGES·OR36 ·25·*·IN·NO·EVENT·SHALL·THE·AUTHORS·BE·LIABLE·FOR·ANY·CLAIM,·DAMAGES·OR
38 ·26·*·OTHER·LIABILITY,·WHETHER·IN·AN·ACTION·OF·CONTRACT,·TORT·OR·OTHERWISE,37 ·26·*·OTHER·LIABILITY,·WHETHER·IN·AN·ACTION·OF·CONTRACT,·TORT·OR·OTHERWISE,
39 ·27·*·ARISING·FROM,·OUT·OF·OR·IN·CONNECTION·WITH·THE·SOFTWARE·OR·THE·USE·OR38 ·27·*·ARISING·FROM,·OUT·OF·OR·IN·CONNECTION·WITH·THE·SOFTWARE·OR·THE·USE·OR
40 ·28·*·OTHER·DEALINGS·IN·THE·SOFTWARE.39 ·28·*·OTHER·DEALINGS·IN·THE·SOFTWARE.
41 ·2940 ·29
42 ***************************************************************************/41 ***************************************************************************/
43 ·30#ifndef·_SILLYTGAImageContext_h_42 ·30#ifndef·_SILLYImageLoader_h_
44 ·31#define·_SILLYTGAImageContext_h_43 ·31#define·_SILLYImageLoader_h_
45 ·32#include·"SILLYBase.h"44 ·32#include·"SILLYBase.h"
46 ·33#include·"SILLYImageContext.h" 
47 ·34//·Start·of·section·namespace·SILLY45 ·33//·Start·of·section·namespace·SILLY
48 ·35namespace·SILLY46 ·34namespace·SILLY
49 ·36{47 ·35{
 48 ·36class·DataSource;·//·Forward·declaration
 49 ·37class·ImageContext;·//·Forward·declaration
 50 ·38
 51 46class·SILLY_EXPORT·ImageLoader
50 42class·TGAImageContext·:·public·ImageContext 
51 ·43{ 
52 ·44public: 
53 ·45·TGAImageContext(size_t·width,·size_t·height); 
54 ·46·~TGAImageContext(); 
55 ·4752 ·47{
 53 ·48protected:
 54 52·ImageLoader(const·char*·name);
 55 ·53public:
 56 ·54
 57 59·virtual·~ImageLoader();
56 ·48private: 
57 ·49·byte·d_idLength; 
58 ·50·byte·d_imageType; 
59 ·51·byte·d_depth; 
60 ·52·byte·d_description; 
61 ·53 
62 ·54·friend·class·TGAImageLoader; 
63 ·55 
64 ·56}; 
65 ·57 
66 ·58 
67 ·59}·//·End·of·section·namespace·SILLY 
68 ·6058 ·60
 59 71·virtual·ImageContext*·loadHeader(PixelFormat&·formatSource,·DataSource*
 60 data)·=·0;
 61 ·72
 62 ·73
 63 86·virtual·bool·loadImageData(PixelOrigin·origin,·DataSource*·data,
 64 ImageContext*·context)·=·0;
 65 ·87
 66 ·94·void·destroyContext(ImageContext*·context);
 67 ·95
 68 100·const·char*·getIdentifierString()·const;
 69 ·101private:
 70 ·102·const·char*·d_name;
 71 ·103
 72 ·104};
 73 ·105
 74 ·106}·//·End·of·section·namespace·SILLY
 75 ·107
69 ·61//·Inclue·inline·function·when·needed76 ·108//·Inclue·inline·function·when·needed
70 ·62#ifdef·SILLY_OPT_INLINE77 ·109#ifdef·SILLY_OPT_INLINE
71 ·63#include·"SILLYTGAImageContext.icpp"78 ·110#include·"SILLYImageLoader.icpp"
72 ·64#endif 
73 ·6579 ·111#endif
 80 ·112
74 ·66#endif·//·end·of·guard·_SILLYTGAImageContext_h_81 ·113#endif·//·end·of·guard·_SILLYImageLoader_h_
75 SILLY82 SILLY
76 Simple·Image·Loading·LibrarY·namespace.83 Simple·Image·Loading·LibrarY·namespace.
77 Definition:·SILLYJPGImageContext.cpp:4684 Definition:·SILLYJPGImageContext.cpp:46
78 SILLY::TGAImageContext 
79 Image·Context·for·Targa·image. 
80 Definition:·SILLYTGAImageContext.h:43 
81 SILLY::TGAImageLoader 
82 Loader·for·Targa·image. 
83 Definition:·SILLYTGAImageLoader.h:4485 SILLY::PixelFormat
 86 PixelFormat
 87 List·all·pixel·format·supported.
 88 Definition:·SILLYBase.h:60
 89 SILLY::PixelOrigin
 90 PixelOrigin
 91 List·all·pixel·origin·supported.
 92 Definition:·SILLYBase.h:71
 93 SILLY::DataSource
 94 This·is·an·abstract·class·used·to·provide·data·to·the·loader.
 95 Definition:·SILLYDataSource.h:47
84 SILLY::ImageContext96 SILLY::ImageContext
85 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.
86 Definition:·SILLYImageContext.h:4498 Definition:·SILLYImageContext.h:44
 99 SILLY::ImageLoader
 100 This·is·an·abstract·class·that·define·the·interface·of·all·image·loader.
 101 Definition:·SILLYImageLoader.h:47
 102 SILLY::ImageLoader::ImageLoader
 103 ImageLoader(const·char·*name)
 104 Constructor.
 105 SILLY::ImageLoader::loadHeader
 106 virtual·ImageContext·*·loadHeader(PixelFormat·&formatSource,·DataSource
 107 *data)=0
 108 Parse·the·header·of·the·image·and·fill·the·header·struct.
 109 SILLY::ImageLoader::loadImageData
 110 virtual·bool·loadImageData(PixelOrigin·origin,·DataSource·*data,·ImageContext
 111 *context)=0
 112 Parse·the·pixels·data·of·the·image·and·fill·the·header·struct.
 113 SILLY::ImageLoader::~ImageLoader
Max diff block lines reached; 116/4704 bytes (2.47%) of diff not shown.
20.8 KB
./usr/share/doc/libsilly-doc/html/a00095_source.html
    
Offset 1, 15 lines modifiedOffset 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">2 <html·xmlns="http://www.w3.org/1999/xhtml">
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.4"/>6 <meta·name="generator"·content="Doxygen·1.9.4"/>
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/loaders/SILLYPNGImageContext.h·Source·File</title>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 35, 27 lines modifiedOffset 35, 27 lines modified
35 ··initMenu('',false,false,'search.php','Search');35 ··initMenu('',false,false,'search.php','Search');
36 });36 });
37 /*·@license-end·*/37 /*·@license-end·*/
38 </script>38 </script>
39 <div·id="main-nav"></div>39 <div·id="main-nav"></div>
40 <div·id="nav-path"·class="navpath">40 <div·id="nav-path"·class="navpath">
41 ··<ul>41 ··<ul>
42 <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>42 <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>
43 </div>43 </div>
44 </div><!--·top·-->44 </div><!--·top·-->
45 <div·class="header">45 <div·class="header">
46 ··<div·class="headertitle"><div·class="title">SILLYPNGImageContext.h</div></div>46 ··<div·class="headertitle"><div·class="title">SILLY.h</div></div>
47 </div><!--header-->47 </div><!--header-->
48 <div·class="contents">48 <div·class="contents">
49 <div·class="fragment"><div·class="line"><a·id="l00001"·name="l00001"></a><span·class="lineno">····1</span><span·class="comment">/***********************************************************************</span></div>49 <div·class="fragment"><div·class="line"><a·id="l00001"·name="l00001"></a><span·class="lineno">····1</span><span·class="comment">/***********************************************************************</span></div>
50 <div·class="line"><a·id="l00002"·name="l00002"></a><span·class="lineno">····2</span><span·class="comment">····filename:···SILLYPNGImageContext.h</span></div>50 <div·class="line"><a·id="l00002"·name="l00002"></a><span·class="lineno">····2</span><span·class="comment">····filename:···SILLY.h</span></div>
51 <div·class="line"><a·id="l00003"·name="l00003"></a><span·class="lineno">····3</span><span·class="comment">····created:····11·Jun·2006</span></div>51 <div·class="line"><a·id="l00003"·name="l00003"></a><span·class="lineno">····3</span><span·class="comment">····created:····10·Jun·2006</span></div>
52 <div·class="line"><a·id="l00004"·name="l00004"></a><span·class="lineno">····4</span><span·class="comment">····author:·····Olivier·Delannoy</span></div>52 <div·class="line"><a·id="l00004"·name="l00004"></a><span·class="lineno">····4</span><span·class="comment">····author:·····Olivier·Delannoy</span></div>
53 <div·class="line"><a·id="l00005"·name="l00005"></a><span·class="lineno">····5</span><span·class="comment"></span>·</div>53 <div·class="line"><a·id="l00005"·name="l00005"></a><span·class="lineno">····5</span><span·class="comment"></span>·</div>
54 <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>54 <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>
55 <div·class="line"><a·id="l00007"·name="l00007"></a><span·class="lineno">····7</span><span·class="comment">*************************************************************************/</span></div>55 <div·class="line"><a·id="l00007"·name="l00007"></a><span·class="lineno">····7</span><span·class="comment">*************************************************************************/</span></div>
56 <div·class="line"><a·id="l00008"·name="l00008"></a><span·class="lineno">····8</span><span·class="comment">/***************************************************************************</span></div>56 <div·class="line"><a·id="l00008"·name="l00008"></a><span·class="lineno">····8</span><span·class="comment">/***************************************************************************</span></div>
57 <div·class="line"><a·id="l00009"·name="l00009"></a><span·class="lineno">····9</span><span·class="comment">·*···Copyright·(C)·2004·-·2006·Paul·D·Turner·&amp;·The·CEGUI·Development·Team</span></div>57 <div·class="line"><a·id="l00009"·name="l00009"></a><span·class="lineno">····9</span><span·class="comment">·*···Copyright·(C)·2004·-·2006·Paul·D·Turner·&amp;·The·CEGUI·Development·Team</span></div>
58 <div·class="line"><a·id="l00010"·name="l00010"></a><span·class="lineno">···10</span><span·class="comment">·*</span></div>58 <div·class="line"><a·id="l00010"·name="l00010"></a><span·class="lineno">···10</span><span·class="comment">·*</span></div>
59 <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>59 <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>
60 <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>60 <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>
61 <div·class="line"><a·id="l00013"·name="l00013"></a><span·class="lineno">···13</span><span·class="comment">·*···&quot;Software&quot;),·to·deal·in·the·Software·without·restriction,·including</span></div>61 <div·class="line"><a·id="l00013"·name="l00013"></a><span·class="lineno">···13</span><span·class="comment">·*···&quot;Software&quot;),·to·deal·in·the·Software·without·restriction,·including</span></div>
Offset 71, 66 lines modifiedOffset 71, 35 lines modified
71 <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>71 <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>
72 <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>72 <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>
73 <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>73 <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>
74 <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>74 <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>
75 <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>75 <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>
76 <div·class="line"><a·id="l00028"·name="l00028"></a><span·class="lineno">···28</span><span·class="comment">·*···OTHER·DEALINGS·IN·THE·SOFTWARE.</span></div>76 <div·class="line"><a·id="l00028"·name="l00028"></a><span·class="lineno">···28</span><span·class="comment">·*···OTHER·DEALINGS·IN·THE·SOFTWARE.</span></div>
77 <div·class="line"><a·id="l00029"·name="l00029"></a><span·class="lineno">···29</span><span·class="comment">·***************************************************************************/</span></div>77 <div·class="line"><a·id="l00029"·name="l00029"></a><span·class="lineno">···29</span><span·class="comment">·***************************************************************************/</span></div>
78 <div·class="line"><a·id="l00030"·name="l00030"></a><span·class="lineno">···30</span><span·class="preprocessor">#ifndef·_SILLYPNGImageContext_h_·</span></div>78 <div·class="line"><a·id="l00030"·name="l00030"></a><span·class="lineno">···30</span><span·class="preprocessor">#ifndef·_SILLY_h_·</span></div>
79 <div·class="line"><a·id="l00031"·name="l00031"></a><span·class="lineno">···31</span><span·class="preprocessor">#define·_SILLYPNGImageContext_h_</span></div>79 <div·class="line"><a·id="l00031"·name="l00031"></a><span·class="lineno">···31</span><span·class="preprocessor">#define·_SILLY_h_</span></div>
80 <div·class="line"><a·id="l00032"·name="l00032"></a><span·class="lineno">···32</span><span·class="preprocessor">#include·&quot;SILLYBase.h&quot;</span>·</div> 
81 <div·class="line"><a·id="l00033"·name="l00033"></a><span·class="lineno">···33</span><span·class="preprocessor">#include·&quot;SILLYImageContext.h&quot;</span>·</div> 
82 <div·class="line"><a·id="l00034"·name="l00034"></a><span·class="lineno">···34</span><span·class="preprocessor">#include·&quot;SILLYDataSource.h&quot;</span>·</div> 
83 <div·class="line"><a·id="l00035"·name="l00035"></a><span·class="lineno">···35</span><span·class="preprocessor">#include·&lt;png.h&gt;</span>·</div> 
84 <div·class="line"><a·id="l00036"·name="l00036"></a><span·class="lineno">···36</span><span·class="comment">//·Start·of·section·namespace·SILLY·</span></div> 
85 <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>80 <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="l00038"·name="l00038"></a><span·class="lineno">···38</span>{</div>81 <div·class="line"><a·id="l00110"·name="l00110"></a><span·class="lineno">··110</span>{</div>
 82 <div·class="line"><a·id="l00111"·name="l00111"></a><span·class="lineno">··111</span>··</div>
 83 <div·class="line"><a·id="l00112"·name="l00112"></a><span·class="lineno">··112</span>}</div>
87 <div·class="line"><a·id="l00039"·name="l00039"></a><span·class="lineno">···39</span>·</div>84 <div·class="line"><a·id="l00113"·name="l00113"></a><span·class="lineno">··113</span>·</div>
88 <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="code·hl_class"·href="a00981.html">ImageContext</a>·</div> 
89 <div·class="line"><a·id="l00046"·name="l00046"></a><span·class="lineno">···46</span>{</div>85 <div·class="line"><a·id="l00114"·name="l00114"></a><span·class="lineno">··114</span>·</div>
90 <div·class="line"><a·id="l00047"·name="l00047"></a><span·class="lineno">···47</span><span·class="keyword">public</span>:</div> 
91 <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> 
92 <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> 
93 <div·class="line"><a·id="l00050"·name="l00050"></a><span·class="lineno">···50</span>····</div> 
94 <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> 
95 <div·class="line"><a·id="l00052"·name="l00052"></a><span·class="lineno">···52</span>··</div> 
96 <div·class="line"><a·id="l00053"·name="l00053"></a><span·class="lineno">···53</span>····</div> 
97 <div·class="line"><a·id="l00054"·name="l00054"></a><span·class="lineno">···54</span>····</div> 
98 <div·class="line"><a·id="l00055"·name="l00055"></a><span·class="lineno">···55</span><span·class="keyword">private</span>:</div> 
99 <div·class="line"><a·id="l00056"·name="l00056"></a><span·class="lineno">···56</span>····<span·class="keywordtype">void</span>·setImageSize();</div> 
100 <div·class="line"><a·id="l00057"·name="l00057"></a><span·class="lineno">···57</span>····</div> 
101 <div·class="line"><a·id="l00058"·name="l00058"></a><span·class="lineno">···58</span>····<span·class="keywordtype">size_t</span>·d_offset;</div> 
102 <div·class="line"><a·id="l00059"·name="l00059"></a><span·class="lineno">···59</span>····</div> 
103 <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> 
104 <div·class="line"><a·id="l00061"·name="l00061"></a><span·class="lineno">···61</span>····</div> 
105 <div·class="line"><a·id="l00062"·name="l00062"></a><span·class="lineno">···62</span>····png_structp·d_png_ptr;</div> 
106 <div·class="line"><a·id="l00063"·name="l00063"></a><span·class="lineno">···63</span>·</div> 
107 <div·class="line"><a·id="l00064"·name="l00064"></a><span·class="lineno">···64</span>····png_infop·d_info_ptr;</div> 
108 <div·class="line"><a·id="l00065"·name="l00065"></a><span·class="lineno">···65</span>··</div> 
109 <div·class="line"><a·id="l00066"·name="l00066"></a><span·class="lineno">···66</span>····<span·class="keywordtype">size_t</span>·d_bit_depth;</div> 
110 <div·class="line"><a·id="l00067"·name="l00067"></a><span·class="lineno">···67</span>····<span·class="keywordtype">size_t</span>·d_num_channels;</div> 
111 <div·class="line"><a·id="l00068"·name="l00068"></a><span·class="lineno">···68</span>····</div> 
112 <div·class="line"><a·id="l00069"·name="l00069"></a><span·class="lineno">···69</span>····</div> 
113 <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> 
114 <div·class="line"><a·id="l00071"·name="l00071"></a><span·class="lineno">···71</span>};</div> 
115 <div·class="line"><a·id="l00072"·name="l00072"></a><span·class="lineno">···72</span>··</div> 
116 <div·class="line"><a·id="l00073"·name="l00073"></a><span·class="lineno">···73</span>··</div> 
117 <div·class="line"><a·id="l00074"·name="l00074"></a><span·class="lineno">···74</span>}·<span·class="comment">//·End·of·section·namespace·SILLY·</span></div> 
118 <div·class="line"><a·id="l00075"·name="l00075"></a><span·class="lineno">···75</span>·</div>86 <div·class="line"><a·id="l00115"·name="l00115"></a><span·class="lineno">··115</span>·</div>
119 <div·class="line"><a·id="l00076"·name="l00076"></a><span·class="lineno">···76</span><span·class="comment">//·Inclue·inline·function·when·needed·</span></div>87 <div·class="line"><a·id="l00116"·name="l00116"></a><span·class="lineno">··116</span>·</div>
120 <div·class="line"><a·id="l00077"·name="l00077"></a><span·class="lineno">···77</span><span·class="preprocessor">#ifdef·SILLY_OPT_INLINE</span></div>88 <div·class="line"><a·id="l00117"·name="l00117"></a><span·class="lineno">··117</span><span·class="preprocessor">#include·&quot;SILLYBase.h&quot;</span></div>
 89 <div·class="line"><a·id="l00118"·name="l00118"></a><span·class="lineno">··118</span><span·class="preprocessor">#include·&quot;SILLYDataSource.h&quot;</span>·</div>
 90 <div·class="line"><a·id="l00119"·name="l00119"></a><span·class="lineno">··119</span><span·class="preprocessor">#include·&quot;SILLYFileDataSource.h&quot;</span>·</div>
 91 <div·class="line"><a·id="l00120"·name="l00120"></a><span·class="lineno">··120</span><span·class="preprocessor">#include·&quot;SILLYMemoryDataSource.h&quot;</span>·</div>
 92 <div·class="line"><a·id="l00121"·name="l00121"></a><span·class="lineno">··121</span><span·class="preprocessor">#include·&quot;SILLYImageLoader.h&quot;</span></div>
121 <div·class="line"><a·id="l00078"·name="l00078"></a><span·class="lineno">···78</span><span·class="preprocessor">#include·&quot;SILLYPNGImageContext.icpp&quot;</span></div>93 <div·class="line"><a·id="l00122"·name="l00122"></a><span·class="lineno">··122</span><span·class="preprocessor">#include·&quot;SILLYImageContext.h&quot;</span>·</div>
 94 <div·class="line"><a·id="l00123"·name="l00123"></a><span·class="lineno">··123</span><span·class="preprocessor">#include·&quot;SILLYImageLoaderManager.h&quot;</span>·</div>
122 <div·class="line"><a·id="l00079"·name="l00079"></a><span·class="lineno">···79</span><span·class="preprocessor">#endif·</span></div>95 <div·class="line"><a·id="l00124"·name="l00124"></a><span·class="lineno">··124</span><span·class="preprocessor">#include·&quot;SILLYImage.h&quot;</span></div>
123 <div·class="line"><a·id="l00080"·name="l00080"></a><span·class="lineno">···80</span>·</div>96 <div·class="line"><a·id="l00125"·name="l00125"></a><span·class="lineno">··125</span>·</div>
124 <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>97 <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>
125 <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="a00020_source.html#l00045">SILLYJPGImageContext.cpp:46</a></div></div>98 <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="a00005_source.html#l00045">SILLYJPGImageContext.cpp:46</a></div></div>
126 <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="a00095_source.html#l00045">SILLYPNGImageContext.h:46</a></div></div> 
127 <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="a00098_source.html#l00042">SILLYPNGImageLoader.h:43</a></div></div> 
128 <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="a00122_source.html#l00046">SILLYDataSource.h:47</a></div></div> 
129 <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="a00047_source.html#l00043">SILLYImageContext.h:44</a></div></div> 
130 </div><!--·fragment·--></div><!--·contents·-->99 </div><!--·fragment·--></div><!--·contents·-->
131 <!--·start·footer·part·-->100 <!--·start·footer·part·-->
132 <hr·class="footer"/><address·class="footer"><small>101 <hr·class="footer"/><address·class="footer"><small>
133 Generated·by&#160;<a·href="https://www.doxygen.org/index.html"><img·class="footer"·src="doxygen.svg"·width="104"·height="31"·alt="doxygen"/></a>·1.9.4102 Generated·by&#160;<a·href="https://www.doxygen.org/index.html"><img·class="footer"·src="doxygen.svg"·width="104"·height="31"·alt="doxygen"/></a>·1.9.4
134 </small></address>103 </small></address>
135 </body>104 </body>
136 </html>105 </html>
3.41 KB
html2text {}
    
Offset 4, 22 lines modifiedOffset 4, 21 lines modified
  
4 Simple·Image·Loading·LibrarY 0.1.04 Simple·Image·Loading·LibrarY 0.1.0
  
5 ····*·build5 ····*·build
6 ····*·reproducible-path6 ····*·reproducible-path
7 ····*·silly-0.1.07 ····*·silly-0.1.0
8 ····*·include8 ····*·include
 9 SILLY.h
9 ····*·loaders 
10 SILLYPNGImageContext.h 
11 ·1/***********************************************************************10 ·1/***********************************************************************
12 ·2·filename:·SILLYPNGImageContext.h11 ·2·filename:·SILLY.h
13 ·3·created:·11·Jun·200612 ·3·created:·10·Jun·2006
14 ·4·author:·Olivier·Delannoy13 ·4·author:·Olivier·Delannoy
15 ·514 ·5
16 ·6·purpose:·Declaration·of·the·PNGImageContext·class15 ·6·purpose:·Master·include·for·the·SILLY·library
17 ·7*************************************************************************/16 ·7*************************************************************************/
18 ·8/***************************************************************************17 ·8/***************************************************************************
19 ·9·*·Copyright·(C)·2004·-·2006·Paul·D·Turner·&·The·CEGUI·Development·Team18 ·9·*·Copyright·(C)·2004·-·2006·Paul·D·Turner·&·The·CEGUI·Development·Team
20 ·10·*19 ·10·*
21 ·11·*·Permission·is·hereby·granted,·free·of·charge,·to·any·person·obtaining20 ·11·*·Permission·is·hereby·granted,·free·of·charge,·to·any·person·obtaining
22 ·12·*·a·copy·of·this·software·and·associated·documentation·files·(the21 ·12·*·a·copy·of·this·software·and·associated·documentation·files·(the
23 ·13·*·"Software"),·to·deal·in·the·Software·without·restriction,·including22 ·13·*·"Software"),·to·deal·in·the·Software·without·restriction,·including
Offset 36, 72 lines modifiedOffset 35, 33 lines modified
36 ·24·*·MERCHANTABILITY,·FITNESS·FOR·A·PARTICULAR·PURPOSE·AND·NONINFRINGEMENT.35 ·24·*·MERCHANTABILITY,·FITNESS·FOR·A·PARTICULAR·PURPOSE·AND·NONINFRINGEMENT.
37 ·25·*·IN·NO·EVENT·SHALL·THE·AUTHORS·BE·LIABLE·FOR·ANY·CLAIM,·DAMAGES·OR36 ·25·*·IN·NO·EVENT·SHALL·THE·AUTHORS·BE·LIABLE·FOR·ANY·CLAIM,·DAMAGES·OR
38 ·26·*·OTHER·LIABILITY,·WHETHER·IN·AN·ACTION·OF·CONTRACT,·TORT·OR·OTHERWISE,37 ·26·*·OTHER·LIABILITY,·WHETHER·IN·AN·ACTION·OF·CONTRACT,·TORT·OR·OTHERWISE,
39 ·27·*·ARISING·FROM,·OUT·OF·OR·IN·CONNECTION·WITH·THE·SOFTWARE·OR·THE·USE·OR38 ·27·*·ARISING·FROM,·OUT·OF·OR·IN·CONNECTION·WITH·THE·SOFTWARE·OR·THE·USE·OR
40 ·28·*·OTHER·DEALINGS·IN·THE·SOFTWARE.39 ·28·*·OTHER·DEALINGS·IN·THE·SOFTWARE.
41 ·2940 ·29
42 ***************************************************************************/41 ***************************************************************************/
43 ·30#ifndef·_SILLYPNGImageContext_h_ 
44 ·31#define·_SILLYPNGImageContext_h_42 ·30#ifndef·_SILLY_h_
 43 ·31#define·_SILLY_h_
 44 ·109namespace·SILLY
 45 ·110{
 46 ·111
 47 ·112}
 48 ·113
 49 ·114
 50 ·115
 51 ·116
45 ·32#include·"SILLYBase.h"52 ·117#include·"SILLYBase.h"
 53 ·118#include·"SILLYDataSource.h"
 54 ·119#include·"SILLYFileDataSource.h"
 55 ·120#include·"SILLYMemoryDataSource.h"
 56 ·121#include·"SILLYImageLoader.h"
46 ·33#include·"SILLYImageContext.h"57 ·122#include·"SILLYImageContext.h"
 58 ·123#include·"SILLYImageLoaderManager.h"
47 ·34#include·"SILLYDataSource.h"59 ·124#include·"SILLYImage.h"
 60 ·125
48 ·35#include·<png.h> 
49 ·36//·Start·of·section·namespace·SILLY 
50 ·37namespace·SILLY 
51 ·38{ 
52 ·39 
53 45class·SILLY_EXPORT·PNGImageContext·:·public·ImageContext 
54 ·46{ 
55 ·47public: 
56 ·48·PNGImageContext(DataSource*·data); 
57 ·49·~PNGImageContext(); 
58 ·50 
59 ·51·int·read(png_bytep·data,·png_size_t·length); 
60 ·52 
61 ·53 
62 ·54 
63 ·55private: 
64 ·56·void·setImageSize(); 
65 ·57 
66 ·58·size_t·d_offset; 
67 ·59 
68 ·60·DataSource*·d_data; 
69 ·61 
70 ·62·png_structp·d_png_ptr; 
71 ·63 
72 ·64·png_infop·d_info_ptr; 
73 ·65 
74 ·66·size_t·d_bit_depth; 
75 ·67·size_t·d_num_channels; 
76 ·68 
77 ·69 
78 ·70·friend·class·PNGImageLoader; 
79 ·71}; 
80 ·72 
81 ·73 
82 ·74}·//·End·of·section·namespace·SILLY 
83 ·75 
84 ·76//·Inclue·inline·function·when·needed 
85 ·77#ifdef·SILLY_OPT_INLINE 
86 ·78#include·"SILLYPNGImageContext.icpp" 
87 ·79#endif 
88 ·80 
89 ·81#endif·//·end·of·guard·_SILLYPNGImageContext_h_61 ·126#endif·//·end·of·guard·_SILLY_h_
90 SILLY62 SILLY
91 Simple·Image·Loading·LibrarY·namespace.63 Simple·Image·Loading·LibrarY·namespace.
92 Definition:·SILLYJPGImageContext.cpp:4664 Definition:·SILLYJPGImageContext.cpp:46
93 SILLY::PNGImageContext 
94 Image·Context·for·PNG·Image·Loader. 
95 Definition:·SILLYPNGImageContext.h:46 
96 SILLY::PNGImageLoader 
97 Loader·for·PNG·Image. 
98 Definition:·SILLYPNGImageLoader.h:43 
99 SILLY::DataSource 
100 This·is·an·abstract·class·used·to·provide·data·to·the·loader. 
101 Definition:·SILLYDataSource.h:47 
102 SILLY::ImageContext 
103 Store·the·data·needed·by·an·ImageLoader·object·during·the·parsing·of·an·image. 
104 Definition:·SILLYImageContext.h:44 
  
105 ===============================================================================65 ===============================================================================
106 ·····Generated·by [doxygen]·1.9.466 ·····Generated·by [doxygen]·1.9.4
25.6 KB
./usr/share/doc/libsilly-doc/html/a00098_source.html
    
Offset 1, 15 lines modifiedOffset 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">2 <html·xmlns="http://www.w3.org/1999/xhtml">
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.4"/>6 <meta·name="generator"·content="Doxygen·1.9.4"/>
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/loaders/SILLYPNGImageLoader.h·Source·File</title>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 35, 27 lines modifiedOffset 35, 27 lines modified
35 ··initMenu('',false,false,'search.php','Search');35 ··initMenu('',false,false,'search.php','Search');
36 });36 });
37 /*·@license-end·*/37 /*·@license-end·*/
38 </script>38 </script>
39 <div·id="main-nav"></div>39 <div·id="main-nav"></div>
40 <div·id="nav-path"·class="navpath">40 <div·id="nav-path"·class="navpath">
41 ··<ul>41 ··<ul>
42 <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>42 <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>
43 </div>43 </div>
44 </div><!--·top·-->44 </div><!--·top·-->
45 <div·class="header">45 <div·class="header">
46 ··<div·class="headertitle"><div·class="title">SILLYPNGImageLoader.h</div></div>46 ··<div·class="headertitle"><div·class="title">SILLYMemoryDataSource.h</div></div>
47 </div><!--header-->47 </div><!--header-->
48 <div·class="contents">48 <div·class="contents">
49 <div·class="fragment"><div·class="line"><a·id="l00001"·name="l00001"></a><span·class="lineno">····1</span><span·class="comment">/***********************************************************************</span></div>49 <div·class="fragment"><div·class="line"><a·id="l00001"·name="l00001"></a><span·class="lineno">····1</span><span·class="comment">/***********************************************************************</span></div>
50 <div·class="line"><a·id="l00002"·name="l00002"></a><span·class="lineno">····2</span><span·class="comment">····filename:···SILLYPNGImageLoader.h</span></div>50 <div·class="line"><a·id="l00002"·name="l00002"></a><span·class="lineno">····2</span><span·class="comment">····filename:···SILLYMemoryDataSource.h</span></div>
51 <div·class="line"><a·id="l00003"·name="l00003"></a><span·class="lineno">····3</span><span·class="comment">····created:····11·Jun·2006</span></div>51 <div·class="line"><a·id="l00003"·name="l00003"></a><span·class="lineno">····3</span><span·class="comment">····created:····10·Jun·2006</span></div>
52 <div·class="line"><a·id="l00004"·name="l00004"></a><span·class="lineno">····4</span><span·class="comment">····author:·····Olivier·Delannoy</span></div>52 <div·class="line"><a·id="l00004"·name="l00004"></a><span·class="lineno">····4</span><span·class="comment">····author:·····Olivier·Delannoy·</span></div>
53 <div·class="line"><a·id="l00005"·name="l00005"></a><span·class="lineno">····5</span><span·class="comment"></span>·</div>53 <div·class="line"><a·id="l00005"·name="l00005"></a><span·class="lineno">····5</span><span·class="comment"></span>·</div>
54 <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>54 <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>
55 <div·class="line"><a·id="l00007"·name="l00007"></a><span·class="lineno">····7</span><span·class="comment">*************************************************************************/</span></div>55 <div·class="line"><a·id="l00007"·name="l00007"></a><span·class="lineno">····7</span><span·class="comment">*************************************************************************/</span></div>
56 <div·class="line"><a·id="l00008"·name="l00008"></a><span·class="lineno">····8</span><span·class="comment">/***************************************************************************</span></div>56 <div·class="line"><a·id="l00008"·name="l00008"></a><span·class="lineno">····8</span><span·class="comment">/***************************************************************************</span></div>
57 <div·class="line"><a·id="l00009"·name="l00009"></a><span·class="lineno">····9</span><span·class="comment">·*···Copyright·(C)·2004·-·2006·Paul·D·Turner·&amp;·The·CEGUI·Development·Team</span></div>57 <div·class="line"><a·id="l00009"·name="l00009"></a><span·class="lineno">····9</span><span·class="comment">·*···Copyright·(C)·2004·-·2006·Paul·D·Turner·&amp;·The·CEGUI·Development·Team</span></div>
58 <div·class="line"><a·id="l00010"·name="l00010"></a><span·class="lineno">···10</span><span·class="comment">·*</span></div>58 <div·class="line"><a·id="l00010"·name="l00010"></a><span·class="lineno">···10</span><span·class="comment">·*</span></div>
59 <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>59 <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>
60 <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>60 <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>
61 <div·class="line"><a·id="l00013"·name="l00013"></a><span·class="lineno">···13</span><span·class="comment">·*···&quot;Software&quot;),·to·deal·in·the·Software·without·restriction,·including</span></div>61 <div·class="line"><a·id="l00013"·name="l00013"></a><span·class="lineno">···13</span><span·class="comment">·*···&quot;Software&quot;),·to·deal·in·the·Software·without·restriction,·including</span></div>
Offset 71, 56 lines modifiedOffset 71, 50 lines modified
71 <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>71 <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>
72 <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>72 <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>
73 <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>73 <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>
74 <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>74 <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>
75 <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>75 <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>
76 <div·class="line"><a·id="l00028"·name="l00028"></a><span·class="lineno">···28</span><span·class="comment">·*···OTHER·DEALINGS·IN·THE·SOFTWARE.</span></div>76 <div·class="line"><a·id="l00028"·name="l00028"></a><span·class="lineno">···28</span><span·class="comment">·*···OTHER·DEALINGS·IN·THE·SOFTWARE.</span></div>
77 <div·class="line"><a·id="l00029"·name="l00029"></a><span·class="lineno">···29</span><span·class="comment">·***************************************************************************/</span></div>77 <div·class="line"><a·id="l00029"·name="l00029"></a><span·class="lineno">···29</span><span·class="comment">·***************************************************************************/</span></div>
78 <div·class="line"><a·id="l00030"·name="l00030"></a><span·class="lineno">···30</span><span·class="preprocessor">#ifndef·_SILLYPNGImageLoader_h_·</span></div>78 <div·class="line"><a·id="l00030"·name="l00030"></a><span·class="lineno">···30</span><span·class="preprocessor">#ifndef·_SILLYMemoryDataSource_h_·</span></div>
79 <div·class="line"><a·id="l00031"·name="l00031"></a><span·class="lineno">···31</span><span·class="preprocessor">#define·_SILLYPNGImageLoader_h_</span></div>79 <div·class="line"><a·id="l00031"·name="l00031"></a><span·class="lineno">···31</span><span·class="preprocessor">#define·_SILLYMemoryDataSource_h_</span></div>
80 <div·class="line"><a·id="l00032"·name="l00032"></a><span·class="lineno">···32</span><span·class="preprocessor">#include·&quot;SILLYBase.h&quot;</span>·</div>80 <div·class="line"><a·id="l00032"·name="l00032"></a><span·class="lineno">···32</span><span·class="preprocessor">#include·&quot;SILLYBase.h&quot;</span>·</div>
81 <div·class="line"><a·id="l00033"·name="l00033"></a><span·class="lineno">···33</span><span·class="preprocessor">#include·&quot;SILLYImageLoader.h&quot;</span>·</div> 
82 <div·class="line"><a·id="l00034"·name="l00034"></a><span·class="lineno">···34</span><span·class="preprocessor">#include·&quot;SILLYDataSource.h&quot;</span>·</div>81 <div·class="line"><a·id="l00033"·name="l00033"></a><span·class="lineno">···33</span><span·class="preprocessor">#include·&quot;SILLYDataSource.h&quot;</span>·</div>
83 <div·class="line"><a·id="l00035"·name="l00035"></a><span·class="lineno">···35</span><span·class="comment">//·Start·of·section·namespace·SILLY·</span></div>82 <div·class="line"><a·id="l00034"·name="l00034"></a><span·class="lineno">···34</span><span·class="comment">//·Start·of·section·namespace·SILLY·</span></div>
84 <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>83 <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>
 84 <div·class="line"><a·id="l00036"·name="l00036"></a><span·class="lineno">···36</span>{</div>
85 <div·class="line"><a·id="l00037"·name="l00037"></a><span·class="lineno">···37</span>{</div>85 <div·class="line"><a·id="l00037"·name="l00037"></a><span·class="lineno">···37</span>·</div>
86 <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"·hr[·...·truncated·by·diffoscope;·len:·32,·SHA:·2128c152ce27c8d310d2f1d8920b83cea27c202d1c010999d5cb94fb540edfd1·...·]</div>86 <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="co[·...·truncated·by·diffoscope;·len:·47,·SHA:·35a4a24aabffba0480e997661ce2ab625e3b9e71ec35dce77abc403254fe6509·...·]</div>
87 <div·class="line"><a·id="l00043"·name="l00043"></a><span·class="lineno">···43</span>{</div>87 <div·class="line"><a·id="l00049"·name="l00049"></a><span·class="lineno">···49</span>{</div>
88 <div·class="line"><a·id="l00044"·name="l00044"></a><span·class="lineno">···44</span><span·class="keyword">public</span>:</div>88 <div·class="line"><a·id="l00050"·name="l00050"></a><span·class="lineno">···50</span><span·class="keyword">public</span>:</div>
 89 <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>
89 <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> 
90 <div·class="line"><a·id="l00046"·name="l00046"></a><span·class="lineno">···46</span>····</div> 
91 <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> 
92 <div·class="line"><a·id="l00048"·name="l00048"></a><span·class="lineno">···48</span>····</div> 
93 <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>&amp;·formatSource,·<a·class="code·hl_class"·href="a00969.html">DataSource</a>*·data);</div> 
94 <div·class="line"><a·id="l00050"·name="l00050"></a><span·class="lineno">···50</span>····</div> 
95 <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> 
96 <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> 
97 <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> 
98 <div·class="line"><a·id="l00054"·name="l00054"></a><span·class="lineno">···54</span><span·class="keyword">private</span>:</div> 
99 <div·class="line"><a·id="l00055"·name="l00055"></a><span·class="lineno">···55</span>·</div> 
100 <div·class="line"><a·id="l00056"·name="l00056"></a><span·class="lineno">···56</span>};</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>··</div> 
103 <div·class="line"><a·id="l00059"·name="l00059"></a><span·class="lineno">···59</span>}·<span·class="comment">//·End·of·section·namespace·SILLY·</span></div> 
104 <div·class="line"><a·id="l00060"·name="l00060"></a><span·class="lineno">···60</span>·</div>90 <div·class="line"><a·id="l00064"·name="l00064"></a><span·class="lineno">···64</span>·</div>
105 <div·class="line"><a·id="l00061"·name="l00061"></a><span·class="lineno">···61</span><span·class="comment">//·Inclue·inline·function·when·needed·</span></div> 
106 <div·class="line"><a·id="l00062"·name="l00062"></a><span·class="lineno">···62</span><span·class="preprocessor">#ifdef·SILLY_OPT_INLINE</span></div> 
107 <div·class="line"><a·id="l00063"·name="l00063"></a><span·class="lineno">···63</span><span·class="preprocessor">#include·&quot;SILLYPNGImageLoader.icpp&quot;</span></div> 
108 <div·class="line"><a·id="l00064"·name="l00064"></a><span·class="lineno">···64</span><span·class="preprocessor">#endif·</span></div> 
109 <div·class="line"><a·id="l00065"·name="l00065"></a><span·class="lineno">···65</span>·</div>91 <div·class="line"><a·id="l00065"·name="l00065"></a><span·class="lineno">···65</span>·</div>
 92 <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>
 93 <div·class="line"><a·id="l00067"·name="l00067"></a><span·class="lineno">···67</span>·</div>
 94 <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>
 95 <div·class="line"><a·id="l00069"·name="l00069"></a><span·class="lineno">···69</span><span·class="keyword">private</span>:</div>
 96 <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>
 97 <div·class="line"><a·id="l00071"·name="l00071"></a><span·class="lineno">···71</span>····<span·class="keywordtype">size_t</span>·d_size;··············</div>
 98 <div·class="line"><a·id="l00072"·name="l00072"></a><span·class="lineno">···72</span>};</div>
 99 <div·class="line"><a·id="l00073"·name="l00073"></a><span·class="lineno">···73</span>··</div>
 100 <div·class="line"><a·id="l00074"·name="l00074"></a><span·class="lineno">···74</span>··</div>
 101 <div·class="line"><a·id="l00075"·name="l00075"></a><span·class="lineno">···75</span>}·<span·class="comment">//·End·of·section·namespace·SILLY·</span></div>
 102 <div·class="line"><a·id="l00076"·name="l00076"></a><span·class="lineno">···76</span>·</div>
 103 <div·class="line"><a·id="l00077"·name="l00077"></a><span·class="lineno">···77</span><span·class="comment">//·Inclue·inline·function·when·needed·</span></div>
110 <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>104 <div·class="line"><a·id="l00078"·name="l00078"></a><span·class="lineno">···78</span><span·class="preprocessor">#ifdef·SILLY_OPT_INLINE</span></div>
 105 <div·class="line"><a·id="l00079"·name="l00079"></a><span·class="lineno">···79</span><span·class="preprocessor">#include·&quot;SILLYMemoryDataSource.icpp&quot;</span></div>
 106 <div·class="line"><a·id="l00080"·name="l00080"></a><span·class="lineno">···80</span><span·class="preprocessor">#endif·</span></div>
 107 <div·class="line"><a·id="l00081"·name="l00081"></a><span·class="lineno">···81</span>·</div>
 108 <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>
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="a00020_source.html#l00045">SILLYJPGImageContext.cpp:46</a></div></div>109 <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="a00005_source.html#l00045">SILLYJPGImageContext.cpp:46</a></div></div>
112 <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="a00053_source.html#l00059">SILLYBase.h:60</a></div></div> 
113 <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="a00053_source.html#l00070">SILLYBase.h:71</a></div></div> 
114 <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="a00098_source.html#l00042">SILLYPNGImageLoader.h:43</a></div></div> 
115 <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·&amp;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="a00023_source.html#l00088">SILLYPNGImageLoader.cpp:88</a></div></div> 
116 <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="a00023_source.html#l00154">SILLYPNGImageLoader.cpp:154</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="a00122_source.html#l00046">SILLYDataSource.h:47</a></div></div>110 <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="a00119_source.html#l00046">SILLYDataSource.h:47</a></div></div>
118 <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="a00047_source.html#l00043">SILLYImageContext.h:44</a></div></div> 
119 <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="a00116_source.html#l00046">SILLYI[·...·truncated·by·diffoscope;·len:·15,·SHA:·706137d89e4d0ae7c24fe47a01c4a9eef4f5926635e92e4fb60b19004965b9fa·...·]</a></div></div>111 <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="a00098_source.html#l00048">SILLYMemoryDataSource.h:49</a></div></div>
 112 <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>
 113 <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>
120 </div><!--·fragment·--></div><!--·contents·-->114 </div><!--·fragment·--></div><!--·contents·-->
121 <!--·start·footer·part·-->115 <!--·start·footer·part·-->
122 <hr·class="footer"/><address·class="footer"><small>116 <hr·class="footer"/><address·class="footer"><small>
123 Generated·by&#160;<a·href="https://www.doxygen.org/index.html"><img·class="footer"·src="doxygen.svg"·width="104"·height="31"·alt="doxygen"/></a>·1.9.4117 Generated·by&#160;<a·href="https://www.doxygen.org/index.html"><img·class="footer"·src="doxygen.svg"·width="104"·height="31"·alt="doxygen"/></a>·1.9.4
124 </small></address>118 </small></address>
125 </body>119 </body>
126 </html>120 </html>
4.43 KB
html2text {}
    
Offset 4, 22 lines modifiedOffset 4, 21 lines modified
  
4 Simple·Image·Loading·LibrarY 0.1.04 Simple·Image·Loading·LibrarY 0.1.0
  
5 ····*·build5 ····*·build
6 ····*·reproducible-path6 ····*·reproducible-path
7 ····*·silly-0.1.07 ····*·silly-0.1.0
8 ····*·include8 ····*·include
 9 SILLYMemoryDataSource.h
9 ····*·loaders 
10 SILLYPNGImageLoader.h 
11 ·1/***********************************************************************10 ·1/***********************************************************************
12 ·2·filename:·SILLYPNGImageLoader.h11 ·2·filename:·SILLYMemoryDataSource.h
13 ·3·created:·11·Jun·200612 ·3·created:·10·Jun·2006
14 ·4·author:·Olivier·Delannoy13 ·4·author:·Olivier·Delannoy
15 ·514 ·5
16 ·6·purpose:·Declaration·of·the·PNGImageLoader·class15 ·6·purpose:·SILLYMemoryDataSource·declaration·for·the·SILLY·library
17 ·7*************************************************************************/16 ·7*************************************************************************/
18 ·8/***************************************************************************17 ·8/***************************************************************************
19 ·9·*·Copyright·(C)·2004·-·2006·Paul·D·Turner·&·The·CEGUI·Development·Team18 ·9·*·Copyright·(C)·2004·-·2006·Paul·D·Turner·&·The·CEGUI·Development·Team
20 ·10·*19 ·10·*
21 ·11·*·Permission·is·hereby·granted,·free·of·charge,·to·any·person·obtaining20 ·11·*·Permission·is·hereby·granted,·free·of·charge,·to·any·person·obtaining
22 ·12·*·a·copy·of·this·software·and·associated·documentation·files·(the21 ·12·*·a·copy·of·this·software·and·associated·documentation·files·(the
23 ·13·*·"Software"),·to·deal·in·the·Software·without·restriction,·including22 ·13·*·"Software"),·to·deal·in·the·Software·without·restriction,·including
Offset 36, 74 lines modifiedOffset 35, 56 lines modified
36 ·24·*·MERCHANTABILITY,·FITNESS·FOR·A·PARTICULAR·PURPOSE·AND·NONINFRINGEMENT.35 ·24·*·MERCHANTABILITY,·FITNESS·FOR·A·PARTICULAR·PURPOSE·AND·NONINFRINGEMENT.
37 ·25·*·IN·NO·EVENT·SHALL·THE·AUTHORS·BE·LIABLE·FOR·ANY·CLAIM,·DAMAGES·OR36 ·25·*·IN·NO·EVENT·SHALL·THE·AUTHORS·BE·LIABLE·FOR·ANY·CLAIM,·DAMAGES·OR
38 ·26·*·OTHER·LIABILITY,·WHETHER·IN·AN·ACTION·OF·CONTRACT,·TORT·OR·OTHERWISE,37 ·26·*·OTHER·LIABILITY,·WHETHER·IN·AN·ACTION·OF·CONTRACT,·TORT·OR·OTHERWISE,
39 ·27·*·ARISING·FROM,·OUT·OF·OR·IN·CONNECTION·WITH·THE·SOFTWARE·OR·THE·USE·OR38 ·27·*·ARISING·FROM,·OUT·OF·OR·IN·CONNECTION·WITH·THE·SOFTWARE·OR·THE·USE·OR
40 ·28·*·OTHER·DEALINGS·IN·THE·SOFTWARE.39 ·28·*·OTHER·DEALINGS·IN·THE·SOFTWARE.
41 ·2940 ·29
42 ***************************************************************************/41 ***************************************************************************/
43 ·30#ifndef·_SILLYPNGImageLoader_h_ 
44 ·31#define·_SILLYPNGImageLoader_h_42 ·30#ifndef·_SILLYMemoryDataSource_h_
 43 ·31#define·_SILLYMemoryDataSource_h_
45 ·32#include·"SILLYBase.h"44 ·32#include·"SILLYBase.h"
46 ·33#include·"SILLYImageLoader.h" 
47 ·34#include·"SILLYDataSource.h"45 ·33#include·"SILLYDataSource.h"
48 ·35//·Start·of·section·namespace·SILLY46 ·34//·Start·of·section·namespace·SILLY
49 ·36namespace·SILLY47 ·35namespace·SILLY
 48 ·36{
50 ·37{49 ·37
51 42class·PNGImageLoader·:·public·ImageLoader50 48class·SILLY_EXPORT·MemoryDataSource·:·public·DataSource
52 ·43{51 ·49{
53 ·44public:52 ·50public:
 53 ·63·MemoryDataSource(const·byte*·data,·size_t·size);
 54 ·64
54 ·45·PNGImageLoader(); 
55 ·46 
56 ·47·~PNGImageLoader(); 
57 ·48 
58 ·49·ImageContext*·loadHeader(PixelFormat&·formatSource,·DataSource*·data); 
59 ·50 
60 ·51·bool·loadImageData(PixelOrigin·origin, 
61 ·52·DataSource*·data, 
62 ·53·ImageContext*·context); 
63 ·54private: 
64 ·55 
65 ·56}; 
66 ·57 
67 ·58 
68 ·59}·//·End·of·section·namespace·SILLY 
69 ·60 
70 ·61//·Inclue·inline·function·when·needed 
71 ·62#ifdef·SILLY_OPT_INLINE 
72 ·63#include·"SILLYPNGImageLoader.icpp" 
73 ·64#endif 
74 ·6555 ·65
75 ·66#endif·//·end·of·guard·_SILLYPNGImageLoader_h_56 66·const·byte*·getDataPtr()·const;
 57 ·67
 58 68·size_t·getSize()·const;
 59 ·69private:
 60 ·70·const·byte*·d_bytes;
 61 ·71·size_t·d_size;
 62 ·72};
 63 ·73
 64 ·74
 65 ·75}·//·End·of·section·namespace·SILLY
 66 ·76
 67 ·77//·Inclue·inline·function·when·needed
 68 ·78#ifdef·SILLY_OPT_INLINE
 69 ·79#include·"SILLYMemoryDataSource.icpp"
 70 ·80#endif
 71 ·81
 72 ·82#endif·//·end·of·guard·_SILLYMemoryDataSource_h_
76 SILLY73 SILLY
77 Simple·Image·Loading·LibrarY·namespace.74 Simple·Image·Loading·LibrarY·namespace.
78 Definition:·SILLYJPGImageContext.cpp:4675 Definition:·SILLYJPGImageContext.cpp:46
79 SILLY::PixelFormat 
80 PixelFormat 
81 List·all·pixel·format·supported. 
82 Definition:·SILLYBase.h:60 
83 SILLY::PixelOrigin 
84 PixelOrigin 
85 List·all·pixel·origin·supported. 
86 Definition:·SILLYBase.h:71 
87 SILLY::PNGImageLoader 
88 Loader·for·PNG·Image. 
89 Definition:·SILLYPNGImageLoader.h:43 
90 SILLY::PNGImageLoader::loadHeader 
91 ImageContext·*·loadHeader(PixelFormat·&formatSource,·DataSource·*data) 
92 Parse·the·header·of·the·image·and·fill·the·header·struct. 
93 Definition:·SILLYPNGImageLoader.cpp:88 
94 SILLY::PNGImageLoader::loadImageData 
95 bool·loadImageData(PixelOrigin·origin,·DataSource·*data,·ImageContext·*context) 
96 Parse·the·pixels·data·of·the·image·and·fill·the·header·struct. 
97 Definition:·SILLYPNGImageLoader.cpp:154 
98 SILLY::DataSource76 SILLY::DataSource
99 This·is·an·abstract·class·used·to·provide·data·to·the·loader.77 This·is·an·abstract·class·used·to·provide·data·to·the·loader.
100 Definition:·SILLYDataSource.h:4778 Definition:·SILLYDataSource.h:47
101 SILLY::ImageContext 
102 Store·the·data·needed·by·an·ImageLoader·object·during·the·parsing·of·an·image. 
103 Definition:·SILLYImageContext.h:44 
104 SILLY::ImageLoader 
105 This·is·an·abstract·class·that·define·the·interface·of·all·image·loader. 
106 Definition:·SILLYImageLoader.h:4779 SILLY::MemoryDataSource
 80 Load·an·image·from·a·memory·area.
 81 Definition:·SILLYMemoryDataSource.h:49
 82 SILLY::MemoryDataSource::getDataPtr
 83 const·byte·*·getDataPtr()·const
 84 Get·raw·access·to·the·image·data.
 85 SILLY::MemoryDataSource::getSize
 86 size_t·getSize()·const
 87 Return·the·size·of·the·data.
  
107 ===============================================================================88 ===============================================================================
108 ·····Generated·by [doxygen]·1.9.489 ·····Generated·by [doxygen]·1.9.4
33.2 KB
./usr/share/doc/libsilly-doc/html/a00101_source.html
    
Offset 1, 15 lines modifiedOffset 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">2 <html·xmlns="http://www.w3.org/1999/xhtml">
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.4"/>6 <meta·name="generator"·content="Doxygen·1.9.4"/>
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/loaders/SILLYTGAImageLoader.h·Source·File</title>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 35, 88 lines modifiedOffset 35, 125 lines modified
35 ··initMenu('',false,false,'search.php','Search');35 ··initMenu('',false,false,'search.php','Search');
36 });36 });
37 /*·@license-end·*/37 /*·@license-end·*/
38 </script>38 </script>
39 <div·id="main-nav"></div>39 <div·id="main-nav"></div>
40 <div·id="nav-path"·class="navpath">40 <div·id="nav-path"·class="navpath">
41 ··<ul>41 ··<ul>
42 <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>42 <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>
43 </div>43 </div>
44 </div><!--·top·-->44 </div><!--·top·-->
45 <div·class="header">45 <div·class="header">
46 ··<div·class="headertitle"><div·class="title">SILLYTGAImageLoader.h</div></div>46 ··<div·class="headertitle"><div·class="title">SILLYImageContext.icpp</div></div>
47 </div><!--header-->47 </div><!--header-->
48 <div·class="contents">48 <div·class="contents">
49 <div·class="fragment"><div·class="line"><a·id="l00001"·name="l00001"></a><span·class="lineno">····1</span><span·class="comment">/***********************************************************************</span></div>49 <div·class="fragment"><div·class="line"><a·id="l00001"·name="l00001"></a><span·class="lineno">····1</span>/***********************************************************************</div>
50 <div·class="line"><a·id="l00002"·name="l00002"></a><span·class="lineno">····2</span><span·class="comment">····filename:···SILLYTGAImageLoader.h</span></div>50 <div·class="line"><a·id="l00002"·name="l00002"></a><span·class="lineno">····2</span>····filename:···SILLYImageContext.icpp·</div>
51 <div·class="line"><a·id="l00003"·name="l00003"></a><span·class="lineno">····3</span><span·class="comment">····created:····11·Jun·2006</span></div>51 <div·class="line"><a·id="l00003"·name="l00003"></a><span·class="lineno">····3</span>····created:····10·Jun·2006</div>
52 <div·class="line"><a·id="l00004"·name="l00004"></a><span·class="lineno">····4</span><span·class="comment">····author:·····Olivier·Delannoy</span></div>52 <div·class="line"><a·id="l00004"·name="l00004"></a><span·class="lineno">····4</span>····author:·····Olivier·Delannoy</div>
53 <div·class="line"><a·id="l00005"·name="l00005"></a><span·class="lineno">····5</span><span·class="comment"></span>·</div>53 <div·class="line"><a·id="l00005"·name="l00005"></a><span·class="lineno">····5</span>·</div>
54 <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>54 <div·class="line"><a·id="l00006"·name="l00006"></a><span·class="lineno">····6</span>····purpose:····Inline·definition·for·ImageContext··</div>
55 <div·class="line"><a·id="l00007"·name="l00007"></a><span·class="lineno">····7</span><span·class="comment">*************************************************************************/</span></div>55 <div·class="line"><a·id="l00007"·name="l00007"></a><span·class="lineno">····7</span>*************************************************************************/</div>
56 <div·class="line"><a·id="l00008"·name="l00008"></a><span·class="lineno">····8</span><span·class="comment">/***************************************************************************</span></div>56 <div·class="line"><a·id="l00008"·name="l00008"></a><span·class="lineno">····8</span>/***************************************************************************</div>
57 <div·class="line"><a·id="l00009"·name="l00009"></a><span·class="lineno">····9</span><span·class="comment">·*···Copyright·(C)·2004·-·2006·Paul·D·Turner·&amp;·The·CEGUI·Development·Team</span></div>57 <div·class="line"><a·id="l00009"·name="l00009"></a><span·class="lineno">····9</span>·*···Copyright·(C)·2004·-·2006·Paul·D·Turner·&amp;·The·CEGUI·Development·Team</div>
58 <div·class="line"><a·id="l00010"·name="l00010"></a><span·class="lineno">···10</span><span·class="comment">·*</span></div>58 <div·class="line"><a·id="l00010"·name="l00010"></a><span·class="lineno">···10</span>·*</div>
59 <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>59 <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>
60 <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>60 <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>
61 <div·class="line"><a·id="l00013"·name="l00013"></a><span·class="lineno">···13</span><span·class="comment">·*···&quot;Software&quot;),·to·deal·in·the·Software·without·restriction,·including</span></div>61 <div·class="line"><a·id="l00013"·name="l00013"></a><span·class="lineno">···13</span>·*···&quot;Software&quot;),·to·deal·in·the·Software·without·restriction,·including</div>
62 <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>62 <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>
63 <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>63 <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>
64 <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>64 <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>
65 <div·class="line"><a·id="l00017"·name="l00017"></a><span·class="lineno">···17</span><span·class="comment">·*···the·following·conditions:</span></div>65 <div·class="line"><a·id="l00017"·name="l00017"></a><span·class="lineno">···17</span>·*···the·following·conditions:</div>
66 <div·class="line"><a·id="l00018"·name="l00018"></a><span·class="lineno">···18</span><span·class="comment">·*</span></div>66 <div·class="line"><a·id="l00018"·name="l00018"></a><span·class="lineno">···18</span>·*</div>
67 <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>67 <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>
68 <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>68 <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>
69 <div·class="line"><a·id="l00021"·name="l00021"></a><span·class="lineno">···21</span><span·class="comment">·*</span></div>69 <div·class="line"><a·id="l00021"·name="l00021"></a><span·class="lineno">···21</span>·*</div>
70 <div·class="line"><a·id="l00022"·name="l00022"></a><span·class="lineno">···22</span><span·class="comment">·*···THE·SOFTWARE·IS·PROVIDED·&quot;AS·IS&quot;,·WITHOUT·WARRANTY·OF·ANY·KIND,</span></div>70 <div·class="line"><a·id="l00022"·name="l00022"></a><span·class="lineno">···22</span>·*···THE·SOFTWARE·IS·PROVIDED·&quot;AS·IS&quot;,·WITHOUT·WARRANTY·OF·ANY·KIND,</div>
71 <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>71 <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>
72 <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>72 <div·class="line"><a·id="l00024"·name="l00024"></a><span·class="lineno">···24</span>·*···MERCHANTABILITY,·FITNESS·FOR·A·PARTICULAR·PURPOSE·AND·NONINFRINGEMENT.</div>
73 <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>73 <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>
74 <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>74 <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>
75 <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>75 <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>
76 <div·class="line"><a·id="l00028"·name="l00028"></a><span·class="lineno">···28</span><span·class="comment">·*···OTHER·DEALINGS·IN·THE·SOFTWARE.</span></div>76 <div·class="line"><a·id="l00028"·name="l00028"></a><span·class="lineno">···28</span>·*···OTHER·DEALINGS·IN·THE·SOFTWARE.</div>
77 <div·class="line"><a·id="l00029"·name="l00029"></a><span·class="lineno">···29</span><span·class="comment">·***************************************************************************/</span></div>77 <div·class="line"><a·id="l00029"·name="l00029"></a><span·class="lineno">···29</span>·***************************************************************************/</div>
 78 <div·class="line"><a·id="l00030"·name="l00030"></a><span·class="lineno">···30</span>·</div>
78 <div·class="line"><a·id="l00030"·name="l00030"></a><span·class="lineno">···30</span><span·class="preprocessor">#ifndef·_SILLYTGAImageLoader_h_·</span></div> 
79 <div·class="line"><a·id="l00031"·name="l00031"></a><span·class="lineno">···31</span><span·class="preprocessor">#define·_SILLYTGAImageLoader_h_</span></div> 
80 <div·class="line"><a·id="l00032"·name="l00032"></a><span·class="lineno">···32</span><span·class="preprocessor">#include·&quot;SILLYBase.h&quot;</span>·</div> 
81 <div·class="line"><a·id="l00033"·name="l00033"></a><span·class="lineno">···33</span><span·class="preprocessor">#include·&quot;SILLYImageLoader.h&quot;</span>·</div> 
82 <div·class="line"><a·id="l00034"·name="l00034"></a><span·class="lineno">···34</span><span·class="comment">//·Start·of·section·namespace·SILLY·</span></div>79 <div·class="line"><a·id="l00031"·name="l00031"></a><span·class="lineno">···31</span>//·Start·of·section·namespace·SILLY</div>
83 <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>80 <div·class="line"><a·id="l00032"·name="l00032"></a><span·class="lineno">···32</span>namespace·SILLY</div>
84 <div·class="line"><a·id="l00036"·name="l00036"></a><span·class="lineno">···36</span>{</div>81 <div·class="line"><a·id="l00033"·name="l00033"></a><span·class="lineno">···33</span>{</div>
 82 <div·class="line"><a·id="l00034"·name="l00034"></a><span·class="lineno">···34</span>·</div>
 83 <div·class="line"><a·id="l00035"·name="l00035"></a><span·class="lineno">···35</span>inline·ImageContext::ImageContext(size_t·width,·size_t·height)</div>
 84 <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>
85 <div·class="line"><a·id="l00037"·name="l00037"></a><span·class="lineno">···37</span><span·class="keyword">class·</span>TGAImageContext;</div>85 <div·class="line"><a·id="l00037"·name="l00037"></a><span·class="lineno">···37</span>{</div>
86 <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"·h[·...·truncated·by·diffoscope;·len:·34,·SHA:·e0e1160b7ffb1c43ae6e2b36fafe24368f4533441dbba87ec99e1adc7eeec842·...·]</div>86 <div·class="line"><a·id="l00038"·name="l00038"></a><span·class="lineno">···38</span>}</div>
 87 <div·class="line"><a·id="l00039"·name="l00039"></a><span·class="lineno">···39</span>·</div>
 88 <div·class="line"><a·id="l00040"·name="l00040"></a><span·class="lineno">···40</span>·</div>
 89 <div·class="line"><a·id="l00041"·name="l00041"></a><span·class="lineno">···41</span>inline·ImageContext::~ImageContext()·</div>
 90 <div·class="line"><a·id="l00042"·name="l00042"></a><span·class="lineno">···42</span>{</div>
 91 <div·class="line"><a·id="l00043"·name="l00043"></a><span·class="lineno">···43</span>}·······</div>
87 <div·class="line"><a·id="l00044"·name="l00044"></a><span·class="lineno">···44</span>{</div>92 <div·class="line"><a·id="l00044"·name="l00044"></a><span·class="lineno">···44</span>·</div>
88 <div·class="line"><a·id="l00045"·name="l00045"></a><span·class="lineno">···45</span><span·class="keyword">public</span>:</div>93 <div·class="line"><a·id="l00045"·name="l00045"></a><span·class="lineno">···45</span>·</div>
89 <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> 
90 <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> 
91 <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>&amp;·formatSource,·<a·class="code·hl_class"·href="a00969.html">DataSource</a>*·data);</div> 
92 <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> 
93 <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> 
94 <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>94 <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>
 95 <div·class="line"><a·id="l00047"·name="l00047"></a><span·class="lineno">···47</span>{</div>
 96 <div·class="line"><a·id="l00048"·name="l00048"></a><span·class="lineno">···48</span>····d_pixels·=·pixels;</div>
 97 <div·class="line"><a·id="l00049"·name="l00049"></a><span·class="lineno">···49</span>····d_length·=·length;</div>
 98 <div·class="line"><a·id="l00050"·name="l00050"></a><span·class="lineno">···50</span>····d_currentOffset·=·0;</div>
 99 <div·class="line"><a·id="l00051"·name="l00051"></a><span·class="lineno">···51</span>····d_format·=·format;</div>
95 <div·class="line"><a·id="l00052"·name="l00052"></a><span·class="lineno">···52</span><span·class="keyword">private</span>:</div>100 <div·class="line"><a·id="l00052"·name="l00052"></a><span·class="lineno">···52</span>}</div>
96 <div·class="line"><a·id="l00053"·name="l00053"></a><span·class="lineno">···53</span>·</div>101 <div·class="line"><a·id="l00053"·name="l00053"></a><span·class="lineno">···53</span>·</div>
97 <div·class="line"><a·id="l00054"·name="l00054"></a><span·class="lineno">···54</span>};</div>102 <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>
98 <div·class="line"><a·id="l00055"·name="l00055"></a><span·class="lineno">···55</span>·</div>103 <div·class="line"><a·id="l00055"·name="l00055"></a><span·class="lineno">···55</span>{</div>
99 <div·class="line"><a·id="l00056"·name="l00056"></a><span·class="lineno">···56</span>}·<span·class="comment">//·End·of·section·namespace·SILLY·</span></div>104 <div·class="line"><a·id="l00056"·name="l00056"></a><span·class="lineno">···56</span>····//assert(d_currentOffset·&lt;·d_length·&amp;&amp;·&quot;ASSERT:·try·to·set·a·pixel·outside·of·the·image&quot;);</div>
 105 <div·class="line"><a·id="l00057"·name="l00057"></a><span·class="lineno">···57</span>····switch(d_format)</div>
100 <div·class="line"><a·id="l00057"·name="l00057"></a><span·class="lineno">···57</span>·</div>106 <div·class="line"><a·id="l00058"·name="l00058"></a><span·class="lineno">···58</span>····{</div>
101 <div·class="line"><a·id="l00058"·name="l00058"></a><span·class="lineno">···58</span><span·class="comment">//·Inclue·inline·function·when·needed·</span></div> 
102 <div·class="line"><a·id="l00059"·name="l00059"></a><span·class="lineno">···59</span><span·class="preprocessor">#ifdef·SILLY_OPT_INLINE</span></div>107 <div·class="line"><a·id="l00059"·name="l00059"></a><span·class="lineno">···59</span>····case·PF_A1B5G5R5:</div>
103 <div·class="line"><a·id="l00060"·name="l00060"></a><span·class="lineno">···60</span><span·class="preprocessor">#include·&quot;SILLYTGAImageLoader.icpp&quot;</span></div>108 <div·class="line"><a·id="l00060"·name="l00060"></a><span·class="lineno">···60</span>········//·The·hard·part·</div>
 109 <div·class="line"><a·id="l00061"·name="l00061"></a><span·class="lineno">···61</span>········assert(0·&amp;&amp;·&quot;ASSERT:·Not·yet·implemented&quot;);</div>
 110 <div·class="line"><a·id="l00062"·name="l00062"></a><span·class="lineno">···62</span>········break;</div>
104 <div·class="line"><a·id="l00061"·name="l00061"></a><span·class="lineno">···61</span><span·class="preprocessor">#endif·</span></div>111 <div·class="line"><a·id="l00063"·name="l00063"></a><span·class="lineno">···63</span>····case·PF_RGB:</div>
 112 <div·class="line"><a·id="l00064"·name="l00064"></a><span·class="lineno">···64</span>········//·Ignore·alpha·channel·</div>
 113 <div·class="line"><a·id="l00065"·name="l00065"></a><span·class="lineno">···65</span>········d_pixels[d_currentOffset++]·=·red;</div>
 114 <div·class="line"><a·id="l00066"·name="l00066"></a><span·class="lineno">···66</span>········d_pixels[d_currentOffset++]·=·green;</div>
 115 <div·class="line"><a·id="l00067"·name="l00067"></a><span·class="lineno">···67</span>········d_pixels[d_currentOffset++]·=·bleu;</div>
 116 <div·class="line"><a·id="l00068"·name="l00068"></a><span·class="lineno">···68</span>········break;</div>
105 <div·class="line"><a·id="l00062"·name="l00062"></a><span·class="lineno">···62</span>·</div>117 <div·class="line"><a·id="l00069"·name="l00069"></a><span·class="lineno">···69</span>·</div>
106 <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> 
107 <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="a00020_source.html#l00045">SILLYJPGImageContext.cpp:46</a></div></div> 
108 <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="a00053_source.html#l00059">SILLYBase.h:60</a></div></div> 
109 <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="a00053_source.html#l00070">SILLYBase.h:71</a></div></div> 
110 <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="a00101_source.html#l00043">SILLYTGAImageLoader.h:44</a></div></div> 
111 <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·&amp;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="a00011_source.html#l00074">SILLYTGAImageLoader.cpp:74</a></div></div> 
112 <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="a00011_source.html#l00134">SILLYTGAImageLoader.cpp:134</a></div></div> 
113 <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="a00122_source.html#l00046">SILLYDataSource.h:47</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="a00047_source.html#l00043">SILLYImageContext.h:44</a></div></div> 
115 <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="a00116_source.html#[·...·truncated·by·diffoscope;·len:·39,·SHA:·cf7cab10774dac08248967917ec3cbceba36648fd5392e892f2d5e2f771abeb0·...·]</div>118 <div·class="line"><a·id="l00070"·name="l00070"></a><span·class="lineno">···70</span>····case·PF_RGBA:····</div>
 119 <div·class="line"><a·id="l00071"·name="l00071"></a><span·class="lineno">···71</span>········d_pixels[d_currentOffset++]·=·red;</div>
 120 <div·class="line"><a·id="l00072"·name="l00072"></a><span·class="lineno">···72</span>········d_pixels[d_currentOffset++]·=·green;</div>
 121 <div·class="line"><a·id="l00073"·name="l00073"></a><span·class="lineno">···73</span>········d_pixels[d_currentOffset++]·=·bleu;</div>
 122 <div·class="line"><a·id="l00074"·name="l00074"></a><span·class="lineno">···74</span>········d_pixels[d_currentOffset++]·=·alpha;</div>
 123 <div·class="line"><a·id="l00075"·name="l00075"></a><span·class="lineno">···75</span>········break;···</div>
 124 <div·class="line"><a·id="l00076"·name="l00076"></a><span·class="lineno">···76</span>····</div>
 125 <div·class="line"><a·id="l00077"·name="l00077"></a><span·class="lineno">···77</span>····}</div>
 126 <div·class="line"><a·id="l00078"·name="l00078"></a><span·class="lineno">···78</span>}</div>
Max diff block lines reached; 271/28627 bytes (0.95%) of diff not shown.
5.17 KB
html2text {}
    
Offset 4, 22 lines modifiedOffset 4, 21 lines modified
  
4 Simple·Image·Loading·LibrarY 0.1.04 Simple·Image·Loading·LibrarY 0.1.0
  
5 ····*·build5 ····*·build
6 ····*·reproducible-path6 ····*·reproducible-path
7 ····*·silly-0.1.07 ····*·silly-0.1.0
8 ····*·include8 ····*·include
 9 SILLYImageContext.icpp
9 ····*·loaders 
10 SILLYTGAImageLoader.h 
11 ·1/***********************************************************************10 ·1/***********************************************************************
12 ·2·filename:·SILLYTGAImageLoader.h11 ·2·filename:·SILLYImageContext.icpp
13 ·3·created:·11·Jun·200612 ·3·created:·10·Jun·2006
14 ·4·author:·Olivier·Delannoy13 ·4·author:·Olivier·Delannoy
15 ·514 ·5
16 ·6·purpose:·Declaration·of·the·TGAImageLoader·class15 ·6·purpose:·Inline·definition·for·ImageContext
17 ·7*************************************************************************/16 ·7*************************************************************************/
18 ·8/***************************************************************************17 ·8/***************************************************************************
19 ·9·*·Copyright·(C)·2004·-·2006·Paul·D·Turner·&·The·CEGUI·Development·Team18 ·9·*·Copyright·(C)·2004·-·2006·Paul·D·Turner·&·The·CEGUI·Development·Team
20 ·10·*19 ·10·*
21 ·11·*·Permission·is·hereby·granted,·free·of·charge,·to·any·person·obtaining20 ·11·*·Permission·is·hereby·granted,·free·of·charge,·to·any·person·obtaining
22 ·12·*·a·copy·of·this·software·and·associated·documentation·files·(the21 ·12·*·a·copy·of·this·software·and·associated·documentation·files·(the
23 ·13·*·"Software"),·to·deal·in·the·Software·without·restriction,·including22 ·13·*·"Software"),·to·deal·in·the·Software·without·restriction,·including
Offset 36, 70 lines modifiedOffset 35, 89 lines modified
36 ·24·*·MERCHANTABILITY,·FITNESS·FOR·A·PARTICULAR·PURPOSE·AND·NONINFRINGEMENT.35 ·24·*·MERCHANTABILITY,·FITNESS·FOR·A·PARTICULAR·PURPOSE·AND·NONINFRINGEMENT.
37 ·25·*·IN·NO·EVENT·SHALL·THE·AUTHORS·BE·LIABLE·FOR·ANY·CLAIM,·DAMAGES·OR36 ·25·*·IN·NO·EVENT·SHALL·THE·AUTHORS·BE·LIABLE·FOR·ANY·CLAIM,·DAMAGES·OR
38 ·26·*·OTHER·LIABILITY,·WHETHER·IN·AN·ACTION·OF·CONTRACT,·TORT·OR·OTHERWISE,37 ·26·*·OTHER·LIABILITY,·WHETHER·IN·AN·ACTION·OF·CONTRACT,·TORT·OR·OTHERWISE,
39 ·27·*·ARISING·FROM,·OUT·OF·OR·IN·CONNECTION·WITH·THE·SOFTWARE·OR·THE·USE·OR38 ·27·*·ARISING·FROM,·OUT·OF·OR·IN·CONNECTION·WITH·THE·SOFTWARE·OR·THE·USE·OR
40 ·28·*·OTHER·DEALINGS·IN·THE·SOFTWARE.39 ·28·*·OTHER·DEALINGS·IN·THE·SOFTWARE.
41 ·2940 ·29
42 ***************************************************************************/41 ***************************************************************************/
 42 ·30
43 ·30#ifndef·_SILLYTGAImageLoader_h_ 
44 ·31#define·_SILLYTGAImageLoader_h_ 
45 ·32#include·"SILLYBase.h" 
46 ·33#include·"SILLYImageLoader.h" 
47 ·34//·Start·of·section·namespace·SILLY43 ·31//·Start·of·section·namespace·SILLY
48 ·35namespace·SILLY44 ·32namespace·SILLY
49 ·36{45 ·33{
50 ·37class·TGAImageContext; 
51 43class·TGAImageLoader·:·public·ImageLoader46 ·34
 47 ·35inline·ImageContext::ImageContext(size_t·width,·size_t·height)
 48 ·36·:·d_pixels(0),·d_length(0),·d_width(width),·d_height(height),
 49 d_currentOffset(0),·d_format(PF_RGBA)
 50 ·37{
 51 ·38}
 52 ·39
 53 ·40
 54 ·41inline·ImageContext::~ImageContext()
 55 ·42{
 56 ·43}
52 ·44{57 ·44
53 ·45public: 
54 ·46·TGAImageLoader(); 
55 ·47·~TGAImageLoader(); 
56 ·48·ImageContext*·loadHeader(PixelFormat&·formatSource,·DataSource*·data); 
57 ·49·bool·loadImageData(PixelOrigin·origin, 
58 ·50·DataSource*·data, 
59 ·51·ImageContext*·context); 
60 ·52private:58 ·45
 59 ·46inline·void·ImageContext::setDestination(byte*·pixels,·size_t·length,
 60 PixelFormat·format)
 61 ·47{
 62 ·48·d_pixels·=·pixels;
 63 ·49·d_length·=·length;
 64 ·50·d_currentOffset·=·0;
 65 ·51·d_format·=·format;
 66 ·52}
61 ·5367 ·53
62 ·54};68 ·54inline·void·ImageContext::setNextPixel(byte·red,·byte·green,·byte·bleu,·byte
 69 alpha)
63 ·5570 ·55{
 71 ·56·//assert(d_currentOffset·<·d_length·&&·"ASSERT:·try·to·set·a·pixel·outside
 72 of·the·image");
 73 ·57·switch(d_format)
 74 ·58·{
 75 ·59·case·PF_A1B5G5R5:
 76 ·60·//·The·hard·part
 77 ·61·assert(0·&&·"ASSERT:·Not·yet·implemented");
 78 ·62·break;
 79 ·63·case·PF_RGB:
 80 ·64·//·Ignore·alpha·channel
 81 ·65·d_pixels[d_currentOffset++]·=·red;
 82 ·66·d_pixels[d_currentOffset++]·=·green;
 83 ·67·d_pixels[d_currentOffset++]·=·bleu;
 84 ·68·break;
 85 ·69
 86 ·70·case·PF_RGBA:
 87 ·71·d_pixels[d_currentOffset++]·=·red;
 88 ·72·d_pixels[d_currentOffset++]·=·green;
 89 ·73·d_pixels[d_currentOffset++]·=·bleu;
 90 ·74·d_pixels[d_currentOffset++]·=·alpha;
 91 ·75·break;
 92 ·76
 93 ·77·}
 94 ·78}
 95 ·79inline·size_t·ImageContext::getWidth()·const
 96 ·80{
 97 ·81·return·d_width;
 98 ·82}
 99 ·83
 100 ·84inline·void·ImageContext::setWidth(size_t·width)
 101 ·85{
 102 ·86·d_width·=·width;
 103 ·87}
 104 ·88
 105 ·89inline·size_t·ImageContext::getHeight()·const
 106 ·90{
 107 ·91·return·d_height;
 108 ·92}
 109 ·93
 110 ·94inline·void·ImageContext::setHeight(size_t·height)
 111 ·95{
 112 ·96·d_height·=·height;
 113 ·97}
 114 ·98inline·PixelFormat·ImageContext::getPixelFormat()·const
 115 ·99{
 116 ·100·return·d_format;
 117 ·101}
 118 ·102
64 ·56}·//·End·of·section·namespace·SILLY119 ·103}·//·End·of·section·namespace·SILLY
 120 ·104
65 ·57 
66 ·58//·Inclue·inline·function·when·needed 
67 ·59#ifdef·SILLY_OPT_INLINE 
68 ·60#include·"SILLYTGAImageLoader.icpp" 
69 ·61#endif 
Max diff block lines reached; 116/5265 bytes (2.20%) of diff not shown.
22.6 KB
./usr/share/doc/libsilly-doc/html/a00104_source.html
    
Offset 1, 15 lines modifiedOffset 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">2 <html·xmlns="http://www.w3.org/1999/xhtml">
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.4"/>6 <meta·name="generator"·content="Doxygen·1.9.4"/>
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/loaders/SILLYPNGImageLoader.icpp·Source·File</title>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 35, 57 lines modifiedOffset 35, 88 lines modified
35 ··initMenu('',false,false,'search.php','Search');35 ··initMenu('',false,false,'search.php','Search');
36 });36 });
37 /*·@license-end·*/37 /*·@license-end·*/
38 </script>38 </script>
39 <div·id="main-nav"></div>39 <div·id="main-nav"></div>
40 <div·id="nav-path"·class="navpath">40 <div·id="nav-path"·class="navpath">
41 ··<ul>41 ··<ul>
42 <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>42 <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>
43 </div>43 </div>
44 </div><!--·top·-->44 </div><!--·top·-->
45 <div·class="header">45 <div·class="header">
46 ··<div·class="headertitle"><div·class="title">SILLYPNGImageLoader.icpp</div></div>46 ··<div·class="headertitle"><div·class="title">SILLYFileDataSource.h</div></div>
47 </div><!--header-->47 </div><!--header-->
48 <div·class="contents">48 <div·class="contents">
49 <div·class="fragment"><div·class="line"><a·id="l00001"·name="l00001"></a><span·class="lineno">····1</span>/***********************************************************************</div>49 <div·class="fragment"><div·class="line"><a·id="l00001"·name="l00001"></a><span·class="lineno">····1</span><span·class="comment">/***********************************************************************</span></div>
50 <div·class="line"><a·id="l00002"·name="l00002"></a><span·class="lineno">····2</span>····filename:···SILLYPNGImageLoader.icpp·</div>50 <div·class="line"><a·id="l00002"·name="l00002"></a><span·class="lineno">····2</span><span·class="comment">····filename:···SILLYFileDataSource.h</span></div>
51 <div·class="line"><a·id="l00003"·name="l00003"></a><span·class="lineno">····3</span>····created:····11·Jun·2006</div>51 <div·class="line"><a·id="l00003"·name="l00003"></a><span·class="lineno">····3</span><span·class="comment">····created:····20·Jul·2006</span></div>
52 <div·class="line"><a·id="l00004"·name="l00004"></a><span·class="lineno">····4</span>····author:·····Olivier·Delannoy</div>52 <div·class="line"><a·id="l00004"·name="l00004"></a><span·class="lineno">····4</span><span·class="comment">····author:·····Olivier·Delannoy</span></div>
53 <div·class="line"><a·id="l00005"·name="l00005"></a><span·class="lineno">····5</span>·</div>53 <div·class="line"><a·id="l00005"·name="l00005"></a><span·class="lineno">····5</span><span·class="comment"></span>·</div>
54 <div·class="line"><a·id="l00006"·name="l00006"></a><span·class="lineno">····6</span>····purpose:····Inline·definition·for·PNGImageLoader··</div>54 <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>
55 <div·class="line"><a·id="l00007"·name="l00007"></a><span·class="lineno">····7</span>*************************************************************************/</div>55 <div·class="line"><a·id="l00007"·name="l00007"></a><span·class="lineno">····7</span><span·class="comment">*************************************************************************/</span></div>
56 <div·class="line"><a·id="l00008"·name="l00008"></a><span·class="lineno">····8</span>/***************************************************************************</div>56 <div·class="line"><a·id="l00008"·name="l00008"></a><span·class="lineno">····8</span><span·class="comment">/***************************************************************************</span></div>
57 <div·class="line"><a·id="l00009"·name="l00009"></a><span·class="lineno">····9</span>·*···Copyright·(C)·2004·-·2006·Paul·D·Turner·&amp;·The·CEGUI·Development·Team</div>57 <div·class="line"><a·id="l00009"·name="l00009"></a><span·class="lineno">····9</span><span·class="comment">·*···Copyright·(C)·2004·-·2006·Paul·D·Turner·&amp;·The·CEGUI·Development·Team</span></div>
58 <div·class="line"><a·id="l00010"·name="l00010"></a><span·class="lineno">···10</span>·*</div>58 <div·class="line"><a·id="l00010"·name="l00010"></a><span·class="lineno">···10</span><span·class="comment">·*</span></div>
59 <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>59 <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>
60 <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>60 <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>
61 <div·class="line"><a·id="l00013"·name="l00013"></a><span·class="lineno">···13</span>·*···&quot;Software&quot;),·to·deal·in·the·Software·without·restriction,·including</div>61 <div·class="line"><a·id="l00013"·name="l00013"></a><span·class="lineno">···13</span><span·class="comment">·*···&quot;Software&quot;),·to·deal·in·the·Software·without·restriction,·including</span></div>
62 <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>62 <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>
63 <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>63 <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>
64 <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>64 <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>
65 <div·class="line"><a·id="l00017"·name="l00017"></a><span·class="lineno">···17</span>·*···the·following·conditions:</div>65 <div·class="line"><a·id="l00017"·name="l00017"></a><span·class="lineno">···17</span><span·class="comment">·*···the·following·conditions:</span></div>
66 <div·class="line"><a·id="l00018"·name="l00018"></a><span·class="lineno">···18</span>·*</div>66 <div·class="line"><a·id="l00018"·name="l00018"></a><span·class="lineno">···18</span><span·class="comment">·*</span></div>
67 <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>67 <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>
68 <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>68 <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>
69 <div·class="line"><a·id="l00021"·name="l00021"></a><span·class="lineno">···21</span>·*</div>69 <div·class="line"><a·id="l00021"·name="l00021"></a><span·class="lineno">···21</span><span·class="comment">·*</span></div>
70 <div·class="line"><a·id="l00022"·name="l00022"></a><span·class="lineno">···22</span>·*···THE·SOFTWARE·IS·PROVIDED·&quot;AS·IS&quot;,·WITHOUT·WARRANTY·OF·ANY·KIND,</div>70 <div·class="line"><a·id="l00022"·name="l00022"></a><span·class="lineno">···22</span><span·class="comment">·*···THE·SOFTWARE·IS·PROVIDED·&quot;AS·IS&quot;,·WITHOUT·WARRANTY·OF·ANY·KIND,</span></div>
71 <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>71 <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>
72 <div·class="line"><a·id="l00024"·name="l00024"></a><span·class="lineno">···24</span>·*···MERCHANTABILITY,·FITNESS·FOR·A·PARTICULAR·PURPOSE·AND·NONINFRINGEMENT.</div>72 <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>
73 <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>73 <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>
74 <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>74 <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>
75 <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>75 <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>
76 <div·class="line"><a·id="l00028"·name="l00028"></a><span·class="lineno">···28</span>·*···OTHER·DEALINGS·IN·THE·SOFTWARE.</div>76 <div·class="line"><a·id="l00028"·name="l00028"></a><span·class="lineno">···28</span><span·class="comment">·*···OTHER·DEALINGS·IN·THE·SOFTWARE.</span></div>
77 <div·class="line"><a·id="l00029"·name="l00029"></a><span·class="lineno">···29</span>·***************************************************************************/</div>77 <div·class="line"><a·id="l00029"·name="l00029"></a><span·class="lineno">···29</span><span·class="comment">·***************************************************************************/</span></div>
78 <div·class="line"><a·id="l00030"·name="l00030"></a><span·class="lineno">···30</span>·</div>78 <div·class="line"><a·id="l00030"·name="l00030"></a><span·class="lineno">···30</span><span·class="preprocessor">#ifndef·_SILLYFileDataSource_h_·</span></div>
 79 <div·class="line"><a·id="l00031"·name="l00031"></a><span·class="lineno">···31</span><span·class="preprocessor">#define·_SILLYFileDataSource_h_</span></div>
 80 <div·class="line"><a·id="l00032"·name="l00032"></a><span·class="lineno">···32</span><span·class="preprocessor">#include·&quot;SILLYBase.h&quot;</span>·</div>
 81 <div·class="line"><a·id="l00033"·name="l00033"></a><span·class="lineno">···33</span><span·class="preprocessor">#include·&quot;SILLYDataSource.h&quot;</span>·</div>
79 <div·class="line"><a·id="l00031"·name="l00031"></a><span·class="lineno">···31</span>//·Start·of·section·namespace·SILLY</div>82 <div·class="line"><a·id="l00034"·name="l00034"></a><span·class="lineno">···34</span><span·class="comment">//·Start·of·section·namespace·SILLY·</span></div>
 83 <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>
80 <div·class="line"><a·id="l00032"·name="l00032"></a><span·class="lineno">···32</span>namespace·SILLY</div> 
81 <div·class="line"><a·id="l00033"·name="l00033"></a><span·class="lineno">···33</span>{</div> 
82 <div·class="line"><a·id="l00034"·name="l00034"></a><span·class="lineno">···34</span>····</div> 
83 <div·class="line"><a·id="l00035"·name="l00035"></a><span·class="lineno">···35</span>}·//·End·of·section·namespace·SILLY</div> 
84 <div·class="line"><a·id="l00036"·name="l00036"></a><span·class="lineno">···36</span>·</div>84 <div·class="line"><a·id="l00036"·name="l00036"></a><span·class="lineno">···36</span>{</div>
 85 <div·class="line"><a·id="l00037"·name="l00037"></a><span·class="lineno">···37</span>·</div>
 86 <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>
 87 <div·class="line"><a·id="l00049"·name="l00049"></a><span·class="lineno">···49</span>{</div>
 88 <div·class="line"><a·id="l00050"·name="l00050"></a><span·class="lineno">···50</span><span·class="keyword">public</span>:</div>
 89 <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>
 90 <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>
 91 <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>
 92 <div·class="line"><a·id="l00074"·name="l00074"></a><span·class="lineno">···74</span>·</div>
 93 <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>
 94 <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>
 95 <div·class="line"><a·id="l00077"·name="l00077"></a><span·class="lineno">···77</span><span·class="keyword">private</span>:</div>
 96 <div·class="line"><a·id="l00078"·name="l00078"></a><span·class="lineno">···78</span>····<span·class="keywordtype">bool</span>·d_error;··</div>
 97 <div·class="line"><a·id="l00079"·name="l00079"></a><span·class="lineno">···79</span>····<span·class="keywordtype">byte</span>*·d_bytes;·</div>
 98 <div·class="line"><a·id="l00080"·name="l00080"></a><span·class="lineno">···80</span>····<span·class="keywordtype">size_t</span>·d_size;·</div>
 99 <div·class="line"><a·id="l00081"·name="l00081"></a><span·class="lineno">···81</span>};</div>
 100 <div·class="line"><a·id="l00082"·name="l00082"></a><span·class="lineno">···82</span>··</div>
 101 <div·class="line"><a·id="l00083"·name="l00083"></a><span·class="lineno">···83</span>··</div>
 102 <div·class="line"><a·id="l00084"·name="l00084"></a><span·class="lineno">···84</span>}·<span·class="comment">//·End·of·section·namespace·SILLY·</span></div>
 103 <div·class="line"><a·id="l00085"·name="l00085"></a><span·class="lineno">···85</span>·</div>
 104 <div·class="line"><a·id="l00086"·name="l00086"></a><span·class="lineno">···86</span><span·class="comment">//·Inclue·inline·function·when·needed·</span></div>
 105 <div·class="line"><a·id="l00087"·name="l00087"></a><span·class="lineno">···87</span><span·class="preprocessor">#ifdef·SILLY_OPT_INLINE</span></div>
 106 <div·class="line"><a·id="l00088"·name="l00088"></a><span·class="lineno">···88</span><span·class="preprocessor">#include·&quot;SILLYFileDataSource.icpp&quot;</span></div>
 107 <div·class="line"><a·id="l00089"·name="l00089"></a><span·class="lineno">···89</span><span·class="preprocessor">#endif·</span></div>
 108 <div·class="line"><a·id="l00090"·name="l00090"></a><span·class="lineno">···90</span>·</div>
 109 <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>
 110 <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="a00005_source.html#l00045">SILLYJPGImageContext.cpp:46</a></div></div>
 111 <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="a00119_source.html#l00046">SILLYDataSource.h:47</a></div></div>
 112 <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="a00104_source.html#l00048">SILLYFileDataSource.h:49</a></div></div>
 113 <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>
 114 <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>
 115 <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>
85 </div><!--·fragment·--></div><!--·contents·-->116 </div><!--·fragment·--></div><!--·contents·-->
86 <!--·start·footer·part·-->117 <!--·start·footer·part·-->
87 <hr·class="footer"/><address·class="footer"><small>118 <hr·class="footer"/><address·class="footer"><small>
88 Generated·by&#160;<a·href="https://www.doxygen.org/index.html"><img·class="footer"·src="doxygen.svg"·width="104"·height="31"·alt="doxygen"/></a>·1.9.4119 Generated·by&#160;<a·href="https://www.doxygen.org/index.html"><img·class="footer"·src="doxygen.svg"·width="104"·height="31"·alt="doxygen"/></a>·1.9.4
89 </small></address>120 </small></address>
90 </body>121 </body>
91 </html>122 </html>
3.0 KB
html2text {}
    
Offset 4, 22 lines modifiedOffset 4, 21 lines modified
  
4 Simple·Image·Loading·LibrarY 0.1.04 Simple·Image·Loading·LibrarY 0.1.0
  
5 ····*·build5 ····*·build
6 ····*·reproducible-path6 ····*·reproducible-path
7 ····*·silly-0.1.07 ····*·silly-0.1.0
8 ····*·include8 ····*·include
 9 SILLYFileDataSource.h
9 ····*·loaders 
10 SILLYPNGImageLoader.icpp 
11 ·1/***********************************************************************10 ·1/***********************************************************************
12 ·2·filename:·SILLYPNGImageLoader.icpp11 ·2·filename:·SILLYFileDataSource.h
13 ·3·created:·11·Jun·200612 ·3·created:·20·Jul·2006
14 ·4·author:·Olivier·Delannoy13 ·4·author:·Olivier·Delannoy
15 ·514 ·5
16 ·6·purpose:·Inline·definition·for·PNGImageLoader15 ·6·purpose:·Provide·file·based·image·loading
17 ·7*************************************************************************/16 ·7*************************************************************************/
18 ·8/***************************************************************************17 ·8/***************************************************************************
19 ·9·*·Copyright·(C)·2004·-·2006·Paul·D·Turner·&·The·CEGUI·Development·Team18 ·9·*·Copyright·(C)·2004·-·2006·Paul·D·Turner·&·The·CEGUI·Development·Team
20 ·10·*19 ·10·*
21 ·11·*·Permission·is·hereby·granted,·free·of·charge,·to·any·person·obtaining20 ·11·*·Permission·is·hereby·granted,·free·of·charge,·to·any·person·obtaining
22 ·12·*·a·copy·of·this·software·and·associated·documentation·files·(the21 ·12·*·a·copy·of·this·software·and·associated·documentation·files·(the
23 ·13·*·"Software"),·to·deal·in·the·Software·without·restriction,·including22 ·13·*·"Software"),·to·deal·in·the·Software·without·restriction,·including
Offset 36, 17 lines modifiedOffset 35, 60 lines modified
36 ·24·*·MERCHANTABILITY,·FITNESS·FOR·A·PARTICULAR·PURPOSE·AND·NONINFRINGEMENT.35 ·24·*·MERCHANTABILITY,·FITNESS·FOR·A·PARTICULAR·PURPOSE·AND·NONINFRINGEMENT.
37 ·25·*·IN·NO·EVENT·SHALL·THE·AUTHORS·BE·LIABLE·FOR·ANY·CLAIM,·DAMAGES·OR36 ·25·*·IN·NO·EVENT·SHALL·THE·AUTHORS·BE·LIABLE·FOR·ANY·CLAIM,·DAMAGES·OR
38 ·26·*·OTHER·LIABILITY,·WHETHER·IN·AN·ACTION·OF·CONTRACT,·TORT·OR·OTHERWISE,37 ·26·*·OTHER·LIABILITY,·WHETHER·IN·AN·ACTION·OF·CONTRACT,·TORT·OR·OTHERWISE,
39 ·27·*·ARISING·FROM,·OUT·OF·OR·IN·CONNECTION·WITH·THE·SOFTWARE·OR·THE·USE·OR38 ·27·*·ARISING·FROM,·OUT·OF·OR·IN·CONNECTION·WITH·THE·SOFTWARE·OR·THE·USE·OR
40 ·28·*·OTHER·DEALINGS·IN·THE·SOFTWARE.39 ·28·*·OTHER·DEALINGS·IN·THE·SOFTWARE.
41 ·2940 ·29
42 ***************************************************************************/41 ***************************************************************************/
43 ·3042 ·30#ifndef·_SILLYFileDataSource_h_
 43 ·31#define·_SILLYFileDataSource_h_
 44 ·32#include·"SILLYBase.h"
 45 ·33#include·"SILLYDataSource.h"
44 ·31//·Start·of·section·namespace·SILLY46 ·34//·Start·of·section·namespace·SILLY
45 ·32namespace·SILLY47 ·35namespace·SILLY
46 ·33{48 ·36{
47 ·3449 ·37
 50 48class·SILLY_EXPORT·FileDataSource·:·public·DataSource
 51 ·49{
 52 ·50public:
 53 ·60·FileDataSource(const·char*·filename);
 54 ·64·~FileDataSource();
 55 73·bool·isValid()·const;
 56 ·74
 57 75·const·byte*·getDataPtr()·const;
 58 76·size_t·getSize()·const;
 59 ·77private:
 60 ·78·bool·d_error;
 61 ·79·byte*·d_bytes;
 62 ·80·size_t·d_size;
 63 ·81};
 64 ·82
 65 ·83
48 ·35}·//·End·of·section·namespace·SILLY66 ·84}·//·End·of·section·namespace·SILLY
49 ·3667 ·85
 68 ·86//·Inclue·inline·function·when·needed
 69 ·87#ifdef·SILLY_OPT_INLINE
 70 ·88#include·"SILLYFileDataSource.icpp"
 71 ·89#endif
 72 ·90
 73 ·91#endif·//·end·of·guard·_SILLYFileDataSource_h_
 74 SILLY
 75 Simple·Image·Loading·LibrarY·namespace.
 76 Definition:·SILLYJPGImageContext.cpp:46
 77 SILLY::DataSource
 78 This·is·an·abstract·class·used·to·provide·data·to·the·loader.
 79 Definition:·SILLYDataSource.h:47
 80 SILLY::FileDataSource
 81 This·class·allow·the·loading·of·an·image·directly·from·a·file.
 82 Definition:·SILLYFileDataSource.h:49
 83 SILLY::FileDataSource::getDataPtr
 84 const·byte·*·getDataPtr()·const
 85 Get·raw·access·to·the·image·data.
 86 SILLY::FileDataSource::isValid
 87 bool·isValid()·const
 88 Check·wether·the·loading·is·successfull·or·not.
 89 SILLY::FileDataSource::getSize
 90 size_t·getSize()·const
 91 Return·the·size·of·the·data.
  
50 ===============================================================================92 ===============================================================================
51 ·····Generated·by [doxygen]·1.9.493 ·····Generated·by [doxygen]·1.9.4
34.7 KB
./usr/share/doc/libsilly-doc/html/a00107_source.html
    
Offset 1, 15 lines modifiedOffset 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">2 <html·xmlns="http://www.w3.org/1999/xhtml">
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.4"/>6 <meta·name="generator"·content="Doxygen·1.9.4"/>
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/loaders/SILLYTGAImageLoader.icpp·Source·File</title>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 35, 57 lines modifiedOffset 35, 128 lines modified
35 ··initMenu('',false,false,'search.php','Search');35 ··initMenu('',false,false,'search.php','Search');
36 });36 });
37 /*·@license-end·*/37 /*·@license-end·*/
38 </script>38 </script>
39 <div·id="main-nav"></div>39 <div·id="main-nav"></div>
40 <div·id="nav-path"·class="navpath">40 <div·id="nav-path"·class="navpath">
41 ··<ul>41 ··<ul>
42 <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>42 <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>
43 </div>43 </div>
44 </div><!--·top·-->44 </div><!--·top·-->
45 <div·class="header">45 <div·class="header">
46 ··<div·class="headertitle"><div·class="title">SILLYTGAImageLoader.icpp</div></div>46 ··<div·class="headertitle"><div·class="title">SILLYImage.h</div></div>
47 </div><!--header-->47 </div><!--header-->
48 <div·class="contents">48 <div·class="contents">
49 <div·class="fragment"><div·class="line"><a·id="l00001"·name="l00001"></a><span·class="lineno">····1</span>/***********************************************************************</div> 
50 <div·class="line"><a·id="l00002"·name="l00002"></a><span·class="lineno">····2</span>····filename:···SILLYTGAImageLoader.icpp·</div> 
51 <div·class="line"><a·id="l00003"·name="l00003"></a><span·class="lineno">····3</span>····created:····11·Jun·2006</div> 
52 <div·class="line"><a·id="l00004"·name="l00004"></a><span·class="lineno">····4</span>····author:·····Olivier·Delannoy</div> 
53 <div·class="line"><a·id="l00005"·name="l00005"></a><span·class="lineno">····5</span>·</div>49 <div·class="fragment"><div·class="line"><a·id="l00001"·name="l00001"></a><span·class="lineno">····1</span>·</div>
54 <div·class="line"><a·id="l00006"·name="l00006"></a><span·class="lineno">····6</span>····purpose:····Inline·defintion·of·TGAImageLoader·class···</div> 
55 <div·class="line"><a·id="l00007"·name="l00007"></a><span·class="lineno">····7</span>*************************************************************************/</div>50 <div·class="line"><a·id="l00002"·name="l00002"></a><span·class="lineno">····2</span><span·class="comment">/***********************************************************************</span></div>
 51 <div·class="line"><a·id="l00003"·name="l00003"></a><span·class="lineno">····3</span><span·class="comment">····filename:···SILLYImage.h</span></div>
 52 <div·class="line"><a·id="l00004"·name="l00004"></a><span·class="lineno">····4</span><span·class="comment">····created:····10·Jun·2006</span></div>
 53 <div·class="line"><a·id="l00005"·name="l00005"></a><span·class="lineno">····5</span><span·class="comment">····author:·····Olivier·Delannoy</span></div>
 54 <div·class="line"><a·id="l00006"·name="l00006"></a><span·class="lineno">····6</span><span·class="comment"></span>·</div>
 55 <div·class="line"><a·id="l00007"·name="l00007"></a><span·class="lineno">····7</span><span·class="comment">····purpose:····Image·class·definition</span></div>
56 <div·class="line"><a·id="l00008"·name="l00008"></a><span·class="lineno">····8</span>/***************************************************************************</div>56 <div·class="line"><a·id="l00008"·name="l00008"></a><span·class="lineno">····8</span><span·class="comment">*************************************************************************/</span></div>
57 <div·class="line"><a·id="l00009"·name="l00009"></a><span·class="lineno">····9</span>·*···Copyright·(C)·2004·-·2006·Paul·D·Turner·&amp;·The·CEGUI·Development·Team</div> 
58 <div·class="line"><a·id="l00010"·name="l00010"></a><span·class="lineno">···10</span>·*</div> 
59 <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> 
60 <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> 
61 <div·class="line"><a·id="l00013"·name="l00013"></a><span·class="lineno">···13</span>·*···&quot;Software&quot;),·to·deal·in·the·Software·without·restriction,·including</div> 
62 <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> 
63 <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> 
64 <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> 
65 <div·class="line"><a·id="l00017"·name="l00017"></a><span·class="lineno">···17</span>·*···the·following·conditions:</div> 
66 <div·class="line"><a·id="l00018"·name="l00018"></a><span·class="lineno">···18</span>·*</div> 
67 <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> 
68 <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> 
69 <div·class="line"><a·id="l00021"·name="l00021"></a><span·class="lineno">···21</span>·*</div> 
70 <div·class="line"><a·id="l00022"·name="l00022"></a><span·class="lineno">···22</span>·*···THE·SOFTWARE·IS·PROVIDED·&quot;AS·IS&quot;,·WITHOUT·WARRANTY·OF·ANY·KIND,</div> 
71 <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> 
72 <div·class="line"><a·id="l00024"·name="l00024"></a><span·class="lineno">···24</span>·*···MERCHANTABILITY,·FITNESS·FOR·A·PARTICULAR·PURPOSE·AND·NONINFRINGEMENT.</div> 
73 <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> 
74 <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> 
75 <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> 
76 <div·class="line"><a·id="l00028"·name="l00028"></a><span·class="lineno">···28</span>·*···OTHER·DEALINGS·IN·THE·SOFTWARE.</div> 
77 <div·class="line"><a·id="l00029"·name="l00029"></a><span·class="lineno">···29</span>·***************************************************************************/</div>57 <div·class="line"><a·id="l00009"·name="l00009"></a><span·class="lineno">····9</span><span·class="comment">/***************************************************************************</span></div>
 58 <div·class="line"><a·id="l00010"·name="l00010"></a><span·class="lineno">···10</span><span·class="comment">·*···Copyright·(C)·2004·-·2006·Paul·D·Turner·&amp;·The·CEGUI·Development·Team</span></div>
 59 <div·class="line"><a·id="l00011"·name="l00011"></a><span·class="lineno">···11</span><span·class="comment">·*</span></div>
 60 <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>
 61 <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>
 62 <div·class="line"><a·id="l00014"·name="l00014"></a><span·class="lineno">···14</span><span·class="comment">·*···&quot;Software&quot;),·to·deal·in·the·Software·without·restriction,·including</span></div>
 63 <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>
 64 <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>
 65 <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>
 66 <div·class="line"><a·id="l00018"·name="l00018"></a><span·class="lineno">···18</span><span·class="comment">·*···the·following·conditions:</span></div>
 67 <div·class="line"><a·id="l00019"·name="l00019"></a><span·class="lineno">···19</span><span·class="comment">·*</span></div>
 68 <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>
 69 <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>
 70 <div·class="line"><a·id="l00022"·name="l00022"></a><span·class="lineno">···22</span><span·class="comment">·*</span></div>
 71 <div·class="line"><a·id="l00023"·name="l00023"></a><span·class="lineno">···23</span><span·class="comment">·*···THE·SOFTWARE·IS·PROVIDED·&quot;AS·IS&quot;,·WITHOUT·WARRANTY·OF·ANY·KIND,</span></div>
 72 <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>
 73 <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>
 74 <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>
 75 <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>
 76 <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>
 77 <div·class="line"><a·id="l00029"·name="l00029"></a><span·class="lineno">···29</span><span·class="comment">·*···OTHER·DEALINGS·IN·THE·SOFTWARE.</span></div>
 78 <div·class="line"><a·id="l00030"·name="l00030"></a><span·class="lineno">···30</span><span·class="comment">·***************************************************************************/</span></div>
 79 <div·class="line"><a·id="l00031"·name="l00031"></a><span·class="lineno">···31</span><span·class="preprocessor">#ifndef·_SILLYImage_h_·</span></div>
 80 <div·class="line"><a·id="l00032"·name="l00032"></a><span·class="lineno">···32</span><span·class="preprocessor">#define·_SILLYImage_h_</span></div>
 81 <div·class="line"><a·id="l00033"·name="l00033"></a><span·class="lineno">···33</span><span·class="preprocessor">#include·&quot;SILLYBase.h&quot;</span>·</div>
 82 <div·class="line"><a·id="l00034"·name="l00034"></a><span·class="lineno">···34</span><span·class="preprocessor">#include·&quot;SILLYImageContext.h&quot;</span></div>
 83 <div·class="line"><a·id="l00035"·name="l00035"></a><span·class="lineno">···35</span><span·class="preprocessor">#include·&quot;SILLYDataSource.h&quot;</span></div>
 84 <div·class="line"><a·id="l00036"·name="l00036"></a><span·class="lineno">···36</span><span·class="preprocessor">#include·&quot;SILLYImageLoader.h&quot;</span>·</div>
78 <div·class="line"><a·id="l00030"·name="l00030"></a><span·class="lineno">···30</span>·</div>85 <div·class="line"><a·id="l00037"·name="l00037"></a><span·class="lineno">···37</span>·</div>
79 <div·class="line"><a·id="l00031"·name="l00031"></a><span·class="lineno">···31</span>//·Start·of·section·namespace·SILLY</div>86 <div·class="line"><a·id="l00038"·name="l00038"></a><span·class="lineno">···38</span><span·class="comment">//·Start·of·section·namespace·SILLY·</span></div>
80 <div·class="line"><a·id="l00032"·name="l00032"></a><span·class="lineno">···32</span>namespace·SILLY</div>87 <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>
81 <div·class="line"><a·id="l00033"·name="l00033"></a><span·class="lineno">···33</span>{</div>88 <div·class="line"><a·id="l00040"·name="l00040"></a><span·class="lineno">···40</span>{</div>
82 <div·class="line"><a·id="l00034"·name="l00034"></a><span·class="lineno">···34</span>····</div>89 <div·class="line"><a·id="l00041"·name="l00041"></a><span·class="lineno">···41</span>·</div>
 90 <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>
83 <div·class="line"><a·id="l00035"·name="l00035"></a><span·class="lineno">···35</span>}·//·End·of·section·namespace·SILLY</div>91 <div·class="line"><a·id="l00047"·name="l00047"></a><span·class="lineno">···47</span>{</div>
 92 <div·class="line"><a·id="l00048"·name="l00048"></a><span·class="lineno">···48</span><span·class="keyword">public</span>:</div>
 93 <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>&amp;·data);</div>
84 <div·class="line"><a·id="l00036"·name="l00036"></a><span·class="lineno">···36</span>·</div>94 <div·class="line"><a·id="l00056"·name="l00056"></a><span·class="lineno">···56</span>·</div>
 95 <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>
 96 <div·class="line"><a·id="l00062"·name="l00062"></a><span·class="lineno">···62</span>·</div>
 97 <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>
 98 <div·class="line"><a·id="l00068"·name="l00068"></a><span·class="lineno">···68</span>····</div>
 99 <div·class="line"><a·id="l00069"·name="l00069"></a><span·class="lineno">···69</span>·</div>
 100 <div·class="line"><a·id="l00076"·name="l00076"></a><span·class="lineno">···76</span>····<span·class="keywordtype">bool</span>·loadImageHeader();</div>
 101 <div·class="line"><a·id="l00077"·name="l00077"></a><span·class="lineno">···77</span>·</div>
 102 <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>
 103 <div·class="line"><a·id="l00092"·name="l00092"></a><span·class="lineno">···92</span>·</div>
 104 <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>
 105 <div·class="line"><a·id="l00098"·name="l00098"></a><span·class="lineno">···98</span>····</div>
 106 <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>
 107 <div·class="line"><a·id="l00104"·name="l00104"></a><span·class="lineno">··104</span>····</div>
 108 <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>
 109 <div·class="line"><a·id="l00110"·name="l00110"></a><span·class="lineno">··110</span>·</div>
 110 <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>
 111 <div·class="line"><a·id="l00116"·name="l00116"></a><span·class="lineno">··116</span>····</div>
 112 <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>
 113 <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>
 114 <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>
 115 <div·class="line"><a·id="l00131"·name="l00131"></a><span·class="lineno">··131</span><span·class="keyword">private</span>:</div>
 116 <div·class="line"><a·id="l00132"·name="l00132"></a><span·class="lineno">··132</span>····<span·class="keywordtype">bool</span>·allocate();</div>
 117 <div·class="line"><a·id="l00133"·name="l00133"></a><span·class="lineno">··133</span>·</div>
 118 <div·class="line"><a·id="l00134"·name="l00134"></a><span·class="lineno">··134</span><span·class="keyword">private</span>:</div>
 119 <div·class="line"><a·id="l00135"·name="l00135"></a><span·class="lineno">··135</span>·</div>
 120 <div·class="line"><a·id="l00136"·name="l00136"></a><span·class="lineno">··136</span>····<span·class="keywordtype">size_t</span>·d_bpp;·························</div>
Max diff block lines reached; 271/28595 bytes (0.95%) of diff not shown.
6.64 KB
html2text {}
    
Offset 4, 49 lines modifiedOffset 4, 154 lines modified
  
4 Simple·Image·Loading·LibrarY 0.1.04 Simple·Image·Loading·LibrarY 0.1.0
  
5 ····*·build5 ····*·build
6 ····*·reproducible-path6 ····*·reproducible-path
7 ····*·silly-0.1.07 ····*·silly-0.1.0
8 ····*·include8 ····*·include
9 ····*·loaders 
10 SILLYTGAImageLoader.icpp9 SILLYImage.h
 10 ·1
11 ·1/***********************************************************************11 ·2/***********************************************************************
12 ·2·filename:·SILLYTGAImageLoader.icpp12 ·3·filename:·SILLYImage.h
13 ·3·created:·11·Jun·200613 ·4·created:·10·Jun·2006
14 ·4·author:·Olivier·Delannoy14 ·5·author:·Olivier·Delannoy
15 ·5 
16 ·6·purpose:·Inline·defintion·of·TGAImageLoader·class15 ·6
 16 ·7·purpose:·Image·class·definition
17 ·7*************************************************************************/17 ·8*************************************************************************/
18 ·8/***************************************************************************18 ·9/***************************************************************************
19 ·9·*·Copyright·(C)·2004·-·2006·Paul·D·Turner·&·The·CEGUI·Development·Team19 ·10·*·Copyright·(C)·2004·-·2006·Paul·D·Turner·&·The·CEGUI·Development·Team
20 ·10·*20 ·11·*
21 ·11·*·Permission·is·hereby·granted,·free·of·charge,·to·any·person·obtaining21 ·12·*·Permission·is·hereby·granted,·free·of·charge,·to·any·person·obtaining
22 ·12·*·a·copy·of·this·software·and·associated·documentation·files·(the22 ·13·*·a·copy·of·this·software·and·associated·documentation·files·(the
23 ·13·*·"Software"),·to·deal·in·the·Software·without·restriction,·including23 ·14·*·"Software"),·to·deal·in·the·Software·without·restriction,·including
24 ·14·*·without·limitation·the·rights·to·use,·copy,·modify,·merge,·publish,24 ·15·*·without·limitation·the·rights·to·use,·copy,·modify,·merge,·publish,
25 ·15·*·distribute,·sublicense,·and/or·sell·copies·of·the·Software,·and·to25 ·16·*·distribute,·sublicense,·and/or·sell·copies·of·the·Software,·and·to
26 ·16·*·permit·persons·to·whom·the·Software·is·furnished·to·do·so,·subject·to26 ·17·*·permit·persons·to·whom·the·Software·is·furnished·to·do·so,·subject·to
27 ·17·*·the·following·conditions:27 ·18·*·the·following·conditions:
28 ·18·*28 ·19·*
29 ·19·*·The·above·copyright·notice·and·this·permission·notice·shall·be29 ·20·*·The·above·copyright·notice·and·this·permission·notice·shall·be
30 ·20·*·included·in·all·copies·or·substantial·portions·of·the·Software.30 ·21·*·included·in·all·copies·or·substantial·portions·of·the·Software.
31 ·21·*31 ·22·*
32 ·22·*·THE·SOFTWARE·IS·PROVIDED·"AS·IS",·WITHOUT·WARRANTY·OF·ANY·KIND,32 ·23·*·THE·SOFTWARE·IS·PROVIDED·"AS·IS",·WITHOUT·WARRANTY·OF·ANY·KIND,
33 ·23·*·EXPRESS·OR·IMPLIED,·INCLUDING·BUT·NOT·LIMITED·TO·THE·WARRANTIES·OF33 ·24·*·EXPRESS·OR·IMPLIED,·INCLUDING·BUT·NOT·LIMITED·TO·THE·WARRANTIES·OF
34 ·24·*·MERCHANTABILITY,·FITNESS·FOR·A·PARTICULAR·PURPOSE·AND·NONINFRINGEMENT.34 ·25·*·MERCHANTABILITY,·FITNESS·FOR·A·PARTICULAR·PURPOSE·AND·NONINFRINGEMENT.
35 ·25·*·IN·NO·EVENT·SHALL·THE·AUTHORS·BE·LIABLE·FOR·ANY·CLAIM,·DAMAGES·OR35 ·26·*·IN·NO·EVENT·SHALL·THE·AUTHORS·BE·LIABLE·FOR·ANY·CLAIM,·DAMAGES·OR
36 ·26·*·OTHER·LIABILITY,·WHETHER·IN·AN·ACTION·OF·CONTRACT,·TORT·OR·OTHERWISE,36 ·27·*·OTHER·LIABILITY,·WHETHER·IN·AN·ACTION·OF·CONTRACT,·TORT·OR·OTHERWISE,
37 ·27·*·ARISING·FROM,·OUT·OF·OR·IN·CONNECTION·WITH·THE·SOFTWARE·OR·THE·USE·OR37 ·28·*·ARISING·FROM,·OUT·OF·OR·IN·CONNECTION·WITH·THE·SOFTWARE·OR·THE·USE·OR
38 ·28·*·OTHER·DEALINGS·IN·THE·SOFTWARE.38 ·29·*·OTHER·DEALINGS·IN·THE·SOFTWARE.
39 ·29 
40 ***************************************************************************/ 
41 ·3039 ·30
 40 ***************************************************************************/
 41 ·31#ifndef·_SILLYImage_h_
 42 ·32#define·_SILLYImage_h_
 43 ·33#include·"SILLYBase.h"
 44 ·34#include·"SILLYImageContext.h"
 45 ·35#include·"SILLYDataSource.h"
 46 ·36#include·"SILLYImageLoader.h"
 47 ·37
42 ·31//·Start·of·section·namespace·SILLY48 ·38//·Start·of·section·namespace·SILLY
43 ·32namespace·SILLY49 ·39namespace·SILLY
 50 ·40{
 51 ·41
 52 46class·SILLY_EXPORT·Image
 53 ·47{
 54 ·48public:
 55 ·55·Image(DataSource&·data);
 56 ·56
 57 61·~Image();
 58 ·62
 59 67·bool·isValid()·const;
 60 ·68
 61 ·69
 62 ·76·bool·loadImageHeader();
 63 ·77
 64 ·91·bool·loadImageData(PixelFormat·resultFormat·=·PF_RGBA,·PixelOrigin·origin·=
 65 PO_TOP_LEFT);
 66 ·92
 67 97·size_t·getWidth()·const;
 68 ·98
 69 103·size_t·getHeight()·const;
 70 ·104
 71 109·PixelFormat·getSourcePixelFormat()·const;
 72 ·110
 73 115·PixelFormat·getPixelFormat()·const;
 74 ·116
 75 120·const·byte*·getPixelsDataPtr()·const;
 76 125·size_t·getPixelsDataSize()·const;
 77 130·const·char*·getLoaderIdentifierString()·const;
 78 ·131private:
 79 ·132·bool·allocate();
44 ·33{80 ·133
45 ·3481 ·134private:
 82 ·135
 83 ·136·size_t·d_bpp;
 84 ·137·PixelFormat·d_pfSource;
 85 ·138·byte*·d_pixels;
 86 ·139·DataSource*·d_data;
 87 ·140·ImageContext*·d_imageContext;
 88 ·141·ImageLoader*·d_imageLoader;
 89 ·142
 90 ·143·//·Disabled·operation
 91 ·144·Image(Image&);
 92 ·145·Image&·operator=(Image&);
 93 ·146};
 94 ·147
46 ·35}·//·End·of·section·namespace·SILLY95 ·148}·//·End·of·section·namespace·SILLY
47 ·3696 ·149
 97 ·150//·Inclue·inline·function·when·needed
 98 ·151#ifdef·SILLY_OPT_INLINE
 99 ·152#include·"SILLYImage.icpp"
 100 ·153#endif
 101 ·154
 102 ·155#endif·//·end·of·guard·_SILLYImage_h_
 103 SILLY
 104 Simple·Image·Loading·LibrarY·namespace.
 105 Definition:·SILLYJPGImageContext.cpp:46
 106 SILLY::PixelFormat
 107 PixelFormat
 108 List·all·pixel·format·supported.
 109 Definition:·SILLYBase.h:60
 110 SILLY::PixelOrigin
 111 PixelOrigin
 112 List·all·pixel·origin·supported.
 113 Definition:·SILLYBase.h:71
 114 SILLY::DataSource
 115 This·is·an·abstract·class·used·to·provide·data·to·the·loader.
 116 Definition:·SILLYDataSource.h:47
 117 SILLY::Image
 118 Image·is·the·main·user·class·of·the·library.
 119 Definition:·SILLYImage.h:47
 120 SILLY::Image::getSourcePixelFormat
 121 PixelFormat·getSourcePixelFormat()·const
 122 Retrieve·the·pixel·format·used·for·the·image·storage.
 123 SILLY::Image::getLoaderIdentifierString
 124 const·char·*·getLoaderIdentifierString()·const
Max diff block lines reached; 116/6773 bytes (1.71%) of diff not shown.
26.8 KB
./usr/share/doc/libsilly-doc/html/a00110_source.html
    
Offset 1, 15 lines modifiedOffset 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">2 <html·xmlns="http://www.w3.org/1999/xhtml">
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.4"/>6 <meta·name="generator"·content="Doxygen·1.9.4"/>
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/loaders/SILLYJPGImageContext.icpp·Source·File</title>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 35, 57 lines modifiedOffset 35, 108 lines modified
35 ··initMenu('',false,false,'search.php','Search');35 ··initMenu('',false,false,'search.php','Search');
36 });36 });
37 /*·@license-end·*/37 /*·@license-end·*/
38 </script>38 </script>
39 <div·id="main-nav"></div>39 <div·id="main-nav"></div>
40 <div·id="nav-path"·class="navpath">40 <div·id="nav-path"·class="navpath">
41 ··<ul>41 ··<ul>
42 <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>42 <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>
43 </div>43 </div>
44 </div><!--·top·-->44 </div><!--·top·-->
45 <div·class="header">45 <div·class="header">
46 ··<div·class="headertitle"><div·class="title">SILLYJPGImageContext.icpp</div></div>46 ··<div·class="headertitle"><div·class="title">SILLYImageContext.h</div></div>
47 </div><!--header-->47 </div><!--header-->
48 <div·class="contents">48 <div·class="contents">
49 <div·class="fragment"><div·class="line"><a·id="l00001"·name="l00001"></a><span·class="lineno">····1</span>/***********************************************************************</div>49 <div·class="fragment"><div·class="line"><a·id="l00001"·name="l00001"></a><span·class="lineno">····1</span><span·class="comment">/***********************************************************************</span></div>
50 <div·class="line"><a·id="l00002"·name="l00002"></a><span·class="lineno">····2</span>····filename:···SILLYJPGImageContext.icpp·</div>50 <div·class="line"><a·id="l00002"·name="l00002"></a><span·class="lineno">····2</span><span·class="comment">····filename:···SILLYImageContext.h</span></div>
51 <div·class="line"><a·id="l00003"·name="l00003"></a><span·class="lineno">····3</span>····created:····11·Jun·2006</div>51 <div·class="line"><a·id="l00003"·name="l00003"></a><span·class="lineno">····3</span><span·class="comment">····created:····10·Jun·2006</span></div>
52 <div·class="line"><a·id="l00004"·name="l00004"></a><span·class="lineno">····4</span>····author:·····Olivier·Delannoy</div>52 <div·class="line"><a·id="l00004"·name="l00004"></a><span·class="lineno">····4</span><span·class="comment">····author:·····Olivier·Delannoy</span></div>
53 <div·class="line"><a·id="l00005"·name="l00005"></a><span·class="lineno">····5</span>·</div>53 <div·class="line"><a·id="l00005"·name="l00005"></a><span·class="lineno">····5</span><span·class="comment"></span>·</div>
54 <div·class="line"><a·id="l00006"·name="l00006"></a><span·class="lineno">····6</span>····purpose:····Inline·definition·for·JPG·context···</div>54 <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>
55 <div·class="line"><a·id="l00007"·name="l00007"></a><span·class="lineno">····7</span>*************************************************************************/</div>55 <div·class="line"><a·id="l00007"·name="l00007"></a><span·class="lineno">····7</span><span·class="comment">*************************************************************************/</span></div>
56 <div·class="line"><a·id="l00008"·name="l00008"></a><span·class="lineno">····8</span>/***************************************************************************</div>56 <div·class="line"><a·id="l00008"·name="l00008"></a><span·class="lineno">····8</span><span·class="comment">/***************************************************************************</span></div>
57 <div·class="line"><a·id="l00009"·name="l00009"></a><span·class="lineno">····9</span>·*···Copyright·(C)·2004·-·2006·Paul·D·Turner·&amp;·The·CEGUI·Development·Team</div>57 <div·class="line"><a·id="l00009"·name="l00009"></a><span·class="lineno">····9</span><span·class="comment">·*···Copyright·(C)·2004·-·2006·Paul·D·Turner·&amp;·The·CEGUI·Development·Team</span></div>
58 <div·class="line"><a·id="l00010"·name="l00010"></a><span·class="lineno">···10</span>·*</div>58 <div·class="line"><a·id="l00010"·name="l00010"></a><span·class="lineno">···10</span><span·class="comment">·*</span></div>
59 <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>59 <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>
60 <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>60 <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>
61 <div·class="line"><a·id="l00013"·name="l00013"></a><span·class="lineno">···13</span>·*···&quot;Software&quot;),·to·deal·in·the·Software·without·restriction,·including</div>61 <div·class="line"><a·id="l00013"·name="l00013"></a><span·class="lineno">···13</span><span·class="comment">·*···&quot;Software&quot;),·to·deal·in·the·Software·without·restriction,·including</span></div>
62 <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>62 <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>
63 <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>63 <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>
64 <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>64 <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>
65 <div·class="line"><a·id="l00017"·name="l00017"></a><span·class="lineno">···17</span>·*···the·following·conditions:</div>65 <div·class="line"><a·id="l00017"·name="l00017"></a><span·class="lineno">···17</span><span·class="comment">·*···the·following·conditions:</span></div>
66 <div·class="line"><a·id="l00018"·name="l00018"></a><span·class="lineno">···18</span>·*</div>66 <div·class="line"><a·id="l00018"·name="l00018"></a><span·class="lineno">···18</span><span·class="comment">·*</span></div>
67 <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>67 <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>
68 <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>68 <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>
69 <div·class="line"><a·id="l00021"·name="l00021"></a><span·class="lineno">···21</span>·*</div>69 <div·class="line"><a·id="l00021"·name="l00021"></a><span·class="lineno">···21</span><span·class="comment">·*</span></div>
70 <div·class="line"><a·id="l00022"·name="l00022"></a><span·class="lineno">···22</span>·*···THE·SOFTWARE·IS·PROVIDED·&quot;AS·IS&quot;,·WITHOUT·WARRANTY·OF·ANY·KIND,</div>70 <div·class="line"><a·id="l00022"·name="l00022"></a><span·class="lineno">···22</span><span·class="comment">·*···THE·SOFTWARE·IS·PROVIDED·&quot;AS·IS&quot;,·WITHOUT·WARRANTY·OF·ANY·KIND,</span></div>
71 <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>71 <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>
72 <div·class="line"><a·id="l00024"·name="l00024"></a><span·class="lineno">···24</span>·*···MERCHANTABILITY,·FITNESS·FOR·A·PARTICULAR·PURPOSE·AND·NONINFRINGEMENT.</div>72 <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>
73 <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>73 <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>
74 <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>74 <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>
75 <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>75 <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>
76 <div·class="line"><a·id="l00028"·name="l00028"></a><span·class="lineno">···28</span>·*···OTHER·DEALINGS·IN·THE·SOFTWARE.</div>76 <div·class="line"><a·id="l00028"·name="l00028"></a><span·class="lineno">···28</span><span·class="comment">·*···OTHER·DEALINGS·IN·THE·SOFTWARE.</span></div>
77 <div·class="line"><a·id="l00029"·name="l00029"></a><span·class="lineno">···29</span>·***************************************************************************/</div>77 <div·class="line"><a·id="l00029"·name="l00029"></a><span·class="lineno">···29</span><span·class="comment">·***************************************************************************/</span></div>
78 <div·class="line"><a·id="l00030"·name="l00030"></a><span·class="lineno">···30</span>·</div> 
79 <div·class="line"><a·id="l00031"·name="l00031"></a><span·class="lineno">···31</span>//·Start·of·section·namespace·SILLY</div>78 <div·class="line"><a·id="l00030"·name="l00030"></a><span·class="lineno">···30</span><span·class="preprocessor">#ifndef·_SILLYImageContext_h_·</span></div>
 79 <div·class="line"><a·id="l00031"·name="l00031"></a><span·class="lineno">···31</span><span·class="preprocessor">#define·_SILLYImageContext_h_</span></div>
80 <div·class="line"><a·id="l00032"·name="l00032"></a><span·class="lineno">···32</span>namespace·SILLY</div>80 <div·class="line"><a·id="l00032"·name="l00032"></a><span·class="lineno">···32</span><span·class="preprocessor">#include·&quot;SILLYBase.h&quot;</span>·</div>
81 <div·class="line"><a·id="l00033"·name="l00033"></a><span·class="lineno">···33</span>{</div>81 <div·class="line"><a·id="l00033"·name="l00033"></a><span·class="lineno">···33</span>·</div>
82 <div·class="line"><a·id="l00034"·name="l00034"></a><span·class="lineno">···34</span>····</div> 
83 <div·class="line"><a·id="l00035"·name="l00035"></a><span·class="lineno">···35</span>}·//·End·of·section·namespace·SILLY</div>82 <div·class="line"><a·id="l00034"·name="l00034"></a><span·class="lineno">···34</span><span·class="comment">//·Start·of·section·namespace·SILLY·</span></div>
 83 <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>
84 <div·class="line"><a·id="l00036"·name="l00036"></a><span·class="lineno">···36</span>·</div>84 <div·class="line"><a·id="l00036"·name="l00036"></a><span·class="lineno">···36</span>{</div>
 85 <div·class="line"><a·id="l00037"·name="l00037"></a><span·class="lineno">···37</span>·</div>
 86 <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>
 87 <div·class="line"><a·id="l00044"·name="l00044"></a><span·class="lineno">···44</span>{</div>
 88 <div·class="line"><a·id="l00045"·name="l00045"></a><span·class="lineno">···45</span><span·class="keyword">public</span>:</div>
 89 <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>
 90 <div·class="line"><a·id="l00051"·name="l00051"></a><span·class="lineno">···51</span>····</div>
 91 <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">setDestination</a>(<span·class="keywordtype">byte</span>*·pixels,·<span·class="keywordtype">size_t</span>·length,·<a·class="code·hl_enumeration"·href="a00129.html#a60883d4958a60b91661e97027a85072a">PixelFormat</a>·format);</div>
 92 <div·class="line"><a·id="l00057"·name="l00057"></a><span·class="lineno">···57</span>····</div>
 93 <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>
 94 <div·class="line"><a·id="l00063"·name="l00063"></a><span·class="lineno">···63</span>·</div>
 95 <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>
 96 <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>
 97 <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>
 98 <div·class="line"><a·id="l00067"·name="l00067"></a><span·class="lineno">···67</span>····</div>
 99 <div·class="line"><a·id="l00074"·name="l00074"></a><span·class="lineno">···74</span>····<span·class="keywordtype">bool</span>··flipVertically();</div>
 100 <div·class="line"><a·id="l00075"·name="l00075"></a><span·class="lineno">···75</span>·<span·class="keyword">protected</span>:</div>
 101 <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>
 102 <div·class="line"><a·id="l00077"·name="l00077"></a><span·class="lineno">···77</span>····</div>
 103 <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>
 104 <div·class="line"><a·id="l00079"·name="l00079"></a><span·class="lineno">···79</span>······</div>
 105 <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>
 106 <div·class="line"><a·id="l00089"·name="l00089"></a><span·class="lineno">···89</span>·</div>
 107 <div·class="line"><a·id="l00090"·name="l00090"></a><span·class="lineno">···90</span><span·class="keyword">private</span>:····</div>
 108 <div·class="line"><a·id="l00091"·name="l00091"></a><span·class="lineno">···91</span>····<span·class="keywordtype">byte</span>*·d_pixels;</div>
 109 <div·class="line"><a·id="l00092"·name="l00092"></a><span·class="lineno">···92</span>····<span·class="keywordtype">size_t</span>·d_length;</div>
 110 <div·class="line"><a·id="l00093"·name="l00093"></a><span·class="lineno">···93</span>····<span·class="keywordtype">size_t</span>·d_width;</div>
 111 <div·class="line"><a·id="l00094"·name="l00094"></a><span·class="lineno">···94</span>····<span·class="keywordtype">size_t</span>·d_height;</div>
 112 <div·class="line"><a·id="l00095"·name="l00095"></a><span·class="lineno">···95</span>····<span·class="keywordtype">size_t</span>·d_currentOffset;</div>
 113 <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>
 114 <div·class="line"><a·id="l00097"·name="l00097"></a><span·class="lineno">···97</span>·</div>
 115 <div·class="line"><a·id="l00098"·name="l00098"></a><span·class="lineno">···98</span>····<span·class="comment">//·Disabled·operation</span></div>
 116 <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>&amp;);</div>
 117 <div·class="line"><a·id="l00100"·name="l00100"></a><span·class="lineno">··100</span>····<a·class="code·hl_class"·href="a00981.html">ImageContext</a>&amp;·operator=(<a·class="code·hl_class"·href="a00981.html">ImageContext</a>&amp;);</div>
 118 <div·class="line"><a·id="l00101"·name="l00101"></a><span·class="lineno">··101</span>};</div>
 119 <div·class="line"><a·id="l00102"·name="l00102"></a><span·class="lineno">··102</span>··</div>
 120 <div·class="line"><a·id="l00103"·name="l00103"></a><span·class="lineno">··103</span>··</div>
 121 <div·class="line"><a·id="l00104"·name="l00104"></a><span·class="lineno">··104</span>}·<span·class="comment">//·End·of·section·namespace·SILLY·</span></div>
 122 <div·class="line"><a·id="l00105"·name="l00105"></a><span·class="lineno">··105</span>·</div>
 123 <div·class="line"><a·id="l00106"·name="l00106"></a><span·class="lineno">··106</span><span·class="comment">//·Inclue·inline·function·when·needed·</span></div>
 124 <div·class="line"><a·id="l00107"·name="l00107"></a><span·class="lineno">··107</span><span·class="preprocessor">#ifdef·SILLY_OPT_INLINE</span></div>
 125 <div·class="line"><a·id="l00108"·name="l00108"></a><span·class="lineno">··108</span><span·class="preprocessor">#include·&quot;SILLYImageContext.icpp&quot;</span></div>
 126 <div·class="line"><a·id="l00109"·name="l00109"></a><span·class="lineno">··109</span><span·class="preprocessor">#endif·</span></div>
 127 <div·class="line"><a·id="l00110"·name="l00110"></a><span·class="lineno">··110</span>·</div>
 128 <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>
 129 <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="a00005_source.html#l00045">SILLYJPGImageContext.cpp:46</a></div></div>
 130 <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="a00113_source.html#l00059">SILLYBase.h:60</a></div></div>
 131 <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="a00110_source.html#l00043">SILLYImageContext.h:44</a></div></div>
 132 <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>
 133 <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>
 134 <div·class="ttc"·id="aa00981_html_a65eda98c8a4f75b1d92a9edc8db86313"><div·class="ttname"><a·href="a00981.html#a65eda98c8a4f75b1d92a9edc8db86313">SILLY::ImageContext::ImageContext</a></div><div·class="ttdeci">ImageContext(size_t·width,·size_t·height)</div><div·class="ttdoc">Constructor.</div></div>
 135 <div·class="ttc"·id="aa00981_html_a792018d60b642b286f3bbb7d328214b0"><div·class="ttname"><a·href="a00981.html#a792018d60b642b286f3bbb7d328214b0">SILLY::ImageContext::~ImageContext</a></div><div·class="ttdeci">virtual·~ImageContext()</div><div·class="ttdoc">Destructor.</div></div>
85 </div><!--·fragment·--></div><!--·contents·-->136 </div><!--·fragment·--></div><!--·contents·-->
86 <!--·start·footer·part·-->137 <!--·start·footer·part·-->
87 <hr·class="footer"/><address·class="footer"><small>138 <hr·class="footer"/><address·class="footer"><small>
88 Generated·by&#160;<a·href="https://www.doxygen.org/index.html"><img·class="footer"·src="doxygen.svg"·width="104"·height="31"·alt="doxygen"/></a>·1.9.4139 Generated·by&#160;<a·href="https://www.doxygen.org/index.html"><img·class="footer"·src="doxygen.svg"·width="104"·height="31"·alt="doxygen"/></a>·1.9.4
89 </small></address>140 </small></address>
90 </body>141 </body>
91 </html>142 </html>
3.65 KB
html2text {}
    
Offset 4, 22 lines modifiedOffset 4, 22 lines modified
  
4 Simple·Image·Loading·LibrarY 0.1.04 Simple·Image·Loading·LibrarY 0.1.0
  
5 ····*·build5 ····*·build
6 ····*·reproducible-path6 ····*·reproducible-path
7 ····*·silly-0.1.07 ····*·silly-0.1.0
8 ····*·include8 ····*·include
9 ····*·loaders 
10 SILLYJPGImageContext.icpp9 SILLYImageContext.h
11 ·1/***********************************************************************10 ·1/***********************************************************************
12 ·2·filename:·SILLYJPGImageContext.icpp11 ·2·filename:·SILLYImageContext.h
13 ·3·created:·11·Jun·200612 ·3·created:·10·Jun·2006
14 ·4·author:·Olivier·Delannoy13 ·4·author:·Olivier·Delannoy
15 ·514 ·5
16 ·6·purpose:·Inline·definition·for·JPG·context15 ·6·purpose:·ImageContext·is·an·abstract·class·used·to·hide·the·loader·specific
 16 data·needed·during·the·parsing·of·an·image
17 ·7*************************************************************************/17 ·7*************************************************************************/
18 ·8/***************************************************************************18 ·8/***************************************************************************
19 ·9·*·Copyright·(C)·2004·-·2006·Paul·D·Turner·&·The·CEGUI·Development·Team19 ·9·*·Copyright·(C)·2004·-·2006·Paul·D·Turner·&·The·CEGUI·Development·Team
20 ·10·*20 ·10·*
21 ·11·*·Permission·is·hereby·granted,·free·of·charge,·to·any·person·obtaining21 ·11·*·Permission·is·hereby·granted,·free·of·charge,·to·any·person·obtaining
22 ·12·*·a·copy·of·this·software·and·associated·documentation·files·(the22 ·12·*·a·copy·of·this·software·and·associated·documentation·files·(the
23 ·13·*·"Software"),·to·deal·in·the·Software·without·restriction,·including23 ·13·*·"Software"),·to·deal·in·the·Software·without·restriction,·including
Offset 36, 17 lines modifiedOffset 36, 83 lines modified
36 ·24·*·MERCHANTABILITY,·FITNESS·FOR·A·PARTICULAR·PURPOSE·AND·NONINFRINGEMENT.36 ·24·*·MERCHANTABILITY,·FITNESS·FOR·A·PARTICULAR·PURPOSE·AND·NONINFRINGEMENT.
37 ·25·*·IN·NO·EVENT·SHALL·THE·AUTHORS·BE·LIABLE·FOR·ANY·CLAIM,·DAMAGES·OR37 ·25·*·IN·NO·EVENT·SHALL·THE·AUTHORS·BE·LIABLE·FOR·ANY·CLAIM,·DAMAGES·OR
38 ·26·*·OTHER·LIABILITY,·WHETHER·IN·AN·ACTION·OF·CONTRACT,·TORT·OR·OTHERWISE,38 ·26·*·OTHER·LIABILITY,·WHETHER·IN·AN·ACTION·OF·CONTRACT,·TORT·OR·OTHERWISE,
39 ·27·*·ARISING·FROM,·OUT·OF·OR·IN·CONNECTION·WITH·THE·SOFTWARE·OR·THE·USE·OR39 ·27·*·ARISING·FROM,·OUT·OF·OR·IN·CONNECTION·WITH·THE·SOFTWARE·OR·THE·USE·OR
40 ·28·*·OTHER·DEALINGS·IN·THE·SOFTWARE.40 ·28·*·OTHER·DEALINGS·IN·THE·SOFTWARE.
41 ·2941 ·29
42 ***************************************************************************/42 ***************************************************************************/
43 ·3043 ·30#ifndef·_SILLYImageContext_h_
 44 ·31#define·_SILLYImageContext_h_
 45 ·32#include·"SILLYBase.h"
 46 ·33
44 ·31//·Start·of·section·namespace·SILLY47 ·34//·Start·of·section·namespace·SILLY
45 ·32namespace·SILLY48 ·35namespace·SILLY
46 ·33{49 ·36{
47 ·3450 ·37
 51 43class·SILLY_EXPORT·ImageContext
 52 ·44{
 53 ·45public:
 54 50·virtual·~ImageContext();
 55 ·51
 56 56·void·setDestination(byte*·pixels,·size_t·length,·PixelFormat·format);
 57 ·57
 58 62·void·setNextPixel(byte·red,·byte·green,·byte·bleu,·byte·alpha);
 59 ·63
 60 ·64·size_t·getWidth()·const;
 61 ·65·size_t·getHeight()·const;
 62 ·66·PixelFormat·getPixelFormat()·const;
 63 ·67
 64 ·74·bool·flipVertically();
 65 ·75·protected:
 66 ·76·void·setWidth(size_t·width);
 67 ·77
 68 ·78·void·setHeight(size_t·height);
 69 ·79
 70 88·ImageContext(size_t·width,·size_t·height);
 71 ·89
 72 ·90private:
 73 ·91·byte*·d_pixels;
 74 ·92·size_t·d_length;
 75 ·93·size_t·d_width;
 76 ·94·size_t·d_height;
 77 ·95·size_t·d_currentOffset;
 78 ·96·PixelFormat·d_format;
 79 ·97
 80 ·98·//·Disabled·operation
 81 ·99·ImageContext(ImageContext&);
 82 ·100·ImageContext&·operator=(ImageContext&);
 83 ·101};
 84 ·102
 85 ·103
48 ·35}·//·End·of·section·namespace·SILLY86 ·104}·//·End·of·section·namespace·SILLY
49 ·3687 ·105
 88 ·106//·Inclue·inline·function·when·needed
 89 ·107#ifdef·SILLY_OPT_INLINE
 90 ·108#include·"SILLYImageContext.icpp"
 91 ·109#endif
 92 ·110
 93 ·111#endif·//·end·of·guard·_SILLYImageContext_h_
 94 SILLY
 95 Simple·Image·Loading·LibrarY·namespace.
 96 Definition:·SILLYJPGImageContext.cpp:46
 97 SILLY::PixelFormat
 98 PixelFormat
 99 List·all·pixel·format·supported.
 100 Definition:·SILLYBase.h:60
 101 SILLY::ImageContext
 102 Store·the·data·needed·by·an·ImageLoader·object·during·the·parsing·of·an·image.
 103 Definition:·SILLYImageContext.h:44
 104 SILLY::ImageContext::setNextPixel
 105 void·setNextPixel(byte·red,·byte·green,·byte·bleu,·byte·alpha)
 106 Set·the·next·pixel·of·the·image.
 107 SILLY::ImageContext::setDestination
 108 void·setDestination(byte·*pixels,·size_t·length,·PixelFormat·format)
 109 Set·the·destination·of·the·loading.
 110 SILLY::ImageContext::ImageContext
 111 ImageContext(size_t·width,·size_t·height)
 112 Constructor.
 113 SILLY::ImageContext::~ImageContext
 114 virtual·~ImageContext()
 115 Destructor.
  
50 ===============================================================================116 ===============================================================================
51 ·····Generated·by [doxygen]·1.9.4117 ·····Generated·by [doxygen]·1.9.4
22.2 KB
./usr/share/doc/libsilly-doc/html/a00113_source.html
    
Offset 1, 15 lines modifiedOffset 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">2 <html·xmlns="http://www.w3.org/1999/xhtml">
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.4"/>6 <meta·name="generator"·content="Doxygen·1.9.4"/>
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.h·Source·File</title>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 39, 23 lines modifiedOffset 39, 23 lines modified
39 <div·id="main-nav"></div>39 <div·id="main-nav"></div>
40 <div·id="nav-path"·class="navpath">40 <div·id="nav-path"·class="navpath">
41 ··<ul>41 ··<ul>
42 <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>42 <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>
43 </div>43 </div>
44 </div><!--·top·-->44 </div><!--·top·-->
45 <div·class="header">45 <div·class="header">
46 ··<div·class="headertitle"><div·class="title">SILLY.h</div></div>46 ··<div·class="headertitle"><div·class="title">SILLYBase.h</div></div>
47 </div><!--header-->47 </div><!--header-->
48 <div·class="contents">48 <div·class="contents">
49 <div·class="fragment"><div·class="line"><a·id="l00001"·name="l00001"></a><span·class="lineno">····1</span><span·class="comment">/***********************************************************************</span></div>49 <div·class="fragment"><div·class="line"><a·id="l00001"·name="l00001"></a><span·class="lineno">····1</span><span·class="comment">/***********************************************************************</span></div>
50 <div·class="line"><a·id="l00002"·name="l00002"></a><span·class="lineno">····2</span><span·class="comment">····filename:···SILLY.h</span></div>50 <div·class="line"><a·id="l00002"·name="l00002"></a><span·class="lineno">····2</span><span·class="comment">····filename:···SILLYBase.h</span></div>
51 <div·class="line"><a·id="l00003"·name="l00003"></a><span·class="lineno">····3</span><span·class="comment">····created:····10·Jun·2006</span></div>51 <div·class="line"><a·id="l00003"·name="l00003"></a><span·class="lineno">····3</span><span·class="comment">····created:····2006/06/10</span></div>
52 <div·class="line"><a·id="l00004"·name="l00004"></a><span·class="lineno">····4</span><span·class="comment">····author:·····Olivier·Delannoy</span></div>52 <div·class="line"><a·id="l00004"·name="l00004"></a><span·class="lineno">····4</span><span·class="comment">····author:·····Olivier·Delannoy</span></div>
53 <div·class="line"><a·id="l00005"·name="l00005"></a><span·class="lineno">····5</span><span·class="comment"></span>·</div>53 <div·class="line"><a·id="l00005"·name="l00005"></a><span·class="lineno">····5</span><span·class="comment"></span>·</div>
54 <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>54 <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>
55 <div·class="line"><a·id="l00007"·name="l00007"></a><span·class="lineno">····7</span><span·class="comment">*************************************************************************/</span></div>55 <div·class="line"><a·id="l00007"·name="l00007"></a><span·class="lineno">····7</span><span·class="comment">*************************************************************************/</span></div>
56 <div·class="line"><a·id="l00008"·name="l00008"></a><span·class="lineno">····8</span><span·class="comment">/***************************************************************************</span></div>56 <div·class="line"><a·id="l00008"·name="l00008"></a><span·class="lineno">····8</span><span·class="comment">/***************************************************************************</span></div>
57 <div·class="line"><a·id="l00009"·name="l00009"></a><span·class="lineno">····9</span><span·class="comment">·*···Copyright·(C)·2004·-·2006·Paul·D·Turner·&amp;·The·CEGUI·Development·Team</span></div>57 <div·class="line"><a·id="l00009"·name="l00009"></a><span·class="lineno">····9</span><span·class="comment">·*···Copyright·(C)·2004·-·2006·Paul·D·Turner·&amp;·The·CEGUI·Development·Team</span></div>
58 <div·class="line"><a·id="l00010"·name="l00010"></a><span·class="lineno">···10</span><span·class="comment">·*</span></div>58 <div·class="line"><a·id="l00010"·name="l00010"></a><span·class="lineno">···10</span><span·class="comment">·*</span></div>
59 <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>59 <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>
60 <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>60 <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>
61 <div·class="line"><a·id="l00013"·name="l00013"></a><span·class="lineno">···13</span><span·class="comment">·*···&quot;Software&quot;),·to·deal·in·the·Software·without·restriction,·including</span></div>61 <div·class="line"><a·id="l00013"·name="l00013"></a><span·class="lineno">···13</span><span·class="comment">·*···&quot;Software&quot;),·to·deal·in·the·Software·without·restriction,·including</span></div>
Offset 71, 35 lines modifiedOffset 71, 67 lines modified
71 <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>71 <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>
72 <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>72 <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>
73 <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>73 <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>
74 <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>74 <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>
75 <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>75 <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>
76 <div·class="line"><a·id="l00028"·name="l00028"></a><span·class="lineno">···28</span><span·class="comment">·*···OTHER·DEALINGS·IN·THE·SOFTWARE.</span></div>76 <div·class="line"><a·id="l00028"·name="l00028"></a><span·class="lineno">···28</span><span·class="comment">·*···OTHER·DEALINGS·IN·THE·SOFTWARE.</span></div>
77 <div·class="line"><a·id="l00029"·name="l00029"></a><span·class="lineno">···29</span><span·class="comment">·***************************************************************************/</span></div>77 <div·class="line"><a·id="l00029"·name="l00029"></a><span·class="lineno">···29</span><span·class="comment">·***************************************************************************/</span></div>
78 <div·class="line"><a·id="l00030"·name="l00030"></a><span·class="lineno">···30</span><span·class="preprocessor">#ifndef·_SILLY_h_·</span></div>78 <div·class="line"><a·id="l00030"·name="l00030"></a><span·class="lineno">···30</span><span·class="preprocessor">#ifndef·_SILLYBase_h_·</span></div>
79 <div·class="line"><a·id="l00031"·name="l00031"></a><span·class="lineno">···31</span><span·class="preprocessor">#define·_SILLY_h_</span></div>79 <div·class="line"><a·id="l00031"·name="l00031"></a><span·class="lineno">···31</span><span·class="preprocessor">#define·_SILLYBase_h_·</span></div>
 80 <div·class="line"><a·id="l00032"·name="l00032"></a><span·class="lineno">···32</span><span·class="preprocessor">#include·&lt;cassert&gt;</span></div>
 81 <div·class="line"><a·id="l00033"·name="l00033"></a><span·class="lineno">···33</span><span·class="preprocessor">#include·&lt;cstddef&gt;</span></div>
 82 <div·class="line"><a·id="l00034"·name="l00034"></a><span·class="lineno">···34</span>·</div>
 83 <div·class="line"><a·id="l00035"·name="l00035"></a><span·class="lineno">···35</span><span·class="preprocessor">#if·defined(USE_SILLYOPTIONS_H)</span></div>
 84 <div·class="line"><a·id="l00036"·name="l00036"></a><span·class="lineno">···36</span><span·class="preprocessor">#include·&quot;SILLYOptions.h&quot;</span></div>
 85 <div·class="line"><a·id="l00037"·name="l00037"></a><span·class="lineno">···37</span><span·class="preprocessor">#endif</span></div>
 86 <div·class="line"><a·id="l00038"·name="l00038"></a><span·class="lineno">···38</span>·</div>
 87 <div·class="line"><a·id="l00039"·name="l00039"></a><span·class="lineno">···39</span><span·class="preprocessor">#if·defined(_WIN32)·||·defined(__WIN32__)</span></div>
 88 <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>
 89 <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>
 90 <div·class="line"><a·id="l00042"·name="l00042"></a><span·class="lineno">···42</span><span·class="preprocessor">#···ifdef·SILLY_EXPORTS</span></div>
 91 <div·class="line"><a·id="l00043"·name="l00043"></a><span·class="lineno">···43</span><span·class="preprocessor">#·······define·SILLY_EXPORT·__declspec(dllexport)</span></div>
 92 <div·class="line"><a·id="l00044"·name="l00044"></a><span·class="lineno">···44</span><span·class="preprocessor">#···else</span></div>
 93 <div·class="line"><a·id="l00045"·name="l00045"></a><span·class="lineno">···45</span><span·class="preprocessor">#·······define·SILLY_EXPORT·__declspec(dllimport)</span></div>
 94 <div·class="line"><a·id="l00046"·name="l00046"></a><span·class="lineno">···46</span><span·class="preprocessor">#···endif</span></div>
 95 <div·class="line"><a·id="l00047"·name="l00047"></a><span·class="lineno">···47</span><span·class="preprocessor">#else</span></div>
 96 <div·class="line"><a·id="l00048"·name="l00048"></a><span·class="lineno">···48</span><span·class="preprocessor">#···define·SILLY_EXPORT</span></div>
 97 <div·class="line"><a·id="l00049"·name="l00049"></a><span·class="lineno">···49</span><span·class="preprocessor">#endif</span></div>
 98 <div·class="line"><a·id="l00050"·name="l00050"></a><span·class="lineno">···50</span>·</div>
 99 <div·class="line"><a·id="l00051"·name="l00051"></a><span·class="lineno">···51</span><span·class="comment">//·Start·of·section·namespace·SILLY·</span></div>
80 <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>100 <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>
81 <div·class="line"><a·id="l00110"·name="l00110"></a><span·class="lineno">··110</span>{</div>101 <div·class="line"><a·id="l00053"·name="l00053"></a><span·class="lineno">···53</span>{</div>
82 <div·class="line"><a·id="l00111"·name="l00111"></a><span·class="lineno">··111</span>··</div> 
83 <div·class="line"><a·id="l00112"·name="l00112"></a><span·class="lineno">··112</span>}</div> 
84 <div·class="line"><a·id="l00113"·name="l00113"></a><span·class="lineno">··113</span>·</div> 
85 <div·class="line"><a·id="l00114"·name="l00114"></a><span·class="lineno">··114</span>·</div>102 <div·class="line"><a·id="l00054"·name="l00054"></a><span·class="lineno">···54</span>·</div>
 103 <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>
 104 <div·class="line"><a·id="l00060"·name="l00060"></a><span·class="lineno">···60</span>{</div>
 105 <div·class="line"><a·id="l00061"·name="l00061"></a><span·class="lineno">···61</span>····PF_A1B5G5R5,····<span·class="comment">//&lt;!·16·bits,·pixel·format·is·A1R5G5B5·(GGGBBBBB,ARRRRRGG·on·disk)</span></div>
 106 <div·class="line"><a·id="l00062"·name="l00062"></a><span·class="lineno">···62</span>····PF_RGB,·········<span·class="comment">//&lt;!·24·bits,·pixel·format·is·8·bits·for·R,·G,·B·</span></div>
 107 <div·class="line"><a·id="l00063"·name="l00063"></a><span·class="lineno">···63</span>····PF_RGBA,········<span·class="comment">//&lt;!·32·bits,·pixel·format·is·8·bits·for·R,·G,·B·and·A·channel·····</span></div>
 108 <div·class="line"><a·id="l00064"·name="l00064"></a><span·class="lineno">···64</span>····PF_ORIGIN,······<span·class="comment">//&lt;!·This·format·is·used·when·the·input·storage·use·a·specific·pixel·format·</span></div>
 109 <div·class="line"><a·id="l00065"·name="l00065"></a><span·class="lineno">···65</span>};</div>
 110 <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>
 111 <div·class="line"><a·id="l00071"·name="l00071"></a><span·class="lineno">···71</span>{</div>
 112 <div·class="line"><a·id="l00072"·name="l00072"></a><span·class="lineno">···72</span>····PO_TOP_LEFT,·····<span·class="comment">//&lt;!·The·resulting·image·origine·is·Top·Left</span></div>
 113 <div·class="line"><a·id="l00073"·name="l00073"></a><span·class="lineno">···73</span>····PO_BOTTOM_LEFT,··<span·class="comment">//&lt;!·The·resulting·image·origine·is·Bottom·Left</span></div>
 114 <div·class="line"><a·id="l00074"·name="l00074"></a><span·class="lineno">···74</span>};</div>
86 <div·class="line"><a·id="l00115"·name="l00115"></a><span·class="lineno">··115</span>·</div>115 <div·class="line"><a·id="l00075"·name="l00075"></a><span·class="lineno">···75</span>·</div>
 116 <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>
 117 <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>
87 <div·class="line"><a·id="l00116"·name="l00116"></a><span·class="lineno">··116</span>·</div>118 <div·class="line"><a·id="l00089"·name="l00089"></a><span·class="lineno">···89</span>·</div>
 119 <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>
88 <div·class="line"><a·id="l00117"·name="l00117"></a><span·class="lineno">··117</span><span·class="preprocessor">#include·&quot;SILLYBase.h&quot;</span></div> 
89 <div·class="line"><a·id="l00118"·name="l00118"></a><span·class="lineno">··118</span><span·class="preprocessor">#include·&quot;SILLYDataSource.h&quot;</span>·</div> 
90 <div·class="line"><a·id="l00119"·name="l00119"></a><span·class="lineno">··119</span><span·class="preprocessor">#include·&quot;SILLYFileDataSource.h&quot;</span>·</div> 
91 <div·class="line"><a·id="l00120"·name="l00120"></a><span·class="lineno">··120</span><span·class="preprocessor">#include·&quot;SILLYMemoryDataSource.h&quot;</span>·</div> 
92 <div·class="line"><a·id="l00121"·name="l00121"></a><span·class="lineno">··121</span><span·class="preprocessor">#include·&quot;SILLYImageLoader.h&quot;</span></div> 
93 <div·class="line"><a·id="l00122"·name="l00122"></a><span·class="lineno">··122</span><span·class="preprocessor">#include·&quot;SILLYImageContext.h&quot;</span>·</div> 
94 <div·class="line"><a·id="l00123"·name="l00123"></a><span·class="lineno">··123</span><span·class="preprocessor">#include·&quot;SILLYImageLoaderManager.h&quot;</span>·</div> 
95 <div·class="line"><a·id="l00124"·name="l00124"></a><span·class="lineno">··124</span><span·class="preprocessor">#include·&quot;SILLYImage.h&quot;</span></div> 
96 <div·class="line"><a·id="l00125"·name="l00125"></a><span·class="lineno">··125</span>·</div>120 <div·class="line"><a·id="l00095"·name="l00095"></a><span·class="lineno">···95</span>·</div>
 121 <div·class="line"><a·id="l00096"·name="l00096"></a><span·class="lineno">···96</span>}·<span·class="comment">//·End·of·section·namespace·SILLY·</span></div>
 122 <div·class="line"><a·id="l00097"·name="l00097"></a><span·class="lineno">···97</span>·</div>
97 <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>123 <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>
 124 <div·class="line"><a·id="l00099"·name="l00099"></a><span·class="lineno">···99</span>·</div>
98 <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="a00020_source.html#l00045">SILLYJPGImageContext.cpp:46</a></div></div>125 <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="a00005_source.html#l00045">SILLYJPGImageContext.cpp:46</a></div></div>
 126 <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="a00113_source.html#l00080">SILLYBase.h:80</a></div></div>
 127 <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="a00029_source.html#l00100">SILLYImageLoaderManager.cpp:100</a></div></div>
 128 <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="a00113_source.html#l00059">SILLYBase.h:60</a></div></div>
 129 <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="a00029_source.html#l00087">SILLYImageLoaderManager.cpp:87</a></div></div>
 130 <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="a00113_source.html#l00070">SILLYBase.h:71</a></div></div>
99 </div><!--·fragment·--></div><!--·contents·-->131 </div><!--·fragment·--></div><!--·contents·-->
100 <!--·start·footer·part·-->132 <!--·start·footer·part·-->
101 <hr·class="footer"/><address·class="footer"><small>133 <hr·class="footer"/><address·class="footer"><small>
102 Generated·by&#160;<a·href="https://www.doxygen.org/index.html"><img·class="footer"·src="doxygen.svg"·width="104"·height="31"·alt="doxygen"/></a>·1.9.4134 Generated·by&#160;<a·href="https://www.doxygen.org/index.html"><img·class="footer"·src="doxygen.svg"·width="104"·height="31"·alt="doxygen"/></a>·1.9.4
103 </small></address>135 </small></address>
104 </body>136 </body>
105 </html>137 </html>
3.75 KB
html2text {}
    
Offset 4, 21 lines modifiedOffset 4, 21 lines modified
  
4 Simple·Image·Loading·LibrarY 0.1.04 Simple·Image·Loading·LibrarY 0.1.0
  
5 ····*·build5 ····*·build
6 ····*·reproducible-path6 ····*·reproducible-path
7 ····*·silly-0.1.07 ····*·silly-0.1.0
8 ····*·include8 ····*·include
9 SILLY.h9 SILLYBase.h
10 ·1/***********************************************************************10 ·1/***********************************************************************
11 ·2·filename:·SILLY.h11 ·2·filename:·SILLYBase.h
12 ·3·created:·10·Jun·200612 ·3·created:·2006/06/10
13 ·4·author:·Olivier·Delannoy13 ·4·author:·Olivier·Delannoy
14 ·514 ·5
15 ·6·purpose:·Master·include·for·the·SILLY·library15 ·6·purpose:·Common·header·for·the·SILLY·library
16 ·7*************************************************************************/16 ·7*************************************************************************/
17 ·8/***************************************************************************17 ·8/***************************************************************************
18 ·9·*·Copyright·(C)·2004·-·2006·Paul·D·Turner·&·The·CEGUI·Development·Team18 ·9·*·Copyright·(C)·2004·-·2006·Paul·D·Turner·&·The·CEGUI·Development·Team
19 ·10·*19 ·10·*
20 ·11·*·Permission·is·hereby·granted,·free·of·charge,·to·any·person·obtaining20 ·11·*·Permission·is·hereby·granted,·free·of·charge,·to·any·person·obtaining
21 ·12·*·a·copy·of·this·software·and·associated·documentation·files·(the21 ·12·*·a·copy·of·this·software·and·associated·documentation·files·(the
22 ·13·*·"Software"),·to·deal·in·the·Software·without·restriction,·including22 ·13·*·"Software"),·to·deal·in·the·Software·without·restriction,·including
Offset 35, 33 lines modifiedOffset 35, 82 lines modified
35 ·24·*·MERCHANTABILITY,·FITNESS·FOR·A·PARTICULAR·PURPOSE·AND·NONINFRINGEMENT.35 ·24·*·MERCHANTABILITY,·FITNESS·FOR·A·PARTICULAR·PURPOSE·AND·NONINFRINGEMENT.
36 ·25·*·IN·NO·EVENT·SHALL·THE·AUTHORS·BE·LIABLE·FOR·ANY·CLAIM,·DAMAGES·OR36 ·25·*·IN·NO·EVENT·SHALL·THE·AUTHORS·BE·LIABLE·FOR·ANY·CLAIM,·DAMAGES·OR
37 ·26·*·OTHER·LIABILITY,·WHETHER·IN·AN·ACTION·OF·CONTRACT,·TORT·OR·OTHERWISE,37 ·26·*·OTHER·LIABILITY,·WHETHER·IN·AN·ACTION·OF·CONTRACT,·TORT·OR·OTHERWISE,
38 ·27·*·ARISING·FROM,·OUT·OF·OR·IN·CONNECTION·WITH·THE·SOFTWARE·OR·THE·USE·OR38 ·27·*·ARISING·FROM,·OUT·OF·OR·IN·CONNECTION·WITH·THE·SOFTWARE·OR·THE·USE·OR
39 ·28·*·OTHER·DEALINGS·IN·THE·SOFTWARE.39 ·28·*·OTHER·DEALINGS·IN·THE·SOFTWARE.
40 ·2940 ·29
41 ***************************************************************************/41 ***************************************************************************/
42 ·30#ifndef·_SILLY_h_42 ·30#ifndef·_SILLYBase_h_
43 ·31#define·_SILLY_h_43 ·31#define·_SILLYBase_h_
 44 ·32#include·<cassert>
 45 ·33#include·<cstddef>
 46 ·34
 47 ·35#if·defined(USE_SILLYOPTIONS_H)
 48 ·36#include·"SILLYOptions.h"
 49 ·37#endif
 50 ·38
 51 ·39#if·defined(_WIN32)·||·defined(__WIN32__)
 52 ·40#·undef·SILLY_OPT_INLINE·//·No·inlining
 53 ·41#·undef·SILLY_BE·//·Little·Endian
 54 ·42#·ifdef·SILLY_EXPORTS
 55 ·43#·define·SILLY_EXPORT·__declspec(dllexport)
 56 ·44#·else
 57 ·45#·define·SILLY_EXPORT·__declspec(dllimport)
 58 ·46#·endif
 59 ·47#else
 60 ·48#·define·SILLY_EXPORT
 61 ·49#endif
 62 ·50
 63 ·51//·Start·of·section·namespace·SILLY
44 ·109namespace·SILLY64 ·52namespace·SILLY
45 ·110{ 
46 ·111 
47 ·112} 
48 ·113 
49 ·114 
50 ·115 
51 ·116 
52 ·117#include·"SILLYBase.h" 
53 ·118#include·"SILLYDataSource.h" 
54 ·119#include·"SILLYFileDataSource.h" 
55 ·120#include·"SILLYMemoryDataSource.h" 
56 ·121#include·"SILLYImageLoader.h" 
57 ·122#include·"SILLYImageContext.h" 
58 ·123#include·"SILLYImageLoaderManager.h" 
59 ·124#include·"SILLYImage.h" 
60 ·12565 ·53{
 66 ·54
 67 59enum·PixelFormat
 68 ·60{
 69 ·61·PF_A1B5G5R5,·//<!·16·bits,·pixel·format·is·A1R5G5B5·(GGGBBBBB,ARRRRRGG·on
 70 disk)
 71 ·62·PF_RGB,·//<!·24·bits,·pixel·format·is·8·bits·for·R,·G,·B
 72 ·63·PF_RGBA,·//<!·32·bits,·pixel·format·is·8·bits·for·R,·G,·B·and·A·channel
 73 ·64·PF_ORIGIN,·//<!·This·format·is·used·when·the·input·storage·use·a·specific
 74 pixel·format
 75 ·65};
 76 70enum·PixelOrigin
 77 ·71{
 78 ·72·PO_TOP_LEFT,·//<!·The·resulting·image·origine·is·Top·Left
 79 ·73·PO_BOTTOM_LEFT,·//<!·The·resulting·image·origine·is·Bottom·Left
 80 ·74};
 81 ·75
 82 80typedef·unsigned·char·byte;
 83 ·88bool·SILLY_EXPORT·SILLYInit();
 84 ·89
 85 ·94void·SILLY_EXPORT·SILLYCleanup();
 86 ·95
 87 ·96}·//·End·of·section·namespace·SILLY
 88 ·97
61 ·126#endif·//·end·of·guard·_SILLY_h_89 ·98#endif·//·end·of·guard·_SILLYBase_h_
 90 ·99
62 SILLY91 SILLY
63 Simple·Image·Loading·LibrarY·namespace.92 Simple·Image·Loading·LibrarY·namespace.
64 Definition:·SILLYJPGImageContext.cpp:4693 Definition:·SILLYJPGImageContext.cpp:46
 94 SILLY::byte
 95 unsigned·char·byte
 96 Typename·for·a·byte.
 97 Definition:·SILLYBase.h:80
 98 SILLY::SILLYCleanup
 99 void·SILLYCleanup()
 100 Cleanup·SILLY·library·internal.
 101 Definition:·SILLYImageLoaderManager.cpp:100
 102 SILLY::PixelFormat
 103 PixelFormat
 104 List·all·pixel·format·supported.
 105 Definition:·SILLYBase.h:60
 106 SILLY::SILLYInit
 107 bool·SILLYInit()
 108 Initialize·the·SILLY·Library.
 109 Definition:·SILLYImageLoaderManager.cpp:87
 110 SILLY::PixelOrigin
 111 PixelOrigin
 112 List·all·pixel·origin·supported.
 113 Definition:·SILLYBase.h:71
  
65 ===============================================================================114 ===============================================================================
66 ·····Generated·by [doxygen]·1.9.4115 ·····Generated·by [doxygen]·1.9.4
29.4 KB
./usr/share/doc/libsilly-doc/html/a00116_source.html
    
Offset 1, 15 lines modifiedOffset 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">2 <html·xmlns="http://www.w3.org/1999/xhtml">
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.4"/>6 <meta·name="generator"·content="Doxygen·1.9.4"/>
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/SILLYImageLoader.h·Source·File</title>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 39, 95 lines modifiedOffset 39, 79 lines modified
39 <div·id="main-nav"></div>39 <div·id="main-nav"></div>
40 <div·id="nav-path"·class="navpath">40 <div·id="nav-path"·class="navpath">
41 ··<ul>41 ··<ul>
42 <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>42 <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>
43 </div>43 </div>
44 </div><!--·top·-->44 </div><!--·top·-->
45 <div·class="header">45 <div·class="header">
46 ··<div·class="headertitle"><div·class="title">SILLYImageLoader.h</div></div>46 ··<div·class="headertitle"><div·class="title">SILLYImageLoaderManager.icpp</div></div>
47 </div><!--header-->47 </div><!--header-->
48 <div·class="contents">48 <div·class="contents">
49 <div·class="fragment"><div·class="line"><a·id="l00001"·name="l00001"></a><span·class="lineno">····1</span><span·class="comment">/***********************************************************************</span></div>49 <div·class="fragment"><div·class="line"><a·id="l00001"·name="l00001"></a><span·class="lineno">····1</span>/***********************************************************************</div>
50 <div·class="line"><a·id="l00002"·name="l00002"></a><span·class="lineno">····2</span><span·class="comment">····filename:···SILLYImageLoader.h</span></div>50 <div·class="line"><a·id="l00002"·name="l00002"></a><span·class="lineno">····2</span>····filename:···SILLYImageLoaderManager.icpp·</div>
51 <div·class="line"><a·id="l00003"·name="l00003"></a><span·class="lineno">····3</span><span·class="comment">····created:····10·Jun·2006</span></div>51 <div·class="line"><a·id="l00003"·name="l00003"></a><span·class="lineno">····3</span>····created:····10·Jun·2006</div>
52 <div·class="line"><a·id="l00004"·name="l00004"></a><span·class="lineno">····4</span><span·class="comment">····author:·····Olivier·Delannoy</span></div>52 <div·class="line"><a·id="l00004"·name="l00004"></a><span·class="lineno">····4</span>····author:·····Olivier·Delannoy</div>
53 <div·class="line"><a·id="l00005"·name="l00005"></a><span·class="lineno">····5</span><span·class="comment"></span>·</div>53 <div·class="line"><a·id="l00005"·name="l00005"></a><span·class="lineno">····5</span>·</div>
54 <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>54 <div·class="line"><a·id="l00006"·name="l00006"></a><span·class="lineno">····6</span>····purpose:····Inline·definition·for·ImageLoaderManager·class···</div>
55 <div·class="line"><a·id="l00007"·name="l00007"></a><span·class="lineno">····7</span><span·class="comment">*************************************************************************/</span></div>55 <div·class="line"><a·id="l00007"·name="l00007"></a><span·class="lineno">····7</span>*************************************************************************/</div>
56 <div·class="line"><a·id="l00008"·name="l00008"></a><span·class="lineno">····8</span><span·class="comment">/***************************************************************************</span></div>56 <div·class="line"><a·id="l00008"·name="l00008"></a><span·class="lineno">····8</span>/***************************************************************************</div>
57 <div·class="line"><a·id="l00009"·name="l00009"></a><span·class="lineno">····9</span><span·class="comment">·*···Copyright·(C)·2004·-·2006·Paul·D·Turner·&amp;·The·CEGUI·Development·Team</span></div>57 <div·class="line"><a·id="l00009"·name="l00009"></a><span·class="lineno">····9</span>·*···Copyright·(C)·2004·-·2006·Paul·D·Turner·&amp;·The·CEGUI·Development·Team</div>
58 <div·class="line"><a·id="l00010"·name="l00010"></a><span·class="lineno">···10</span><span·class="comment">·*</span></div>58 <div·class="line"><a·id="l00010"·name="l00010"></a><span·class="lineno">···10</span>·*</div>
59 <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>59 <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>
60 <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>60 <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>
61 <div·class="line"><a·id="l00013"·name="l00013"></a><span·class="lineno">···13</span><span·class="comment">·*···&quot;Software&quot;),·to·deal·in·the·Software·without·restriction,·including</span></div>61 <div·class="line"><a·id="l00013"·name="l00013"></a><span·class="lineno">···13</span>·*···&quot;Software&quot;),·to·deal·in·the·Software·without·restriction,·including</div>
62 <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>62 <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>
63 <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>63 <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>
64 <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>64 <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>
65 <div·class="line"><a·id="l00017"·name="l00017"></a><span·class="lineno">···17</span><span·class="comment">·*···the·following·conditions:</span></div>65 <div·class="line"><a·id="l00017"·name="l00017"></a><span·class="lineno">···17</span>·*···the·following·conditions:</div>
66 <div·class="line"><a·id="l00018"·name="l00018"></a><span·class="lineno">···18</span><span·class="comment">·*</span></div>66 <div·class="line"><a·id="l00018"·name="l00018"></a><span·class="lineno">···18</span>·*</div>
67 <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>67 <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>
68 <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>68 <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>
69 <div·class="line"><a·id="l00021"·name="l00021"></a><span·class="lineno">···21</span><span·class="comment">·*</span></div>69 <div·class="line"><a·id="l00021"·name="l00021"></a><span·class="lineno">···21</span>·*</div>
70 <div·class="line"><a·id="l00022"·name="l00022"></a><span·class="lineno">···22</span><span·class="comment">·*···THE·SOFTWARE·IS·PROVIDED·&quot;AS·IS&quot;,·WITHOUT·WARRANTY·OF·ANY·KIND,</span></div>70 <div·class="line"><a·id="l00022"·name="l00022"></a><span·class="lineno">···22</span>·*···THE·SOFTWARE·IS·PROVIDED·&quot;AS·IS&quot;,·WITHOUT·WARRANTY·OF·ANY·KIND,</div>
71 <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>71 <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>
72 <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>72 <div·class="line"><a·id="l00024"·name="l00024"></a><span·class="lineno">···24</span>·*···MERCHANTABILITY,·FITNESS·FOR·A·PARTICULAR·PURPOSE·AND·NONINFRINGEMENT.</div>
73 <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>73 <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>
74 <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>74 <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>
75 <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>75 <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>
76 <div·class="line"><a·id="l00028"·name="l00028"></a><span·class="lineno">···28</span><span·class="comment">·*···OTHER·DEALINGS·IN·THE·SOFTWARE.</span></div>76 <div·class="line"><a·id="l00028"·name="l00028"></a><span·class="lineno">···28</span>·*···OTHER·DEALINGS·IN·THE·SOFTWARE.</div>
77 <div·class="line"><a·id="l00029"·name="l00029"></a><span·class="lineno">···29</span><span·class="comment">·***************************************************************************/</span></div>77 <div·class="line"><a·id="l00029"·name="l00029"></a><span·class="lineno">···29</span>·***************************************************************************/</div>
 78 <div·class="line"><a·id="l00030"·name="l00030"></a><span·class="lineno">···30</span>·</div>
78 <div·class="line"><a·id="l00030"·name="l00030"></a><span·class="lineno">···30</span><span·class="preprocessor">#ifndef·_SILLYImageLoader_h_·</span></div> 
79 <div·class="line"><a·id="l00031"·name="l00031"></a><span·class="lineno">···31</span><span·class="preprocessor">#define·_SILLYImageLoader_h_</span></div> 
80 <div·class="line"><a·id="l00032"·name="l00032"></a><span·class="lineno">···32</span><span·class="preprocessor">#include·&quot;SILLYBase.h&quot;</span></div> 
81 <div·class="line"><a·id="l00033"·name="l00033"></a><span·class="lineno">···33</span><span·class="comment">//·Start·of·section·namespace·SILLY·</span></div>79 <div·class="line"><a·id="l00031"·name="l00031"></a><span·class="lineno">···31</span>//·Start·of·section·namespace·SILLY</div>
82 <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>80 <div·class="line"><a·id="l00032"·name="l00032"></a><span·class="lineno">···32</span>namespace·SILLY</div>
 81 <div·class="line"><a·id="l00033"·name="l00033"></a><span·class="lineno">···33</span>{</div>
 82 <div·class="line"><a·id="l00034"·name="l00034"></a><span·class="lineno">···34</span>inline·ImageLoaderList::iterator·ImageLoaderManager::begin()</div>
83 <div·class="line"><a·id="l00035"·name="l00035"></a><span·class="lineno">···35</span>{</div>83 <div·class="line"><a·id="l00035"·name="l00035"></a><span·class="lineno">···35</span>{</div>
84 <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> 
85 <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>84 <div·class="line"><a·id="l00036"·name="l00036"></a><span·class="lineno">···36</span>····return·d_loaders.begin();</div>
 85 <div·class="line"><a·id="l00037"·name="l00037"></a><span·class="lineno">···37</span>}</div>
86 <div·class="line"><a·id="l00038"·name="l00038"></a><span·class="lineno">···38</span>·</div>86 <div·class="line"><a·id="l00038"·name="l00038"></a><span·class="lineno">···38</span>·</div>
87 <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>87 <div·class="line"><a·id="l00039"·name="l00039"></a><span·class="lineno">···39</span>inline·ImageLoaderList::iterator·ImageLoaderManager::end()·</div>
 88 <div·class="line"><a·id="l00040"·name="l00040"></a><span·class="lineno">···40</span>{</div>
 89 <div·class="line"><a·id="l00041"·name="l00041"></a><span·class="lineno">···41</span>····return·d_loaders.end();</div>
 90 <div·class="line"><a·id="l00042"·name="l00042"></a><span·class="lineno">···42</span>}</div>
 91 <div·class="line"><a·id="l00043"·name="l00043"></a><span·class="lineno">···43</span>·</div>
 92 <div·class="line"><a·id="l00044"·name="l00044"></a><span·class="lineno">···44</span>inline·ImageLoaderManager*·ImageLoaderManager::getSingletonPtr()</div>
 93 <div·class="line"><a·id="l00045"·name="l00045"></a><span·class="lineno">···45</span>{</div>
 94 <div·class="line"><a·id="l00046"·name="l00046"></a><span·class="lineno">···46</span>····return·d_instance;</div>
88 <div·class="line"><a·id="l00047"·name="l00047"></a><span·class="lineno">···47</span>{</div>95 <div·class="line"><a·id="l00047"·name="l00047"></a><span·class="lineno">···47</span>}</div>
89 <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="l00048"·name="l00048"></a><span·class="lineno">···48</span>·</div>
90 <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">cons[·...·truncated·by·diffoscope;·len:·54,·SHA:·d1b49fc62acba43ecbe3cd377cce414412b517e4a2e648adc8f9503d9f5d7bbb·...·]</div>97 <div·class="line"><a·id="l00049"·name="l00049"></a><span·class="lineno">···49</span>inline·ImageLoaderManager&amp;·ImageLoaderManager::getSingleton()</div>
 98 <div·class="line"><a·id="l00050"·name="l00050"></a><span·class="lineno">···50</span>{</div>
 99 <div·class="line"><a·id="l00051"·name="l00051"></a><span·class="lineno">···51</span>····assert(d_instance·&amp;&amp;·&quot;ASSERT:·Singleton·object·not·yet·created&quot;);</div>
 100 <div·class="line"><a·id="l00052"·name="l00052"></a><span·class="lineno">···52</span>····return·*d_instance;</div>
91 <div·class="line"><a·id="l00053"·name="l00053"></a><span·class="lineno">···53</span><span·class="keyword">public</span>:</div>101 <div·class="line"><a·id="l00053"·name="l00053"></a><span·class="lineno">···53</span>}</div>
92 <div·class="line"><a·id="l00054"·name="l00054"></a><span·class="lineno">···54</span>········</div>102 <div·class="line"><a·id="l00054"·name="l00054"></a><span·class="lineno">···54</span>·</div>
93 <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">~ImageL[·...·truncated·by·diffoscope;·len:·12,·SHA:·ebb6ee2abb5d33b88e9a131b27580c61da21ffcd3c4a6f53175aba6f8cbb6eb2·...·]</div>103 <div·class="line"><a·id="l00055"·name="l00055"></a><span·class="lineno">···55</span>inline·void·ImageLoaderManager::add(ImageLoader*·loader)</div>
 104 <div·class="line"><a·id="l00056"·name="l00056"></a><span·class="lineno">···56</span>{</div>
 105 <div·class="line"><a·id="l00057"·name="l00057"></a><span·class="lineno">···57</span>····assert(loader·&amp;&amp;·&quot;ASSERT:·adding·a·none·existing·loader·object&quot;);</div>
 106 <div·class="line"><a·id="l00058"·name="l00058"></a><span·class="lineno">···58</span>····d_loaders.push_back(loader);</div>
 107 <div·class="line"><a·id="l00059"·name="l00059"></a><span·class="lineno">···59</span>}</div>
94 <div·class="line"><a·id="l00060"·name="l00060"></a><span·class="lineno">···60</span>·</div>108 <div·class="line"><a·id="l00060"·name="l00060"></a><span·class="lineno">···60</span>·</div>
95 <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_functio[·...·truncated·by·diffoscope;·len:·260,·SHA:·073b84ecccdf527026ebf57658dc2c01a8a0c7c344366d01fc3bcfd3632db978·...·]</div>109 <div·class="line"><a·id="l00061"·name="l00061"></a><span·class="lineno">···61</span>}·//·End·of·section·namespace·SILLY</div>
96 <div·class="line"><a·id="l00072"·name="l00072"></a><span·class="lineno">···72</span>·</div>110 <div·class="line"><a·id="l00062"·name="l00062"></a><span·class="lineno">···62</span>·</div>
97 <div·class="line"><a·id="l00073"·name="l00073"></a><span·class="lineno">···73</span>·</div> 
98 <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> 
99 <div·class="line"><a·id="l00087"·name="l00087"></a><span·class="lineno">···87</span>····</div> 
100 <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> 
101 <div·class="line"><a·id="l00095"·name="l00095"></a><span·class="lineno">···95</span>····</div> 
102 <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> 
103 <div·class="line"><a·id="l00101"·name="l00101"></a><span·class="lineno">··101</span><span·class="keyword">private</span>:</div> 
104 <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> 
105 <div·class="line"><a·id="l00103"·name="l00103"></a><span·class="lineno">··103</span>·</div> 
106 <div·class="line"><a·id="l00104"·name="l00104"></a><span·class="lineno">··104</span>};</div> 
107 <div·class="line"><a·id="l00105"·name="l00105"></a><span·class="lineno">··105</span>··</div> 
108 <div·class="line"><a·id="l00106"·name="l00106"></a><span·class="lineno">··106</span>}·<span·class="comment">//·End·of·section·namespace·SILLY·</span></div> 
109 <div·class="line"><a·id="l00107"·name="l00107"></a><span·class="lineno">··107</span>·</div> 
110 <div·class="line"><a·id="l00108"·name="l00108"></a><span·class="lineno">··108</span><span·class="comment">//·Inclue·inline·function·when·needed·</span></div> 
111 <div·class="line"><a·id="l00109"·name="l00109"></a><span·class="lineno">··109</span><span·class="preprocessor">#ifdef·SILLY_OPT_INLINE</span></div> 
112 <div·class="line"><a·id="l00110"·name="l00110"></a><span·class="lineno">··110</span><span·class="preprocessor">#include·&quot;SILLYImageLoader.icpp&quot;</span></div> 
113 <div·class="line"><a·id="l00111"·name="l00111"></a><span·class="lineno">··111</span><span·class="preprocessor">#endif·</span></div> 
114 <div·class="line"><a·id="l00112"·name="l00112"></a><span·class="lineno">··112</span>·</div> 
115 <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> 
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="a00020_source.html#l00045">SILLYJPGImageContext.cpp:46</a></div></div> 
117 <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="a00053_source.html#l00059">SILLYBase.h:60</a></div></div> 
118 <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="a00053_source.html#l00070">SILLYBase.h:71</a></div></div> 
119 <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="a00122_source.html#l00046">SILLYDataSource.h:47</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="a00047_source.html#l00043">SILLYImageContext.h:44</a></div></div> 
121 <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="a00116_source.html#l00046">SILLYImageLoader.h:47</a></div></div> 
122 <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> 
123 <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·&amp;formatSource,·DataSource·*data)=0</div><div·class="ttdoc">Parse·the·header·of·the·image·and·fill·the·header·struct.</div></div> 
124 <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> 
125 <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> 
126 <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> 
127 </div><!--·fragment·--></div><!--·contents·-->111 </div><!--·fragment·--></div><!--·contents·-->
128 <!--·start·footer·part·-->112 <!--·start·footer·part·-->
129 <hr·class="footer"/><address·class="footer"><small>113 <hr·class="footer"/><address·class="footer"><small>
130 Generated·by&#160;<a·href="https://www.doxygen.org/index.html"><img·class="footer"·src="doxygen.svg"·width="104"·height="31"·alt="doxygen"/></a>·1.9.4114 Generated·by&#160;<a·href="https://www.doxygen.org/index.html"><img·class="footer"·src="doxygen.svg"·width="104"·height="31"·alt="doxygen"/></a>·1.9.4
131 </small></address>115 </small></address>
Max diff block lines reached; 9/25394 bytes (0.04%) of diff not shown.
4.5 KB
html2text {}
    
Offset 4, 21 lines modifiedOffset 4, 21 lines modified
  
4 Simple·Image·Loading·LibrarY 0.1.04 Simple·Image·Loading·LibrarY 0.1.0
  
5 ····*·build5 ····*·build
6 ····*·reproducible-path6 ····*·reproducible-path
7 ····*·silly-0.1.07 ····*·silly-0.1.0
8 ····*·include8 ····*·include
9 SILLYImageLoader.h9 SILLYImageLoaderManager.icpp
10 ·1/***********************************************************************10 ·1/***********************************************************************
11 ·2·filename:·SILLYImageLoader.h11 ·2·filename:·SILLYImageLoaderManager.icpp
12 ·3·created:·10·Jun·200612 ·3·created:·10·Jun·2006
13 ·4·author:·Olivier·Delannoy13 ·4·author:·Olivier·Delannoy
14 ·514 ·5
15 ·6·purpose:·Abstract·class·for·all·image·loader15 ·6·purpose:·Inline·definition·for·ImageLoaderManager·class
16 ·7*************************************************************************/16 ·7*************************************************************************/
17 ·8/***************************************************************************17 ·8/***************************************************************************
18 ·9·*·Copyright·(C)·2004·-·2006·Paul·D·Turner·&·The·CEGUI·Development·Team18 ·9·*·Copyright·(C)·2004·-·2006·Paul·D·Turner·&·The·CEGUI·Development·Team
19 ·10·*19 ·10·*
20 ·11·*·Permission·is·hereby·granted,·free·of·charge,·to·any·person·obtaining20 ·11·*·Permission·is·hereby·granted,·free·of·charge,·to·any·person·obtaining
21 ·12·*·a·copy·of·this·software·and·associated·documentation·files·(the21 ·12·*·a·copy·of·this·software·and·associated·documentation·files·(the
22 ·13·*·"Software"),·to·deal·in·the·Software·without·restriction,·including22 ·13·*·"Software"),·to·deal·in·the·Software·without·restriction,·including
Offset 35, 87 lines modifiedOffset 35, 43 lines modified
35 ·24·*·MERCHANTABILITY,·FITNESS·FOR·A·PARTICULAR·PURPOSE·AND·NONINFRINGEMENT.35 ·24·*·MERCHANTABILITY,·FITNESS·FOR·A·PARTICULAR·PURPOSE·AND·NONINFRINGEMENT.
36 ·25·*·IN·NO·EVENT·SHALL·THE·AUTHORS·BE·LIABLE·FOR·ANY·CLAIM,·DAMAGES·OR36 ·25·*·IN·NO·EVENT·SHALL·THE·AUTHORS·BE·LIABLE·FOR·ANY·CLAIM,·DAMAGES·OR
37 ·26·*·OTHER·LIABILITY,·WHETHER·IN·AN·ACTION·OF·CONTRACT,·TORT·OR·OTHERWISE,37 ·26·*·OTHER·LIABILITY,·WHETHER·IN·AN·ACTION·OF·CONTRACT,·TORT·OR·OTHERWISE,
38 ·27·*·ARISING·FROM,·OUT·OF·OR·IN·CONNECTION·WITH·THE·SOFTWARE·OR·THE·USE·OR38 ·27·*·ARISING·FROM,·OUT·OF·OR·IN·CONNECTION·WITH·THE·SOFTWARE·OR·THE·USE·OR
39 ·28·*·OTHER·DEALINGS·IN·THE·SOFTWARE.39 ·28·*·OTHER·DEALINGS·IN·THE·SOFTWARE.
40 ·2940 ·29
41 ***************************************************************************/41 ***************************************************************************/
 42 ·30
42 ·30#ifndef·_SILLYImageLoader_h_ 
43 ·31#define·_SILLYImageLoader_h_ 
44 ·32#include·"SILLYBase.h" 
45 ·33//·Start·of·section·namespace·SILLY43 ·31//·Start·of·section·namespace·SILLY
46 ·34namespace·SILLY44 ·32namespace·SILLY
 45 ·33{
 46 ·34inline·ImageLoaderList::iterator·ImageLoaderManager::begin()
47 ·35{47 ·35{
48 ·36class·DataSource;·//·Forward·declaration 
49 ·37class·ImageContext;·//·Forward·declaration48 ·36·return·d_loaders.begin();
 49 ·37}
50 ·3850 ·38
51 46class·SILLY_EXPORT·ImageLoader51 ·39inline·ImageLoaderList::iterator·ImageLoaderManager::end()
52 ·47{52 ·40{
53 ·48protected: 
54 52·ImageLoader(const·char*·name); 
55 ·53public:53 ·41·return·d_loaders.end();
 54 ·42}
 55 ·43
 56 ·44inline·ImageLoaderManager*·ImageLoaderManager::getSingletonPtr()
 57 ·45{
 58 ·46·return·d_instance;
 59 ·47}
 60 ·48
 61 ·49inline·ImageLoaderManager&·ImageLoaderManager::getSingleton()
 62 ·50{
 63 ·51·assert(d_instance·&&·"ASSERT:·Singleton·object·not·yet·created");
 64 ·52·return·*d_instance;
 65 ·53}
56 ·5466 ·54
57 59·virtual·~ImageLoader();67 ·55inline·void·ImageLoaderManager::add(ImageLoader*·loader)
 68 ·56{
 69 ·57·assert(loader·&&·"ASSERT:·adding·a·none·existing·loader·object");
 70 ·58·d_loaders.push_back(loader);
 71 ·59}
58 ·6072 ·60
59 71·virtual·ImageContext*·loadHeader(PixelFormat&·formatSource,·DataSource* 
60 data)·=·0; 
61 ·72 
62 ·73 
63 86·virtual·bool·loadImageData(PixelOrigin·origin,·DataSource*·data, 
64 ImageContext*·context)·=·0; 
65 ·87 
66 ·94·void·destroyContext(ImageContext*·context); 
67 ·95 
68 100·const·char*·getIdentifierString()·const; 
69 ·101private: 
70 ·102·const·char*·d_name; 
71 ·103 
72 ·104}; 
73 ·105 
74 ·106}·//·End·of·section·namespace·SILLY73 ·61}·//·End·of·section·namespace·SILLY
 74 ·62
75 ·107 
76 ·108//·Inclue·inline·function·when·needed 
77 ·109#ifdef·SILLY_OPT_INLINE 
78 ·110#include·"SILLYImageLoader.icpp" 
79 ·111#endif 
80 ·112 
81 ·113#endif·//·end·of·guard·_SILLYImageLoader_h_ 
82 SILLY 
83 Simple·Image·Loading·LibrarY·namespace. 
84 Definition:·SILLYJPGImageContext.cpp:46 
85 SILLY::PixelFormat 
86 PixelFormat 
87 List·all·pixel·format·supported. 
88 Definition:·SILLYBase.h:60 
89 SILLY::PixelOrigin 
90 PixelOrigin 
91 List·all·pixel·origin·supported. 
92 Definition:·SILLYBase.h:71 
93 SILLY::DataSource 
94 This·is·an·abstract·class·used·to·provide·data·to·the·loader. 
95 Definition:·SILLYDataSource.h:47 
96 SILLY::ImageContext 
97 Store·the·data·needed·by·an·ImageLoader·object·during·the·parsing·of·an·image. 
98 Definition:·SILLYImageContext.h:44 
99 SILLY::ImageLoader 
100 This·is·an·abstract·class·that·define·the·interface·of·all·image·loader. 
101 Definition:·SILLYImageLoader.h:47 
102 SILLY::ImageLoader::ImageLoader 
103 ImageLoader(const·char·*name) 
104 Constructor. 
105 SILLY::ImageLoader::loadHeader 
106 virtual·ImageContext·*·loadHeader(PixelFormat·&formatSource,·DataSource 
107 *data)=0 
108 Parse·the·header·of·the·image·and·fill·the·header·struct. 
109 SILLY::ImageLoader::loadImageData 
110 virtual·bool·loadImageData(PixelOrigin·origin,·DataSource·*data,·ImageContext 
111 *context)=0 
112 Parse·the·pixels·data·of·the·image·and·fill·the·header·struct. 
113 SILLY::ImageLoader::~ImageLoader 
114 virtual·~ImageLoader() 
115 Destructor. 
116 SILLY::ImageLoader::getIdentifierString 
117 const·char·*·getIdentifierString()·const 
118 Return·the·name·of·the·loader. 
Max diff block lines reached; 116/4587 bytes (2.53%) of diff not shown.
22.3 KB
./usr/share/doc/libsilly-doc/html/a00119_source.html
    
Offset 1, 15 lines modifiedOffset 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">2 <html·xmlns="http://www.w3.org/1999/xhtml">
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.4"/>6 <meta·name="generator"·content="Doxygen·1.9.4"/>
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/SILLYFileDataSource.icpp·Source·File</title>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 39, 67 lines modifiedOffset 39, 77 lines modified
39 <div·id="main-nav"></div>39 <div·id="main-nav"></div>
40 <div·id="nav-path"·class="navpath">40 <div·id="nav-path"·class="navpath">
41 ··<ul>41 ··<ul>
42 <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>42 <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>
43 </div>43 </div>
44 </div><!--·top·-->44 </div><!--·top·-->
45 <div·class="header">45 <div·class="header">
46 ··<div·class="headertitle"><div·class="title">SILLYFileDataSource.icpp</div></div>46 ··<div·class="headertitle"><div·class="title">SILLYDataSource.h</div></div>
47 </div><!--header-->47 </div><!--header-->
48 <div·class="contents">48 <div·class="contents">
49 <div·class="fragment"><div·class="line"><a·id="l00001"·name="l00001"></a><span·class="lineno">····1</span>/***********************************************************************</div>49 <div·class="fragment"><div·class="line"><a·id="l00001"·name="l00001"></a><span·class="lineno">····1</span><span·class="comment">/***********************************************************************</span></div>
50 <div·class="line"><a·id="l00002"·name="l00002"></a><span·class="lineno">····2</span>····filename:···SILLYFileDataSource.icpp·</div>50 <div·class="line"><a·id="l00002"·name="l00002"></a><span·class="lineno">····2</span><span·class="comment">····filename:···SILLYDataSource.h</span></div>
51 <div·class="line"><a·id="l00003"·name="l00003"></a><span·class="lineno">····3</span>····created:····20·Jul·2006</div>51 <div·class="line"><a·id="l00003"·name="l00003"></a><span·class="lineno">····3</span><span·class="comment">····created:····10·Jun·2006</span></div>
52 <div·class="line"><a·id="l00004"·name="l00004"></a><span·class="lineno">····4</span>····author:·····Olivier·Delannoy</div>52 <div·class="line"><a·id="l00004"·name="l00004"></a><span·class="lineno">····4</span><span·class="comment">····author:·····Olivier·Delannoy·</span></div>
53 <div·class="line"><a·id="l00005"·name="l00005"></a><span·class="lineno">····5</span>·</div>53 <div·class="line"><a·id="l00005"·name="l00005"></a><span·class="lineno">····5</span><span·class="comment"></span>·</div>
54 <div·class="line"><a·id="l00006"·name="l00006"></a><span·class="lineno">····6</span>····purpose:····Inline·function·definition·for·the·FileDataSource·class···</div>54 <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>
55 <div·class="line"><a·id="l00007"·name="l00007"></a><span·class="lineno">····7</span>*************************************************************************/</div>55 <div·class="line"><a·id="l00007"·name="l00007"></a><span·class="lineno">····7</span><span·class="comment">*************************************************************************/</span></div>
56 <div·class="line"><a·id="l00008"·name="l00008"></a><span·class="lineno">····8</span>/***************************************************************************</div>56 <div·class="line"><a·id="l00008"·name="l00008"></a><span·class="lineno">····8</span><span·class="comment">/***************************************************************************</span></div>
57 <div·class="line"><a·id="l00009"·name="l00009"></a><span·class="lineno">····9</span>·*···Copyright·(C)·2004·-·2006·Paul·D·Turner·&amp;·The·CEGUI·Development·Team</div>57 <div·class="line"><a·id="l00009"·name="l00009"></a><span·class="lineno">····9</span><span·class="comment">·*···Copyright·(C)·2004·-·2006·Paul·D·Turner·&amp;·The·CEGUI·Development·Team</span></div>
58 <div·class="line"><a·id="l00010"·name="l00010"></a><span·class="lineno">···10</span>·*</div>58 <div·class="line"><a·id="l00010"·name="l00010"></a><span·class="lineno">···10</span><span·class="comment">·*</span></div>
59 <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>59 <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>
60 <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>60 <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>
61 <div·class="line"><a·id="l00013"·name="l00013"></a><span·class="lineno">···13</span>·*···&quot;Software&quot;),·to·deal·in·the·Software·without·restriction,·including</div>61 <div·class="line"><a·id="l00013"·name="l00013"></a><span·class="lineno">···13</span><span·class="comment">·*···&quot;Software&quot;),·to·deal·in·the·Software·without·restriction,·including</span></div>
62 <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>62 <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>
63 <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>63 <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>
64 <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>64 <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>
65 <div·class="line"><a·id="l00017"·name="l00017"></a><span·class="lineno">···17</span>·*···the·following·conditions:</div>65 <div·class="line"><a·id="l00017"·name="l00017"></a><span·class="lineno">···17</span><span·class="comment">·*···the·following·conditions:</span></div>
66 <div·class="line"><a·id="l00018"·name="l00018"></a><span·class="lineno">···18</span>·*</div>66 <div·class="line"><a·id="l00018"·name="l00018"></a><span·class="lineno">···18</span><span·class="comment">·*</span></div>
67 <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>67 <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>
68 <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>68 <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>
69 <div·class="line"><a·id="l00021"·name="l00021"></a><span·class="lineno">···21</span>·*</div>69 <div·class="line"><a·id="l00021"·name="l00021"></a><span·class="lineno">···21</span><span·class="comment">·*</span></div>
70 <div·class="line"><a·id="l00022"·name="l00022"></a><span·class="lineno">···22</span>·*···THE·SOFTWARE·IS·PROVIDED·&quot;AS·IS&quot;,·WITHOUT·WARRANTY·OF·ANY·KIND,</div>70 <div·class="line"><a·id="l00022"·name="l00022"></a><span·class="lineno">···22</span><span·class="comment">·*···THE·SOFTWARE·IS·PROVIDED·&quot;AS·IS&quot;,·WITHOUT·WARRANTY·OF·ANY·KIND,</span></div>
71 <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>71 <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>
72 <div·class="line"><a·id="l00024"·name="l00024"></a><span·class="lineno">···24</span>·*···MERCHANTABILITY,·FITNESS·FOR·A·PARTICULAR·PURPOSE·AND·NONINFRINGEMENT.</div>72 <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>
73 <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>73 <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>
74 <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>74 <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>
75 <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>75 <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>
76 <div·class="line"><a·id="l00028"·name="l00028"></a><span·class="lineno">···28</span>·*···OTHER·DEALINGS·IN·THE·SOFTWARE.</div>76 <div·class="line"><a·id="l00028"·name="l00028"></a><span·class="lineno">···28</span><span·class="comment">·*···OTHER·DEALINGS·IN·THE·SOFTWARE.</span></div>
77 <div·class="line"><a·id="l00029"·name="l00029"></a><span·class="lineno">···29</span>·***************************************************************************/</div>77 <div·class="line"><a·id="l00029"·name="l00029"></a><span·class="lineno">···29</span><span·class="comment">·***************************************************************************/</span></div>
78 <div·class="line"><a·id="l00030"·name="l00030"></a><span·class="lineno">···30</span>·</div> 
79 <div·class="line"><a·id="l00031"·name="l00031"></a><span·class="lineno">···31</span>//·Start·of·section·namespace·SILLY</div>78 <div·class="line"><a·id="l00030"·name="l00030"></a><span·class="lineno">···30</span><span·class="preprocessor">#ifndef·_SILLYDataSource_h_·</span></div>
 79 <div·class="line"><a·id="l00031"·name="l00031"></a><span·class="lineno">···31</span><span·class="preprocessor">#define·_SILLYDataSource_h_</span></div>
80 <div·class="line"><a·id="l00032"·name="l00032"></a><span·class="lineno">···32</span>namespace·SILLY</div>80 <div·class="line"><a·id="l00032"·name="l00032"></a><span·class="lineno">···32</span><span·class="preprocessor">#include·&quot;SILLYBase.h&quot;</span>·</div>
81 <div·class="line"><a·id="l00033"·name="l00033"></a><span·class="lineno">···33</span>{</div>81 <div·class="line"><a·id="l00033"·name="l00033"></a><span·class="lineno">···33</span>·</div>
82 <div·class="line"><a·id="l00034"·name="l00034"></a><span·class="lineno">···34</span>inline·bool·FileDataSource::isValid()·const·</div>82 <div·class="line"><a·id="l00034"·name="l00034"></a><span·class="lineno">···34</span><span·class="comment">//·Start·of·section·namespace·SILLY·</span></div>
 83 <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="l00035"·name="l00035"></a><span·class="lineno">···35</span>{</div>84 <div·class="line"><a·id="l00036"·name="l00036"></a><span·class="lineno">···36</span>{</div>
84 <div·class="line"><a·id="l00036"·name="l00036"></a><span·class="lineno">···36</span>····return·d_error;</div> 
85 <div·class="line"><a·id="l00037"·name="l00037"></a><span·class="lineno">···37</span>}</div>85 <div·class="line"><a·id="l00037"·name="l00037"></a><span·class="lineno">···37</span>·</div>
 86 <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>
86 <div·class="line"><a·id="l00038"·name="l00038"></a><span·class="lineno">···38</span>·</div> 
87 <div·class="line"><a·id="l00039"·name="l00039"></a><span·class="lineno">···39</span>inline·const·byte*·FileDataSource::getDataPtr()·const</div> 
88 <div·class="line"><a·id="l00040"·name="l00040"></a><span·class="lineno">···40</span>{</div> 
89 <div·class="line"><a·id="l00041"·name="l00041"></a><span·class="lineno">···41</span>····return·d_bytes;</div> 
90 <div·class="line"><a·id="l00042"·name="l00042"></a><span·class="lineno">···42</span>}</div> 
91 <div·class="line"><a·id="l00043"·name="l00043"></a><span·class="lineno">···43</span>·</div> 
92 <div·class="line"><a·id="l00044"·name="l00044"></a><span·class="lineno">···44</span>inline·size_t·FileDataSource::getSize()·const</div> 
93 <div·class="line"><a·id="l00045"·name="l00045"></a><span·class="lineno">···45</span>{</div> 
94 <div·class="line"><a·id="l00046"·name="l00046"></a><span·class="lineno">···46</span>····return·d_size;</div> 
95 <div·class="line"><a·id="l00047"·name="l00047"></a><span·class="lineno">···47</span>}</div>87 <div·class="line"><a·id="l00047"·name="l00047"></a><span·class="lineno">···47</span>{</div>
 88 <div·class="line"><a·id="l00048"·name="l00048"></a><span·class="lineno">···48</span><span·class="keyword">public</span>:</div>
 89 <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>
 90 <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>
 91 <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>
 92 <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>
 93 <div·class="line"><a·id="l00070"·name="l00070"></a><span·class="lineno">···70</span>};</div>
 94 <div·class="line"><a·id="l00071"·name="l00071"></a><span·class="lineno">···71</span>··</div>
 95 <div·class="line"><a·id="l00072"·name="l00072"></a><span·class="lineno">···72</span>··</div>
 96 <div·class="line"><a·id="l00073"·name="l00073"></a><span·class="lineno">···73</span>}·<span·class="comment">//·End·of·section·namespace·SILLY·</span></div>
96 <div·class="line"><a·id="l00048"·name="l00048"></a><span·class="lineno">···48</span>·</div>97 <div·class="line"><a·id="l00074"·name="l00074"></a><span·class="lineno">···74</span>·</div>
97 <div·class="line"><a·id="l00049"·name="l00049"></a><span·class="lineno">···49</span>}·//·End·of·section·namespace·SILLY</div>98 <div·class="line"><a·id="l00075"·name="l00075"></a><span·class="lineno">···75</span><span·class="comment">//·Inclue·inline·function·when·needed·</span></div>
 99 <div·class="line"><a·id="l00076"·name="l00076"></a><span·class="lineno">···76</span><span·class="preprocessor">#ifdef·SILLY_OPT_INLINE</span></div>
 100 <div·class="line"><a·id="l00077"·name="l00077"></a><span·class="lineno">···77</span><span·class="preprocessor">#include·&quot;SILLYDataSource.icpp&quot;</span></div>
 101 <div·class="line"><a·id="l00078"·name="l00078"></a><span·class="lineno">···78</span><span·class="preprocessor">#endif·</span></div>
98 <div·class="line"><a·id="l00050"·name="l00050"></a><span·class="lineno">···50</span>·</div>102 <div·class="line"><a·id="l00079"·name="l00079"></a><span·class="lineno">···79</span>·</div>
 103 <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>
 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="a00005_source.html#l00045">SILLYJPGImageContext.cpp:46</a></div></div>
 105 <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="a00119_source.html#l00046">SILLYDataSource.h:47</a></div></div>
 106 <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>
 107 <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>
 108 <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>
99 </div><!--·fragment·--></div><!--·contents·-->109 </div><!--·fragment·--></div><!--·contents·-->
100 <!--·start·footer·part·-->110 <!--·start·footer·part·-->
101 <hr·class="footer"/><address·class="footer"><small>111 <hr·class="footer"/><address·class="footer"><small>
102 Generated·by&#160;<a·href="https://www.doxygen.org/index.html"><img·class="footer"·src="doxygen.svg"·width="104"·height="31"·alt="doxygen"/></a>·1.9.4112 Generated·by&#160;<a·href="https://www.doxygen.org/index.html"><img·class="footer"·src="doxygen.svg"·width="104"·height="31"·alt="doxygen"/></a>·1.9.4
103 </small></address>113 </small></address>
104 </body>114 </body>
105 </html>115 </html>
2.99 KB
html2text {}
    
Offset 4, 21 lines modifiedOffset 4, 21 lines modified
  
4 Simple·Image·Loading·LibrarY 0.1.04 Simple·Image·Loading·LibrarY 0.1.0
  
5 ····*·build5 ····*·build
6 ····*·reproducible-path6 ····*·reproducible-path
7 ····*·silly-0.1.07 ····*·silly-0.1.0
8 ····*·include8 ····*·include
9 SILLYFileDataSource.icpp9 SILLYDataSource.h
10 ·1/***********************************************************************10 ·1/***********************************************************************
11 ·2·filename:·SILLYFileDataSource.icpp11 ·2·filename:·SILLYDataSource.h
12 ·3·created:·20·Jul·200612 ·3·created:·10·Jun·2006
13 ·4·author:·Olivier·Delannoy13 ·4·author:·Olivier·Delannoy
14 ·514 ·5
15 ·6·purpose:·Inline·function·definition·for·the·FileDataSource·class15 ·6·purpose:·SILLY::DataSource·declaration·for·the·SILLY·library
16 ·7*************************************************************************/16 ·7*************************************************************************/
17 ·8/***************************************************************************17 ·8/***************************************************************************
18 ·9·*·Copyright·(C)·2004·-·2006·Paul·D·Turner·&·The·CEGUI·Development·Team18 ·9·*·Copyright·(C)·2004·-·2006·Paul·D·Turner·&·The·CEGUI·Development·Team
19 ·10·*19 ·10·*
20 ·11·*·Permission·is·hereby·granted,·free·of·charge,·to·any·person·obtaining20 ·11·*·Permission·is·hereby·granted,·free·of·charge,·to·any·person·obtaining
21 ·12·*·a·copy·of·this·software·and·associated·documentation·files·(the21 ·12·*·a·copy·of·this·software·and·associated·documentation·files·(the
22 ·13·*·"Software"),·to·deal·in·the·Software·without·restriction,·including22 ·13·*·"Software"),·to·deal·in·the·Software·without·restriction,·including
Offset 35, 31 lines modifiedOffset 35, 51 lines modified
35 ·24·*·MERCHANTABILITY,·FITNESS·FOR·A·PARTICULAR·PURPOSE·AND·NONINFRINGEMENT.35 ·24·*·MERCHANTABILITY,·FITNESS·FOR·A·PARTICULAR·PURPOSE·AND·NONINFRINGEMENT.
36 ·25·*·IN·NO·EVENT·SHALL·THE·AUTHORS·BE·LIABLE·FOR·ANY·CLAIM,·DAMAGES·OR36 ·25·*·IN·NO·EVENT·SHALL·THE·AUTHORS·BE·LIABLE·FOR·ANY·CLAIM,·DAMAGES·OR
37 ·26·*·OTHER·LIABILITY,·WHETHER·IN·AN·ACTION·OF·CONTRACT,·TORT·OR·OTHERWISE,37 ·26·*·OTHER·LIABILITY,·WHETHER·IN·AN·ACTION·OF·CONTRACT,·TORT·OR·OTHERWISE,
38 ·27·*·ARISING·FROM,·OUT·OF·OR·IN·CONNECTION·WITH·THE·SOFTWARE·OR·THE·USE·OR38 ·27·*·ARISING·FROM,·OUT·OF·OR·IN·CONNECTION·WITH·THE·SOFTWARE·OR·THE·USE·OR
39 ·28·*·OTHER·DEALINGS·IN·THE·SOFTWARE.39 ·28·*·OTHER·DEALINGS·IN·THE·SOFTWARE.
40 ·2940 ·29
41 ***************************************************************************/41 ***************************************************************************/
42 ·3042 ·30#ifndef·_SILLYDataSource_h_
 43 ·31#define·_SILLYDataSource_h_
 44 ·32#include·"SILLYBase.h"
 45 ·33
43 ·31//·Start·of·section·namespace·SILLY46 ·34//·Start·of·section·namespace·SILLY
44 ·32namespace·SILLY47 ·35namespace·SILLY
45 ·33{48 ·36{
46 ·34inline·bool·FileDataSource::isValid()·const 
47 ·35{ 
48 ·36·return·d_error; 
49 ·37}49 ·37
 50 46class·SILLY_EXPORT·DataSource
50 ·38 
51 ·39inline·const·byte*·FileDataSource::getDataPtr()·const 
52 ·40{51 ·47{
53 ·41·return·d_bytes; 
54 ·42} 
55 ·43 
56 ·44inline·size_t·FileDataSource::getSize()·const 
57 ·45{ 
58 ·46·return·d_size; 
59 ·47} 
60 ·4852 ·48public:
 53 53·virtual·~DataSource();
 54 58·virtual·const·byte·*·getDataPtr()·const·=·0;
 55 64·byte·operator[]·(size_t·offset)·const;
 56 69·virtual·size_t·getSize()·const·=·0;
 57 ·70};
 58 ·71
 59 ·72
61 ·49}·//·End·of·section·namespace·SILLY60 ·73}·//·End·of·section·namespace·SILLY
62 ·5061 ·74
 62 ·75//·Inclue·inline·function·when·needed
 63 ·76#ifdef·SILLY_OPT_INLINE
 64 ·77#include·"SILLYDataSource.icpp"
 65 ·78#endif
 66 ·79
 67 ·80#endif·//·end·of·guard·_SILLYDataSource_h_
 68 SILLY
 69 Simple·Image·Loading·LibrarY·namespace.
 70 Definition:·SILLYJPGImageContext.cpp:46
 71 SILLY::DataSource
 72 This·is·an·abstract·class·used·to·provide·data·to·the·loader.
 73 Definition:·SILLYDataSource.h:47
 74 SILLY::DataSource::getSize
 75 virtual·size_t·getSize()·const·=0
 76 Return·the·size·of·the·data.
 77 SILLY::DataSource::getDataPtr
 78 virtual·const·byte·*·getDataPtr()·const·=0
 79 Get·raw·access·to·the·image·data.
 80 SILLY::DataSource::~DataSource
 81 virtual·~DataSource()
 82 Destructor.
  
63 ===============================================================================83 ===============================================================================
64 ·····Generated·by [doxygen]·1.9.484 ·····Generated·by [doxygen]·1.9.4
21.7 KB
./usr/share/doc/libsilly-doc/html/a00122_source.html
    
Offset 1, 15 lines modifiedOffset 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">2 <html·xmlns="http://www.w3.org/1999/xhtml">
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.4"/>6 <meta·name="generator"·content="Doxygen·1.9.4"/>
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.h·Source·File</title>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 39, 77 lines modifiedOffset 39, 63 lines modified
39 <div·id="main-nav"></div>39 <div·id="main-nav"></div>
40 <div·id="nav-path"·class="navpath">40 <div·id="nav-path"·class="navpath">
41 ··<ul>41 ··<ul>
42 <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>42 <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>
43 </div>43 </div>
44 </div><!--·top·-->44 </div><!--·top·-->
45 <div·class="header">45 <div·class="header">
46 ··<div·class="headertitle"><div·class="title">SILLYDataSource.h</div></div>46 ··<div·class="headertitle"><div·class="title">SILLYMemoryDataSource.icpp</div></div>
47 </div><!--header-->47 </div><!--header-->
48 <div·class="contents">48 <div·class="contents">
49 <div·class="fragment"><div·class="line"><a·id="l00001"·name="l00001"></a><span·class="lineno">····1</span><span·class="comment">/***********************************************************************</span></div>49 <div·class="fragment"><div·class="line"><a·id="l00001"·name="l00001"></a><span·class="lineno">····1</span>/***********************************************************************</div>
50 <div·class="line"><a·id="l00002"·name="l00002"></a><span·class="lineno">····2</span><span·class="comment">····filename:···SILLYDataSource.h</span></div>50 <div·class="line"><a·id="l00002"·name="l00002"></a><span·class="lineno">····2</span>····Filename:···SILLYMemoryDataSource.icpp·</div>
51 <div·class="line"><a·id="l00003"·name="l00003"></a><span·class="lineno">····3</span><span·class="comment">····created:····10·Jun·2006</span></div>51 <div·class="line"><a·id="l00003"·name="l00003"></a><span·class="lineno">····3</span>····created:····10·Jun·2006</div>
52 <div·class="line"><a·id="l00004"·name="l00004"></a><span·class="lineno">····4</span><span·class="comment">····author:·····Olivier·Delannoy·</span></div>52 <div·class="line"><a·id="l00004"·name="l00004"></a><span·class="lineno">····4</span>····author:·····Olivier·Delannoy</div>
53 <div·class="line"><a·id="l00005"·name="l00005"></a><span·class="lineno">····5</span><span·class="comment"></span>·</div>53 <div·class="line"><a·id="l00005"·name="l00005"></a><span·class="lineno">····5</span>·</div>
54 <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>54 <div·class="line"><a·id="l00006"·name="l00006"></a><span·class="lineno">····6</span>····purpose:····Inline·function·definition·for·MemoryDataSource·class··</div>
55 <div·class="line"><a·id="l00007"·name="l00007"></a><span·class="lineno">····7</span><span·class="comment">*************************************************************************/</span></div>55 <div·class="line"><a·id="l00007"·name="l00007"></a><span·class="lineno">····7</span>*************************************************************************/</div>
56 <div·class="line"><a·id="l00008"·name="l00008"></a><span·class="lineno">····8</span><span·class="comment">/***************************************************************************</span></div>56 <div·class="line"><a·id="l00008"·name="l00008"></a><span·class="lineno">····8</span>/***************************************************************************</div>
57 <div·class="line"><a·id="l00009"·name="l00009"></a><span·class="lineno">····9</span><span·class="comment">·*···Copyright·(C)·2004·-·2006·Paul·D·Turner·&amp;·The·CEGUI·Development·Team</span></div>57 <div·class="line"><a·id="l00009"·name="l00009"></a><span·class="lineno">····9</span>·*···Copyright·(C)·2004·-·2006·Paul·D·Turner·&amp;·The·CEGUI·Development·Team</div>
58 <div·class="line"><a·id="l00010"·name="l00010"></a><span·class="lineno">···10</span><span·class="comment">·*</span></div>58 <div·class="line"><a·id="l00010"·name="l00010"></a><span·class="lineno">···10</span>·*</div>
59 <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>59 <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>
60 <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>60 <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>
61 <div·class="line"><a·id="l00013"·name="l00013"></a><span·class="lineno">···13</span><span·class="comment">·*···&quot;Software&quot;),·to·deal·in·the·Software·without·restriction,·including</span></div>61 <div·class="line"><a·id="l00013"·name="l00013"></a><span·class="lineno">···13</span>·*···&quot;Software&quot;),·to·deal·in·the·Software·without·restriction,·including</div>
62 <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>62 <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>
63 <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>63 <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>
64 <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>64 <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>
65 <div·class="line"><a·id="l00017"·name="l00017"></a><span·class="lineno">···17</span><span·class="comment">·*···the·following·conditions:</span></div>65 <div·class="line"><a·id="l00017"·name="l00017"></a><span·class="lineno">···17</span>·*···the·following·conditions:</div>
66 <div·class="line"><a·id="l00018"·name="l00018"></a><span·class="lineno">···18</span><span·class="comment">·*</span></div>66 <div·class="line"><a·id="l00018"·name="l00018"></a><span·class="lineno">···18</span>·*</div>
67 <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>67 <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>
68 <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>68 <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>
69 <div·class="line"><a·id="l00021"·name="l00021"></a><span·class="lineno">···21</span><span·class="comment">·*</span></div>69 <div·class="line"><a·id="l00021"·name="l00021"></a><span·class="lineno">···21</span>·*</div>
70 <div·class="line"><a·id="l00022"·name="l00022"></a><span·class="lineno">···22</span><span·class="comment">·*···THE·SOFTWARE·IS·PROVIDED·&quot;AS·IS&quot;,·WITHOUT·WARRANTY·OF·ANY·KIND,</span></div>70 <div·class="line"><a·id="l00022"·name="l00022"></a><span·class="lineno">···22</span>·*···THE·SOFTWARE·IS·PROVIDED·&quot;AS·IS&quot;,·WITHOUT·WARRANTY·OF·ANY·KIND,</div>
71 <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>71 <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>
72 <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>72 <div·class="line"><a·id="l00024"·name="l00024"></a><span·class="lineno">···24</span>·*···MERCHANTABILITY,·FITNESS·FOR·A·PARTICULAR·PURPOSE·AND·NONINFRINGEMENT.</div>
73 <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>73 <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>
74 <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>74 <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>
75 <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>75 <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>
76 <div·class="line"><a·id="l00028"·name="l00028"></a><span·class="lineno">···28</span><span·class="comment">·*···OTHER·DEALINGS·IN·THE·SOFTWARE.</span></div>76 <div·class="line"><a·id="l00028"·name="l00028"></a><span·class="lineno">···28</span>·*···OTHER·DEALINGS·IN·THE·SOFTWARE.</div>
77 <div·class="line"><a·id="l00029"·name="l00029"></a><span·class="lineno">···29</span><span·class="comment">·***************************************************************************/</span></div>77 <div·class="line"><a·id="l00029"·name="l00029"></a><span·class="lineno">···29</span>·***************************************************************************/</div>
78 <div·class="line"><a·id="l00030"·name="l00030"></a><span·class="lineno">···30</span><span·class="preprocessor">#ifndef·_SILLYDataSource_h_·</span></div> 
79 <div·class="line"><a·id="l00031"·name="l00031"></a><span·class="lineno">···31</span><span·class="preprocessor">#define·_SILLYDataSource_h_</span></div>78 <div·class="line"><a·id="l00030"·name="l00030"></a><span·class="lineno">···30</span>·</div>
 79 <div·class="line"><a·id="l00031"·name="l00031"></a><span·class="lineno">···31</span>//·Start·of·section·namespace·SILLY</div>
80 <div·class="line"><a·id="l00032"·name="l00032"></a><span·class="lineno">···32</span><span·class="preprocessor">#include·&quot;SILLYBase.h&quot;</span>·</div>80 <div·class="line"><a·id="l00032"·name="l00032"></a><span·class="lineno">···32</span>namespace·SILLY</div>
81 <div·class="line"><a·id="l00033"·name="l00033"></a><span·class="lineno">···33</span>·</div>81 <div·class="line"><a·id="l00033"·name="l00033"></a><span·class="lineno">···33</span>{</div>
82 <div·class="line"><a·id="l00034"·name="l00034"></a><span·class="lineno">···34</span><span·class="comment">//·Start·of·section·namespace·SILLY·</span></div> 
83 <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>82 <div·class="line"><a·id="l00034"·name="l00034"></a><span·class="lineno">···34</span>·</div>
 83 <div·class="line"><a·id="l00035"·name="l00035"></a><span·class="lineno">···35</span>inline·const·byte*·MemoryDataSource::getDataPtr()·const</div>
84 <div·class="line"><a·id="l00036"·name="l00036"></a><span·class="lineno">···36</span>{</div>84 <div·class="line"><a·id="l00036"·name="l00036"></a><span·class="lineno">···36</span>{</div>
 85 <div·class="line"><a·id="l00037"·name="l00037"></a><span·class="lineno">···37</span>····return·d_bytes;</div>
 86 <div·class="line"><a·id="l00038"·name="l00038"></a><span·class="lineno">···38</span>}</div>
85 <div·class="line"><a·id="l00037"·name="l00037"></a><span·class="lineno">···37</span>·</div>87 <div·class="line"><a·id="l00039"·name="l00039"></a><span·class="lineno">···39</span>·</div>
86 <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>88 <div·class="line"><a·id="l00040"·name="l00040"></a><span·class="lineno">···40</span>inline·size_t·MemoryDataSource::getSize()·const</div>
87 <div·class="line"><a·id="l00047"·name="l00047"></a><span·class="lineno">···47</span>{</div>89 <div·class="line"><a·id="l00041"·name="l00041"></a><span·class="lineno">···41</span>{</div>
88 <div·class="line"><a·id="l00048"·name="l00048"></a><span·class="lineno">···48</span><span·class="keyword">public</span>:</div>90 <div·class="line"><a·id="l00042"·name="l00042"></a><span·class="lineno">···42</span>····return·d_size;</div>
89 <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> 
90 <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> 
91 <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> 
92 <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> 
93 <div·class="line"><a·id="l00070"·name="l00070"></a><span·class="lineno">···70</span>};</div>91 <div·class="line"><a·id="l00043"·name="l00043"></a><span·class="lineno">···43</span>}</div>
94 <div·class="line"><a·id="l00071"·name="l00071"></a><span·class="lineno">···71</span>··</div>92 <div·class="line"><a·id="l00044"·name="l00044"></a><span·class="lineno">···44</span>····</div>
95 <div·class="line"><a·id="l00072"·name="l00072"></a><span·class="lineno">···72</span>··</div> 
96 <div·class="line"><a·id="l00073"·name="l00073"></a><span·class="lineno">···73</span>}·<span·class="comment">//·End·of·section·namespace·SILLY·</span></div>93 <div·class="line"><a·id="l00045"·name="l00045"></a><span·class="lineno">···45</span>}·//·End·of·section·namespace·SILLY</div>
97 <div·class="line"><a·id="l00074"·name="l00074"></a><span·class="lineno">···74</span>·</div>94 <div·class="line"><a·id="l00046"·name="l00046"></a><span·class="lineno">···46</span>·</div>
98 <div·class="line"><a·id="l00075"·name="l00075"></a><span·class="lineno">···75</span><span·class="comment">//·Inclue·inline·function·when·needed·</span></div> 
99 <div·class="line"><a·id="l00076"·name="l00076"></a><span·class="lineno">···76</span><span·class="preprocessor">#ifdef·SILLY_OPT_INLINE</span></div> 
100 <div·class="line"><a·id="l00077"·name="l00077"></a><span·class="lineno">···77</span><span·class="preprocessor">#include·&quot;SILLYDataSource.icpp&quot;</span></div> 
101 <div·class="line"><a·id="l00078"·name="l00078"></a><span·class="lineno">···78</span><span·class="preprocessor">#endif·</span></div> 
102 <div·class="line"><a·id="l00079"·name="l00079"></a><span·class="lineno">···79</span>·</div> 
103 <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> 
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="a00020_source.html#l00045">SILLYJPGImageContext.cpp:46</a></div></div> 
105 <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="a00122_source.html#l00046">SILLYDataSource.h:47</a></div></div> 
106 <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> 
107 <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> 
108 <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> 
109 </div><!--·fragment·--></div><!--·contents·-->95 </div><!--·fragment·--></div><!--·contents·-->
110 <!--·start·footer·part·-->96 <!--·start·footer·part·-->
111 <hr·class="footer"/><address·class="footer"><small>97 <hr·class="footer"/><address·class="footer"><small>
112 Generated·by&#160;<a·href="https://www.doxygen.org/index.html"><img·class="footer"·src="doxygen.svg"·width="104"·height="31"·alt="doxygen"/></a>·1.9.498 Generated·by&#160;<a·href="https://www.doxygen.org/index.html"><img·class="footer"·src="doxygen.svg"·width="104"·height="31"·alt="doxygen"/></a>·1.9.4
113 </small></address>99 </small></address>
114 </body>100 </body>
115 </html>101 </html>
2.88 KB
html2text {}
    
Offset 4, 21 lines modifiedOffset 4, 21 lines modified
  
4 Simple·Image·Loading·LibrarY 0.1.04 Simple·Image·Loading·LibrarY 0.1.0
  
5 ····*·build5 ····*·build
6 ····*·reproducible-path6 ····*·reproducible-path
7 ····*·silly-0.1.07 ····*·silly-0.1.0
8 ····*·include8 ····*·include
9 SILLYDataSource.h9 SILLYMemoryDataSource.icpp
10 ·1/***********************************************************************10 ·1/***********************************************************************
11 ·2·filename:·SILLYDataSource.h11 ·2·Filename:·SILLYMemoryDataSource.icpp
12 ·3·created:·10·Jun·200612 ·3·created:·10·Jun·2006
13 ·4·author:·Olivier·Delannoy13 ·4·author:·Olivier·Delannoy
14 ·514 ·5
15 ·6·purpose:·SILLY::DataSource·declaration·for·the·SILLY·library15 ·6·purpose:·Inline·function·definition·for·MemoryDataSource·class
16 ·7*************************************************************************/16 ·7*************************************************************************/
17 ·8/***************************************************************************17 ·8/***************************************************************************
18 ·9·*·Copyright·(C)·2004·-·2006·Paul·D·Turner·&·The·CEGUI·Development·Team18 ·9·*·Copyright·(C)·2004·-·2006·Paul·D·Turner·&·The·CEGUI·Development·Team
19 ·10·*19 ·10·*
20 ·11·*·Permission·is·hereby·granted,·free·of·charge,·to·any·person·obtaining20 ·11·*·Permission·is·hereby·granted,·free·of·charge,·to·any·person·obtaining
21 ·12·*·a·copy·of·this·software·and·associated·documentation·files·(the21 ·12·*·a·copy·of·this·software·and·associated·documentation·files·(the
22 ·13·*·"Software"),·to·deal·in·the·Software·without·restriction,·including22 ·13·*·"Software"),·to·deal·in·the·Software·without·restriction,·including
Offset 35, 51 lines modifiedOffset 35, 27 lines modified
35 ·24·*·MERCHANTABILITY,·FITNESS·FOR·A·PARTICULAR·PURPOSE·AND·NONINFRINGEMENT.35 ·24·*·MERCHANTABILITY,·FITNESS·FOR·A·PARTICULAR·PURPOSE·AND·NONINFRINGEMENT.
36 ·25·*·IN·NO·EVENT·SHALL·THE·AUTHORS·BE·LIABLE·FOR·ANY·CLAIM,·DAMAGES·OR36 ·25·*·IN·NO·EVENT·SHALL·THE·AUTHORS·BE·LIABLE·FOR·ANY·CLAIM,·DAMAGES·OR
37 ·26·*·OTHER·LIABILITY,·WHETHER·IN·AN·ACTION·OF·CONTRACT,·TORT·OR·OTHERWISE,37 ·26·*·OTHER·LIABILITY,·WHETHER·IN·AN·ACTION·OF·CONTRACT,·TORT·OR·OTHERWISE,
38 ·27·*·ARISING·FROM,·OUT·OF·OR·IN·CONNECTION·WITH·THE·SOFTWARE·OR·THE·USE·OR38 ·27·*·ARISING·FROM,·OUT·OF·OR·IN·CONNECTION·WITH·THE·SOFTWARE·OR·THE·USE·OR
39 ·28·*·OTHER·DEALINGS·IN·THE·SOFTWARE.39 ·28·*·OTHER·DEALINGS·IN·THE·SOFTWARE.
40 ·2940 ·29
41 ***************************************************************************/41 ***************************************************************************/
 42 ·30
42 ·30#ifndef·_SILLYDataSource_h_ 
43 ·31#define·_SILLYDataSource_h_ 
44 ·32#include·"SILLYBase.h" 
45 ·33 
46 ·34//·Start·of·section·namespace·SILLY43 ·31//·Start·of·section·namespace·SILLY
47 ·35namespace·SILLY44 ·32namespace·SILLY
 45 ·33{
 46 ·34
 47 ·35inline·const·byte*·MemoryDataSource::getDataPtr()·const
48 ·36{48 ·36{
49 ·37 
50 46class·SILLY_EXPORT·DataSource49 ·37·return·d_bytes;
 50 ·38}
 51 ·39
 52 ·40inline·size_t·MemoryDataSource::getSize()·const
51 ·47{53 ·41{
 54 ·42·return·d_size;
 55 ·43}
 56 ·44
52 ·48public: 
53 53·virtual·~DataSource(); 
54 58·virtual·const·byte·*·getDataPtr()·const·=·0; 
55 64·byte·operator[]·(size_t·offset)·const; 
56 69·virtual·size_t·getSize()·const·=·0; 
57 ·70}; 
58 ·71 
59 ·72 
60 ·73}·//·End·of·section·namespace·SILLY57 ·45}·//·End·of·section·namespace·SILLY
 58 ·46
61 ·74 
62 ·75//·Inclue·inline·function·when·needed 
63 ·76#ifdef·SILLY_OPT_INLINE 
64 ·77#include·"SILLYDataSource.icpp" 
65 ·78#endif 
66 ·79 
67 ·80#endif·//·end·of·guard·_SILLYDataSource_h_ 
68 SILLY 
69 Simple·Image·Loading·LibrarY·namespace. 
70 Definition:·SILLYJPGImageContext.cpp:46 
71 SILLY::DataSource 
72 This·is·an·abstract·class·used·to·provide·data·to·the·loader. 
73 Definition:·SILLYDataSource.h:47 
74 SILLY::DataSource::getSize 
75 virtual·size_t·getSize()·const·=0 
76 Return·the·size·of·the·data. 
77 SILLY::DataSource::getDataPtr 
78 virtual·const·byte·*·getDataPtr()·const·=0 
79 Get·raw·access·to·the·image·data. 
80 SILLY::DataSource::~DataSource 
81 virtual·~DataSource() 
82 Destructor. 
  
83 ===============================================================================59 ===============================================================================
84 ·····Generated·by [doxygen]·1.9.460 ·····Generated·by [doxygen]·1.9.4
23.3 KB
./usr/share/doc/libsilly-doc/html/a00125_source.html
    
Offset 1, 15 lines modifiedOffset 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">2 <html·xmlns="http://www.w3.org/1999/xhtml">
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.4"/>6 <meta·name="generator"·content="Doxygen·1.9.4"/>
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/SILLYFileDataSource.h·Source·File</title>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 39, 84 lines modifiedOffset 39, 62 lines modified
39 <div·id="main-nav"></div>39 <div·id="main-nav"></div>
40 <div·id="nav-path"·class="navpath">40 <div·id="nav-path"·class="navpath">
41 ··<ul>41 ··<ul>
42 <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>42 <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>
43 </div>43 </div>
44 </div><!--·top·-->44 </div><!--·top·-->
45 <div·class="header">45 <div·class="header">
46 ··<div·class="headertitle"><div·class="title">SILLYFileDataSource.h</div></div>46 ··<div·class="headertitle"><div·class="title">SILLYDataSource.icpp</div></div>
47 </div><!--header-->47 </div><!--header-->
48 <div·class="contents">48 <div·class="contents">
49 <div·class="fragment"><div·class="line"><a·id="l00001"·name="l00001"></a><span·class="lineno">····1</span><span·class="comment">/***********************************************************************</span></div>49 <div·class="fragment"><div·class="line"><a·id="l00001"·name="l00001"></a><span·class="lineno">····1</span>/***********************************************************************</div>
50 <div·class="line"><a·id="l00002"·name="l00002"></a><span·class="lineno">····2</span><span·class="comment">····filename:···SILLYFileDataSource.h</span></div>50 <div·class="line"><a·id="l00002"·name="l00002"></a><span·class="lineno">····2</span>····filename:···SILLYDataSource.icpp·</div>
51 <div·class="line"><a·id="l00003"·name="l00003"></a><span·class="lineno">····3</span><span·class="comment">····created:····20·Jul·2006</span></div>51 <div·class="line"><a·id="l00003"·name="l00003"></a><span·class="lineno">····3</span>····created:····10·Jun·2006</div>
52 <div·class="line"><a·id="l00004"·name="l00004"></a><span·class="lineno">····4</span><span·class="comment">····author:·····Olivier·Delannoy</span></div>52 <div·class="line"><a·id="l00004"·name="l00004"></a><span·class="lineno">····4</span>····author:·····ode@dalfy.dalfy.dyndns.org</div>
53 <div·class="line"><a·id="l00005"·name="l00005"></a><span·class="lineno">····5</span><span·class="comment"></span>·</div>53 <div·class="line"><a·id="l00005"·name="l00005"></a><span·class="lineno">····5</span>·</div>
54 <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>54 <div·class="line"><a·id="l00006"·name="l00006"></a><span·class="lineno">····6</span>····purpose:····Inline·function·definition·for·(F&gt;&gt;&gt;ILE_SANS&lt;&lt;&lt;)·class··</div>
55 <div·class="line"><a·id="l00007"·name="l00007"></a><span·class="lineno">····7</span><span·class="comment">*************************************************************************/</span></div>55 <div·class="line"><a·id="l00007"·name="l00007"></a><span·class="lineno">····7</span>*************************************************************************/</div>
56 <div·class="line"><a·id="l00008"·name="l00008"></a><span·class="lineno">····8</span><span·class="comment">/***************************************************************************</span></div>56 <div·class="line"><a·id="l00008"·name="l00008"></a><span·class="lineno">····8</span>/***************************************************************************</div>
57 <div·class="line"><a·id="l00009"·name="l00009"></a><span·class="lineno">····9</span><span·class="comment">·*···Copyright·(C)·2004·-·2006·Paul·D·Turner·&amp;·The·CEGUI·Development·Team</span></div>57 <div·class="line"><a·id="l00009"·name="l00009"></a><span·class="lineno">····9</span>·*···Copyright·(C)·2004·-·2006·Paul·D·Turner·&amp;·The·CEGUI·Development·Team</div>
58 <div·class="line"><a·id="l00010"·name="l00010"></a><span·class="lineno">···10</span><span·class="comment">·*</span></div>58 <div·class="line"><a·id="l00010"·name="l00010"></a><span·class="lineno">···10</span>·*</div>
59 <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>59 <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>
60 <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>60 <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>
61 <div·class="line"><a·id="l00013"·name="l00013"></a><span·class="lineno">···13</span><span·class="comment">·*···&quot;Software&quot;),·to·deal·in·the·Software·without·restriction,·including</span></div>61 <div·class="line"><a·id="l00013"·name="l00013"></a><span·class="lineno">···13</span>·*···&quot;Software&quot;),·to·deal·in·the·Software·without·restriction,·including</div>
62 <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>62 <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>
63 <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>63 <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>
64 <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>64 <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>
65 <div·class="line"><a·id="l00017"·name="l00017"></a><span·class="lineno">···17</span><span·class="comment">·*···the·following·conditions:</span></div>65 <div·class="line"><a·id="l00017"·name="l00017"></a><span·class="lineno">···17</span>·*···the·following·conditions:</div>
66 <div·class="line"><a·id="l00018"·name="l00018"></a><span·class="lineno">···18</span><span·class="comment">·*</span></div>66 <div·class="line"><a·id="l00018"·name="l00018"></a><span·class="lineno">···18</span>·*</div>
67 <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>67 <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>
68 <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>68 <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>
69 <div·class="line"><a·id="l00021"·name="l00021"></a><span·class="lineno">···21</span><span·class="comment">·*</span></div>69 <div·class="line"><a·id="l00021"·name="l00021"></a><span·class="lineno">···21</span>·*</div>
70 <div·class="line"><a·id="l00022"·name="l00022"></a><span·class="lineno">···22</span><span·class="comment">·*···THE·SOFTWARE·IS·PROVIDED·&quot;AS·IS&quot;,·WITHOUT·WARRANTY·OF·ANY·KIND,</span></div>70 <div·class="line"><a·id="l00022"·name="l00022"></a><span·class="lineno">···22</span>·*···THE·SOFTWARE·IS·PROVIDED·&quot;AS·IS&quot;,·WITHOUT·WARRANTY·OF·ANY·KIND,</div>
71 <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>71 <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>
72 <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>72 <div·class="line"><a·id="l00024"·name="l00024"></a><span·class="lineno">···24</span>·*···MERCHANTABILITY,·FITNESS·FOR·A·PARTICULAR·PURPOSE·AND·NONINFRINGEMENT.</div>
73 <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>73 <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>
74 <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>74 <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>
75 <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>75 <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>
76 <div·class="line"><a·id="l00028"·name="l00028"></a><span·class="lineno">···28</span><span·class="comment">·*···OTHER·DEALINGS·IN·THE·SOFTWARE.</span></div>76 <div·class="line"><a·id="l00028"·name="l00028"></a><span·class="lineno">···28</span>·*···OTHER·DEALINGS·IN·THE·SOFTWARE.</div>
77 <div·class="line"><a·id="l00029"·name="l00029"></a><span·class="lineno">···29</span><span·class="comment">·***************************************************************************/</span></div>77 <div·class="line"><a·id="l00029"·name="l00029"></a><span·class="lineno">···29</span>·***************************************************************************/</div>
 78 <div·class="line"><a·id="l00030"·name="l00030"></a><span·class="lineno">···30</span>·</div>
78 <div·class="line"><a·id="l00030"·name="l00030"></a><span·class="lineno">···30</span><span·class="preprocessor">#ifndef·_SILLYFileDataSource_h_·</span></div> 
79 <div·class="line"><a·id="l00031"·name="l00031"></a><span·class="lineno">···31</span><span·class="preprocessor">#define·_SILLYFileDataSource_h_</span></div> 
80 <div·class="line"><a·id="l00032"·name="l00032"></a><span·class="lineno">···32</span><span·class="preprocessor">#include·&quot;SILLYBase.h&quot;</span>·</div> 
81 <div·class="line"><a·id="l00033"·name="l00033"></a><span·class="lineno">···33</span><span·class="preprocessor">#include·&quot;SILLYDataSource.h&quot;</span>·</div> 
82 <div·class="line"><a·id="l00034"·name="l00034"></a><span·class="lineno">···34</span><span·class="comment">//·Start·of·section·namespace·SILLY·</span></div>79 <div·class="line"><a·id="l00031"·name="l00031"></a><span·class="lineno">···31</span>//·Start·of·section·namespace·SILLY</div>
83 <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>80 <div·class="line"><a·id="l00032"·name="l00032"></a><span·class="lineno">···32</span>namespace·SILLY</div>
 81 <div·class="line"><a·id="l00033"·name="l00033"></a><span·class="lineno">···33</span>{</div>
 82 <div·class="line"><a·id="l00034"·name="l00034"></a><span·class="lineno">···34</span>inline·DataSource::~DataSource()·</div>
 83 <div·class="line"><a·id="l00035"·name="l00035"></a><span·class="lineno">···35</span>{</div>
84 <div·class="line"><a·id="l00036"·name="l00036"></a><span·class="lineno">···36</span>{</div>84 <div·class="line"><a·id="l00036"·name="l00036"></a><span·class="lineno">···36</span>}</div>
85 <div·class="line"><a·id="l00037"·name="l00037"></a><span·class="lineno">···37</span>·</div>85 <div·class="line"><a·id="l00037"·name="l00037"></a><span·class="lineno">···37</span>·</div>
86 <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="cod[·...·truncated·by·diffoscope;·len:·45,·SHA:·6265d879dd609e405a2251931acb0251612ac4f58db1bc767497d18b43ee3b63·...·]</div>86 <div·class="line"><a·id="l00038"·name="l00038"></a><span·class="lineno">···38</span>inline·byte·DataSource::operator[](size_t·offset)·const</div>
87 <div·class="line"><a·id="l00049"·name="l00049"></a><span·class="lineno">···49</span>{</div>87 <div·class="line"><a·id="l00039"·name="l00039"></a><span·class="lineno">···39</span>{</div>
 88 <div·class="line"><a·id="l00040"·name="l00040"></a><span·class="lineno">···40</span>····assert(offset·&lt;·getSize()·&amp;&amp;·&quot;ASSERT:·Trying·to·access·pixel·outside·of·the·data&quot;);</div>
 89 <div·class="line"><a·id="l00041"·name="l00041"></a><span·class="lineno">···41</span>····return·getDataPtr()[offset];</div>
88 <div·class="line"><a·id="l00050"·name="l00050"></a><span·class="lineno">···50</span><span·class="keyword">public</span>:</div>90 <div·class="line"><a·id="l00042"·name="l00042"></a><span·class="lineno">···42</span>}</div>
89 <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> 
90 <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> 
91 <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> 
92 <div·class="line"><a·id="l00074"·name="l00074"></a><span·class="lineno">···74</span>·</div>91 <div·class="line"><a·id="l00043"·name="l00043"></a><span·class="lineno">···43</span>·</div>
93 <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> 
94 <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> 
95 <div·class="line"><a·id="l00077"·name="l00077"></a><span·class="lineno">···77</span><span·class="keyword">private</span>:</div> 
96 <div·class="line"><a·id="l00078"·name="l00078"></a><span·class="lineno">···78</span>····<span·class="keywordtype">bool</span>·d_error;··</div> 
97 <div·class="line"><a·id="l00079"·name="l00079"></a><span·class="lineno">···79</span>····<span·class="keywordtype">byte</span>*·d_bytes;·</div> 
98 <div·class="line"><a·id="l00080"·name="l00080"></a><span·class="lineno">···80</span>····<span·class="keywordtype">size_t</span>·d_size;·</div> 
99 <div·class="line"><a·id="l00081"·name="l00081"></a><span·class="lineno">···81</span>};</div> 
100 <div·class="line"><a·id="l00082"·name="l00082"></a><span·class="lineno">···82</span>··</div> 
101 <div·class="line"><a·id="l00083"·name="l00083"></a><span·class="lineno">···83</span>··</div> 
102 <div·class="line"><a·id="l00084"·name="l00084"></a><span·class="lineno">···84</span>}·<span·class="comment">//·End·of·section·namespace·SILLY·</span></div>92 <div·class="line"><a·id="l00044"·name="l00044"></a><span·class="lineno">···44</span>}·//·End·of·section·namespace·SILLY</div>
103 <div·class="line"><a·id="l00085"·name="l00085"></a><span·class="lineno">···85</span>·</div>93 <div·class="line"><a·id="l00045"·name="l00045"></a><span·class="lineno">···45</span>·</div>
104 <div·class="line"><a·id="l00086"·name="l00086"></a><span·class="lineno">···86</span><span·class="comment">//·Inclue·inline·function·when·needed·</span></div> 
105 <div·class="line"><a·id="l00087"·name="l00087"></a><span·class="lineno">···87</span><span·class="preprocessor">#ifdef·SILLY_OPT_INLINE</span></div> 
106 <div·class="line"><a·id="l00088"·name="l00088"></a><span·class="lineno">···88</span><span·class="preprocessor">#include·&quot;SILLYFileDataSource.icpp&quot;</span></div> 
107 <div·class="line"><a·id="l00089"·name="l00089"></a><span·class="lineno">···89</span><span·class="preprocessor">#endif·</span></div> 
108 <div·class="line"><a·id="l00090"·name="l00090"></a><span·class="lineno">···90</span>·</div> 
109 <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> 
110 <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="a00020_source.html#l00045">SILLYJPGImageContext.cpp:46</a></div></div> 
111 <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="a00122_source.html#l00046">SILLYDataSource.h:47</a></div></div> 
112 <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="a00125_source.html#l00048">SILLYFileDataSource.h:49</a></div></div> 
113 <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> 
114 <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> 
115 <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> 
116 </div><!--·fragment·--></div><!--·contents·-->94 </div><!--·fragment·--></div><!--·contents·-->
117 <!--·start·footer·part·-->95 <!--·start·footer·part·-->
118 <hr·class="footer"/><address·class="footer"><small>96 <hr·class="footer"/><address·class="footer"><small>
119 Generated·by&#160;<a·href="https://www.doxygen.org/index.html"><img·class="footer"·src="doxygen.svg"·width="104"·height="31"·alt="doxygen"/></a>·1.9.497 Generated·by&#160;<a·href="https://www.doxygen.org/index.html"><img·class="footer"·src="doxygen.svg"·width="104"·height="31"·alt="doxygen"/></a>·1.9.4
120 </small></address>98 </small></address>
121 </body>99 </body>
122 </html>100 </html>
3.27 KB
html2text {}
    
Offset 4, 21 lines modifiedOffset 4, 21 lines modified
  
4 Simple·Image·Loading·LibrarY 0.1.04 Simple·Image·Loading·LibrarY 0.1.0
  
5 ····*·build5 ····*·build
6 ····*·reproducible-path6 ····*·reproducible-path
7 ····*·silly-0.1.07 ····*·silly-0.1.0
8 ····*·include8 ····*·include
9 SILLYFileDataSource.h9 SILLYDataSource.icpp
10 ·1/***********************************************************************10 ·1/***********************************************************************
11 ·2·filename:·SILLYFileDataSource.h11 ·2·filename:·SILLYDataSource.icpp
12 ·3·created:·20·Jul·200612 ·3·created:·10·Jun·2006
13 ·4·author:·Olivier·Delannoy13 ·4·author:·ode@dalfy.dalfy.dyndns.org
14 ·514 ·5
15 ·6·purpose:·Provide·file·based·image·loading15 ·6·purpose:·Inline·function·definition·for·(F>>>ILE_SANS<<<)·class
16 ·7*************************************************************************/16 ·7*************************************************************************/
17 ·8/***************************************************************************17 ·8/***************************************************************************
18 ·9·*·Copyright·(C)·2004·-·2006·Paul·D·Turner·&·The·CEGUI·Development·Team18 ·9·*·Copyright·(C)·2004·-·2006·Paul·D·Turner·&·The·CEGUI·Development·Team
19 ·10·*19 ·10·*
20 ·11·*·Permission·is·hereby·granted,·free·of·charge,·to·any·person·obtaining20 ·11·*·Permission·is·hereby·granted,·free·of·charge,·to·any·person·obtaining
21 ·12·*·a·copy·of·this·software·and·associated·documentation·files·(the21 ·12·*·a·copy·of·this·software·and·associated·documentation·files·(the
22 ·13·*·"Software"),·to·deal·in·the·Software·without·restriction,·including22 ·13·*·"Software"),·to·deal·in·the·Software·without·restriction,·including
Offset 35, 60 lines modifiedOffset 35, 27 lines modified
35 ·24·*·MERCHANTABILITY,·FITNESS·FOR·A·PARTICULAR·PURPOSE·AND·NONINFRINGEMENT.35 ·24·*·MERCHANTABILITY,·FITNESS·FOR·A·PARTICULAR·PURPOSE·AND·NONINFRINGEMENT.
36 ·25·*·IN·NO·EVENT·SHALL·THE·AUTHORS·BE·LIABLE·FOR·ANY·CLAIM,·DAMAGES·OR36 ·25·*·IN·NO·EVENT·SHALL·THE·AUTHORS·BE·LIABLE·FOR·ANY·CLAIM,·DAMAGES·OR
37 ·26·*·OTHER·LIABILITY,·WHETHER·IN·AN·ACTION·OF·CONTRACT,·TORT·OR·OTHERWISE,37 ·26·*·OTHER·LIABILITY,·WHETHER·IN·AN·ACTION·OF·CONTRACT,·TORT·OR·OTHERWISE,
38 ·27·*·ARISING·FROM,·OUT·OF·OR·IN·CONNECTION·WITH·THE·SOFTWARE·OR·THE·USE·OR38 ·27·*·ARISING·FROM,·OUT·OF·OR·IN·CONNECTION·WITH·THE·SOFTWARE·OR·THE·USE·OR
39 ·28·*·OTHER·DEALINGS·IN·THE·SOFTWARE.39 ·28·*·OTHER·DEALINGS·IN·THE·SOFTWARE.
40 ·2940 ·29
41 ***************************************************************************/41 ***************************************************************************/
 42 ·30
42 ·30#ifndef·_SILLYFileDataSource_h_ 
43 ·31#define·_SILLYFileDataSource_h_ 
44 ·32#include·"SILLYBase.h" 
45 ·33#include·"SILLYDataSource.h" 
46 ·34//·Start·of·section·namespace·SILLY43 ·31//·Start·of·section·namespace·SILLY
47 ·35namespace·SILLY44 ·32namespace·SILLY
48 ·36{45 ·33{
 46 ·34inline·DataSource::~DataSource()
 47 ·35{
 48 ·36}
49 ·3749 ·37
50 48class·SILLY_EXPORT·FileDataSource·:·public·DataSource50 ·38inline·byte·DataSource::operator[](size_t·offset)·const
51 ·49{51 ·39{
 52 ·40·assert(offset·<·getSize()·&&·"ASSERT:·Trying·to·access·pixel·outside·of·the
 53 data");
 54 ·41·return·getDataPtr()[offset];
 55 ·42}
 56 ·43
52 ·50public: 
53 ·60·FileDataSource(const·char*·filename); 
54 ·64·~FileDataSource(); 
55 73·bool·isValid()·const; 
56 ·74 
57 75·const·byte*·getDataPtr()·const; 
58 76·size_t·getSize()·const; 
59 ·77private: 
60 ·78·bool·d_error; 
61 ·79·byte*·d_bytes; 
62 ·80·size_t·d_size; 
63 ·81}; 
64 ·82 
65 ·83 
66 ·84}·//·End·of·section·namespace·SILLY57 ·44}·//·End·of·section·namespace·SILLY
 58 ·45
67 ·85 
68 ·86//·Inclue·inline·function·when·needed 
69 ·87#ifdef·SILLY_OPT_INLINE 
70 ·88#include·"SILLYFileDataSource.icpp" 
71 ·89#endif 
72 ·90 
73 ·91#endif·//·end·of·guard·_SILLYFileDataSource_h_ 
74 SILLY 
75 Simple·Image·Loading·LibrarY·namespace. 
76 Definition:·SILLYJPGImageContext.cpp:46 
77 SILLY::DataSource 
78 This·is·an·abstract·class·used·to·provide·data·to·the·loader. 
79 Definition:·SILLYDataSource.h:47 
80 SILLY::FileDataSource 
81 This·class·allow·the·loading·of·an·image·directly·from·a·file. 
82 Definition:·SILLYFileDataSource.h:49 
83 SILLY::FileDataSource::getDataPtr 
84 const·byte·*·getDataPtr()·const 
85 Get·raw·access·to·the·image·data. 
86 SILLY::FileDataSource::isValid 
87 bool·isValid()·const 
88 Check·wether·the·loading·is·successfull·or·not. 
89 SILLY::FileDataSource::getSize 
90 size_t·getSize()·const 
91 Return·the·size·of·the·data. 
  
92 ===============================================================================59 ===============================================================================
93 ·····Generated·by [doxygen]·1.9.460 ·····Generated·by [doxygen]·1.9.4
13.3 KB
./usr/share/doc/libsilly-doc/html/a00129.html
    
Offset 164, 15 lines modifiedOffset 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="a00053_source.html#l00080">80</a>·of·file·<a·class="el"·href="a00053_source.html">SILLYBase.h</a>.</p>169 <p·class="definition">Definition·at·line·<a·class="el"·href="a00113_source.html#l00080">80</a>·of·file·<a·class="el"·href="a00113_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">&#9670;&nbsp;</a></span>ImageLoaderList</h2>173 <h2·class="memtitle"><span·class="permalink"><a·href="#a9f85557d059f38f7bb66a898472d394e">&#9670;&nbsp;</a></span>ImageLoaderList</h2>
  
174 <div·class="memitem">174 <div·class="memitem">
Offset 182, 15 lines modifiedOffset 182, 15 lines modified
182 ··········<td·class="memname">typedef·std::vector&lt;<a·class="el"·href="a00985.html">ImageLoader</a>*&gt;·<a·class="el"·href="a00129.html#a9f85557d059f38f7bb66a898472d394e">ImageLoaderList</a></td>182 ··········<td·class="memname">typedef·std::vector&lt;<a·class="el"·href="a00985.html">ImageLoader</a>*&gt;·<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="a00044_source.html#l00042">42</a>·of·file·<a·class="el"·href="a00044_source.html">SILLYImageLoaderManager.h</a>.</p>187 <p·class="definition">Definition·at·line·<a·class="el"·href="a00041_source.html#l00042">42</a>·of·file·<a·class="el"·href="a00041_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">&#9670;&nbsp;</a></span>PixelFormat</h2>192 <h2·class="memtitle"><span·class="permalink"><a·href="#a60883d4958a60b91661e97027a85072a">&#9670;&nbsp;</a></span>PixelFormat</h2>
  
Offset 201, 15 lines modifiedOffset 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="a00053_source.html#l00059">59</a>·of·file·<a·class="el"·href="a00053_source.html">SILLYBase.h</a>.</p>206 <p·class="definition">Definition·at·line·<a·class="el"·href="a00113_source.html#l00059">59</a>·of·file·<a·class="el"·href="a00113_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">&#9670;&nbsp;</a></span>PixelOrigin</h2>210 <h2·class="memtitle"><span·class="permalink"><a·href="#aebdd89f22790687ac264c1abd9f7fd38">&#9670;&nbsp;</a></span>PixelOrigin</h2>
  
211 <div·class="memitem">211 <div·class="memitem">
Offset 219, 15 lines modifiedOffset 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="a00053_source.html#l00070">70</a>·of·file·<a·class="el"·href="a00053_source.html">SILLYBase.h</a>.</p>224 <p·class="definition">Definition·at·line·<a·class="el"·href="a00113_source.html#l00070">70</a>·of·file·<a·class="el"·href="a00113_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">&#9670;&nbsp;</a></span>JPG_emit_message()</h2>229 <h2·class="memtitle"><span·class="permalink"><a·href="#ae8c4a8f5345f01117c4cab4ba69e2109">&#9670;&nbsp;</a></span>JPG_emit_message()</h2>
  
Offset 250, 15 lines modifiedOffset 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="a00020_source.html#l00084">84</a>·of·file·<a·class="el"·href="a00020_source.html">SILLYJPGImageContext.cpp</a>.</p>256 <p·class="definition">Definition·at·line·<a·class="el"·href="a00005_source.html#l00084">84</a>·of·file·<a·class="el"·href="a00005_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">&#9670;&nbsp;</a></span>JPG_error_exit()</h2>260 <h2·class="memtitle"><span·class="permalink"><a·href="#a1263c9f37c7e03853e7bc7dcb4d172c6">&#9670;&nbsp;</a></span>JPG_error_exit()</h2>
  
261 <div·class="memitem">261 <div·class="memitem">
Offset 270, 15 lines modifiedOffset 270, 15 lines modified
270 ··········<td·class="paramtype">j_common_ptr&#160;</td>270 ··········<td·class="paramtype">j_common_ptr&#160;</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="a00020_source.html#l00076">76</a>·of·file·<a·class="el"·href="a00020_source.html">SILLYJPGImageContext.cpp</a>.</p>276 <p·class="definition">Definition·at·line·<a·class="el"·href="a00005_source.html#l00076">76</a>·of·file·<a·class="el"·href="a00005_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">&#9670;&nbsp;</a></span>JPG_fill_input_buffer()</h2>280 <h2·class="memtitle"><span·class="permalink"><a·href="#a39291a268b8fe5b48a38e395f5aa6296">&#9670;&nbsp;</a></span>JPG_fill_input_buffer()</h2>
  
281 <div·class="memitem">281 <div·class="memitem">
Offset 290, 15 lines modifiedOffset 290, 15 lines modified
290 ··········<td·class="paramtype">j_decompress_ptr&#160;</td>290 ··········<td·class="paramtype">j_decompress_ptr&#160;</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="a00020_source.html#l00054">54</a>·of·file·<a·class="el"·href="a00020_source.html">SILLYJPGImageContext.cpp</a>.</p>296 <p·class="definition">Definition·at·line·<a·class="el"·href="a00005_source.html#l00054">54</a>·of·file·<a·class="el"·href="a00005_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">&#9670;&nbsp;</a></span>JPG_init_source()</h2>300 <h2·class="memtitle"><span·class="permalink"><a·href="#ad721b6115925cc0770f5d09f992065c9">&#9670;&nbsp;</a></span>JPG_init_source()</h2>
  
301 <div·class="memitem">301 <div·class="memitem">
Offset 310, 15 lines modifiedOffset 310, 15 lines modified
310 ··········<td·class="paramtype">j_decompress_ptr&#160;</td>310 ··········<td·class="paramtype">j_decompress_ptr&#160;</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="a00020_source.html#l00049">49</a>·of·file·<a·class="el"·href="a00020_source.html">SILLYJPGImageContext.cpp</a>.</p>316 <p·class="definition">Definition·at·line·<a·class="el"·href="a00005_source.html#l00049">49</a>·of·file·<a·class="el"·href="a00005_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">&#9670;&nbsp;</a></span>JPG_skip_input_data()</h2>320 <h2·class="memtitle"><span·class="permalink"><a·href="#ab7e56ff0692fc5f3a172eecab41f3d48">&#9670;&nbsp;</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.
10.2 KB
./usr/share/doc/libsilly-doc/html/a00945.html
    
Offset 51, 15 lines modifiedOffset 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·&lt;<a·class="el"·href="a00080_source.html">SILLYJPGImageContext.h</a>&gt;</code></p>56 <p><code>#include·&lt;<a·class="el"·href="a00065_source.html">SILLYJPGImageContext.h</a>&gt;</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,80,141,107"/>62 <area·shape="rect"·title="Image·Context·for·JPG·image·loader."·alt=""·coords="5,80,141,107"/>
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,32"/>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,32"/>
Offset 128, 15 lines modifiedOffset 128, 15 lines modified
128 <tr·class="separator:a45d88d901fa542ecdb85a154f1221f90"><td·class="memSeparator"·colspan="2">&#160;</td></tr>128 <tr·class="separator:a45d88d901fa542ecdb85a154f1221f90"><td·class="memSeparator"·colspan="2">&#160;</td></tr>
129 </table>129 </table>
130 <a·name="details"·id="details"></a><h2·class="groupheader">Detailed·Description</h2>130 <a·name="details"·id="details"></a><h2·class="groupheader">Detailed·Description</h2>
131 <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>131 <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>
132 <p·>Most·of·the·code·of·this·loader·is·taken·from·Corona·and·adapted·to·our·image·loading·framework</p>132 <p·>Most·of·the·code·of·this·loader·is·taken·from·Corona·and·adapted·to·our·image·loading·framework</p>
133 <p·>Multiple·loading·is·not·handle·yet.·</p>133 <p·>Multiple·loading·is·not·handle·yet.·</p>
  
134 <p·class="definition">Definition·at·line·<a·class="el"·href="a00080_source.html#l00056">56</a>·of·file·<a·class="el"·href="a00080_source.html">SILLYJPGImageContext.h</a>.</p>134 <p·class="definition">Definition·at·line·<a·class="el"·href="a00065_source.html#l00056">56</a>·of·file·<a·class="el"·href="a00065_source.html">SILLYJPGImageContext.h</a>.</p>
135 </div><h2·class="groupheader">Constructor·&amp;·Destructor·Documentation</h2>135 </div><h2·class="groupheader">Constructor·&amp;·Destructor·Documentation</h2>
136 <a·id="a752bb06a34976226d9d56cc8c8aa42fe"·name="a752bb06a34976226d9d56cc8c8aa42fe"></a>136 <a·id="a752bb06a34976226d9d56cc8c8aa42fe"·name="a752bb06a34976226d9d56cc8c8aa42fe"></a>
137 <h2·class="memtitle"><span·class="permalink"><a·href="#a752bb06a34976226d9d56cc8c8aa42fe">&#9670;&nbsp;</a></span>JPGImageContext()</h2>137 <h2·class="memtitle"><span·class="permalink"><a·href="#a752bb06a34976226d9d56cc8c8aa42fe">&#9670;&nbsp;</a></span>JPGImageContext()</h2>
  
138 <div·class="memitem">138 <div·class="memitem">
139 <div·class="memproto">139 <div·class="memproto">
140 ······<table·class="memname">140 ······<table·class="memname">
Offset 145, 15 lines modifiedOffset 145, 15 lines modified
145 ··········<td>(</td>145 ··········<td>(</td>
146 ··········<td·class="paramname"></td><td>)</td>146 ··········<td·class="paramname"></td><td>)</td>
147 ··········<td></td>147 ··········<td></td>
148 ········</tr>148 ········</tr>
149 ······</table>149 ······</table>
150 </div><div·class="memdoc">150 </div><div·class="memdoc">
  
151 <p·class="definition">Definition·at·line·<a·class="el"·href="a00020_source.html#l00090">90</a>·of·file·<a·class="el"·href="a00020_source.html">SILLYJPGImageContext.cpp</a>.</p>151 <p·class="definition">Definition·at·line·<a·class="el"·href="a00005_source.html#l00090">90</a>·of·file·<a·class="el"·href="a00005_source.html">SILLYJPGImageContext.cpp</a>.</p>
  
152 </div>152 </div>
153 </div>153 </div>
154 <a·id="a5d96cf36c0372331ab3f209bc681d79e"·name="a5d96cf36c0372331ab3f209bc681d79e"></a>154 <a·id="a5d96cf36c0372331ab3f209bc681d79e"·name="a5d96cf36c0372331ab3f209bc681d79e"></a>
155 <h2·class="memtitle"><span·class="permalink"><a·href="#a5d96cf36c0372331ab3f209bc681d79e">&#9670;&nbsp;</a></span>~JPGImageContext()</h2>155 <h2·class="memtitle"><span·class="permalink"><a·href="#a5d96cf36c0372331ab3f209bc681d79e">&#9670;&nbsp;</a></span>~JPGImageContext()</h2>
  
156 <div·class="memitem">156 <div·class="memitem">
Offset 164, 15 lines modifiedOffset 164, 15 lines modified
164 ··········<td>(</td>164 ··········<td>(</td>
165 ··········<td·class="paramname"></td><td>)</td>165 ··········<td·class="paramname"></td><td>)</td>
166 ··········<td></td>166 ··········<td></td>
167 ········</tr>167 ········</tr>
168 ······</table>168 ······</table>
169 </div><div·class="memdoc">169 </div><div·class="memdoc">
  
170 <p·class="definition">Definition·at·line·<a·class="el"·href="a00020_source.html#l00109">109</a>·of·file·<a·class="el"·href="a00020_source.html">SILLYJPGImageContext.cpp</a>.</p>170 <p·class="definition">Definition·at·line·<a·class="el"·href="a00005_source.html#l00109">109</a>·of·file·<a·class="el"·href="a00005_source.html">SILLYJPGImageContext.cpp</a>.</p>
  
171 </div>171 </div>
172 </div>172 </div>
173 <h2·class="groupheader">Member·Function·Documentation</h2>173 <h2·class="groupheader">Member·Function·Documentation</h2>
174 <a·id="a23cd315e8ce80deeb7a06e268f65412f"·name="a23cd315e8ce80deeb7a06e268f65412f"></a>174 <a·id="a23cd315e8ce80deeb7a06e268f65412f"·name="a23cd315e8ce80deeb7a06e268f65412f"></a>
175 <h2·class="memtitle"><span·class="permalink"><a·href="#a23cd315e8ce80deeb7a06e268f65412f">&#9670;&nbsp;</a></span>flipVertically()</h2>175 <h2·class="memtitle"><span·class="permalink"><a·href="#a23cd315e8ce80deeb7a06e268f65412f">&#9670;&nbsp;</a></span>flipVertically()</h2>
  
Offset 195, 15 lines modifiedOffset 195, 15 lines modified
195 ··</tr>195 ··</tr>
196 </table>196 </table>
197 </div><div·class="memdoc">197 </div><div·class="memdoc">
  
198 <p>Flip·pixel·ordering.·</p>198 <p>Flip·pixel·ordering.·</p>
199 <dl·class="section·return"><dt>Returns</dt><dd>true·on·success·false·otherwise·</dd></dl>199 <dl·class="section·return"><dt>Returns</dt><dd>true·on·success·false·otherwise·</dd></dl>
  
200 <p·class="definition">Definition·at·line·<a·class="el"·href="a00008_source.html#l00045">45</a>·of·file·<a·class="el"·href="a00008_source.html">SILLYImageContext.cpp</a>.</p>200 <p·class="definition">Definition·at·line·<a·class="el"·href="a00026_source.html#l00045">45</a>·of·file·<a·class="el"·href="a00026_source.html">SILLYImageContext.cpp</a>.</p>
  
201 </div>201 </div>
202 </div>202 </div>
203 <a·id="a9082812fb7dbb2ca6fe3efdf26dcc2ea"·name="a9082812fb7dbb2ca6fe3efdf26dcc2ea"></a>203 <a·id="a9082812fb7dbb2ca6fe3efdf26dcc2ea"·name="a9082812fb7dbb2ca6fe3efdf26dcc2ea"></a>
204 <h2·class="memtitle"><span·class="permalink"><a·href="#a9082812fb7dbb2ca6fe3efdf26dcc2ea">&#9670;&nbsp;</a></span>setImageSize()</h2>204 <h2·class="memtitle"><span·class="permalink"><a·href="#a9082812fb7dbb2ca6fe3efdf26dcc2ea">&#9670;&nbsp;</a></span>setImageSize()</h2>
  
205 <div·class="memitem">205 <div·class="memitem">
Offset 214, 15 lines modifiedOffset 214, 15 lines modified
214 ··········<td>(</td>214 ··········<td>(</td>
215 ··········<td·class="paramname"></td><td>)</td>215 ··········<td·class="paramname"></td><td>)</td>
216 ··········<td></td>216 ··········<td></td>
217 ········</tr>217 ········</tr>
218 ······</table>218 ······</table>
219 </div><div·class="memdoc">219 </div><div·class="memdoc">
  
220 <p·class="definition">Definition·at·line·<a·class="el"·href="a00020_source.html#l00115">115</a>·of·file·<a·class="el"·href="a00020_source.html">SILLYJPGImageContext.cpp</a>.</p>220 <p·class="definition">Definition·at·line·<a·class="el"·href="a00005_source.html#l00115">115</a>·of·file·<a·class="el"·href="a00005_source.html">SILLYJPGImageContext.cpp</a>.</p>
  
221 </div>221 </div>
222 </div>222 </div>
223 <h2·class="groupheader">Member·Data·Documentation</h2>223 <h2·class="groupheader">Member·Data·Documentation</h2>
224 <a·id="a9ae932fa761a0df1ff0c4ff65c5346b5"·name="a9ae932fa761a0df1ff0c4ff65c5346b5"></a>224 <a·id="a9ae932fa761a0df1ff0c4ff65c5346b5"·name="a9ae932fa761a0df1ff0c4ff65c5346b5"></a>
225 <h2·class="memtitle"><span·class="permalink"><a·href="#a9ae932fa761a0df1ff0c4ff65c5346b5">&#9670;&nbsp;</a></span>cinfo</h2>225 <h2·class="memtitle"><span·class="permalink"><a·href="#a9ae932fa761a0df1ff0c4ff65c5346b5">&#9670;&nbsp;</a></span>cinfo</h2>
  
Offset 231, 15 lines modifiedOffset 231, 15 lines modified
231 ······<table·class="memname">231 ······<table·class="memname">
232 ········<tr>232 ········<tr>
233 ··········<td·class="memname">jpeg_decompress_struct·cinfo</td>233 ··········<td·class="memname">jpeg_decompress_struct·cinfo</td>
234 ········</tr>234 ········</tr>
235 ······</table>235 ······</table>
236 </div><div·class="memdoc">236 </div><div·class="memdoc">
  
237 <p·class="definition">Definition·at·line·<a·class="el"·href="a00080_source.html#l00066">66</a>·of·file·<a·class="el"·href="a00080_source.html">SILLYJPGImageContext.h</a>.</p>237 <p·class="definition">Definition·at·line·<a·class="el"·href="a00065_source.html#l00066">66</a>·of·file·<a·class="el"·href="a00065_source.html">SILLYJPGImageContext.h</a>.</p>
  
238 </div>238 </div>
239 </div>239 </div>
240 <a·id="a8266dbf94d328ee7d09ecba3b26171a0"·name="a8266dbf94d328ee7d09ecba3b26171a0"></a>240 <a·id="a8266dbf94d328ee7d09ecba3b26171a0"·name="a8266dbf94d328ee7d09ecba3b26171a0"></a>
241 <h2·class="memtitle"><span·class="permalink"><a·href="#a8266dbf94d328ee7d09ecba3b26171a0">&#9670;&nbsp;</a></span>d_error_mgr</h2>241 <h2·class="memtitle"><span·class="permalink"><a·href="#a8266dbf94d328ee7d09ecba3b26171a0">&#9670;&nbsp;</a></span>d_error_mgr</h2>
  
242 <div·class="memitem">242 <div·class="memitem">
Offset 247, 15 lines modifiedOffset 247, 15 lines modified
247 ······<table·class="memname">247 ······<table·class="memname">
248 ········<tr>248 ········<tr>
249 ··········<td·class="memname">jpeg_error_mgr·d_error_mgr</td>249 ··········<td·class="memname">jpeg_error_mgr·d_error_mgr</td>
250 ········</tr>250 ········</tr>
251 ······</table>251 ······</table>
252 </div><div·class="memdoc">252 </div><div·class="memdoc">
  
253 <p·class="definition">Definition·at·line·<a·class="el"·href="a00080_source.html#l00068">68</a>·of·file·<a·class="el"·href="a00080_source.html">SILLYJPGImageContext.h</a>.</p>253 <p·class="definition">Definition·at·line·<a·class="el"·href="a00065_source.html#l00068">68</a>·of·file·<a·class="el"·href="a00065_source.html">SILLYJPGImageContext.h</a>.</p>
  
254 </div>254 </div>
255 </div>255 </div>
256 <a·id="a424f8139b59505ea272016c9fd1b1da9"·name="a424f8139b59505ea272016c9fd1b1da9"></a>256 <a·id="a424f8139b59505ea272016c9fd1b1da9"·name="a424f8139b59505ea272016c9fd1b1da9"></a>
257 <h2·class="memtitle"><span·class="permalink"><a·href="#a424f8139b59505ea272016c9fd1b1da9">&#9670;&nbsp;</a></span>d_source</h2>257 <h2·class="memtitle"><span·class="permalink"><a·href="#a424f8139b59505ea272016c9fd1b1da9">&#9670;&nbsp;</a></span>d_source</h2>
  
258 <div·class="memitem">258 <div·class="memitem">
Max diff block lines reached; 3067/10362 bytes (29.60%) of diff not shown.
7.68 KB
./usr/share/doc/libsilly-doc/html/a00949.html
    
Offset 49, 15 lines modifiedOffset 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·&lt;<a·class="el"·href="a00086_source.html">SILLYJPGImageLoader.h</a>&gt;</code></p>54 <p><code>#include·&lt;<a·class="el"·href="a00056_source.html">SILLYJPGImageLoader.h</a>&gt;</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,80,135,107"/>60 <area·shape="rect"·title="Loader·class·for·JPG·Image."·alt=""·coords="5,80,135,107"/>
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,32"/>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,32"/>
Offset 88, 15 lines modifiedOffset 88, 15 lines modified
88 <tr·class="memitem:a4a4d6df5dcc08cb493855fcfc1956fca"><td·class="memItemLeft"·align="right"·valign="top">bool&#160;</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>88 <tr·class="memitem:a4a4d6df5dcc08cb493855fcfc1956fca"><td·class="memItemLeft"·align="right"·valign="top">bool&#160;</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>
89 <tr·class="memdesc:a4a4d6df5dcc08cb493855fcfc1956fca"><td·class="mdescLeft">&#160;</td><td·class="mdescRight">Parse·the·pixels·data·of·the·image·and·fill·the·header·struct.··<a·href="a00949.html#a4a4d6df5dcc08cb493855fcfc1956fca">More...</a><br·/></td></tr>89 <tr·class="memdesc:a4a4d6df5dcc08cb493855fcfc1956fca"><td·class="mdescLeft">&#160;</td><td·class="mdescRight">Parse·the·pixels·data·of·the·image·and·fill·the·header·struct.··<a·href="a00949.html#a4a4d6df5dcc08cb493855fcfc1956fca">More...</a><br·/></td></tr>
90 <tr·class="separator:a4a4d6df5dcc08cb493855fcfc1956fca"><td·class="memSeparator"·colspan="2">&#160;</td></tr>90 <tr·class="separator:a4a4d6df5dcc08cb493855fcfc1956fca"><td·class="memSeparator"·colspan="2">&#160;</td></tr>
91 </table>91 </table>
92 <a·name="details"·id="details"></a><h2·class="groupheader">Detailed·Description</h2>92 <a·name="details"·id="details"></a><h2·class="groupheader">Detailed·Description</h2>
93 <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>93 <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>
  
94 <p·class="definition">Definition·at·line·<a·class="el"·href="a00086_source.html#l00042">42</a>·of·file·<a·class="el"·href="a00086_source.html">SILLYJPGImageLoader.h</a>.</p>94 <p·class="definition">Definition·at·line·<a·class="el"·href="a00056_source.html#l00042">42</a>·of·file·<a·class="el"·href="a00056_source.html">SILLYJPGImageLoader.h</a>.</p>
95 </div><h2·class="groupheader">Constructor·&amp;·Destructor·Documentation</h2>95 </div><h2·class="groupheader">Constructor·&amp;·Destructor·Documentation</h2>
96 <a·id="ad924638c307b0e9c422ab17517cb0035"·name="ad924638c307b0e9c422ab17517cb0035"></a>96 <a·id="ad924638c307b0e9c422ab17517cb0035"·name="ad924638c307b0e9c422ab17517cb0035"></a>
97 <h2·class="memtitle"><span·class="permalink"><a·href="#ad924638c307b0e9c422ab17517cb0035">&#9670;&nbsp;</a></span>JPGImageLoader()</h2>97 <h2·class="memtitle"><span·class="permalink"><a·href="#ad924638c307b0e9c422ab17517cb0035">&#9670;&nbsp;</a></span>JPGImageLoader()</h2>
  
98 <div·class="memitem">98 <div·class="memitem">
99 <div·class="memproto">99 <div·class="memproto">
100 ······<table·class="memname">100 ······<table·class="memname">
Offset 105, 15 lines modifiedOffset 105, 15 lines modified
105 ··········<td>(</td>105 ··········<td>(</td>
106 ··········<td·class="paramname"></td><td>)</td>106 ··········<td·class="paramname"></td><td>)</td>
107 ··········<td></td>107 ··········<td></td>
108 ········</tr>108 ········</tr>
109 ······</table>109 ······</table>
110 </div><div·class="memdoc">110 </div><div·class="memdoc">
  
111 <p·class="definition">Definition·at·line·<a·class="el"·href="a00014_source.html#l00046">46</a>·of·file·<a·class="el"·href="a00014_source.html">SILLYJPGImageLoader.cpp</a>.</p>111 <p·class="definition">Definition·at·line·<a·class="el"·href="a00008_source.html#l00046">46</a>·of·file·<a·class="el"·href="a00008_source.html">SILLYJPGImageLoader.cpp</a>.</p>
  
112 </div>112 </div>
113 </div>113 </div>
114 <a·id="a2d90e762c094d49c2b6bd2479ba35e00"·name="a2d90e762c094d49c2b6bd2479ba35e00"></a>114 <a·id="a2d90e762c094d49c2b6bd2479ba35e00"·name="a2d90e762c094d49c2b6bd2479ba35e00"></a>
115 <h2·class="memtitle"><span·class="permalink"><a·href="#a2d90e762c094d49c2b6bd2479ba35e00">&#9670;&nbsp;</a></span>~JPGImageLoader()</h2>115 <h2·class="memtitle"><span·class="permalink"><a·href="#a2d90e762c094d49c2b6bd2479ba35e00">&#9670;&nbsp;</a></span>~JPGImageLoader()</h2>
  
116 <div·class="memitem">116 <div·class="memitem">
Offset 124, 15 lines modifiedOffset 124, 15 lines modified
124 ··········<td>(</td>124 ··········<td>(</td>
125 ··········<td·class="paramname"></td><td>)</td>125 ··········<td·class="paramname"></td><td>)</td>
126 ··········<td></td>126 ··········<td></td>
127 ········</tr>127 ········</tr>
128 ······</table>128 ······</table>
129 </div><div·class="memdoc">129 </div><div·class="memdoc">
  
130 <p·class="definition">Definition·at·line·<a·class="el"·href="a00014_source.html#l00051">51</a>·of·file·<a·class="el"·href="a00014_source.html">SILLYJPGImageLoader.cpp</a>.</p>130 <p·class="definition">Definition·at·line·<a·class="el"·href="a00008_source.html#l00051">51</a>·of·file·<a·class="el"·href="a00008_source.html">SILLYJPGImageLoader.cpp</a>.</p>
  
131 </div>131 </div>
132 </div>132 </div>
133 <h2·class="groupheader">Member·Function·Documentation</h2>133 <h2·class="groupheader">Member·Function·Documentation</h2>
134 <a·id="a439f9065fd9a935d7f53b30b2242e924"·name="a439f9065fd9a935d7f53b30b2242e924"></a>134 <a·id="a439f9065fd9a935d7f53b30b2242e924"·name="a439f9065fd9a935d7f53b30b2242e924"></a>
135 <h2·class="memtitle"><span·class="permalink"><a·href="#a439f9065fd9a935d7f53b30b2242e924">&#9670;&nbsp;</a></span>destroyContext()</h2>135 <h2·class="memtitle"><span·class="permalink"><a·href="#a439f9065fd9a935d7f53b30b2242e924">&#9670;&nbsp;</a></span>destroyContext()</h2>
  
Offset 161, 15 lines modifiedOffset 161, 15 lines modified
161 <dl·class="params"><dt>Parameters</dt><dd>161 <dl·class="params"><dt>Parameters</dt><dd>
162 ··<table·class="params">162 ··<table·class="params">
163 ····<tr><td·class="paramname">context</td><td>a·pointer·to·the·context·</td></tr>163 ····<tr><td·class="paramname">context</td><td>a·pointer·to·the·context·</td></tr>
164 ··</table>164 ··</table>
165 ··</dd>165 ··</dd>
166 </dl>166 </dl>
  
167 <p·class="definition">Definition·at·line·<a·class="el"·href="a00002_source.html#l00047">47</a>·of·file·<a·class="el"·href="a00002_source.html">SILLYImageLoader.cpp</a>.</p>167 <p·class="definition">Definition·at·line·<a·class="el"·href="a00035_source.html#l00047">47</a>·of·file·<a·class="el"·href="a00035_source.html">SILLYImageLoader.cpp</a>.</p>
  
168 </div>168 </div>
169 </div>169 </div>
170 <a·id="a919eb05f6df058544657e865a1590d5a"·name="a919eb05f6df058544657e865a1590d5a"></a>170 <a·id="a919eb05f6df058544657e865a1590d5a"·name="a919eb05f6df058544657e865a1590d5a"></a>
171 <h2·class="memtitle"><span·class="permalink"><a·href="#a919eb05f6df058544657e865a1590d5a">&#9670;&nbsp;</a></span>loadHeader()</h2>171 <h2·class="memtitle"><span·class="permalink"><a·href="#a919eb05f6df058544657e865a1590d5a">&#9670;&nbsp;</a></span>loadHeader()</h2>
  
172 <div·class="memitem">172 <div·class="memitem">
Offset 211, 15 lines modifiedOffset 211, 15 lines modified
211 ··</table>211 ··</table>
212 ··</dd>212 ··</dd>
213 </dl>213 </dl>
214 <dl·class="section·return"><dt>Returns</dt><dd>Context·for·the·rest·of·the·parsing·or·0·if·an·error·occured·</dd></dl>214 <dl·class="section·return"><dt>Returns</dt><dd>Context·for·the·rest·of·the·parsing·or·0·if·an·error·occured·</dd></dl>
  
215 <p>Implements·<a·class="el"·href="a00985.html#a4a6a3a51641cbbb3184ab00d9de6f753">ImageLoader</a>.</p>215 <p>Implements·<a·class="el"·href="a00985.html#a4a6a3a51641cbbb3184ab00d9de6f753">ImageLoader</a>.</p>
  
216 <p·class="definition">Definition·at·line·<a·class="el"·href="a00014_source.html#l00056">56</a>·of·file·<a·class="el"·href="a00014_source.html">SILLYJPGImageLoader.cpp</a>.</p>216 <p·class="definition">Definition·at·line·<a·class="el"·href="a00008_source.html#l00056">56</a>·of·file·<a·class="el"·href="a00008_source.html">SILLYJPGImageLoader.cpp</a>.</p>
  
217 </div>217 </div>
218 </div>218 </div>
219 <a·id="a4a4d6df5dcc08cb493855fcfc1956fca"·name="a4a4d6df5dcc08cb493855fcfc1956fca"></a>219 <a·id="a4a4d6df5dcc08cb493855fcfc1956fca"·name="a4a4d6df5dcc08cb493855fcfc1956fca"></a>
220 <h2·class="memtitle"><span·class="permalink"><a·href="#a4a4d6df5dcc08cb493855fcfc1956fca">&#9670;&nbsp;</a></span>loadImageData()</h2>220 <h2·class="memtitle"><span·class="permalink"><a·href="#a4a4d6df5dcc08cb493855fcfc1956fca">&#9670;&nbsp;</a></span>loadImageData()</h2>
  
221 <div·class="memitem">221 <div·class="memitem">
Offset 268, 21 lines modifiedOffset 268, 21 lines modified
268 ··</table>268 ··</table>
269 ··</dd>269 ··</dd>
270 </dl>270 </dl>
271 <dl·class="section·return"><dt>Returns</dt><dd>true·on·success·false·on·error·</dd></dl>271 <dl·class="section·return"><dt>Returns</dt><dd>true·on·success·false·on·error·</dd></dl>
  
272 <p>Implements·<a·class="el"·href="a00985.html#a7622e69834f644d7cf1201c1cabd80c6">ImageLoader</a>.</p>272 <p>Implements·<a·class="el"·href="a00985.html#a7622e69834f644d7cf1201c1cabd80c6">ImageLoader</a>.</p>
  
273 <p·class="definition">Definition·at·line·<a·class="el"·href="a00014_source.html#l00090">90</a>·of·file·<a·class="el"·href="a00014_source.html">SILLYJPGImageLoader.cpp</a>.</p>273 <p·class="definition">Definition·at·line·<a·class="el"·href="a00008_source.html#l00090">90</a>·of·file·<a·class="el"·href="a00008_source.html">SILLYJPGImageLoader.cpp</a>.</p>
  
274 </div>274 </div>
275 </div>275 </div>
276 <hr/>The·documentation·for·this·class·was·generated·from·the·following·files:<ul>276 <hr/>The·documentation·for·this·class·was·generated·from·the·following·files:<ul>
277 <li>/build/reproducible-path/silly-0.1.0/include/loaders/<a·class="el"·href="a00086_source.html">SILLYJPGImageLoader.h</a></li>277 <li>/build/reproducible-path/silly-0.1.0/include/loaders/<a·class="el"·href="a00056_source.html">SILLYJPGImageLoader.h</a></li>
278 <li>/build/reproducible-path/silly-0.1.0/src/loaders/<a·class="el"·href="a00014_source.html">SILLYJPGImageLoader.cpp</a></li>278 <li>/build/reproducible-path/silly-0.1.0/src/loaders/<a·class="el"·href="a00008_source.html">SILLYJPGImageLoader.cpp</a></li>
279 </ul>279 </ul>
280 </div><!--·contents·-->280 </div><!--·contents·-->
281 <!--·start·footer·part·-->281 <!--·start·footer·part·-->
282 <hr·class="footer"/><address·class="footer"><small>282 <hr·class="footer"/><address·class="footer"><small>
283 Generated·by&#160;<a·href="https://www.doxygen.org/index.html"><img·class="footer"·src="doxygen.svg"·width="104"·height="31"·alt="doxygen"/></a>·1.9.4283 Generated·by&#160;<a·href="https://www.doxygen.org/index.html"><img·class="footer"·src="doxygen.svg"·width="104"·height="31"·alt="doxygen"/></a>·1.9.4
284 </small></address>284 </small></address>
285 </body>285 </body>
7.41 KB
./usr/share/doc/libsilly-doc/html/a00953.html
    
Offset 51, 15 lines modifiedOffset 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·&lt;<a·class="el"·href="a00095_source.html">SILLYPNGImageContext.h</a>&gt;</code></p>56 <p><code>#include·&lt;<a·class="el"·href="a00089_source.html">SILLYPNGImageContext.h</a>&gt;</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,80,148,107"/>62 <area·shape="rect"·title="Image·Context·for·PNG·Image·Loader."·alt=""·coords="5,80,148,107"/>
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,32"/>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,32"/>
Offset 115, 15 lines modifiedOffset 115, 15 lines modified
115 Friends</h2></td></tr>115 Friends</h2></td></tr>
116 <tr·class="memitem:a09d643e9cb6da71909f02b1945bacca9"><td·class="memItemLeft"·align="right"·valign="top">class&#160;</td><td·class="memItemRight"·valign="bottom"><a·class="el"·href="a00953.html#a09d643e9cb6da71909f02b1945bacca9">PNGImageLoader</a></td></tr>116 <tr·class="memitem:a09d643e9cb6da71909f02b1945bacca9"><td·class="memItemLeft"·align="right"·valign="top">class&#160;</td><td·class="memItemRight"·valign="bottom"><a·class="el"·href="a00953.html#a09d643e9cb6da71909f02b1945bacca9">PNGImageLoader</a></td></tr>
117 <tr·class="separator:a09d643e9cb6da71909f02b1945bacca9"><td·class="memSeparator"·colspan="2">&#160;</td></tr>117 <tr·class="separator:a09d643e9cb6da71909f02b1945bacca9"><td·class="memSeparator"·colspan="2">&#160;</td></tr>
118 </table>118 </table>
119 <a·name="details"·id="details"></a><h2·class="groupheader">Detailed·Description</h2>119 <a·name="details"·id="details"></a><h2·class="groupheader">Detailed·Description</h2>
120 <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>120 <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>
  
121 <p·class="definition">Definition·at·line·<a·class="el"·href="a00095_source.html#l00045">45</a>·of·file·<a·class="el"·href="a00095_source.html">SILLYPNGImageContext.h</a>.</p>121 <p·class="definition">Definition·at·line·<a·class="el"·href="a00089_source.html#l00045">45</a>·of·file·<a·class="el"·href="a00089_source.html">SILLYPNGImageContext.h</a>.</p>
122 </div><h2·class="groupheader">Constructor·&amp;·Destructor·Documentation</h2>122 </div><h2·class="groupheader">Constructor·&amp;·Destructor·Documentation</h2>
123 <a·id="ae47b130da3aef3eeb9a67540e9e6ff4b"·name="ae47b130da3aef3eeb9a67540e9e6ff4b"></a>123 <a·id="ae47b130da3aef3eeb9a67540e9e6ff4b"·name="ae47b130da3aef3eeb9a67540e9e6ff4b"></a>
124 <h2·class="memtitle"><span·class="permalink"><a·href="#ae47b130da3aef3eeb9a67540e9e6ff4b">&#9670;&nbsp;</a></span>PNGImageContext()</h2>124 <h2·class="memtitle"><span·class="permalink"><a·href="#ae47b130da3aef3eeb9a67540e9e6ff4b">&#9670;&nbsp;</a></span>PNGImageContext()</h2>
  
125 <div·class="memitem">125 <div·class="memitem">
126 <div·class="memproto">126 <div·class="memproto">
127 ······<table·class="memname">127 ······<table·class="memname">
Offset 133, 15 lines modifiedOffset 133, 15 lines modified
133 ··········<td·class="paramtype"><a·class="el"·href="a00969.html">DataSource</a>·*&#160;</td>133 ··········<td·class="paramtype"><a·class="el"·href="a00969.html">DataSource</a>·*&#160;</td>
134 ··········<td·class="paramname"><em>data</em></td><td>)</td>134 ··········<td·class="paramname"><em>data</em></td><td>)</td>
135 ··········<td></td>135 ··········<td></td>
136 ········</tr>136 ········</tr>
137 ······</table>137 ······</table>
138 </div><div·class="memdoc">138 </div><div·class="memdoc">
  
139 <p·class="definition">Definition·at·line·<a·class="el"·href="a00026_source.html#l00059">59</a>·of·file·<a·class="el"·href="a00026_source.html">SILLYPNGImageContext.cpp</a>.</p>139 <p·class="definition">Definition·at·line·<a·class="el"·href="a00011_source.html#l00059">59</a>·of·file·<a·class="el"·href="a00011_source.html">SILLYPNGImageContext.cpp</a>.</p>
  
140 </div>140 </div>
141 </div>141 </div>
142 <a·id="a4912a0de86a765bda03e6209d4101f46"·name="a4912a0de86a765bda03e6209d4101f46"></a>142 <a·id="a4912a0de86a765bda03e6209d4101f46"·name="a4912a0de86a765bda03e6209d4101f46"></a>
143 <h2·class="memtitle"><span·class="permalink"><a·href="#a4912a0de86a765bda03e6209d4101f46">&#9670;&nbsp;</a></span>~PNGImageContext()</h2>143 <h2·class="memtitle"><span·class="permalink"><a·href="#a4912a0de86a765bda03e6209d4101f46">&#9670;&nbsp;</a></span>~PNGImageContext()</h2>
  
144 <div·class="memitem">144 <div·class="memitem">
Offset 152, 15 lines modifiedOffset 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="a00026_source.html#l00065">65</a>·of·file·<a·class="el"·href="a00026_source.html">SILLYPNGImageContext.cpp</a>.</p>158 <p·class="definition">Definition·at·line·<a·class="el"·href="a00011_source.html#l00065">65</a>·of·file·<a·class="el"·href="a00011_source.html">SILLYPNGImageContext.cpp</a>.</p>
  
159 </div>159 </div>
160 </div>160 </div>
161 <h2·class="groupheader">Member·Function·Documentation</h2>161 <h2·class="groupheader">Member·Function·Documentation</h2>
162 <a·id="a23cd315e8ce80deeb7a06e268f65412f"·name="a23cd315e8ce80deeb7a06e268f65412f"></a>162 <a·id="a23cd315e8ce80deeb7a06e268f65412f"·name="a23cd315e8ce80deeb7a06e268f65412f"></a>
163 <h2·class="memtitle"><span·class="permalink"><a·href="#a23cd315e8ce80deeb7a06e268f65412f">&#9670;&nbsp;</a></span>flipVertically()</h2>163 <h2·class="memtitle"><span·class="permalink"><a·href="#a23cd315e8ce80deeb7a06e268f65412f">&#9670;&nbsp;</a></span>flipVertically()</h2>
  
Offset 183, 15 lines modifiedOffset 183, 15 lines modified
183 ··</tr>183 ··</tr>
184 </table>184 </table>
185 </div><div·class="memdoc">185 </div><div·class="memdoc">
  
186 <p>Flip·pixel·ordering.·</p>186 <p>Flip·pixel·ordering.·</p>
187 <dl·class="section·return"><dt>Returns</dt><dd>true·on·success·false·otherwise·</dd></dl>187 <dl·class="section·return"><dt>Returns</dt><dd>true·on·success·false·otherwise·</dd></dl>
  
188 <p·class="definition">Definition·at·line·<a·class="el"·href="a00008_source.html#l00045">45</a>·of·file·<a·class="el"·href="a00008_source.html">SILLYImageContext.cpp</a>.</p>188 <p·class="definition">Definition·at·line·<a·class="el"·href="a00026_source.html#l00045">45</a>·of·file·<a·class="el"·href="a00026_source.html">SILLYImageContext.cpp</a>.</p>
  
189 </div>189 </div>
190 </div>190 </div>
191 <a·id="a63f8060d012f47e88a6630878e67d520"·name="a63f8060d012f47e88a6630878e67d520"></a>191 <a·id="a63f8060d012f47e88a6630878e67d520"·name="a63f8060d012f47e88a6630878e67d520"></a>
192 <h2·class="memtitle"><span·class="permalink"><a·href="#a63f8060d012f47e88a6630878e67d520">&#9670;&nbsp;</a></span>read()</h2>192 <h2·class="memtitle"><span·class="permalink"><a·href="#a63f8060d012f47e88a6630878e67d520">&#9670;&nbsp;</a></span>read()</h2>
  
193 <div·class="memitem">193 <div·class="memitem">
Offset 213, 15 lines modifiedOffset 213, 15 lines modified
213 ··········<td></td>213 ··········<td></td>
214 ··········<td>)</td>214 ··········<td>)</td>
215 ··········<td></td><td></td>215 ··········<td></td><td></td>
216 ········</tr>216 ········</tr>
217 ······</table>217 ······</table>
218 </div><div·class="memdoc">218 </div><div·class="memdoc">
  
219 <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">SILLYPNGImageContext.cpp</a>.</p>219 <p·class="definition">Definition·at·line·<a·class="el"·href="a00011_source.html#l00046">46</a>·of·file·<a·class="el"·href="a00011_source.html">SILLYPNGImageContext.cpp</a>.</p>
  
220 </div>220 </div>
221 </div>221 </div>
222 <h2·class="groupheader">Friends·And·Related·Function·Documentation</h2>222 <h2·class="groupheader">Friends·And·Related·Function·Documentation</h2>
223 <a·id="a09d643e9cb6da71909f02b1945bacca9"·name="a09d643e9cb6da71909f02b1945bacca9"></a>223 <a·id="a09d643e9cb6da71909f02b1945bacca9"·name="a09d643e9cb6da71909f02b1945bacca9"></a>
224 <h2·class="memtitle"><span·class="permalink"><a·href="#a09d643e9cb6da71909f02b1945bacca9">&#9670;&nbsp;</a></span>PNGImageLoader</h2>224 <h2·class="memtitle"><span·class="permalink"><a·href="#a09d643e9cb6da71909f02b1945bacca9">&#9670;&nbsp;</a></span>PNGImageLoader</h2>
  
Offset 238, 21 lines modifiedOffset 238, 21 lines modified
238 ··</td>238 ··</td>
239 ··<td·class="mlabels-right">239 ··<td·class="mlabels-right">
240 <span·class="mlabels"><span·class="mlabel">friend</span></span>··</td>240 <span·class="mlabels"><span·class="mlabel">friend</span></span>··</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="a00095_source.html#l00070">70</a>·of·file·<a·class="el"·href="a00095_source.html">SILLYPNGImageContext.h</a>.</p>244 <p·class="definition">Definition·at·line·<a·class="el"·href="a00089_source.html#l00070">70</a>·of·file·<a·class="el"·href="a00089_source.html">SILLYPNGImageContext.h</a>.</p>
  
245 </div>245 </div>
246 </div>246 </div>
247 <hr/>The·documentation·for·this·class·was·generated·from·the·following·files:<ul>247 <hr/>The·documentation·for·this·class·was·generated·from·the·following·files:<ul>
248 <li>/build/reproducible-path/silly-0.1.0/include/loaders/<a·class="el"·href="a00095_source.html">SILLYPNGImageContext.h</a></li>248 <li>/build/reproducible-path/silly-0.1.0/include/loaders/<a·class="el"·href="a00089_source.html">SILLYPNGImageContext.h</a></li>
249 <li>/build/reproducible-path/silly-0.1.0/src/loaders/<a·class="el"·href="a00026_source.html">SILLYPNGImageContext.cpp</a></li>249 <li>/build/reproducible-path/silly-0.1.0/src/loaders/<a·class="el"·href="a00011_source.html">SILLYPNGImageContext.cpp</a></li>
250 </ul>250 </ul>
251 </div><!--·contents·-->251 </div><!--·contents·-->
252 <!--·start·footer·part·-->252 <!--·start·footer·part·-->
253 <hr·class="footer"/><address·class="footer"><small>253 <hr·class="footer"/><address·class="footer"><small>
254 Generated·by&#160;<a·href="https://www.doxygen.org/index.html"><img·class="footer"·src="doxygen.svg"·width="104"·height="31"·alt="doxygen"/></a>·1.9.4254 Generated·by&#160;<a·href="https://www.doxygen.org/index.html"><img·class="footer"·src="doxygen.svg"·width="104"·height="31"·alt="doxygen"/></a>·1.9.4
255 </small></address>255 </small></address>
256 </body>256 </body>
7.66 KB
./usr/share/doc/libsilly-doc/html/a00957.html
    
Offset 49, 15 lines modifiedOffset 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·&lt;<a·class="el"·href="a00098_source.html">SILLYPNGImageLoader.h</a>&gt;</code></p>54 <p><code>#include·&lt;<a·class="el"·href="a00068_source.html">SILLYPNGImageLoader.h</a>&gt;</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,80,140,107"/>60 <area·shape="rect"·title="Loader·for·PNG·Image."·alt=""·coords="5,80,140,107"/>
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,32"/>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,32"/>
Offset 88, 15 lines modifiedOffset 88, 15 lines modified
88 <tr·class="memitem:a4a4d6df5dcc08cb493855fcfc1956fca"><td·class="memItemLeft"·align="right"·valign="top">bool&#160;</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>88 <tr·class="memitem:a4a4d6df5dcc08cb493855fcfc1956fca"><td·class="memItemLeft"·align="right"·valign="top">bool&#160;</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>
89 <tr·class="memdesc:a4a4d6df5dcc08cb493855fcfc1956fca"><td·class="mdescLeft">&#160;</td><td·class="mdescRight">Parse·the·pixels·data·of·the·image·and·fill·the·header·struct.··<a·href="a00957.html#a4a4d6df5dcc08cb493855fcfc1956fca">More...</a><br·/></td></tr>89 <tr·class="memdesc:a4a4d6df5dcc08cb493855fcfc1956fca"><td·class="mdescLeft">&#160;</td><td·class="mdescRight">Parse·the·pixels·data·of·the·image·and·fill·the·header·struct.··<a·href="a00957.html#a4a4d6df5dcc08cb493855fcfc1956fca">More...</a><br·/></td></tr>
90 <tr·class="separator:a4a4d6df5dcc08cb493855fcfc1956fca"><td·class="memSeparator"·colspan="2">&#160;</td></tr>90 <tr·class="separator:a4a4d6df5dcc08cb493855fcfc1956fca"><td·class="memSeparator"·colspan="2">&#160;</td></tr>
91 </table>91 </table>
92 <a·name="details"·id="details"></a><h2·class="groupheader">Detailed·Description</h2>92 <a·name="details"·id="details"></a><h2·class="groupheader">Detailed·Description</h2>
93 <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>93 <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>
  
94 <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">SILLYPNGImageLoader.h</a>.</p>94 <p·class="definition">Definition·at·line·<a·class="el"·href="a00068_source.html#l00042">42</a>·of·file·<a·class="el"·href="a00068_source.html">SILLYPNGImageLoader.h</a>.</p>
95 </div><h2·class="groupheader">Constructor·&amp;·Destructor·Documentation</h2>95 </div><h2·class="groupheader">Constructor·&amp;·Destructor·Documentation</h2>
96 <a·id="a2c7553f474a641316197827bfa31ac98"·name="a2c7553f474a641316197827bfa31ac98"></a>96 <a·id="a2c7553f474a641316197827bfa31ac98"·name="a2c7553f474a641316197827bfa31ac98"></a>
97 <h2·class="memtitle"><span·class="permalink"><a·href="#a2c7553f474a641316197827bfa31ac98">&#9670;&nbsp;</a></span>PNGImageLoader()</h2>97 <h2·class="memtitle"><span·class="permalink"><a·href="#a2c7553f474a641316197827bfa31ac98">&#9670;&nbsp;</a></span>PNGImageLoader()</h2>
  
98 <div·class="memitem">98 <div·class="memitem">
99 <div·class="memproto">99 <div·class="memproto">
100 ······<table·class="memname">100 ······<table·class="memname">
Offset 105, 15 lines modifiedOffset 105, 15 lines modified
105 ··········<td>(</td>105 ··········<td>(</td>
106 ··········<td·class="paramname"></td><td>)</td>106 ··········<td·class="paramname"></td><td>)</td>
107 ··········<td></td>107 ··········<td></td>
108 ········</tr>108 ········</tr>
109 ······</table>109 ······</table>
110 </div><div·class="memdoc">110 </div><div·class="memdoc">
  
111 <p·class="definition">Definition·at·line·<a·class="el"·href="a00023_source.html#l00079">79</a>·of·file·<a·class="el"·href="a00023_source.html">SILLYPNGImageLoader.cpp</a>.</p>111 <p·class="definition">Definition·at·line·<a·class="el"·href="a00017_source.html#l00079">79</a>·of·file·<a·class="el"·href="a00017_source.html">SILLYPNGImageLoader.cpp</a>.</p>
  
112 </div>112 </div>
113 </div>113 </div>
114 <a·id="a60baba8c757fd5c118709e5bc4adc08d"·name="a60baba8c757fd5c118709e5bc4adc08d"></a>114 <a·id="a60baba8c757fd5c118709e5bc4adc08d"·name="a60baba8c757fd5c118709e5bc4adc08d"></a>
115 <h2·class="memtitle"><span·class="permalink"><a·href="#a60baba8c757fd5c118709e5bc4adc08d">&#9670;&nbsp;</a></span>~PNGImageLoader()</h2>115 <h2·class="memtitle"><span·class="permalink"><a·href="#a60baba8c757fd5c118709e5bc4adc08d">&#9670;&nbsp;</a></span>~PNGImageLoader()</h2>
  
116 <div·class="memitem">116 <div·class="memitem">
Offset 124, 15 lines modifiedOffset 124, 15 lines modified
124 ··········<td>(</td>124 ··········<td>(</td>
125 ··········<td·class="paramname"></td><td>)</td>125 ··········<td·class="paramname"></td><td>)</td>
126 ··········<td></td>126 ··········<td></td>
127 ········</tr>127 ········</tr>
128 ······</table>128 ······</table>
129 </div><div·class="memdoc">129 </div><div·class="memdoc">
  
130 <p·class="definition">Definition·at·line·<a·class="el"·href="a00023_source.html#l00083">83</a>·of·file·<a·class="el"·href="a00023_source.html">SILLYPNGImageLoader.cpp</a>.</p>130 <p·class="definition">Definition·at·line·<a·class="el"·href="a00017_source.html#l00083">83</a>·of·file·<a·class="el"·href="a00017_source.html">SILLYPNGImageLoader.cpp</a>.</p>
  
131 </div>131 </div>
132 </div>132 </div>
133 <h2·class="groupheader">Member·Function·Documentation</h2>133 <h2·class="groupheader">Member·Function·Documentation</h2>
134 <a·id="a439f9065fd9a935d7f53b30b2242e924"·name="a439f9065fd9a935d7f53b30b2242e924"></a>134 <a·id="a439f9065fd9a935d7f53b30b2242e924"·name="a439f9065fd9a935d7f53b30b2242e924"></a>
135 <h2·class="memtitle"><span·class="permalink"><a·href="#a439f9065fd9a935d7f53b30b2242e924">&#9670;&nbsp;</a></span>destroyContext()</h2>135 <h2·class="memtitle"><span·class="permalink"><a·href="#a439f9065fd9a935d7f53b30b2242e924">&#9670;&nbsp;</a></span>destroyContext()</h2>
  
Offset 161, 15 lines modifiedOffset 161, 15 lines modified
161 <dl·class="params"><dt>Parameters</dt><dd>161 <dl·class="params"><dt>Parameters</dt><dd>
162 ··<table·class="params">162 ··<table·class="params">
163 ····<tr><td·class="paramname">context</td><td>a·pointer·to·the·context·</td></tr>163 ····<tr><td·class="paramname">context</td><td>a·pointer·to·the·context·</td></tr>
164 ··</table>164 ··</table>
165 ··</dd>165 ··</dd>
166 </dl>166 </dl>
  
167 <p·class="definition">Definition·at·line·<a·class="el"·href="a00002_source.html#l00047">47</a>·of·file·<a·class="el"·href="a00002_source.html">SILLYImageLoader.cpp</a>.</p>167 <p·class="definition">Definition·at·line·<a·class="el"·href="a00035_source.html#l00047">47</a>·of·file·<a·class="el"·href="a00035_source.html">SILLYImageLoader.cpp</a>.</p>
  
168 </div>168 </div>
169 </div>169 </div>
170 <a·id="a1f83c2e6e4960b05c1b5bd61b0635f8c"·name="a1f83c2e6e4960b05c1b5bd61b0635f8c"></a>170 <a·id="a1f83c2e6e4960b05c1b5bd61b0635f8c"·name="a1f83c2e6e4960b05c1b5bd61b0635f8c"></a>
171 <h2·class="memtitle"><span·class="permalink"><a·href="#a1f83c2e6e4960b05c1b5bd61b0635f8c">&#9670;&nbsp;</a></span>loadHeader()</h2>171 <h2·class="memtitle"><span·class="permalink"><a·href="#a1f83c2e6e4960b05c1b5bd61b0635f8c">&#9670;&nbsp;</a></span>loadHeader()</h2>
  
172 <div·class="memitem">172 <div·class="memitem">
Offset 211, 15 lines modifiedOffset 211, 15 lines modified
211 ··</table>211 ··</table>
212 ··</dd>212 ··</dd>
213 </dl>213 </dl>
214 <dl·class="section·return"><dt>Returns</dt><dd>Context·for·the·rest·of·the·parsing·or·0·if·an·error·occured·</dd></dl>214 <dl·class="section·return"><dt>Returns</dt><dd>Context·for·the·rest·of·the·parsing·or·0·if·an·error·occured·</dd></dl>
  
215 <p>Implements·<a·class="el"·href="a00985.html#a4a6a3a51641cbbb3184ab00d9de6f753">ImageLoader</a>.</p>215 <p>Implements·<a·class="el"·href="a00985.html#a4a6a3a51641cbbb3184ab00d9de6f753">ImageLoader</a>.</p>
  
216 <p·class="definition">Definition·at·line·<a·class="el"·href="a00023_source.html#l00088">88</a>·of·file·<a·class="el"·href="a00023_source.html">SILLYPNGImageLoader.cpp</a>.</p>216 <p·class="definition">Definition·at·line·<a·class="el"·href="a00017_source.html#l00088">88</a>·of·file·<a·class="el"·href="a00017_source.html">SILLYPNGImageLoader.cpp</a>.</p>
  
217 </div>217 </div>
218 </div>218 </div>
219 <a·id="a4a4d6df5dcc08cb493855fcfc1956fca"·name="a4a4d6df5dcc08cb493855fcfc1956fca"></a>219 <a·id="a4a4d6df5dcc08cb493855fcfc1956fca"·name="a4a4d6df5dcc08cb493855fcfc1956fca"></a>
220 <h2·class="memtitle"><span·class="permalink"><a·href="#a4a4d6df5dcc08cb493855fcfc1956fca">&#9670;&nbsp;</a></span>loadImageData()</h2>220 <h2·class="memtitle"><span·class="permalink"><a·href="#a4a4d6df5dcc08cb493855fcfc1956fca">&#9670;&nbsp;</a></span>loadImageData()</h2>
  
221 <div·class="memitem">221 <div·class="memitem">
Offset 268, 21 lines modifiedOffset 268, 21 lines modified
268 ··</table>268 ··</table>
269 ··</dd>269 ··</dd>
270 </dl>270 </dl>
271 <dl·class="section·return"><dt>Returns</dt><dd>true·on·success·false·on·error·</dd></dl>271 <dl·class="section·return"><dt>Returns</dt><dd>true·on·success·false·on·error·</dd></dl>
  
272 <p>Implements·<a·class="el"·href="a00985.html#a7622e69834f644d7cf1201c1cabd80c6">ImageLoader</a>.</p>272 <p>Implements·<a·class="el"·href="a00985.html#a7622e69834f644d7cf1201c1cabd80c6">ImageLoader</a>.</p>
  
273 <p·class="definition">Definition·at·line·<a·class="el"·href="a00023_source.html#l00154">154</a>·of·file·<a·class="el"·href="a00023_source.html">SILLYPNGImageLoader.cpp</a>.</p>273 <p·class="definition">Definition·at·line·<a·class="el"·href="a00017_source.html#l00154">154</a>·of·file·<a·class="el"·href="a00017_source.html">SILLYPNGImageLoader.cpp</a>.</p>
  
274 </div>274 </div>
275 </div>275 </div>
276 <hr/>The·documentation·for·this·class·was·generated·from·the·following·files:<ul>276 <hr/>The·documentation·for·this·class·was·generated·from·the·following·files:<ul>
277 <li>/build/reproducible-path/silly-0.1.0/include/loaders/<a·class="el"·href="a00098_source.html">SILLYPNGImageLoader.h</a></li>277 <li>/build/reproducible-path/silly-0.1.0/include/loaders/<a·class="el"·href="a00068_source.html">SILLYPNGImageLoader.h</a></li>
278 <li>/build/reproducible-path/silly-0.1.0/src/loaders/<a·class="el"·href="a00023_source.html">SILLYPNGImageLoader.cpp</a></li>278 <li>/build/reproducible-path/silly-0.1.0/src/loaders/<a·class="el"·href="a00017_source.html">SILLYPNGImageLoader.cpp</a></li>
279 </ul>279 </ul>
280 </div><!--·contents·-->280 </div><!--·contents·-->
281 <!--·start·footer·part·-->281 <!--·start·footer·part·-->
282 <hr·class="footer"/><address·class="footer"><small>282 <hr·class="footer"/><address·class="footer"><small>
283 Generated·by&#160;<a·href="https://www.doxygen.org/index.html"><img·class="footer"·src="doxygen.svg"·width="104"·height="31"·alt="doxygen"/></a>·1.9.4283 Generated·by&#160;<a·href="https://www.doxygen.org/index.html"><img·class="footer"·src="doxygen.svg"·width="104"·height="31"·alt="doxygen"/></a>·1.9.4
284 </small></address>284 </small></address>
285 </body>285 </body>
4.51 KB
./usr/share/doc/libsilly-doc/html/a00961.html
    
Offset 51, 15 lines modifiedOffset 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·&lt;<a·class="el"·href="a00092_source.html">SILLYTGAImageContext.h</a>&gt;</code></p>56 <p><code>#include·&lt;<a·class="el"·href="a00062_source.html">SILLYTGAImageContext.h</a>&gt;</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,80,147,107"/>62 <area·shape="rect"·title="Image·Context·for·Targa·image."·alt=""·coords="5,80,147,107"/>
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,32"/>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,32"/>
Offset 114, 15 lines modifiedOffset 114, 15 lines modified
114 Friends</h2></td></tr>114 Friends</h2></td></tr>
115 <tr·class="memitem:a89a36ec38e5779c9e552d26e9c395f31"><td·class="memItemLeft"·align="right"·valign="top">class&#160;</td><td·class="memItemRight"·valign="bottom"><a·class="el"·href="a00961.html#a89a36ec38e5779c9e552d26e9c395f31">TGAImageLoader</a></td></tr>115 <tr·class="memitem:a89a36ec38e5779c9e552d26e9c395f31"><td·class="memItemLeft"·align="right"·valign="top">class&#160;</td><td·class="memItemRight"·valign="bottom"><a·class="el"·href="a00961.html#a89a36ec38e5779c9e552d26e9c395f31">TGAImageLoader</a></td></tr>
116 <tr·class="separator:a89a36ec38e5779c9e552d26e9c395f31"><td·class="memSeparator"·colspan="2">&#160;</td></tr>116 <tr·class="separator:a89a36ec38e5779c9e552d26e9c395f31"><td·class="memSeparator"·colspan="2">&#160;</td></tr>
117 </table>117 </table>
118 <a·name="details"·id="details"></a><h2·class="groupheader">Detailed·Description</h2>118 <a·name="details"·id="details"></a><h2·class="groupheader">Detailed·Description</h2>
119 <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>119 <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>
  
120 <p·class="definition">Definition·at·line·<a·class="el"·href="a00092_source.html#l00042">42</a>·of·file·<a·class="el"·href="a00092_source.html">SILLYTGAImageContext.h</a>.</p>120 <p·class="definition">Definition·at·line·<a·class="el"·href="a00062_source.html#l00042">42</a>·of·file·<a·class="el"·href="a00062_source.html">SILLYTGAImageContext.h</a>.</p>
121 </div><h2·class="groupheader">Member·Function·Documentation</h2>121 </div><h2·class="groupheader">Member·Function·Documentation</h2>
122 <a·id="a23cd315e8ce80deeb7a06e268f65412f"·name="a23cd315e8ce80deeb7a06e268f65412f"></a>122 <a·id="a23cd315e8ce80deeb7a06e268f65412f"·name="a23cd315e8ce80deeb7a06e268f65412f"></a>
123 <h2·class="memtitle"><span·class="permalink"><a·href="#a23cd315e8ce80deeb7a06e268f65412f">&#9670;&nbsp;</a></span>flipVertically()</h2>123 <h2·class="memtitle"><span·class="permalink"><a·href="#a23cd315e8ce80deeb7a06e268f65412f">&#9670;&nbsp;</a></span>flipVertically()</h2>
  
124 <div·class="memitem">124 <div·class="memitem">
125 <div·class="memproto">125 <div·class="memproto">
126 <table·class="mlabels">126 <table·class="mlabels">
Offset 142, 15 lines modifiedOffset 142, 15 lines modified
142 ··</tr>142 ··</tr>
143 </table>143 </table>
144 </div><div·class="memdoc">144 </div><div·class="memdoc">
  
145 <p>Flip·pixel·ordering.·</p>145 <p>Flip·pixel·ordering.·</p>
146 <dl·class="section·return"><dt>Returns</dt><dd>true·on·success·false·otherwise·</dd></dl>146 <dl·class="section·return"><dt>Returns</dt><dd>true·on·success·false·otherwise·</dd></dl>
  
147 <p·class="definition">Definition·at·line·<a·class="el"·href="a00008_source.html#l00045">45</a>·of·file·<a·class="el"·href="a00008_source.html">SILLYImageContext.cpp</a>.</p>147 <p·class="definition">Definition·at·line·<a·class="el"·href="a00026_source.html#l00045">45</a>·of·file·<a·class="el"·href="a00026_source.html">SILLYImageContext.cpp</a>.</p>
  
148 </div>148 </div>
149 </div>149 </div>
150 <h2·class="groupheader">Friends·And·Related·Function·Documentation</h2>150 <h2·class="groupheader">Friends·And·Related·Function·Documentation</h2>
151 <a·id="a89a36ec38e5779c9e552d26e9c395f31"·name="a89a36ec38e5779c9e552d26e9c395f31"></a>151 <a·id="a89a36ec38e5779c9e552d26e9c395f31"·name="a89a36ec38e5779c9e552d26e9c395f31"></a>
152 <h2·class="memtitle"><span·class="permalink"><a·href="#a89a36ec38e5779c9e552d26e9c395f31">&#9670;&nbsp;</a></span>TGAImageLoader</h2>152 <h2·class="memtitle"><span·class="permalink"><a·href="#a89a36ec38e5779c9e552d26e9c395f31">&#9670;&nbsp;</a></span>TGAImageLoader</h2>
  
Offset 167, 20 lines modifiedOffset 167, 20 lines modified
167 ··</td>167 ··</td>
168 ··<td·class="mlabels-right">168 ··<td·class="mlabels-right">
169 <span·class="mlabels"><span·class="mlabel">friend</span></span>··</td>169 <span·class="mlabels"><span·class="mlabel">friend</span></span>··</td>
170 ··</tr>170 ··</tr>
171 </table>171 </table>
172 </div><div·class="memdoc">172 </div><div·class="memdoc">
  
173 <p·class="definition">Definition·at·line·<a·class="el"·href="a00092_source.html#l00054">54</a>·of·file·<a·class="el"·href="a00092_source.html">SILLYTGAImageContext.h</a>.</p>173 <p·class="definition">Definition·at·line·<a·class="el"·href="a00062_source.html#l00054">54</a>·of·file·<a·class="el"·href="a00062_source.html">SILLYTGAImageContext.h</a>.</p>
  
174 </div>174 </div>
175 </div>175 </div>
176 <hr/>The·documentation·for·this·class·was·generated·from·the·following·file:<ul>176 <hr/>The·documentation·for·this·class·was·generated·from·the·following·file:<ul>
177 <li>/build/reproducible-path/silly-0.1.0/include/loaders/<a·class="el"·href="a00092_source.html">SILLYTGAImageContext.h</a></li>177 <li>/build/reproducible-path/silly-0.1.0/include/loaders/<a·class="el"·href="a00062_source.html">SILLYTGAImageContext.h</a></li>
178 </ul>178 </ul>
179 </div><!--·contents·-->179 </div><!--·contents·-->
180 <!--·start·footer·part·-->180 <!--·start·footer·part·-->
181 <hr·class="footer"/><address·class="footer"><small>181 <hr·class="footer"/><address·class="footer"><small>
182 Generated·by&#160;<a·href="https://www.doxygen.org/index.html"><img·class="footer"·src="doxygen.svg"·width="104"·height="31"·alt="doxygen"/></a>·1.9.4182 Generated·by&#160;<a·href="https://www.doxygen.org/index.html"><img·class="footer"·src="doxygen.svg"·width="104"·height="31"·alt="doxygen"/></a>·1.9.4
183 </small></address>183 </small></address>
184 </body>184 </body>
7.49 KB
./usr/share/doc/libsilly-doc/html/a00965.html
    
Offset 49, 15 lines modifiedOffset 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·&lt;<a·class="el"·href="a00101_source.html">SILLYTGAImageLoader.h</a>&gt;</code></p>54 <p><code>#include·&lt;<a·class="el"·href="a00086_source.html">SILLYTGAImageLoader.h</a>&gt;</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,80,140,107"/>60 <area·shape="rect"·title="Loader·for·Targa·image."·alt=""·coords="5,80,140,107"/>
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,32"/>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,32"/>
Offset 88, 15 lines modifiedOffset 88, 15 lines modified
88 <tr·class="memitem:a4a4d6df5dcc08cb493855fcfc1956fca"><td·class="memItemLeft"·align="right"·valign="top">bool&#160;</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>88 <tr·class="memitem:a4a4d6df5dcc08cb493855fcfc1956fca"><td·class="memItemLeft"·align="right"·valign="top">bool&#160;</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>
89 <tr·class="memdesc:a4a4d6df5dcc08cb493855fcfc1956fca"><td·class="mdescLeft">&#160;</td><td·class="mdescRight">Parse·the·pixels·data·of·the·image·and·fill·the·header·struct.··<a·href="a00965.html#a4a4d6df5dcc08cb493855fcfc1956fca">More...</a><br·/></td></tr>89 <tr·class="memdesc:a4a4d6df5dcc08cb493855fcfc1956fca"><td·class="mdescLeft">&#160;</td><td·class="mdescRight">Parse·the·pixels·data·of·the·image·and·fill·the·header·struct.··<a·href="a00965.html#a4a4d6df5dcc08cb493855fcfc1956fca">More...</a><br·/></td></tr>
90 <tr·class="separator:a4a4d6df5dcc08cb493855fcfc1956fca"><td·class="memSeparator"·colspan="2">&#160;</td></tr>90 <tr·class="separator:a4a4d6df5dcc08cb493855fcfc1956fca"><td·class="memSeparator"·colspan="2">&#160;</td></tr>
91 </table>91 </table>
92 <a·name="details"·id="details"></a><h2·class="groupheader">Detailed·Description</h2>92 <a·name="details"·id="details"></a><h2·class="groupheader">Detailed·Description</h2>
93 <div·class="textblock"><p·>Loader·for·Targa·image.·</p>93 <div·class="textblock"><p·>Loader·for·Targa·image.·</p>
  
94 <p·class="definition">Definition·at·line·<a·class="el"·href="a00101_source.html#l00043">43</a>·of·file·<a·class="el"·href="a00101_source.html">SILLYTGAImageLoader.h</a>.</p>94 <p·class="definition">Definition·at·line·<a·class="el"·href="a00086_source.html#l00043">43</a>·of·file·<a·class="el"·href="a00086_source.html">SILLYTGAImageLoader.h</a>.</p>
95 </div><h2·class="groupheader">Constructor·&amp;·Destructor·Documentation</h2>95 </div><h2·class="groupheader">Constructor·&amp;·Destructor·Documentation</h2>
96 <a·id="a1a554dafae53e474d6f2352986265343"·name="a1a554dafae53e474d6f2352986265343"></a>96 <a·id="a1a554dafae53e474d6f2352986265343"·name="a1a554dafae53e474d6f2352986265343"></a>
97 <h2·class="memtitle"><span·class="permalink"><a·href="#a1a554dafae53e474d6f2352986265343">&#9670;&nbsp;</a></span>TGAImageLoader()</h2>97 <h2·class="memtitle"><span·class="permalink"><a·href="#a1a554dafae53e474d6f2352986265343">&#9670;&nbsp;</a></span>TGAImageLoader()</h2>
  
98 <div·class="memitem">98 <div·class="memitem">
99 <div·class="memproto">99 <div·class="memproto">
100 ······<table·class="memname">100 ······<table·class="memname">
Offset 105, 15 lines modifiedOffset 105, 15 lines modified
105 ··········<td>(</td>105 ··········<td>(</td>
106 ··········<td·class="paramname"></td><td>)</td>106 ··········<td·class="paramname"></td><td>)</td>
107 ··········<td></td>107 ··········<td></td>
108 ········</tr>108 ········</tr>
109 ······</table>109 ······</table>
110 </div><div·class="memdoc">110 </div><div·class="memdoc">
  
111 <p·class="definition">Definition·at·line·<a·class="el"·href="a00011_source.html#l00051">51</a>·of·file·<a·class="el"·href="a00011_source.html">SILLYTGAImageLoader.cpp</a>.</p>111 <p·class="definition">Definition·at·line·<a·class="el"·href="a00020_source.html#l00051">51</a>·of·file·<a·class="el"·href="a00020_source.html">SILLYTGAImageLoader.cpp</a>.</p>
  
112 </div>112 </div>
113 </div>113 </div>
114 <a·id="a67f233b0654eb7101fefe58eecf5b888"·name="a67f233b0654eb7101fefe58eecf5b888"></a>114 <a·id="a67f233b0654eb7101fefe58eecf5b888"·name="a67f233b0654eb7101fefe58eecf5b888"></a>
115 <h2·class="memtitle"><span·class="permalink"><a·href="#a67f233b0654eb7101fefe58eecf5b888">&#9670;&nbsp;</a></span>~TGAImageLoader()</h2>115 <h2·class="memtitle"><span·class="permalink"><a·href="#a67f233b0654eb7101fefe58eecf5b888">&#9670;&nbsp;</a></span>~TGAImageLoader()</h2>
  
116 <div·class="memitem">116 <div·class="memitem">
Offset 124, 15 lines modifiedOffset 124, 15 lines modified
124 ··········<td>(</td>124 ··········<td>(</td>
125 ··········<td·class="paramname"></td><td>)</td>125 ··········<td·class="paramname"></td><td>)</td>
126 ··········<td></td>126 ··········<td></td>
127 ········</tr>127 ········</tr>
128 ······</table>128 ······</table>
129 </div><div·class="memdoc">129 </div><div·class="memdoc">
  
130 <p·class="definition">Definition·at·line·<a·class="el"·href="a00011_source.html#l00056">56</a>·of·file·<a·class="el"·href="a00011_source.html">SILLYTGAImageLoader.cpp</a>.</p>130 <p·class="definition">Definition·at·line·<a·class="el"·href="a00020_source.html#l00056">56</a>·of·file·<a·class="el"·href="a00020_source.html">SILLYTGAImageLoader.cpp</a>.</p>
  
131 </div>131 </div>
132 </div>132 </div>
133 <h2·class="groupheader">Member·Function·Documentation</h2>133 <h2·class="groupheader">Member·Function·Documentation</h2>
134 <a·id="a439f9065fd9a935d7f53b30b2242e924"·name="a439f9065fd9a935d7f53b30b2242e924"></a>134 <a·id="a439f9065fd9a935d7f53b30b2242e924"·name="a439f9065fd9a935d7f53b30b2242e924"></a>
135 <h2·class="memtitle"><span·class="permalink"><a·href="#a439f9065fd9a935d7f53b30b2242e924">&#9670;&nbsp;</a></span>destroyContext()</h2>135 <h2·class="memtitle"><span·class="permalink"><a·href="#a439f9065fd9a935d7f53b30b2242e924">&#9670;&nbsp;</a></span>destroyContext()</h2>
  
Offset 161, 15 lines modifiedOffset 161, 15 lines modified
161 <dl·class="params"><dt>Parameters</dt><dd>161 <dl·class="params"><dt>Parameters</dt><dd>
162 ··<table·class="params">162 ··<table·class="params">
163 ····<tr><td·class="paramname">context</td><td>a·pointer·to·the·context·</td></tr>163 ····<tr><td·class="paramname">context</td><td>a·pointer·to·the·context·</td></tr>
164 ··</table>164 ··</table>
165 ··</dd>165 ··</dd>
166 </dl>166 </dl>
  
167 <p·class="definition">Definition·at·line·<a·class="el"·href="a00002_source.html#l00047">47</a>·of·file·<a·class="el"·href="a00002_source.html">SILLYImageLoader.cpp</a>.</p>167 <p·class="definition">Definition·at·line·<a·class="el"·href="a00035_source.html#l00047">47</a>·of·file·<a·class="el"·href="a00035_source.html">SILLYImageLoader.cpp</a>.</p>
  
168 </div>168 </div>
169 </div>169 </div>
170 <a·id="a1f83c2e6e4960b05c1b5bd61b0635f8c"·name="a1f83c2e6e4960b05c1b5bd61b0635f8c"></a>170 <a·id="a1f83c2e6e4960b05c1b5bd61b0635f8c"·name="a1f83c2e6e4960b05c1b5bd61b0635f8c"></a>
171 <h2·class="memtitle"><span·class="permalink"><a·href="#a1f83c2e6e4960b05c1b5bd61b0635f8c">&#9670;&nbsp;</a></span>loadHeader()</h2>171 <h2·class="memtitle"><span·class="permalink"><a·href="#a1f83c2e6e4960b05c1b5bd61b0635f8c">&#9670;&nbsp;</a></span>loadHeader()</h2>
  
172 <div·class="memitem">172 <div·class="memitem">
Offset 211, 15 lines modifiedOffset 211, 15 lines modified
211 ··</table>211 ··</table>
212 ··</dd>212 ··</dd>
213 </dl>213 </dl>
214 <dl·class="section·return"><dt>Returns</dt><dd>Context·for·the·rest·of·the·parsing·or·0·if·an·error·occured·</dd></dl>214 <dl·class="section·return"><dt>Returns</dt><dd>Context·for·the·rest·of·the·parsing·or·0·if·an·error·occured·</dd></dl>
  
215 <p>Implements·<a·class="el"·href="a00985.html#a4a6a3a51641cbbb3184ab00d9de6f753">ImageLoader</a>.</p>215 <p>Implements·<a·class="el"·href="a00985.html#a4a6a3a51641cbbb3184ab00d9de6f753">ImageLoader</a>.</p>
  
216 <p·class="definition">Definition·at·line·<a·class="el"·href="a00011_source.html#l00074">74</a>·of·file·<a·class="el"·href="a00011_source.html">SILLYTGAImageLoader.cpp</a>.</p>216 <p·class="definition">Definition·at·line·<a·class="el"·href="a00020_source.html#l00074">74</a>·of·file·<a·class="el"·href="a00020_source.html">SILLYTGAImageLoader.cpp</a>.</p>
  
217 </div>217 </div>
218 </div>218 </div>
219 <a·id="a4a4d6df5dcc08cb493855fcfc1956fca"·name="a4a4d6df5dcc08cb493855fcfc1956fca"></a>219 <a·id="a4a4d6df5dcc08cb493855fcfc1956fca"·name="a4a4d6df5dcc08cb493855fcfc1956fca"></a>
220 <h2·class="memtitle"><span·class="permalink"><a·href="#a4a4d6df5dcc08cb493855fcfc1956fca">&#9670;&nbsp;</a></span>loadImageData()</h2>220 <h2·class="memtitle"><span·class="permalink"><a·href="#a4a4d6df5dcc08cb493855fcfc1956fca">&#9670;&nbsp;</a></span>loadImageData()</h2>
  
221 <div·class="memitem">221 <div·class="memitem">
Offset 268, 21 lines modifiedOffset 268, 21 lines modified
268 ··</table>268 ··</table>
269 ··</dd>269 ··</dd>
270 </dl>270 </dl>
271 <dl·class="section·return"><dt>Returns</dt><dd>true·on·success·false·on·error·</dd></dl>271 <dl·class="section·return"><dt>Returns</dt><dd>true·on·success·false·on·error·</dd></dl>
  
272 <p>Implements·<a·class="el"·href="a00985.html#a7622e69834f644d7cf1201c1cabd80c6">ImageLoader</a>.</p>272 <p>Implements·<a·class="el"·href="a00985.html#a7622e69834f644d7cf1201c1cabd80c6">ImageLoader</a>.</p>
  
273 <p·class="definition">Definition·at·line·<a·class="el"·href="a00011_source.html#l00134">134</a>·of·file·<a·class="el"·href="a00011_source.html">SILLYTGAImageLoader.cpp</a>.</p>273 <p·class="definition">Definition·at·line·<a·class="el"·href="a00020_source.html#l00134">134</a>·of·file·<a·class="el"·href="a00020_source.html">SILLYTGAImageLoader.cpp</a>.</p>
  
274 </div>274 </div>
275 </div>275 </div>
276 <hr/>The·documentation·for·this·class·was·generated·from·the·following·files:<ul>276 <hr/>The·documentation·for·this·class·was·generated·from·the·following·files:<ul>
277 <li>/build/reproducible-path/silly-0.1.0/include/loaders/<a·class="el"·href="a00101_source.html">SILLYTGAImageLoader.h</a></li>277 <li>/build/reproducible-path/silly-0.1.0/include/loaders/<a·class="el"·href="a00086_source.html">SILLYTGAImageLoader.h</a></li>
278 <li>/build/reproducible-path/silly-0.1.0/src/loaders/<a·class="el"·href="a00011_source.html">SILLYTGAImageLoader.cpp</a></li>278 <li>/build/reproducible-path/silly-0.1.0/src/loaders/<a·class="el"·href="a00020_source.html">SILLYTGAImageLoader.cpp</a></li>
279 </ul>279 </ul>
280 </div><!--·contents·-->280 </div><!--·contents·-->
281 <!--·start·footer·part·-->281 <!--·start·footer·part·-->
282 <hr·class="footer"/><address·class="footer"><small>282 <hr·class="footer"/><address·class="footer"><small>
283 Generated·by&#160;<a·href="https://www.doxygen.org/index.html"><img·class="footer"·src="doxygen.svg"·width="104"·height="31"·alt="doxygen"/></a>·1.9.4283 Generated·by&#160;<a·href="https://www.doxygen.org/index.html"><img·class="footer"·src="doxygen.svg"·width="104"·height="31"·alt="doxygen"/></a>·1.9.4
284 </small></address>284 </small></address>
285 </body>285 </body>
3.24 KB
./usr/share/doc/libsilly-doc/html/a00969.html
    
Offset 49, 15 lines modifiedOffset 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·&lt;<a·class="el"·href="a00122_source.html">SILLYDataSource.h</a>&gt;</code></p>54 <p><code>#include·&lt;<a·class="el"·href="a00119_source.html">SILLYDataSource.h</a>&gt;</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,32"/>60 <area·shape="rect"·title="This·is·an·abstract·class·used·to·provide·data·to·the·loader."·alt=""·coords="97,5,194,32"/>
61 <area·shape="rect"·href="a00973.html"·title="This·class·allow·the·loading·of·an·image·directly·from·a·file."·alt=""·coords="5,80,125,107"/>61 <area·shape="rect"·href="a00973.html"·title="This·class·allow·the·loading·of·an·image·directly·from·a·file."·alt=""·coords="5,80,125,107"/>
Offset 82, 15 lines modifiedOffset 82, 15 lines modified
82 <tr·class="memdesc:afef9864fc5e1bee97a7ce05a274d8006"><td·class="mdescLeft">&#160;</td><td·class="mdescRight">Destructor.·<br·/></td></tr>82 <tr·class="memdesc:afef9864fc5e1bee97a7ce05a274d8006"><td·class="mdescLeft">&#160;</td><td·class="mdescRight">Destructor.·<br·/></td></tr>
83 <tr·class="separator:afef9864fc5e1bee97a7ce05a274d8006"><td·class="memSeparator"·colspan="2">&#160;</td></tr>83 <tr·class="separator:afef9864fc5e1bee97a7ce05a274d8006"><td·class="memSeparator"·colspan="2">&#160;</td></tr>
84 </table>84 </table>
85 <a·name="details"·id="details"></a><h2·class="groupheader">Detailed·Description</h2>85 <a·name="details"·id="details"></a><h2·class="groupheader">Detailed·Description</h2>
86 <div·class="textblock"><p·>This·is·an·abstract·class·used·to·provide·data·to·the·loader.·</p>86 <div·class="textblock"><p·>This·is·an·abstract·class·used·to·provide·data·to·the·loader.·</p>
87 <p·>This·class·defines·abstract·data·loading·operation·required·for·the·library.·</p>87 <p·>This·class·defines·abstract·data·loading·operation·required·for·the·library.·</p>
  
88 <p·class="definition">Definition·at·line·<a·class="el"·href="a00122_source.html#l00046">46</a>·of·file·<a·class="el"·href="a00122_source.html">SILLYDataSource.h</a>.</p>88 <p·class="definition">Definition·at·line·<a·class="el"·href="a00119_source.html#l00046">46</a>·of·file·<a·class="el"·href="a00119_source.html">SILLYDataSource.h</a>.</p>
89 </div><h2·class="groupheader">Member·Function·Documentation</h2>89 </div><h2·class="groupheader">Member·Function·Documentation</h2>
90 <a·id="a3ae74c9d90450a3d9aa45191e1c21c13"·name="a3ae74c9d90450a3d9aa45191e1c21c13"></a>90 <a·id="a3ae74c9d90450a3d9aa45191e1c21c13"·name="a3ae74c9d90450a3d9aa45191e1c21c13"></a>
91 <h2·class="memtitle"><span·class="permalink"><a·href="#a3ae74c9d90450a3d9aa45191e1c21c13">&#9670;&nbsp;</a></span>getDataPtr()</h2>91 <h2·class="memtitle"><span·class="permalink"><a·href="#a3ae74c9d90450a3d9aa45191e1c21c13">&#9670;&nbsp;</a></span>getDataPtr()</h2>
  
92 <div·class="memitem">92 <div·class="memitem">
93 <div·class="memproto">93 <div·class="memproto">
94 <table·class="mlabels">94 <table·class="mlabels">
Offset 143, 15 lines modifiedOffset 143, 15 lines modified
143 <p>Return·the·size·of·the·data.·</p>143 <p>Return·the·size·of·the·data.·</p>
  
144 <p>Implemented·in·<a·class="el"·href="a00973.html#a9be1e4285daa77fe397767c097fbdc66">FileDataSource</a>,·and·<a·class="el"·href="a00993.html#a9be1e4285daa77fe397767c097fbdc66">MemoryDataSource</a>.</p>144 <p>Implemented·in·<a·class="el"·href="a00973.html#a9be1e4285daa77fe397767c097fbdc66">FileDataSource</a>,·and·<a·class="el"·href="a00993.html#a9be1e4285daa77fe397767c097fbdc66">MemoryDataSource</a>.</p>
  
145 </div>145 </div>
146 </div>146 </div>
147 <hr/>The·documentation·for·this·class·was·generated·from·the·following·file:<ul>147 <hr/>The·documentation·for·this·class·was·generated·from·the·following·file:<ul>
148 <li>/build/reproducible-path/silly-0.1.0/include/<a·class="el"·href="a00122_source.html">SILLYDataSource.h</a></li>148 <li>/build/reproducible-path/silly-0.1.0/include/<a·class="el"·href="a00119_source.html">SILLYDataSource.h</a></li>
149 </ul>149 </ul>
150 </div><!--·contents·-->150 </div><!--·contents·-->
151 <!--·start·footer·part·-->151 <!--·start·footer·part·-->
152 <hr·class="footer"/><address·class="footer"><small>152 <hr·class="footer"/><address·class="footer"><small>
153 Generated·by&#160;<a·href="https://www.doxygen.org/index.html"><img·class="footer"·src="doxygen.svg"·width="104"·height="31"·alt="doxygen"/></a>·1.9.4153 Generated·by&#160;<a·href="https://www.doxygen.org/index.html"><img·class="footer"·src="doxygen.svg"·width="104"·height="31"·alt="doxygen"/></a>·1.9.4
154 </small></address>154 </small></address>
155 </body>155 </body>
5.29 KB
./usr/share/doc/libsilly-doc/html/a00973.html
    
Offset 49, 15 lines modifiedOffset 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·&lt;<a·class="el"·href="a00125_source.html">SILLYFileDataSource.h</a>&gt;</code></p>54 <p><code>#include·&lt;<a·class="el"·href="a00104_source.html">SILLYFileDataSource.h</a>&gt;</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,80,125,107"/>60 <area·shape="rect"·title="This·class·allow·the·loading·of·an·image·directly·from·a·file."·alt=""·coords="5,80,125,107"/>
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,32"/>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,32"/>
Offset 95, 15 lines modifiedOffset 95, 15 lines modified
95 <tr·class="memdesc:a376d8b1791d5ab33e4c2674b9541901d"><td·class="mdescLeft">&#160;</td><td·class="mdescRight">destructor··<a·href="a00973.html#a376d8b1791d5ab33e4c2674b9541901d">More...</a><br·/></td></tr>95 <tr·class="memdesc:a376d8b1791d5ab33e4c2674b9541901d"><td·class="mdescLeft">&#160;</td><td·class="mdescRight">destructor··<a·href="a00973.html#a376d8b1791d5ab33e4c2674b9541901d">More...</a><br·/></td></tr>
96 <tr·class="separator:a376d8b1791d5ab33e4c2674b9541901d"><td·class="memSeparator"·colspan="2">&#160;</td></tr>96 <tr·class="separator:a376d8b1791d5ab33e4c2674b9541901d"><td·class="memSeparator"·colspan="2">&#160;</td></tr>
97 </table>97 </table>
98 <a·name="details"·id="details"></a><h2·class="groupheader">Detailed·Description</h2>98 <a·name="details"·id="details"></a><h2·class="groupheader">Detailed·Description</h2>
99 <div·class="textblock"><p·>This·class·allow·the·loading·of·an·image·directly·from·a·file.·</p>99 <div·class="textblock"><p·>This·class·allow·the·loading·of·an·image·directly·from·a·file.·</p>
100 <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>100 <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>
  
101 <p·class="definition">Definition·at·line·<a·class="el"·href="a00125_source.html#l00048">48</a>·of·file·<a·class="el"·href="a00125_source.html">SILLYFileDataSource.h</a>.</p>101 <p·class="definition">Definition·at·line·<a·class="el"·href="a00104_source.html#l00048">48</a>·of·file·<a·class="el"·href="a00104_source.html">SILLYFileDataSource.h</a>.</p>
102 </div><h2·class="groupheader">Constructor·&amp;·Destructor·Documentation</h2>102 </div><h2·class="groupheader">Constructor·&amp;·Destructor·Documentation</h2>
103 <a·id="a0e751eeffe45217140e97ea89d65b4d7"·name="a0e751eeffe45217140e97ea89d65b4d7"></a>103 <a·id="a0e751eeffe45217140e97ea89d65b4d7"·name="a0e751eeffe45217140e97ea89d65b4d7"></a>
104 <h2·class="memtitle"><span·class="permalink"><a·href="#a0e751eeffe45217140e97ea89d65b4d7">&#9670;&nbsp;</a></span>FileDataSource()</h2>104 <h2·class="memtitle"><span·class="permalink"><a·href="#a0e751eeffe45217140e97ea89d65b4d7">&#9670;&nbsp;</a></span>FileDataSource()</h2>
  
105 <div·class="memitem">105 <div·class="memitem">
106 <div·class="memproto">106 <div·class="memproto">
107 ······<table·class="memname">107 ······<table·class="memname">
Offset 122, 15 lines modifiedOffset 122, 15 lines modified
122 <dl·class="params"><dt>Parameters</dt><dd>122 <dl·class="params"><dt>Parameters</dt><dd>
123 ··<table·class="params">123 ··<table·class="params">
124 ····<tr><td·class="paramname">filename</td><td>the·name·of·the·file·containing·the·data·</td></tr>124 ····<tr><td·class="paramname">filename</td><td>the·name·of·the·file·containing·the·data·</td></tr>
125 ··</table>125 ··</table>
126 ··</dd>126 ··</dd>
127 </dl>127 </dl>
  
128 <p·class="definition">Definition·at·line·<a·class="el"·href="a00032_source.html#l00046">46</a>·of·file·<a·class="el"·href="a00032_source.html">SILLYFileDataSource.cpp</a>.</p>128 <p·class="definition">Definition·at·line·<a·class="el"·href="a00002_source.html#l00046">46</a>·of·file·<a·class="el"·href="a00002_source.html">SILLYFileDataSource.cpp</a>.</p>
  
129 </div>129 </div>
130 </div>130 </div>
131 <a·id="a376d8b1791d5ab33e4c2674b9541901d"·name="a376d8b1791d5ab33e4c2674b9541901d"></a>131 <a·id="a376d8b1791d5ab33e4c2674b9541901d"·name="a376d8b1791d5ab33e4c2674b9541901d"></a>
132 <h2·class="memtitle"><span·class="permalink"><a·href="#a376d8b1791d5ab33e4c2674b9541901d">&#9670;&nbsp;</a></span>~FileDataSource()</h2>132 <h2·class="memtitle"><span·class="permalink"><a·href="#a376d8b1791d5ab33e4c2674b9541901d">&#9670;&nbsp;</a></span>~FileDataSource()</h2>
  
133 <div·class="memitem">133 <div·class="memitem">
Offset 143, 15 lines modifiedOffset 143, 15 lines modified
143 ··········<td></td>143 ··········<td></td>
144 ········</tr>144 ········</tr>
145 ······</table>145 ······</table>
146 </div><div·class="memdoc">146 </div><div·class="memdoc">
  
147 <p>destructor·</p>147 <p>destructor·</p>
  
148 <p·class="definition">Definition·at·line·<a·class="el"·href="a00032_source.html#l00086">86</a>·of·file·<a·class="el"·href="a00032_source.html">SILLYFileDataSource.cpp</a>.</p>148 <p·class="definition">Definition·at·line·<a·class="el"·href="a00002_source.html#l00086">86</a>·of·file·<a·class="el"·href="a00002_source.html">SILLYFileDataSource.cpp</a>.</p>
  
149 </div>149 </div>
150 </div>150 </div>
151 <h2·class="groupheader">Member·Function·Documentation</h2>151 <h2·class="groupheader">Member·Function·Documentation</h2>
152 <a·id="a363c71a270f739498e576e743cfa0d6e"·name="a363c71a270f739498e576e743cfa0d6e"></a>152 <a·id="a363c71a270f739498e576e743cfa0d6e"·name="a363c71a270f739498e576e743cfa0d6e"></a>
153 <h2·class="memtitle"><span·class="permalink"><a·href="#a363c71a270f739498e576e743cfa0d6e">&#9670;&nbsp;</a></span>getDataPtr()</h2>153 <h2·class="memtitle"><span·class="permalink"><a·href="#a363c71a270f739498e576e743cfa0d6e">&#9670;&nbsp;</a></span>getDataPtr()</h2>
  
Offset 228, 16 lines modifiedOffset 228, 16 lines modified
228 <p>Check·wether·the·loading·is·successfull·or·not.·</p>228 <p>Check·wether·the·loading·is·successfull·or·not.·</p>
229 <p·>One·must·call·this·function·after·creating·this·object·in·order·to·be·sure·the·loading·was·successfull.</p>229 <p·>One·must·call·this·function·after·creating·this·object·in·order·to·be·sure·the·loading·was·successfull.</p>
230 <dl·class="section·return"><dt>Returns</dt><dd>true·if·the·loading·is·successfull.·</dd></dl>230 <dl·class="section·return"><dt>Returns</dt><dd>true·if·the·loading·is·successfull.·</dd></dl>
  
231 </div>231 </div>
232 </div>232 </div>
233 <hr/>The·documentation·for·this·class·was·generated·from·the·following·files:<ul>233 <hr/>The·documentation·for·this·class·was·generated·from·the·following·files:<ul>
234 <li>/build/reproducible-path/silly-0.1.0/include/<a·class="el"·href="a00125_source.html">SILLYFileDataSource.h</a></li>234 <li>/build/reproducible-path/silly-0.1.0/include/<a·class="el"·href="a00104_source.html">SILLYFileDataSource.h</a></li>
235 <li>/build/reproducible-path/silly-0.1.0/src/<a·class="el"·href="a00032_source.html">SILLYFileDataSource.cpp</a></li>235 <li>/build/reproducible-path/silly-0.1.0/src/<a·class="el"·href="a00002_source.html">SILLYFileDataSource.cpp</a></li>
236 </ul>236 </ul>
237 </div><!--·contents·-->237 </div><!--·contents·-->
238 <!--·start·footer·part·-->238 <!--·start·footer·part·-->
239 <hr·class="footer"/><address·class="footer"><small>239 <hr·class="footer"/><address·class="footer"><small>
240 Generated·by&#160;<a·href="https://www.doxygen.org/index.html"><img·class="footer"·src="doxygen.svg"·width="104"·height="31"·alt="doxygen"/></a>·1.9.4240 Generated·by&#160;<a·href="https://www.doxygen.org/index.html"><img·class="footer"·src="doxygen.svg"·width="104"·height="31"·alt="doxygen"/></a>·1.9.4
241 </small></address>241 </small></address>
242 </body>242 </body>
5.8 KB
./usr/share/doc/libsilly-doc/html/a00977.html
    
Offset 49, 15 lines modifiedOffset 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·&lt;<a·class="el"·href="a00071_source.html">SILLYImage.h</a>&gt;</code></p>54 <p><code>#include·&lt;<a·class="el"·href="a00107_source.html">SILLYImage.h</a>&gt;</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"><td·class="memItemLeft"·align="right"·valign="top"><a·id="afdb56064ac644b85442a915c9fdf19f8"·name="afdb56064ac644b85442a915c9fdf19f8"></a>58 <tr·class="memitem:afdb56064ac644b85442a915c9fdf19f8"><td·class="memItemLeft"·align="right"·valign="top"><a·id="afdb56064ac644b85442a915c9fdf19f8"·name="afdb56064ac644b85442a915c9fdf19f8"></a>
59 size_t&#160;</td><td·class="memItemRight"·valign="bottom"><b>getHeight</b>·()·const</td></tr>59 size_t&#160;</td><td·class="memItemRight"·valign="bottom"><b>getHeight</b>·()·const</td></tr>
60 <tr·class="memdesc:afdb56064ac644b85442a915c9fdf19f8"><td·class="mdescLeft">&#160;</td><td·class="mdescRight">Retrieve·the·height·of·the·image.·<br·/></td></tr>60 <tr·class="memdesc:afdb56064ac644b85442a915c9fdf19f8"><td·class="mdescLeft">&#160;</td><td·class="mdescRight">Retrieve·the·height·of·the·image.·<br·/></td></tr>
61 <tr·class="separator:afdb56064ac644b85442a915c9fdf19f8"><td·class="memSeparator"·colspan="2">&#160;</td></tr>61 <tr·class="separator:afdb56064ac644b85442a915c9fdf19f8"><td·class="memSeparator"·colspan="2">&#160;</td></tr>
Offset 102, 15 lines modifiedOffset 102, 15 lines modified
102 &#160;</td><td·class="memItemRight"·valign="bottom"><b>~Image</b>·()</td></tr>102 &#160;</td><td·class="memItemRight"·valign="bottom"><b>~Image</b>·()</td></tr>
103 <tr·class="memdesc:a70dc073ff2e26a6752dee2a6d2b609a8"><td·class="mdescLeft">&#160;</td><td·class="mdescRight">Destructor.·<br·/></td></tr>103 <tr·class="memdesc:a70dc073ff2e26a6752dee2a6d2b609a8"><td·class="mdescLeft">&#160;</td><td·class="mdescRight">Destructor.·<br·/></td></tr>
104 <tr·class="separator:a70dc073ff2e26a6752dee2a6d2b609a8"><td·class="memSeparator"·colspan="2">&#160;</td></tr>104 <tr·class="separator:a70dc073ff2e26a6752dee2a6d2b609a8"><td·class="memSeparator"·colspan="2">&#160;</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="a00071_source.html#l00046">46</a>·of·file·<a·class="el"·href="a00071_source.html">SILLYImage.h</a>.</p>108 <p·class="definition">Definition·at·line·<a·class="el"·href="a00107_source.html#l00046">46</a>·of·file·<a·class="el"·href="a00107_source.html">SILLYImage.h</a>.</p>
109 </div><h2·class="groupheader">Constructor·&amp;·Destructor·Documentation</h2>109 </div><h2·class="groupheader">Constructor·&amp;·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">&#9670;&nbsp;</a></span>Image()</h2>111 <h2·class="memtitle"><span·class="permalink"><a·href="#a03b8914e2a6b111009001ae06f895236">&#9670;&nbsp;</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 modifiedOffset 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="a00029_source.html#l00048">48</a>·of·file·<a·class="el"·href="a00029_source.html">SILLYImage.cpp</a>.</p>134 <p·class="definition">Definition·at·line·<a·class="el"·href="a00023_source.html#l00048">48</a>·of·file·<a·class="el"·href="a00023_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">&#9670;&nbsp;</a></span>loadImageData()</h2>139 <h2·class="memtitle"><span·class="permalink"><a·href="#a86abdf05f0d3f64a20d1e0ad3ec91c8a">&#9670;&nbsp;</a></span>loadImageData()</h2>
  
Offset 170, 15 lines modifiedOffset 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="a00029_source.html#l00068">68</a>·of·file·<a·class="el"·href="a00029_source.html">SILLYImage.cpp</a>.</p>176 <p·class="definition">Definition·at·line·<a·class="el"·href="a00023_source.html#l00068">68</a>·of·file·<a·class="el"·href="a00023_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">&#9670;&nbsp;</a></span>loadImageHeader()</h2>180 <h2·class="memtitle"><span·class="permalink"><a·href="#a0456197da83edd0e5c746e82642b6be9">&#9670;&nbsp;</a></span>loadImageHeader()</h2>
  
181 <div·class="memitem">181 <div·class="memitem">
Offset 192, 21 lines modifiedOffset 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="a00029_source.html#l00054">54</a>·of·file·<a·class="el"·href="a00029_source.html">SILLYImage.cpp</a>.</p>197 <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">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="a00071_source.html">SILLYImage.h</a></li>201 <li>/build/reproducible-path/silly-0.1.0/include/<a·class="el"·href="a00107_source.html">SILLYImage.h</a></li>
202 <li>/build/reproducible-path/silly-0.1.0/src/<a·class="el"·href="a00029_source.html">SILLYImage.cpp</a></li>202 <li>/build/reproducible-path/silly-0.1.0/src/<a·class="el"·href="a00023_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&#160;<a·href="https://www.doxygen.org/index.html"><img·class="footer"·src="doxygen.svg"·width="104"·height="31"·alt="doxygen"/></a>·1.9.4207 Generated·by&#160;<a·href="https://www.doxygen.org/index.html"><img·class="footer"·src="doxygen.svg"·width="104"·height="31"·alt="doxygen"/></a>·1.9.4
208 </small></address>208 </small></address>
209 </body>209 </body>
4.05 KB
./usr/share/doc/libsilly-doc/html/a00981.html
    
Offset 50, 15 lines modifiedOffset 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·&lt;<a·class="el"·href="a00047_source.html">SILLYImageContext.h</a>&gt;</code></p>55 <p><code>#include·&lt;<a·class="el"·href="a00110_source.html">SILLYImageContext.h</a>&gt;</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="180,5,295,32"/>61 <area·shape="rect"·title="Store·the·data·needed·by·an·ImageLoader·object·during·the·parsing·of·an·image."·alt=""·coords="180,5,295,32"/>
62 <area·shape="rect"·href="a00945.html"·title="Image·Context·for·JPG·image·loader."·alt=""·coords="5,80,141,107"/>62 <area·shape="rect"·href="a00945.html"·title="Image·Context·for·JPG·image·loader."·alt=""·coords="5,80,141,107"/>
Offset 105, 15 lines modifiedOffset 105, 15 lines modified
105 <tr·class="memitem:a45d88d901fa542ecdb85a154f1221f90"><td·class="memItemLeft"·align="right"·valign="top"><a·id="a45d88d901fa542ecdb85a154f1221f90"·name="a45d88d901fa542ecdb85a154f1221f90"></a>105 <tr·class="memitem:a45d88d901fa542ecdb85a154f1221f90"><td·class="memItemLeft"·align="right"·valign="top"><a·id="a45d88d901fa542ecdb85a154f1221f90"·name="a45d88d901fa542ecdb85a154f1221f90"></a>
106 void&#160;</td><td·class="memItemRight"·valign="bottom"><b>setWidth</b>·(size_t·width)</td></tr>106 void&#160;</td><td·class="memItemRight"·valign="bottom"><b>setWidth</b>·(size_t·width)</td></tr>
107 <tr·class="separator:a45d88d901fa542ecdb85a154f1221f90"><td·class="memSeparator"·colspan="2">&#160;</td></tr>107 <tr·class="separator:a45d88d901fa542ecdb85a154f1221f90"><td·class="memSeparator"·colspan="2">&#160;</td></tr>
108 </table>108 </table>
109 <a·name="details"·id="details"></a><h2·class="groupheader">Detailed·Description</h2>109 <a·name="details"·id="details"></a><h2·class="groupheader">Detailed·Description</h2>
110 <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>110 <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>
  
111 <p·class="definition">Definition·at·line·<a·class="el"·href="a00047_source.html#l00043">43</a>·of·file·<a·class="el"·href="a00047_source.html">SILLYImageContext.h</a>.</p>111 <p·class="definition">Definition·at·line·<a·class="el"·href="a00110_source.html#l00043">43</a>·of·file·<a·class="el"·href="a00110_source.html">SILLYImageContext.h</a>.</p>
112 </div><h2·class="groupheader">Constructor·&amp;·Destructor·Documentation</h2>112 </div><h2·class="groupheader">Constructor·&amp;·Destructor·Documentation</h2>
113 <a·id="a65eda98c8a4f75b1d92a9edc8db86313"·name="a65eda98c8a4f75b1d92a9edc8db86313"></a>113 <a·id="a65eda98c8a4f75b1d92a9edc8db86313"·name="a65eda98c8a4f75b1d92a9edc8db86313"></a>
114 <h2·class="memtitle"><span·class="permalink"><a·href="#a65eda98c8a4f75b1d92a9edc8db86313">&#9670;&nbsp;</a></span>ImageContext()</h2>114 <h2·class="memtitle"><span·class="permalink"><a·href="#a65eda98c8a4f75b1d92a9edc8db86313">&#9670;&nbsp;</a></span>ImageContext()</h2>
  
115 <div·class="memitem">115 <div·class="memitem">
116 <div·class="memproto">116 <div·class="memproto">
117 <table·class="mlabels">117 <table·class="mlabels">
Offset 171, 21 lines modifiedOffset 171, 21 lines modified
171 ········</tr>171 ········</tr>
172 ······</table>172 ······</table>
173 </div><div·class="memdoc">173 </div><div·class="memdoc">
  
174 <p>Flip·pixel·ordering.·</p>174 <p>Flip·pixel·ordering.·</p>
175 <dl·class="section·return"><dt>Returns</dt><dd>true·on·success·false·otherwise·</dd></dl>175 <dl·class="section·return"><dt>Returns</dt><dd>true·on·success·false·otherwise·</dd></dl>
  
176 <p·class="definition">Definition·at·line·<a·class="el"·href="a00008_source.html#l00045">45</a>·of·file·<a·class="el"·href="a00008_source.html">SILLYImageContext.cpp</a>.</p>176 <p·class="definition">Definition·at·line·<a·class="el"·href="a00026_source.html#l00045">45</a>·of·file·<a·class="el"·href="a00026_source.html">SILLYImageContext.cpp</a>.</p>
  
177 </div>177 </div>
178 </div>178 </div>
179 <hr/>The·documentation·for·this·class·was·generated·from·the·following·files:<ul>179 <hr/>The·documentation·for·this·class·was·generated·from·the·following·files:<ul>
180 <li>/build/reproducible-path/silly-0.1.0/include/<a·class="el"·href="a00047_source.html">SILLYImageContext.h</a></li>180 <li>/build/reproducible-path/silly-0.1.0/include/<a·class="el"·href="a00110_source.html">SILLYImageContext.h</a></li>
181 <li>/build/reproducible-path/silly-0.1.0/src/<a·class="el"·href="a00008_source.html">SILLYImageContext.cpp</a></li>181 <li>/build/reproducible-path/silly-0.1.0/src/<a·class="el"·href="a00026_source.html">SILLYImageContext.cpp</a></li>
182 </ul>182 </ul>
183 </div><!--·contents·-->183 </div><!--·contents·-->
184 <!--·start·footer·part·-->184 <!--·start·footer·part·-->
185 <hr·class="footer"/><address·class="footer"><small>185 <hr·class="footer"/><address·class="footer"><small>
186 Generated·by&#160;<a·href="https://www.doxygen.org/index.html"><img·class="footer"·src="doxygen.svg"·width="104"·height="31"·alt="doxygen"/></a>·1.9.4186 Generated·by&#160;<a·href="https://www.doxygen.org/index.html"><img·class="footer"·src="doxygen.svg"·width="104"·height="31"·alt="doxygen"/></a>·1.9.4
187 </small></address>187 </small></address>
188 </body>188 </body>
4.46 KB
./usr/share/doc/libsilly-doc/html/a00985.html
    
Offset 50, 15 lines modifiedOffset 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·&lt;<a·class="el"·href="a00116_source.html">SILLYImageLoader.h</a>&gt;</code></p>55 <p><code>#include·&lt;<a·class="el"·href="a00092_source.html">SILLYImageLoader.h</a>&gt;</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,32"/>61 <area·shape="rect"·title="This·is·an·abstract·class·that·define·the·interface·of·all·image·loader."·alt=""·coords="173,5,279,32"/>
62 <area·shape="rect"·href="a00949.html"·title="Loader·class·for·JPG·Image."·alt=""·coords="5,80,135,107"/>62 <area·shape="rect"·href="a00949.html"·title="Loader·class·for·JPG·Image."·alt=""·coords="5,80,135,107"/>
Offset 94, 15 lines modifiedOffset 94, 15 lines modified
94 <tr·class="memdesc:a103c77f27d983ad297f1fa541bcef8fe"><td·class="mdescLeft">&#160;</td><td·class="mdescRight">Constructor.·<br·/></td></tr>94 <tr·class="memdesc:a103c77f27d983ad297f1fa541bcef8fe"><td·class="mdescLeft">&#160;</td><td·class="mdescRight">Constructor.·<br·/></td></tr>
95 <tr·class="separator:a103c77f27d983ad297f1fa541bcef8fe"><td·class="memSeparator"·colspan="2">&#160;</td></tr>95 <tr·class="separator:a103c77f27d983ad297f1fa541bcef8fe"><td·class="memSeparator"·colspan="2">&#160;</td></tr>
96 </table>96 </table>
97 <a·name="details"·id="details"></a><h2·class="groupheader">Detailed·Description</h2>97 <a·name="details"·id="details"></a><h2·class="groupheader">Detailed·Description</h2>
98 <div·class="textblock"><p·>This·is·an·abstract·class·that·define·the·interface·of·all·image·loader.·</p>98 <div·class="textblock"><p·>This·is·an·abstract·class·that·define·the·interface·of·all·image·loader.·</p>
99 <p·>In·order·to·add·support·for·new·image·format·one·have·to·inherits·this·class·and·implement·all·required·function.·</p>99 <p·>In·order·to·add·support·for·new·image·format·one·have·to·inherits·this·class·and·implement·all·required·function.·</p>
  
100 <p·class="definition">Definition·at·line·<a·class="el"·href="a00116_source.html#l00046">46</a>·of·file·<a·class="el"·href="a00116_source.html">SILLYImageLoader.h</a>.</p>100 <p·class="definition">Definition·at·line·<a·class="el"·href="a00092_source.html#l00046">46</a>·of·file·<a·class="el"·href="a00092_source.html">SILLYImageLoader.h</a>.</p>
101 </div><h2·class="groupheader">Member·Function·Documentation</h2>101 </div><h2·class="groupheader">Member·Function·Documentation</h2>
102 <a·id="a439f9065fd9a935d7f53b30b2242e924"·name="a439f9065fd9a935d7f53b30b2242e924"></a>102 <a·id="a439f9065fd9a935d7f53b30b2242e924"·name="a439f9065fd9a935d7f53b30b2242e924"></a>
103 <h2·class="memtitle"><span·class="permalink"><a·href="#a439f9065fd9a935d7f53b30b2242e924">&#9670;&nbsp;</a></span>destroyContext()</h2>103 <h2·class="memtitle"><span·class="permalink"><a·href="#a439f9065fd9a935d7f53b30b2242e924">&#9670;&nbsp;</a></span>destroyContext()</h2>
  
104 <div·class="memitem">104 <div·class="memitem">
105 <div·class="memproto">105 <div·class="memproto">
106 ······<table·class="memname">106 ······<table·class="memname">
Offset 120, 15 lines modifiedOffset 120, 15 lines modified
120 <dl·class="params"><dt>Parameters</dt><dd>120 <dl·class="params"><dt>Parameters</dt><dd>
121 ··<table·class="params">121 ··<table·class="params">
122 ····<tr><td·class="paramname">context</td><td>a·pointer·to·the·context·</td></tr>122 ····<tr><td·class="paramname">context</td><td>a·pointer·to·the·context·</td></tr>
123 ··</table>123 ··</table>
124 ··</dd>124 ··</dd>
125 </dl>125 </dl>
  
126 <p·class="definition">Definition·at·line·<a·class="el"·href="a00002_source.html#l00047">47</a>·of·file·<a·class="el"·href="a00002_source.html">SILLYImageLoader.cpp</a>.</p>126 <p·class="definition">Definition·at·line·<a·class="el"·href="a00035_source.html#l00047">47</a>·of·file·<a·class="el"·href="a00035_source.html">SILLYImageLoader.cpp</a>.</p>
  
127 </div>127 </div>
128 </div>128 </div>
129 <a·id="a4a6a3a51641cbbb3184ab00d9de6f753"·name="a4a6a3a51641cbbb3184ab00d9de6f753"></a>129 <a·id="a4a6a3a51641cbbb3184ab00d9de6f753"·name="a4a6a3a51641cbbb3184ab00d9de6f753"></a>
130 <h2·class="memtitle"><span·class="permalink"><a·href="#a4a6a3a51641cbbb3184ab00d9de6f753">&#9670;&nbsp;</a></span>loadHeader()</h2>130 <h2·class="memtitle"><span·class="permalink"><a·href="#a4a6a3a51641cbbb3184ab00d9de6f753">&#9670;&nbsp;</a></span>loadHeader()</h2>
  
131 <div·class="memitem">131 <div·class="memitem">
Offset 228, 16 lines modifiedOffset 228, 16 lines modified
228 <dl·class="section·return"><dt>Returns</dt><dd>true·on·success·false·on·error·</dd></dl>228 <dl·class="section·return"><dt>Returns</dt><dd>true·on·success·false·on·error·</dd></dl>
  
229 <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>229 <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>
  
230 </div>230 </div>
231 </div>231 </div>
232 <hr/>The·documentation·for·this·class·was·generated·from·the·following·files:<ul>232 <hr/>The·documentation·for·this·class·was·generated·from·the·following·files:<ul>
233 <li>/build/reproducible-path/silly-0.1.0/include/<a·class="el"·href="a00116_source.html">SILLYImageLoader.h</a></li>233 <li>/build/reproducible-path/silly-0.1.0/include/<a·class="el"·href="a00092_source.html">SILLYImageLoader.h</a></li>
234 <li>/build/reproducible-path/silly-0.1.0/src/<a·class="el"·href="a00002_source.html">SILLYImageLoader.cpp</a></li>234 <li>/build/reproducible-path/silly-0.1.0/src/<a·class="el"·href="a00035_source.html">SILLYImageLoader.cpp</a></li>
235 </ul>235 </ul>
236 </div><!--·contents·-->236 </div><!--·contents·-->
237 <!--·start·footer·part·-->237 <!--·start·footer·part·-->
238 <hr·class="footer"/><address·class="footer"><small>238 <hr·class="footer"/><address·class="footer"><small>
239 Generated·by&#160;<a·href="https://www.doxygen.org/index.html"><img·class="footer"·src="doxygen.svg"·width="104"·height="31"·alt="doxygen"/></a>·1.9.4239 Generated·by&#160;<a·href="https://www.doxygen.org/index.html"><img·class="footer"·src="doxygen.svg"·width="104"·height="31"·alt="doxygen"/></a>·1.9.4
240 </small></address>240 </small></address>
241 </body>241 </body>
5.69 KB
./usr/share/doc/libsilly-doc/html/a00989.html
    
Offset 50, 15 lines modifiedOffset 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·&lt;<a·class="el"·href="a00044_source.html">SILLYImageLoaderManager.h</a>&gt;</code></p>55 <p><code>#include·&lt;<a·class="el"·href="a00041_source.html">SILLYImageLoaderManager.h</a>&gt;</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"><td·class="memItemLeft"·align="right"·valign="top">void&#160;</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"><td·class="memItemLeft"·align="right"·valign="top">void&#160;</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">&#160;</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.··<a·href="a00989.html#a38aa5b3d86db46f24cd330bda6d0b696">More...</a><br·/></td></tr>60 <tr·class="memdesc:a38aa5b3d86db46f24cd330bda6d0b696"><td·class="mdescLeft">&#160;</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.··<a·href="a00989.html#a38aa5b3d86db46f24cd330bda6d0b696">More...</a><br·/></td></tr>
61 <tr·class="separator:a38aa5b3d86db46f24cd330bda6d0b696"><td·class="memSeparator"·colspan="2">&#160;</td></tr>61 <tr·class="separator:a38aa5b3d86db46f24cd330bda6d0b696"><td·class="memSeparator"·colspan="2">&#160;</td></tr>
62 <tr·class="memitem:ae2e05642dfe82aad71558d37a9377e6e"><td·class="memItemLeft"·align="right"·valign="top"><a·id="ae2e05642dfe82aad71558d37a9377e6e"·name="ae2e05642dfe82aad71558d37a9377e6e"></a>62 <tr·class="memitem:ae2e05642dfe82aad71558d37a9377e6e"><td·class="memItemLeft"·align="right"·valign="top"><a·id="ae2e05642dfe82aad71558d37a9377e6e"·name="ae2e05642dfe82aad71558d37a9377e6e"></a>
Offset 84, 15 lines modifiedOffset 84, 15 lines modified
84 <tr·class="memitem:a8e5272375e4bbf8acb1c8d1741246517"><td·class="memItemLeft"·align="right"·valign="top"><a·id="a8e5272375e4bbf8acb1c8d1741246517"·name="a8e5272375e4bbf8acb1c8d1741246517"></a>84 <tr·class="memitem:a8e5272375e4bbf8acb1c8d1741246517"><td·class="memItemLeft"·align="right"·valign="top"><a·id="a8e5272375e4bbf8acb1c8d1741246517"·name="a8e5272375e4bbf8acb1c8d1741246517"></a>
85 static·<a·class="el"·href="a00989.html">ImageLoaderManager</a>·*&#160;</td><td·class="memItemRight"·valign="bottom"><b>getSingletonPtr</b>·()</td></tr>85 static·<a·class="el"·href="a00989.html">ImageLoaderManager</a>·*&#160;</td><td·class="memItemRight"·valign="bottom"><b>getSingletonPtr</b>·()</td></tr>
86 <tr·class="separator:a8e5272375e4bbf8acb1c8d1741246517"><td·class="memSeparator"·colspan="2">&#160;</td></tr>86 <tr·class="separator:a8e5272375e4bbf8acb1c8d1741246517"><td·class="memSeparator"·colspan="2">&#160;</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="a00044_source.html#l00056">56</a>·of·file·<a·class="el"·href="a00044_source.html">SILLYImageLoaderManager.h</a>.</p>90 <p·class="definition">Definition·at·line·<a·class="el"·href="a00041_source.html#l00056">56</a>·of·file·<a·class="el"·href="a00041_source.html">SILLYImageLoaderManager.h</a>.</p>
91 </div><h2·class="groupheader">Constructor·&amp;·Destructor·Documentation</h2>91 </div><h2·class="groupheader">Constructor·&amp;·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">&#9670;&nbsp;</a></span>ImageLoaderManager()</h2>93 <h2·class="memtitle"><span·class="permalink"><a·href="#a3f46e55dada1357eddf5f0711b1cedd7">&#9670;&nbsp;</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 modifiedOffset 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="a00038_source.html#l00062">62</a>·of·file·<a·class="el"·href="a00038_source.html">SILLYImageLoaderManager.cpp</a>.</p>108 <p·class="definition">Definition·at·line·<a·class="el"·href="a00029_source.html#l00062">62</a>·of·file·<a·class="el"·href="a00029_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">&#9670;&nbsp;</a></span>~ImageLoaderManager()</h2>112 <h2·class="memtitle"><span·class="permalink"><a·href="#a299773628984ffbc492d5e7c3b2356ba">&#9670;&nbsp;</a></span>~ImageLoaderManager()</h2>
  
113 <div·class="memitem">113 <div·class="memitem">
Offset 124, 15 lines modifiedOffset 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="a00038_source.html#l00077">77</a>·of·file·<a·class="el"·href="a00038_source.html">SILLYImageLoaderManager.cpp</a>.</p>129 <p·class="definition">Definition·at·line·<a·class="el"·href="a00029_source.html#l00077">77</a>·of·file·<a·class="el"·href="a00029_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">&#9670;&nbsp;</a></span>add()</h2>134 <h2·class="memtitle"><span·class="permalink"><a·href="#a38aa5b3d86db46f24cd330bda6d0b696">&#9670;&nbsp;</a></span>add()</h2>
  
Offset 156, 16 lines modifiedOffset 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="a00044_source.html">SILLYImageLoaderManager.h</a></li>162 <li>/build/reproducible-path/silly-0.1.0/include/<a·class="el"·href="a00041_source.html">SILLYImageLoaderManager.h</a></li>
163 <li>/build/reproducible-path/silly-0.1.0/src/<a·class="el"·href="a00038_source.html">SILLYImageLoaderManager.cpp</a></li>163 <li>/build/reproducible-path/silly-0.1.0/src/<a·class="el"·href="a00029_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&#160;<a·href="https://www.doxygen.org/index.html"><img·class="footer"·src="doxygen.svg"·width="104"·height="31"·alt="doxygen"/></a>·1.9.4168 Generated·by&#160;<a·href="https://www.doxygen.org/index.html"><img·class="footer"·src="doxygen.svg"·width="104"·height="31"·alt="doxygen"/></a>·1.9.4
169 </small></address>169 </small></address>
170 </body>170 </body>
4.31 KB
./usr/share/doc/libsilly-doc/html/a00993.html
    
Offset 49, 15 lines modifiedOffset 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·&lt;<a·class="el"·href="a00056_source.html">SILLYMemoryDataSource.h</a>&gt;</code></p>54 <p><code>#include·&lt;<a·class="el"·href="a00098_source.html">SILLYMemoryDataSource.h</a>&gt;</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,80,156,107"/>60 <area·shape="rect"·title="Load·an·image·from·a·memory·area."·alt=""·coords="5,80,156,107"/>
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,32"/>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,32"/>
Offset 89, 15 lines modifiedOffset 89, 15 lines modified
89 <tr·class="memdesc:a247628cbb1ca21f3a3d427b6350fe696"><td·class="mdescLeft">&#160;</td><td·class="mdescRight">Retieve·the·byte·at·<em>offset</em>.·<br·/></td></tr>89 <tr·class="memdesc:a247628cbb1ca21f3a3d427b6350fe696"><td·class="mdescLeft">&#160;</td><td·class="mdescRight">Retieve·the·byte·at·<em>offset</em>.·<br·/></td></tr>
90 <tr·class="separator:a247628cbb1ca21f3a3d427b6350fe696"><td·class="memSeparator"·colspan="2">&#160;</td></tr>90 <tr·class="separator:a247628cbb1ca21f3a3d427b6350fe696"><td·class="memSeparator"·colspan="2">&#160;</td></tr>
91 </table>91 </table>
92 <a·name="details"·id="details"></a><h2·class="groupheader">Detailed·Description</h2>92 <a·name="details"·id="details"></a><h2·class="groupheader">Detailed·Description</h2>
93 <div·class="textblock"><p·>Load·an·image·from·a·memory·area.·</p>93 <div·class="textblock"><p·>Load·an·image·from·a·memory·area.·</p>
94 <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>94 <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>
  
95 <p·class="definition">Definition·at·line·<a·class="el"·href="a00056_source.html#l00048">48</a>·of·file·<a·class="el"·href="a00056_source.html">SILLYMemoryDataSource.h</a>.</p>95 <p·class="definition">Definition·at·line·<a·class="el"·href="a00098_source.html#l00048">48</a>·of·file·<a·class="el"·href="a00098_source.html">SILLYMemoryDataSource.h</a>.</p>
96 </div><h2·class="groupheader">Constructor·&amp;·Destructor·Documentation</h2>96 </div><h2·class="groupheader">Constructor·&amp;·Destructor·Documentation</h2>
97 <a·id="aaf9b064e68ab0cd091926faf2ac8ab11"·name="aaf9b064e68ab0cd091926faf2ac8ab11"></a>97 <a·id="aaf9b064e68ab0cd091926faf2ac8ab11"·name="aaf9b064e68ab0cd091926faf2ac8ab11"></a>
98 <h2·class="memtitle"><span·class="permalink"><a·href="#aaf9b064e68ab0cd091926faf2ac8ab11">&#9670;&nbsp;</a></span>MemoryDataSource()</h2>98 <h2·class="memtitle"><span·class="permalink"><a·href="#aaf9b064e68ab0cd091926faf2ac8ab11">&#9670;&nbsp;</a></span>MemoryDataSource()</h2>
  
99 <div·class="memitem">99 <div·class="memitem">
100 <div·class="memproto">100 <div·class="memproto">
101 ······<table·class="memname">101 ······<table·class="memname">
Offset 127, 15 lines modifiedOffset 127, 15 lines modified
127 ··<table·class="params">127 ··<table·class="params">
128 ····<tr><td·class="paramname">data</td><td>a·byte·array·of·size·<em>size</em>·</td></tr>128 ····<tr><td·class="paramname">data</td><td>a·byte·array·of·size·<em>size</em>·</td></tr>
129 ····<tr><td·class="paramname">size</td><td>the·size·of·data·</td></tr>129 ····<tr><td·class="paramname">size</td><td>the·size·of·data·</td></tr>
130 ··</table>130 ··</table>
131 ··</dd>131 ··</dd>
132 </dl>132 </dl>
  
133 <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>133 <p·class="definition">Definition·at·line·<a·class="el"·href="a00032_source.html#l00046">46</a>·of·file·<a·class="el"·href="a00032_source.html">SILLYMemoryDataSource.cpp</a>.</p>
  
134 </div>134 </div>
135 </div>135 </div>
136 <h2·class="groupheader">Member·Function·Documentation</h2>136 <h2·class="groupheader">Member·Function·Documentation</h2>
137 <a·id="a363c71a270f739498e576e743cfa0d6e"·name="a363c71a270f739498e576e743cfa0d6e"></a>137 <a·id="a363c71a270f739498e576e743cfa0d6e"·name="a363c71a270f739498e576e743cfa0d6e"></a>
138 <h2·class="memtitle"><span·class="permalink"><a·href="#a363c71a270f739498e576e743cfa0d6e">&#9670;&nbsp;</a></span>getDataPtr()</h2>138 <h2·class="memtitle"><span·class="permalink"><a·href="#a363c71a270f739498e576e743cfa0d6e">&#9670;&nbsp;</a></span>getDataPtr()</h2>
  
Offset 191, 16 lines modifiedOffset 191, 16 lines modified
191 <p>Return·the·size·of·the·data.·</p>191 <p>Return·the·size·of·the·data.·</p>
  
192 <p>Implements·<a·class="el"·href="a00969.html#a319cde5b2ea76e92e922845ecfa5c615">DataSource</a>.</p>192 <p>Implements·<a·class="el"·href="a00969.html#a319cde5b2ea76e92e922845ecfa5c615">DataSource</a>.</p>
  
193 </div>193 </div>
194 </div>194 </div>
195 <hr/>The·documentation·for·this·class·was·generated·from·the·following·files:<ul>195 <hr/>The·documentation·for·this·class·was·generated·from·the·following·files:<ul>
196 <li>/build/reproducible-path/silly-0.1.0/include/<a·class="el"·href="a00056_source.html">SILLYMemoryDataSource.h</a></li>196 <li>/build/reproducible-path/silly-0.1.0/include/<a·class="el"·href="a00098_source.html">SILLYMemoryDataSource.h</a></li>
197 <li>/build/reproducible-path/silly-0.1.0/src/<a·class="el"·href="a00005_source.html">SILLYMemoryDataSource.cpp</a></li>197 <li>/build/reproducible-path/silly-0.1.0/src/<a·class="el"·href="a00032_source.html">SILLYMemoryDataSource.cpp</a></li>
198 </ul>198 </ul>
199 </div><!--·contents·-->199 </div><!--·contents·-->
200 <!--·start·footer·part·-->200 <!--·start·footer·part·-->
201 <hr·class="footer"/><address·class="footer"><small>201 <hr·class="footer"/><address·class="footer"><small>
202 Generated·by&#160;<a·href="https://www.doxygen.org/index.html"><img·class="footer"·src="doxygen.svg"·width="104"·height="31"·alt="doxygen"/></a>·1.9.4202 Generated·by&#160;<a·href="https://www.doxygen.org/index.html"><img·class="footer"·src="doxygen.svg"·width="104"·height="31"·alt="doxygen"/></a>·1.9.4
203 </small></address>203 </small></address>
204 </body>204 </body>
9.18 KB
./usr/share/doc/libsilly-doc/html/dir_0d87e2e7ddaae8a2a8572c0afc59fe0d.html
    
Offset 60, 47 lines modifiedOffset 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">directory·&#160;</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">directory·&#160;</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">&#160;</td></tr>63 <tr·class="separator:"><td·class="memSeparator"·colspan="2">&#160;</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">file·&#160;</td><td·class="memItemRight"·valign="bottom"><b>SILLY.h</b>·<a·href="a00113_source.html">[code]</a></td></tr>67 <tr·class="memitem:"><td·class="memItemLeft"·align="right"·valign="top">file·&#160;</td><td·class="memItemRight"·valign="bottom"><b>SILLY.h</b>·<a·href="a00095_source.html">[code]</a></td></tr>
68 <tr·class="separator:"><td·class="memSeparator"·colspan="2">&#160;</td></tr>68 <tr·class="separator:"><td·class="memSeparator"·colspan="2">&#160;</td></tr>
69 <tr·class="memitem:"><td·class="memItemLeft"·align="right"·valign="top">file·&#160;</td><td·class="memItemRight"·valign="bottom"><b>SILLYBase.h</b>·<a·href="a00053_source.html">[code]</a></td></tr>69 <tr·class="memitem:"><td·class="memItemLeft"·align="right"·valign="top">file·&#160;</td><td·class="memItemRight"·valign="bottom"><b>SILLYBase.h</b>·<a·href="a00113_source.html">[code]</a></td></tr>
70 <tr·class="separator:"><td·class="memSeparator"·colspan="2">&#160;</td></tr>70 <tr·class="separator:"><td·class="memSeparator"·colspan="2">&#160;</td></tr>
71 <tr·class="memitem:"><td·class="memItemLeft"·align="right"·valign="top">file·&#160;</td><td·class="memItemRight"·valign="bottom"><b>SILLYDataSource.h</b>·<a·href="a00122_source.html">[code]</a></td></tr>71 <tr·class="memitem:"><td·class="memItemLeft"·align="right"·valign="top">file·&#160;</td><td·class="memItemRight"·valign="bottom"><b>SILLYDataSource.h</b>·<a·href="a00119_source.html">[code]</a></td></tr>
72 <tr·class="separator:"><td·class="memSeparator"·colspan="2">&#160;</td></tr>72 <tr·class="separator:"><td·class="memSeparator"·colspan="2">&#160;</td></tr>
73 <tr·class="memitem:"><td·class="memItemLeft"·align="right"·valign="top">file·&#160;</td><td·class="memItemRight"·valign="bottom"><b>SILLYDataSource.icpp</b>·<a·href="a00068_source.html">[code]</a></td></tr>73 <tr·class="memitem:"><td·class="memItemLeft"·align="right"·valign="top">file·&#160;</td><td·class="memItemRight"·valign="bottom"><b>SILLYDataSource.icpp</b>·<a·href="a00125_source.html">[code]</a></td></tr>
74 <tr·class="separator:"><td·class="memSeparator"·colspan="2">&#160;</td></tr>74 <tr·class="separator:"><td·class="memSeparator"·colspan="2">&#160;</td></tr>
75 <tr·class="memitem:"><td·class="memItemLeft"·align="right"·valign="top">file·&#160;</td><td·class="memItemRight"·valign="bottom"><b>SILLYFileDataSource.h</b>·<a·href="a00125_source.html">[code]</a></td></tr>75 <tr·class="memitem:"><td·class="memItemLeft"·align="right"·valign="top">file·&#160;</td><td·class="memItemRight"·valign="bottom"><b>SILLYFileDataSource.h</b>·<a·href="a00104_source.html">[code]</a></td></tr>
76 <tr·class="separator:"><td·class="memSeparator"·colspan="2">&#160;</td></tr>76 <tr·class="separator:"><td·class="memSeparator"·colspan="2">&#160;</td></tr>
77 <tr·class="memitem:"><td·class="memItemLeft"·align="right"·valign="top">file·&#160;</td><td·class="memItemRight"·valign="bottom"><b>SILLYFileDataSource.icpp</b>·<a·href="a00119_source.html">[code]</a></td></tr>77 <tr·class="memitem:"><td·class="memItemLeft"·align="right"·valign="top">file·&#160;</td><td·class="memItemRight"·valign="bottom"><b>SILLYFileDataSource.icpp</b>·<a·href="a00053_source.html">[code]</a></td></tr>
78 <tr·class="separator:"><td·class="memSeparator"·colspan="2">&#160;</td></tr>78 <tr·class="separator:"><td·class="memSeparator"·colspan="2">&#160;</td></tr>
79 <tr·class="memitem:"><td·class="memItemLeft"·align="right"·valign="top">file·&#160;</td><td·class="memItemRight"·valign="bottom"><b>SILLYImage.h</b>·<a·href="a00071_source.html">[code]</a></td></tr>79 <tr·class="memitem:"><td·class="memItemLeft"·align="right"·valign="top">file·&#160;</td><td·class="memItemRight"·valign="bottom"><b>SILLYImage.h</b>·<a·href="a00107_source.html">[code]</a></td></tr>
80 <tr·class="separator:"><td·class="memSeparator"·colspan="2">&#160;</td></tr>80 <tr·class="separator:"><td·class="memSeparator"·colspan="2">&#160;</td></tr>
81 <tr·class="memitem:"><td·class="memItemLeft"·align="right"·valign="top">file·&#160;</td><td·class="memItemRight"·valign="bottom"><b>SILLYImage.icpp</b>·<a·href="a00041_source.html">[code]</a></td></tr>81 <tr·class="memitem:"><td·class="memItemLeft"·align="right"·valign="top">file·&#160;</td><td·class="memItemRight"·valign="bottom"><b>SILLYImage.icpp</b>·<a·href="a00050_source.html">[code]</a></td></tr>
82 <tr·class="separator:"><td·class="memSeparator"·colspan="2">&#160;</td></tr>82 <tr·class="separator:"><td·class="memSeparator"·colspan="2">&#160;</td></tr>
83 <tr·class="memitem:"><td·class="memItemLeft"·align="right"·valign="top">file·&#160;</td><td·class="memItemRight"·valign="bottom"><b>SILLYImageContext.h</b>·<a·href="a00047_source.html">[code]</a></td></tr>83 <tr·class="memitem:"><td·class="memItemLeft"·align="right"·valign="top">file·&#160;</td><td·class="memItemRight"·valign="bottom"><b>SILLYImageContext.h</b>·<a·href="a00110_source.html">[code]</a></td></tr>
84 <tr·class="separator:"><td·class="memSeparator"·colspan="2">&#160;</td></tr>84 <tr·class="separator:"><td·class="memSeparator"·colspan="2">&#160;</td></tr>
85 <tr·class="memitem:"><td·class="memItemLeft"·align="right"·valign="top">file·&#160;</td><td·class="memItemRight"·valign="bottom"><b>SILLYImageContext.icpp</b>·<a·href="a00062_source.html">[code]</a></td></tr>85 <tr·class="memitem:"><td·class="memItemLeft"·align="right"·valign="top">file·&#160;</td><td·class="memItemRight"·valign="bottom"><b>SILLYImageContext.icpp</b>·<a·href="a00101_source.html">[code]</a></td></tr>
86 <tr·class="separator:"><td·class="memSeparator"·colspan="2">&#160;</td></tr>86 <tr·class="separator:"><td·class="memSeparator"·colspan="2">&#160;</td></tr>
87 <tr·class="memitem:"><td·class="memItemLeft"·align="right"·valign="top">file·&#160;</td><td·class="memItemRight"·valign="bottom"><b>SILLYImageLoader.h</b>·<a·href="a00116_source.html">[code]</a></td></tr>87 <tr·class="memitem:"><td·class="memItemLeft"·align="right"·valign="top">file·&#160;</td><td·class="memItemRight"·valign="bottom"><b>SILLYImageLoader.h</b>·<a·href="a00092_source.html">[code]</a></td></tr>
88 <tr·class="separator:"><td·class="memSeparator"·colspan="2">&#160;</td></tr>88 <tr·class="separator:"><td·class="memSeparator"·colspan="2">&#160;</td></tr>
89 <tr·class="memitem:"><td·class="memItemLeft"·align="right"·valign="top">file·&#160;</td><td·class="memItemRight"·valign="bottom"><b>SILLYImageLoader.icpp</b>·<a·href="a00050_source.html">[code]</a></td></tr>89 <tr·class="memitem:"><td·class="memItemLeft"·align="right"·valign="top">file·&#160;</td><td·class="memItemRight"·valign="bottom"><b>SILLYImageLoader.icpp</b>·<a·href="a00047_source.html">[code]</a></td></tr>
90 <tr·class="separator:"><td·class="memSeparator"·colspan="2">&#160;</td></tr>90 <tr·class="separator:"><td·class="memSeparator"·colspan="2">&#160;</td></tr>
91 <tr·class="memitem:"><td·class="memItemLeft"·align="right"·valign="top">file·&#160;</td><td·class="memItemRight"·valign="bottom"><b>SILLYImageLoaderManager.h</b>·<a·href="a00044_source.html">[code]</a></td></tr>91 <tr·class="memitem:"><td·class="memItemLeft"·align="right"·valign="top">file·&#160;</td><td·class="memItemRight"·valign="bottom"><b>SILLYImageLoaderManager.h</b>·<a·href="a00041_source.html">[code]</a></td></tr>
92 <tr·class="separator:"><td·class="memSeparator"·colspan="2">&#160;</td></tr>92 <tr·class="separator:"><td·class="memSeparator"·colspan="2">&#160;</td></tr>
93 <tr·class="memitem:"><td·class="memItemLeft"·align="right"·valign="top">file·&#160;</td><td·class="memItemRight"·valign="bottom"><b>SILLYImageLoaderManager.icpp</b>·<a·href="a00059_source.html">[code]</a></td></tr>93 <tr·class="memitem:"><td·class="memItemLeft"·align="right"·valign="top">file·&#160;</td><td·class="memItemRight"·valign="bottom"><b>SILLYImageLoaderManager.icpp</b>·<a·href="a00116_source.html">[code]</a></td></tr>
94 <tr·class="separator:"><td·class="memSeparator"·colspan="2">&#160;</td></tr>94 <tr·class="separator:"><td·class="memSeparator"·colspan="2">&#160;</td></tr>
95 <tr·class="memitem:"><td·class="memItemLeft"·align="right"·valign="top">file·&#160;</td><td·class="memItemRight"·valign="bottom"><b>SILLYMemoryDataSource.h</b>·<a·href="a00056_source.html">[code]</a></td></tr>95 <tr·class="memitem:"><td·class="memItemLeft"·align="right"·valign="top">file·&#160;</td><td·class="memItemRight"·valign="bottom"><b>SILLYMemoryDataSource.h</b>·<a·href="a00098_source.html">[code]</a></td></tr>
96 <tr·class="separator:"><td·class="memSeparator"·colspan="2">&#160;</td></tr>96 <tr·class="separator:"><td·class="memSeparator"·colspan="2">&#160;</td></tr>
97 <tr·class="memitem:"><td·class="memItemLeft"·align="right"·valign="top">file·&#160;</td><td·class="memItemRight"·valign="bottom"><b>SILLYMemoryDataSource.icpp</b>·<a·href="a00065_source.html">[code]</a></td></tr>97 <tr·class="memitem:"><td·class="memItemLeft"·align="right"·valign="top">file·&#160;</td><td·class="memItemRight"·valign="bottom"><b>SILLYMemoryDataSource.icpp</b>·<a·href="a00122_source.html">[code]</a></td></tr>
98 <tr·class="separator:"><td·class="memSeparator"·colspan="2">&#160;</td></tr>98 <tr·class="separator:"><td·class="memSeparator"·colspan="2">&#160;</td></tr>
99 <tr·class="memitem:"><td·class="memItemLeft"·align="right"·valign="top">file·&#160;</td><td·class="memItemRight"·valign="bottom"><b>SILLYOptions.h</b>·<a·href="a00074_source.html">[code]</a></td></tr>99 <tr·class="memitem:"><td·class="memItemLeft"·align="right"·valign="top">file·&#160;</td><td·class="memItemRight"·valign="bottom"><b>SILLYOptions.h</b>·<a·href="a00044_source.html">[code]</a></td></tr>
100 <tr·class="separator:"><td·class="memSeparator"·colspan="2">&#160;</td></tr>100 <tr·class="separator:"><td·class="memSeparator"·colspan="2">&#160;</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&#160;<a·href="https://www.doxygen.org/index.html"><img·class="footer"·src="doxygen.svg"·width="104"·height="31"·alt="doxygen"/></a>·1.9.4105 Generated·by&#160;<a·href="https://www.doxygen.org/index.html"><img·class="footer"·src="doxygen.svg"·width="104"·height="31"·alt="doxygen"/></a>·1.9.4
106 </small></address>106 </small></address>
3.76 KB
./usr/share/doc/libsilly-doc/html/dir_7b011f4828cd5682692dd5e7c066fc3b.html
    
Offset 54, 25 lines modifiedOffset 54, 25 lines modified
54 <area·shape="rect"·href="dir_7b011f4828cd5682692dd5e7c066fc3b.html"·title="loaders"·alt=""·coords="27,52,99,100"/>54 <area·shape="rect"·href="dir_7b011f4828cd5682692dd5e7c066fc3b.html"·title="loaders"·alt=""·coords="27,52,99,100"/>
55 <area·shape="rect"·href="dir_7b53bc9a32849689d682eb098e891de5.html"·title="src"·alt=""·coords="16,16,109,111"/>55 <area·shape="rect"·href="dir_7b53bc9a32849689d682eb098e891de5.html"·title="src"·alt=""·coords="16,16,109,111"/>
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">file·&#160;</td><td·class="memItemRight"·valign="bottom"><b>SILLYJPGImageContext.cpp</b>·<a·href="a00020_source.html">[code]</a></td></tr>61 <tr·class="memitem:"><td·class="memItemLeft"·align="right"·valign="top">file·&#160;</td><td·class="memItemRight"·valign="bottom"><b>SILLYJPGImageContext.cpp</b>·<a·href="a00005_source.html">[code]</a></td></tr>
62 <tr·class="separator:"><td·class="memSeparator"·colspan="2">&#160;</td></tr>62 <tr·class="separator:"><td·class="memSeparator"·colspan="2">&#160;</td></tr>
63 <tr·class="memitem:"><td·class="memItemLeft"·align="right"·valign="top">file·&#160;</td><td·class="memItemRight"·valign="bottom"><b>SILLYJPGImageLoader.cpp</b>·<a·href="a00014_source.html">[code]</a></td></tr>63 <tr·class="memitem:"><td·class="memItemLeft"·align="right"·valign="top">file·&#160;</td><td·class="memItemRight"·valign="bottom"><b>SILLYJPGImageLoader.cpp</b>·<a·href="a00008_source.html">[code]</a></td></tr>
64 <tr·class="separator:"><td·class="memSeparator"·colspan="2">&#160;</td></tr>64 <tr·class="separator:"><td·class="memSeparator"·colspan="2">&#160;</td></tr>
65 <tr·class="memitem:"><td·class="memItemLeft"·align="right"·valign="top">file·&#160;</td><td·class="memItemRight"·valign="bottom"><b>SILLYPNGImageContext.cpp</b>·<a·href="a00026_source.html">[code]</a></td></tr>65 <tr·class="memitem:"><td·class="memItemLeft"·align="right"·valign="top">file·&#160;</td><td·class="memItemRight"·valign="bottom"><b>SILLYPNGImageContext.cpp</b>·<a·href="a00011_source.html">[code]</a></td></tr>
66 <tr·class="separator:"><td·class="memSeparator"·colspan="2">&#160;</td></tr>66 <tr·class="separator:"><td·class="memSeparator"·colspan="2">&#160;</td></tr>
67 <tr·class="memitem:"><td·class="memItemLeft"·align="right"·valign="top">file·&#160;</td><td·class="memItemRight"·valign="bottom"><b>SILLYPNGImageLoader.cpp</b>·<a·href="a00023_source.html">[code]</a></td></tr>67 <tr·class="memitem:"><td·class="memItemLeft"·align="right"·valign="top">file·&#160;</td><td·class="memItemRight"·valign="bottom"><b>SILLYPNGImageLoader.cpp</b>·<a·href="a00017_source.html">[code]</a></td></tr>
68 <tr·class="separator:"><td·class="memSeparator"·colspan="2">&#160;</td></tr>68 <tr·class="separator:"><td·class="memSeparator"·colspan="2">&#160;</td></tr>
69 <tr·class="memitem:"><td·class="memItemLeft"·align="right"·valign="top">file·&#160;</td><td·class="memItemRight"·valign="bottom"><b>SILLYTGAImageContext.cpp</b>·<a·href="a00017_source.html">[code]</a></td></tr>69 <tr·class="memitem:"><td·class="memItemLeft"·align="right"·valign="top">file·&#160;</td><td·class="memItemRight"·valign="bottom"><b>SILLYTGAImageContext.cpp</b>·<a·href="a00014_source.html">[code]</a></td></tr>
70 <tr·class="separator:"><td·class="memSeparator"·colspan="2">&#160;</td></tr>70 <tr·class="separator:"><td·class="memSeparator"·colspan="2">&#160;</td></tr>
71 <tr·class="memitem:"><td·class="memItemLeft"·align="right"·valign="top">file·&#160;</td><td·class="memItemRight"·valign="bottom"><b>SILLYTGAImageLoader.cpp</b>·<a·href="a00011_source.html">[code]</a></td></tr>71 <tr·class="memitem:"><td·class="memItemLeft"·align="right"·valign="top">file·&#160;</td><td·class="memItemRight"·valign="bottom"><b>SILLYTGAImageLoader.cpp</b>·<a·href="a00020_source.html">[code]</a></td></tr>
72 <tr·class="separator:"><td·class="memSeparator"·colspan="2">&#160;</td></tr>72 <tr·class="separator:"><td·class="memSeparator"·colspan="2">&#160;</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&#160;<a·href="https://www.doxygen.org/index.html"><img·class="footer"·src="doxygen.svg"·width="104"·height="31"·alt="doxygen"/></a>·1.9.477 Generated·by&#160;<a·href="https://www.doxygen.org/index.html"><img·class="footer"·src="doxygen.svg"·width="104"·height="31"·alt="doxygen"/></a>·1.9.4
78 </small></address>78 </small></address>
4.4 KB
./usr/share/doc/libsilly-doc/html/dir_7b53bc9a32849689d682eb098e891de5.html
    
Offset 60, 27 lines modifiedOffset 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">directory·&#160;</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">directory·&#160;</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">&#160;</td></tr>63 <tr·class="separator:"><td·class="memSeparator"·colspan="2">&#160;</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">file·&#160;</td><td·class="memItemRight"·valign="bottom"><b>SILLYDataSource.cpp</b>·<a·href="a00035_source.html">[code]</a></td></tr>67 <tr·class="memitem:"><td·class="memItemLeft"·align="right"·valign="top">file·&#160;</td><td·class="memItemRight"·valign="bottom"><b>SILLYDataSource.cpp</b>·<a·href="a00038_source.html">[code]</a></td></tr>
68 <tr·class="separator:"><td·class="memSeparator"·colspan="2">&#160;</td></tr>68 <tr·class="separator:"><td·class="memSeparator"·colspan="2">&#160;</td></tr>
69 <tr·class="memitem:"><td·class="memItemLeft"·align="right"·valign="top">file·&#160;</td><td·class="memItemRight"·valign="bottom"><b>SILLYFileDataSource.cpp</b>·<a·href="a00032_source.html">[code]</a></td></tr>69 <tr·class="memitem:"><td·class="memItemLeft"·align="right"·valign="top">file·&#160;</td><td·class="memItemRight"·valign="bottom"><b>SILLYFileDataSource.cpp</b>·<a·href="a00002_source.html">[code]</a></td></tr>
70 <tr·class="separator:"><td·class="memSeparator"·colspan="2">&#160;</td></tr>70 <tr·class="separator:"><td·class="memSeparator"·colspan="2">&#160;</td></tr>
71 <tr·class="memitem:"><td·class="memItemLeft"·align="right"·valign="top">file·&#160;</td><td·class="memItemRight"·valign="bottom"><b>SILLYImage.cpp</b>·<a·href="a00029_source.html">[code]</a></td></tr>71 <tr·class="memitem:"><td·class="memItemLeft"·align="right"·valign="top">file·&#160;</td><td·class="memItemRight"·valign="bottom"><b>SILLYImage.cpp</b>·<a·href="a00023_source.html">[code]</a></td></tr>
72 <tr·class="separator:"><td·class="memSeparator"·colspan="2">&#160;</td></tr>72 <tr·class="separator:"><td·class="memSeparator"·colspan="2">&#160;</td></tr>
73 <tr·class="memitem:"><td·class="memItemLeft"·align="right"·valign="top">file·&#160;</td><td·class="memItemRight"·valign="bottom"><b>SILLYImageContext.cpp</b>·<a·href="a00008_source.html">[code]</a></td></tr>73 <tr·class="memitem:"><td·class="memItemLeft"·align="right"·valign="top">file·&#160;</td><td·class="memItemRight"·valign="bottom"><b>SILLYImageContext.cpp</b>·<a·href="a00026_source.html">[code]</a></td></tr>
74 <tr·class="separator:"><td·class="memSeparator"·colspan="2">&#160;</td></tr>74 <tr·class="separator:"><td·class="memSeparator"·colspan="2">&#160;</td></tr>
75 <tr·class="memitem:"><td·class="memItemLeft"·align="right"·valign="top">file·&#160;</td><td·class="memItemRight"·valign="bottom"><b>SILLYImageLoader.cpp</b>·<a·href="a00002_source.html">[code]</a></td></tr>75 <tr·class="memitem:"><td·class="memItemLeft"·align="right"·valign="top">file·&#160;</td><td·class="memItemRight"·valign="bottom"><b>SILLYImageLoader.cpp</b>·<a·href="a00035_source.html">[code]</a></td></tr>
76 <tr·class="separator:"><td·class="memSeparator"·colspan="2">&#160;</td></tr>76 <tr·class="separator:"><td·class="memSeparator"·colspan="2">&#160;</td></tr>
77 <tr·class="memitem:"><td·class="memItemLeft"·align="right"·valign="top">file·&#160;</td><td·class="memItemRight"·valign="bottom"><b>SILLYImageLoaderManager.cpp</b>·<a·href="a00038_source.html">[code]</a></td></tr>77 <tr·class="memitem:"><td·class="memItemLeft"·align="right"·valign="top">file·&#160;</td><td·class="memItemRight"·valign="bottom"><b>SILLYImageLoaderManager.cpp</b>·<a·href="a00029_source.html">[code]</a></td></tr>
78 <tr·class="separator:"><td·class="memSeparator"·colspan="2">&#160;</td></tr>78 <tr·class="separator:"><td·class="memSeparator"·colspan="2">&#160;</td></tr>
79 <tr·class="memitem:"><td·class="memItemLeft"·align="right"·valign="top">file·&#160;</td><td·class="memItemRight"·valign="bottom"><b>SILLYMemoryDataSource.cpp</b>·<a·href="a00005_source.html">[code]</a></td></tr>79 <tr·class="memitem:"><td·class="memItemLeft"·align="right"·valign="top">file·&#160;</td><td·class="memItemRight"·valign="bottom"><b>SILLYMemoryDataSource.cpp</b>·<a·href="a00032_source.html">[code]</a></td></tr>
80 <tr·class="separator:"><td·class="memSeparator"·colspan="2">&#160;</td></tr>80 <tr·class="separator:"><td·class="memSeparator"·colspan="2">&#160;</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&#160;<a·href="https://www.doxygen.org/index.html"><img·class="footer"·src="doxygen.svg"·width="104"·height="31"·alt="doxygen"/></a>·1.9.485 Generated·by&#160;<a·href="https://www.doxygen.org/index.html"><img·class="footer"·src="doxygen.svg"·width="104"·height="31"·alt="doxygen"/></a>·1.9.4
86 </small></address>86 </small></address>
6.48 KB
./usr/share/doc/libsilly-doc/html/dir_7cea72c962538e8359f822070f2512f7.html
    
Offset 54, 37 lines modifiedOffset 54, 37 lines modified
54 <area·shape="rect"·href="dir_7cea72c962538e8359f822070f2512f7.html"·title="loaders"·alt=""·coords="27,52,99,100"/>54 <area·shape="rect"·href="dir_7cea72c962538e8359f822070f2512f7.html"·title="loaders"·alt=""·coords="27,52,99,100"/>
55 <area·shape="rect"·href="dir_0d87e2e7ddaae8a2a8572c0afc59fe0d.html"·title="include"·alt=""·coords="16,16,109,111"/>55 <area·shape="rect"·href="dir_0d87e2e7ddaae8a2a8572c0afc59fe0d.html"·title="include"·alt=""·coords="16,16,109,111"/>
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">file·&#160;</td><td·class="memItemRight"·valign="bottom"><b>SILLYJPGImageContext.h</b>·<a·href="a00080_source.html">[code]</a></td></tr>61 <tr·class="memitem:"><td·class="memItemLeft"·align="right"·valign="top">file·&#160;</td><td·class="memItemRight"·valign="bottom"><b>SILLYJPGImageContext.h</b>·<a·href="a00065_source.html">[code]</a></td></tr>
62 <tr·class="separator:"><td·class="memSeparator"·colspan="2">&#160;</td></tr>62 <tr·class="separator:"><td·class="memSeparator"·colspan="2">&#160;</td></tr>
63 <tr·class="memitem:"><td·class="memItemLeft"·align="right"·valign="top">file·&#160;</td><td·class="memItemRight"·valign="bottom"><b>SILLYJPGImageContext.icpp</b>·<a·href="a00110_source.html">[code]</a></td></tr>63 <tr·class="memitem:"><td·class="memItemLeft"·align="right"·valign="top">file·&#160;</td><td·class="memItemRight"·valign="bottom"><b>SILLYJPGImageContext.icpp</b>·<a·href="a00080_source.html">[code]</a></td></tr>
64 <tr·class="separator:"><td·class="memSeparator"·colspan="2">&#160;</td></tr>64 <tr·class="separator:"><td·class="memSeparator"·colspan="2">&#160;</td></tr>
65 <tr·class="memitem:"><td·class="memItemLeft"·align="right"·valign="top">file·&#160;</td><td·class="memItemRight"·valign="bottom"><b>SILLYJPGImageLoader.h</b>·<a·href="a00086_source.html">[code]</a></td></tr>65 <tr·class="memitem:"><td·class="memItemLeft"·align="right"·valign="top">file·&#160;</td><td·class="memItemRight"·valign="bottom"><b>SILLYJPGImageLoader.h</b>·<a·href="a00056_source.html">[code]</a></td></tr>
66 <tr·class="separator:"><td·class="memSeparator"·colspan="2">&#160;</td></tr>66 <tr·class="separator:"><td·class="memSeparator"·colspan="2">&#160;</td></tr>
67 <tr·class="memitem:"><td·class="memItemLeft"·align="right"·valign="top">file·&#160;</td><td·class="memItemRight"·valign="bottom"><b>SILLYJPGImageLoader.icpp</b>·<a·href="a00089_source.html">[code]</a></td></tr>67 <tr·class="memitem:"><td·class="memItemLeft"·align="right"·valign="top">file·&#160;</td><td·class="memItemRight"·valign="bottom"><b>SILLYJPGImageLoader.icpp</b>·<a·href="a00071_source.html">[code]</a></td></tr>
68 <tr·class="separator:"><td·class="memSeparator"·colspan="2">&#160;</td></tr>68 <tr·class="separator:"><td·class="memSeparator"·colspan="2">&#160;</td></tr>
69 <tr·class="memitem:"><td·class="memItemLeft"·align="right"·valign="top">file·&#160;</td><td·class="memItemRight"·valign="bottom"><b>SILLYPNGImageContext.h</b>·<a·href="a00095_source.html">[code]</a></td></tr>69 <tr·class="memitem:"><td·class="memItemLeft"·align="right"·valign="top">file·&#160;</td><td·class="memItemRight"·valign="bottom"><b>SILLYPNGImageContext.h</b>·<a·href="a00089_source.html">[code]</a></td></tr>
70 <tr·class="separator:"><td·class="memSeparator"·colspan="2">&#160;</td></tr>70 <tr·class="separator:"><td·class="memSeparator"·colspan="2">&#160;</td></tr>
71 <tr·class="memitem:"><td·class="memItemLeft"·align="right"·valign="top">file·&#160;</td><td·class="memItemRight"·valign="bottom"><b>SILLYPNGImageContext.icpp</b>·<a·href="a00083_source.html">[code]</a></td></tr>71 <tr·class="memitem:"><td·class="memItemLeft"·align="right"·valign="top">file·&#160;</td><td·class="memItemRight"·valign="bottom"><b>SILLYPNGImageContext.icpp</b>·<a·href="a00083_source.html">[code]</a></td></tr>
72 <tr·class="separator:"><td·class="memSeparator"·colspan="2">&#160;</td></tr>72 <tr·class="separator:"><td·class="memSeparator"·colspan="2">&#160;</td></tr>
73 <tr·class="memitem:"><td·class="memItemLeft"·align="right"·valign="top">file·&#160;</td><td·class="memItemRight"·valign="bottom"><b>SILLYPNGImageLoader.h</b>·<a·href="a00098_source.html">[code]</a></td></tr>73 <tr·class="memitem:"><td·class="memItemLeft"·align="right"·valign="top">file·&#160;</td><td·class="memItemRight"·valign="bottom"><b>SILLYPNGImageLoader.h</b>·<a·href="a00068_source.html">[code]</a></td></tr>
74 <tr·class="separator:"><td·class="memSeparator"·colspan="2">&#160;</td></tr>74 <tr·class="separator:"><td·class="memSeparator"·colspan="2">&#160;</td></tr>
75 <tr·class="memitem:"><td·class="memItemLeft"·align="right"·valign="top">file·&#160;</td><td·class="memItemRight"·valign="bottom"><b>SILLYPNGImageLoader.icpp</b>·<a·href="a00104_source.html">[code]</a></td></tr>75 <tr·class="memitem:"><td·class="memItemLeft"·align="right"·valign="top">file·&#160;</td><td·class="memItemRight"·valign="bottom"><b>SILLYPNGImageLoader.icpp</b>·<a·href="a00074_source.html">[code]</a></td></tr>
76 <tr·class="separator:"><td·class="memSeparator"·colspan="2">&#160;</td></tr>76 <tr·class="separator:"><td·class="memSeparator"·colspan="2">&#160;</td></tr>
77 <tr·class="memitem:"><td·class="memItemLeft"·align="right"·valign="top">file·&#160;</td><td·class="memItemRight"·valign="bottom"><b>SILLYTGAImageContext.h</b>·<a·href="a00092_source.html">[code]</a></td></tr>77 <tr·class="memitem:"><td·class="memItemLeft"·align="right"·valign="top">file·&#160;</td><td·class="memItemRight"·valign="bottom"><b>SILLYTGAImageContext.h</b>·<a·href="a00062_source.html">[code]</a></td></tr>
78 <tr·class="separator:"><td·class="memSeparator"·colspan="2">&#160;</td></tr>78 <tr·class="separator:"><td·class="memSeparator"·colspan="2">&#160;</td></tr>
79 <tr·class="memitem:"><td·class="memItemLeft"·align="right"·valign="top">file·&#160;</td><td·class="memItemRight"·valign="bottom"><b>SILLYTGAImageContext.icpp</b>·<a·href="a00077_source.html">[code]</a></td></tr>79 <tr·class="memitem:"><td·class="memItemLeft"·align="right"·valign="top">file·&#160;</td><td·class="memItemRight"·valign="bottom"><b>SILLYTGAImageContext.icpp</b>·<a·href="a00059_source.html">[code]</a></td></tr>
80 <tr·class="separator:"><td·class="memSeparator"·colspan="2">&#160;</td></tr>80 <tr·class="separator:"><td·class="memSeparator"·colspan="2">&#160;</td></tr>
81 <tr·class="memitem:"><td·class="memItemLeft"·align="right"·valign="top">file·&#160;</td><td·class="memItemRight"·valign="bottom"><b>SILLYTGAImageLoader.h</b>·<a·href="a00101_source.html">[code]</a></td></tr>81 <tr·class="memitem:"><td·class="memItemLeft"·align="right"·valign="top">file·&#160;</td><td·class="memItemRight"·valign="bottom"><b>SILLYTGAImageLoader.h</b>·<a·href="a00086_source.html">[code]</a></td></tr>
82 <tr·class="separator:"><td·class="memSeparator"·colspan="2">&#160;</td></tr>82 <tr·class="separator:"><td·class="memSeparator"·colspan="2">&#160;</td></tr>
83 <tr·class="memitem:"><td·class="memItemLeft"·align="right"·valign="top">file·&#160;</td><td·class="memItemRight"·valign="bottom"><b>SILLYTGAImageLoader.icpp</b>·<a·href="a00107_source.html">[code]</a></td></tr>83 <tr·class="memitem:"><td·class="memItemLeft"·align="right"·valign="top">file·&#160;</td><td·class="memItemRight"·valign="bottom"><b>SILLYTGAImageLoader.icpp</b>·<a·href="a00077_source.html">[code]</a></td></tr>
84 <tr·class="separator:"><td·class="memSeparator"·colspan="2">&#160;</td></tr>84 <tr·class="separator:"><td·class="memSeparator"·colspan="2">&#160;</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&#160;<a·href="https://www.doxygen.org/index.html"><img·class="footer"·src="doxygen.svg"·width="104"·height="31"·alt="doxygen"/></a>·1.9.489 Generated·by&#160;<a·href="https://www.doxygen.org/index.html"><img·class="footer"·src="doxygen.svg"·width="104"·height="31"·alt="doxygen"/></a>·1.9.4
90 </small></address>90 </small></address>
22.6 KB
./usr/share/doc/libsilly-doc/html/files.html
    
Offset 45, 58 lines modifiedOffset 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;">&#160;</span><span·id="arr_0_"·class="arrow"·onclick="toggleFolder('0_')">&#9660;</span><span·id="img_0_"·class="iconfopen"·onclick="toggleFolder('0_')">&#160;</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;">&#160;</span><span·id="arr_0_"·class="arrow"·onclick="toggleFolder('0_')">&#9660;</span><span·id="img_0_"·class="iconfopen"·onclick="toggleFolder('0_')">&#160;</span><a·class="el"·href="dir_4fef79e7177ba769987a8da36c892c5f.html"·target="_self">build</a></td><td·class="desc"></td></tr>
48 <tr·id="row_0_0_"><td·class="entry"><span·style="width:16px;display:inline-block;">&#160;</span><span·id="arr_0_0_"·class="arrow"·onclick="toggleFolder('0_0_')">&#9660;</span><span·id="img_0_0_"·class="iconfopen"·onclick="toggleFolder('0_0_')">&#160;</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_"><td·class="entry"><span·style="width:16px;display:inline-block;">&#160;</span><span·id="arr_0_0_"·class="arrow"·onclick="toggleFolder('0_0_')">&#9660;</span><span·id="img_0_0_"·class="iconfopen"·onclick="toggleFolder('0_0_')">&#160;</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;">&#160;</span><span·id="arr_0_0_0_"·class="arrow"·onclick="toggleFolder('0_0_0_')">&#9660;</span><span·id="img_0_0_0_"·class="iconfopen"·onclick="toggleFolder('0_0_0_')">&#160;</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;">&#160;</span><span·id="arr_0_0_0_"·class="arrow"·onclick="toggleFolder('0_0_0_')">&#9660;</span><span·id="img_0_0_0_"·class="iconfopen"·onclick="toggleFolder('0_0_0_')">&#160;</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_"><td·class="entry"><span·style="width:48px;display:inline-block;">&#160;</span><span·id="arr_0_0_0_0_"·class="arrow"·onclick="toggleFolder('0_0_0_0_')">&#9660;</span><span·id="img_0_0_0_0_"·class="iconfopen"·onclick="toggleFolder('0_0_0_0_')">&#160;</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_"><td·class="entry"><span·style="width:48px;display:inline-block;">&#160;</span><span·id="arr_0_0_0_0_"·class="arrow"·onclick="toggleFolder('0_0_0_0_')">&#9660;</span><span·id="img_0_0_0_0_"·class="iconfopen"·onclick="toggleFolder('0_0_0_0_')">&#160;</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;">&#160;</span><span·id="arr_0_0_0_0_0_"·class="arrow"·onclick="toggleFolder('0_0_0_0_0_')">&#9660;</span><span·id="img_0_0_0_0_0_"·class="iconfopen"·onclick="toggleFolder('0_0_0_0_0_')">&#160;</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;">&#160;</span><span·id="arr_0_0_0_0_0_"·class="arrow"·onclick="toggleFolder('0_0_0_0_0_')">&#9660;</span><span·id="img_0_0_0_0_0_"·class="iconfopen"·onclick="toggleFolder('0_0_0_0_0_')">&#160;</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_"><td·class="entry"><span·style="width:96px;display:inline-block;">&#160;</span><a·href="a00080_source.html"><span·class="icondoc"></span></a><b>SILLYJPGImageContext.h</b></td><td·class="desc"></td></tr>52 <tr·id="row_0_0_0_0_0_0_"><td·class="entry"><span·style="width:96px;display:inline-block;">&#160;</span><a·href="a00065_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;">&#160;</span><a·href="a00110_source.html"><span·class="icondoc"></span></a><b>SILLYJPGImageContext.icpp</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;">&#160;</span><a·href="a00080_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_"><td·class="entry"><span·style="width:96px;display:inline-block;">&#160;</span><a·href="a00086_source.html"><span·class="icondoc"></span></a><b>SILLYJPGImageLoader.h</b></td><td·class="desc"></td></tr>54 <tr·id="row_0_0_0_0_0_2_"><td·class="entry"><span·style="width:96px;display:inline-block;">&#160;</span><a·href="a00056_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;">&#160;</span><a·href="a00089_source.html"><span·class="icondoc"></span></a><b>SILLYJPGImageLoader.icpp</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;">&#160;</span><a·href="a00071_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_"><td·class="entry"><span·style="width:96px;display:inline-block;">&#160;</span><a·href="a00095_source.html"><span·class="icondoc"></span></a><b>SILLYPNGImageContext.h</b></td><td·class="desc"></td></tr>56 <tr·id="row_0_0_0_0_0_4_"><td·class="entry"><span·style="width:96px;display:inline-block;">&#160;</span><a·href="a00089_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;">&#160;</span><a·href="a00083_source.html"><span·class="icondoc"></span></a><b>SILLYPNGImageContext.icpp</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;">&#160;</span><a·href="a00083_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_"><td·class="entry"><span·style="width:96px;display:inline-block;">&#160;</span><a·href="a00098_source.html"><span·class="icondoc"></span></a><b>SILLYPNGImageLoader.h</b></td><td·class="desc"></td></tr>58 <tr·id="row_0_0_0_0_0_6_"><td·class="entry"><span·style="width:96px;display:inline-block;">&#160;</span><a·href="a00068_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;">&#160;</span><a·href="a00104_source.html"><span·class="icondoc"></span></a><b>SILLYPNGImageLoader.icpp</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;">&#160;</span><a·href="a00074_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_"><td·class="entry"><span·style="width:96px;display:inline-block;">&#160;</span><a·href="a00092_source.html"><span·class="icondoc"></span></a><b>SILLYTGAImageContext.h</b></td><td·class="desc"></td></tr>60 <tr·id="row_0_0_0_0_0_8_"><td·class="entry"><span·style="width:96px;display:inline-block;">&#160;</span><a·href="a00062_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;">&#160;</span><a·href="a00077_source.html"><span·class="icondoc"></span></a><b>SILLYTGAImageContext.icpp</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;">&#160;</span><a·href="a00059_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_"><td·class="entry"><span·style="width:96px;display:inline-block;">&#160;</span><a·href="a00101_source.html"><span·class="icondoc"></span></a><b>SILLYTGAImageLoader.h</b></td><td·class="desc"></td></tr>62 <tr·id="row_0_0_0_0_0_10_"><td·class="entry"><span·style="width:96px;display:inline-block;">&#160;</span><a·href="a00086_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;">&#160;</span><a·href="a00107_source.html"><span·class="icondoc"></span></a><b>SILLYTGAImageLoader.icpp</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;">&#160;</span><a·href="a00077_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_"><td·class="entry"><span·style="width:80px;display:inline-block;">&#160;</span><a·href="a00113_source.html"><span·class="icondoc"></span></a><b>SILLY.h</b></td><td·class="desc"></td></tr>64 <tr·id="row_0_0_0_0_1_"><td·class="entry"><span·style="width:80px;display:inline-block;">&#160;</span><a·href="a00095_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;">&#160;</span><a·href="a00053_source.html"><span·class="icondoc"></span></a><b>SILLYBase.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;">&#160;</span><a·href="a00113_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_"><td·class="entry"><span·style="width:80px;display:inline-block;">&#160;</span><a·href="a00122_source.html"><span·class="icondoc"></span></a><b>SILLYDataSource.h</b></td><td·class="desc"></td></tr>66 <tr·id="row_0_0_0_0_3_"><td·class="entry"><span·style="width:80px;display:inline-block;">&#160;</span><a·href="a00119_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;">&#160;</span><a·href="a00068_source.html"><span·class="icondoc"></span></a><b>SILLYDataSource.icpp</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;">&#160;</span><a·href="a00125_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_"><td·class="entry"><span·style="width:80px;display:inline-block;">&#160;</span><a·href="a00125_source.html"><span·class="icondoc"></span></a><b>SILLYFileDataSource.h</b></td><td·class="desc"></td></tr>68 <tr·id="row_0_0_0_0_5_"><td·class="entry"><span·style="width:80px;display:inline-block;">&#160;</span><a·href="a00104_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;">&#160;</span><a·href="a00119_source.html"><span·class="icondoc"></span></a><b>SILLYFileDataSource.icpp</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;">&#160;</span><a·href="a00053_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_"><td·class="entry"><span·style="width:80px;display:inline-block;">&#160;</span><a·href="a00071_source.html"><span·class="icondoc"></span></a><b>SILLYImage.h</b></td><td·class="desc"></td></tr>70 <tr·id="row_0_0_0_0_7_"><td·class="entry"><span·style="width:80px;display:inline-block;">&#160;</span><a·href="a00107_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;">&#160;</span><a·href="a00041_source.html"><span·class="icondoc"></span></a><b>SILLYImage.icpp</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;">&#160;</span><a·href="a00050_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_"><td·class="entry"><span·style="width:80px;display:inline-block;">&#160;</span><a·href="a00047_source.html"><span·class="icondoc"></span></a><b>SILLYImageContext.h</b></td><td·class="desc"></td></tr>72 <tr·id="row_0_0_0_0_9_"><td·class="entry"><span·style="width:80px;display:inline-block;">&#160;</span><a·href="a00110_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;">&#160;</span><a·href="a00062_source.html"><span·class="icondoc"></span></a><b>SILLYImageContext.icpp</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;">&#160;</span><a·href="a00101_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_"><td·class="entry"><span·style="width:80px;display:inline-block;">&#160;</span><a·href="a00116_source.html"><span·class="icondoc"></span></a><b>SILLYImageLoader.h</b></td><td·class="desc"></td></tr>74 <tr·id="row_0_0_0_0_11_"><td·class="entry"><span·style="width:80px;display:inline-block;">&#160;</span><a·href="a00092_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;">&#160;</span><a·href="a00050_source.html"><span·class="icondoc"></span></a><b>SILLYImageLoader.icpp</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;">&#160;</span><a·href="a00047_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_"><td·class="entry"><span·style="width:80px;display:inline-block;">&#160;</span><a·href="a00044_source.html"><span·class="icondoc"></span></a><b>SILLYImageLoaderManager.h</b></td><td·class="desc"></td></tr>76 <tr·id="row_0_0_0_0_13_"><td·class="entry"><span·style="width:80px;display:inline-block;">&#160;</span><a·href="a00041_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;">&#160;</span><a·href="a00059_source.html"><span·class="icondoc"></span></a><b>SILLYImageLoaderManager.icpp</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;">&#160;</span><a·href="a00116_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_"><td·class="entry"><span·style="width:80px;display:inline-block;">&#160;</span><a·href="a00056_source.html"><span·class="icondoc"></span></a><b>SILLYMemoryDataSource.h</b></td><td·class="desc"></td></tr>78 <tr·id="row_0_0_0_0_15_"><td·class="entry"><span·style="width:80px;display:inline-block;">&#160;</span><a·href="a00098_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;">&#160;</span><a·href="a00065_source.html"><span·class="icondoc"></span></a><b>SILLYMemoryDataSource.icpp</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;">&#160;</span><a·href="a00122_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_"><td·class="entry"><span·style="width:80px;display:inline-block;">&#160;</span><a·href="a00074_source.html"><span·class="icondoc"></span></a><b>SILLYOptions.h</b></td><td·class="desc"></td></tr>80 <tr·id="row_0_0_0_0_17_"><td·class="entry"><span·style="width:80px;display:inline-block;">&#160;</span><a·href="a00044_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;">&#160;</span><span·id="arr_0_0_0_1_"·class="arrow"·onclick="toggleFolder('0_0_0_1_')">&#9660;</span><span·id="img_0_0_0_1_"·class="iconfopen"·onclick="toggleFolder('0_0_0_1_')">&#160;</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;">&#160;</span><span·id="arr_0_0_0_1_"·class="arrow"·onclick="toggleFolder('0_0_0_1_')">&#9660;</span><span·id="img_0_0_0_1_"·class="iconfopen"·onclick="toggleFolder('0_0_0_1_')">&#160;</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_"><td·class="entry"><span·style="width:64px;display:inline-block;">&#160;</span><span·id="arr_0_0_0_1_0_"·class="arrow"·onclick="toggleFolder('0_0_0_1_0_')">&#9660;</span><span·id="img_0_0_0_1_0_"·class="iconfopen"·onclick="toggleFolder('0_0_0_1_0_')">&#160;</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_"><td·class="entry"><span·style="width:64px;display:inline-block;">&#160;</span><span·id="arr_0_0_0_1_0_"·class="arrow"·onclick="toggleFolder('0_0_0_1_0_')">&#9660;</span><span·id="img_0_0_0_1_0_"·class="iconfopen"·onclick="toggleFolder('0_0_0_1_0_')">&#160;</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;">&#160;</span><a·href="a00020_source.html"><span·class="icondoc"></span></a><b>SILLYJPGImageContext.cpp</b></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;">&#160;</span><a·href="a00005_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_"><td·class="entry"><span·style="width:96px;display:inline-block;">&#160;</span><a·href="a00014_source.html"><span·class="icondoc"></span></a><b>SILLYJPGImageLoader.cpp</b></td><td·class="desc"></td></tr>84 <tr·id="row_0_0_0_1_0_1_"><td·class="entry"><span·style="width:96px;display:inline-block;">&#160;</span><a·href="a00008_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;">&#160;</span><a·href="a00026_source.html"><span·class="icondoc"></span></a><b>SILLYPNGImageContext.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;">&#160;</span><a·href="a00011_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_"><td·class="entry"><span·style="width:96px;display:inline-block;">&#160;</span><a·href="a00023_source.html"><span·class="icondoc"></span></a><b>SILLYPNGImageLoader.cpp</b></td><td·class="desc"></td></tr>86 <tr·id="row_0_0_0_1_0_3_"><td·class="entry"><span·style="width:96px;display:inline-block;">&#160;</span><a·href="a00017_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;">&#160;</span><a·href="a00017_source.html"><span·class="icondoc"></span></a><b>SILLYTGAImageContext.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;">&#160;</span><a·href="a00014_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_"><td·class="entry"><span·style="width:96px;display:inline-block;">&#160;</span><a·href="a00011_source.html"><span·class="icondoc"></span></a><b>SILLYTGAImageLoader.cpp</b></td><td·class="desc"></td></tr>88 <tr·id="row_0_0_0_1_0_5_"><td·class="entry"><span·style="width:96px;display:inline-block;">&#160;</span><a·href="a00020_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;">&#160;</span><a·href="a00035_source.html"><span·class="icondoc"></span></a><b>SILLYDataSource.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;">&#160;</span><a·href="a00038_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_"><td·class="entry"><span·style="width:80px;display:inline-block;">&#160;</span><a·href="a00032_source.html"><span·class="icondoc"></span></a><b>SILLYFileDataSource.cpp</b></td><td·class="desc"></td></tr>90 <tr·id="row_0_0_0_1_2_"><td·class="entry"><span·style="width:80px;display:inline-block;">&#160;</span><a·href="a00002_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;">&#160;</span><a·href="a00029_source.html"><span·class="icondoc"></span></a><b>SILLYImage.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;">&#160;</span><a·href="a00023_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_"><td·class="entry"><span·style="width:80px;display:inline-block;">&#160;</span><a·href="a00008_source.html"><span·class="icondoc"></span></a><b>SILLYImageContext.cpp</b></td><td·class="desc"></td></tr>92 <tr·id="row_0_0_0_1_4_"><td·class="entry"><span·style="width:80px;display:inline-block;">&#160;</span><a·href="a00026_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;">&#160;</span><a·href="a00002_source.html"><span·class="icondoc"></span></a><b>SILLYImageLoader.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;">&#160;</span><a·href="a00035_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_"><td·class="entry"><span·style="width:80px;display:inline-block;">&#160;</span><a·href="a00038_source.html"><span·class="icondoc"></span></a><b>SILLYImageLoaderManager.cpp</b></td><td·class="desc"></td></tr>94 <tr·id="row_0_0_0_1_6_"><td·class="entry"><span·style="width:80px;display:inline-block;">&#160;</span><a·href="a00029_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;">&#160;</span><a·href="a00005_source.html"><span·class="icondoc"></span></a><b>SILLYMemoryDataSource.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;">&#160;</span><a·href="a00032_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&#160;<a·href="https://www.doxygen.org/index.html"><img·class="footer"·src="doxygen.svg"·width="104"·height="31"·alt="doxygen"/></a>·1.9.4101 Generated·by&#160;<a·href="https://www.doxygen.org/index.html"><img·class="footer"·src="doxygen.svg"·width="104"·height="31"·alt="doxygen"/></a>·1.9.4
102 </small></address>102 </small></address>
4.37 KB
./usr/share/doc/libsilly-doc/html/index.html
    
Offset 90, 19 lines modifiedOffset 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="a00053_source.html#l00080">SILLYBase.h:80</a></div></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="a00113_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="a00038_source.html#l00100">SILLYImageLoaderManager.cpp:100</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="a00029_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="a00038_source.html#l00087">SILLYImageLoaderManager.cpp:87</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="a00029_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="a00071_source.html#l00046">SILLYImage.h:47</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="a00107_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="a00056_source.html#l00048">SILLYMemoryDataSource.h:49</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="a00098_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&#160;<a·href="https://www.doxygen.org/index.html"><img·class="footer"·src="doxygen.svg"·width="104"·height="31"·alt="doxygen"/></a>·1.9.4106 Generated·by&#160;<a·href="https://www.doxygen.org/index.html"><img·class="footer"·src="doxygen.svg"·width="104"·height="31"·alt="doxygen"/></a>·1.9.4
107 </small></address>107 </small></address>
108 </body>108 </body>