{"diffoscope-json-version": 1, "source1": "/srv/reproducible-results/rbuild-debian/r-b-build.dixmtRq1/b1/silly_0.1.0-8.1_i386.changes", "source2": "/srv/reproducible-results/rbuild-debian/r-b-build.dixmtRq1/b2/silly_0.1.0-8.1_i386.changes", "unified_diff": null, "details": [{"source1": "Files", "source2": "Files", "unified_diff": "@@ -1,5 +1,5 @@\n \n fbd3c0270943cb1c827387a94d0b577a 61580 debug optional libsilly-dbgsym_0.1.0-8.1_i386.deb\n 7571df71a02b947b0d09aef3eadc471e 25712 libdevel extra libsilly-dev_0.1.0-8.1_i386.deb\n- a0bc3b12bd31cacb77f6e7849af910cb 181412 doc extra libsilly-doc_0.1.0-8.1_all.deb\n+ 1a61c88194c18cf900ef4e3f8f16c7fc 181512 doc extra libsilly-doc_0.1.0-8.1_all.deb\n c456aea5738c7a42710c2dff9d415809 16092 libs extra libsilly_0.1.0-8.1_i386.deb\n"}, {"source1": "libsilly-doc_0.1.0-8.1_all.deb", "source2": "libsilly-doc_0.1.0-8.1_all.deb", "unified_diff": null, "details": [{"source1": "file list", "source2": "file list", "unified_diff": "@@ -1,3 +1,3 @@\n -rw-r--r-- 0 0 0 4 2021-01-03 15:26:07.000000 debian-binary\n--rw-r--r-- 0 0 0 3788 2021-01-03 15:26:07.000000 control.tar.xz\n--rw-r--r-- 0 0 0 177432 2021-01-03 15:26:07.000000 data.tar.xz\n+-rw-r--r-- 0 0 0 3784 2021-01-03 15:26:07.000000 control.tar.xz\n+-rw-r--r-- 0 0 0 177536 2021-01-03 15:26:07.000000 data.tar.xz\n"}, {"source1": "control.tar.xz", "source2": "control.tar.xz", "unified_diff": null, "details": [{"source1": "control.tar", "source2": "control.tar", "unified_diff": null, "details": [{"source1": "./md5sums", "source2": "./md5sums", "unified_diff": null, "details": [{"source1": "./md5sums", "source2": "./md5sums", "comments": ["Files differ"], "unified_diff": null}]}]}]}, {"source1": "data.tar.xz", "source2": "data.tar.xz", "unified_diff": null, "details": [{"source1": "data.tar", "source2": "data.tar", "unified_diff": null, "details": [{"source1": "file list", "source2": "file list", "unified_diff": "@@ -3,56 +3,56 @@\n drwxr-xr-x 0 root (0) root (0) 0 2021-01-03 15:26:07.000000 ./usr/share/\n drwxr-xr-x 0 root (0) root (0) 0 2021-01-03 15:26:07.000000 ./usr/share/doc/\n drwxr-xr-x 0 root (0) root (0) 0 2021-01-03 15:26:07.000000 ./usr/share/doc/libsilly-doc/\n -rw-r--r-- 0 root (0) root (0) 643 2021-01-03 15:26:07.000000 ./usr/share/doc/libsilly-doc/changelog.Debian.gz\n -rw-r--r-- 0 root (0) root (0) 387 2006-08-11 08:21:50.000000 ./usr/share/doc/libsilly-doc/changelog.gz\n -rw-r--r-- 0 root (0) root (0) 3404 2012-04-10 11:20:35.000000 ./usr/share/doc/libsilly-doc/copyright\n drwxr-xr-x 0 root (0) root (0) 0 2021-01-03 15:26:07.000000 ./usr/share/doc/libsilly-doc/html/\n--rw-r--r-- 0 root (0) root (0) 15570 2021-01-03 15:26:07.000000 ./usr/share/doc/libsilly-doc/html/a00002_source.html\n--rw-r--r-- 0 root (0) root (0) 10691 2021-01-03 15:26:07.000000 ./usr/share/doc/libsilly-doc/html/a00005_source.html\n+-rw-r--r-- 0 root (0) root (0) 10691 2021-01-03 15:26:07.000000 ./usr/share/doc/libsilly-doc/html/a00002_source.html\n+-rw-r--r-- 0 root (0) root (0) 35541 2021-01-03 15:26:07.000000 ./usr/share/doc/libsilly-doc/html/a00005_source.html\n -rw-r--r-- 0 root (0) root (0) 21186 2021-01-03 15:26:07.000000 ./usr/share/doc/libsilly-doc/html/a00008_source.html\n -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\n--rw-r--r-- 0 root (0) root (0) 35541 2021-01-03 15:26:07.000000 ./usr/share/doc/libsilly-doc/html/a00014_source.html\n+-rw-r--r-- 0 root (0) root (0) 15570 2021-01-03 15:26:07.000000 ./usr/share/doc/libsilly-doc/html/a00014_source.html\n -rw-r--r-- 0 root (0) root (0) 28390 2021-01-03 15:26:07.000000 ./usr/share/doc/libsilly-doc/html/a00017_source.html\n--rw-r--r-- 0 root (0) root (0) 12053 2021-01-03 15:26:07.000000 ./usr/share/doc/libsilly-doc/html/a00020_source.html\n--rw-r--r-- 0 root (0) root (0) 22457 2021-01-03 15:26:07.000000 ./usr/share/doc/libsilly-doc/html/a00023_source.html\n--rw-r--r-- 0 root (0) root (0) 17157 2021-01-03 15:26:07.000000 ./usr/share/doc/libsilly-doc/html/a00026_source.html\n--rw-r--r-- 0 root (0) root (0) 15811 2021-01-03 15:26:07.000000 ./usr/share/doc/libsilly-doc/html/a00029_source.html\n--rw-r--r-- 0 root (0) root (0) 10528 2021-01-03 15:26:07.000000 ./usr/share/doc/libsilly-doc/html/a00032_source.html\n--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\n--rw-r--r-- 0 root (0) root (0) 23008 2021-01-03 15:26:07.000000 ./usr/share/doc/libsilly-doc/html/a00038_source.html\n--rw-r--r-- 0 root (0) root (0) 15219 2021-01-03 15:26:07.000000 ./usr/share/doc/libsilly-doc/html/a00041_source.html\n--rw-r--r-- 0 root (0) root (0) 14655 2021-01-03 15:26:07.000000 ./usr/share/doc/libsilly-doc/html/a00044_source.html\n--rw-r--r-- 0 root (0) root (0) 18660 2021-01-03 15:26:07.000000 ./usr/share/doc/libsilly-doc/html/a00047_source.html\n--rw-r--r-- 0 root (0) root (0) 15713 2021-01-03 15:26:07.000000 ./usr/share/doc/libsilly-doc/html/a00050_source.html\n--rw-r--r-- 0 root (0) root (0) 7622 2021-01-03 15:26:07.000000 ./usr/share/doc/libsilly-doc/html/a00053_source.html\n--rw-r--r-- 0 root (0) root (0) 16111 2021-01-03 15:26:07.000000 ./usr/share/doc/libsilly-doc/html/a00056_source.html\n--rw-r--r-- 0 root (0) root (0) 7621 2021-01-03 15:26:07.000000 ./usr/share/doc/libsilly-doc/html/a00059_source.html\n--rw-r--r-- 0 root (0) root (0) 8505 2021-01-03 15:26:07.000000 ./usr/share/doc/libsilly-doc/html/a00062_source.html\n--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\n--rw-r--r-- 0 root (0) root (0) 7626 2021-01-03 15:26:07.000000 ./usr/share/doc/libsilly-doc/html/a00068_source.html\n--rw-r--r-- 0 root (0) root (0) 15428 2021-01-03 15:26:07.000000 ./usr/share/doc/libsilly-doc/html/a00071_source.html\n--rw-r--r-- 0 root (0) root (0) 7631 2021-01-03 15:26:07.000000 ./usr/share/doc/libsilly-doc/html/a00074_source.html\n--rw-r--r-- 0 root (0) root (0) 13542 2021-01-03 15:26:07.000000 ./usr/share/doc/libsilly-doc/html/a00077_source.html\n--rw-r--r-- 0 root (0) root (0) 15585 2021-01-03 15:26:07.000000 ./usr/share/doc/libsilly-doc/html/a00080_source.html\n--rw-r--r-- 0 root (0) root (0) 7626 2021-01-03 15:26:07.000000 ./usr/share/doc/libsilly-doc/html/a00083_source.html\n--rw-r--r-- 0 root (0) root (0) 18236 2021-01-03 15:26:07.000000 ./usr/share/doc/libsilly-doc/html/a00086_source.html\n--rw-r--r-- 0 root (0) root (0) 9011 2021-01-03 15:26:07.000000 ./usr/share/doc/libsilly-doc/html/a00089_source.html\n--rw-r--r-- 0 root (0) root (0) 14015 2021-01-03 15:26:07.000000 ./usr/share/doc/libsilly-doc/html/a00092_source.html\n--rw-r--r-- 0 root (0) root (0) 8597 2021-01-03 15:26:07.000000 ./usr/share/doc/libsilly-doc/html/a00095_source.html\n--rw-r--r-- 0 root (0) root (0) 23209 2021-01-03 15:26:07.000000 ./usr/share/doc/libsilly-doc/html/a00098_source.html\n--rw-r--r-- 0 root (0) root (0) 8701 2021-01-03 15:26:07.000000 ./usr/share/doc/libsilly-doc/html/a00101_source.html\n--rw-r--r-- 0 root (0) root (0) 17896 2021-01-03 15:26:07.000000 ./usr/share/doc/libsilly-doc/html/a00104_source.html\n--rw-r--r-- 0 root (0) root (0) 10562 2021-01-03 15:26:07.000000 ./usr/share/doc/libsilly-doc/html/a00107_source.html\n--rw-r--r-- 0 root (0) root (0) 13435 2021-01-03 15:26:07.000000 ./usr/share/doc/libsilly-doc/html/a00110_source.html\n--rw-r--r-- 0 root (0) root (0) 8592 2021-01-03 15:26:07.000000 ./usr/share/doc/libsilly-doc/html/a00113_source.html\n--rw-r--r-- 0 root (0) root (0) 8998 2021-01-03 15:26:07.000000 ./usr/share/doc/libsilly-doc/html/a00116_source.html\n--rw-r--r-- 0 root (0) root (0) 12721 2021-01-03 15:26:07.000000 ./usr/share/doc/libsilly-doc/html/a00119_source.html\n--rw-r--r-- 0 root (0) root (0) 10525 2021-01-03 15:26:07.000000 ./usr/share/doc/libsilly-doc/html/a00122_source.html\n--rw-r--r-- 0 root (0) root (0) 17143 2021-01-03 15:26:07.000000 ./usr/share/doc/libsilly-doc/html/a00125_source.html\n+-rw-r--r-- 0 root (0) root (0) 10528 2021-01-03 15:26:07.000000 ./usr/share/doc/libsilly-doc/html/a00020_source.html\n+-rw-r--r-- 0 root (0) root (0) 17157 2021-01-03 15:26:07.000000 ./usr/share/doc/libsilly-doc/html/a00023_source.html\n+-rw-r--r-- 0 root (0) root (0) 23008 2021-01-03 15:26:07.000000 ./usr/share/doc/libsilly-doc/html/a00026_source.html\n+-rw-r--r-- 0 root (0) root (0) 12316 2021-01-03 15:26:07.000000 ./usr/share/doc/libsilly-doc/html/a00029_source.html\n+-rw-r--r-- 0 root (0) root (0) 22457 2021-01-03 15:26:07.000000 ./usr/share/doc/libsilly-doc/html/a00032_source.html\n+-rw-r--r-- 0 root (0) root (0) 12053 2021-01-03 15:26:07.000000 ./usr/share/doc/libsilly-doc/html/a00035_source.html\n+-rw-r--r-- 0 root (0) root (0) 15811 2021-01-03 15:26:07.000000 ./usr/share/doc/libsilly-doc/html/a00038_source.html\n+-rw-r--r-- 0 root (0) root (0) 13435 2021-01-03 15:26:07.000000 ./usr/share/doc/libsilly-doc/html/a00041_source.html\n+-rw-r--r-- 0 root (0) root (0) 8597 2021-01-03 15:26:07.000000 ./usr/share/doc/libsilly-doc/html/a00044_source.html\n+-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\n+-rw-r--r-- 0 root (0) root (0) 7622 2021-01-03 15:26:07.000000 ./usr/share/doc/libsilly-doc/html/a00050_source.html\n+-rw-r--r-- 0 root (0) root (0) 15713 2021-01-03 15:26:07.000000 ./usr/share/doc/libsilly-doc/html/a00053_source.html\n+-rw-r--r-- 0 root (0) root (0) 13542 2021-01-03 15:26:07.000000 ./usr/share/doc/libsilly-doc/html/a00056_source.html\n+-rw-r--r-- 0 root (0) root (0) 16111 2021-01-03 15:26:07.000000 ./usr/share/doc/libsilly-doc/html/a00059_source.html\n+-rw-r--r-- 0 root (0) root (0) 7626 2021-01-03 15:26:07.000000 ./usr/share/doc/libsilly-doc/html/a00062_source.html\n+-rw-r--r-- 0 root (0) root (0) 7631 2021-01-03 15:26:07.000000 ./usr/share/doc/libsilly-doc/html/a00065_source.html\n+-rw-r--r-- 0 root (0) root (0) 14670 2021-01-03 15:26:07.000000 ./usr/share/doc/libsilly-doc/html/a00068_source.html\n+-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\n+-rw-r--r-- 0 root (0) root (0) 15585 2021-01-03 15:26:07.000000 ./usr/share/doc/libsilly-doc/html/a00074_source.html\n+-rw-r--r-- 0 root (0) root (0) 8505 2021-01-03 15:26:07.000000 ./usr/share/doc/libsilly-doc/html/a00077_source.html\n+-rw-r--r-- 0 root (0) root (0) 15428 2021-01-03 15:26:07.000000 ./usr/share/doc/libsilly-doc/html/a00080_source.html\n+-rw-r--r-- 0 root (0) root (0) 7621 2021-01-03 15:26:07.000000 ./usr/share/doc/libsilly-doc/html/a00083_source.html\n+-rw-r--r-- 0 root (0) root (0) 15219 2021-01-03 15:26:07.000000 ./usr/share/doc/libsilly-doc/html/a00086_source.html\n+-rw-r--r-- 0 root (0) root (0) 14015 2021-01-03 15:26:07.000000 ./usr/share/doc/libsilly-doc/html/a00089_source.html\n+-rw-r--r-- 0 root (0) root (0) 23209 2021-01-03 15:26:07.000000 ./usr/share/doc/libsilly-doc/html/a00092_source.html\n+-rw-r--r-- 0 root (0) root (0) 8592 2021-01-03 15:26:07.000000 ./usr/share/doc/libsilly-doc/html/a00095_source.html\n+-rw-r--r-- 0 root (0) root (0) 17896 2021-01-03 15:26:07.000000 ./usr/share/doc/libsilly-doc/html/a00098_source.html\n+-rw-r--r-- 0 root (0) root (0) 10562 2021-01-03 15:26:07.000000 ./usr/share/doc/libsilly-doc/html/a00101_source.html\n+-rw-r--r-- 0 root (0) root (0) 8998 2021-01-03 15:26:07.000000 ./usr/share/doc/libsilly-doc/html/a00104_source.html\n+-rw-r--r-- 0 root (0) root (0) 14655 2021-01-03 15:26:07.000000 ./usr/share/doc/libsilly-doc/html/a00107_source.html\n+-rw-r--r-- 0 root (0) root (0) 18660 2021-01-03 15:26:07.000000 ./usr/share/doc/libsilly-doc/html/a00110_source.html\n+-rw-r--r-- 0 root (0) root (0) 12721 2021-01-03 15:26:07.000000 ./usr/share/doc/libsilly-doc/html/a00113_source.html\n+-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\n+-rw-r--r-- 0 root (0) root (0) 17143 2021-01-03 15:26:07.000000 ./usr/share/doc/libsilly-doc/html/a00119_source.html\n+-rw-r--r-- 0 root (0) root (0) 8701 2021-01-03 15:26:07.000000 ./usr/share/doc/libsilly-doc/html/a00122_source.html\n+-rw-r--r-- 0 root (0) root (0) 9011 2021-01-03 15:26:07.000000 ./usr/share/doc/libsilly-doc/html/a00125_source.html\n -rw-r--r-- 0 root (0) root (0) 32596 2021-01-03 15:26:07.000000 ./usr/share/doc/libsilly-doc/html/a00129.html\n -rw-r--r-- 0 root (0) root (0) 6963 2021-01-03 15:26:07.000000 ./usr/share/doc/libsilly-doc/html/a00942.html\n -rw-r--r-- 0 root (0) root (0) 17148 2021-01-03 15:26:07.000000 ./usr/share/doc/libsilly-doc/html/a00943.png\n -rw-r--r-- 0 root (0) root (0) 4253 2021-01-03 15:26:07.000000 ./usr/share/doc/libsilly-doc/html/a00944.png\n -rw-r--r-- 0 root (0) root (0) 18861 2021-01-03 15:26:07.000000 ./usr/share/doc/libsilly-doc/html/a00945.html\n -rw-r--r-- 0 root (0) root (0) 4475 2021-01-03 15:26:07.000000 ./usr/share/doc/libsilly-doc/html/a00946.html\n -rw-r--r-- 0 root (0) root (0) 3277 2021-01-03 15:26:07.000000 ./usr/share/doc/libsilly-doc/html/a00947.png\n"}, {"source1": "./usr/share/doc/libsilly-doc/html/a00002_source.html", "source2": "./usr/share/doc/libsilly-doc/html/a00002_source.html", "unified_diff": "@@ -1,15 +1,15 @@\n \n \n \n \n \n \n \n-Simple Image Loading LibrarY: /build/reproducible-path/silly-0.1.0/src/loaders/SILLYPNGImageContext.cpp Source File\n+Simple Image Loading LibrarY: /build/reproducible-path/silly-0.1.0/src/loaders/SILLYTGAImageContext.cpp Source File\n \n \n \n \n \n \n
\n@@ -39,23 +39,23 @@\n
\n
\n \n
\n
\n
\n-
SILLYPNGImageContext.cpp
\n+
SILLYTGAImageContext.cpp
\n
\n
\n
1/***********************************************************************
\n-
2 filename: SILLYPNGImageContext.cpp
\n+
2 filename: SILLYTGAImageContext.cpp
\n
3 created: 11 Jun 2006
\n
4 author: Olivier Delannoy
\n
5
\n-
6 purpose: Definition of PNGImageContext methods
\n+
6 purpose: Definition of the TGAImageContext methods
\n
7*************************************************************************/
\n
8/***************************************************************************
\n
9 * Copyright (C) 2004 - 2006 Paul D Turner & The CEGUI Development Team
\n
10 *
\n
11 * Permission is hereby granted, free of charge, to any person obtaining
\n
12 * a copy of this software and associated documentation files (the
\n
13 * "Software"), to deal in the Software without restriction, including
\n@@ -75,66 +75,31 @@\n
27 * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
\n
28 * OTHER DEALINGS IN THE SOFTWARE.
\n
29 ***************************************************************************/
\n
30#ifdef HAVE_CONFIG_H
\n
31#include <config.h>
\n
32#endif
\n
33
\n-
34#include "loaders/SILLYPNGImageContext.h"
\n+
34#include "loaders/SILLYTGAImageContext.h"
\n
35
\n
36#ifndef SILLY_OPT_INLINE
\n
37#define inline
\n-
38#include "loaders/SILLYPNGImageContext.icpp"
\n+
38#include "loaders/SILLYTGAImageContext.icpp"
\n
39#undef inline
\n-
40#endif
\n-
41#include <string.h>
\n-
42
\n+
40#endif
\n+
41#include <cstring>
\n+
42#include <cstdio>
\n
43// Start section of namespace SILLY
\n
44namespace SILLY
\n
45{
\n-
46int PNGImageContext::read(png_bytep data, png_size_t length)
\n-
47{
\n-
48 //printf("PNG Read: %d bytes offset: %d, size %d\\n",
\n-
49 // length, d_offset, d_data->getSize());
\n-
50
\n-
51 if (d_offset + length > d_data->getSize())
\n-
52 return -1;
\n-
53 memcpy(data, d_data->getDataPtr() + d_offset, length);
\n-
54 d_offset += length;
\n-
55 return length;
\n-
56}
\n-
57
\n-
58
\n-
59PNGImageContext::PNGImageContext(DataSource* data)
\n-
60 : ImageContext(0,0), d_offset(0), d_data(data), d_png_ptr(0), d_info_ptr(0)
\n-
61{
\n-
62
\n-
63}
\n-
64
\n-
65PNGImageContext::~PNGImageContext()
\n-
66{
\n-
67 if (d_info_ptr)
\n-
68 png_destroy_read_struct(&d_png_ptr, &d_info_ptr, 0);
\n-
69 if (d_png_ptr)
\n-
70 png_destroy_read_struct(&d_png_ptr, 0, 0);
\n-
71}
\n-
72
\n-
73
\n-
74void PNGImageContext::setImageSize()
\n-
75{
\n-
76 setWidth(png_get_image_width(d_png_ptr, d_info_ptr));
\n-
77 setHeight(png_get_image_height(d_png_ptr, d_info_ptr));
\n-
78
\n-
79}
\n-
80
\n-
81
\n-
82} // End section of namespace SILLY
\n+
46
\n+
47
\n+
48
\n+
49} // End section of namespace SILLY
\n
Simple Image Loading LibrarY namespace.
\n-
virtual size_t getSize() const =0
Return the size of the data.
\n-
virtual const byte * getDataPtr() const =0
Get raw access to the image data.
\n
\n \n
\n Generated by \"doxygen\"/ 1.9.4\n
\n \n \n", "details": [{"source1": "html2text {}", "source2": "html2text {}", "unified_diff": "@@ -5,21 +5,21 @@\n Simple Image Loading LibrarY\u00a00.1.0\n \n * build\n * reproducible-path\n * silly-0.1.0\n * src\n * loaders\n-SILLYPNGImageContext.cpp\n+SILLYTGAImageContext.cpp\n 1/***********************************************************************\n- 2 filename: SILLYPNGImageContext.cpp\n+ 2 filename: SILLYTGAImageContext.cpp\n 3 created: 11 Jun 2006\n 4 author: Olivier Delannoy\n 5\n- 6 purpose: Definition of PNGImageContext methods\n+ 6 purpose: Definition of the TGAImageContext methods\n 7*************************************************************************/\n 8/***************************************************************************\n 9 * Copyright (C) 2004 - 2006 Paul D Turner & The CEGUI Development Team\n 10 *\n 11 * Permission is hereby granted, free of charge, to any person obtaining\n 12 * a copy of this software and associated documentation files (the\n 13 * \"Software\"), to deal in the Software without restriction, including\n@@ -40,68 +40,29 @@\n 28 * OTHER DEALINGS IN THE SOFTWARE.\n 29\n ***************************************************************************/\n 30#ifdef HAVE_CONFIG_H\n 31#include \n 32#endif\n 33\n- 34#include \"loaders/SILLYPNGImageContext.h\"\n+ 34#include \"loaders/SILLYTGAImageContext.h\"\n 35\n 36#ifndef SILLY_OPT_INLINE\n 37#define inline\n- 38#include \"loaders/SILLYPNGImageContext.icpp\"\n+ 38#include \"loaders/SILLYTGAImageContext.icpp\"\n 39#undef inline\n 40#endif\n- 41#include \n- 42\n+ 41#include \n+ 42#include \n 43// Start section of namespace SILLY\n 44namespace SILLY\n 45{\n- 46int PNGImageContext::read(png_bytep data, png_size_t length)\n- 47{\n- 48 //printf(\"PNG Read: %d bytes offset: %d, size %d\\n\",\n- 49 // length, d_offset, d_data->getSize());\n- 50\n- 51 if (d_offset + length > d_data->getSize())\n- 52 return -1;\n- 53 memcpy(data, d_data->getDataPtr() + d_offset, length);\n- 54 d_offset += length;\n- 55 return length;\n- 56}\n- 57\n- 58\n- 59PNGImageContext::PNGImageContext(DataSource* data)\n- 60 : ImageContext(0,0), d_offset(0), d_data(data), d_png_ptr(0), d_info_ptr(0)\n- 61{\n- 62\n- 63}\n- 64\n- 65PNGImageContext::~PNGImageContext()\n- 66{\n- 67 if (d_info_ptr)\n- 68 png_destroy_read_struct(&d_png_ptr, &d_info_ptr, 0);\n- 69 if (d_png_ptr)\n- 70 png_destroy_read_struct(&d_png_ptr, 0, 0);\n- 71}\n- 72\n- 73\n- 74void PNGImageContext::setImageSize()\n- 75{\n- 76 setWidth(png_get_image_width(d_png_ptr, d_info_ptr));\n- 77 setHeight(png_get_image_height(d_png_ptr, d_info_ptr));\n- 78\n- 79}\n- 80\n- 81\n- 82} // End section of namespace SILLY\n+ 46\n+ 47\n+ 48\n+ 49} // End section of namespace SILLY\n SILLY\n Simple Image Loading LibrarY namespace.\n Definition: SILLYJPGImageContext.cpp:46\n-SILLY::DataSource::getSize\n-virtual size_t getSize() const =0\n-Return the size of the data.\n-SILLY::DataSource::getDataPtr\n-virtual const byte * getDataPtr() const =0\n-Get raw access to the image data.\n \n ===============================================================================\n Generated by\u00a0[doxygen] 1.9.4\n"}]}, {"source1": "./usr/share/doc/libsilly-doc/html/a00005_source.html", "source2": "./usr/share/doc/libsilly-doc/html/a00005_source.html", "unified_diff": "@@ -1,15 +1,15 @@\n \n \n \n \n \n \n \n-Simple Image Loading LibrarY: /build/reproducible-path/silly-0.1.0/src/loaders/SILLYTGAImageContext.cpp Source File\n+Simple Image Loading LibrarY: /build/reproducible-path/silly-0.1.0/src/loaders/SILLYPNGImageLoader.cpp Source File\n \n \n \n \n \n \n
\n@@ -39,23 +39,23 @@\n
\n \n
\n
\n-
SILLYTGAImageContext.cpp
\n+
SILLYPNGImageLoader.cpp
\n
\n
\n
1/***********************************************************************
\n-
2 filename: SILLYTGAImageContext.cpp
\n+
2 filename: SILLYPNGImageLoader.cpp
\n
3 created: 11 Jun 2006
\n-
4 author: Olivier Delannoy
\n+
4 author: Olivier Delannoy
\n
5
\n-
6 purpose: Definition of the TGAImageContext methods
\n+
6 purpose: Definition of the PNGImageLoader methods
\n
7*************************************************************************/
\n
8/***************************************************************************
\n
9 * Copyright (C) 2004 - 2006 Paul D Turner & The CEGUI Development Team
\n
10 *
\n
11 * Permission is hereby granted, free of charge, to any person obtaining
\n
12 * a copy of this software and associated documentation files (the
\n
13 * "Software"), to deal in the Software without restriction, including
\n@@ -73,33 +73,198 @@\n
25 * IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR
\n
26 * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
\n
27 * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
\n
28 * OTHER DEALINGS IN THE SOFTWARE.
\n
29 ***************************************************************************/
\n
30#ifdef HAVE_CONFIG_H
\n
31#include <config.h>
\n-
32#endif
\n-
33
\n-
34#include "loaders/SILLYTGAImageContext.h"
\n-
35
\n-
36#ifndef SILLY_OPT_INLINE
\n-
37#define inline
\n-
38#include "loaders/SILLYTGAImageContext.icpp"
\n-
39#undef inline
\n-
40#endif
\n-
41#include <cstring>
\n-
42#include <cstdio>
\n-
43// Start section of namespace SILLY
\n-
44namespace SILLY
\n-
45{
\n-
46
\n-
47
\n-
48
\n-
49} // End section of namespace SILLY
\n+
32#include <string.h>
\n+
33#endif
\n+
34
\n+
35#include "loaders/SILLYPNGImageLoader.h"
\n+
36
\n+
37#ifndef SILLY_OPT_INLINE
\n+
38#define inline
\n+
39#include "loaders/SILLYPNGImageLoader.icpp"
\n+
40#undef inline
\n+
41#endif
\n+
42
\n+
43#include "loaders/SILLYPNGImageContext.h"
\n+
44#include <png.h>
\n+
45// Start section of namespace SILLY
\n+
46namespace SILLY
\n+
47{
\n+
48void PNG_read_function(png_structp png_ptr, png_bytep data, png_size_t length)
\n+
49{
\n+
50 PNGImageContext* png = reinterpret_cast<PNGImageContext*>(png_get_io_ptr(png_ptr));
\n+
51 int readed = png->read(data, length);
\n+
52 if (readed != (int)length)
\n+
53 {
\n+
54 png_error(png_ptr, "PNG_read_function error");
\n+
55 }
\n+
56}
\n+
57
\n+
58void PNG_warning_function(png_structp png_ptr,
\n+
59 png_const_charp error)
\n+
60{
\n+
61// printf("PNG Warning: %s\\n", error);
\n+
62}
\n+
63
\n+
64void PNG_error_function(png_structp png_ptr,
\n+
65 png_const_charp error)
\n+
66{
\n+
67 // printf("PNG Error: %s\\n", error);
\n+
68 // copied from libpng's pngerror.cpp
\n+
69 jmp_buf buf;
\n+
70#if PNG_LIBPNG_VER_MAJOR >= 1 && PNG_LIBPNG_VER_MINOR >= 4
\n+
71 memcpy(buf, png_jmpbuf((png_ptr)), sizeof(jmp_buf));
\n+
72#else
\n+
73 memcpy(buf, png_ptr->jmpbuf, sizeof(jmp_buf));
\n+
74#endif
\n+
75 longjmp(buf, 1);
\n+
76}
\n+
77
\n+
78
\n+
79PNGImageLoader::PNGImageLoader()
\n+
80 : ImageLoader("PNG Image Loader based on libpng")
\n+
81{
\n+
82}
\n+
83PNGImageLoader::~PNGImageLoader()
\n+
84{
\n+
85}
\n+
86
\n+
87
\n+
88ImageContext* PNGImageLoader::loadHeader(PixelFormat& formatSource, DataSource* data)
\n+
89{
\n+
90 PNGImageContext* png = new PNGImageContext(data);
\n+
91 if (!png)
\n+
92 {
\n+
93 return 0;
\n+
94
\n+
95 }
\n+
96 // Prepare png loading
\n+
97 png->d_png_ptr = png_create_read_struct(PNG_LIBPNG_VER_STRING, 0, 0, 0);
\n+
98 if (png->d_png_ptr == 0)
\n+
99 {
\n+
100 delete png;
\n+
101 return 0;
\n+
102 }
\n+
103 png->d_info_ptr = png_create_info_struct(png->d_png_ptr);
\n+
104 if (png->d_info_ptr == 0)
\n+
105 {
\n+
106 delete png;
\n+
107 return 0;
\n+
108 }
\n+
109 if (setjmp(png_jmpbuf(png->d_png_ptr)))
\n+
110 {
\n+
111 delete png;
\n+
112 return 0;
\n+
113 }
\n+
114 png_set_error_fn(png->d_png_ptr, 0, PNG_error_function, PNG_warning_function);
\n+
115 png_set_read_fn(png->d_png_ptr, png, PNG_read_function);
\n+
116 //png_set_sig_bytes(png->d_png_ptr, 8);
\n+
117
\n+
118
\n+
119
\n+
120 // Read header Check whether PNG can depaletize transparently or not
\n+
121 int png_transform = PNG_TRANSFORM_STRIP_16 | PNG_TRANSFORM_EXPAND;
\n+
122 //printf("Start reading png\\n");
\n+
123 png_read_png(png->d_png_ptr, png->d_info_ptr, png_transform, 0);
\n+
124 png->setImageSize();
\n+
125 png->d_bit_depth = png_get_bit_depth(png->d_png_ptr, png->d_info_ptr);
\n+
126 png->d_num_channels = png_get_channels(png->d_png_ptr, png->d_info_ptr);
\n+
127 //printf("PNG Info: width: %d height: %d bpp: %d channels: %d\\n", png->getWidth(), png->getHeight(), png->d_bit_depth, png->d_num_channels);
\n+
128 if (png->d_bit_depth == 8)
\n+
129 {
\n+
130 if (png->d_num_channels == 4)
\n+
131 {
\n+
132 formatSource = PF_RGBA;
\n+
133 }
\n+
134 else if (png->d_num_channels == 3)
\n+
135 {
\n+
136 formatSource = PF_RGB;
\n+
137 }
\n+
138 else
\n+
139 {
\n+
140 delete png;
\n+
141 return 0;
\n+
142 }
\n+
143 }
\n+
144 // Paletized or grayscale not yet handled
\n+
145 else
\n+
146 {
\n+
147 delete png;
\n+
148 return 0;
\n+
149 }
\n+
150 return png;
\n+
151}
\n+
152
\n+
153
\n+
154bool PNGImageLoader::loadImageData(PixelOrigin origin,
\n+
155 DataSource* data,
\n+
156 ImageContext* context)
\n+
157{
\n+
158 PNGImageContext* png = static_cast<PNGImageContext*>(context);
\n+
159 byte red;
\n+
160 byte green;
\n+
161 byte blue;
\n+
162 byte alpha;
\n+
163 size_t width = png->getWidth();
\n+
164 size_t height = png->getHeight();
\n+
165 png_bytepp row_pointers = png_get_rows(png->d_png_ptr, png->d_info_ptr);
\n+
166 if (png->d_bit_depth == 8)
\n+
167 {
\n+
168 // Read RGBA
\n+
169 if (png->d_num_channels == 4)
\n+
170 {
\n+
171 for (size_t j = 0 ; j < height ; ++j)
\n+
172 {
\n+
173 for(size_t i = 0 ; i < width ; ++i)
\n+
174 {
\n+
175 size_t pixel_offset = 4 * i;
\n+
176 red = *(row_pointers[j] + pixel_offset);
\n+
177 green = *(row_pointers[j] + pixel_offset + 1);
\n+
178 blue = *(row_pointers[j] + pixel_offset + 2);
\n+
179 alpha = *(row_pointers[j] + pixel_offset + 3);
\n+
180 png->setNextPixel(red, green, blue, alpha);
\n+
181 }
\n+
182 }
\n+
183 }
\n+
184 else if (png->d_num_channels == 3)
\n+
185 {
\n+
186 alpha = 0xff;
\n+
187 for (size_t j = 0 ; j < height ; ++j)
\n+
188 {
\n+
189 for(size_t i = 0 ; i < width ; ++i)
\n+
190 {
\n+
191 size_t pixel_offset = 3 * i;
\n+
192 red = *(row_pointers[j] + pixel_offset);
\n+
193 green = *(row_pointers[j] + pixel_offset + 1);
\n+
194 blue = *(row_pointers[j] + pixel_offset + 2);
\n+
195 png->setNextPixel(red, green, blue, alpha);
\n+
196 }
\n+
197 }
\n+
198
\n+
199 }
\n+
200 }
\n+
201 if (origin == PO_BOTTOM_LEFT)
\n+
202 return png->flipVertically();
\n+
203
\n+
204 return true;
\n+
205}
\n+
206
\n+
207} // End section of namespace SILLY
\n
Simple Image Loading LibrarY namespace.
\n+
PixelFormat
List all pixel format supported.
Definition: SILLYBase.h:60
\n+
PixelOrigin
List all pixel origin supported.
Definition: SILLYBase.h:71
\n+
Image Context for PNG Image Loader.
\n+
This is an abstract class used to provide data to the loader.
\n+
Store the data needed by an ImageLoader object during the parsing of an image.
\n+
void setNextPixel(byte red, byte green, byte bleu, byte alpha)
Set the next pixel of the image.
\n+
bool flipVertically()
Flip pixel ordering.
\n
\n \n
\n Generated by \"doxygen\"/ 1.9.4\n
\n \n \n", "details": [{"source1": "html2text {}", "source2": "html2text {}", "unified_diff": "@@ -5,21 +5,21 @@\n Simple Image Loading LibrarY\u00a00.1.0\n \n * build\n * reproducible-path\n * silly-0.1.0\n * src\n * loaders\n-SILLYTGAImageContext.cpp\n+SILLYPNGImageLoader.cpp\n 1/***********************************************************************\n- 2 filename: SILLYTGAImageContext.cpp\n+ 2 filename: SILLYPNGImageLoader.cpp\n 3 created: 11 Jun 2006\n 4 author: Olivier Delannoy\n 5\n- 6 purpose: Definition of the TGAImageContext methods\n+ 6 purpose: Definition of the PNGImageLoader methods\n 7*************************************************************************/\n 8/***************************************************************************\n 9 * Copyright (C) 2004 - 2006 Paul D Turner & The CEGUI Development Team\n 10 *\n 11 * Permission is hereby granted, free of charge, to any person obtaining\n 12 * a copy of this software and associated documentation files (the\n 13 * \"Software\"), to deal in the Software without restriction, including\n@@ -38,31 +38,218 @@\n 26 * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,\n 27 * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR\n 28 * OTHER DEALINGS IN THE SOFTWARE.\n 29\n ***************************************************************************/\n 30#ifdef HAVE_CONFIG_H\n 31#include \n- 32#endif\n- 33\n- 34#include \"loaders/SILLYTGAImageContext.h\"\n- 35\n- 36#ifndef SILLY_OPT_INLINE\n- 37#define inline\n- 38#include \"loaders/SILLYTGAImageContext.icpp\"\n- 39#undef inline\n- 40#endif\n- 41#include \n- 42#include \n- 43// Start section of namespace SILLY\n- 44namespace SILLY\n- 45{\n- 46\n- 47\n- 48\n- 49} // End section of namespace SILLY\n+ 32#include \n+ 33#endif\n+ 34\n+ 35#include \"loaders/SILLYPNGImageLoader.h\"\n+ 36\n+ 37#ifndef SILLY_OPT_INLINE\n+ 38#define inline\n+ 39#include \"loaders/SILLYPNGImageLoader.icpp\"\n+ 40#undef inline\n+ 41#endif\n+ 42\n+ 43#include \"loaders/SILLYPNGImageContext.h\"\n+ 44#include \n+ 45// Start section of namespace SILLY\n+ 46namespace SILLY\n+ 47{\n+ 48void PNG_read_function(png_structp png_ptr, png_bytep data, png_size_t\n+length)\n+ 49{\n+ 50 PNGImageContext* png = reinterpret_cast(png_get_io_ptr\n+(png_ptr));\n+ 51 int readed = png->read(data, length);\n+ 52 if (readed != (int)length)\n+ 53 {\n+ 54 png_error(png_ptr, \"PNG_read_function error\");\n+ 55 }\n+ 56}\n+ 57\n+ 58void PNG_warning_function(png_structp png_ptr,\n+ 59 png_const_charp error)\n+ 60{\n+ 61// printf(\"PNG Warning: %s\\n\", error);\n+ 62}\n+ 63\n+ 64void PNG_error_function(png_structp png_ptr,\n+ 65 png_const_charp error)\n+ 66{\n+ 67 // printf(\"PNG Error: %s\\n\", error);\n+ 68 // copied from libpng's pngerror.cpp\n+ 69 jmp_buf buf;\n+ 70#if PNG_LIBPNG_VER_MAJOR >= 1 && PNG_LIBPNG_VER_MINOR >= 4\n+ 71 memcpy(buf, png_jmpbuf((png_ptr)), sizeof(jmp_buf));\n+ 72#else\n+ 73 memcpy(buf, png_ptr->jmpbuf, sizeof(jmp_buf));\n+ 74#endif\n+ 75 longjmp(buf, 1);\n+ 76}\n+ 77\n+ 78\n+ 79PNGImageLoader::PNGImageLoader()\n+ 80 : ImageLoader(\"PNG Image Loader based on libpng\")\n+ 81{\n+ 82}\n+ 83PNGImageLoader::~PNGImageLoader()\n+ 84{\n+ 85}\n+ 86\n+ 87\n+88ImageContext* PNGImageLoader::loadHeader(PixelFormat& formatSource,\n+DataSource* data)\n+ 89{\n+ 90 PNGImageContext* png = new PNGImageContext(data);\n+ 91 if (!png)\n+ 92 {\n+ 93 return 0;\n+ 94\n+ 95 }\n+ 96 // Prepare png loading\n+ 97 png->d_png_ptr = png_create_read_struct(PNG_LIBPNG_VER_STRING, 0, 0, 0);\n+ 98 if (png->d_png_ptr == 0)\n+ 99 {\n+ 100 delete png;\n+ 101 return 0;\n+ 102 }\n+ 103 png->d_info_ptr = png_create_info_struct(png->d_png_ptr);\n+ 104 if (png->d_info_ptr == 0)\n+ 105 {\n+ 106 delete png;\n+ 107 return 0;\n+ 108 }\n+ 109 if (setjmp(png_jmpbuf(png->d_png_ptr)))\n+ 110 {\n+ 111 delete png;\n+ 112 return 0;\n+ 113 }\n+ 114 png_set_error_fn(png->d_png_ptr, 0, PNG_error_function,\n+PNG_warning_function);\n+ 115 png_set_read_fn(png->d_png_ptr, png, PNG_read_function);\n+ 116 //png_set_sig_bytes(png->d_png_ptr, 8);\n+ 117\n+ 118\n+ 119\n+ 120 // Read header Check whether PNG can depaletize transparently or not\n+ 121 int png_transform = PNG_TRANSFORM_STRIP_16 | PNG_TRANSFORM_EXPAND;\n+ 122 //printf(\"Start reading png\\n\");\n+ 123 png_read_png(png->d_png_ptr, png->d_info_ptr, png_transform, 0);\n+ 124 png->setImageSize();\n+ 125 png->d_bit_depth = png_get_bit_depth(png->d_png_ptr, png->d_info_ptr);\n+ 126 png->d_num_channels = png_get_channels(png->d_png_ptr, png->d_info_ptr);\n+ 127 //printf(\"PNG Info: width: %d height: %d bpp: %d channels: %d\\n\", png-\n+>getWidth(), png->getHeight(), png->d_bit_depth, png->d_num_channels);\n+ 128 if (png->d_bit_depth == 8)\n+ 129 {\n+ 130 if (png->d_num_channels == 4)\n+ 131 {\n+ 132 formatSource = PF_RGBA;\n+ 133 }\n+ 134 else if (png->d_num_channels == 3)\n+ 135 {\n+ 136 formatSource = PF_RGB;\n+ 137 }\n+ 138 else\n+ 139 {\n+ 140 delete png;\n+ 141 return 0;\n+ 142 }\n+ 143 }\n+ 144 // Paletized or grayscale not yet handled\n+ 145 else\n+ 146 {\n+ 147 delete png;\n+ 148 return 0;\n+ 149 }\n+ 150 return png;\n+ 151}\n+ 152\n+ 153\n+154bool PNGImageLoader::loadImageData(PixelOrigin origin,\n+ 155 DataSource* data,\n+ 156 ImageContext* context)\n+ 157{\n+ 158 PNGImageContext* png = static_cast(context);\n+ 159 byte red;\n+ 160 byte green;\n+ 161 byte blue;\n+ 162 byte alpha;\n+ 163 size_t width = png->getWidth();\n+ 164 size_t height = png->getHeight();\n+ 165 png_bytepp row_pointers = png_get_rows(png->d_png_ptr, png->d_info_ptr);\n+ 166 if (png->d_bit_depth == 8)\n+ 167 {\n+ 168 // Read RGBA\n+ 169 if (png->d_num_channels == 4)\n+ 170 {\n+ 171 for (size_t j = 0 ; j < height ; ++j)\n+ 172 {\n+ 173 for(size_t i = 0 ; i < width ; ++i)\n+ 174 {\n+ 175 size_t pixel_offset = 4 * i;\n+ 176 red = *(row_pointers[j] + pixel_offset);\n+ 177 green = *(row_pointers[j] + pixel_offset + 1);\n+ 178 blue = *(row_pointers[j] + pixel_offset + 2);\n+ 179 alpha = *(row_pointers[j] + pixel_offset + 3);\n+ 180 png->setNextPixel(red, green, blue, alpha);\n+ 181 }\n+ 182 }\n+ 183 }\n+ 184 else if (png->d_num_channels == 3)\n+ 185 {\n+ 186 alpha = 0xff;\n+ 187 for (size_t j = 0 ; j < height ; ++j)\n+ 188 {\n+ 189 for(size_t i = 0 ; i < width ; ++i)\n+ 190 {\n+ 191 size_t pixel_offset = 3 * i;\n+ 192 red = *(row_pointers[j] + pixel_offset);\n+ 193 green = *(row_pointers[j] + pixel_offset + 1);\n+ 194 blue = *(row_pointers[j] + pixel_offset + 2);\n+ 195 png->setNextPixel(red, green, blue, alpha);\n+ 196 }\n+ 197 }\n+ 198\n+ 199 }\n+ 200 }\n+ 201 if (origin == PO_BOTTOM_LEFT)\n+ 202 return png->flipVertically();\n+ 203\n+ 204 return true;\n+ 205}\n+ 206\n+ 207} // End section of namespace SILLY\n SILLY\n Simple Image Loading LibrarY namespace.\n Definition: SILLYJPGImageContext.cpp:46\n+SILLY::PixelFormat\n+PixelFormat\n+List all pixel format supported.\n+Definition: SILLYBase.h:60\n+SILLY::PixelOrigin\n+PixelOrigin\n+List all pixel origin supported.\n+Definition: SILLYBase.h:71\n+SILLY::PNGImageContext\n+Image Context for PNG Image Loader.\n+Definition: SILLYPNGImageContext.h:46\n+SILLY::DataSource\n+This is an abstract class used to provide data to the loader.\n+Definition: SILLYDataSource.h:47\n+SILLY::ImageContext\n+Store the data needed by an ImageLoader object during the parsing of an image.\n+Definition: SILLYImageContext.h:44\n+SILLY::ImageContext::setNextPixel\n+void setNextPixel(byte red, byte green, byte bleu, byte alpha)\n+Set the next pixel of the image.\n+SILLY::ImageContext::flipVertically\n+bool flipVertically()\n+Flip pixel ordering.\n+Definition: SILLYImageContext.cpp:45\n \n ===============================================================================\n Generated by\u00a0[doxygen] 1.9.4\n"}]}, {"source1": "./usr/share/doc/libsilly-doc/html/a00008_source.html", "source2": "./usr/share/doc/libsilly-doc/html/a00008_source.html", "unified_diff": "@@ -164,18 +164,18 @@\n
116{
\n
117 setWidth(cinfo.output_width);
\n
118 setHeight(cinfo.output_height);
\n
119}
\n
120
\n
121} // End section of namespace SILLY
\n
Simple Image Loading LibrarY namespace.
\n-
Image Context for JPG image loader.
\n+
Image Context for JPG image loader.
\n
virtual size_t getSize() const =0
Return the size of the data.
\n
virtual const byte * getDataPtr() const =0
Get raw access to the image data.
\n-
Store the data needed by an ImageLoader object during the parsing of an image.
\n+
Store the data needed by an ImageLoader object during the parsing of an image.
\n \n \n
\n Generated by \"doxygen\"/ 1.9.4\n
\n \n \n"}, {"source1": "./usr/share/doc/libsilly-doc/html/a00011_source.html", "source2": "./usr/share/doc/libsilly-doc/html/a00011_source.html", "unified_diff": "@@ -362,22 +362,22 @@\n
314 return tga->flipVertically();
\n
315 }
\n
316 return true;
\n
317}
\n
318
\n
319} // End section of namespace SILLY
\n
Simple Image Loading LibrarY namespace.
\n-
PixelFormat
List all pixel format supported.
Definition: SILLYBase.h:60
\n-
PixelOrigin
List all pixel origin supported.
Definition: SILLYBase.h:71
\n-
Image Context for Targa image.
\n-
This is an abstract class used to provide data to the loader.
\n+
PixelFormat
List all pixel format supported.
Definition: SILLYBase.h:60
\n+
PixelOrigin
List all pixel origin supported.
Definition: SILLYBase.h:71
\n+
Image Context for Targa image.
\n+
This is an abstract class used to provide data to the loader.
\n
virtual const byte * getDataPtr() const =0
Get raw access to the image data.
\n-
Store the data needed by an ImageLoader object during the parsing of an image.
\n+
Store the data needed by an ImageLoader object during the parsing of an image.
\n
void setNextPixel(byte red, byte green, byte bleu, byte alpha)
Set the next pixel of the image.
\n-
bool flipVertically()
Flip pixel ordering.
\n+
bool flipVertically()
Flip pixel ordering.
\n \n \n
\n Generated by \"doxygen\"/ 1.9.4\n
\n \n \n"}, {"source1": "./usr/share/doc/libsilly-doc/html/a00014_source.html", "source2": "./usr/share/doc/libsilly-doc/html/a00014_source.html", "unified_diff": "@@ -1,15 +1,15 @@\n \n \n \n \n \n \n \n-Simple Image Loading LibrarY: /build/reproducible-path/silly-0.1.0/src/loaders/SILLYPNGImageLoader.cpp Source File\n+Simple Image Loading LibrarY: /build/reproducible-path/silly-0.1.0/src/loaders/SILLYPNGImageContext.cpp Source File\n \n \n \n \n \n \n
\n@@ -39,23 +39,23 @@\n
\n \n
\n
\n-
SILLYPNGImageLoader.cpp
\n+
SILLYPNGImageContext.cpp
\n
\n
\n
1/***********************************************************************
\n-
2 filename: SILLYPNGImageLoader.cpp
\n+
2 filename: SILLYPNGImageContext.cpp
\n
3 created: 11 Jun 2006
\n-
4 author: Olivier Delannoy
\n+
4 author: Olivier Delannoy
\n
5
\n-
6 purpose: Definition of the PNGImageLoader methods
\n+
6 purpose: Definition of PNGImageContext methods
\n
7*************************************************************************/
\n
8/***************************************************************************
\n
9 * Copyright (C) 2004 - 2006 Paul D Turner & The CEGUI Development Team
\n
10 *
\n
11 * Permission is hereby granted, free of charge, to any person obtaining
\n
12 * a copy of this software and associated documentation files (the
\n
13 * "Software"), to deal in the Software without restriction, including
\n@@ -73,198 +73,68 @@\n
25 * IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR
\n
26 * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
\n
27 * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
\n
28 * OTHER DEALINGS IN THE SOFTWARE.
\n
29 ***************************************************************************/
\n
30#ifdef HAVE_CONFIG_H
\n
31#include <config.h>
\n-
32#include <string.h>
\n-
33#endif
\n-
34
\n-
35#include "loaders/SILLYPNGImageLoader.h"
\n-
36
\n-
37#ifndef SILLY_OPT_INLINE
\n-
38#define inline
\n-
39#include "loaders/SILLYPNGImageLoader.icpp"
\n-
40#undef inline
\n-
41#endif
\n+
32#endif
\n+
33
\n+
34#include "loaders/SILLYPNGImageContext.h"
\n+
35
\n+
36#ifndef SILLY_OPT_INLINE
\n+
37#define inline
\n+
38#include "loaders/SILLYPNGImageContext.icpp"
\n+
39#undef inline
\n+
40#endif
\n+
41#include <string.h>
\n
42
\n-
43#include "loaders/SILLYPNGImageContext.h"
\n-
44#include <png.h>
\n-
45// Start section of namespace SILLY
\n-
46namespace SILLY
\n+
43// Start section of namespace SILLY
\n+
44namespace SILLY
\n+
45{
\n+
46int PNGImageContext::read(png_bytep data, png_size_t length)
\n
47{
\n-
48void PNG_read_function(png_structp png_ptr, png_bytep data, png_size_t length)
\n-
49{
\n-
50 PNGImageContext* png = reinterpret_cast<PNGImageContext*>(png_get_io_ptr(png_ptr));
\n-
51 int readed = png->read(data, length);
\n-
52 if (readed != (int)length)
\n-
53 {
\n-
54 png_error(png_ptr, "PNG_read_function error");
\n-
55 }
\n+
48 //printf("PNG Read: %d bytes offset: %d, size %d\\n",
\n+
49 // length, d_offset, d_data->getSize());
\n+
50
\n+
51 if (d_offset + length > d_data->getSize())
\n+
52 return -1;
\n+
53 memcpy(data, d_data->getDataPtr() + d_offset, length);
\n+
54 d_offset += length;
\n+
55 return length;
\n
56}
\n
57
\n-
58void PNG_warning_function(png_structp png_ptr,
\n-
59 png_const_charp error)
\n-
60{
\n-
61// printf("PNG Warning: %s\\n", error);
\n-
62}
\n-
63
\n-
64void PNG_error_function(png_structp png_ptr,
\n-
65 png_const_charp error)
\n+
58
\n+
59PNGImageContext::PNGImageContext(DataSource* data)
\n+
60 : ImageContext(0,0), d_offset(0), d_data(data), d_png_ptr(0), d_info_ptr(0)
\n+
61{
\n+
62
\n+
63}
\n+
64
\n+
65PNGImageContext::~PNGImageContext()
\n
66{
\n-
67 // printf("PNG Error: %s\\n", error);
\n-
68 // copied from libpng's pngerror.cpp
\n-
69 jmp_buf buf;
\n-
70#if PNG_LIBPNG_VER_MAJOR >= 1 && PNG_LIBPNG_VER_MINOR >= 4
\n-
71 memcpy(buf, png_jmpbuf((png_ptr)), sizeof(jmp_buf));
\n-
72#else
\n-
73 memcpy(buf, png_ptr->jmpbuf, sizeof(jmp_buf));
\n-
74#endif
\n-
75 longjmp(buf, 1);
\n-
76}
\n-
77
\n-
78
\n-
79PNGImageLoader::PNGImageLoader()
\n-
80 : ImageLoader("PNG Image Loader based on libpng")
\n-
81{
\n-
82}
\n-
83PNGImageLoader::~PNGImageLoader()
\n-
84{
\n-
85}
\n-
86
\n-
87
\n-
88ImageContext* PNGImageLoader::loadHeader(PixelFormat& formatSource, DataSource* data)
\n-
89{
\n-
90 PNGImageContext* png = new PNGImageContext(data);
\n-
91 if (!png)
\n-
92 {
\n-
93 return 0;
\n-
94
\n-
95 }
\n-
96 // Prepare png loading
\n-
97 png->d_png_ptr = png_create_read_struct(PNG_LIBPNG_VER_STRING, 0, 0, 0);
\n-
98 if (png->d_png_ptr == 0)
\n-
99 {
\n-
100 delete png;
\n-
101 return 0;
\n-
102 }
\n-
103 png->d_info_ptr = png_create_info_struct(png->d_png_ptr);
\n-
104 if (png->d_info_ptr == 0)
\n-
105 {
\n-
106 delete png;
\n-
107 return 0;
\n-
108 }
\n-
109 if (setjmp(png_jmpbuf(png->d_png_ptr)))
\n-
110 {
\n-
111 delete png;
\n-
112 return 0;
\n-
113 }
\n-
114 png_set_error_fn(png->d_png_ptr, 0, PNG_error_function, PNG_warning_function);
\n-
115 png_set_read_fn(png->d_png_ptr, png, PNG_read_function);
\n-
116 //png_set_sig_bytes(png->d_png_ptr, 8);
\n-
117
\n-
118
\n-
119
\n-
120 // Read header Check whether PNG can depaletize transparently or not
\n-
121 int png_transform = PNG_TRANSFORM_STRIP_16 | PNG_TRANSFORM_EXPAND;
\n-
122 //printf("Start reading png\\n");
\n-
123 png_read_png(png->d_png_ptr, png->d_info_ptr, png_transform, 0);
\n-
124 png->setImageSize();
\n-
125 png->d_bit_depth = png_get_bit_depth(png->d_png_ptr, png->d_info_ptr);
\n-
126 png->d_num_channels = png_get_channels(png->d_png_ptr, png->d_info_ptr);
\n-
127 //printf("PNG Info: width: %d height: %d bpp: %d channels: %d\\n", png->getWidth(), png->getHeight(), png->d_bit_depth, png->d_num_channels);
\n-
128 if (png->d_bit_depth == 8)
\n-
129 {
\n-
130 if (png->d_num_channels == 4)
\n-
131 {
\n-
132 formatSource = PF_RGBA;
\n-
133 }
\n-
134 else if (png->d_num_channels == 3)
\n-
135 {
\n-
136 formatSource = PF_RGB;
\n-
137 }
\n-
138 else
\n-
139 {
\n-
140 delete png;
\n-
141 return 0;
\n-
142 }
\n-
143 }
\n-
144 // Paletized or grayscale not yet handled
\n-
145 else
\n-
146 {
\n-
147 delete png;
\n-
148 return 0;
\n-
149 }
\n-
150 return png;
\n-
151}
\n-
152
\n-
153
\n-
154bool PNGImageLoader::loadImageData(PixelOrigin origin,
\n-
155 DataSource* data,
\n-
156 ImageContext* context)
\n-
157{
\n-
158 PNGImageContext* png = static_cast<PNGImageContext*>(context);
\n-
159 byte red;
\n-
160 byte green;
\n-
161 byte blue;
\n-
162 byte alpha;
\n-
163 size_t width = png->getWidth();
\n-
164 size_t height = png->getHeight();
\n-
165 png_bytepp row_pointers = png_get_rows(png->d_png_ptr, png->d_info_ptr);
\n-
166 if (png->d_bit_depth == 8)
\n-
167 {
\n-
168 // Read RGBA
\n-
169 if (png->d_num_channels == 4)
\n-
170 {
\n-
171 for (size_t j = 0 ; j < height ; ++j)
\n-
172 {
\n-
173 for(size_t i = 0 ; i < width ; ++i)
\n-
174 {
\n-
175 size_t pixel_offset = 4 * i;
\n-
176 red = *(row_pointers[j] + pixel_offset);
\n-
177 green = *(row_pointers[j] + pixel_offset + 1);
\n-
178 blue = *(row_pointers[j] + pixel_offset + 2);
\n-
179 alpha = *(row_pointers[j] + pixel_offset + 3);
\n-
180 png->setNextPixel(red, green, blue, alpha);
\n-
181 }
\n-
182 }
\n-
183 }
\n-
184 else if (png->d_num_channels == 3)
\n-
185 {
\n-
186 alpha = 0xff;
\n-
187 for (size_t j = 0 ; j < height ; ++j)
\n-
188 {
\n-
189 for(size_t i = 0 ; i < width ; ++i)
\n-
190 {
\n-
191 size_t pixel_offset = 3 * i;
\n-
192 red = *(row_pointers[j] + pixel_offset);
\n-
193 green = *(row_pointers[j] + pixel_offset + 1);
\n-
194 blue = *(row_pointers[j] + pixel_offset + 2);
\n-
195 png->setNextPixel(red, green, blue, alpha);
\n-
196 }
\n-
197 }
\n-
198
\n-
199 }
\n-
200 }
\n-
201 if (origin == PO_BOTTOM_LEFT)
\n-
202 return png->flipVertically();
\n-
203
\n-
204 return true;
\n-
205}
\n-
206
\n-
207} // End section of namespace SILLY
\n+
67 if (d_info_ptr)
\n+
68 png_destroy_read_struct(&d_png_ptr, &d_info_ptr, 0);
\n+
69 if (d_png_ptr)
\n+
70 png_destroy_read_struct(&d_png_ptr, 0, 0);
\n+
71}
\n+
72
\n+
73
\n+
74void PNGImageContext::setImageSize()
\n+
75{
\n+
76 setWidth(png_get_image_width(d_png_ptr, d_info_ptr));
\n+
77 setHeight(png_get_image_height(d_png_ptr, d_info_ptr));
\n+
78
\n+
79}
\n+
80
\n+
81
\n+
82} // End section of namespace SILLY
\n
Simple Image Loading LibrarY namespace.
\n-
PixelFormat
List all pixel format supported.
Definition: SILLYBase.h:60
\n-
PixelOrigin
List all pixel origin supported.
Definition: SILLYBase.h:71
\n-
Image Context for PNG Image Loader.
\n-
This is an abstract class used to provide data to the loader.
\n-
Store the data needed by an ImageLoader object during the parsing of an image.
\n-
void setNextPixel(byte red, byte green, byte bleu, byte alpha)
Set the next pixel of the image.
\n-
bool flipVertically()
Flip pixel ordering.
\n+
virtual size_t getSize() const =0
Return the size of the data.
\n+
virtual const byte * getDataPtr() const =0
Get raw access to the image data.
\n
\n \n
\n Generated by \"doxygen\"/ 1.9.4\n
\n \n \n", "details": [{"source1": "html2text {}", "source2": "html2text {}", "unified_diff": "@@ -5,21 +5,21 @@\n Simple Image Loading LibrarY\u00a00.1.0\n \n * build\n * reproducible-path\n * silly-0.1.0\n * src\n * loaders\n-SILLYPNGImageLoader.cpp\n+SILLYPNGImageContext.cpp\n 1/***********************************************************************\n- 2 filename: SILLYPNGImageLoader.cpp\n+ 2 filename: SILLYPNGImageContext.cpp\n 3 created: 11 Jun 2006\n 4 author: Olivier Delannoy\n 5\n- 6 purpose: Definition of the PNGImageLoader methods\n+ 6 purpose: Definition of PNGImageContext methods\n 7*************************************************************************/\n 8/***************************************************************************\n 9 * Copyright (C) 2004 - 2006 Paul D Turner & The CEGUI Development Team\n 10 *\n 11 * Permission is hereby granted, free of charge, to any person obtaining\n 12 * a copy of this software and associated documentation files (the\n 13 * \"Software\"), to deal in the Software without restriction, including\n@@ -38,218 +38,70 @@\n 26 * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,\n 27 * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR\n 28 * OTHER DEALINGS IN THE SOFTWARE.\n 29\n ***************************************************************************/\n 30#ifdef HAVE_CONFIG_H\n 31#include \n- 32#include \n- 33#endif\n- 34\n- 35#include \"loaders/SILLYPNGImageLoader.h\"\n- 36\n- 37#ifndef SILLY_OPT_INLINE\n- 38#define inline\n- 39#include \"loaders/SILLYPNGImageLoader.icpp\"\n- 40#undef inline\n- 41#endif\n+ 32#endif\n+ 33\n+ 34#include \"loaders/SILLYPNGImageContext.h\"\n+ 35\n+ 36#ifndef SILLY_OPT_INLINE\n+ 37#define inline\n+ 38#include \"loaders/SILLYPNGImageContext.icpp\"\n+ 39#undef inline\n+ 40#endif\n+ 41#include \n 42\n- 43#include \"loaders/SILLYPNGImageContext.h\"\n- 44#include \n- 45// Start section of namespace SILLY\n- 46namespace SILLY\n+ 43// Start section of namespace SILLY\n+ 44namespace SILLY\n+ 45{\n+ 46int PNGImageContext::read(png_bytep data, png_size_t length)\n 47{\n- 48void PNG_read_function(png_structp png_ptr, png_bytep data, png_size_t\n-length)\n- 49{\n- 50 PNGImageContext* png = reinterpret_cast(png_get_io_ptr\n-(png_ptr));\n- 51 int readed = png->read(data, length);\n- 52 if (readed != (int)length)\n- 53 {\n- 54 png_error(png_ptr, \"PNG_read_function error\");\n- 55 }\n+ 48 //printf(\"PNG Read: %d bytes offset: %d, size %d\\n\",\n+ 49 // length, d_offset, d_data->getSize());\n+ 50\n+ 51 if (d_offset + length > d_data->getSize())\n+ 52 return -1;\n+ 53 memcpy(data, d_data->getDataPtr() + d_offset, length);\n+ 54 d_offset += length;\n+ 55 return length;\n 56}\n 57\n- 58void PNG_warning_function(png_structp png_ptr,\n- 59 png_const_charp error)\n- 60{\n- 61// printf(\"PNG Warning: %s\\n\", error);\n- 62}\n- 63\n- 64void PNG_error_function(png_structp png_ptr,\n- 65 png_const_charp error)\n+ 58\n+ 59PNGImageContext::PNGImageContext(DataSource* data)\n+ 60 : ImageContext(0,0), d_offset(0), d_data(data), d_png_ptr(0), d_info_ptr(0)\n+ 61{\n+ 62\n+ 63}\n+ 64\n+ 65PNGImageContext::~PNGImageContext()\n 66{\n- 67 // printf(\"PNG Error: %s\\n\", error);\n- 68 // copied from libpng's pngerror.cpp\n- 69 jmp_buf buf;\n- 70#if PNG_LIBPNG_VER_MAJOR >= 1 && PNG_LIBPNG_VER_MINOR >= 4\n- 71 memcpy(buf, png_jmpbuf((png_ptr)), sizeof(jmp_buf));\n- 72#else\n- 73 memcpy(buf, png_ptr->jmpbuf, sizeof(jmp_buf));\n- 74#endif\n- 75 longjmp(buf, 1);\n- 76}\n- 77\n+ 67 if (d_info_ptr)\n+ 68 png_destroy_read_struct(&d_png_ptr, &d_info_ptr, 0);\n+ 69 if (d_png_ptr)\n+ 70 png_destroy_read_struct(&d_png_ptr, 0, 0);\n+ 71}\n+ 72\n+ 73\n+ 74void PNGImageContext::setImageSize()\n+ 75{\n+ 76 setWidth(png_get_image_width(d_png_ptr, d_info_ptr));\n+ 77 setHeight(png_get_image_height(d_png_ptr, d_info_ptr));\n 78\n- 79PNGImageLoader::PNGImageLoader()\n- 80 : ImageLoader(\"PNG Image Loader based on libpng\")\n- 81{\n- 82}\n- 83PNGImageLoader::~PNGImageLoader()\n- 84{\n- 85}\n- 86\n- 87\n-88ImageContext* PNGImageLoader::loadHeader(PixelFormat& formatSource,\n-DataSource* data)\n- 89{\n- 90 PNGImageContext* png = new PNGImageContext(data);\n- 91 if (!png)\n- 92 {\n- 93 return 0;\n- 94\n- 95 }\n- 96 // Prepare png loading\n- 97 png->d_png_ptr = png_create_read_struct(PNG_LIBPNG_VER_STRING, 0, 0, 0);\n- 98 if (png->d_png_ptr == 0)\n- 99 {\n- 100 delete png;\n- 101 return 0;\n- 102 }\n- 103 png->d_info_ptr = png_create_info_struct(png->d_png_ptr);\n- 104 if (png->d_info_ptr == 0)\n- 105 {\n- 106 delete png;\n- 107 return 0;\n- 108 }\n- 109 if (setjmp(png_jmpbuf(png->d_png_ptr)))\n- 110 {\n- 111 delete png;\n- 112 return 0;\n- 113 }\n- 114 png_set_error_fn(png->d_png_ptr, 0, PNG_error_function,\n-PNG_warning_function);\n- 115 png_set_read_fn(png->d_png_ptr, png, PNG_read_function);\n- 116 //png_set_sig_bytes(png->d_png_ptr, 8);\n- 117\n- 118\n- 119\n- 120 // Read header Check whether PNG can depaletize transparently or not\n- 121 int png_transform = PNG_TRANSFORM_STRIP_16 | PNG_TRANSFORM_EXPAND;\n- 122 //printf(\"Start reading png\\n\");\n- 123 png_read_png(png->d_png_ptr, png->d_info_ptr, png_transform, 0);\n- 124 png->setImageSize();\n- 125 png->d_bit_depth = png_get_bit_depth(png->d_png_ptr, png->d_info_ptr);\n- 126 png->d_num_channels = png_get_channels(png->d_png_ptr, png->d_info_ptr);\n- 127 //printf(\"PNG Info: width: %d height: %d bpp: %d channels: %d\\n\", png-\n->getWidth(), png->getHeight(), png->d_bit_depth, png->d_num_channels);\n- 128 if (png->d_bit_depth == 8)\n- 129 {\n- 130 if (png->d_num_channels == 4)\n- 131 {\n- 132 formatSource = PF_RGBA;\n- 133 }\n- 134 else if (png->d_num_channels == 3)\n- 135 {\n- 136 formatSource = PF_RGB;\n- 137 }\n- 138 else\n- 139 {\n- 140 delete png;\n- 141 return 0;\n- 142 }\n- 143 }\n- 144 // Paletized or grayscale not yet handled\n- 145 else\n- 146 {\n- 147 delete png;\n- 148 return 0;\n- 149 }\n- 150 return png;\n- 151}\n- 152\n- 153\n-154bool PNGImageLoader::loadImageData(PixelOrigin origin,\n- 155 DataSource* data,\n- 156 ImageContext* context)\n- 157{\n- 158 PNGImageContext* png = static_cast(context);\n- 159 byte red;\n- 160 byte green;\n- 161 byte blue;\n- 162 byte alpha;\n- 163 size_t width = png->getWidth();\n- 164 size_t height = png->getHeight();\n- 165 png_bytepp row_pointers = png_get_rows(png->d_png_ptr, png->d_info_ptr);\n- 166 if (png->d_bit_depth == 8)\n- 167 {\n- 168 // Read RGBA\n- 169 if (png->d_num_channels == 4)\n- 170 {\n- 171 for (size_t j = 0 ; j < height ; ++j)\n- 172 {\n- 173 for(size_t i = 0 ; i < width ; ++i)\n- 174 {\n- 175 size_t pixel_offset = 4 * i;\n- 176 red = *(row_pointers[j] + pixel_offset);\n- 177 green = *(row_pointers[j] + pixel_offset + 1);\n- 178 blue = *(row_pointers[j] + pixel_offset + 2);\n- 179 alpha = *(row_pointers[j] + pixel_offset + 3);\n- 180 png->setNextPixel(red, green, blue, alpha);\n- 181 }\n- 182 }\n- 183 }\n- 184 else if (png->d_num_channels == 3)\n- 185 {\n- 186 alpha = 0xff;\n- 187 for (size_t j = 0 ; j < height ; ++j)\n- 188 {\n- 189 for(size_t i = 0 ; i < width ; ++i)\n- 190 {\n- 191 size_t pixel_offset = 3 * i;\n- 192 red = *(row_pointers[j] + pixel_offset);\n- 193 green = *(row_pointers[j] + pixel_offset + 1);\n- 194 blue = *(row_pointers[j] + pixel_offset + 2);\n- 195 png->setNextPixel(red, green, blue, alpha);\n- 196 }\n- 197 }\n- 198\n- 199 }\n- 200 }\n- 201 if (origin == PO_BOTTOM_LEFT)\n- 202 return png->flipVertically();\n- 203\n- 204 return true;\n- 205}\n- 206\n- 207} // End section of namespace SILLY\n+ 79}\n+ 80\n+ 81\n+ 82} // End section of namespace SILLY\n SILLY\n Simple Image Loading LibrarY namespace.\n Definition: SILLYJPGImageContext.cpp:46\n-SILLY::PixelFormat\n-PixelFormat\n-List all pixel format supported.\n-Definition: SILLYBase.h:60\n-SILLY::PixelOrigin\n-PixelOrigin\n-List all pixel origin supported.\n-Definition: SILLYBase.h:71\n-SILLY::PNGImageContext\n-Image Context for PNG Image Loader.\n-Definition: SILLYPNGImageContext.h:46\n-SILLY::DataSource\n-This is an abstract class used to provide data to the loader.\n-Definition: SILLYDataSource.h:47\n-SILLY::ImageContext\n-Store the data needed by an ImageLoader object during the parsing of an image.\n-Definition: SILLYImageContext.h:44\n-SILLY::ImageContext::setNextPixel\n-void setNextPixel(byte red, byte green, byte bleu, byte alpha)\n-Set the next pixel of the image.\n-SILLY::ImageContext::flipVertically\n-bool flipVertically()\n-Flip pixel ordering.\n-Definition: SILLYImageContext.cpp:45\n+SILLY::DataSource::getSize\n+virtual size_t getSize() const =0\n+Return the size of the data.\n+SILLY::DataSource::getDataPtr\n+virtual const byte * getDataPtr() const =0\n+Get raw access to the image data.\n \n ===============================================================================\n Generated by\u00a0[doxygen] 1.9.4\n"}]}, {"source1": "./usr/share/doc/libsilly-doc/html/a00017_source.html", "source2": "./usr/share/doc/libsilly-doc/html/a00017_source.html", "unified_diff": "@@ -200,21 +200,21 @@\n
152
\n
153
\n
154
\n
155
\n
156
\n
157} // End section of namespace SILLY
\n
Simple Image Loading LibrarY namespace.
\n-
PixelFormat
List all pixel format supported.
Definition: SILLYBase.h:60
\n-
PixelOrigin
List all pixel origin supported.
Definition: SILLYBase.h:71
\n-
Image Context for JPG image loader.
\n-
This is an abstract class used to provide data to the loader.
\n-
Store the data needed by an ImageLoader object during the parsing of an image.
\n+
PixelFormat
List all pixel format supported.
Definition: SILLYBase.h:60
\n+
PixelOrigin
List all pixel origin supported.
Definition: SILLYBase.h:71
\n+
Image Context for JPG image loader.
\n+
This is an abstract class used to provide data to the loader.
\n+
Store the data needed by an ImageLoader object during the parsing of an image.
\n
void setNextPixel(byte red, byte green, byte bleu, byte alpha)
Set the next pixel of the image.
\n-
bool flipVertically()
Flip pixel ordering.
\n+
bool flipVertically()
Flip pixel ordering.
\n \n \n
\n Generated by \"doxygen\"/ 1.9.4\n
\n \n \n"}, {"source1": "./usr/share/doc/libsilly-doc/html/a00020_source.html", "source2": "./usr/share/doc/libsilly-doc/html/a00020_source.html", "unified_diff": "@@ -1,15 +1,15 @@\n \n \n \n \n \n \n \n-Simple Image Loading LibrarY: /build/reproducible-path/silly-0.1.0/src/SILLYMemoryDataSource.cpp Source File\n+Simple Image Loading LibrarY: /build/reproducible-path/silly-0.1.0/src/SILLYDataSource.cpp Source File\n \n \n \n \n \n \n
\n@@ -39,23 +39,23 @@\n
\n \n
\n
\n-
SILLYMemoryDataSource.cpp
\n+
SILLYDataSource.cpp
\n
\n
\n
1/***********************************************************************
\n-
2 filename: SILLYMemoryDataSource.cpp
\n+
2 filename: SILLYDataSource.cpp
\n
3 created: 10 Jun 2006
\n-
4 author: Olivier Delannoy
\n+
4 author: Olivier Delannoy
\n
5
\n-
6 purpose: SILLYMemoryDataSource definition for the SILLY library
\n+
6 purpose: SILLYDataSource definition for the SILLY library
\n
7*************************************************************************/
\n
8/***************************************************************************
\n
9 * Copyright (C) 2004 - 2006 Paul D Turner & The CEGUI Development Team
\n
10 *
\n
11 * Permission is hereby granted, free of charge, to any person obtaining
\n
12 * a copy of this software and associated documentation files (the
\n
13 * "Software"), to deal in the Software without restriction, including
\n@@ -75,38 +75,32 @@\n
27 * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
\n
28 * OTHER DEALINGS IN THE SOFTWARE.
\n
29 ***************************************************************************/
\n
30#ifdef HAVE_CONFIG_H
\n
31#include <config.h>
\n
32#endif
\n
33
\n-
34#include "SILLYMemoryDataSource.h"
\n+
34#include "SILLYDataSource.h"
\n
35
\n
36#ifndef SILLY_OPT_INLINE
\n
37#define inline
\n-
38#include "SILLYMemoryDataSource.icpp"
\n+
38#include "SILLYDataSource.icpp"
\n
39#undef inline
\n
40#endif
\n
41
\n-
42// Start of SILLY namespace section
\n+
42// Start of SILLY namespace section
\n
43namespace SILLY
\n
44{
\n
45
\n-
46MemoryDataSource::MemoryDataSource(const byte* data, size_t size)
\n-
47 : d_bytes(data), d_size(size)
\n-
48{
\n-
49 assert(data && "ASSERT: data point to an invalid memory");
\n-
50 assert(size && "ASSERT: size is equal to 0");
\n-
51}
\n-
52
\n-
53} // End of SILLY namespace section
\n-
54
\n-
55
\n+
46} // End of SILLY namespace section
\n+
47
\n+
48
\n+
49
\n+
50
\n
Simple Image Loading LibrarY namespace.
\n-
MemoryDataSource(const byte *data, size_t size)
Create a data source from an existing memory area.
\n
\n \n
\n Generated by \"doxygen\"/ 1.9.4\n
\n \n \n", "details": [{"source1": "html2text {}", "source2": "html2text {}", "unified_diff": "@@ -4,21 +4,21 @@\n \n Simple Image Loading LibrarY\u00a00.1.0\n \n * build\n * reproducible-path\n * silly-0.1.0\n * src\n-SILLYMemoryDataSource.cpp\n+SILLYDataSource.cpp\n 1/***********************************************************************\n- 2 filename: SILLYMemoryDataSource.cpp\n+ 2 filename: SILLYDataSource.cpp\n 3 created: 10 Jun 2006\n 4 author: Olivier Delannoy\n 5\n- 6 purpose: SILLYMemoryDataSource definition for the SILLY library\n+ 6 purpose: SILLYDataSource definition for the SILLY library\n 7*************************************************************************/\n 8/***************************************************************************\n 9 * Copyright (C) 2004 - 2006 Paul D Turner & The CEGUI Development Team\n 10 *\n 11 * Permission is hereby granted, free of charge, to any person obtaining\n 12 * a copy of this software and associated documentation files (the\n 13 * \"Software\"), to deal in the Software without restriction, including\n@@ -39,39 +39,30 @@\n 28 * OTHER DEALINGS IN THE SOFTWARE.\n 29\n ***************************************************************************/\n 30#ifdef HAVE_CONFIG_H\n 31#include \n 32#endif\n 33\n- 34#include \"SILLYMemoryDataSource.h\"\n+ 34#include \"SILLYDataSource.h\"\n 35\n 36#ifndef SILLY_OPT_INLINE\n 37#define inline\n- 38#include \"SILLYMemoryDataSource.icpp\"\n+ 38#include \"SILLYDataSource.icpp\"\n 39#undef inline\n 40#endif\n 41\n 42// Start of SILLY namespace section\n 43namespace SILLY\n 44{\n 45\n-46MemoryDataSource::MemoryDataSource(const byte* data, size_t size)\n- 47 : d_bytes(data), d_size(size)\n- 48{\n- 49 assert(data && \"ASSERT: data point to an invalid memory\");\n- 50 assert(size && \"ASSERT: size is equal to 0\");\n- 51}\n- 52\n- 53} // End of SILLY namespace section\n- 54\n- 55\n+ 46} // End of SILLY namespace section\n+ 47\n+ 48\n+ 49\n+ 50\n SILLY\n Simple Image Loading LibrarY namespace.\n Definition: SILLYJPGImageContext.cpp:46\n-SILLY::MemoryDataSource::MemoryDataSource\n-MemoryDataSource(const byte *data, size_t size)\n-Create a data source from an existing memory area.\n-Definition: SILLYMemoryDataSource.cpp:46\n \n ===============================================================================\n Generated by\u00a0[doxygen] 1.9.4\n"}]}, {"source1": "./usr/share/doc/libsilly-doc/html/a00023_source.html", "source2": "./usr/share/doc/libsilly-doc/html/a00023_source.html", "unified_diff": "@@ -1,15 +1,15 @@\n \n \n \n \n \n \n \n-Simple Image Loading LibrarY: /build/reproducible-path/silly-0.1.0/src/SILLYImageLoaderManager.cpp Source File\n+Simple Image Loading LibrarY: /build/reproducible-path/silly-0.1.0/src/SILLYFileDataSource.cpp Source File\n \n \n \n \n \n \n
\n@@ -39,23 +39,23 @@\n
\n \n
\n
\n-
SILLYImageLoaderManager.cpp
\n+
SILLYFileDataSource.cpp
\n
\n
\n
1/***********************************************************************
\n-
2 filename: ImageLoaderManager.cpp
\n-
3 created: 10 Jun 2006
\n+
2 filename: SILLYFileDataSource.cpp
\n+
3 created: 20 Jul 2006
\n
4 author: Olivier Delannoy
\n
5
\n-
6 purpose: Manage the list of existing ImageLoader
\n+
6 purpose: Implementation of the FileDataSource methods
\n
7*************************************************************************/
\n
8/***************************************************************************
\n
9 * Copyright (C) 2004 - 2006 Paul D Turner & The CEGUI Development Team
\n
10 *
\n
11 * Permission is hereby granted, free of charge, to any person obtaining
\n
12 * a copy of this software and associated documentation files (the
\n
13 * "Software"), to deal in the Software without restriction, including
\n@@ -75,101 +75,76 @@\n
27 * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
\n
28 * OTHER DEALINGS IN THE SOFTWARE.
\n
29 ***************************************************************************/
\n
30#ifdef HAVE_CONFIG_H
\n
31#include <config.h>
\n
32#endif
\n
33
\n-
34#include "SILLYImageLoaderManager.h"
\n+
34#include "SILLYFileDataSource.h"
\n
35
\n
36#ifndef SILLY_OPT_INLINE
\n
37#define inline
\n-
38#include "SILLYImageLoaderManager.icpp"
\n+
38#include "SILLYFileDataSource.icpp"
\n
39#undef inline
\n
40#endif
\n-
41#include "SILLYImageLoader.h"
\n-
42#include "loaders/SILLYTGAImageLoader.h"
\n-
43
\n-
44#ifdef SILLY_HAVE_JPG
\n-
45#include "loaders/SILLYJPGImageLoader.h"
\n-
46#endif
\n-
47
\n-
48#ifdef SILLY_HAVE_PNG
\n-
49#include "loaders/SILLYPNGImageLoader.h"
\n-
50#endif
\n-
51
\n-
52// Start of SILLY namespace section
\n-
53namespace SILLY
\n-
54{
\n-
55
\n-
56// we need to do "reference counting" for init/exit to allow silly to be used
\n-
57// from inside multiple independent libraries simultaneously.
\n-
58static size_t silly_init_counter = 0;
\n-
59
\n-
60ImageLoaderManager* ImageLoaderManager::d_instance = 0;
\n-
61
\n-\n-
63{
\n-
64 assert(d_instance == 0);
\n-
65 d_instance = this;
\n-\n-
67#ifdef SILLY_HAVE_JPG
\n-\n-
69#endif
\n-
70#ifdef SILLY_HAVE_PNG
\n-\n-
72#endif
\n-
73// Add other builtins loader here
\n-
74
\n-
75}
\n-
76
\n-\n-
78{
\n-
79 for(ImageLoaderList::iterator iter = d_loaders.begin() ; iter != d_loaders.end() ; ++iter)
\n-
80 {
\n-
81 delete (*iter);
\n+
41#include <stdio.h>
\n+
42// Start section of namespace SILLY
\n+
43namespace SILLY
\n+
44{
\n+
45
\n+
46FileDataSource::FileDataSource(const char* filename)
\n+
47 : d_error(true), d_bytes(0), d_size(0)
\n+
48{
\n+
49 FILE* data = fopen(filename, "rb");
\n+
50 if (data)
\n+
51 {
\n+
52 long status = fseek(data, 0, SEEK_END);
\n+
53 if (status == -1)
\n+
54 {
\n+
55 fclose(data);
\n+
56 return;
\n+
57 }
\n+
58 status = ftell(data);
\n+
59 if (status == -1)
\n+
60 {
\n+
61 fclose(data);
\n+
62 return;
\n+
63 }
\n+
64 d_size = status;
\n+
65 if (d_size)
\n+
66 d_bytes = new byte[d_size];
\n+
67 if (! d_bytes)
\n+
68 {
\n+
69 fclose(data);
\n+
70 return;
\n+
71 }
\n+
72 rewind(data);
\n+
73 status = fread(reinterpret_cast<void*>(d_bytes), 1, d_size, data);
\n+
74 if (status != d_size)
\n+
75 {
\n+
76 delete [] d_bytes;
\n+
77 d_bytes = 0;
\n+
78 fclose(data);
\n+
79 }
\n+
80 fclose(data);
\n+
81 d_error = false;
\n
82 }
\n-
83 d_instance = 0;
\n-
84}
\n+
83}
\n+
84
\n
85
\n-
86
\n-\n-
88{
\n-
89 if (ImageLoaderManager::getSingletonPtr() == 0)
\n-
90 {
\n-
91 if (!new ImageLoaderManager)
\n-
92 {
\n-
93 return false;
\n-
94 }
\n-
95 }
\n-
96 ++silly_init_counter;
\n-
97 return true;
\n-
98}
\n-
99
\n-\n-
101{
\n-
102 if (--silly_init_counter == 0)
\n-
103 {
\n-
104 delete ImageLoaderManager::getSingletonPtr();
\n-
105 }
\n-
106}
\n-
107
\n-
108} // End of SILLY namespace section
\n-
109
\n-
110
\n+\n+
87{
\n+
88 delete [] d_bytes;
\n+
89}
\n+
90
\n+
91
\n+
92} // End section of namespace SILLY
\n
Simple Image Loading LibrarY namespace.
\n-
void SILLYCleanup()
Cleanup SILLY library internal.
\n-
bool SILLYInit()
Initialize the SILLY Library.
\n-
Loader class for JPG Image.
\n-
Loader for PNG Image.
\n-
Loader for Targa image.
\n-
Manage the list of all supported ImageLoader.
\n-\n-
void add(ImageLoader *loader)
Register an ImageLoader object.
\n-\n+
FileDataSource(const char *filename)
Create a data source from an existing file.
\n+\n
\n \n
\n Generated by \"doxygen\"/ 1.9.4\n
\n \n \n", "details": [{"source1": "html2text {}", "source2": "html2text {}", "unified_diff": "@@ -4,21 +4,21 @@\n \n Simple Image Loading LibrarY\u00a00.1.0\n \n * build\n * reproducible-path\n * silly-0.1.0\n * src\n-SILLYImageLoaderManager.cpp\n+SILLYFileDataSource.cpp\n 1/***********************************************************************\n- 2 filename: ImageLoaderManager.cpp\n- 3 created: 10 Jun 2006\n+ 2 filename: SILLYFileDataSource.cpp\n+ 3 created: 20 Jul 2006\n 4 author: Olivier Delannoy\n 5\n- 6 purpose: Manage the list of existing ImageLoader\n+ 6 purpose: Implementation of the FileDataSource methods\n 7*************************************************************************/\n 8/***************************************************************************\n 9 * Copyright (C) 2004 - 2006 Paul D Turner & The CEGUI Development Team\n 10 *\n 11 * Permission is hereby granted, free of charge, to any person obtaining\n 12 * a copy of this software and associated documentation files (the\n 13 * \"Software\"), to deal in the Software without restriction, including\n@@ -39,123 +39,80 @@\n 28 * OTHER DEALINGS IN THE SOFTWARE.\n 29\n ***************************************************************************/\n 30#ifdef HAVE_CONFIG_H\n 31#include \n 32#endif\n 33\n- 34#include \"SILLYImageLoaderManager.h\"\n+ 34#include \"SILLYFileDataSource.h\"\n 35\n 36#ifndef SILLY_OPT_INLINE\n 37#define inline\n- 38#include \"SILLYImageLoaderManager.icpp\"\n+ 38#include \"SILLYFileDataSource.icpp\"\n 39#undef inline\n 40#endif\n- 41#include \"SILLYImageLoader.h\"\n- 42#include \"loaders/SILLYTGAImageLoader.h\"\n- 43\n- 44#ifdef SILLY_HAVE_JPG\n- 45#include \"loaders/SILLYJPGImageLoader.h\"\n- 46#endif\n- 47\n- 48#ifdef SILLY_HAVE_PNG\n- 49#include \"loaders/SILLYPNGImageLoader.h\"\n- 50#endif\n- 51\n- 52// Start of SILLY namespace section\n- 53namespace SILLY\n- 54{\n- 55\n- 56// we need to do \"reference counting\" for init/exit to allow silly to be\n-used\n- 57// from inside multiple independent libraries simultaneously.\n- 58static size_t silly_init_counter = 0;\n- 59\n- 60ImageLoaderManager* ImageLoaderManager::d_instance = 0;\n- 61\n-62ImageLoaderManager::ImageLoaderManager()\n- 63{\n- 64 assert(d_instance == 0);\n- 65 d_instance = this;\n- 66 add(new TGAImageLoader);\n- 67#ifdef SILLY_HAVE_JPG\n- 68 add(new JPGImageLoader);\n- 69#endif\n- 70#ifdef SILLY_HAVE_PNG\n- 71 add(new PNGImageLoader);\n- 72#endif\n- 73// Add other builtins loader here\n- 74\n- 75}\n- 76\n-77ImageLoaderManager::~ImageLoaderManager()\n- 78{\n- 79 for(ImageLoaderList::iterator iter = d_loaders.begin() ; iter !=\n-d_loaders.end() ; ++iter)\n- 80 {\n- 81 delete (*iter);\n+ 41#include \n+ 42// Start section of namespace SILLY\n+ 43namespace SILLY\n+ 44{\n+ 45\n+46FileDataSource::FileDataSource(const char* filename)\n+ 47 : d_error(true), d_bytes(0), d_size(0)\n+ 48{\n+ 49 FILE* data = fopen(filename, \"rb\");\n+ 50 if (data)\n+ 51 {\n+ 52 long status = fseek(data, 0, SEEK_END);\n+ 53 if (status == -1)\n+ 54 {\n+ 55 fclose(data);\n+ 56 return;\n+ 57 }\n+ 58 status = ftell(data);\n+ 59 if (status == -1)\n+ 60 {\n+ 61 fclose(data);\n+ 62 return;\n+ 63 }\n+ 64 d_size = status;\n+ 65 if (d_size)\n+ 66 d_bytes = new byte[d_size];\n+ 67 if (! d_bytes)\n+ 68 {\n+ 69 fclose(data);\n+ 70 return;\n+ 71 }\n+ 72 rewind(data);\n+ 73 status = fread(reinterpret_cast(d_bytes), 1, d_size, data);\n+ 74 if (status != d_size)\n+ 75 {\n+ 76 delete [] d_bytes;\n+ 77 d_bytes = 0;\n+ 78 fclose(data);\n+ 79 }\n+ 80 fclose(data);\n+ 81 d_error = false;\n 82 }\n- 83 d_instance = 0;\n- 84}\n+ 83}\n+ 84\n 85\n- 86\n-87bool SILLYInit()\n- 88{\n- 89 if (ImageLoaderManager::getSingletonPtr() == 0)\n- 90 {\n- 91 if (!new ImageLoaderManager)\n- 92 {\n- 93 return false;\n- 94 }\n- 95 }\n- 96 ++silly_init_counter;\n- 97 return true;\n- 98}\n- 99\n-100void SILLYCleanup()\n- 101{\n- 102 if (--silly_init_counter == 0)\n- 103 {\n- 104 delete ImageLoaderManager::getSingletonPtr();\n- 105 }\n- 106}\n- 107\n- 108} // End of SILLY namespace section\n- 109\n- 110\n+86FileDataSource::~FileDataSource()\n+ 87{\n+ 88 delete [] d_bytes;\n+ 89}\n+ 90\n+ 91\n+ 92} // End section of namespace SILLY\n SILLY\n Simple Image Loading LibrarY namespace.\n Definition: SILLYJPGImageContext.cpp:46\n-SILLY::SILLYCleanup\n-void SILLYCleanup()\n-Cleanup SILLY library internal.\n-Definition: SILLYImageLoaderManager.cpp:100\n-SILLY::SILLYInit\n-bool SILLYInit()\n-Initialize the SILLY Library.\n-Definition: SILLYImageLoaderManager.cpp:87\n-SILLY::JPGImageLoader\n-Loader class for JPG Image.\n-Definition: SILLYJPGImageLoader.h:43\n-SILLY::PNGImageLoader\n-Loader for PNG Image.\n-Definition: SILLYPNGImageLoader.h:43\n-SILLY::TGAImageLoader\n-Loader for Targa image.\n-Definition: SILLYTGAImageLoader.h:44\n-SILLY::ImageLoaderManager\n-Manage the list of all supported ImageLoader.\n-Definition: SILLYImageLoaderManager.h:57\n-SILLY::ImageLoaderManager::~ImageLoaderManager\n-~ImageLoaderManager()\n-Destructor.\n-Definition: SILLYImageLoaderManager.cpp:77\n-SILLY::ImageLoaderManager::add\n-void add(ImageLoader *loader)\n-Register an ImageLoader object.\n-SILLY::ImageLoaderManager::ImageLoaderManager\n-ImageLoaderManager()\n-Constructor.\n-Definition: SILLYImageLoaderManager.cpp:62\n+SILLY::FileDataSource::FileDataSource\n+FileDataSource(const char *filename)\n+Create a data source from an existing file.\n+Definition: SILLYFileDataSource.cpp:46\n+SILLY::FileDataSource::~FileDataSource\n+~FileDataSource()\n+destructor\n+Definition: SILLYFileDataSource.cpp:86\n \n ===============================================================================\n Generated by\u00a0[doxygen] 1.9.4\n"}]}, {"source1": "./usr/share/doc/libsilly-doc/html/a00026_source.html", "source2": "./usr/share/doc/libsilly-doc/html/a00026_source.html", "unified_diff": "@@ -1,15 +1,15 @@\n \n \n \n \n \n \n \n-Simple Image Loading LibrarY: /build/reproducible-path/silly-0.1.0/src/SILLYFileDataSource.cpp Source File\n+Simple Image Loading LibrarY: /build/reproducible-path/silly-0.1.0/src/SILLYImage.cpp Source File\n \n \n \n \n \n \n
\n@@ -39,23 +39,23 @@\n
\n \n
\n
\n-
SILLYFileDataSource.cpp
\n+
SILLYImage.cpp
\n
\n
\n
1/***********************************************************************
\n-
2 filename: SILLYFileDataSource.cpp
\n-
3 created: 20 Jul 2006
\n+
2 filename: SILLYImage.cpp
\n+
3 created: 10 Jun 2006
\n
4 author: Olivier Delannoy
\n
5
\n-
6 purpose: Implementation of the FileDataSource methods
\n+
6 purpose: Implementation of the Image class
\n
7*************************************************************************/
\n
8/***************************************************************************
\n
9 * Copyright (C) 2004 - 2006 Paul D Turner & The CEGUI Development Team
\n
10 *
\n
11 * Permission is hereby granted, free of charge, to any person obtaining
\n
12 * a copy of this software and associated documentation files (the
\n
13 * "Software"), to deal in the Software without restriction, including
\n@@ -75,76 +75,100 @@\n
27 * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
\n
28 * OTHER DEALINGS IN THE SOFTWARE.
\n
29 ***************************************************************************/
\n
30#ifdef HAVE_CONFIG_H
\n
31#include <config.h>
\n
32#endif
\n
33
\n-
34#include "SILLYFileDataSource.h"
\n+
34#include "SILLYImage.h"
\n
35
\n
36#ifndef SILLY_OPT_INLINE
\n
37#define inline
\n-
38#include "SILLYFileDataSource.icpp"
\n+
38#include "SILLYImage.icpp"
\n
39#undef inline
\n
40#endif
\n-
41#include <stdio.h>
\n-
42// Start section of namespace SILLY
\n-
43namespace SILLY
\n-
44{
\n-
45
\n-
46FileDataSource::FileDataSource(const char* filename)
\n-
47 : d_error(true), d_bytes(0), d_size(0)
\n-
48{
\n-
49 FILE* data = fopen(filename, "rb");
\n-
50 if (data)
\n-
51 {
\n-
52 long status = fseek(data, 0, SEEK_END);
\n-
53 if (status == -1)
\n-
54 {
\n-
55 fclose(data);
\n-
56 return;
\n-
57 }
\n-
58 status = ftell(data);
\n-
59 if (status == -1)
\n-
60 {
\n-
61 fclose(data);
\n-
62 return;
\n-
63 }
\n-
64 d_size = status;
\n-
65 if (d_size)
\n-
66 d_bytes = new byte[d_size];
\n-
67 if (! d_bytes)
\n-
68 {
\n-
69 fclose(data);
\n-
70 return;
\n-
71 }
\n-
72 rewind(data);
\n-
73 status = fread(reinterpret_cast<void*>(d_bytes), 1, d_size, data);
\n-
74 if (status != d_size)
\n-
75 {
\n-
76 delete [] d_bytes;
\n-
77 d_bytes = 0;
\n-
78 fclose(data);
\n-
79 }
\n-
80 fclose(data);
\n-
81 d_error = false;
\n-
82 }
\n-
83}
\n-
84
\n+
41#include "SILLYImageLoaderManager.h"
\n+
42
\n+
43
\n+
44// Start section of namespace SILLY
\n+
45namespace SILLY
\n+
46{
\n+
47
\n+\n+
49 : d_bpp(0), d_pixels(0), d_data(&source), d_imageContext(0), d_imageLoader(0)
\n+
50{
\n+
51}
\n+
52
\n+
53
\n+\n+
55{
\n+
56 ImageLoaderList::iterator iter = ImageLoaderManager::getSingleton().begin();
\n+
57 for (; ! d_imageLoader && iter != ImageLoaderManager::getSingleton().end() ; ++iter)
\n+
58 {
\n+
59 d_imageContext = (*iter)->loadHeader(d_pfSource, d_data);
\n+
60 if (d_imageContext)
\n+
61 d_imageLoader = (*iter);
\n+
62 }
\n+
63 assert((! d_imageLoader || d_imageContext) && "ASSERT: Internal state of image invalid");
\n+
64 return d_imageLoader != 0;
\n+
65
\n+
66}
\n+
67
\n+\n+
69{
\n+
70 switch (resultFormat)
\n+
71 {
\n+
72 case PF_A1B5G5R5:
\n+
73 d_bpp = 2;
\n+
74 break;
\n+
75 case PF_RGB:
\n+
76 d_bpp = 3;
\n+
77 break;
\n+
78
\n+
79 case PF_RGBA:
\n+
80 d_bpp = 4;
\n+
81 break;
\n+
82 //default:
\n+
83 // Unsupported format
\n+
84 };
\n
85
\n-\n-
87{
\n-
88 delete [] d_bytes;
\n-
89}
\n-
90
\n+
86 if (! allocate())
\n+
87 {
\n+
88 return false;
\n+
89 }
\n+
90 d_imageContext->setDestination(d_pixels, getWidth() * getHeight() * d_bpp, resultFormat);
\n
91
\n-
92} // End section of namespace SILLY
\n+
92 if (! d_imageLoader->loadImageData(order, d_data, d_imageContext))
\n+
93 {
\n+
94 delete [] d_pixels;
\n+
95 return false;
\n+
96 }
\n+
97 return true;
\n+
98}
\n+
99
\n+
100bool Image::allocate()
\n+
101{
\n+
102 delete [] d_pixels;
\n+
103 d_pixels = 0;
\n+
104 d_pixels = new byte[d_bpp * getWidth() * getHeight()];
\n+
105 return d_pixels != 0;
\n+
106}
\n+
107
\n+
108} // End section of namespace SILLY
\n
Simple Image Loading LibrarY namespace.
\n-
FileDataSource(const char *filename)
Create a data source from an existing file.
\n-\n+
PixelFormat
List all pixel format supported.
Definition: SILLYBase.h:60
\n+
PixelOrigin
List all pixel origin supported.
Definition: SILLYBase.h:71
\n+
This is an abstract class used to provide data to the loader.
\n+
Image(DataSource &data)
Constructor.
Definition: SILLYImage.cpp:48
\n+
bool loadImageHeader()
Retrieve the information concerning the image object.
Definition: SILLYImage.cpp:54
\n+
bool loadImageData(PixelFormat resultFormat=PF_RGBA, PixelOrigin origin=PO_TOP_LEFT)
Load the image pixels in memory and store them in resultFormat.
Definition: SILLYImage.cpp:68
\n+
size_t getWidth() const
Retrieve the width of the image.
\n+
size_t getHeight() const
Retrieve the height of the image.
\n+
void setDestination(byte *pixels, size_t length, PixelFormat format)
Set the destination of the loading.
\n+
virtual bool loadImageData(PixelOrigin origin, DataSource *data, ImageContext *context)=0
Parse the pixels data of the image and fill the header struct.
\n
\n \n
\n Generated by \"doxygen\"/ 1.9.4\n
\n \n \n", "details": [{"source1": "html2text {}", "source2": "html2text {}", "unified_diff": "@@ -4,21 +4,21 @@\n \n Simple Image Loading LibrarY\u00a00.1.0\n \n * build\n * reproducible-path\n * silly-0.1.0\n * src\n-SILLYFileDataSource.cpp\n+SILLYImage.cpp\n 1/***********************************************************************\n- 2 filename: SILLYFileDataSource.cpp\n- 3 created: 20 Jul 2006\n+ 2 filename: SILLYImage.cpp\n+ 3 created: 10 Jun 2006\n 4 author: Olivier Delannoy\n 5\n- 6 purpose: Implementation of the FileDataSource methods\n+ 6 purpose: Implementation of the Image class\n 7*************************************************************************/\n 8/***************************************************************************\n 9 * Copyright (C) 2004 - 2006 Paul D Turner & The CEGUI Development Team\n 10 *\n 11 * Permission is hereby granted, free of charge, to any person obtaining\n 12 * a copy of this software and associated documentation files (the\n 13 * \"Software\"), to deal in the Software without restriction, including\n@@ -39,80 +39,130 @@\n 28 * OTHER DEALINGS IN THE SOFTWARE.\n 29\n ***************************************************************************/\n 30#ifdef HAVE_CONFIG_H\n 31#include \n 32#endif\n 33\n- 34#include \"SILLYFileDataSource.h\"\n+ 34#include \"SILLYImage.h\"\n 35\n 36#ifndef SILLY_OPT_INLINE\n 37#define inline\n- 38#include \"SILLYFileDataSource.icpp\"\n+ 38#include \"SILLYImage.icpp\"\n 39#undef inline\n 40#endif\n- 41#include \n- 42// Start section of namespace SILLY\n- 43namespace SILLY\n- 44{\n- 45\n-46FileDataSource::FileDataSource(const char* filename)\n- 47 : d_error(true), d_bytes(0), d_size(0)\n- 48{\n- 49 FILE* data = fopen(filename, \"rb\");\n- 50 if (data)\n- 51 {\n- 52 long status = fseek(data, 0, SEEK_END);\n- 53 if (status == -1)\n- 54 {\n- 55 fclose(data);\n- 56 return;\n- 57 }\n- 58 status = ftell(data);\n- 59 if (status == -1)\n- 60 {\n- 61 fclose(data);\n- 62 return;\n- 63 }\n- 64 d_size = status;\n- 65 if (d_size)\n- 66 d_bytes = new byte[d_size];\n- 67 if (! d_bytes)\n- 68 {\n- 69 fclose(data);\n- 70 return;\n- 71 }\n- 72 rewind(data);\n- 73 status = fread(reinterpret_cast(d_bytes), 1, d_size, data);\n- 74 if (status != d_size)\n- 75 {\n- 76 delete [] d_bytes;\n- 77 d_bytes = 0;\n- 78 fclose(data);\n- 79 }\n- 80 fclose(data);\n- 81 d_error = false;\n- 82 }\n- 83}\n- 84\n+ 41#include \"SILLYImageLoaderManager.h\"\n+ 42\n+ 43\n+ 44// Start section of namespace SILLY\n+ 45namespace SILLY\n+ 46{\n+ 47\n+48Image::Image(DataSource& source)\n+ 49 : d_bpp(0), d_pixels(0), d_data(&source), d_imageContext(0), d_imageLoader\n+(0)\n+ 50{\n+ 51}\n+ 52\n+ 53\n+54bool Image::loadImageHeader()\n+ 55{\n+ 56 ImageLoaderList::iterator iter = ImageLoaderManager::getSingleton().begin\n+();\n+ 57 for (; ! d_imageLoader && iter != ImageLoaderManager::getSingleton().end()\n+; ++iter)\n+ 58 {\n+ 59 d_imageContext = (*iter)->loadHeader(d_pfSource, d_data);\n+ 60 if (d_imageContext)\n+ 61 d_imageLoader = (*iter);\n+ 62 }\n+ 63 assert((! d_imageLoader || d_imageContext) && \"ASSERT: Internal state of\n+image invalid\");\n+ 64 return d_imageLoader != 0;\n+ 65\n+ 66}\n+ 67\n+68bool Image::loadImageData(PixelFormat resultFormat, PixelOrigin order)\n+ 69{\n+ 70 switch (resultFormat)\n+ 71 {\n+ 72 case PF_A1B5G5R5:\n+ 73 d_bpp = 2;\n+ 74 break;\n+ 75 case PF_RGB:\n+ 76 d_bpp = 3;\n+ 77 break;\n+ 78\n+ 79 case PF_RGBA:\n+ 80 d_bpp = 4;\n+ 81 break;\n+ 82 //default:\n+ 83 // Unsupported format\n+ 84 };\n 85\n-86FileDataSource::~FileDataSource()\n- 87{\n- 88 delete [] d_bytes;\n- 89}\n- 90\n+ 86 if (! allocate())\n+ 87 {\n+ 88 return false;\n+ 89 }\n+ 90 d_imageContext->setDestination(d_pixels, getWidth() * getHeight() * d_bpp,\n+resultFormat);\n 91\n- 92} // End section of namespace SILLY\n+ 92 if (! d_imageLoader->loadImageData(order, d_data, d_imageContext))\n+ 93 {\n+ 94 delete [] d_pixels;\n+ 95 return false;\n+ 96 }\n+ 97 return true;\n+ 98}\n+ 99\n+ 100bool Image::allocate()\n+ 101{\n+ 102 delete [] d_pixels;\n+ 103 d_pixels = 0;\n+ 104 d_pixels = new byte[d_bpp * getWidth() * getHeight()];\n+ 105 return d_pixels != 0;\n+ 106}\n+ 107\n+ 108} // End section of namespace SILLY\n SILLY\n Simple Image Loading LibrarY namespace.\n Definition: SILLYJPGImageContext.cpp:46\n-SILLY::FileDataSource::FileDataSource\n-FileDataSource(const char *filename)\n-Create a data source from an existing file.\n-Definition: SILLYFileDataSource.cpp:46\n-SILLY::FileDataSource::~FileDataSource\n-~FileDataSource()\n-destructor\n-Definition: SILLYFileDataSource.cpp:86\n+SILLY::PixelFormat\n+PixelFormat\n+List all pixel format supported.\n+Definition: SILLYBase.h:60\n+SILLY::PixelOrigin\n+PixelOrigin\n+List all pixel origin supported.\n+Definition: SILLYBase.h:71\n+SILLY::DataSource\n+This is an abstract class used to provide data to the loader.\n+Definition: SILLYDataSource.h:47\n+SILLY::Image::Image\n+Image(DataSource &data)\n+Constructor.\n+Definition: SILLYImage.cpp:48\n+SILLY::Image::loadImageHeader\n+bool loadImageHeader()\n+Retrieve the information concerning the image object.\n+Definition: SILLYImage.cpp:54\n+SILLY::Image::loadImageData\n+bool loadImageData(PixelFormat resultFormat=PF_RGBA, PixelOrigin\n+origin=PO_TOP_LEFT)\n+Load the image pixels in memory and store them in resultFormat.\n+Definition: SILLYImage.cpp:68\n+SILLY::Image::getWidth\n+size_t getWidth() const\n+Retrieve the width of the image.\n+SILLY::Image::getHeight\n+size_t getHeight() const\n+Retrieve the height of the image.\n+SILLY::ImageContext::setDestination\n+void setDestination(byte *pixels, size_t length, PixelFormat format)\n+Set the destination of the loading.\n+SILLY::ImageLoader::loadImageData\n+virtual bool loadImageData(PixelOrigin origin, DataSource *data, ImageContext\n+*context)=0\n+Parse the pixels data of the image and fill the header struct.\n \n ===============================================================================\n Generated by\u00a0[doxygen] 1.9.4\n"}]}, {"source1": "./usr/share/doc/libsilly-doc/html/a00029_source.html", "source2": "./usr/share/doc/libsilly-doc/html/a00029_source.html", "unified_diff": "@@ -1,15 +1,15 @@\n \n \n \n \n \n \n \n-Simple Image Loading LibrarY: /build/reproducible-path/silly-0.1.0/src/SILLYImageContext.cpp Source File\n+Simple Image Loading LibrarY: /build/reproducible-path/silly-0.1.0/src/SILLYImageLoader.cpp Source File\n \n \n \n \n \n \n
\n@@ -39,23 +39,23 @@\n
\n \n
\n
\n-
SILLYImageContext.cpp
\n+
SILLYImageLoader.cpp
\n
\n
\n
1/***********************************************************************
\n-
2 filename: SILLYImageContext.cpp
\n+
2 filename: ImageLoader.cpp
\n
3 created: 10 Jun 2006
\n
4 author: Olivier Delannoy
\n
5
\n-
6 purpose: Implementation file for ImageContext class
\n+
6 purpose: Implementation of the ImageLoader
\n
7*************************************************************************/
\n
8/***************************************************************************
\n
9 * Copyright (C) 2004 - 2006 Paul D Turner & The CEGUI Development Team
\n
10 *
\n
11 * Permission is hereby granted, free of charge, to any person obtaining
\n
12 * a copy of this software and associated documentation files (the
\n
13 * "Software"), to deal in the Software without restriction, including
\n@@ -75,67 +75,41 @@\n
27 * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
\n
28 * OTHER DEALINGS IN THE SOFTWARE.
\n
29 ***************************************************************************/
\n
30#ifdef HAVE_CONFIG_H
\n
31#include <config.h>
\n
32#endif
\n
33
\n-
34#include "SILLYImageContext.h"
\n+
34#include "SILLYImageLoader.h"
\n
35#ifndef SILLY_OPT_INLINE
\n
36#define inline
\n-
37#include "SILLYImageContext.icpp"
\n+
37#include "SILLYImageLoader.icpp"
\n
38#undef inline
\n-
39#endif
\n-
40#include <cstring>
\n-
41// Start section of namespace SILLY
\n-
42namespace SILLY
\n-
43{
\n-
44
\n-\n-
46{
\n-
47 size_t depth;
\n-
48 switch(d_format)
\n-
49 {
\n-
50 case PF_A1B5G5R5:
\n-
51 depth = 2;
\n-
52 break;
\n-
53 case PF_RGB:
\n-
54 depth = 3;
\n-
55 break;
\n-
56 case PF_RGBA:
\n-
57 depth = 4;
\n-
58 break;
\n-
59 }
\n-
60
\n-
61 // Do the flipping
\n-
62 byte *p1,*p2,*tmp; // tmp pointers
\n-
63 size_t len = d_width * depth; // length of horizontal line in bytes
\n-
64 tmp = new byte[len]; // Allocate a temporary line
\n-
65 if ( !tmp )
\n-
66 return false;
\n-
67
\n-
68 size_t y , y2;
\n-
69 y2 = d_height - 1;
\n-
70 for ( y = 0; y < d_height >> 1; y++ )
\n-
71 {
\n-
72 p1 = (d_pixels) + len * y;
\n-
73 p2 = (d_pixels) + len * y2;
\n-
74 memcpy( tmp, p1, len );
\n-
75 memcpy( p1, p2, len );
\n-
76 memcpy( p2, tmp, len );
\n-
77 y2--;
\n-
78 }
\n-
79 delete [] tmp;
\n-
80 return true;
\n-
81}
\n-
82
\n-
83
\n-
84} // End section of namespace SILLY
\n+
39#endif
\n+
40#include "SILLYImageContext.h"
\n+
41
\n+
42// Start of SILLY namespace section
\n+
43namespace SILLY
\n+
44{
\n+
45
\n+
46
\n+\n+
48{
\n+
49 delete context;
\n+
50}
\n+
51
\n+
52
\n+
53} // end of SILLY namespace section
\n+
54
\n+
55
\n+
56
\n+
57
\n
Simple Image Loading LibrarY namespace.
\n-
bool flipVertically()
Flip pixel ordering.
\n+
Store the data needed by an ImageLoader object during the parsing of an image.
\n+
void destroyContext(ImageContext *context)
Destroy the image context.
\n
\n \n
\n Generated by \"doxygen\"/ 1.9.4\n
\n \n \n", "details": [{"source1": "html2text {}", "source2": "html2text {}", "unified_diff": "@@ -4,21 +4,21 @@\n \n Simple Image Loading LibrarY\u00a00.1.0\n \n * build\n * reproducible-path\n * silly-0.1.0\n * src\n-SILLYImageContext.cpp\n+SILLYImageLoader.cpp\n 1/***********************************************************************\n- 2 filename: SILLYImageContext.cpp\n+ 2 filename: ImageLoader.cpp\n 3 created: 10 Jun 2006\n 4 author: Olivier Delannoy\n 5\n- 6 purpose: Implementation file for ImageContext class\n+ 6 purpose: Implementation of the ImageLoader\n 7*************************************************************************/\n 8/***************************************************************************\n 9 * Copyright (C) 2004 - 2006 Paul D Turner & The CEGUI Development Team\n 10 *\n 11 * Permission is hereby granted, free of charge, to any person obtaining\n 12 * a copy of this software and associated documentation files (the\n 13 * \"Software\"), to deal in the Software without restriction, including\n@@ -39,68 +39,44 @@\n 28 * OTHER DEALINGS IN THE SOFTWARE.\n 29\n ***************************************************************************/\n 30#ifdef HAVE_CONFIG_H\n 31#include \n 32#endif\n 33\n- 34#include \"SILLYImageContext.h\"\n+ 34#include \"SILLYImageLoader.h\"\n 35#ifndef SILLY_OPT_INLINE\n 36#define inline\n- 37#include \"SILLYImageContext.icpp\"\n+ 37#include \"SILLYImageLoader.icpp\"\n 38#undef inline\n 39#endif\n- 40#include \n- 41// Start section of namespace SILLY\n- 42namespace SILLY\n- 43{\n- 44\n-45bool ImageContext::flipVertically()\n- 46{\n- 47 size_t depth;\n- 48 switch(d_format)\n- 49 {\n- 50 case PF_A1B5G5R5:\n- 51 depth = 2;\n- 52 break;\n- 53 case PF_RGB:\n- 54 depth = 3;\n- 55 break;\n- 56 case PF_RGBA:\n- 57 depth = 4;\n- 58 break;\n- 59 }\n- 60\n- 61 // Do the flipping\n- 62 byte *p1,*p2,*tmp; // tmp pointers\n- 63 size_t len = d_width * depth; // length of horizontal line in bytes\n- 64 tmp = new byte[len]; // Allocate a temporary line\n- 65 if ( !tmp )\n- 66 return false;\n- 67\n- 68 size_t y , y2;\n- 69 y2 = d_height - 1;\n- 70 for ( y = 0; y < d_height >> 1; y++ )\n- 71 {\n- 72 p1 = (d_pixels) + len * y;\n- 73 p2 = (d_pixels) + len * y2;\n- 74 memcpy( tmp, p1, len );\n- 75 memcpy( p1, p2, len );\n- 76 memcpy( p2, tmp, len );\n- 77 y2--;\n- 78 }\n- 79 delete [] tmp;\n- 80 return true;\n- 81}\n- 82\n- 83\n- 84} // End section of namespace SILLY\n+ 40#include \"SILLYImageContext.h\"\n+ 41\n+ 42// Start of SILLY namespace section\n+ 43namespace SILLY\n+ 44{\n+ 45\n+ 46\n+47void ImageLoader::destroyContext(ImageContext* context)\n+ 48{\n+ 49 delete context;\n+ 50}\n+ 51\n+ 52\n+ 53} // end of SILLY namespace section\n+ 54\n+ 55\n+ 56\n+ 57\n SILLY\n Simple Image Loading LibrarY namespace.\n Definition: SILLYJPGImageContext.cpp:46\n-SILLY::ImageContext::flipVertically\n-bool flipVertically()\n-Flip pixel ordering.\n-Definition: SILLYImageContext.cpp:45\n+SILLY::ImageContext\n+Store the data needed by an ImageLoader object during the parsing of an image.\n+Definition: SILLYImageContext.h:44\n+SILLY::ImageLoader::destroyContext\n+void destroyContext(ImageContext *context)\n+Destroy the image context.\n+Definition: SILLYImageLoader.cpp:47\n \n ===============================================================================\n Generated by\u00a0[doxygen] 1.9.4\n"}]}, {"source1": "./usr/share/doc/libsilly-doc/html/a00032_source.html", "source2": "./usr/share/doc/libsilly-doc/html/a00032_source.html", "unified_diff": "@@ -1,15 +1,15 @@\n \n \n \n \n \n \n \n-Simple Image Loading LibrarY: /build/reproducible-path/silly-0.1.0/src/SILLYDataSource.cpp Source File\n+Simple Image Loading LibrarY: /build/reproducible-path/silly-0.1.0/src/SILLYImageLoaderManager.cpp Source File\n \n \n \n \n \n \n
\n@@ -39,23 +39,23 @@\n
\n \n
\n
\n-
SILLYDataSource.cpp
\n+
SILLYImageLoaderManager.cpp
\n
\n
\n
1/***********************************************************************
\n-
2 filename: SILLYDataSource.cpp
\n+
2 filename: ImageLoaderManager.cpp
\n
3 created: 10 Jun 2006
\n-
4 author: Olivier Delannoy
\n+
4 author: Olivier Delannoy
\n
5
\n-
6 purpose: SILLYDataSource definition for the SILLY library
\n+
6 purpose: Manage the list of existing ImageLoader
\n
7*************************************************************************/
\n
8/***************************************************************************
\n
9 * Copyright (C) 2004 - 2006 Paul D Turner & The CEGUI Development Team
\n
10 *
\n
11 * Permission is hereby granted, free of charge, to any person obtaining
\n
12 * a copy of this software and associated documentation files (the
\n
13 * "Software"), to deal in the Software without restriction, including
\n@@ -75,32 +75,101 @@\n
27 * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
\n
28 * OTHER DEALINGS IN THE SOFTWARE.
\n
29 ***************************************************************************/
\n
30#ifdef HAVE_CONFIG_H
\n
31#include <config.h>
\n
32#endif
\n
33
\n-
34#include "SILLYDataSource.h"
\n+
34#include "SILLYImageLoaderManager.h"
\n
35
\n
36#ifndef SILLY_OPT_INLINE
\n
37#define inline
\n-
38#include "SILLYDataSource.icpp"
\n+
38#include "SILLYImageLoaderManager.icpp"
\n
39#undef inline
\n
40#endif
\n-
41
\n-
42// Start of SILLY namespace section
\n-
43namespace SILLY
\n-
44{
\n-
45
\n-
46} // End of SILLY namespace section
\n+
41#include "SILLYImageLoader.h"
\n+
42#include "loaders/SILLYTGAImageLoader.h"
\n+
43
\n+
44#ifdef SILLY_HAVE_JPG
\n+
45#include "loaders/SILLYJPGImageLoader.h"
\n+
46#endif
\n
47
\n-
48
\n-
49
\n-
50
\n+
48#ifdef SILLY_HAVE_PNG
\n+
49#include "loaders/SILLYPNGImageLoader.h"
\n+
50#endif
\n+
51
\n+
52// Start of SILLY namespace section
\n+
53namespace SILLY
\n+
54{
\n+
55
\n+
56// we need to do "reference counting" for init/exit to allow silly to be used
\n+
57// from inside multiple independent libraries simultaneously.
\n+
58static size_t silly_init_counter = 0;
\n+
59
\n+
60ImageLoaderManager* ImageLoaderManager::d_instance = 0;
\n+
61
\n+\n+
63{
\n+
64 assert(d_instance == 0);
\n+
65 d_instance = this;
\n+\n+
67#ifdef SILLY_HAVE_JPG
\n+\n+
69#endif
\n+
70#ifdef SILLY_HAVE_PNG
\n+\n+
72#endif
\n+
73// Add other builtins loader here
\n+
74
\n+
75}
\n+
76
\n+\n+
78{
\n+
79 for(ImageLoaderList::iterator iter = d_loaders.begin() ; iter != d_loaders.end() ; ++iter)
\n+
80 {
\n+
81 delete (*iter);
\n+
82 }
\n+
83 d_instance = 0;
\n+
84}
\n+
85
\n+
86
\n+\n+
88{
\n+
89 if (ImageLoaderManager::getSingletonPtr() == 0)
\n+
90 {
\n+
91 if (!new ImageLoaderManager)
\n+
92 {
\n+
93 return false;
\n+
94 }
\n+
95 }
\n+
96 ++silly_init_counter;
\n+
97 return true;
\n+
98}
\n+
99
\n+\n+
101{
\n+
102 if (--silly_init_counter == 0)
\n+
103 {
\n+
104 delete ImageLoaderManager::getSingletonPtr();
\n+
105 }
\n+
106}
\n+
107
\n+
108} // End of SILLY namespace section
\n+
109
\n+
110
\n
Simple Image Loading LibrarY namespace.
\n+
void SILLYCleanup()
Cleanup SILLY library internal.
\n+
bool SILLYInit()
Initialize the SILLY Library.
\n+
Loader class for JPG Image.
\n+
Loader for PNG Image.
\n+
Loader for Targa image.
\n+
Manage the list of all supported ImageLoader.
\n+\n+
void add(ImageLoader *loader)
Register an ImageLoader object.
\n+\n
\n \n
\n Generated by \"doxygen\"/ 1.9.4\n
\n \n \n", "details": [{"source1": "html2text {}", "source2": "html2text {}", "unified_diff": "@@ -4,21 +4,21 @@\n \n Simple Image Loading LibrarY\u00a00.1.0\n \n * build\n * reproducible-path\n * silly-0.1.0\n * src\n-SILLYDataSource.cpp\n+SILLYImageLoaderManager.cpp\n 1/***********************************************************************\n- 2 filename: SILLYDataSource.cpp\n+ 2 filename: ImageLoaderManager.cpp\n 3 created: 10 Jun 2006\n 4 author: Olivier Delannoy\n 5\n- 6 purpose: SILLYDataSource definition for the SILLY library\n+ 6 purpose: Manage the list of existing ImageLoader\n 7*************************************************************************/\n 8/***************************************************************************\n 9 * Copyright (C) 2004 - 2006 Paul D Turner & The CEGUI Development Team\n 10 *\n 11 * Permission is hereby granted, free of charge, to any person obtaining\n 12 * a copy of this software and associated documentation files (the\n 13 * \"Software\"), to deal in the Software without restriction, including\n@@ -39,30 +39,123 @@\n 28 * OTHER DEALINGS IN THE SOFTWARE.\n 29\n ***************************************************************************/\n 30#ifdef HAVE_CONFIG_H\n 31#include \n 32#endif\n 33\n- 34#include \"SILLYDataSource.h\"\n+ 34#include \"SILLYImageLoaderManager.h\"\n 35\n 36#ifndef SILLY_OPT_INLINE\n 37#define inline\n- 38#include \"SILLYDataSource.icpp\"\n+ 38#include \"SILLYImageLoaderManager.icpp\"\n 39#undef inline\n 40#endif\n- 41\n- 42// Start of SILLY namespace section\n- 43namespace SILLY\n- 44{\n- 45\n- 46} // End of SILLY namespace section\n+ 41#include \"SILLYImageLoader.h\"\n+ 42#include \"loaders/SILLYTGAImageLoader.h\"\n+ 43\n+ 44#ifdef SILLY_HAVE_JPG\n+ 45#include \"loaders/SILLYJPGImageLoader.h\"\n+ 46#endif\n 47\n- 48\n- 49\n- 50\n+ 48#ifdef SILLY_HAVE_PNG\n+ 49#include \"loaders/SILLYPNGImageLoader.h\"\n+ 50#endif\n+ 51\n+ 52// Start of SILLY namespace section\n+ 53namespace SILLY\n+ 54{\n+ 55\n+ 56// we need to do \"reference counting\" for init/exit to allow silly to be\n+used\n+ 57// from inside multiple independent libraries simultaneously.\n+ 58static size_t silly_init_counter = 0;\n+ 59\n+ 60ImageLoaderManager* ImageLoaderManager::d_instance = 0;\n+ 61\n+62ImageLoaderManager::ImageLoaderManager()\n+ 63{\n+ 64 assert(d_instance == 0);\n+ 65 d_instance = this;\n+ 66 add(new TGAImageLoader);\n+ 67#ifdef SILLY_HAVE_JPG\n+ 68 add(new JPGImageLoader);\n+ 69#endif\n+ 70#ifdef SILLY_HAVE_PNG\n+ 71 add(new PNGImageLoader);\n+ 72#endif\n+ 73// Add other builtins loader here\n+ 74\n+ 75}\n+ 76\n+77ImageLoaderManager::~ImageLoaderManager()\n+ 78{\n+ 79 for(ImageLoaderList::iterator iter = d_loaders.begin() ; iter !=\n+d_loaders.end() ; ++iter)\n+ 80 {\n+ 81 delete (*iter);\n+ 82 }\n+ 83 d_instance = 0;\n+ 84}\n+ 85\n+ 86\n+87bool SILLYInit()\n+ 88{\n+ 89 if (ImageLoaderManager::getSingletonPtr() == 0)\n+ 90 {\n+ 91 if (!new ImageLoaderManager)\n+ 92 {\n+ 93 return false;\n+ 94 }\n+ 95 }\n+ 96 ++silly_init_counter;\n+ 97 return true;\n+ 98}\n+ 99\n+100void SILLYCleanup()\n+ 101{\n+ 102 if (--silly_init_counter == 0)\n+ 103 {\n+ 104 delete ImageLoaderManager::getSingletonPtr();\n+ 105 }\n+ 106}\n+ 107\n+ 108} // End of SILLY namespace section\n+ 109\n+ 110\n SILLY\n Simple Image Loading LibrarY namespace.\n Definition: SILLYJPGImageContext.cpp:46\n+SILLY::SILLYCleanup\n+void SILLYCleanup()\n+Cleanup SILLY library internal.\n+Definition: SILLYImageLoaderManager.cpp:100\n+SILLY::SILLYInit\n+bool SILLYInit()\n+Initialize the SILLY Library.\n+Definition: SILLYImageLoaderManager.cpp:87\n+SILLY::JPGImageLoader\n+Loader class for JPG Image.\n+Definition: SILLYJPGImageLoader.h:43\n+SILLY::PNGImageLoader\n+Loader for PNG Image.\n+Definition: SILLYPNGImageLoader.h:43\n+SILLY::TGAImageLoader\n+Loader for Targa image.\n+Definition: SILLYTGAImageLoader.h:44\n+SILLY::ImageLoaderManager\n+Manage the list of all supported ImageLoader.\n+Definition: SILLYImageLoaderManager.h:57\n+SILLY::ImageLoaderManager::~ImageLoaderManager\n+~ImageLoaderManager()\n+Destructor.\n+Definition: SILLYImageLoaderManager.cpp:77\n+SILLY::ImageLoaderManager::add\n+void add(ImageLoader *loader)\n+Register an ImageLoader object.\n+SILLY::ImageLoaderManager::ImageLoaderManager\n+ImageLoaderManager()\n+Constructor.\n+Definition: SILLYImageLoaderManager.cpp:62\n \n ===============================================================================\n Generated by\u00a0[doxygen] 1.9.4\n"}]}, {"source1": "./usr/share/doc/libsilly-doc/html/a00035_source.html", "source2": "./usr/share/doc/libsilly-doc/html/a00035_source.html", "unified_diff": "@@ -1,15 +1,15 @@\n \n \n \n \n \n \n \n-Simple Image Loading LibrarY: /build/reproducible-path/silly-0.1.0/src/SILLYImageLoader.cpp Source File\n+Simple Image Loading LibrarY: /build/reproducible-path/silly-0.1.0/src/SILLYMemoryDataSource.cpp Source File\n \n \n \n \n \n \n
\n@@ -39,23 +39,23 @@\n
\n \n
\n
\n-
SILLYImageLoader.cpp
\n+
SILLYMemoryDataSource.cpp
\n
\n
\n
1/***********************************************************************
\n-
2 filename: ImageLoader.cpp
\n+
2 filename: SILLYMemoryDataSource.cpp
\n
3 created: 10 Jun 2006
\n
4 author: Olivier Delannoy
\n
5
\n-
6 purpose: Implementation of the ImageLoader
\n+
6 purpose: SILLYMemoryDataSource definition for the SILLY library
\n
7*************************************************************************/
\n
8/***************************************************************************
\n
9 * Copyright (C) 2004 - 2006 Paul D Turner & The CEGUI Development Team
\n
10 *
\n
11 * Permission is hereby granted, free of charge, to any person obtaining
\n
12 * a copy of this software and associated documentation files (the
\n
13 * "Software"), to deal in the Software without restriction, including
\n@@ -75,41 +75,38 @@\n
27 * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
\n
28 * OTHER DEALINGS IN THE SOFTWARE.
\n
29 ***************************************************************************/
\n
30#ifdef HAVE_CONFIG_H
\n
31#include <config.h>
\n
32#endif
\n
33
\n-
34#include "SILLYImageLoader.h"
\n-
35#ifndef SILLY_OPT_INLINE
\n-
36#define inline
\n-
37#include "SILLYImageLoader.icpp"
\n-
38#undef inline
\n-
39#endif
\n-
40#include "SILLYImageContext.h"
\n+
34#include "SILLYMemoryDataSource.h"
\n+
35
\n+
36#ifndef SILLY_OPT_INLINE
\n+
37#define inline
\n+
38#include "SILLYMemoryDataSource.icpp"
\n+
39#undef inline
\n+
40#endif
\n
41
\n-
42// Start of SILLY namespace section
\n+
42// Start of SILLY namespace section
\n
43namespace SILLY
\n
44{
\n-
45
\n-
46
\n-\n+
45
\n+
46MemoryDataSource::MemoryDataSource(const byte* data, size_t size)
\n+
47 : d_bytes(data), d_size(size)
\n
48{
\n-
49 delete context;
\n-
50}
\n-
51
\n+
49 assert(data && "ASSERT: data point to an invalid memory");
\n+
50 assert(size && "ASSERT: size is equal to 0");
\n+
51}
\n
52
\n-
53} // end of SILLY namespace section
\n+
53} // End of SILLY namespace section
\n
54
\n
55
\n-
56
\n-
57
\n
Simple Image Loading LibrarY namespace.
\n-
Store the data needed by an ImageLoader object during the parsing of an image.
\n-
void destroyContext(ImageContext *context)
Destroy the image context.
\n+
MemoryDataSource(const byte *data, size_t size)
Create a data source from an existing memory area.
\n
\n \n
\n Generated by \"doxygen\"/ 1.9.4\n
\n \n \n", "details": [{"source1": "html2text {}", "source2": "html2text {}", "unified_diff": "@@ -4,21 +4,21 @@\n \n Simple Image Loading LibrarY\u00a00.1.0\n \n * build\n * reproducible-path\n * silly-0.1.0\n * src\n-SILLYImageLoader.cpp\n+SILLYMemoryDataSource.cpp\n 1/***********************************************************************\n- 2 filename: ImageLoader.cpp\n+ 2 filename: SILLYMemoryDataSource.cpp\n 3 created: 10 Jun 2006\n 4 author: Olivier Delannoy\n 5\n- 6 purpose: Implementation of the ImageLoader\n+ 6 purpose: SILLYMemoryDataSource definition for the SILLY library\n 7*************************************************************************/\n 8/***************************************************************************\n 9 * Copyright (C) 2004 - 2006 Paul D Turner & The CEGUI Development Team\n 10 *\n 11 * Permission is hereby granted, free of charge, to any person obtaining\n 12 * a copy of this software and associated documentation files (the\n 13 * \"Software\"), to deal in the Software without restriction, including\n@@ -39,44 +39,39 @@\n 28 * OTHER DEALINGS IN THE SOFTWARE.\n 29\n ***************************************************************************/\n 30#ifdef HAVE_CONFIG_H\n 31#include \n 32#endif\n 33\n- 34#include \"SILLYImageLoader.h\"\n- 35#ifndef SILLY_OPT_INLINE\n- 36#define inline\n- 37#include \"SILLYImageLoader.icpp\"\n- 38#undef inline\n- 39#endif\n- 40#include \"SILLYImageContext.h\"\n+ 34#include \"SILLYMemoryDataSource.h\"\n+ 35\n+ 36#ifndef SILLY_OPT_INLINE\n+ 37#define inline\n+ 38#include \"SILLYMemoryDataSource.icpp\"\n+ 39#undef inline\n+ 40#endif\n 41\n 42// Start of SILLY namespace section\n 43namespace SILLY\n 44{\n 45\n- 46\n-47void ImageLoader::destroyContext(ImageContext* context)\n+46MemoryDataSource::MemoryDataSource(const byte* data, size_t size)\n+ 47 : d_bytes(data), d_size(size)\n 48{\n- 49 delete context;\n- 50}\n- 51\n+ 49 assert(data && \"ASSERT: data point to an invalid memory\");\n+ 50 assert(size && \"ASSERT: size is equal to 0\");\n+ 51}\n 52\n- 53} // end of SILLY namespace section\n+ 53} // End of SILLY namespace section\n 54\n 55\n- 56\n- 57\n SILLY\n Simple Image Loading LibrarY namespace.\n Definition: SILLYJPGImageContext.cpp:46\n-SILLY::ImageContext\n-Store the data needed by an ImageLoader object during the parsing of an image.\n-Definition: SILLYImageContext.h:44\n-SILLY::ImageLoader::destroyContext\n-void destroyContext(ImageContext *context)\n-Destroy the image context.\n-Definition: SILLYImageLoader.cpp:47\n+SILLY::MemoryDataSource::MemoryDataSource\n+MemoryDataSource(const byte *data, size_t size)\n+Create a data source from an existing memory area.\n+Definition: SILLYMemoryDataSource.cpp:46\n \n ===============================================================================\n Generated by\u00a0[doxygen] 1.9.4\n"}]}, {"source1": "./usr/share/doc/libsilly-doc/html/a00038_source.html", "source2": "./usr/share/doc/libsilly-doc/html/a00038_source.html", "unified_diff": "@@ -1,15 +1,15 @@\n \n \n \n \n \n \n \n-Simple Image Loading LibrarY: /build/reproducible-path/silly-0.1.0/src/SILLYImage.cpp Source File\n+Simple Image Loading LibrarY: /build/reproducible-path/silly-0.1.0/src/SILLYImageContext.cpp Source File\n \n \n \n \n \n \n
\n@@ -39,23 +39,23 @@\n
\n \n
\n
\n-
SILLYImage.cpp
\n+
SILLYImageContext.cpp
\n
\n
\n
1/***********************************************************************
\n-
2 filename: SILLYImage.cpp
\n+
2 filename: SILLYImageContext.cpp
\n
3 created: 10 Jun 2006
\n
4 author: Olivier Delannoy
\n
5
\n-
6 purpose: Implementation of the Image class
\n+
6 purpose: Implementation file for ImageContext class
\n
7*************************************************************************/
\n
8/***************************************************************************
\n
9 * Copyright (C) 2004 - 2006 Paul D Turner & The CEGUI Development Team
\n
10 *
\n
11 * Permission is hereby granted, free of charge, to any person obtaining
\n
12 * a copy of this software and associated documentation files (the
\n
13 * "Software"), to deal in the Software without restriction, including
\n@@ -75,100 +75,67 @@\n
27 * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
\n
28 * OTHER DEALINGS IN THE SOFTWARE.
\n
29 ***************************************************************************/
\n
30#ifdef HAVE_CONFIG_H
\n
31#include <config.h>
\n
32#endif
\n
33
\n-
34#include "SILLYImage.h"
\n-
35
\n-
36#ifndef SILLY_OPT_INLINE
\n-
37#define inline
\n-
38#include "SILLYImage.icpp"
\n-
39#undef inline
\n-
40#endif
\n-
41#include "SILLYImageLoaderManager.h"
\n-
42
\n-
43
\n-
44// Start section of namespace SILLY
\n-
45namespace SILLY
\n+
34#include "SILLYImageContext.h"
\n+
35#ifndef SILLY_OPT_INLINE
\n+
36#define inline
\n+
37#include "SILLYImageContext.icpp"
\n+
38#undef inline
\n+
39#endif
\n+
40#include <cstring>
\n+
41// Start section of namespace SILLY
\n+
42namespace SILLY
\n+
43{
\n+
44
\n+\n
46{
\n-
47
\n-\n-
49 : d_bpp(0), d_pixels(0), d_data(&source), d_imageContext(0), d_imageLoader(0)
\n-
50{
\n-
51}
\n-
52
\n-
53
\n-\n-
55{
\n-
56 ImageLoaderList::iterator iter = ImageLoaderManager::getSingleton().begin();
\n-
57 for (; ! d_imageLoader && iter != ImageLoaderManager::getSingleton().end() ; ++iter)
\n-
58 {
\n-
59 d_imageContext = (*iter)->loadHeader(d_pfSource, d_data);
\n-
60 if (d_imageContext)
\n-
61 d_imageLoader = (*iter);
\n-
62 }
\n-
63 assert((! d_imageLoader || d_imageContext) && "ASSERT: Internal state of image invalid");
\n-
64 return d_imageLoader != 0;
\n-
65
\n-
66}
\n-
67
\n-\n-
69{
\n-
70 switch (resultFormat)
\n+
47 size_t depth;
\n+
48 switch(d_format)
\n+
49 {
\n+
50 case PF_A1B5G5R5:
\n+
51 depth = 2;
\n+
52 break;
\n+
53 case PF_RGB:
\n+
54 depth = 3;
\n+
55 break;
\n+
56 case PF_RGBA:
\n+
57 depth = 4;
\n+
58 break;
\n+
59 }
\n+
60
\n+
61 // Do the flipping
\n+
62 byte *p1,*p2,*tmp; // tmp pointers
\n+
63 size_t len = d_width * depth; // length of horizontal line in bytes
\n+
64 tmp = new byte[len]; // Allocate a temporary line
\n+
65 if ( !tmp )
\n+
66 return false;
\n+
67
\n+
68 size_t y , y2;
\n+
69 y2 = d_height - 1;
\n+
70 for ( y = 0; y < d_height >> 1; y++ )
\n
71 {
\n-
72 case PF_A1B5G5R5:
\n-
73 d_bpp = 2;
\n-
74 break;
\n-
75 case PF_RGB:
\n-
76 d_bpp = 3;
\n-
77 break;
\n-
78
\n-
79 case PF_RGBA:
\n-
80 d_bpp = 4;
\n-
81 break;
\n-
82 //default:
\n-
83 // Unsupported format
\n-
84 };
\n-
85
\n-
86 if (! allocate())
\n-
87 {
\n-
88 return false;
\n-
89 }
\n-
90 d_imageContext->setDestination(d_pixels, getWidth() * getHeight() * d_bpp, resultFormat);
\n-
91
\n-
92 if (! d_imageLoader->loadImageData(order, d_data, d_imageContext))
\n-
93 {
\n-
94 delete [] d_pixels;
\n-
95 return false;
\n-
96 }
\n-
97 return true;
\n-
98}
\n-
99
\n-
100bool Image::allocate()
\n-
101{
\n-
102 delete [] d_pixels;
\n-
103 d_pixels = 0;
\n-
104 d_pixels = new byte[d_bpp * getWidth() * getHeight()];
\n-
105 return d_pixels != 0;
\n-
106}
\n-
107
\n-
108} // End section of namespace SILLY
\n+
72 p1 = (d_pixels) + len * y;
\n+
73 p2 = (d_pixels) + len * y2;
\n+
74 memcpy( tmp, p1, len );
\n+
75 memcpy( p1, p2, len );
\n+
76 memcpy( p2, tmp, len );
\n+
77 y2--;
\n+
78 }
\n+
79 delete [] tmp;
\n+
80 return true;
\n+
81}
\n+
82
\n+
83
\n+
84} // End section of namespace SILLY
\n
Simple Image Loading LibrarY namespace.
\n-
PixelFormat
List all pixel format supported.
Definition: SILLYBase.h:60
\n-
PixelOrigin
List all pixel origin supported.
Definition: SILLYBase.h:71
\n-
This is an abstract class used to provide data to the loader.
\n-
Image(DataSource &data)
Constructor.
Definition: SILLYImage.cpp:48
\n-
bool loadImageHeader()
Retrieve the information concerning the image object.
Definition: SILLYImage.cpp:54
\n-
bool loadImageData(PixelFormat resultFormat=PF_RGBA, PixelOrigin origin=PO_TOP_LEFT)
Load the image pixels in memory and store them in resultFormat.
Definition: SILLYImage.cpp:68
\n-
size_t getWidth() const
Retrieve the width of the image.
\n-
size_t getHeight() const
Retrieve the height of the image.
\n-
void setDestination(byte *pixels, size_t length, PixelFormat format)
Set the destination of the loading.
\n-
virtual bool loadImageData(PixelOrigin origin, DataSource *data, ImageContext *context)=0
Parse the pixels data of the image and fill the header struct.
\n+
bool flipVertically()
Flip pixel ordering.
\n
\n \n
\n Generated by \"doxygen\"/ 1.9.4\n
\n \n \n", "details": [{"source1": "html2text {}", "source2": "html2text {}", "unified_diff": "@@ -4,21 +4,21 @@\n \n Simple Image Loading LibrarY\u00a00.1.0\n \n * build\n * reproducible-path\n * silly-0.1.0\n * src\n-SILLYImage.cpp\n+SILLYImageContext.cpp\n 1/***********************************************************************\n- 2 filename: SILLYImage.cpp\n+ 2 filename: SILLYImageContext.cpp\n 3 created: 10 Jun 2006\n 4 author: Olivier Delannoy\n 5\n- 6 purpose: Implementation of the Image class\n+ 6 purpose: Implementation file for ImageContext class\n 7*************************************************************************/\n 8/***************************************************************************\n 9 * Copyright (C) 2004 - 2006 Paul D Turner & The CEGUI Development Team\n 10 *\n 11 * Permission is hereby granted, free of charge, to any person obtaining\n 12 * a copy of this software and associated documentation files (the\n 13 * \"Software\"), to deal in the Software without restriction, including\n@@ -39,130 +39,68 @@\n 28 * OTHER DEALINGS IN THE SOFTWARE.\n 29\n ***************************************************************************/\n 30#ifdef HAVE_CONFIG_H\n 31#include \n 32#endif\n 33\n- 34#include \"SILLYImage.h\"\n- 35\n- 36#ifndef SILLY_OPT_INLINE\n- 37#define inline\n- 38#include \"SILLYImage.icpp\"\n- 39#undef inline\n- 40#endif\n- 41#include \"SILLYImageLoaderManager.h\"\n- 42\n- 43\n- 44// Start section of namespace SILLY\n- 45namespace SILLY\n+ 34#include \"SILLYImageContext.h\"\n+ 35#ifndef SILLY_OPT_INLINE\n+ 36#define inline\n+ 37#include \"SILLYImageContext.icpp\"\n+ 38#undef inline\n+ 39#endif\n+ 40#include \n+ 41// Start section of namespace SILLY\n+ 42namespace SILLY\n+ 43{\n+ 44\n+45bool ImageContext::flipVertically()\n 46{\n- 47\n-48Image::Image(DataSource& source)\n- 49 : d_bpp(0), d_pixels(0), d_data(&source), d_imageContext(0), d_imageLoader\n-(0)\n- 50{\n- 51}\n- 52\n- 53\n-54bool Image::loadImageHeader()\n- 55{\n- 56 ImageLoaderList::iterator iter = ImageLoaderManager::getSingleton().begin\n-();\n- 57 for (; ! d_imageLoader && iter != ImageLoaderManager::getSingleton().end()\n-; ++iter)\n- 58 {\n- 59 d_imageContext = (*iter)->loadHeader(d_pfSource, d_data);\n- 60 if (d_imageContext)\n- 61 d_imageLoader = (*iter);\n- 62 }\n- 63 assert((! d_imageLoader || d_imageContext) && \"ASSERT: Internal state of\n-image invalid\");\n- 64 return d_imageLoader != 0;\n- 65\n- 66}\n+ 47 size_t depth;\n+ 48 switch(d_format)\n+ 49 {\n+ 50 case PF_A1B5G5R5:\n+ 51 depth = 2;\n+ 52 break;\n+ 53 case PF_RGB:\n+ 54 depth = 3;\n+ 55 break;\n+ 56 case PF_RGBA:\n+ 57 depth = 4;\n+ 58 break;\n+ 59 }\n+ 60\n+ 61 // Do the flipping\n+ 62 byte *p1,*p2,*tmp; // tmp pointers\n+ 63 size_t len = d_width * depth; // length of horizontal line in bytes\n+ 64 tmp = new byte[len]; // Allocate a temporary line\n+ 65 if ( !tmp )\n+ 66 return false;\n 67\n-68bool Image::loadImageData(PixelFormat resultFormat, PixelOrigin order)\n- 69{\n- 70 switch (resultFormat)\n+ 68 size_t y , y2;\n+ 69 y2 = d_height - 1;\n+ 70 for ( y = 0; y < d_height >> 1; y++ )\n 71 {\n- 72 case PF_A1B5G5R5:\n- 73 d_bpp = 2;\n- 74 break;\n- 75 case PF_RGB:\n- 76 d_bpp = 3;\n- 77 break;\n- 78\n- 79 case PF_RGBA:\n- 80 d_bpp = 4;\n- 81 break;\n- 82 //default:\n- 83 // Unsupported format\n- 84 };\n- 85\n- 86 if (! allocate())\n- 87 {\n- 88 return false;\n- 89 }\n- 90 d_imageContext->setDestination(d_pixels, getWidth() * getHeight() * d_bpp,\n-resultFormat);\n- 91\n- 92 if (! d_imageLoader->loadImageData(order, d_data, d_imageContext))\n- 93 {\n- 94 delete [] d_pixels;\n- 95 return false;\n- 96 }\n- 97 return true;\n- 98}\n- 99\n- 100bool Image::allocate()\n- 101{\n- 102 delete [] d_pixels;\n- 103 d_pixels = 0;\n- 104 d_pixels = new byte[d_bpp * getWidth() * getHeight()];\n- 105 return d_pixels != 0;\n- 106}\n- 107\n- 108} // End section of namespace SILLY\n+ 72 p1 = (d_pixels) + len * y;\n+ 73 p2 = (d_pixels) + len * y2;\n+ 74 memcpy( tmp, p1, len );\n+ 75 memcpy( p1, p2, len );\n+ 76 memcpy( p2, tmp, len );\n+ 77 y2--;\n+ 78 }\n+ 79 delete [] tmp;\n+ 80 return true;\n+ 81}\n+ 82\n+ 83\n+ 84} // End section of namespace SILLY\n SILLY\n Simple Image Loading LibrarY namespace.\n Definition: SILLYJPGImageContext.cpp:46\n-SILLY::PixelFormat\n-PixelFormat\n-List all pixel format supported.\n-Definition: SILLYBase.h:60\n-SILLY::PixelOrigin\n-PixelOrigin\n-List all pixel origin supported.\n-Definition: SILLYBase.h:71\n-SILLY::DataSource\n-This is an abstract class used to provide data to the loader.\n-Definition: SILLYDataSource.h:47\n-SILLY::Image::Image\n-Image(DataSource &data)\n-Constructor.\n-Definition: SILLYImage.cpp:48\n-SILLY::Image::loadImageHeader\n-bool loadImageHeader()\n-Retrieve the information concerning the image object.\n-Definition: SILLYImage.cpp:54\n-SILLY::Image::loadImageData\n-bool loadImageData(PixelFormat resultFormat=PF_RGBA, PixelOrigin\n-origin=PO_TOP_LEFT)\n-Load the image pixels in memory and store them in resultFormat.\n-Definition: SILLYImage.cpp:68\n-SILLY::Image::getWidth\n-size_t getWidth() const\n-Retrieve the width of the image.\n-SILLY::Image::getHeight\n-size_t getHeight() const\n-Retrieve the height of the image.\n-SILLY::ImageContext::setDestination\n-void setDestination(byte *pixels, size_t length, PixelFormat format)\n-Set the destination of the loading.\n-SILLY::ImageLoader::loadImageData\n-virtual bool loadImageData(PixelOrigin origin, DataSource *data, ImageContext\n-*context)=0\n-Parse the pixels data of the image and fill the header struct.\n+SILLY::ImageContext::flipVertically\n+bool flipVertically()\n+Flip pixel ordering.\n+Definition: SILLYImageContext.cpp:45\n \n ===============================================================================\n Generated by\u00a0[doxygen] 1.9.4\n"}]}, {"source1": "./usr/share/doc/libsilly-doc/html/a00041_source.html", "source2": "./usr/share/doc/libsilly-doc/html/a00041_source.html", "unified_diff": "@@ -1,15 +1,15 @@\n \n \n \n \n \n \n \n-Simple Image Loading LibrarY: /build/reproducible-path/silly-0.1.0/include/SILLYImageContext.icpp Source File\n+Simple Image Loading LibrarY: /build/reproducible-path/silly-0.1.0/include/SILLYDataSource.h Source File\n \n \n \n \n \n \n
\n@@ -39,121 +39,77 @@\n
\n \n
\n
\n-
SILLYImageContext.icpp
\n+
SILLYDataSource.h
\n
\n
\n-
1/***********************************************************************
\n-
2 filename: SILLYImageContext.icpp
\n-
3 created: 10 Jun 2006
\n-
4 author: Olivier Delannoy
\n-
5
\n-
6 purpose: Inline definition for ImageContext
\n-
7*************************************************************************/
\n-
8/***************************************************************************
\n-
9 * Copyright (C) 2004 - 2006 Paul D Turner & The CEGUI Development Team
\n-
10 *
\n-
11 * Permission is hereby granted, free of charge, to any person obtaining
\n-
12 * a copy of this software and associated documentation files (the
\n-
13 * "Software"), to deal in the Software without restriction, including
\n-
14 * without limitation the rights to use, copy, modify, merge, publish,
\n-
15 * distribute, sublicense, and/or sell copies of the Software, and to
\n-
16 * permit persons to whom the Software is furnished to do so, subject to
\n-
17 * the following conditions:
\n-
18 *
\n-
19 * The above copyright notice and this permission notice shall be
\n-
20 * included in all copies or substantial portions of the Software.
\n-
21 *
\n-
22 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
\n-
23 * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
\n-
24 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
\n-
25 * IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR
\n-
26 * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
\n-
27 * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
\n-
28 * OTHER DEALINGS IN THE SOFTWARE.
\n-
29 ***************************************************************************/
\n-
30
\n-
31// Start of section namespace SILLY
\n-
32namespace SILLY
\n-
33{
\n-
34
\n-
35inline ImageContext::ImageContext(size_t width, size_t height)
\n-
36 : d_pixels(0), d_length(0), d_width(width), d_height(height), d_currentOffset(0), d_format(PF_RGBA)
\n-
37{
\n-
38}
\n-
39
\n-
40
\n-
41inline ImageContext::~ImageContext()
\n-
42{
\n-
43}
\n-
44
\n-
45
\n-
46inline void ImageContext::setDestination(byte* pixels, size_t length, PixelFormat format)
\n+
1/***********************************************************************
\n+
2 filename: SILLYDataSource.h
\n+
3 created: 10 Jun 2006
\n+
4 author: Olivier Delannoy
\n+
5
\n+
6 purpose: SILLY::DataSource declaration for the SILLY library
\n+
7*************************************************************************/
\n+
8/***************************************************************************
\n+
9 * Copyright (C) 2004 - 2006 Paul D Turner & The CEGUI Development Team
\n+
10 *
\n+
11 * Permission is hereby granted, free of charge, to any person obtaining
\n+
12 * a copy of this software and associated documentation files (the
\n+
13 * "Software"), to deal in the Software without restriction, including
\n+
14 * without limitation the rights to use, copy, modify, merge, publish,
\n+
15 * distribute, sublicense, and/or sell copies of the Software, and to
\n+
16 * permit persons to whom the Software is furnished to do so, subject to
\n+
17 * the following conditions:
\n+
18 *
\n+
19 * The above copyright notice and this permission notice shall be
\n+
20 * included in all copies or substantial portions of the Software.
\n+
21 *
\n+
22 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
\n+
23 * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
\n+
24 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
\n+
25 * IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR
\n+
26 * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
\n+
27 * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
\n+
28 * OTHER DEALINGS IN THE SOFTWARE.
\n+
29 ***************************************************************************/
\n+
30#ifndef _SILLYDataSource_h_
\n+
31#define _SILLYDataSource_h_
\n+
32#include "SILLYBase.h"
\n+
33
\n+
34// Start of section namespace SILLY
\n+
35namespace SILLY
\n+
36{
\n+
37
\n+
46class SILLY_EXPORT DataSource
\n
47{
\n-
48 d_pixels = pixels;
\n-
49 d_length = length;
\n-
50 d_currentOffset = 0;
\n-
51 d_format = format;
\n-
52}
\n-
53
\n-
54inline void ImageContext::setNextPixel(byte red, byte green, byte bleu, byte alpha)
\n-
55{
\n-
56 //assert(d_currentOffset < d_length && "ASSERT: try to set a pixel outside of the image");
\n-
57 switch(d_format)
\n-
58 {
\n-
59 case PF_A1B5G5R5:
\n-
60 // The hard part
\n-
61 assert(0 && "ASSERT: Not yet implemented");
\n-
62 break;
\n-
63 case PF_RGB:
\n-
64 // Ignore alpha channel
\n-
65 d_pixels[d_currentOffset++] = red;
\n-
66 d_pixels[d_currentOffset++] = green;
\n-
67 d_pixels[d_currentOffset++] = bleu;
\n-
68 break;
\n-
69
\n-
70 case PF_RGBA:
\n-
71 d_pixels[d_currentOffset++] = red;
\n-
72 d_pixels[d_currentOffset++] = green;
\n-
73 d_pixels[d_currentOffset++] = bleu;
\n-
74 d_pixels[d_currentOffset++] = alpha;
\n-
75 break;
\n-
76
\n-
77 }
\n-
78}
\n-
79inline size_t ImageContext::getWidth() const
\n-
80{
\n-
81 return d_width;
\n-
82}
\n-
83
\n-
84inline void ImageContext::setWidth(size_t width)
\n-
85{
\n-
86 d_width = width;
\n-
87}
\n-
88
\n-
89inline size_t ImageContext::getHeight() const
\n-
90{
\n-
91 return d_height;
\n-
92}
\n-
93
\n-
94inline void ImageContext::setHeight(size_t height)
\n-
95{
\n-
96 d_height = height;
\n-
97}
\n-
98inline PixelFormat ImageContext::getPixelFormat() const
\n-
99{
\n-
100 return d_format;
\n-
101}
\n-
102
\n-
103} // End of section namespace SILLY
\n-
104
\n+
48public:
\n+
53 virtual ~DataSource();
\n+
58 virtual const byte * getDataPtr() const = 0;
\n+
64 byte operator[] (size_t offset) const;
\n+
69 virtual size_t getSize() const = 0;
\n+
70};
\n+
71
\n+
72
\n+
73} // End of section namespace SILLY
\n+
74
\n+
75// Inclue inline function when needed
\n+
76#ifdef SILLY_OPT_INLINE
\n+
77#include "SILLYDataSource.icpp"
\n+
78#endif
\n+
79
\n+
80#endif // end of guard _SILLYDataSource_h_
\n+
Simple Image Loading LibrarY namespace.
\n+
This is an abstract class used to provide data to the loader.
\n+
virtual size_t getSize() const =0
Return the size of the data.
\n+
virtual const byte * getDataPtr() const =0
Get raw access to the image data.
\n+
virtual ~DataSource()
Destructor.
\n
\n \n
\n Generated by \"doxygen\"/ 1.9.4\n
\n \n \n", "details": [{"source1": "html2text {}", "source2": "html2text {}", "unified_diff": "@@ -4,21 +4,21 @@\n \n Simple Image Loading LibrarY\u00a00.1.0\n \n * build\n * reproducible-path\n * silly-0.1.0\n * include\n-SILLYImageContext.icpp\n+SILLYDataSource.h\n 1/***********************************************************************\n- 2 filename: SILLYImageContext.icpp\n+ 2 filename: SILLYDataSource.h\n 3 created: 10 Jun 2006\n 4 author: Olivier Delannoy\n 5\n- 6 purpose: Inline definition for ImageContext\n+ 6 purpose: SILLY::DataSource declaration for the SILLY library\n 7*************************************************************************/\n 8/***************************************************************************\n 9 * Copyright (C) 2004 - 2006 Paul D Turner & The CEGUI Development Team\n 10 *\n 11 * Permission is hereby granted, free of charge, to any person obtaining\n 12 * a copy of this software and associated documentation files (the\n 13 * \"Software\"), to deal in the Software without restriction, including\n@@ -35,89 +35,51 @@\n 24 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.\n 25 * IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR\n 26 * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,\n 27 * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR\n 28 * OTHER DEALINGS IN THE SOFTWARE.\n 29\n ***************************************************************************/\n- 30\n- 31// Start of section namespace SILLY\n- 32namespace SILLY\n- 33{\n- 34\n- 35inline ImageContext::ImageContext(size_t width, size_t height)\n- 36 : d_pixels(0), d_length(0), d_width(width), d_height(height),\n-d_currentOffset(0), d_format(PF_RGBA)\n- 37{\n- 38}\n- 39\n- 40\n- 41inline ImageContext::~ImageContext()\n- 42{\n- 43}\n- 44\n- 45\n- 46inline void ImageContext::setDestination(byte* pixels, size_t length,\n-PixelFormat format)\n+ 30#ifndef _SILLYDataSource_h_\n+ 31#define _SILLYDataSource_h_\n+ 32#include \"SILLYBase.h\"\n+ 33\n+ 34// Start of section namespace SILLY\n+ 35namespace SILLY\n+ 36{\n+ 37\n+46class SILLY_EXPORT DataSource\n 47{\n- 48 d_pixels = pixels;\n- 49 d_length = length;\n- 50 d_currentOffset = 0;\n- 51 d_format = format;\n- 52}\n- 53\n- 54inline void ImageContext::setNextPixel(byte red, byte green, byte bleu, byte\n-alpha)\n- 55{\n- 56 //assert(d_currentOffset < d_length && \"ASSERT: try to set a pixel outside\n-of the image\");\n- 57 switch(d_format)\n- 58 {\n- 59 case PF_A1B5G5R5:\n- 60 // The hard part\n- 61 assert(0 && \"ASSERT: Not yet implemented\");\n- 62 break;\n- 63 case PF_RGB:\n- 64 // Ignore alpha channel\n- 65 d_pixels[d_currentOffset++] = red;\n- 66 d_pixels[d_currentOffset++] = green;\n- 67 d_pixels[d_currentOffset++] = bleu;\n- 68 break;\n- 69\n- 70 case PF_RGBA:\n- 71 d_pixels[d_currentOffset++] = red;\n- 72 d_pixels[d_currentOffset++] = green;\n- 73 d_pixels[d_currentOffset++] = bleu;\n- 74 d_pixels[d_currentOffset++] = alpha;\n- 75 break;\n- 76\n- 77 }\n- 78}\n- 79inline size_t ImageContext::getWidth() const\n- 80{\n- 81 return d_width;\n- 82}\n- 83\n- 84inline void ImageContext::setWidth(size_t width)\n- 85{\n- 86 d_width = width;\n- 87}\n- 88\n- 89inline size_t ImageContext::getHeight() const\n- 90{\n- 91 return d_height;\n- 92}\n- 93\n- 94inline void ImageContext::setHeight(size_t height)\n- 95{\n- 96 d_height = height;\n- 97}\n- 98inline PixelFormat ImageContext::getPixelFormat() const\n- 99{\n- 100 return d_format;\n- 101}\n- 102\n- 103} // End of section namespace SILLY\n- 104\n+ 48public:\n+53 virtual ~DataSource();\n+58 virtual const byte * getDataPtr() const = 0;\n+64 byte operator[] (size_t offset) const;\n+69 virtual size_t getSize() const = 0;\n+ 70};\n+ 71\n+ 72\n+ 73} // End of section namespace SILLY\n+ 74\n+ 75// Inclue inline function when needed\n+ 76#ifdef SILLY_OPT_INLINE\n+ 77#include \"SILLYDataSource.icpp\"\n+ 78#endif\n+ 79\n+ 80#endif // end of guard _SILLYDataSource_h_\n+SILLY\n+Simple Image Loading LibrarY namespace.\n+Definition: SILLYJPGImageContext.cpp:46\n+SILLY::DataSource\n+This is an abstract class used to provide data to the loader.\n+Definition: SILLYDataSource.h:47\n+SILLY::DataSource::getSize\n+virtual size_t getSize() const =0\n+Return the size of the data.\n+SILLY::DataSource::getDataPtr\n+virtual const byte * getDataPtr() const =0\n+Get raw access to the image data.\n+SILLY::DataSource::~DataSource\n+virtual ~DataSource()\n+Destructor.\n \n ===============================================================================\n Generated by\u00a0[doxygen] 1.9.4\n"}]}, {"source1": "./usr/share/doc/libsilly-doc/html/a00044_source.html", "source2": "./usr/share/doc/libsilly-doc/html/a00044_source.html", "unified_diff": "@@ -1,15 +1,15 @@\n \n \n \n \n \n \n \n-Simple Image Loading LibrarY: /build/reproducible-path/silly-0.1.0/include/SILLYFileDataSource.h Source File\n+Simple Image Loading LibrarY: /build/reproducible-path/silly-0.1.0/include/SILLYDataSource.icpp Source File\n \n \n \n \n \n \n
\n@@ -39,84 +39,62 @@\n
\n \n
\n
\n-
SILLYFileDataSource.h
\n+
SILLYDataSource.icpp
\n
\n
\n-
1/***********************************************************************
\n-
2 filename: SILLYFileDataSource.h
\n-
3 created: 20 Jul 2006
\n-
4 author: Olivier Delannoy
\n-
5
\n-
6 purpose: Provide file based image loading
\n-
7*************************************************************************/
\n-
8/***************************************************************************
\n-
9 * Copyright (C) 2004 - 2006 Paul D Turner & The CEGUI Development Team
\n-
10 *
\n-
11 * Permission is hereby granted, free of charge, to any person obtaining
\n-
12 * a copy of this software and associated documentation files (the
\n-
13 * "Software"), to deal in the Software without restriction, including
\n-
14 * without limitation the rights to use, copy, modify, merge, publish,
\n-
15 * distribute, sublicense, and/or sell copies of the Software, and to
\n-
16 * permit persons to whom the Software is furnished to do so, subject to
\n-
17 * the following conditions:
\n-
18 *
\n-
19 * The above copyright notice and this permission notice shall be
\n-
20 * included in all copies or substantial portions of the Software.
\n-
21 *
\n-
22 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
\n-
23 * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
\n-
24 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
\n-
25 * IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR
\n-
26 * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
\n-
27 * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
\n-
28 * OTHER DEALINGS IN THE SOFTWARE.
\n-
29 ***************************************************************************/
\n-
30#ifndef _SILLYFileDataSource_h_
\n-
31#define _SILLYFileDataSource_h_
\n-
32#include "SILLYBase.h"
\n-
33#include "SILLYDataSource.h"
\n-
34// Start of section namespace SILLY
\n-
35namespace SILLY
\n-
36{
\n+
1/***********************************************************************
\n+
2 filename: SILLYDataSource.icpp
\n+
3 created: 10 Jun 2006
\n+
4 author: ode@dalfy.dalfy.dyndns.org
\n+
5
\n+
6 purpose: Inline function definition for (F>>>ILE_SANS<<<) class
\n+
7*************************************************************************/
\n+
8/***************************************************************************
\n+
9 * Copyright (C) 2004 - 2006 Paul D Turner & The CEGUI Development Team
\n+
10 *
\n+
11 * Permission is hereby granted, free of charge, to any person obtaining
\n+
12 * a copy of this software and associated documentation files (the
\n+
13 * "Software"), to deal in the Software without restriction, including
\n+
14 * without limitation the rights to use, copy, modify, merge, publish,
\n+
15 * distribute, sublicense, and/or sell copies of the Software, and to
\n+
16 * permit persons to whom the Software is furnished to do so, subject to
\n+
17 * the following conditions:
\n+
18 *
\n+
19 * The above copyright notice and this permission notice shall be
\n+
20 * included in all copies or substantial portions of the Software.
\n+
21 *
\n+
22 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
\n+
23 * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
\n+
24 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
\n+
25 * IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR
\n+
26 * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
\n+
27 * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
\n+
28 * OTHER DEALINGS IN THE SOFTWARE.
\n+
29 ***************************************************************************/
\n+
30
\n+
31// Start of section namespace SILLY
\n+
32namespace SILLY
\n+
33{
\n+
34inline DataSource::~DataSource()
\n+
35{
\n+
36}
\n
37
\n-
48class SILLY_EXPORT FileDataSource : public DataSource
\n-
49{
\n-
50public:
\n-
60 FileDataSource(const char* filename);
\n-\n-
73 bool isValid() const;
\n-
74
\n-
75 const byte* getDataPtr() const;
\n-
76 size_t getSize() const;
\n-
77private:
\n-
78 bool d_error;
\n-
79 byte* d_bytes;
\n-
80 size_t d_size;
\n-
81};
\n-
82
\n-
83
\n-
84} // End of section namespace SILLY
\n-
85
\n-
86// Inclue inline function when needed
\n-
87#ifdef SILLY_OPT_INLINE
\n-
88#include "SILLYFileDataSource.icpp"
\n-
89#endif
\n-
90
\n-
91#endif // end of guard _SILLYFileDataSource_h_
\n-
Simple Image Loading LibrarY namespace.
\n-
This is an abstract class used to provide data to the loader.
\n-
This class allow the loading of an image directly from a file.
\n-
const byte * getDataPtr() const
Get raw access to the image data.
\n-
bool isValid() const
Check wether the loading is successfull or not.
\n-
size_t getSize() const
Return the size of the data.
\n+
38inline byte DataSource::operator[](size_t offset) const
\n+
39{
\n+
40 assert(offset < getSize() && "ASSERT: Trying to access pixel outside of the data");
\n+
41 return getDataPtr()[offset];
\n+
42}
\n+
43
\n+
44} // End of section namespace SILLY
\n+
45
\n
\n \n
\n Generated by \"doxygen\"/ 1.9.4\n
\n \n \n", "details": [{"source1": "html2text {}", "source2": "html2text {}", "unified_diff": "@@ -4,21 +4,21 @@\n \n Simple Image Loading LibrarY\u00a00.1.0\n \n * build\n * reproducible-path\n * silly-0.1.0\n * include\n-SILLYFileDataSource.h\n+SILLYDataSource.icpp\n 1/***********************************************************************\n- 2 filename: SILLYFileDataSource.h\n- 3 created: 20 Jul 2006\n- 4 author: Olivier Delannoy\n+ 2 filename: SILLYDataSource.icpp\n+ 3 created: 10 Jun 2006\n+ 4 author: ode@dalfy.dalfy.dyndns.org\n 5\n- 6 purpose: Provide file based image loading\n+ 6 purpose: Inline function definition for (F>>>ILE_SANS<<<) class\n 7*************************************************************************/\n 8/***************************************************************************\n 9 * Copyright (C) 2004 - 2006 Paul D Turner & The CEGUI Development Team\n 10 *\n 11 * Permission is hereby granted, free of charge, to any person obtaining\n 12 * a copy of this software and associated documentation files (the\n 13 * \"Software\"), to deal in the Software without restriction, including\n@@ -35,60 +35,27 @@\n 24 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.\n 25 * IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR\n 26 * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,\n 27 * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR\n 28 * OTHER DEALINGS IN THE SOFTWARE.\n 29\n ***************************************************************************/\n- 30#ifndef _SILLYFileDataSource_h_\n- 31#define _SILLYFileDataSource_h_\n- 32#include \"SILLYBase.h\"\n- 33#include \"SILLYDataSource.h\"\n- 34// Start of section namespace SILLY\n- 35namespace SILLY\n- 36{\n+ 30\n+ 31// Start of section namespace SILLY\n+ 32namespace SILLY\n+ 33{\n+ 34inline DataSource::~DataSource()\n+ 35{\n+ 36}\n 37\n-48class SILLY_EXPORT FileDataSource : public DataSource\n- 49{\n- 50public:\n- 60 FileDataSource(const char* filename);\n- 64 ~FileDataSource();\n-73 bool isValid() const;\n- 74\n-75 const byte* getDataPtr() const;\n-76 size_t getSize() const;\n- 77private:\n- 78 bool d_error;\n- 79 byte* d_bytes;\n- 80 size_t d_size;\n- 81};\n- 82\n- 83\n- 84} // End of section namespace SILLY\n- 85\n- 86// Inclue inline function when needed\n- 87#ifdef SILLY_OPT_INLINE\n- 88#include \"SILLYFileDataSource.icpp\"\n- 89#endif\n- 90\n- 91#endif // end of guard _SILLYFileDataSource_h_\n-SILLY\n-Simple Image Loading LibrarY namespace.\n-Definition: SILLYJPGImageContext.cpp:46\n-SILLY::DataSource\n-This is an abstract class used to provide data to the loader.\n-Definition: SILLYDataSource.h:47\n-SILLY::FileDataSource\n-This class allow the loading of an image directly from a file.\n-Definition: SILLYFileDataSource.h:49\n-SILLY::FileDataSource::getDataPtr\n-const byte * getDataPtr() const\n-Get raw access to the image data.\n-SILLY::FileDataSource::isValid\n-bool isValid() const\n-Check wether the loading is successfull or not.\n-SILLY::FileDataSource::getSize\n-size_t getSize() const\n-Return the size of the data.\n+ 38inline byte DataSource::operator[](size_t offset) const\n+ 39{\n+ 40 assert(offset < getSize() && \"ASSERT: Trying to access pixel outside of the\n+data\");\n+ 41 return getDataPtr()[offset];\n+ 42}\n+ 43\n+ 44} // End of section namespace SILLY\n+ 45\n \n ===============================================================================\n Generated by\u00a0[doxygen] 1.9.4\n"}]}, {"source1": "./usr/share/doc/libsilly-doc/html/a00047_source.html", "source2": "./usr/share/doc/libsilly-doc/html/a00047_source.html", "unified_diff": "@@ -1,15 +1,15 @@\n \n \n \n \n \n \n \n-Simple Image Loading LibrarY: /build/reproducible-path/silly-0.1.0/include/SILLYImageLoaderManager.h Source File\n+Simple Image Loading LibrarY: /build/reproducible-path/silly-0.1.0/include/SILLYImageContext.h Source File\n \n \n \n \n \n \n
\n@@ -39,23 +39,23 @@\n
\n \n
\n
\n-
SILLYImageLoaderManager.h
\n+
SILLYImageContext.h
\n
\n
\n
1/***********************************************************************
\n-
2 filename: ImageLoaderManager.h
\n+
2 filename: SILLYImageContext.h
\n
3 created: 10 Jun 2006
\n
4 author: Olivier Delannoy
\n
5
\n-
6 purpose: Manage all available loader
\n+
6 purpose: ImageContext is an abstract class used to hide the loader specific data needed during the parsing of an image
\n
7*************************************************************************/
\n
8/***************************************************************************
\n
9 * Copyright (C) 2004 - 2006 Paul D Turner & The CEGUI Development Team
\n
10 *
\n
11 * Permission is hereby granted, free of charge, to any person obtaining
\n
12 * a copy of this software and associated documentation files (the
\n
13 * "Software"), to deal in the Software without restriction, including
\n@@ -71,78 +71,72 @@\n
23 * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
\n
24 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
\n
25 * IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR
\n
26 * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
\n
27 * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
\n
28 * OTHER DEALINGS IN THE SOFTWARE.
\n
29 ***************************************************************************/
\n-
30#ifndef _SILLYImageLoaderManager_h_
\n-
31#define _SILLYImageLoaderManager_h_
\n+
30#ifndef _SILLYImageContext_h_
\n+
31#define _SILLYImageContext_h_
\n
32#include "SILLYBase.h"
\n-
33#include <vector>
\n+
33
\n
34// Start of section namespace SILLY
\n
35namespace SILLY
\n
36{
\n-
37class ImageLoader; // Forward declaration
\n-
42typedef std::vector<ImageLoader*> ImageLoaderList;
\n-
43
\n-
44#if defined(_MSC_VER)
\n-
45
\n-
46# pragma warning(push)
\n-
47
\n-
48# pragma warning(disable : 4251)
\n-
49
\n-
50#endif
\n-
51
\n-
56class SILLY_EXPORT ImageLoaderManager
\n-
57{
\n-
58
\n-
59public:
\n-\n-\n-
74 ImageLoaderList::iterator begin();
\n-
79 ImageLoaderList::iterator end();
\n-
86 void add(ImageLoader* loader);
\n-
87
\n-
88private:
\n-
89 ImageLoaderList d_loaders;
\n-
90
\n-
91public:
\n-
92 static ImageLoaderManager* getSingletonPtr();
\n-
93 static ImageLoaderManager& getSingleton();
\n-
94
\n-
95private:
\n-
96 static ImageLoaderManager* d_instance;
\n-
97
\n-
98 // Disabled operations
\n-\n-\n+
37
\n+
43class SILLY_EXPORT ImageContext
\n+
44{
\n+
45public:
\n+
50 virtual ~ImageContext();
\n+
51
\n+
56 void setDestination(byte* pixels, size_t length, PixelFormat format);
\n+
57
\n+
62 void setNextPixel(byte red, byte green, byte bleu, byte alpha);
\n+
63
\n+
64 size_t getWidth() const;
\n+
65 size_t getHeight() const;
\n+
66 PixelFormat getPixelFormat() const;
\n+
67
\n+
74 bool flipVertically();
\n+
75 protected:
\n+
76 void setWidth(size_t width);
\n+
77
\n+
78 void setHeight(size_t height);
\n+
79
\n+
88 ImageContext(size_t width, size_t height);
\n+
89
\n+
90private:
\n+
91 byte* d_pixels;
\n+
92 size_t d_length;
\n+
93 size_t d_width;
\n+
94 size_t d_height;
\n+
95 size_t d_currentOffset;
\n+
96 PixelFormat d_format;
\n+
97
\n+
98 // Disabled operation
\n+\n+
100 ImageContext& operator=(ImageContext&);
\n
101};
\n-
102
\n-
103#if defined(_MSC_VER)
\n-
104
\n-
105# pragma warning(pop)
\n-
106
\n-
107#endif
\n-
108
\n-
109} // End of section namespace SILLY
\n+
102
\n+
103
\n+
104} // End of section namespace SILLY
\n+
105
\n+
106// Inclue inline function when needed
\n+
107#ifdef SILLY_OPT_INLINE
\n+
108#include "SILLYImageContext.icpp"
\n+
109#endif
\n
110
\n-
111// Inclue inline function when needed
\n-
112#ifdef SILLY_OPT_INLINE
\n-
113#include "SILLYImageLoaderManager.icpp"
\n-
114#endif
\n-
115
\n-
116#endif // end of guard _SILLYImageLoaderManager_h_
\n+
111#endif // end of guard _SILLYImageContext_h_
\n
Simple Image Loading LibrarY namespace.
\n-
std::vector< ImageLoader * > ImageLoaderList
Typename for a collection of image loader.
\n-
This is an abstract class that define the interface of all image loader.
\n-
Manage the list of all supported ImageLoader.
\n-
void add(ImageLoader *loader)
Register an ImageLoader object.
\n-
ImageLoaderList::iterator begin()
Get an iterator to the first ImageLoader registered.
\n-
ImageLoaderList::iterator end()
Get an iterator to the first not registered ImageLoader.
\n+
PixelFormat
List all pixel format supported.
Definition: SILLYBase.h:60
\n+
Store the data needed by an ImageLoader object during the parsing of an image.
\n+
void setNextPixel(byte red, byte green, byte bleu, byte alpha)
Set the next pixel of the image.
\n+
void setDestination(byte *pixels, size_t length, PixelFormat format)
Set the destination of the loading.
\n+
ImageContext(size_t width, size_t height)
Constructor.
\n+
virtual ~ImageContext()
Destructor.
\n
\n \n
\n Generated by \"doxygen\"/ 1.9.4\n
\n \n \n", "details": [{"source1": "html2text {}", "source2": "html2text {}", "unified_diff": "@@ -4,21 +4,22 @@\n \n Simple Image Loading LibrarY\u00a00.1.0\n \n * build\n * reproducible-path\n * silly-0.1.0\n * include\n-SILLYImageLoaderManager.h\n+SILLYImageContext.h\n 1/***********************************************************************\n- 2 filename: ImageLoaderManager.h\n+ 2 filename: SILLYImageContext.h\n 3 created: 10 Jun 2006\n 4 author: Olivier Delannoy\n 5\n- 6 purpose: Manage all available loader\n+ 6 purpose: ImageContext is an abstract class used to hide the loader specific\n+data needed during the parsing of an image\n 7*************************************************************************/\n 8/***************************************************************************\n 9 * Copyright (C) 2004 - 2006 Paul D Turner & The CEGUI Development Team\n 10 *\n 11 * Permission is hereby granted, free of charge, to any person obtaining\n 12 * a copy of this software and associated documentation files (the\n 13 * \"Software\"), to deal in the Software without restriction, including\n@@ -35,89 +36,83 @@\n 24 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.\n 25 * IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR\n 26 * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,\n 27 * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR\n 28 * OTHER DEALINGS IN THE SOFTWARE.\n 29\n ***************************************************************************/\n- 30#ifndef _SILLYImageLoaderManager_h_\n- 31#define _SILLYImageLoaderManager_h_\n+ 30#ifndef _SILLYImageContext_h_\n+ 31#define _SILLYImageContext_h_\n 32#include \"SILLYBase.h\"\n- 33#include \n+ 33\n 34// Start of section namespace SILLY\n 35namespace SILLY\n 36{\n- 37class ImageLoader; // Forward declaration\n-42typedef std::vector ImageLoaderList;\n- 43\n- 44#if defined(_MSC_VER)\n- 45\n- 46# pragma warning(push)\n- 47\n- 48# pragma warning(disable : 4251)\n- 49\n- 50#endif\n+ 37\n+43class SILLY_EXPORT ImageContext\n+ 44{\n+ 45public:\n+50 virtual ~ImageContext();\n 51\n-56class SILLY_EXPORT ImageLoaderManager\n- 57{\n- 58\n- 59public:\n- 64 ImageLoaderManager();\n- 69 ~ImageLoaderManager();\n-74 ImageLoaderList::iterator begin();\n-79 ImageLoaderList::iterator end();\n-86 void add(ImageLoader* loader);\n- 87\n- 88private:\n- 89 ImageLoaderList d_loaders;\n- 90\n- 91public:\n- 92 static ImageLoaderManager* getSingletonPtr();\n- 93 static ImageLoaderManager& getSingleton();\n- 94\n- 95private:\n- 96 static ImageLoaderManager* d_instance;\n+56 void setDestination(byte* pixels, size_t length, PixelFormat format);\n+ 57\n+62 void setNextPixel(byte red, byte green, byte bleu, byte alpha);\n+ 63\n+ 64 size_t getWidth() const;\n+ 65 size_t getHeight() const;\n+ 66 PixelFormat getPixelFormat() const;\n+ 67\n+ 74 bool flipVertically();\n+ 75 protected:\n+ 76 void setWidth(size_t width);\n+ 77\n+ 78 void setHeight(size_t height);\n+ 79\n+88 ImageContext(size_t width, size_t height);\n+ 89\n+ 90private:\n+ 91 byte* d_pixels;\n+ 92 size_t d_length;\n+ 93 size_t d_width;\n+ 94 size_t d_height;\n+ 95 size_t d_currentOffset;\n+ 96 PixelFormat d_format;\n 97\n- 98 // Disabled operations\n- 99 ImageLoaderManager(ImageLoaderManager&);\n- 100 ImageLoaderManager& operator=(ImageLoaderManager&);\n+ 98 // Disabled operation\n+ 99 ImageContext(ImageContext&);\n+ 100 ImageContext& operator=(ImageContext&);\n 101};\n 102\n- 103#if defined(_MSC_VER)\n- 104\n- 105# pragma warning(pop)\n- 106\n- 107#endif\n- 108\n- 109} // End of section namespace SILLY\n+ 103\n+ 104} // End of section namespace SILLY\n+ 105\n+ 106// Inclue inline function when needed\n+ 107#ifdef SILLY_OPT_INLINE\n+ 108#include \"SILLYImageContext.icpp\"\n+ 109#endif\n 110\n- 111// Inclue inline function when needed\n- 112#ifdef SILLY_OPT_INLINE\n- 113#include \"SILLYImageLoaderManager.icpp\"\n- 114#endif\n- 115\n- 116#endif // end of guard _SILLYImageLoaderManager_h_\n+ 111#endif // end of guard _SILLYImageContext_h_\n SILLY\n Simple Image Loading LibrarY namespace.\n Definition: SILLYJPGImageContext.cpp:46\n-SILLY::ImageLoaderList\n-std::vector< ImageLoader * > ImageLoaderList\n-Typename for a collection of image loader.\n-Definition: SILLYImageLoaderManager.h:42\n-SILLY::ImageLoader\n-This is an abstract class that define the interface of all image loader.\n-Definition: SILLYImageLoader.h:47\n-SILLY::ImageLoaderManager\n-Manage the list of all supported ImageLoader.\n-Definition: SILLYImageLoaderManager.h:57\n-SILLY::ImageLoaderManager::add\n-void add(ImageLoader *loader)\n-Register an ImageLoader object.\n-SILLY::ImageLoaderManager::begin\n-ImageLoaderList::iterator begin()\n-Get an iterator to the first ImageLoader registered.\n-SILLY::ImageLoaderManager::end\n-ImageLoaderList::iterator end()\n-Get an iterator to the first not registered ImageLoader.\n+SILLY::PixelFormat\n+PixelFormat\n+List all pixel format supported.\n+Definition: SILLYBase.h:60\n+SILLY::ImageContext\n+Store the data needed by an ImageLoader object during the parsing of an image.\n+Definition: SILLYImageContext.h:44\n+SILLY::ImageContext::setNextPixel\n+void setNextPixel(byte red, byte green, byte bleu, byte alpha)\n+Set the next pixel of the image.\n+SILLY::ImageContext::setDestination\n+void setDestination(byte *pixels, size_t length, PixelFormat format)\n+Set the destination of the loading.\n+SILLY::ImageContext::ImageContext\n+ImageContext(size_t width, size_t height)\n+Constructor.\n+SILLY::ImageContext::~ImageContext\n+virtual ~ImageContext()\n+Destructor.\n \n ===============================================================================\n Generated by\u00a0[doxygen] 1.9.4\n"}]}, {"source1": "./usr/share/doc/libsilly-doc/html/a00050_source.html", "source2": "./usr/share/doc/libsilly-doc/html/a00050_source.html", "unified_diff": "@@ -1,15 +1,15 @@\n \n \n \n \n \n \n \n-Simple Image Loading LibrarY: /build/reproducible-path/silly-0.1.0/include/loaders/SILLYTGAImageLoader.h Source File\n+Simple Image Loading LibrarY: /build/reproducible-path/silly-0.1.0/include/loaders/SILLYJPGImageContext.icpp Source File\n \n \n \n \n \n \n
\n@@ -39,84 +39,53 @@\n
\n \n
\n
\n-
SILLYTGAImageLoader.h
\n+
SILLYJPGImageContext.icpp
\n
\n
\n-
1/***********************************************************************
\n-
2 filename: SILLYTGAImageLoader.h
\n-
3 created: 11 Jun 2006
\n-
4 author: Olivier Delannoy
\n-
5
\n-
6 purpose: Declaration of the TGAImageLoader class
\n-
7*************************************************************************/
\n-
8/***************************************************************************
\n-
9 * Copyright (C) 2004 - 2006 Paul D Turner & The CEGUI Development Team
\n-
10 *
\n-
11 * Permission is hereby granted, free of charge, to any person obtaining
\n-
12 * a copy of this software and associated documentation files (the
\n-
13 * "Software"), to deal in the Software without restriction, including
\n-
14 * without limitation the rights to use, copy, modify, merge, publish,
\n-
15 * distribute, sublicense, and/or sell copies of the Software, and to
\n-
16 * permit persons to whom the Software is furnished to do so, subject to
\n-
17 * the following conditions:
\n-
18 *
\n-
19 * The above copyright notice and this permission notice shall be
\n-
20 * included in all copies or substantial portions of the Software.
\n-
21 *
\n-
22 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
\n-
23 * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
\n-
24 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
\n-
25 * IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR
\n-
26 * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
\n-
27 * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
\n-
28 * OTHER DEALINGS IN THE SOFTWARE.
\n-
29 ***************************************************************************/
\n-
30#ifndef _SILLYTGAImageLoader_h_
\n-
31#define _SILLYTGAImageLoader_h_
\n-
32#include "SILLYBase.h"
\n-
33#include "SILLYImageLoader.h"
\n-
34// Start of section namespace SILLY
\n-
35namespace SILLY
\n-
36{
\n-
37class TGAImageContext;
\n-\n-
44{
\n-
45public:
\n-\n-\n-
48 ImageContext* loadHeader(PixelFormat& formatSource, DataSource* data);
\n-
49 bool loadImageData(PixelOrigin origin,
\n-
50 DataSource* data,
\n-
51 ImageContext* context);
\n-
52private:
\n-
53
\n-
54};
\n-
55
\n-
56} // End of section namespace SILLY
\n-
57
\n-
58// Inclue inline function when needed
\n-
59#ifdef SILLY_OPT_INLINE
\n-
60#include "SILLYTGAImageLoader.icpp"
\n-
61#endif
\n-
62
\n-
63#endif // end of guard _SILLYTGAImageLoader_h_
\n-
Simple Image Loading LibrarY namespace.
\n-
PixelFormat
List all pixel format supported.
Definition: SILLYBase.h:60
\n-
PixelOrigin
List all pixel origin supported.
Definition: SILLYBase.h:71
\n-
Loader for Targa image.
\n-
ImageContext * loadHeader(PixelFormat &formatSource, DataSource *data)
Parse the header of the image and fill the header struct.
\n-
bool loadImageData(PixelOrigin origin, DataSource *data, ImageContext *context)
Parse the pixels data of the image and fill the header struct.
\n-
This is an abstract class used to provide data to the loader.
\n-
Store the data needed by an ImageLoader object during the parsing of an image.
\n-
This is an abstract class that define the interface of all image loader.
\n+
1/***********************************************************************
\n+
2 filename: SILLYJPGImageContext.icpp
\n+
3 created: 11 Jun 2006
\n+
4 author: Olivier Delannoy
\n+
5
\n+
6 purpose: Inline definition for JPG context
\n+
7*************************************************************************/
\n+
8/***************************************************************************
\n+
9 * Copyright (C) 2004 - 2006 Paul D Turner & The CEGUI Development Team
\n+
10 *
\n+
11 * Permission is hereby granted, free of charge, to any person obtaining
\n+
12 * a copy of this software and associated documentation files (the
\n+
13 * "Software"), to deal in the Software without restriction, including
\n+
14 * without limitation the rights to use, copy, modify, merge, publish,
\n+
15 * distribute, sublicense, and/or sell copies of the Software, and to
\n+
16 * permit persons to whom the Software is furnished to do so, subject to
\n+
17 * the following conditions:
\n+
18 *
\n+
19 * The above copyright notice and this permission notice shall be
\n+
20 * included in all copies or substantial portions of the Software.
\n+
21 *
\n+
22 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
\n+
23 * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
\n+
24 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
\n+
25 * IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR
\n+
26 * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
\n+
27 * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
\n+
28 * OTHER DEALINGS IN THE SOFTWARE.
\n+
29 ***************************************************************************/
\n+
30
\n+
31// Start of section namespace SILLY
\n+
32namespace SILLY
\n+
33{
\n+
34
\n+
35} // End of section namespace SILLY
\n+
36
\n
\n \n
\n Generated by \"doxygen\"/ 1.9.4\n
\n \n \n", "details": [{"source1": "html2text {}", "source2": "html2text {}", "unified_diff": "@@ -5,21 +5,21 @@\n Simple Image Loading LibrarY\u00a00.1.0\n \n * build\n * reproducible-path\n * silly-0.1.0\n * include\n * loaders\n-SILLYTGAImageLoader.h\n+SILLYJPGImageContext.icpp\n 1/***********************************************************************\n- 2 filename: SILLYTGAImageLoader.h\n+ 2 filename: SILLYJPGImageContext.icpp\n 3 created: 11 Jun 2006\n 4 author: Olivier Delannoy\n 5\n- 6 purpose: Declaration of the TGAImageLoader class\n+ 6 purpose: Inline definition for JPG context\n 7*************************************************************************/\n 8/***************************************************************************\n 9 * Copyright (C) 2004 - 2006 Paul D Turner & The CEGUI Development Team\n 10 *\n 11 * Permission is hereby granted, free of charge, to any person obtaining\n 12 * a copy of this software and associated documentation files (the\n 13 * \"Software\"), to deal in the Software without restriction, including\n@@ -36,70 +36,17 @@\n 24 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.\n 25 * IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR\n 26 * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,\n 27 * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR\n 28 * OTHER DEALINGS IN THE SOFTWARE.\n 29\n ***************************************************************************/\n- 30#ifndef _SILLYTGAImageLoader_h_\n- 31#define _SILLYTGAImageLoader_h_\n- 32#include \"SILLYBase.h\"\n- 33#include \"SILLYImageLoader.h\"\n- 34// Start of section namespace SILLY\n- 35namespace SILLY\n- 36{\n- 37class TGAImageContext;\n-43class TGAImageLoader : public ImageLoader\n- 44{\n- 45public:\n- 46 TGAImageLoader();\n- 47 ~TGAImageLoader();\n- 48 ImageContext* loadHeader(PixelFormat& formatSource, DataSource* data);\n- 49 bool loadImageData(PixelOrigin origin,\n- 50 DataSource* data,\n- 51 ImageContext* context);\n- 52private:\n- 53\n- 54};\n- 55\n- 56} // End of section namespace SILLY\n- 57\n- 58// Inclue inline function when needed\n- 59#ifdef SILLY_OPT_INLINE\n- 60#include \"SILLYTGAImageLoader.icpp\"\n- 61#endif\n- 62\n- 63#endif // end of guard _SILLYTGAImageLoader_h_\n-SILLY\n-Simple Image Loading LibrarY namespace.\n-Definition: SILLYJPGImageContext.cpp:46\n-SILLY::PixelFormat\n-PixelFormat\n-List all pixel format supported.\n-Definition: SILLYBase.h:60\n-SILLY::PixelOrigin\n-PixelOrigin\n-List all pixel origin supported.\n-Definition: SILLYBase.h:71\n-SILLY::TGAImageLoader\n-Loader for Targa image.\n-Definition: SILLYTGAImageLoader.h:44\n-SILLY::TGAImageLoader::loadHeader\n-ImageContext * loadHeader(PixelFormat &formatSource, DataSource *data)\n-Parse the header of the image and fill the header struct.\n-Definition: SILLYTGAImageLoader.cpp:74\n-SILLY::TGAImageLoader::loadImageData\n-bool loadImageData(PixelOrigin origin, DataSource *data, ImageContext *context)\n-Parse the pixels data of the image and fill the header struct.\n-Definition: SILLYTGAImageLoader.cpp:134\n-SILLY::DataSource\n-This is an abstract class used to provide data to the loader.\n-Definition: SILLYDataSource.h:47\n-SILLY::ImageContext\n-Store the data needed by an ImageLoader object during the parsing of an image.\n-Definition: SILLYImageContext.h:44\n-SILLY::ImageLoader\n-This is an abstract class that define the interface of all image loader.\n-Definition: SILLYImageLoader.h:47\n+ 30\n+ 31// Start of section namespace SILLY\n+ 32namespace SILLY\n+ 33{\n+ 34\n+ 35} // End of section namespace SILLY\n+ 36\n \n ===============================================================================\n Generated by\u00a0[doxygen] 1.9.4\n"}]}, {"source1": "./usr/share/doc/libsilly-doc/html/a00053_source.html", "source2": "./usr/share/doc/libsilly-doc/html/a00053_source.html", "unified_diff": "@@ -1,15 +1,15 @@\n \n \n \n \n \n \n \n-Simple Image Loading LibrarY: /build/reproducible-path/silly-0.1.0/include/loaders/SILLYJPGImageContext.icpp Source File\n+Simple Image Loading LibrarY: /build/reproducible-path/silly-0.1.0/include/loaders/SILLYTGAImageLoader.h Source File\n \n \n \n \n \n \n
\n@@ -39,53 +39,84 @@\n
\n \n
\n
\n-
SILLYJPGImageContext.icpp
\n+
SILLYTGAImageLoader.h
\n
\n
\n-
1/***********************************************************************
\n-
2 filename: SILLYJPGImageContext.icpp
\n-
3 created: 11 Jun 2006
\n-
4 author: Olivier Delannoy
\n-
5
\n-
6 purpose: Inline definition for JPG context
\n-
7*************************************************************************/
\n-
8/***************************************************************************
\n-
9 * Copyright (C) 2004 - 2006 Paul D Turner & The CEGUI Development Team
\n-
10 *
\n-
11 * Permission is hereby granted, free of charge, to any person obtaining
\n-
12 * a copy of this software and associated documentation files (the
\n-
13 * "Software"), to deal in the Software without restriction, including
\n-
14 * without limitation the rights to use, copy, modify, merge, publish,
\n-
15 * distribute, sublicense, and/or sell copies of the Software, and to
\n-
16 * permit persons to whom the Software is furnished to do so, subject to
\n-
17 * the following conditions:
\n-
18 *
\n-
19 * The above copyright notice and this permission notice shall be
\n-
20 * included in all copies or substantial portions of the Software.
\n-
21 *
\n-
22 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
\n-
23 * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
\n-
24 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
\n-
25 * IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR
\n-
26 * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
\n-
27 * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
\n-
28 * OTHER DEALINGS IN THE SOFTWARE.
\n-
29 ***************************************************************************/
\n-
30
\n-
31// Start of section namespace SILLY
\n-
32namespace SILLY
\n-
33{
\n-
34
\n-
35} // End of section namespace SILLY
\n-
36
\n+
1/***********************************************************************
\n+
2 filename: SILLYTGAImageLoader.h
\n+
3 created: 11 Jun 2006
\n+
4 author: Olivier Delannoy
\n+
5
\n+
6 purpose: Declaration of the TGAImageLoader class
\n+
7*************************************************************************/
\n+
8/***************************************************************************
\n+
9 * Copyright (C) 2004 - 2006 Paul D Turner & The CEGUI Development Team
\n+
10 *
\n+
11 * Permission is hereby granted, free of charge, to any person obtaining
\n+
12 * a copy of this software and associated documentation files (the
\n+
13 * "Software"), to deal in the Software without restriction, including
\n+
14 * without limitation the rights to use, copy, modify, merge, publish,
\n+
15 * distribute, sublicense, and/or sell copies of the Software, and to
\n+
16 * permit persons to whom the Software is furnished to do so, subject to
\n+
17 * the following conditions:
\n+
18 *
\n+
19 * The above copyright notice and this permission notice shall be
\n+
20 * included in all copies or substantial portions of the Software.
\n+
21 *
\n+
22 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
\n+
23 * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
\n+
24 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
\n+
25 * IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR
\n+
26 * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
\n+
27 * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
\n+
28 * OTHER DEALINGS IN THE SOFTWARE.
\n+
29 ***************************************************************************/
\n+
30#ifndef _SILLYTGAImageLoader_h_
\n+
31#define _SILLYTGAImageLoader_h_
\n+
32#include "SILLYBase.h"
\n+
33#include "SILLYImageLoader.h"
\n+
34// Start of section namespace SILLY
\n+
35namespace SILLY
\n+
36{
\n+
37class TGAImageContext;
\n+\n+
44{
\n+
45public:
\n+\n+\n+
48 ImageContext* loadHeader(PixelFormat& formatSource, DataSource* data);
\n+
49 bool loadImageData(PixelOrigin origin,
\n+
50 DataSource* data,
\n+
51 ImageContext* context);
\n+
52private:
\n+
53
\n+
54};
\n+
55
\n+
56} // End of section namespace SILLY
\n+
57
\n+
58// Inclue inline function when needed
\n+
59#ifdef SILLY_OPT_INLINE
\n+
60#include "SILLYTGAImageLoader.icpp"
\n+
61#endif
\n+
62
\n+
63#endif // end of guard _SILLYTGAImageLoader_h_
\n+
Simple Image Loading LibrarY namespace.
\n+
PixelFormat
List all pixel format supported.
Definition: SILLYBase.h:60
\n+
PixelOrigin
List all pixel origin supported.
Definition: SILLYBase.h:71
\n+
Loader for Targa image.
\n+
ImageContext * loadHeader(PixelFormat &formatSource, DataSource *data)
Parse the header of the image and fill the header struct.
\n+
bool loadImageData(PixelOrigin origin, DataSource *data, ImageContext *context)
Parse the pixels data of the image and fill the header struct.
\n+
This is an abstract class used to provide data to the loader.
\n+
Store the data needed by an ImageLoader object during the parsing of an image.
\n+
This is an abstract class that define the interface of all image loader.
\n
\n \n
\n Generated by \"doxygen\"/ 1.9.4\n
\n \n \n", "details": [{"source1": "html2text {}", "source2": "html2text {}", "unified_diff": "@@ -5,21 +5,21 @@\n Simple Image Loading LibrarY\u00a00.1.0\n \n * build\n * reproducible-path\n * silly-0.1.0\n * include\n * loaders\n-SILLYJPGImageContext.icpp\n+SILLYTGAImageLoader.h\n 1/***********************************************************************\n- 2 filename: SILLYJPGImageContext.icpp\n+ 2 filename: SILLYTGAImageLoader.h\n 3 created: 11 Jun 2006\n 4 author: Olivier Delannoy\n 5\n- 6 purpose: Inline definition for JPG context\n+ 6 purpose: Declaration of the TGAImageLoader class\n 7*************************************************************************/\n 8/***************************************************************************\n 9 * Copyright (C) 2004 - 2006 Paul D Turner & The CEGUI Development Team\n 10 *\n 11 * Permission is hereby granted, free of charge, to any person obtaining\n 12 * a copy of this software and associated documentation files (the\n 13 * \"Software\"), to deal in the Software without restriction, including\n@@ -36,17 +36,70 @@\n 24 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.\n 25 * IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR\n 26 * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,\n 27 * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR\n 28 * OTHER DEALINGS IN THE SOFTWARE.\n 29\n ***************************************************************************/\n- 30\n- 31// Start of section namespace SILLY\n- 32namespace SILLY\n- 33{\n- 34\n- 35} // End of section namespace SILLY\n- 36\n+ 30#ifndef _SILLYTGAImageLoader_h_\n+ 31#define _SILLYTGAImageLoader_h_\n+ 32#include \"SILLYBase.h\"\n+ 33#include \"SILLYImageLoader.h\"\n+ 34// Start of section namespace SILLY\n+ 35namespace SILLY\n+ 36{\n+ 37class TGAImageContext;\n+43class TGAImageLoader : public ImageLoader\n+ 44{\n+ 45public:\n+ 46 TGAImageLoader();\n+ 47 ~TGAImageLoader();\n+ 48 ImageContext* loadHeader(PixelFormat& formatSource, DataSource* data);\n+ 49 bool loadImageData(PixelOrigin origin,\n+ 50 DataSource* data,\n+ 51 ImageContext* context);\n+ 52private:\n+ 53\n+ 54};\n+ 55\n+ 56} // End of section namespace SILLY\n+ 57\n+ 58// Inclue inline function when needed\n+ 59#ifdef SILLY_OPT_INLINE\n+ 60#include \"SILLYTGAImageLoader.icpp\"\n+ 61#endif\n+ 62\n+ 63#endif // end of guard _SILLYTGAImageLoader_h_\n+SILLY\n+Simple Image Loading LibrarY namespace.\n+Definition: SILLYJPGImageContext.cpp:46\n+SILLY::PixelFormat\n+PixelFormat\n+List all pixel format supported.\n+Definition: SILLYBase.h:60\n+SILLY::PixelOrigin\n+PixelOrigin\n+List all pixel origin supported.\n+Definition: SILLYBase.h:71\n+SILLY::TGAImageLoader\n+Loader for Targa image.\n+Definition: SILLYTGAImageLoader.h:44\n+SILLY::TGAImageLoader::loadHeader\n+ImageContext * loadHeader(PixelFormat &formatSource, DataSource *data)\n+Parse the header of the image and fill the header struct.\n+Definition: SILLYTGAImageLoader.cpp:74\n+SILLY::TGAImageLoader::loadImageData\n+bool loadImageData(PixelOrigin origin, DataSource *data, ImageContext *context)\n+Parse the pixels data of the image and fill the header struct.\n+Definition: SILLYTGAImageLoader.cpp:134\n+SILLY::DataSource\n+This is an abstract class used to provide data to the loader.\n+Definition: SILLYDataSource.h:47\n+SILLY::ImageContext\n+Store the data needed by an ImageLoader object during the parsing of an image.\n+Definition: SILLYImageContext.h:44\n+SILLY::ImageLoader\n+This is an abstract class that define the interface of all image loader.\n+Definition: SILLYImageLoader.h:47\n \n ===============================================================================\n Generated by\u00a0[doxygen] 1.9.4\n"}]}, {"source1": "./usr/share/doc/libsilly-doc/html/a00056_source.html", "source2": "./usr/share/doc/libsilly-doc/html/a00056_source.html", "unified_diff": "@@ -1,15 +1,15 @@\n \n \n \n \n \n \n \n-Simple Image Loading LibrarY: /build/reproducible-path/silly-0.1.0/include/loaders/SILLYPNGImageLoader.h Source File\n+Simple Image Loading LibrarY: /build/reproducible-path/silly-0.1.0/include/loaders/SILLYTGAImageContext.h Source File\n \n \n \n \n \n \n
\n@@ -39,23 +39,23 @@\n
\n \n
\n
\n-
SILLYPNGImageLoader.h
\n+
SILLYTGAImageContext.h
\n
\n
\n
1/***********************************************************************
\n-
2 filename: SILLYPNGImageLoader.h
\n+
2 filename: SILLYTGAImageContext.h
\n
3 created: 11 Jun 2006
\n
4 author: Olivier Delannoy
\n
5
\n-
6 purpose: Declaration of the PNGImageLoader class
\n+
6 purpose: Declaration of the TGAImageContext class
\n
7*************************************************************************/
\n
8/***************************************************************************
\n
9 * Copyright (C) 2004 - 2006 Paul D Turner & The CEGUI Development Team
\n
10 *
\n
11 * Permission is hereby granted, free of charge, to any person obtaining
\n
12 * a copy of this software and associated documentation files (the
\n
13 * "Software"), to deal in the Software without restriction, including
\n@@ -71,56 +71,50 @@\n
23 * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
\n
24 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
\n
25 * IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR
\n
26 * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
\n
27 * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
\n
28 * OTHER DEALINGS IN THE SOFTWARE.
\n
29 ***************************************************************************/
\n-
30#ifndef _SILLYPNGImageLoader_h_
\n-
31#define _SILLYPNGImageLoader_h_
\n+
30#ifndef _SILLYTGAImageContext_h_
\n+
31#define _SILLYTGAImageContext_h_
\n
32#include "SILLYBase.h"
\n-
33#include "SILLYImageLoader.h"
\n-
34#include "SILLYDataSource.h"
\n-
35// Start of section namespace SILLY
\n-
36namespace SILLY
\n-
37{
\n-\n+
33#include "SILLYImageContext.h"
\n+
34// Start of section namespace SILLY
\n+
35namespace SILLY
\n+
36{
\n+\n
43{
\n
44public:
\n-\n-
46
\n-\n-
48
\n-
49 ImageContext* loadHeader(PixelFormat& formatSource, DataSource* data);
\n-
50
\n-
51 bool loadImageData(PixelOrigin origin,
\n-
52 DataSource* data,
\n-
53 ImageContext* context);
\n-
54private:
\n-
55
\n+
45 TGAImageContext(size_t width, size_t height);
\n+\n+
47
\n+
48private:
\n+
49 byte d_idLength;
\n+
50 byte d_imageType;
\n+
51 byte d_depth;
\n+
52 byte d_description;
\n+
53
\n+
54 friend class TGAImageLoader;
\n+
55
\n
56};
\n
57
\n
58
\n
59} // End of section namespace SILLY
\n
60
\n
61// Inclue inline function when needed
\n
62#ifdef SILLY_OPT_INLINE
\n-
63#include "SILLYPNGImageLoader.icpp"
\n+
63#include "SILLYTGAImageContext.icpp"
\n
64#endif
\n
65
\n-
66#endif // end of guard _SILLYPNGImageLoader_h_
\n+
66#endif // end of guard _SILLYTGAImageContext_h_
\n
Simple Image Loading LibrarY namespace.
\n-
PixelFormat
List all pixel format supported.
Definition: SILLYBase.h:60
\n-
PixelOrigin
List all pixel origin supported.
Definition: SILLYBase.h:71
\n-
Loader for PNG Image.
\n-
ImageContext * loadHeader(PixelFormat &formatSource, DataSource *data)
Parse the header of the image and fill the header struct.
\n-
bool loadImageData(PixelOrigin origin, DataSource *data, ImageContext *context)
Parse the pixels data of the image and fill the header struct.
\n-
This is an abstract class used to provide data to the loader.
\n-
Store the data needed by an ImageLoader object during the parsing of an image.
\n-
This is an abstract class that define the interface of all image loader.
\n+
Image Context for Targa image.
\n+
Loader for Targa image.
\n+
Store the data needed by an ImageLoader object during the parsing of an image.
\n
\n \n
\n Generated by \"doxygen\"/ 1.9.4\n
\n \n \n", "details": [{"source1": "html2text {}", "source2": "html2text {}", "unified_diff": "@@ -5,21 +5,21 @@\n Simple Image Loading LibrarY\u00a00.1.0\n \n * build\n * reproducible-path\n * silly-0.1.0\n * include\n * loaders\n-SILLYPNGImageLoader.h\n+SILLYTGAImageContext.h\n 1/***********************************************************************\n- 2 filename: SILLYPNGImageLoader.h\n+ 2 filename: SILLYTGAImageContext.h\n 3 created: 11 Jun 2006\n 4 author: Olivier Delannoy\n 5\n- 6 purpose: Declaration of the PNGImageLoader class\n+ 6 purpose: Declaration of the TGAImageContext class\n 7*************************************************************************/\n 8/***************************************************************************\n 9 * Copyright (C) 2004 - 2006 Paul D Turner & The CEGUI Development Team\n 10 *\n 11 * Permission is hereby granted, free of charge, to any person obtaining\n 12 * a copy of this software and associated documentation files (the\n 13 * \"Software\"), to deal in the Software without restriction, including\n@@ -36,74 +36,54 @@\n 24 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.\n 25 * IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR\n 26 * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,\n 27 * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR\n 28 * OTHER DEALINGS IN THE SOFTWARE.\n 29\n ***************************************************************************/\n- 30#ifndef _SILLYPNGImageLoader_h_\n- 31#define _SILLYPNGImageLoader_h_\n+ 30#ifndef _SILLYTGAImageContext_h_\n+ 31#define _SILLYTGAImageContext_h_\n 32#include \"SILLYBase.h\"\n- 33#include \"SILLYImageLoader.h\"\n- 34#include \"SILLYDataSource.h\"\n- 35// Start of section namespace SILLY\n- 36namespace SILLY\n- 37{\n-42class PNGImageLoader : public ImageLoader\n+ 33#include \"SILLYImageContext.h\"\n+ 34// Start of section namespace SILLY\n+ 35namespace SILLY\n+ 36{\n+42class TGAImageContext : public ImageContext\n 43{\n 44public:\n- 45 PNGImageLoader();\n- 46\n- 47 ~PNGImageLoader();\n- 48\n- 49 ImageContext* loadHeader(PixelFormat& formatSource, DataSource* data);\n- 50\n- 51 bool loadImageData(PixelOrigin origin,\n- 52 DataSource* data,\n- 53 ImageContext* context);\n- 54private:\n+ 45 TGAImageContext(size_t width, size_t height);\n+ 46 ~TGAImageContext();\n+ 47\n+ 48private:\n+ 49 byte d_idLength;\n+ 50 byte d_imageType;\n+ 51 byte d_depth;\n+ 52 byte d_description;\n+ 53\n+ 54 friend class TGAImageLoader;\n 55\n 56};\n 57\n 58\n 59} // End of section namespace SILLY\n 60\n 61// Inclue inline function when needed\n 62#ifdef SILLY_OPT_INLINE\n- 63#include \"SILLYPNGImageLoader.icpp\"\n+ 63#include \"SILLYTGAImageContext.icpp\"\n 64#endif\n 65\n- 66#endif // end of guard _SILLYPNGImageLoader_h_\n+ 66#endif // end of guard _SILLYTGAImageContext_h_\n SILLY\n Simple Image Loading LibrarY namespace.\n Definition: SILLYJPGImageContext.cpp:46\n-SILLY::PixelFormat\n-PixelFormat\n-List all pixel format supported.\n-Definition: SILLYBase.h:60\n-SILLY::PixelOrigin\n-PixelOrigin\n-List all pixel origin supported.\n-Definition: SILLYBase.h:71\n-SILLY::PNGImageLoader\n-Loader for PNG Image.\n-Definition: SILLYPNGImageLoader.h:43\n-SILLY::PNGImageLoader::loadHeader\n-ImageContext * loadHeader(PixelFormat &formatSource, DataSource *data)\n-Parse the header of the image and fill the header struct.\n-Definition: SILLYPNGImageLoader.cpp:88\n-SILLY::PNGImageLoader::loadImageData\n-bool loadImageData(PixelOrigin origin, DataSource *data, ImageContext *context)\n-Parse the pixels data of the image and fill the header struct.\n-Definition: SILLYPNGImageLoader.cpp:154\n-SILLY::DataSource\n-This is an abstract class used to provide data to the loader.\n-Definition: SILLYDataSource.h:47\n+SILLY::TGAImageContext\n+Image Context for Targa image.\n+Definition: SILLYTGAImageContext.h:43\n+SILLY::TGAImageLoader\n+Loader for Targa image.\n+Definition: SILLYTGAImageLoader.h:44\n SILLY::ImageContext\n Store the data needed by an ImageLoader object during the parsing of an image.\n Definition: SILLYImageContext.h:44\n-SILLY::ImageLoader\n-This is an abstract class that define the interface of all image loader.\n-Definition: SILLYImageLoader.h:47\n \n ===============================================================================\n Generated by\u00a0[doxygen] 1.9.4\n"}]}, {"source1": "./usr/share/doc/libsilly-doc/html/a00059_source.html", "source2": "./usr/share/doc/libsilly-doc/html/a00059_source.html", "unified_diff": "@@ -1,15 +1,15 @@\n \n \n \n \n \n \n \n-Simple Image Loading LibrarY: /build/reproducible-path/silly-0.1.0/include/loaders/SILLYPNGImageLoader.icpp Source File\n+Simple Image Loading LibrarY: /build/reproducible-path/silly-0.1.0/include/loaders/SILLYPNGImageLoader.h Source File\n \n \n \n \n \n \n
\n@@ -39,53 +39,88 @@\n
\n \n
\n
\n-
SILLYPNGImageLoader.icpp
\n+
SILLYPNGImageLoader.h
\n
\n
\n-
1/***********************************************************************
\n-
2 filename: SILLYPNGImageLoader.icpp
\n-
3 created: 11 Jun 2006
\n-
4 author: Olivier Delannoy
\n-
5
\n-
6 purpose: Inline definition for PNGImageLoader
\n-
7*************************************************************************/
\n-
8/***************************************************************************
\n-
9 * Copyright (C) 2004 - 2006 Paul D Turner & The CEGUI Development Team
\n-
10 *
\n-
11 * Permission is hereby granted, free of charge, to any person obtaining
\n-
12 * a copy of this software and associated documentation files (the
\n-
13 * "Software"), to deal in the Software without restriction, including
\n-
14 * without limitation the rights to use, copy, modify, merge, publish,
\n-
15 * distribute, sublicense, and/or sell copies of the Software, and to
\n-
16 * permit persons to whom the Software is furnished to do so, subject to
\n-
17 * the following conditions:
\n-
18 *
\n-
19 * The above copyright notice and this permission notice shall be
\n-
20 * included in all copies or substantial portions of the Software.
\n-
21 *
\n-
22 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
\n-
23 * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
\n-
24 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
\n-
25 * IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR
\n-
26 * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
\n-
27 * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
\n-
28 * OTHER DEALINGS IN THE SOFTWARE.
\n-
29 ***************************************************************************/
\n-
30
\n-
31// Start of section namespace SILLY
\n-
32namespace SILLY
\n-
33{
\n-
34
\n-
35} // End of section namespace SILLY
\n-
36
\n+
1/***********************************************************************
\n+
2 filename: SILLYPNGImageLoader.h
\n+
3 created: 11 Jun 2006
\n+
4 author: Olivier Delannoy
\n+
5
\n+
6 purpose: Declaration of the PNGImageLoader class
\n+
7*************************************************************************/
\n+
8/***************************************************************************
\n+
9 * Copyright (C) 2004 - 2006 Paul D Turner & The CEGUI Development Team
\n+
10 *
\n+
11 * Permission is hereby granted, free of charge, to any person obtaining
\n+
12 * a copy of this software and associated documentation files (the
\n+
13 * "Software"), to deal in the Software without restriction, including
\n+
14 * without limitation the rights to use, copy, modify, merge, publish,
\n+
15 * distribute, sublicense, and/or sell copies of the Software, and to
\n+
16 * permit persons to whom the Software is furnished to do so, subject to
\n+
17 * the following conditions:
\n+
18 *
\n+
19 * The above copyright notice and this permission notice shall be
\n+
20 * included in all copies or substantial portions of the Software.
\n+
21 *
\n+
22 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
\n+
23 * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
\n+
24 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
\n+
25 * IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR
\n+
26 * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
\n+
27 * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
\n+
28 * OTHER DEALINGS IN THE SOFTWARE.
\n+
29 ***************************************************************************/
\n+
30#ifndef _SILLYPNGImageLoader_h_
\n+
31#define _SILLYPNGImageLoader_h_
\n+
32#include "SILLYBase.h"
\n+
33#include "SILLYImageLoader.h"
\n+
34#include "SILLYDataSource.h"
\n+
35// Start of section namespace SILLY
\n+
36namespace SILLY
\n+
37{
\n+\n+
43{
\n+
44public:
\n+\n+
46
\n+\n+
48
\n+
49 ImageContext* loadHeader(PixelFormat& formatSource, DataSource* data);
\n+
50
\n+
51 bool loadImageData(PixelOrigin origin,
\n+
52 DataSource* data,
\n+
53 ImageContext* context);
\n+
54private:
\n+
55
\n+
56};
\n+
57
\n+
58
\n+
59} // End of section namespace SILLY
\n+
60
\n+
61// Inclue inline function when needed
\n+
62#ifdef SILLY_OPT_INLINE
\n+
63#include "SILLYPNGImageLoader.icpp"
\n+
64#endif
\n+
65
\n+
66#endif // end of guard _SILLYPNGImageLoader_h_
\n+
Simple Image Loading LibrarY namespace.
\n+
PixelFormat
List all pixel format supported.
Definition: SILLYBase.h:60
\n+
PixelOrigin
List all pixel origin supported.
Definition: SILLYBase.h:71
\n+
Loader for PNG Image.
\n+
ImageContext * loadHeader(PixelFormat &formatSource, DataSource *data)
Parse the header of the image and fill the header struct.
\n+
bool loadImageData(PixelOrigin origin, DataSource *data, ImageContext *context)
Parse the pixels data of the image and fill the header struct.
\n+
This is an abstract class used to provide data to the loader.
\n+
Store the data needed by an ImageLoader object during the parsing of an image.
\n+
This is an abstract class that define the interface of all image loader.
\n
\n \n
\n Generated by \"doxygen\"/ 1.9.4\n
\n \n \n", "details": [{"source1": "html2text {}", "source2": "html2text {}", "unified_diff": "@@ -5,21 +5,21 @@\n Simple Image Loading LibrarY\u00a00.1.0\n \n * build\n * reproducible-path\n * silly-0.1.0\n * include\n * loaders\n-SILLYPNGImageLoader.icpp\n+SILLYPNGImageLoader.h\n 1/***********************************************************************\n- 2 filename: SILLYPNGImageLoader.icpp\n+ 2 filename: SILLYPNGImageLoader.h\n 3 created: 11 Jun 2006\n 4 author: Olivier Delannoy\n 5\n- 6 purpose: Inline definition for PNGImageLoader\n+ 6 purpose: Declaration of the PNGImageLoader class\n 7*************************************************************************/\n 8/***************************************************************************\n 9 * Copyright (C) 2004 - 2006 Paul D Turner & The CEGUI Development Team\n 10 *\n 11 * Permission is hereby granted, free of charge, to any person obtaining\n 12 * a copy of this software and associated documentation files (the\n 13 * \"Software\"), to deal in the Software without restriction, including\n@@ -36,17 +36,74 @@\n 24 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.\n 25 * IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR\n 26 * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,\n 27 * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR\n 28 * OTHER DEALINGS IN THE SOFTWARE.\n 29\n ***************************************************************************/\n- 30\n- 31// Start of section namespace SILLY\n- 32namespace SILLY\n- 33{\n- 34\n- 35} // End of section namespace SILLY\n- 36\n+ 30#ifndef _SILLYPNGImageLoader_h_\n+ 31#define _SILLYPNGImageLoader_h_\n+ 32#include \"SILLYBase.h\"\n+ 33#include \"SILLYImageLoader.h\"\n+ 34#include \"SILLYDataSource.h\"\n+ 35// Start of section namespace SILLY\n+ 36namespace SILLY\n+ 37{\n+42class PNGImageLoader : public ImageLoader\n+ 43{\n+ 44public:\n+ 45 PNGImageLoader();\n+ 46\n+ 47 ~PNGImageLoader();\n+ 48\n+ 49 ImageContext* loadHeader(PixelFormat& formatSource, DataSource* data);\n+ 50\n+ 51 bool loadImageData(PixelOrigin origin,\n+ 52 DataSource* data,\n+ 53 ImageContext* context);\n+ 54private:\n+ 55\n+ 56};\n+ 57\n+ 58\n+ 59} // End of section namespace SILLY\n+ 60\n+ 61// Inclue inline function when needed\n+ 62#ifdef SILLY_OPT_INLINE\n+ 63#include \"SILLYPNGImageLoader.icpp\"\n+ 64#endif\n+ 65\n+ 66#endif // end of guard _SILLYPNGImageLoader_h_\n+SILLY\n+Simple Image Loading LibrarY namespace.\n+Definition: SILLYJPGImageContext.cpp:46\n+SILLY::PixelFormat\n+PixelFormat\n+List all pixel format supported.\n+Definition: SILLYBase.h:60\n+SILLY::PixelOrigin\n+PixelOrigin\n+List all pixel origin supported.\n+Definition: SILLYBase.h:71\n+SILLY::PNGImageLoader\n+Loader for PNG Image.\n+Definition: SILLYPNGImageLoader.h:43\n+SILLY::PNGImageLoader::loadHeader\n+ImageContext * loadHeader(PixelFormat &formatSource, DataSource *data)\n+Parse the header of the image and fill the header struct.\n+Definition: SILLYPNGImageLoader.cpp:88\n+SILLY::PNGImageLoader::loadImageData\n+bool loadImageData(PixelOrigin origin, DataSource *data, ImageContext *context)\n+Parse the pixels data of the image and fill the header struct.\n+Definition: SILLYPNGImageLoader.cpp:154\n+SILLY::DataSource\n+This is an abstract class used to provide data to the loader.\n+Definition: SILLYDataSource.h:47\n+SILLY::ImageContext\n+Store the data needed by an ImageLoader object during the parsing of an image.\n+Definition: SILLYImageContext.h:44\n+SILLY::ImageLoader\n+This is an abstract class that define the interface of all image loader.\n+Definition: SILLYImageLoader.h:47\n \n ===============================================================================\n Generated by\u00a0[doxygen] 1.9.4\n"}]}, {"source1": "./usr/share/doc/libsilly-doc/html/a00062_source.html", "source2": "./usr/share/doc/libsilly-doc/html/a00062_source.html", "unified_diff": "@@ -1,15 +1,15 @@\n \n \n \n \n \n \n \n-Simple Image Loading LibrarY: /build/reproducible-path/silly-0.1.0/include/loaders/SILLYTGAImageContext.icpp Source File\n+Simple Image Loading LibrarY: /build/reproducible-path/silly-0.1.0/include/loaders/SILLYTGAImageLoader.icpp Source File\n \n \n \n \n \n \n
\n@@ -39,23 +39,23 @@\n
\n \n
\n
\n-
SILLYTGAImageContext.icpp
\n+
SILLYTGAImageLoader.icpp
\n
\n
\n
1/***********************************************************************
\n-
2 filename: SILLYTGAImageContext.icpp
\n+
2 filename: SILLYTGAImageLoader.icpp
\n
3 created: 11 Jun 2006
\n
4 author: Olivier Delannoy
\n
5
\n-
6 purpose: Inline definition for TGAImageContext class
\n+
6 purpose: Inline defintion of TGAImageLoader class
\n
7*************************************************************************/
\n
8/***************************************************************************
\n
9 * Copyright (C) 2004 - 2006 Paul D Turner & The CEGUI Development Team
\n
10 *
\n
11 * Permission is hereby granted, free of charge, to any person obtaining
\n
12 * a copy of this software and associated documentation files (the
\n
13 * "Software"), to deal in the Software without restriction, including
\n@@ -75,25 +75,17 @@\n
27 * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
\n
28 * OTHER DEALINGS IN THE SOFTWARE.
\n
29 ***************************************************************************/
\n
30
\n
31// Start of section namespace SILLY
\n
32namespace SILLY
\n
33{
\n-
34inline TGAImageContext::TGAImageContext(size_t width, size_t height)
\n-
35 : ImageContext(width, height)
\n-
36{
\n-
37}
\n-
38
\n-
39inline TGAImageContext::~TGAImageContext()
\n-
40{
\n-
41}
\n-
42
\n-
43} // End of section namespace SILLY
\n-
44
\n+
34
\n+
35} // End of section namespace SILLY
\n+
36
\n
\n \n
\n Generated by \"doxygen\"/ 1.9.4\n
\n \n \n", "details": [{"source1": "html2text {}", "source2": "html2text {}", "unified_diff": "@@ -5,21 +5,21 @@\n Simple Image Loading LibrarY\u00a00.1.0\n \n * build\n * reproducible-path\n * silly-0.1.0\n * include\n * loaders\n-SILLYTGAImageContext.icpp\n+SILLYTGAImageLoader.icpp\n 1/***********************************************************************\n- 2 filename: SILLYTGAImageContext.icpp\n+ 2 filename: SILLYTGAImageLoader.icpp\n 3 created: 11 Jun 2006\n 4 author: Olivier Delannoy\n 5\n- 6 purpose: Inline definition for TGAImageContext class\n+ 6 purpose: Inline defintion of TGAImageLoader class\n 7*************************************************************************/\n 8/***************************************************************************\n 9 * Copyright (C) 2004 - 2006 Paul D Turner & The CEGUI Development Team\n 10 *\n 11 * Permission is hereby granted, free of charge, to any person obtaining\n 12 * a copy of this software and associated documentation files (the\n 13 * \"Software\"), to deal in the Software without restriction, including\n@@ -40,21 +40,13 @@\n 28 * OTHER DEALINGS IN THE SOFTWARE.\n 29\n ***************************************************************************/\n 30\n 31// Start of section namespace SILLY\n 32namespace SILLY\n 33{\n- 34inline TGAImageContext::TGAImageContext(size_t width, size_t height)\n- 35 : ImageContext(width, height)\n- 36{\n- 37}\n- 38\n- 39inline TGAImageContext::~TGAImageContext()\n- 40{\n- 41}\n- 42\n- 43} // End of section namespace SILLY\n- 44\n+ 34\n+ 35} // End of section namespace SILLY\n+ 36\n \n ===============================================================================\n Generated by\u00a0[doxygen] 1.9.4\n"}]}, {"source1": "./usr/share/doc/libsilly-doc/html/a00065_source.html", "source2": "./usr/share/doc/libsilly-doc/html/a00065_source.html", "unified_diff": "@@ -1,15 +1,15 @@\n \n \n \n \n \n \n \n-Simple Image Loading LibrarY: /build/reproducible-path/silly-0.1.0/include/loaders/SILLYJPGImageContext.h Source File\n+Simple Image Loading LibrarY: /build/reproducible-path/silly-0.1.0/include/loaders/SILLYPNGImageContext.icpp Source File\n \n \n \n \n \n \n
\n@@ -39,92 +39,53 @@\n
\n \n
\n
\n-
SILLYJPGImageContext.h
\n+
SILLYPNGImageContext.icpp
\n
\n
\n-
1/***********************************************************************
\n-
2 filename: SILLYJPGImageContext.h
\n-
3 created: 11 Jun 2006
\n-
4 author: Olivier Delannoy
\n-
5
\n-
6 purpose: Declaration of the JPGImageContext class
\n-
7*************************************************************************/
\n-
8/***************************************************************************
\n-
9 * Copyright (C) 2004 - 2006 Paul D Turner & The CEGUI Development Team
\n-
10 *
\n-
11 * Permission is hereby granted, free of charge, to any person obtaining
\n-
12 * a copy of this software and associated documentation files (the
\n-
13 * "Software"), to deal in the Software without restriction, including
\n-
14 * without limitation the rights to use, copy, modify, merge, publish,
\n-
15 * distribute, sublicense, and/or sell copies of the Software, and to
\n-
16 * permit persons to whom the Software is furnished to do so, subject to
\n-
17 * the following conditions:
\n-
18 *
\n-
19 * The above copyright notice and this permission notice shall be
\n-
20 * included in all copies or substantial portions of the Software.
\n-
21 *
\n-
22 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
\n-
23 * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
\n-
24 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
\n-
25 * IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR
\n-
26 * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
\n-
27 * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
\n-
28 * OTHER DEALINGS IN THE SOFTWARE.
\n-
29 ***************************************************************************/
\n-
30#ifndef _SILLYJPGImageContext_h_
\n-
31#define _SILLYJPGImageContext_h_
\n-
32#include "SILLYBase.h"
\n-
33#include "SILLYImageContext.h"
\n-
34#include "SILLYDataSource.h"
\n-
35// Start of section namespace SILLY
\n-
36#include <setjmp.h>
\n-
37#include <stdio.h>
\n-
38#include <string.h>
\n-
39extern "C"
\n-
40{
\n-
41#include <jpeglib.h>
\n-
42}
\n-
43namespace SILLY
\n-
44{
\n-
45
\n-\n-
57{
\n-
58public:
\n-\n-\n-
61
\n-
62 void setImageSize();
\n-
63
\n-
64
\n-
65 jpeg_source_mgr src_mgr;
\n-
66 jpeg_decompress_struct cinfo;
\n-
67
\n-
68 jpeg_error_mgr d_error_mgr;
\n-
69 jmp_buf setjmp_buffer;
\n-
70 DataSource* d_source;
\n-
71};
\n-
72
\n-
73
\n-
74} // End of section namespace SILLY
\n-
75
\n-
76// Inclue inline function when needed
\n-
77#ifdef SILLY_OPT_INLINE
\n-
78#include "SILLYJPGImageContext.icpp"
\n-
79#endif
\n-
80
\n-
81#endif // end of guard _SILLYJPGImageContext_h_
\n-
Simple Image Loading LibrarY namespace.
\n-
Image Context for JPG image loader.
\n-
This is an abstract class used to provide data to the loader.
\n-
Store the data needed by an ImageLoader object during the parsing of an image.
\n+
1/***********************************************************************
\n+
2 filename: SILLYPNGImageContext.icpp
\n+
3 created: 11 Jun 2006
\n+
4 author: Olivier Delannoy
\n+
5
\n+
6 purpose: Inline definition for PNGImageContext class
\n+
7*************************************************************************/
\n+
8/***************************************************************************
\n+
9 * Copyright (C) 2004 - 2006 Paul D Turner & The CEGUI Development Team
\n+
10 *
\n+
11 * Permission is hereby granted, free of charge, to any person obtaining
\n+
12 * a copy of this software and associated documentation files (the
\n+
13 * "Software"), to deal in the Software without restriction, including
\n+
14 * without limitation the rights to use, copy, modify, merge, publish,
\n+
15 * distribute, sublicense, and/or sell copies of the Software, and to
\n+
16 * permit persons to whom the Software is furnished to do so, subject to
\n+
17 * the following conditions:
\n+
18 *
\n+
19 * The above copyright notice and this permission notice shall be
\n+
20 * included in all copies or substantial portions of the Software.
\n+
21 *
\n+
22 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
\n+
23 * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
\n+
24 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
\n+
25 * IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR
\n+
26 * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
\n+
27 * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
\n+
28 * OTHER DEALINGS IN THE SOFTWARE.
\n+
29 ***************************************************************************/
\n+
30
\n+
31// Start of section namespace SILLY
\n+
32namespace SILLY
\n+
33{
\n+
34
\n+
35} // End of section namespace SILLY
\n+
36
\n
\n \n
\n Generated by \"doxygen\"/ 1.9.4\n
\n \n \n", "details": [{"source1": "html2text {}", "source2": "html2text {}", "unified_diff": "@@ -5,21 +5,21 @@\n Simple Image Loading LibrarY\u00a00.1.0\n \n * build\n * reproducible-path\n * silly-0.1.0\n * include\n * loaders\n-SILLYJPGImageContext.h\n+SILLYPNGImageContext.icpp\n 1/***********************************************************************\n- 2 filename: SILLYJPGImageContext.h\n+ 2 filename: SILLYPNGImageContext.icpp\n 3 created: 11 Jun 2006\n 4 author: Olivier Delannoy\n 5\n- 6 purpose: Declaration of the JPGImageContext class\n+ 6 purpose: Inline definition for PNGImageContext class\n 7*************************************************************************/\n 8/***************************************************************************\n 9 * Copyright (C) 2004 - 2006 Paul D Turner & The CEGUI Development Team\n 10 *\n 11 * Permission is hereby granted, free of charge, to any person obtaining\n 12 * a copy of this software and associated documentation files (the\n 13 * \"Software\"), to deal in the Software without restriction, including\n@@ -36,64 +36,17 @@\n 24 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.\n 25 * IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR\n 26 * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,\n 27 * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR\n 28 * OTHER DEALINGS IN THE SOFTWARE.\n 29\n ***************************************************************************/\n- 30#ifndef _SILLYJPGImageContext_h_\n- 31#define _SILLYJPGImageContext_h_\n- 32#include \"SILLYBase.h\"\n- 33#include \"SILLYImageContext.h\"\n- 34#include \"SILLYDataSource.h\"\n- 35// Start of section namespace SILLY\n- 36#include \n- 37#include \n- 38#include \n- 39extern \"C\"\n- 40{\n- 41#include \n- 42}\n- 43namespace SILLY\n- 44{\n- 45\n-56class JPGImageContext : public ImageContext\n- 57{\n- 58public:\n- 59 JPGImageContext();\n- 60 ~JPGImageContext();\n- 61\n- 62 void setImageSize();\n- 63\n- 64\n- 65 jpeg_source_mgr src_mgr;\n- 66 jpeg_decompress_struct cinfo;\n- 67\n- 68 jpeg_error_mgr d_error_mgr;\n- 69 jmp_buf setjmp_buffer;\n- 70 DataSource* d_source;\n- 71};\n- 72\n- 73\n- 74} // End of section namespace SILLY\n- 75\n- 76// Inclue inline function when needed\n- 77#ifdef SILLY_OPT_INLINE\n- 78#include \"SILLYJPGImageContext.icpp\"\n- 79#endif\n- 80\n- 81#endif // end of guard _SILLYJPGImageContext_h_\n-SILLY\n-Simple Image Loading LibrarY namespace.\n-Definition: SILLYJPGImageContext.cpp:46\n-SILLY::JPGImageContext\n-Image Context for JPG image loader.\n-Definition: SILLYJPGImageContext.h:57\n-SILLY::DataSource\n-This is an abstract class used to provide data to the loader.\n-Definition: SILLYDataSource.h:47\n-SILLY::ImageContext\n-Store the data needed by an ImageLoader object during the parsing of an image.\n-Definition: SILLYImageContext.h:44\n+ 30\n+ 31// Start of section namespace SILLY\n+ 32namespace SILLY\n+ 33{\n+ 34\n+ 35} // End of section namespace SILLY\n+ 36\n \n ===============================================================================\n Generated by\u00a0[doxygen] 1.9.4\n"}]}, {"source1": "./usr/share/doc/libsilly-doc/html/a00068_source.html", "source2": "./usr/share/doc/libsilly-doc/html/a00068_source.html", "unified_diff": "@@ -1,15 +1,15 @@\n \n \n \n \n \n \n \n-Simple Image Loading LibrarY: /build/reproducible-path/silly-0.1.0/include/loaders/SILLYTGAImageLoader.icpp Source File\n+Simple Image Loading LibrarY: /build/reproducible-path/silly-0.1.0/include/loaders/SILLYJPGImageContext.h Source File\n \n \n \n \n \n \n
\n@@ -39,53 +39,92 @@\n
\n \n
\n
\n-
SILLYTGAImageLoader.icpp
\n+
SILLYJPGImageContext.h
\n
\n
\n-
1/***********************************************************************
\n-
2 filename: SILLYTGAImageLoader.icpp
\n-
3 created: 11 Jun 2006
\n-
4 author: Olivier Delannoy
\n-
5
\n-
6 purpose: Inline defintion of TGAImageLoader class
\n-
7*************************************************************************/
\n-
8/***************************************************************************
\n-
9 * Copyright (C) 2004 - 2006 Paul D Turner & The CEGUI Development Team
\n-
10 *
\n-
11 * Permission is hereby granted, free of charge, to any person obtaining
\n-
12 * a copy of this software and associated documentation files (the
\n-
13 * "Software"), to deal in the Software without restriction, including
\n-
14 * without limitation the rights to use, copy, modify, merge, publish,
\n-
15 * distribute, sublicense, and/or sell copies of the Software, and to
\n-
16 * permit persons to whom the Software is furnished to do so, subject to
\n-
17 * the following conditions:
\n-
18 *
\n-
19 * The above copyright notice and this permission notice shall be
\n-
20 * included in all copies or substantial portions of the Software.
\n-
21 *
\n-
22 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
\n-
23 * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
\n-
24 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
\n-
25 * IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR
\n-
26 * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
\n-
27 * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
\n-
28 * OTHER DEALINGS IN THE SOFTWARE.
\n-
29 ***************************************************************************/
\n-
30
\n-
31// Start of section namespace SILLY
\n-
32namespace SILLY
\n-
33{
\n-
34
\n-
35} // End of section namespace SILLY
\n-
36
\n+
1/***********************************************************************
\n+
2 filename: SILLYJPGImageContext.h
\n+
3 created: 11 Jun 2006
\n+
4 author: Olivier Delannoy
\n+
5
\n+
6 purpose: Declaration of the JPGImageContext class
\n+
7*************************************************************************/
\n+
8/***************************************************************************
\n+
9 * Copyright (C) 2004 - 2006 Paul D Turner & The CEGUI Development Team
\n+
10 *
\n+
11 * Permission is hereby granted, free of charge, to any person obtaining
\n+
12 * a copy of this software and associated documentation files (the
\n+
13 * "Software"), to deal in the Software without restriction, including
\n+
14 * without limitation the rights to use, copy, modify, merge, publish,
\n+
15 * distribute, sublicense, and/or sell copies of the Software, and to
\n+
16 * permit persons to whom the Software is furnished to do so, subject to
\n+
17 * the following conditions:
\n+
18 *
\n+
19 * The above copyright notice and this permission notice shall be
\n+
20 * included in all copies or substantial portions of the Software.
\n+
21 *
\n+
22 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
\n+
23 * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
\n+
24 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
\n+
25 * IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR
\n+
26 * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
\n+
27 * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
\n+
28 * OTHER DEALINGS IN THE SOFTWARE.
\n+
29 ***************************************************************************/
\n+
30#ifndef _SILLYJPGImageContext_h_
\n+
31#define _SILLYJPGImageContext_h_
\n+
32#include "SILLYBase.h"
\n+
33#include "SILLYImageContext.h"
\n+
34#include "SILLYDataSource.h"
\n+
35// Start of section namespace SILLY
\n+
36#include <setjmp.h>
\n+
37#include <stdio.h>
\n+
38#include <string.h>
\n+
39extern "C"
\n+
40{
\n+
41#include <jpeglib.h>
\n+
42}
\n+
43namespace SILLY
\n+
44{
\n+
45
\n+\n+
57{
\n+
58public:
\n+\n+\n+
61
\n+
62 void setImageSize();
\n+
63
\n+
64
\n+
65 jpeg_source_mgr src_mgr;
\n+
66 jpeg_decompress_struct cinfo;
\n+
67
\n+
68 jpeg_error_mgr d_error_mgr;
\n+
69 jmp_buf setjmp_buffer;
\n+
70 DataSource* d_source;
\n+
71};
\n+
72
\n+
73
\n+
74} // End of section namespace SILLY
\n+
75
\n+
76// Inclue inline function when needed
\n+
77#ifdef SILLY_OPT_INLINE
\n+
78#include "SILLYJPGImageContext.icpp"
\n+
79#endif
\n+
80
\n+
81#endif // end of guard _SILLYJPGImageContext_h_
\n+
Simple Image Loading LibrarY namespace.
\n+
Image Context for JPG image loader.
\n+
This is an abstract class used to provide data to the loader.
\n+
Store the data needed by an ImageLoader object during the parsing of an image.
\n
\n \n
\n Generated by \"doxygen\"/ 1.9.4\n
\n \n \n", "details": [{"source1": "html2text {}", "source2": "html2text {}", "unified_diff": "@@ -5,21 +5,21 @@\n Simple Image Loading LibrarY\u00a00.1.0\n \n * build\n * reproducible-path\n * silly-0.1.0\n * include\n * loaders\n-SILLYTGAImageLoader.icpp\n+SILLYJPGImageContext.h\n 1/***********************************************************************\n- 2 filename: SILLYTGAImageLoader.icpp\n+ 2 filename: SILLYJPGImageContext.h\n 3 created: 11 Jun 2006\n 4 author: Olivier Delannoy\n 5\n- 6 purpose: Inline defintion of TGAImageLoader class\n+ 6 purpose: Declaration of the JPGImageContext class\n 7*************************************************************************/\n 8/***************************************************************************\n 9 * Copyright (C) 2004 - 2006 Paul D Turner & The CEGUI Development Team\n 10 *\n 11 * Permission is hereby granted, free of charge, to any person obtaining\n 12 * a copy of this software and associated documentation files (the\n 13 * \"Software\"), to deal in the Software without restriction, including\n@@ -36,17 +36,64 @@\n 24 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.\n 25 * IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR\n 26 * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,\n 27 * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR\n 28 * OTHER DEALINGS IN THE SOFTWARE.\n 29\n ***************************************************************************/\n- 30\n- 31// Start of section namespace SILLY\n- 32namespace SILLY\n- 33{\n- 34\n- 35} // End of section namespace SILLY\n- 36\n+ 30#ifndef _SILLYJPGImageContext_h_\n+ 31#define _SILLYJPGImageContext_h_\n+ 32#include \"SILLYBase.h\"\n+ 33#include \"SILLYImageContext.h\"\n+ 34#include \"SILLYDataSource.h\"\n+ 35// Start of section namespace SILLY\n+ 36#include \n+ 37#include \n+ 38#include \n+ 39extern \"C\"\n+ 40{\n+ 41#include \n+ 42}\n+ 43namespace SILLY\n+ 44{\n+ 45\n+56class JPGImageContext : public ImageContext\n+ 57{\n+ 58public:\n+ 59 JPGImageContext();\n+ 60 ~JPGImageContext();\n+ 61\n+ 62 void setImageSize();\n+ 63\n+ 64\n+ 65 jpeg_source_mgr src_mgr;\n+ 66 jpeg_decompress_struct cinfo;\n+ 67\n+ 68 jpeg_error_mgr d_error_mgr;\n+ 69 jmp_buf setjmp_buffer;\n+ 70 DataSource* d_source;\n+ 71};\n+ 72\n+ 73\n+ 74} // End of section namespace SILLY\n+ 75\n+ 76// Inclue inline function when needed\n+ 77#ifdef SILLY_OPT_INLINE\n+ 78#include \"SILLYJPGImageContext.icpp\"\n+ 79#endif\n+ 80\n+ 81#endif // end of guard _SILLYJPGImageContext_h_\n+SILLY\n+Simple Image Loading LibrarY namespace.\n+Definition: SILLYJPGImageContext.cpp:46\n+SILLY::JPGImageContext\n+Image Context for JPG image loader.\n+Definition: SILLYJPGImageContext.h:57\n+SILLY::DataSource\n+This is an abstract class used to provide data to the loader.\n+Definition: SILLYDataSource.h:47\n+SILLY::ImageContext\n+Store the data needed by an ImageLoader object during the parsing of an image.\n+Definition: SILLYImageContext.h:44\n \n ===============================================================================\n Generated by\u00a0[doxygen] 1.9.4\n"}]}, {"source1": "./usr/share/doc/libsilly-doc/html/a00071_source.html", "source2": "./usr/share/doc/libsilly-doc/html/a00071_source.html", "unified_diff": "@@ -1,15 +1,15 @@\n \n \n \n \n \n \n \n-Simple Image Loading LibrarY: /build/reproducible-path/silly-0.1.0/include/loaders/SILLYJPGImageLoader.h Source File\n+Simple Image Loading LibrarY: /build/reproducible-path/silly-0.1.0/include/loaders/SILLYJPGImageLoader.icpp Source File\n \n \n \n \n \n \n
\n@@ -39,82 +39,53 @@\n
\n \n
\n
\n-
SILLYJPGImageLoader.h
\n+
SILLYJPGImageLoader.icpp
\n
\n
\n-
1/***********************************************************************
\n-
2 filename: SILLYJPGImageLoader.h
\n-
3 created: 11 Jun 2006
\n-
4 author: Olivier Delannoy
\n-
5
\n-
6 purpose: Declaration of the JPGImageLoader class
\n-
7*************************************************************************/
\n-
8/***************************************************************************
\n-
9 * Copyright (C) 2004 - 2006 Paul D Turner & The CEGUI Development Team
\n-
10 *
\n-
11 * Permission is hereby granted, free of charge, to any person obtaining
\n-
12 * a copy of this software and associated documentation files (the
\n-
13 * "Software"), to deal in the Software without restriction, including
\n-
14 * without limitation the rights to use, copy, modify, merge, publish,
\n-
15 * distribute, sublicense, and/or sell copies of the Software, and to
\n-
16 * permit persons to whom the Software is furnished to do so, subject to
\n-
17 * the following conditions:
\n-
18 *
\n-
19 * The above copyright notice and this permission notice shall be
\n-
20 * included in all copies or substantial portions of the Software.
\n-
21 *
\n-
22 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
\n-
23 * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
\n-
24 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
\n-
25 * IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR
\n-
26 * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
\n-
27 * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
\n-
28 * OTHER DEALINGS IN THE SOFTWARE.
\n-
29 ***************************************************************************/
\n-
30#ifndef _SILLYJPGImageLoader_h_
\n-
31#define _SILLYJPGImageLoader_h_
\n-
32#include "SILLYBase.h"
\n-
33#include "SILLYImageLoader.h"
\n-
34// Start of section namespace SILLY
\n-
35namespace SILLY
\n-
36{
\n-
37
\n-\n-
43{
\n-
44public:
\n-\n-\n-\n-
48 bool loadImageData(PixelOrigin origin, DataSource* data, ImageContext* context);
\n-
49private:
\n-
50};
\n-
51
\n-
52
\n-
53} // End of section namespace SILLY
\n-
54
\n-
55// Inclue inline function when needed
\n-
56#ifdef SILLY_OPT_INLINE
\n-
57#include "SILLYJPGImageLoader.icpp"
\n-
58#endif
\n-
59
\n-
60#endif // end of guard _SILLYJPGImageLoader_h_
\n-
Simple Image Loading LibrarY namespace.
\n-
PixelFormat
List all pixel format supported.
Definition: SILLYBase.h:60
\n-
PixelOrigin
List all pixel origin supported.
Definition: SILLYBase.h:71
\n-
Loader class for JPG Image.
\n-
bool loadImageData(PixelOrigin origin, DataSource *data, ImageContext *context)
Parse the pixels data of the image and fill the header struct.
\n-
ImageContext * loadHeader(PixelFormat &header, DataSource *data)
Parse the header of the image and fill the header struct.
\n-
This is an abstract class used to provide data to the loader.
\n-
Store the data needed by an ImageLoader object during the parsing of an image.
\n-
This is an abstract class that define the interface of all image loader.
\n+
1/***********************************************************************
\n+
2 filename: SILLYJPGImageLoader.icpp
\n+
3 created: 11 Jun 2006
\n+
4 author: Olivier Delannoy
\n+
5
\n+
6 purpose: Inline definition of JPGImageLoader class
\n+
7*************************************************************************/
\n+
8/***************************************************************************
\n+
9 * Copyright (C) 2004 - 2006 Paul D Turner & The CEGUI Development Team
\n+
10 *
\n+
11 * Permission is hereby granted, free of charge, to any person obtaining
\n+
12 * a copy of this software and associated documentation files (the
\n+
13 * "Software"), to deal in the Software without restriction, including
\n+
14 * without limitation the rights to use, copy, modify, merge, publish,
\n+
15 * distribute, sublicense, and/or sell copies of the Software, and to
\n+
16 * permit persons to whom the Software is furnished to do so, subject to
\n+
17 * the following conditions:
\n+
18 *
\n+
19 * The above copyright notice and this permission notice shall be
\n+
20 * included in all copies or substantial portions of the Software.
\n+
21 *
\n+
22 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
\n+
23 * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
\n+
24 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
\n+
25 * IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR
\n+
26 * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
\n+
27 * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
\n+
28 * OTHER DEALINGS IN THE SOFTWARE.
\n+
29 ***************************************************************************/
\n+
30
\n+
31// Start of section namespace SILLY
\n+
32namespace SILLY
\n+
33{
\n+
34
\n+
35} // End of section namespace SILLY
\n+
36
\n
\n \n
\n Generated by \"doxygen\"/ 1.9.4\n
\n \n \n", "details": [{"source1": "html2text {}", "source2": "html2text {}", "unified_diff": "@@ -5,21 +5,21 @@\n Simple Image Loading LibrarY\u00a00.1.0\n \n * build\n * reproducible-path\n * silly-0.1.0\n * include\n * loaders\n-SILLYJPGImageLoader.h\n+SILLYJPGImageLoader.icpp\n 1/***********************************************************************\n- 2 filename: SILLYJPGImageLoader.h\n+ 2 filename: SILLYJPGImageLoader.icpp\n 3 created: 11 Jun 2006\n 4 author: Olivier Delannoy\n 5\n- 6 purpose: Declaration of the JPGImageLoader class\n+ 6 purpose: Inline definition of JPGImageLoader class\n 7*************************************************************************/\n 8/***************************************************************************\n 9 * Copyright (C) 2004 - 2006 Paul D Turner & The CEGUI Development Team\n 10 *\n 11 * Permission is hereby granted, free of charge, to any person obtaining\n 12 * a copy of this software and associated documentation files (the\n 13 * \"Software\"), to deal in the Software without restriction, including\n@@ -36,69 +36,17 @@\n 24 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.\n 25 * IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR\n 26 * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,\n 27 * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR\n 28 * OTHER DEALINGS IN THE SOFTWARE.\n 29\n ***************************************************************************/\n- 30#ifndef _SILLYJPGImageLoader_h_\n- 31#define _SILLYJPGImageLoader_h_\n- 32#include \"SILLYBase.h\"\n- 33#include \"SILLYImageLoader.h\"\n- 34// Start of section namespace SILLY\n- 35namespace SILLY\n- 36{\n- 37\n-42class JPGImageLoader : public ImageLoader\n- 43{\n- 44public:\n- 45 JPGImageLoader();\n- 46 ~JPGImageLoader();\n- 47 ImageContext* loadHeader(PixelFormat& header, DataSource* data);\n- 48 bool loadImageData(PixelOrigin origin, DataSource* data, ImageContext*\n-context);\n- 49private:\n- 50};\n- 51\n- 52\n- 53} // End of section namespace SILLY\n- 54\n- 55// Inclue inline function when needed\n- 56#ifdef SILLY_OPT_INLINE\n- 57#include \"SILLYJPGImageLoader.icpp\"\n- 58#endif\n- 59\n- 60#endif // end of guard _SILLYJPGImageLoader_h_\n-SILLY\n-Simple Image Loading LibrarY namespace.\n-Definition: SILLYJPGImageContext.cpp:46\n-SILLY::PixelFormat\n-PixelFormat\n-List all pixel format supported.\n-Definition: SILLYBase.h:60\n-SILLY::PixelOrigin\n-PixelOrigin\n-List all pixel origin supported.\n-Definition: SILLYBase.h:71\n-SILLY::JPGImageLoader\n-Loader class for JPG Image.\n-Definition: SILLYJPGImageLoader.h:43\n-SILLY::JPGImageLoader::loadImageData\n-bool loadImageData(PixelOrigin origin, DataSource *data, ImageContext *context)\n-Parse the pixels data of the image and fill the header struct.\n-Definition: SILLYJPGImageLoader.cpp:90\n-SILLY::JPGImageLoader::loadHeader\n-ImageContext * loadHeader(PixelFormat &header, DataSource *data)\n-Parse the header of the image and fill the header struct.\n-Definition: SILLYJPGImageLoader.cpp:56\n-SILLY::DataSource\n-This is an abstract class used to provide data to the loader.\n-Definition: SILLYDataSource.h:47\n-SILLY::ImageContext\n-Store the data needed by an ImageLoader object during the parsing of an image.\n-Definition: SILLYImageContext.h:44\n-SILLY::ImageLoader\n-This is an abstract class that define the interface of all image loader.\n-Definition: SILLYImageLoader.h:47\n+ 30\n+ 31// Start of section namespace SILLY\n+ 32namespace SILLY\n+ 33{\n+ 34\n+ 35} // End of section namespace SILLY\n+ 36\n \n ===============================================================================\n Generated by\u00a0[doxygen] 1.9.4\n"}]}, {"source1": "./usr/share/doc/libsilly-doc/html/a00074_source.html", "source2": "./usr/share/doc/libsilly-doc/html/a00074_source.html", "unified_diff": "@@ -1,15 +1,15 @@\n \n \n \n \n \n \n \n-Simple Image Loading LibrarY: /build/reproducible-path/silly-0.1.0/include/loaders/SILLYPNGImageContext.icpp Source File\n+Simple Image Loading LibrarY: /build/reproducible-path/silly-0.1.0/include/loaders/SILLYPNGImageContext.h Source File\n \n \n \n \n \n \n
\n@@ -39,53 +39,98 @@\n
\n \n
\n
\n-
SILLYPNGImageContext.icpp
\n+
SILLYPNGImageContext.h
\n
\n
\n-
1/***********************************************************************
\n-
2 filename: SILLYPNGImageContext.icpp
\n-
3 created: 11 Jun 2006
\n-
4 author: Olivier Delannoy
\n-
5
\n-
6 purpose: Inline definition for PNGImageContext class
\n-
7*************************************************************************/
\n-
8/***************************************************************************
\n-
9 * Copyright (C) 2004 - 2006 Paul D Turner & The CEGUI Development Team
\n-
10 *
\n-
11 * Permission is hereby granted, free of charge, to any person obtaining
\n-
12 * a copy of this software and associated documentation files (the
\n-
13 * "Software"), to deal in the Software without restriction, including
\n-
14 * without limitation the rights to use, copy, modify, merge, publish,
\n-
15 * distribute, sublicense, and/or sell copies of the Software, and to
\n-
16 * permit persons to whom the Software is furnished to do so, subject to
\n-
17 * the following conditions:
\n-
18 *
\n-
19 * The above copyright notice and this permission notice shall be
\n-
20 * included in all copies or substantial portions of the Software.
\n-
21 *
\n-
22 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
\n-
23 * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
\n-
24 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
\n-
25 * IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR
\n-
26 * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
\n-
27 * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
\n-
28 * OTHER DEALINGS IN THE SOFTWARE.
\n-
29 ***************************************************************************/
\n-
30
\n-
31// Start of section namespace SILLY
\n-
32namespace SILLY
\n-
33{
\n-
34
\n-
35} // End of section namespace SILLY
\n-
36
\n+
1/***********************************************************************
\n+
2 filename: SILLYPNGImageContext.h
\n+
3 created: 11 Jun 2006
\n+
4 author: Olivier Delannoy
\n+
5
\n+
6 purpose: Declaration of the PNGImageContext class
\n+
7*************************************************************************/
\n+
8/***************************************************************************
\n+
9 * Copyright (C) 2004 - 2006 Paul D Turner & The CEGUI Development Team
\n+
10 *
\n+
11 * Permission is hereby granted, free of charge, to any person obtaining
\n+
12 * a copy of this software and associated documentation files (the
\n+
13 * "Software"), to deal in the Software without restriction, including
\n+
14 * without limitation the rights to use, copy, modify, merge, publish,
\n+
15 * distribute, sublicense, and/or sell copies of the Software, and to
\n+
16 * permit persons to whom the Software is furnished to do so, subject to
\n+
17 * the following conditions:
\n+
18 *
\n+
19 * The above copyright notice and this permission notice shall be
\n+
20 * included in all copies or substantial portions of the Software.
\n+
21 *
\n+
22 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
\n+
23 * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
\n+
24 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
\n+
25 * IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR
\n+
26 * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
\n+
27 * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
\n+
28 * OTHER DEALINGS IN THE SOFTWARE.
\n+
29 ***************************************************************************/
\n+
30#ifndef _SILLYPNGImageContext_h_
\n+
31#define _SILLYPNGImageContext_h_
\n+
32#include "SILLYBase.h"
\n+
33#include "SILLYImageContext.h"
\n+
34#include "SILLYDataSource.h"
\n+
35#include <png.h>
\n+
36// Start of section namespace SILLY
\n+
37namespace SILLY
\n+
38{
\n+
39
\n+
45class SILLY_EXPORT PNGImageContext : public ImageContext
\n+
46{
\n+
47public:
\n+\n+\n+
50
\n+
51 int read(png_bytep data, png_size_t length);
\n+
52
\n+
53
\n+
54
\n+
55private:
\n+
56 void setImageSize();
\n+
57
\n+
58 size_t d_offset;
\n+
59
\n+
60 DataSource* d_data;
\n+
61
\n+
62 png_structp d_png_ptr;
\n+
63
\n+
64 png_infop d_info_ptr;
\n+
65
\n+
66 size_t d_bit_depth;
\n+
67 size_t d_num_channels;
\n+
68
\n+
69
\n+
70 friend class PNGImageLoader;
\n+
71};
\n+
72
\n+
73
\n+
74} // End of section namespace SILLY
\n+
75
\n+
76// Inclue inline function when needed
\n+
77#ifdef SILLY_OPT_INLINE
\n+
78#include "SILLYPNGImageContext.icpp"
\n+
79#endif
\n+
80
\n+
81#endif // end of guard _SILLYPNGImageContext_h_
\n+
Simple Image Loading LibrarY namespace.
\n+
Image Context for PNG Image Loader.
\n+
Loader for PNG Image.
\n+
This is an abstract class used to provide data to the loader.
\n+
Store the data needed by an ImageLoader object during the parsing of an image.
\n
\n \n
\n Generated by \"doxygen\"/ 1.9.4\n
\n \n \n", "details": [{"source1": "html2text {}", "source2": "html2text {}", "unified_diff": "@@ -5,21 +5,21 @@\n Simple Image Loading LibrarY\u00a00.1.0\n \n * build\n * reproducible-path\n * silly-0.1.0\n * include\n * loaders\n-SILLYPNGImageContext.icpp\n+SILLYPNGImageContext.h\n 1/***********************************************************************\n- 2 filename: SILLYPNGImageContext.icpp\n+ 2 filename: SILLYPNGImageContext.h\n 3 created: 11 Jun 2006\n 4 author: Olivier Delannoy\n 5\n- 6 purpose: Inline definition for PNGImageContext class\n+ 6 purpose: Declaration of the PNGImageContext class\n 7*************************************************************************/\n 8/***************************************************************************\n 9 * Copyright (C) 2004 - 2006 Paul D Turner & The CEGUI Development Team\n 10 *\n 11 * Permission is hereby granted, free of charge, to any person obtaining\n 12 * a copy of this software and associated documentation files (the\n 13 * \"Software\"), to deal in the Software without restriction, including\n@@ -36,17 +36,72 @@\n 24 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.\n 25 * IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR\n 26 * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,\n 27 * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR\n 28 * OTHER DEALINGS IN THE SOFTWARE.\n 29\n ***************************************************************************/\n- 30\n- 31// Start of section namespace SILLY\n- 32namespace SILLY\n- 33{\n- 34\n- 35} // End of section namespace SILLY\n- 36\n+ 30#ifndef _SILLYPNGImageContext_h_\n+ 31#define _SILLYPNGImageContext_h_\n+ 32#include \"SILLYBase.h\"\n+ 33#include \"SILLYImageContext.h\"\n+ 34#include \"SILLYDataSource.h\"\n+ 35#include \n+ 36// Start of section namespace SILLY\n+ 37namespace SILLY\n+ 38{\n+ 39\n+45class SILLY_EXPORT PNGImageContext : public ImageContext\n+ 46{\n+ 47public:\n+ 48 PNGImageContext(DataSource* data);\n+ 49 ~PNGImageContext();\n+ 50\n+ 51 int read(png_bytep data, png_size_t length);\n+ 52\n+ 53\n+ 54\n+ 55private:\n+ 56 void setImageSize();\n+ 57\n+ 58 size_t d_offset;\n+ 59\n+ 60 DataSource* d_data;\n+ 61\n+ 62 png_structp d_png_ptr;\n+ 63\n+ 64 png_infop d_info_ptr;\n+ 65\n+ 66 size_t d_bit_depth;\n+ 67 size_t d_num_channels;\n+ 68\n+ 69\n+ 70 friend class PNGImageLoader;\n+ 71};\n+ 72\n+ 73\n+ 74} // End of section namespace SILLY\n+ 75\n+ 76// Inclue inline function when needed\n+ 77#ifdef SILLY_OPT_INLINE\n+ 78#include \"SILLYPNGImageContext.icpp\"\n+ 79#endif\n+ 80\n+ 81#endif // end of guard _SILLYPNGImageContext_h_\n+SILLY\n+Simple Image Loading LibrarY namespace.\n+Definition: SILLYJPGImageContext.cpp:46\n+SILLY::PNGImageContext\n+Image Context for PNG Image Loader.\n+Definition: SILLYPNGImageContext.h:46\n+SILLY::PNGImageLoader\n+Loader for PNG Image.\n+Definition: SILLYPNGImageLoader.h:43\n+SILLY::DataSource\n+This is an abstract class used to provide data to the loader.\n+Definition: SILLYDataSource.h:47\n+SILLY::ImageContext\n+Store the data needed by an ImageLoader object during the parsing of an image.\n+Definition: SILLYImageContext.h:44\n \n ===============================================================================\n Generated by\u00a0[doxygen] 1.9.4\n"}]}, {"source1": "./usr/share/doc/libsilly-doc/html/a00077_source.html", "source2": "./usr/share/doc/libsilly-doc/html/a00077_source.html", "unified_diff": "@@ -1,15 +1,15 @@\n \n \n \n \n \n \n \n-Simple Image Loading LibrarY: /build/reproducible-path/silly-0.1.0/include/loaders/SILLYTGAImageContext.h Source File\n+Simple Image Loading LibrarY: /build/reproducible-path/silly-0.1.0/include/loaders/SILLYTGAImageContext.icpp Source File\n \n \n \n \n \n \n
\n@@ -39,82 +39,61 @@\n
\n \n
\n
\n-
SILLYTGAImageContext.h
\n+
SILLYTGAImageContext.icpp
\n
\n
\n-
1/***********************************************************************
\n-
2 filename: SILLYTGAImageContext.h
\n-
3 created: 11 Jun 2006
\n-
4 author: Olivier Delannoy
\n-
5
\n-
6 purpose: Declaration of the TGAImageContext class
\n-
7*************************************************************************/
\n-
8/***************************************************************************
\n-
9 * Copyright (C) 2004 - 2006 Paul D Turner & The CEGUI Development Team
\n-
10 *
\n-
11 * Permission is hereby granted, free of charge, to any person obtaining
\n-
12 * a copy of this software and associated documentation files (the
\n-
13 * "Software"), to deal in the Software without restriction, including
\n-
14 * without limitation the rights to use, copy, modify, merge, publish,
\n-
15 * distribute, sublicense, and/or sell copies of the Software, and to
\n-
16 * permit persons to whom the Software is furnished to do so, subject to
\n-
17 * the following conditions:
\n-
18 *
\n-
19 * The above copyright notice and this permission notice shall be
\n-
20 * included in all copies or substantial portions of the Software.
\n-
21 *
\n-
22 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
\n-
23 * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
\n-
24 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
\n-
25 * IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR
\n-
26 * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
\n-
27 * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
\n-
28 * OTHER DEALINGS IN THE SOFTWARE.
\n-
29 ***************************************************************************/
\n-
30#ifndef _SILLYTGAImageContext_h_
\n-
31#define _SILLYTGAImageContext_h_
\n-
32#include "SILLYBase.h"
\n-
33#include "SILLYImageContext.h"
\n-
34// Start of section namespace SILLY
\n-
35namespace SILLY
\n-
36{
\n-\n-
43{
\n-
44public:
\n-
45 TGAImageContext(size_t width, size_t height);
\n-\n-
47
\n-
48private:
\n-
49 byte d_idLength;
\n-
50 byte d_imageType;
\n-
51 byte d_depth;
\n-
52 byte d_description;
\n-
53
\n-
54 friend class TGAImageLoader;
\n-
55
\n-
56};
\n-
57
\n-
58
\n-
59} // End of section namespace SILLY
\n-
60
\n-
61// Inclue inline function when needed
\n-
62#ifdef SILLY_OPT_INLINE
\n-
63#include "SILLYTGAImageContext.icpp"
\n-
64#endif
\n-
65
\n-
66#endif // end of guard _SILLYTGAImageContext_h_
\n-
Simple Image Loading LibrarY namespace.
\n-
Image Context for Targa image.
\n-
Loader for Targa image.
\n-
Store the data needed by an ImageLoader object during the parsing of an image.
\n+
1/***********************************************************************
\n+
2 filename: SILLYTGAImageContext.icpp
\n+
3 created: 11 Jun 2006
\n+
4 author: Olivier Delannoy
\n+
5
\n+
6 purpose: Inline definition for TGAImageContext class
\n+
7*************************************************************************/
\n+
8/***************************************************************************
\n+
9 * Copyright (C) 2004 - 2006 Paul D Turner & The CEGUI Development Team
\n+
10 *
\n+
11 * Permission is hereby granted, free of charge, to any person obtaining
\n+
12 * a copy of this software and associated documentation files (the
\n+
13 * "Software"), to deal in the Software without restriction, including
\n+
14 * without limitation the rights to use, copy, modify, merge, publish,
\n+
15 * distribute, sublicense, and/or sell copies of the Software, and to
\n+
16 * permit persons to whom the Software is furnished to do so, subject to
\n+
17 * the following conditions:
\n+
18 *
\n+
19 * The above copyright notice and this permission notice shall be
\n+
20 * included in all copies or substantial portions of the Software.
\n+
21 *
\n+
22 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
\n+
23 * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
\n+
24 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
\n+
25 * IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR
\n+
26 * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
\n+
27 * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
\n+
28 * OTHER DEALINGS IN THE SOFTWARE.
\n+
29 ***************************************************************************/
\n+
30
\n+
31// Start of section namespace SILLY
\n+
32namespace SILLY
\n+
33{
\n+
34inline TGAImageContext::TGAImageContext(size_t width, size_t height)
\n+
35 : ImageContext(width, height)
\n+
36{
\n+
37}
\n+
38
\n+
39inline TGAImageContext::~TGAImageContext()
\n+
40{
\n+
41}
\n+
42
\n+
43} // End of section namespace SILLY
\n+
44
\n
\n \n
\n Generated by \"doxygen\"/ 1.9.4\n
\n \n \n", "details": [{"source1": "html2text {}", "source2": "html2text {}", "unified_diff": "@@ -5,21 +5,21 @@\n Simple Image Loading LibrarY\u00a00.1.0\n \n * build\n * reproducible-path\n * silly-0.1.0\n * include\n * loaders\n-SILLYTGAImageContext.h\n+SILLYTGAImageContext.icpp\n 1/***********************************************************************\n- 2 filename: SILLYTGAImageContext.h\n+ 2 filename: SILLYTGAImageContext.icpp\n 3 created: 11 Jun 2006\n 4 author: Olivier Delannoy\n 5\n- 6 purpose: Declaration of the TGAImageContext class\n+ 6 purpose: Inline definition for TGAImageContext class\n 7*************************************************************************/\n 8/***************************************************************************\n 9 * Copyright (C) 2004 - 2006 Paul D Turner & The CEGUI Development Team\n 10 *\n 11 * Permission is hereby granted, free of charge, to any person obtaining\n 12 * a copy of this software and associated documentation files (the\n 13 * \"Software\"), to deal in the Software without restriction, including\n@@ -36,54 +36,25 @@\n 24 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.\n 25 * IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR\n 26 * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,\n 27 * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR\n 28 * OTHER DEALINGS IN THE SOFTWARE.\n 29\n ***************************************************************************/\n- 30#ifndef _SILLYTGAImageContext_h_\n- 31#define _SILLYTGAImageContext_h_\n- 32#include \"SILLYBase.h\"\n- 33#include \"SILLYImageContext.h\"\n- 34// Start of section namespace SILLY\n- 35namespace SILLY\n+ 30\n+ 31// Start of section namespace SILLY\n+ 32namespace SILLY\n+ 33{\n+ 34inline TGAImageContext::TGAImageContext(size_t width, size_t height)\n+ 35 : ImageContext(width, height)\n 36{\n-42class TGAImageContext : public ImageContext\n- 43{\n- 44public:\n- 45 TGAImageContext(size_t width, size_t height);\n- 46 ~TGAImageContext();\n- 47\n- 48private:\n- 49 byte d_idLength;\n- 50 byte d_imageType;\n- 51 byte d_depth;\n- 52 byte d_description;\n- 53\n- 54 friend class TGAImageLoader;\n- 55\n- 56};\n- 57\n- 58\n- 59} // End of section namespace SILLY\n- 60\n- 61// Inclue inline function when needed\n- 62#ifdef SILLY_OPT_INLINE\n- 63#include \"SILLYTGAImageContext.icpp\"\n- 64#endif\n- 65\n- 66#endif // end of guard _SILLYTGAImageContext_h_\n-SILLY\n-Simple Image Loading LibrarY namespace.\n-Definition: SILLYJPGImageContext.cpp:46\n-SILLY::TGAImageContext\n-Image Context for Targa image.\n-Definition: SILLYTGAImageContext.h:43\n-SILLY::TGAImageLoader\n-Loader for Targa image.\n-Definition: SILLYTGAImageLoader.h:44\n-SILLY::ImageContext\n-Store the data needed by an ImageLoader object during the parsing of an image.\n-Definition: SILLYImageContext.h:44\n+ 37}\n+ 38\n+ 39inline TGAImageContext::~TGAImageContext()\n+ 40{\n+ 41}\n+ 42\n+ 43} // End of section namespace SILLY\n+ 44\n \n ===============================================================================\n Generated by\u00a0[doxygen] 1.9.4\n"}]}, {"source1": "./usr/share/doc/libsilly-doc/html/a00080_source.html", "source2": "./usr/share/doc/libsilly-doc/html/a00080_source.html", "unified_diff": "@@ -1,15 +1,15 @@\n \n \n \n \n \n \n \n-Simple Image Loading LibrarY: /build/reproducible-path/silly-0.1.0/include/loaders/SILLYPNGImageContext.h Source File\n+Simple Image Loading LibrarY: /build/reproducible-path/silly-0.1.0/include/loaders/SILLYJPGImageLoader.h Source File\n \n \n \n \n \n \n
\n@@ -39,23 +39,23 @@\n
\n \n
\n
\n-
SILLYPNGImageContext.h
\n+
SILLYJPGImageLoader.h
\n
\n
\n
1/***********************************************************************
\n-
2 filename: SILLYPNGImageContext.h
\n+
2 filename: SILLYJPGImageLoader.h
\n
3 created: 11 Jun 2006
\n
4 author: Olivier Delannoy
\n
5
\n-
6 purpose: Declaration of the PNGImageContext class
\n+
6 purpose: Declaration of the JPGImageLoader class
\n
7*************************************************************************/
\n
8/***************************************************************************
\n
9 * Copyright (C) 2004 - 2006 Paul D Turner & The CEGUI Development Team
\n
10 *
\n
11 * Permission is hereby granted, free of charge, to any person obtaining
\n
12 * a copy of this software and associated documentation files (the
\n
13 * "Software"), to deal in the Software without restriction, including
\n@@ -71,66 +71,50 @@\n
23 * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
\n
24 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
\n
25 * IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR
\n
26 * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
\n
27 * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
\n
28 * OTHER DEALINGS IN THE SOFTWARE.
\n
29 ***************************************************************************/
\n-
30#ifndef _SILLYPNGImageContext_h_
\n-
31#define _SILLYPNGImageContext_h_
\n-
32#include "SILLYBase.h"
\n-
33#include "SILLYImageContext.h"
\n-
34#include "SILLYDataSource.h"
\n-
35#include <png.h>
\n-
36// Start of section namespace SILLY
\n-
37namespace SILLY
\n-
38{
\n-
39
\n-
45class SILLY_EXPORT PNGImageContext : public ImageContext
\n-
46{
\n-
47public:
\n-\n-\n-
50
\n-
51 int read(png_bytep data, png_size_t length);
\n+
30#ifndef _SILLYJPGImageLoader_h_
\n+
31#define _SILLYJPGImageLoader_h_
\n+
32#include "SILLYBase.h"
\n+
33#include "SILLYImageLoader.h"
\n+
34// Start of section namespace SILLY
\n+
35namespace SILLY
\n+
36{
\n+
37
\n+\n+
43{
\n+
44public:
\n+\n+\n+\n+
48 bool loadImageData(PixelOrigin origin, DataSource* data, ImageContext* context);
\n+
49private:
\n+
50};
\n+
51
\n
52
\n-
53
\n-
54
\n-
55private:
\n-
56 void setImageSize();
\n-
57
\n-
58 size_t d_offset;
\n-
59
\n-
60 DataSource* d_data;
\n-
61
\n-
62 png_structp d_png_ptr;
\n-
63
\n-
64 png_infop d_info_ptr;
\n-
65
\n-
66 size_t d_bit_depth;
\n-
67 size_t d_num_channels;
\n-
68
\n-
69
\n-
70 friend class PNGImageLoader;
\n-
71};
\n-
72
\n-
73
\n-
74} // End of section namespace SILLY
\n-
75
\n-
76// Inclue inline function when needed
\n-
77#ifdef SILLY_OPT_INLINE
\n-
78#include "SILLYPNGImageContext.icpp"
\n-
79#endif
\n-
80
\n-
81#endif // end of guard _SILLYPNGImageContext_h_
\n+
53} // End of section namespace SILLY
\n+
54
\n+
55// Inclue inline function when needed
\n+
56#ifdef SILLY_OPT_INLINE
\n+
57#include "SILLYJPGImageLoader.icpp"
\n+
58#endif
\n+
59
\n+
60#endif // end of guard _SILLYJPGImageLoader_h_
\n
Simple Image Loading LibrarY namespace.
\n-
Image Context for PNG Image Loader.
\n-
Loader for PNG Image.
\n-
This is an abstract class used to provide data to the loader.
\n-
Store the data needed by an ImageLoader object during the parsing of an image.
\n+
PixelFormat
List all pixel format supported.
Definition: SILLYBase.h:60
\n+
PixelOrigin
List all pixel origin supported.
Definition: SILLYBase.h:71
\n+
Loader class for JPG Image.
\n+
bool loadImageData(PixelOrigin origin, DataSource *data, ImageContext *context)
Parse the pixels data of the image and fill the header struct.
\n+
ImageContext * loadHeader(PixelFormat &header, DataSource *data)
Parse the header of the image and fill the header struct.
\n+
This is an abstract class used to provide data to the loader.
\n+
Store the data needed by an ImageLoader object during the parsing of an image.
\n+
This is an abstract class that define the interface of all image loader.
\n
\n \n
\n Generated by \"doxygen\"/ 1.9.4\n
\n \n \n", "details": [{"source1": "html2text {}", "source2": "html2text {}", "unified_diff": "@@ -5,21 +5,21 @@\n Simple Image Loading LibrarY\u00a00.1.0\n \n * build\n * reproducible-path\n * silly-0.1.0\n * include\n * loaders\n-SILLYPNGImageContext.h\n+SILLYJPGImageLoader.h\n 1/***********************************************************************\n- 2 filename: SILLYPNGImageContext.h\n+ 2 filename: SILLYJPGImageLoader.h\n 3 created: 11 Jun 2006\n 4 author: Olivier Delannoy\n 5\n- 6 purpose: Declaration of the PNGImageContext class\n+ 6 purpose: Declaration of the JPGImageLoader class\n 7*************************************************************************/\n 8/***************************************************************************\n 9 * Copyright (C) 2004 - 2006 Paul D Turner & The CEGUI Development Team\n 10 *\n 11 * Permission is hereby granted, free of charge, to any person obtaining\n 12 * a copy of this software and associated documentation files (the\n 13 * \"Software\"), to deal in the Software without restriction, including\n@@ -36,72 +36,69 @@\n 24 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.\n 25 * IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR\n 26 * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,\n 27 * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR\n 28 * OTHER DEALINGS IN THE SOFTWARE.\n 29\n ***************************************************************************/\n- 30#ifndef _SILLYPNGImageContext_h_\n- 31#define _SILLYPNGImageContext_h_\n+ 30#ifndef _SILLYJPGImageLoader_h_\n+ 31#define _SILLYJPGImageLoader_h_\n 32#include \"SILLYBase.h\"\n- 33#include \"SILLYImageContext.h\"\n- 34#include \"SILLYDataSource.h\"\n- 35#include \n- 36// Start of section namespace SILLY\n- 37namespace SILLY\n- 38{\n- 39\n-45class SILLY_EXPORT PNGImageContext : public ImageContext\n- 46{\n- 47public:\n- 48 PNGImageContext(DataSource* data);\n- 49 ~PNGImageContext();\n- 50\n- 51 int read(png_bytep data, png_size_t length);\n+ 33#include \"SILLYImageLoader.h\"\n+ 34// Start of section namespace SILLY\n+ 35namespace SILLY\n+ 36{\n+ 37\n+42class JPGImageLoader : public ImageLoader\n+ 43{\n+ 44public:\n+ 45 JPGImageLoader();\n+ 46 ~JPGImageLoader();\n+ 47 ImageContext* loadHeader(PixelFormat& header, DataSource* data);\n+ 48 bool loadImageData(PixelOrigin origin, DataSource* data, ImageContext*\n+context);\n+ 49private:\n+ 50};\n+ 51\n 52\n- 53\n+ 53} // End of section namespace SILLY\n 54\n- 55private:\n- 56 void setImageSize();\n- 57\n- 58 size_t d_offset;\n+ 55// Inclue inline function when needed\n+ 56#ifdef SILLY_OPT_INLINE\n+ 57#include \"SILLYJPGImageLoader.icpp\"\n+ 58#endif\n 59\n- 60 DataSource* d_data;\n- 61\n- 62 png_structp d_png_ptr;\n- 63\n- 64 png_infop d_info_ptr;\n- 65\n- 66 size_t d_bit_depth;\n- 67 size_t d_num_channels;\n- 68\n- 69\n- 70 friend class PNGImageLoader;\n- 71};\n- 72\n- 73\n- 74} // End of section namespace SILLY\n- 75\n- 76// Inclue inline function when needed\n- 77#ifdef SILLY_OPT_INLINE\n- 78#include \"SILLYPNGImageContext.icpp\"\n- 79#endif\n- 80\n- 81#endif // end of guard _SILLYPNGImageContext_h_\n+ 60#endif // end of guard _SILLYJPGImageLoader_h_\n SILLY\n Simple Image Loading LibrarY namespace.\n Definition: SILLYJPGImageContext.cpp:46\n-SILLY::PNGImageContext\n-Image Context for PNG Image Loader.\n-Definition: SILLYPNGImageContext.h:46\n-SILLY::PNGImageLoader\n-Loader for PNG Image.\n-Definition: SILLYPNGImageLoader.h:43\n+SILLY::PixelFormat\n+PixelFormat\n+List all pixel format supported.\n+Definition: SILLYBase.h:60\n+SILLY::PixelOrigin\n+PixelOrigin\n+List all pixel origin supported.\n+Definition: SILLYBase.h:71\n+SILLY::JPGImageLoader\n+Loader class for JPG Image.\n+Definition: SILLYJPGImageLoader.h:43\n+SILLY::JPGImageLoader::loadImageData\n+bool loadImageData(PixelOrigin origin, DataSource *data, ImageContext *context)\n+Parse the pixels data of the image and fill the header struct.\n+Definition: SILLYJPGImageLoader.cpp:90\n+SILLY::JPGImageLoader::loadHeader\n+ImageContext * loadHeader(PixelFormat &header, DataSource *data)\n+Parse the header of the image and fill the header struct.\n+Definition: SILLYJPGImageLoader.cpp:56\n SILLY::DataSource\n This is an abstract class used to provide data to the loader.\n Definition: SILLYDataSource.h:47\n SILLY::ImageContext\n Store the data needed by an ImageLoader object during the parsing of an image.\n Definition: SILLYImageContext.h:44\n+SILLY::ImageLoader\n+This is an abstract class that define the interface of all image loader.\n+Definition: SILLYImageLoader.h:47\n \n ===============================================================================\n Generated by\u00a0[doxygen] 1.9.4\n"}]}, {"source1": "./usr/share/doc/libsilly-doc/html/a00083_source.html", "source2": "./usr/share/doc/libsilly-doc/html/a00083_source.html", "unified_diff": "@@ -1,15 +1,15 @@\n \n \n \n \n \n \n \n-Simple Image Loading LibrarY: /build/reproducible-path/silly-0.1.0/include/loaders/SILLYJPGImageLoader.icpp Source File\n+Simple Image Loading LibrarY: /build/reproducible-path/silly-0.1.0/include/loaders/SILLYPNGImageLoader.icpp Source File\n \n \n \n \n \n \n
\n@@ -39,23 +39,23 @@\n
\n \n
\n
\n-
SILLYJPGImageLoader.icpp
\n+
SILLYPNGImageLoader.icpp
\n
\n
\n
1/***********************************************************************
\n-
2 filename: SILLYJPGImageLoader.icpp
\n+
2 filename: SILLYPNGImageLoader.icpp
\n
3 created: 11 Jun 2006
\n
4 author: Olivier Delannoy
\n
5
\n-
6 purpose: Inline definition of JPGImageLoader class
\n+
6 purpose: Inline definition for PNGImageLoader
\n
7*************************************************************************/
\n
8/***************************************************************************
\n
9 * Copyright (C) 2004 - 2006 Paul D Turner & The CEGUI Development Team
\n
10 *
\n
11 * Permission is hereby granted, free of charge, to any person obtaining
\n
12 * a copy of this software and associated documentation files (the
\n
13 * "Software"), to deal in the Software without restriction, including
\n", "details": [{"source1": "html2text {}", "source2": "html2text {}", "unified_diff": "@@ -5,21 +5,21 @@\n Simple Image Loading LibrarY\u00a00.1.0\n \n * build\n * reproducible-path\n * silly-0.1.0\n * include\n * loaders\n-SILLYJPGImageLoader.icpp\n+SILLYPNGImageLoader.icpp\n 1/***********************************************************************\n- 2 filename: SILLYJPGImageLoader.icpp\n+ 2 filename: SILLYPNGImageLoader.icpp\n 3 created: 11 Jun 2006\n 4 author: Olivier Delannoy\n 5\n- 6 purpose: Inline definition of JPGImageLoader class\n+ 6 purpose: Inline definition for PNGImageLoader\n 7*************************************************************************/\n 8/***************************************************************************\n 9 * Copyright (C) 2004 - 2006 Paul D Turner & The CEGUI Development Team\n 10 *\n 11 * Permission is hereby granted, free of charge, to any person obtaining\n 12 * a copy of this software and associated documentation files (the\n 13 * \"Software\"), to deal in the Software without restriction, including\n"}]}, {"source1": "./usr/share/doc/libsilly-doc/html/a00086_source.html", "source2": "./usr/share/doc/libsilly-doc/html/a00086_source.html", "unified_diff": "@@ -1,15 +1,15 @@\n \n \n \n \n \n \n \n-Simple Image Loading LibrarY: /build/reproducible-path/silly-0.1.0/include/SILLYImageContext.h Source File\n+Simple Image Loading LibrarY: /build/reproducible-path/silly-0.1.0/include/SILLYImageContext.icpp Source File\n \n \n \n \n \n \n
\n@@ -39,104 +39,121 @@\n
\n \n
\n
\n-
SILLYImageContext.h
\n+
SILLYImageContext.icpp
\n
\n
\n-
1/***********************************************************************
\n-
2 filename: SILLYImageContext.h
\n-
3 created: 10 Jun 2006
\n-
4 author: Olivier Delannoy
\n-
5
\n-
6 purpose: ImageContext is an abstract class used to hide the loader specific data needed during the parsing of an image
\n-
7*************************************************************************/
\n-
8/***************************************************************************
\n-
9 * Copyright (C) 2004 - 2006 Paul D Turner & The CEGUI Development Team
\n-
10 *
\n-
11 * Permission is hereby granted, free of charge, to any person obtaining
\n-
12 * a copy of this software and associated documentation files (the
\n-
13 * "Software"), to deal in the Software without restriction, including
\n-
14 * without limitation the rights to use, copy, modify, merge, publish,
\n-
15 * distribute, sublicense, and/or sell copies of the Software, and to
\n-
16 * permit persons to whom the Software is furnished to do so, subject to
\n-
17 * the following conditions:
\n-
18 *
\n-
19 * The above copyright notice and this permission notice shall be
\n-
20 * included in all copies or substantial portions of the Software.
\n-
21 *
\n-
22 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
\n-
23 * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
\n-
24 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
\n-
25 * IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR
\n-
26 * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
\n-
27 * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
\n-
28 * OTHER DEALINGS IN THE SOFTWARE.
\n-
29 ***************************************************************************/
\n-
30#ifndef _SILLYImageContext_h_
\n-
31#define _SILLYImageContext_h_
\n-
32#include "SILLYBase.h"
\n-
33
\n-
34// Start of section namespace SILLY
\n-
35namespace SILLY
\n-
36{
\n-
37
\n-
43class SILLY_EXPORT ImageContext
\n-
44{
\n-
45public:
\n-
50 virtual ~ImageContext();
\n-
51
\n-
56 void setDestination(byte* pixels, size_t length, PixelFormat format);
\n-
57
\n-
62 void setNextPixel(byte red, byte green, byte bleu, byte alpha);
\n-
63
\n-
64 size_t getWidth() const;
\n-
65 size_t getHeight() const;
\n-
66 PixelFormat getPixelFormat() const;
\n-
67
\n-
74 bool flipVertically();
\n-
75 protected:
\n-
76 void setWidth(size_t width);
\n-
77
\n-
78 void setHeight(size_t height);
\n-
79
\n-
88 ImageContext(size_t width, size_t height);
\n-
89
\n-
90private:
\n-
91 byte* d_pixels;
\n-
92 size_t d_length;
\n-
93 size_t d_width;
\n-
94 size_t d_height;
\n-
95 size_t d_currentOffset;
\n-
96 PixelFormat d_format;
\n-
97
\n-
98 // Disabled operation
\n-\n-
100 ImageContext& operator=(ImageContext&);
\n-
101};
\n-
102
\n-
103
\n-
104} // End of section namespace SILLY
\n-
105
\n-
106// Inclue inline function when needed
\n-
107#ifdef SILLY_OPT_INLINE
\n-
108#include "SILLYImageContext.icpp"
\n-
109#endif
\n-
110
\n-
111#endif // end of guard _SILLYImageContext_h_
\n-
Simple Image Loading LibrarY namespace.
\n-
PixelFormat
List all pixel format supported.
Definition: SILLYBase.h:60
\n-
Store the data needed by an ImageLoader object during the parsing of an image.
\n-
void setNextPixel(byte red, byte green, byte bleu, byte alpha)
Set the next pixel of the image.
\n-
void setDestination(byte *pixels, size_t length, PixelFormat format)
Set the destination of the loading.
\n-
ImageContext(size_t width, size_t height)
Constructor.
\n-
virtual ~ImageContext()
Destructor.
\n+
1/***********************************************************************
\n+
2 filename: SILLYImageContext.icpp
\n+
3 created: 10 Jun 2006
\n+
4 author: Olivier Delannoy
\n+
5
\n+
6 purpose: Inline definition for ImageContext
\n+
7*************************************************************************/
\n+
8/***************************************************************************
\n+
9 * Copyright (C) 2004 - 2006 Paul D Turner & The CEGUI Development Team
\n+
10 *
\n+
11 * Permission is hereby granted, free of charge, to any person obtaining
\n+
12 * a copy of this software and associated documentation files (the
\n+
13 * "Software"), to deal in the Software without restriction, including
\n+
14 * without limitation the rights to use, copy, modify, merge, publish,
\n+
15 * distribute, sublicense, and/or sell copies of the Software, and to
\n+
16 * permit persons to whom the Software is furnished to do so, subject to
\n+
17 * the following conditions:
\n+
18 *
\n+
19 * The above copyright notice and this permission notice shall be
\n+
20 * included in all copies or substantial portions of the Software.
\n+
21 *
\n+
22 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
\n+
23 * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
\n+
24 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
\n+
25 * IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR
\n+
26 * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
\n+
27 * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
\n+
28 * OTHER DEALINGS IN THE SOFTWARE.
\n+
29 ***************************************************************************/
\n+
30
\n+
31// Start of section namespace SILLY
\n+
32namespace SILLY
\n+
33{
\n+
34
\n+
35inline ImageContext::ImageContext(size_t width, size_t height)
\n+
36 : d_pixels(0), d_length(0), d_width(width), d_height(height), d_currentOffset(0), d_format(PF_RGBA)
\n+
37{
\n+
38}
\n+
39
\n+
40
\n+
41inline ImageContext::~ImageContext()
\n+
42{
\n+
43}
\n+
44
\n+
45
\n+
46inline void ImageContext::setDestination(byte* pixels, size_t length, PixelFormat format)
\n+
47{
\n+
48 d_pixels = pixels;
\n+
49 d_length = length;
\n+
50 d_currentOffset = 0;
\n+
51 d_format = format;
\n+
52}
\n+
53
\n+
54inline void ImageContext::setNextPixel(byte red, byte green, byte bleu, byte alpha)
\n+
55{
\n+
56 //assert(d_currentOffset < d_length && "ASSERT: try to set a pixel outside of the image");
\n+
57 switch(d_format)
\n+
58 {
\n+
59 case PF_A1B5G5R5:
\n+
60 // The hard part
\n+
61 assert(0 && "ASSERT: Not yet implemented");
\n+
62 break;
\n+
63 case PF_RGB:
\n+
64 // Ignore alpha channel
\n+
65 d_pixels[d_currentOffset++] = red;
\n+
66 d_pixels[d_currentOffset++] = green;
\n+
67 d_pixels[d_currentOffset++] = bleu;
\n+
68 break;
\n+
69
\n+
70 case PF_RGBA:
\n+
71 d_pixels[d_currentOffset++] = red;
\n+
72 d_pixels[d_currentOffset++] = green;
\n+
73 d_pixels[d_currentOffset++] = bleu;
\n+
74 d_pixels[d_currentOffset++] = alpha;
\n+
75 break;
\n+
76
\n+
77 }
\n+
78}
\n+
79inline size_t ImageContext::getWidth() const
\n+
80{
\n+
81 return d_width;
\n+
82}
\n+
83
\n+
84inline void ImageContext::setWidth(size_t width)
\n+
85{
\n+
86 d_width = width;
\n+
87}
\n+
88
\n+
89inline size_t ImageContext::getHeight() const
\n+
90{
\n+
91 return d_height;
\n+
92}
\n+
93
\n+
94inline void ImageContext::setHeight(size_t height)
\n+
95{
\n+
96 d_height = height;
\n+
97}
\n+
98inline PixelFormat ImageContext::getPixelFormat() const
\n+
99{
\n+
100 return d_format;
\n+
101}
\n+
102
\n+
103} // End of section namespace SILLY
\n+
104
\n
\n \n
\n Generated by \"doxygen\"/ 1.9.4\n
\n \n \n", "details": [{"source1": "html2text {}", "source2": "html2text {}", "unified_diff": "@@ -4,22 +4,21 @@\n \n Simple Image Loading LibrarY\u00a00.1.0\n \n * build\n * reproducible-path\n * silly-0.1.0\n * include\n-SILLYImageContext.h\n+SILLYImageContext.icpp\n 1/***********************************************************************\n- 2 filename: SILLYImageContext.h\n+ 2 filename: SILLYImageContext.icpp\n 3 created: 10 Jun 2006\n 4 author: Olivier Delannoy\n 5\n- 6 purpose: ImageContext is an abstract class used to hide the loader specific\n-data needed during the parsing of an image\n+ 6 purpose: Inline definition for ImageContext\n 7*************************************************************************/\n 8/***************************************************************************\n 9 * Copyright (C) 2004 - 2006 Paul D Turner & The CEGUI Development Team\n 10 *\n 11 * Permission is hereby granted, free of charge, to any person obtaining\n 12 * a copy of this software and associated documentation files (the\n 13 * \"Software\"), to deal in the Software without restriction, including\n@@ -36,83 +35,89 @@\n 24 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.\n 25 * IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR\n 26 * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,\n 27 * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR\n 28 * OTHER DEALINGS IN THE SOFTWARE.\n 29\n ***************************************************************************/\n- 30#ifndef _SILLYImageContext_h_\n- 31#define _SILLYImageContext_h_\n- 32#include \"SILLYBase.h\"\n- 33\n- 34// Start of section namespace SILLY\n- 35namespace SILLY\n- 36{\n- 37\n-43class SILLY_EXPORT ImageContext\n- 44{\n- 45public:\n-50 virtual ~ImageContext();\n- 51\n-56 void setDestination(byte* pixels, size_t length, PixelFormat format);\n- 57\n-62 void setNextPixel(byte red, byte green, byte bleu, byte alpha);\n- 63\n- 64 size_t getWidth() const;\n- 65 size_t getHeight() const;\n- 66 PixelFormat getPixelFormat() const;\n- 67\n- 74 bool flipVertically();\n- 75 protected:\n- 76 void setWidth(size_t width);\n- 77\n- 78 void setHeight(size_t height);\n- 79\n-88 ImageContext(size_t width, size_t height);\n- 89\n- 90private:\n- 91 byte* d_pixels;\n- 92 size_t d_length;\n- 93 size_t d_width;\n- 94 size_t d_height;\n- 95 size_t d_currentOffset;\n- 96 PixelFormat d_format;\n- 97\n- 98 // Disabled operation\n- 99 ImageContext(ImageContext&);\n- 100 ImageContext& operator=(ImageContext&);\n- 101};\n+ 30\n+ 31// Start of section namespace SILLY\n+ 32namespace SILLY\n+ 33{\n+ 34\n+ 35inline ImageContext::ImageContext(size_t width, size_t height)\n+ 36 : d_pixels(0), d_length(0), d_width(width), d_height(height),\n+d_currentOffset(0), d_format(PF_RGBA)\n+ 37{\n+ 38}\n+ 39\n+ 40\n+ 41inline ImageContext::~ImageContext()\n+ 42{\n+ 43}\n+ 44\n+ 45\n+ 46inline void ImageContext::setDestination(byte* pixels, size_t length,\n+PixelFormat format)\n+ 47{\n+ 48 d_pixels = pixels;\n+ 49 d_length = length;\n+ 50 d_currentOffset = 0;\n+ 51 d_format = format;\n+ 52}\n+ 53\n+ 54inline void ImageContext::setNextPixel(byte red, byte green, byte bleu, byte\n+alpha)\n+ 55{\n+ 56 //assert(d_currentOffset < d_length && \"ASSERT: try to set a pixel outside\n+of the image\");\n+ 57 switch(d_format)\n+ 58 {\n+ 59 case PF_A1B5G5R5:\n+ 60 // The hard part\n+ 61 assert(0 && \"ASSERT: Not yet implemented\");\n+ 62 break;\n+ 63 case PF_RGB:\n+ 64 // Ignore alpha channel\n+ 65 d_pixels[d_currentOffset++] = red;\n+ 66 d_pixels[d_currentOffset++] = green;\n+ 67 d_pixels[d_currentOffset++] = bleu;\n+ 68 break;\n+ 69\n+ 70 case PF_RGBA:\n+ 71 d_pixels[d_currentOffset++] = red;\n+ 72 d_pixels[d_currentOffset++] = green;\n+ 73 d_pixels[d_currentOffset++] = bleu;\n+ 74 d_pixels[d_currentOffset++] = alpha;\n+ 75 break;\n+ 76\n+ 77 }\n+ 78}\n+ 79inline size_t ImageContext::getWidth() const\n+ 80{\n+ 81 return d_width;\n+ 82}\n+ 83\n+ 84inline void ImageContext::setWidth(size_t width)\n+ 85{\n+ 86 d_width = width;\n+ 87}\n+ 88\n+ 89inline size_t ImageContext::getHeight() const\n+ 90{\n+ 91 return d_height;\n+ 92}\n+ 93\n+ 94inline void ImageContext::setHeight(size_t height)\n+ 95{\n+ 96 d_height = height;\n+ 97}\n+ 98inline PixelFormat ImageContext::getPixelFormat() const\n+ 99{\n+ 100 return d_format;\n+ 101}\n 102\n- 103\n- 104} // End of section namespace SILLY\n- 105\n- 106// Inclue inline function when needed\n- 107#ifdef SILLY_OPT_INLINE\n- 108#include \"SILLYImageContext.icpp\"\n- 109#endif\n- 110\n- 111#endif // end of guard _SILLYImageContext_h_\n-SILLY\n-Simple Image Loading LibrarY namespace.\n-Definition: SILLYJPGImageContext.cpp:46\n-SILLY::PixelFormat\n-PixelFormat\n-List all pixel format supported.\n-Definition: SILLYBase.h:60\n-SILLY::ImageContext\n-Store the data needed by an ImageLoader object during the parsing of an image.\n-Definition: SILLYImageContext.h:44\n-SILLY::ImageContext::setNextPixel\n-void setNextPixel(byte red, byte green, byte bleu, byte alpha)\n-Set the next pixel of the image.\n-SILLY::ImageContext::setDestination\n-void setDestination(byte *pixels, size_t length, PixelFormat format)\n-Set the destination of the loading.\n-SILLY::ImageContext::ImageContext\n-ImageContext(size_t width, size_t height)\n-Constructor.\n-SILLY::ImageContext::~ImageContext\n-virtual ~ImageContext()\n-Destructor.\n+ 103} // End of section namespace SILLY\n+ 104\n \n ===============================================================================\n Generated by\u00a0[doxygen] 1.9.4\n"}]}, {"source1": "./usr/share/doc/libsilly-doc/html/a00089_source.html", "source2": "./usr/share/doc/libsilly-doc/html/a00089_source.html", "unified_diff": "@@ -1,15 +1,15 @@\n \n \n \n \n \n \n \n-Simple Image Loading LibrarY: /build/reproducible-path/silly-0.1.0/include/SILLYFileDataSource.icpp Source File\n+Simple Image Loading LibrarY: /build/reproducible-path/silly-0.1.0/include/SILLYMemoryDataSource.h Source File\n \n \n \n \n \n \n
\n@@ -39,67 +39,82 @@\n
\n \n
\n
\n-
SILLYFileDataSource.icpp
\n+
SILLYMemoryDataSource.h
\n
\n
\n-
1/***********************************************************************
\n-
2 filename: SILLYFileDataSource.icpp
\n-
3 created: 20 Jul 2006
\n-
4 author: Olivier Delannoy
\n-
5
\n-
6 purpose: Inline function definition for the FileDataSource class
\n-
7*************************************************************************/
\n-
8/***************************************************************************
\n-
9 * Copyright (C) 2004 - 2006 Paul D Turner & The CEGUI Development Team
\n-
10 *
\n-
11 * Permission is hereby granted, free of charge, to any person obtaining
\n-
12 * a copy of this software and associated documentation files (the
\n-
13 * "Software"), to deal in the Software without restriction, including
\n-
14 * without limitation the rights to use, copy, modify, merge, publish,
\n-
15 * distribute, sublicense, and/or sell copies of the Software, and to
\n-
16 * permit persons to whom the Software is furnished to do so, subject to
\n-
17 * the following conditions:
\n-
18 *
\n-
19 * The above copyright notice and this permission notice shall be
\n-
20 * included in all copies or substantial portions of the Software.
\n-
21 *
\n-
22 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
\n-
23 * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
\n-
24 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
\n-
25 * IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR
\n-
26 * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
\n-
27 * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
\n-
28 * OTHER DEALINGS IN THE SOFTWARE.
\n-
29 ***************************************************************************/
\n-
30
\n-
31// Start of section namespace SILLY
\n-
32namespace SILLY
\n-
33{
\n-
34inline bool FileDataSource::isValid() const
\n-
35{
\n-
36 return d_error;
\n-
37}
\n-
38
\n-
39inline const byte* FileDataSource::getDataPtr() const
\n-
40{
\n-
41 return d_bytes;
\n-
42}
\n-
43
\n-
44inline size_t FileDataSource::getSize() const
\n-
45{
\n-
46 return d_size;
\n-
47}
\n-
48
\n-
49} // End of section namespace SILLY
\n-
50
\n+
1/***********************************************************************
\n+
2 filename: SILLYMemoryDataSource.h
\n+
3 created: 10 Jun 2006
\n+
4 author: Olivier Delannoy
\n+
5
\n+
6 purpose: SILLYMemoryDataSource declaration for the SILLY library
\n+
7*************************************************************************/
\n+
8/***************************************************************************
\n+
9 * Copyright (C) 2004 - 2006 Paul D Turner & The CEGUI Development Team
\n+
10 *
\n+
11 * Permission is hereby granted, free of charge, to any person obtaining
\n+
12 * a copy of this software and associated documentation files (the
\n+
13 * "Software"), to deal in the Software without restriction, including
\n+
14 * without limitation the rights to use, copy, modify, merge, publish,
\n+
15 * distribute, sublicense, and/or sell copies of the Software, and to
\n+
16 * permit persons to whom the Software is furnished to do so, subject to
\n+
17 * the following conditions:
\n+
18 *
\n+
19 * The above copyright notice and this permission notice shall be
\n+
20 * included in all copies or substantial portions of the Software.
\n+
21 *
\n+
22 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
\n+
23 * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
\n+
24 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
\n+
25 * IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR
\n+
26 * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
\n+
27 * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
\n+
28 * OTHER DEALINGS IN THE SOFTWARE.
\n+
29 ***************************************************************************/
\n+
30#ifndef _SILLYMemoryDataSource_h_
\n+
31#define _SILLYMemoryDataSource_h_
\n+
32#include "SILLYBase.h"
\n+
33#include "SILLYDataSource.h"
\n+
34// Start of section namespace SILLY
\n+
35namespace SILLY
\n+
36{
\n+
37
\n+
48class SILLY_EXPORT MemoryDataSource : public DataSource
\n+
49{
\n+
50public:
\n+
63 MemoryDataSource(const byte* data, size_t size);
\n+
64
\n+
65
\n+
66 const byte* getDataPtr() const;
\n+
67
\n+
68 size_t getSize() const;
\n+
69private:
\n+
70 const byte* d_bytes;
\n+
71 size_t d_size;
\n+
72};
\n+
73
\n+
74
\n+
75} // End of section namespace SILLY
\n+
76
\n+
77// Inclue inline function when needed
\n+
78#ifdef SILLY_OPT_INLINE
\n+
79#include "SILLYMemoryDataSource.icpp"
\n+
80#endif
\n+
81
\n+
82#endif // end of guard _SILLYMemoryDataSource_h_
\n+
Simple Image Loading LibrarY namespace.
\n+
This is an abstract class used to provide data to the loader.
\n+
Load an image from a memory area.
\n+
const byte * getDataPtr() const
Get raw access to the image data.
\n+
size_t getSize() const
Return the size of the data.
\n
\n \n
\n Generated by \"doxygen\"/ 1.9.4\n
\n \n \n", "details": [{"source1": "html2text {}", "source2": "html2text {}", "unified_diff": "@@ -4,21 +4,21 @@\n \n Simple Image Loading LibrarY\u00a00.1.0\n \n * build\n * reproducible-path\n * silly-0.1.0\n * include\n-SILLYFileDataSource.icpp\n+SILLYMemoryDataSource.h\n 1/***********************************************************************\n- 2 filename: SILLYFileDataSource.icpp\n- 3 created: 20 Jul 2006\n+ 2 filename: SILLYMemoryDataSource.h\n+ 3 created: 10 Jun 2006\n 4 author: Olivier Delannoy\n 5\n- 6 purpose: Inline function definition for the FileDataSource class\n+ 6 purpose: SILLYMemoryDataSource declaration for the SILLY library\n 7*************************************************************************/\n 8/***************************************************************************\n 9 * Copyright (C) 2004 - 2006 Paul D Turner & The CEGUI Development Team\n 10 *\n 11 * Permission is hereby granted, free of charge, to any person obtaining\n 12 * a copy of this software and associated documentation files (the\n 13 * \"Software\"), to deal in the Software without restriction, including\n@@ -35,31 +35,56 @@\n 24 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.\n 25 * IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR\n 26 * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,\n 27 * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR\n 28 * OTHER DEALINGS IN THE SOFTWARE.\n 29\n ***************************************************************************/\n- 30\n- 31// Start of section namespace SILLY\n- 32namespace SILLY\n- 33{\n- 34inline bool FileDataSource::isValid() const\n- 35{\n- 36 return d_error;\n- 37}\n- 38\n- 39inline const byte* FileDataSource::getDataPtr() const\n- 40{\n- 41 return d_bytes;\n- 42}\n- 43\n- 44inline size_t FileDataSource::getSize() const\n- 45{\n- 46 return d_size;\n- 47}\n- 48\n- 49} // End of section namespace SILLY\n- 50\n+ 30#ifndef _SILLYMemoryDataSource_h_\n+ 31#define _SILLYMemoryDataSource_h_\n+ 32#include \"SILLYBase.h\"\n+ 33#include \"SILLYDataSource.h\"\n+ 34// Start of section namespace SILLY\n+ 35namespace SILLY\n+ 36{\n+ 37\n+48class SILLY_EXPORT MemoryDataSource : public DataSource\n+ 49{\n+ 50public:\n+ 63 MemoryDataSource(const byte* data, size_t size);\n+ 64\n+ 65\n+66 const byte* getDataPtr() const;\n+ 67\n+68 size_t getSize() const;\n+ 69private:\n+ 70 const byte* d_bytes;\n+ 71 size_t d_size;\n+ 72};\n+ 73\n+ 74\n+ 75} // End of section namespace SILLY\n+ 76\n+ 77// Inclue inline function when needed\n+ 78#ifdef SILLY_OPT_INLINE\n+ 79#include \"SILLYMemoryDataSource.icpp\"\n+ 80#endif\n+ 81\n+ 82#endif // end of guard _SILLYMemoryDataSource_h_\n+SILLY\n+Simple Image Loading LibrarY namespace.\n+Definition: SILLYJPGImageContext.cpp:46\n+SILLY::DataSource\n+This is an abstract class used to provide data to the loader.\n+Definition: SILLYDataSource.h:47\n+SILLY::MemoryDataSource\n+Load an image from a memory area.\n+Definition: SILLYMemoryDataSource.h:49\n+SILLY::MemoryDataSource::getDataPtr\n+const byte * getDataPtr() const\n+Get raw access to the image data.\n+SILLY::MemoryDataSource::getSize\n+size_t getSize() const\n+Return the size of the data.\n \n ===============================================================================\n Generated by\u00a0[doxygen] 1.9.4\n"}]}, {"source1": "./usr/share/doc/libsilly-doc/html/a00092_source.html", "source2": "./usr/share/doc/libsilly-doc/html/a00092_source.html", "unified_diff": "@@ -1,15 +1,15 @@\n \n \n \n \n \n \n \n-Simple Image Loading LibrarY: /build/reproducible-path/silly-0.1.0/include/SILLYMemoryDataSource.h Source File\n+Simple Image Loading LibrarY: /build/reproducible-path/silly-0.1.0/include/SILLYImage.h Source File\n \n \n \n \n \n \n
\n@@ -39,82 +39,124 @@\n
\n \n
\n
\n-
SILLYMemoryDataSource.h
\n+
SILLYImage.h
\n
\n
\n-
1/***********************************************************************
\n-
2 filename: SILLYMemoryDataSource.h
\n-
3 created: 10 Jun 2006
\n-
4 author: Olivier Delannoy
\n-
5
\n-
6 purpose: SILLYMemoryDataSource declaration for the SILLY library
\n-
7*************************************************************************/
\n-
8/***************************************************************************
\n-
9 * Copyright (C) 2004 - 2006 Paul D Turner & The CEGUI Development Team
\n-
10 *
\n-
11 * Permission is hereby granted, free of charge, to any person obtaining
\n-
12 * a copy of this software and associated documentation files (the
\n-
13 * "Software"), to deal in the Software without restriction, including
\n-
14 * without limitation the rights to use, copy, modify, merge, publish,
\n-
15 * distribute, sublicense, and/or sell copies of the Software, and to
\n-
16 * permit persons to whom the Software is furnished to do so, subject to
\n-
17 * the following conditions:
\n-
18 *
\n-
19 * The above copyright notice and this permission notice shall be
\n-
20 * included in all copies or substantial portions of the Software.
\n-
21 *
\n-
22 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
\n-
23 * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
\n-
24 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
\n-
25 * IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR
\n-
26 * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
\n-
27 * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
\n-
28 * OTHER DEALINGS IN THE SOFTWARE.
\n-
29 ***************************************************************************/
\n-
30#ifndef _SILLYMemoryDataSource_h_
\n-
31#define _SILLYMemoryDataSource_h_
\n-
32#include "SILLYBase.h"
\n-
33#include "SILLYDataSource.h"
\n-
34// Start of section namespace SILLY
\n-
35namespace SILLY
\n-
36{
\n+
1
\n+
2/***********************************************************************
\n+
3 filename: SILLYImage.h
\n+
4 created: 10 Jun 2006
\n+
5 author: Olivier Delannoy
\n+
6
\n+
7 purpose: Image class definition
\n+
8*************************************************************************/
\n+
9/***************************************************************************
\n+
10 * Copyright (C) 2004 - 2006 Paul D Turner & The CEGUI Development Team
\n+
11 *
\n+
12 * Permission is hereby granted, free of charge, to any person obtaining
\n+
13 * a copy of this software and associated documentation files (the
\n+
14 * "Software"), to deal in the Software without restriction, including
\n+
15 * without limitation the rights to use, copy, modify, merge, publish,
\n+
16 * distribute, sublicense, and/or sell copies of the Software, and to
\n+
17 * permit persons to whom the Software is furnished to do so, subject to
\n+
18 * the following conditions:
\n+
19 *
\n+
20 * The above copyright notice and this permission notice shall be
\n+
21 * included in all copies or substantial portions of the Software.
\n+
22 *
\n+
23 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
\n+
24 * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
\n+
25 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
\n+
26 * IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR
\n+
27 * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
\n+
28 * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
\n+
29 * OTHER DEALINGS IN THE SOFTWARE.
\n+
30 ***************************************************************************/
\n+
31#ifndef _SILLYImage_h_
\n+
32#define _SILLYImage_h_
\n+
33#include "SILLYBase.h"
\n+
34#include "SILLYImageContext.h"
\n+
35#include "SILLYDataSource.h"
\n+
36#include "SILLYImageLoader.h"
\n
37
\n-
48class SILLY_EXPORT MemoryDataSource : public DataSource
\n-
49{
\n-
50public:
\n-
63 MemoryDataSource(const byte* data, size_t size);
\n-
64
\n-
65
\n-
66 const byte* getDataPtr() const;
\n-
67
\n-
68 size_t getSize() const;
\n-
69private:
\n-
70 const byte* d_bytes;
\n-
71 size_t d_size;
\n-
72};
\n-
73
\n-
74
\n-
75} // End of section namespace SILLY
\n-
76
\n-
77// Inclue inline function when needed
\n-
78#ifdef SILLY_OPT_INLINE
\n-
79#include "SILLYMemoryDataSource.icpp"
\n-
80#endif
\n-
81
\n-
82#endif // end of guard _SILLYMemoryDataSource_h_
\n+
38// Start of section namespace SILLY
\n+
39namespace SILLY
\n+
40{
\n+
41
\n+
46class SILLY_EXPORT Image
\n+
47{
\n+
48public:
\n+
55 Image(DataSource& data);
\n+
56
\n+\n+
62
\n+
67 bool isValid() const;
\n+
68
\n+
69
\n+
76 bool loadImageHeader();
\n+
77
\n+
91 bool loadImageData(PixelFormat resultFormat = PF_RGBA, PixelOrigin origin = PO_TOP_LEFT);
\n+
92
\n+
97 size_t getWidth() const;
\n+
98
\n+
103 size_t getHeight() const;
\n+
104
\n+\n+
110
\n+\n+
116
\n+
120 const byte* getPixelsDataPtr() const;
\n+
125 size_t getPixelsDataSize() const;
\n+
130 const char* getLoaderIdentifierString() const;
\n+
131private:
\n+
132 bool allocate();
\n+
133
\n+
134private:
\n+
135
\n+
136 size_t d_bpp;
\n+
137 PixelFormat d_pfSource;
\n+
138 byte* d_pixels;
\n+
139 DataSource* d_data;
\n+
140 ImageContext* d_imageContext;
\n+
141 ImageLoader* d_imageLoader;
\n+
142
\n+
143 // Disabled operation
\n+
144 Image(Image&);
\n+
145 Image& operator=(Image&);
\n+
146};
\n+
147
\n+
148} // End of section namespace SILLY
\n+
149
\n+
150// Inclue inline function when needed
\n+
151#ifdef SILLY_OPT_INLINE
\n+
152#include "SILLYImage.icpp"
\n+
153#endif
\n+
154
\n+
155#endif // end of guard _SILLYImage_h_
\n
Simple Image Loading LibrarY namespace.
\n-
This is an abstract class used to provide data to the loader.
\n-
Load an image from a memory area.
\n-
const byte * getDataPtr() const
Get raw access to the image data.
\n-
size_t getSize() const
Return the size of the data.
\n+
PixelFormat
List all pixel format supported.
Definition: SILLYBase.h:60
\n+
PixelOrigin
List all pixel origin supported.
Definition: SILLYBase.h:71
\n+
This is an abstract class used to provide data to the loader.
\n+
Image is the main user class of the library.
Definition: SILLYImage.h:47
\n+
PixelFormat getSourcePixelFormat() const
Retrieve the pixel format used for the image storage.
\n+
const char * getLoaderIdentifierString() const
Get Image loader identifier string.
\n+
const byte * getPixelsDataPtr() const
Get a pointer to the pixels data.
\n+
bool isValid() const
Return true if the image is valid after its loading.
\n+
size_t getPixelsDataSize() const
Get the size of the pixel buffer.
\n+
~Image()
Destructor.
\n+
size_t getWidth() const
Retrieve the width of the image.
\n+
PixelFormat getPixelFormat() const
Retrieve the pixel format of the resulting image.
\n+
size_t getHeight() const
Retrieve the height of the image.
\n+
Store the data needed by an ImageLoader object during the parsing of an image.
\n+
This is an abstract class that define the interface of all image loader.
\n
\n \n
\n Generated by \"doxygen\"/ 1.9.4\n
\n \n \n", "details": [{"source1": "html2text {}", "source2": "html2text {}", "unified_diff": "@@ -4,87 +4,154 @@\n \n Simple Image Loading LibrarY\u00a00.1.0\n \n * build\n * reproducible-path\n * silly-0.1.0\n * include\n-SILLYMemoryDataSource.h\n- 1/***********************************************************************\n- 2 filename: SILLYMemoryDataSource.h\n- 3 created: 10 Jun 2006\n- 4 author: Olivier Delannoy\n- 5\n- 6 purpose: SILLYMemoryDataSource declaration for the SILLY library\n- 7*************************************************************************/\n- 8/***************************************************************************\n- 9 * Copyright (C) 2004 - 2006 Paul D Turner & The CEGUI Development Team\n- 10 *\n- 11 * Permission is hereby granted, free of charge, to any person obtaining\n- 12 * a copy of this software and associated documentation files (the\n- 13 * \"Software\"), to deal in the Software without restriction, including\n- 14 * without limitation the rights to use, copy, modify, merge, publish,\n- 15 * distribute, sublicense, and/or sell copies of the Software, and to\n- 16 * permit persons to whom the Software is furnished to do so, subject to\n- 17 * the following conditions:\n- 18 *\n- 19 * The above copyright notice and this permission notice shall be\n- 20 * included in all copies or substantial portions of the Software.\n- 21 *\n- 22 * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND,\n- 23 * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\n- 24 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.\n- 25 * IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR\n- 26 * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,\n- 27 * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR\n- 28 * OTHER DEALINGS IN THE SOFTWARE.\n- 29\n+SILLYImage.h\n+ 1\n+ 2/***********************************************************************\n+ 3 filename: SILLYImage.h\n+ 4 created: 10 Jun 2006\n+ 5 author: Olivier Delannoy\n+ 6\n+ 7 purpose: Image class definition\n+ 8*************************************************************************/\n+ 9/***************************************************************************\n+ 10 * Copyright (C) 2004 - 2006 Paul D Turner & The CEGUI Development Team\n+ 11 *\n+ 12 * Permission is hereby granted, free of charge, to any person obtaining\n+ 13 * a copy of this software and associated documentation files (the\n+ 14 * \"Software\"), to deal in the Software without restriction, including\n+ 15 * without limitation the rights to use, copy, modify, merge, publish,\n+ 16 * distribute, sublicense, and/or sell copies of the Software, and to\n+ 17 * permit persons to whom the Software is furnished to do so, subject to\n+ 18 * the following conditions:\n+ 19 *\n+ 20 * The above copyright notice and this permission notice shall be\n+ 21 * included in all copies or substantial portions of the Software.\n+ 22 *\n+ 23 * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND,\n+ 24 * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\n+ 25 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.\n+ 26 * IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR\n+ 27 * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,\n+ 28 * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR\n+ 29 * OTHER DEALINGS IN THE SOFTWARE.\n+ 30\n ***************************************************************************/\n- 30#ifndef _SILLYMemoryDataSource_h_\n- 31#define _SILLYMemoryDataSource_h_\n- 32#include \"SILLYBase.h\"\n- 33#include \"SILLYDataSource.h\"\n- 34// Start of section namespace SILLY\n- 35namespace SILLY\n- 36{\n+ 31#ifndef _SILLYImage_h_\n+ 32#define _SILLYImage_h_\n+ 33#include \"SILLYBase.h\"\n+ 34#include \"SILLYImageContext.h\"\n+ 35#include \"SILLYDataSource.h\"\n+ 36#include \"SILLYImageLoader.h\"\n 37\n-48class SILLY_EXPORT MemoryDataSource : public DataSource\n- 49{\n- 50public:\n- 63 MemoryDataSource(const byte* data, size_t size);\n- 64\n- 65\n-66 const byte* getDataPtr() const;\n- 67\n-68 size_t getSize() const;\n- 69private:\n- 70 const byte* d_bytes;\n- 71 size_t d_size;\n- 72};\n- 73\n- 74\n- 75} // End of section namespace SILLY\n- 76\n- 77// Inclue inline function when needed\n- 78#ifdef SILLY_OPT_INLINE\n- 79#include \"SILLYMemoryDataSource.icpp\"\n- 80#endif\n- 81\n- 82#endif // end of guard _SILLYMemoryDataSource_h_\n+ 38// Start of section namespace SILLY\n+ 39namespace SILLY\n+ 40{\n+ 41\n+46class SILLY_EXPORT Image\n+ 47{\n+ 48public:\n+ 55 Image(DataSource& data);\n+ 56\n+61 ~Image();\n+ 62\n+67 bool isValid() const;\n+ 68\n+ 69\n+ 76 bool loadImageHeader();\n+ 77\n+ 91 bool loadImageData(PixelFormat resultFormat = PF_RGBA, PixelOrigin origin =\n+PO_TOP_LEFT);\n+ 92\n+97 size_t getWidth() const;\n+ 98\n+103 size_t getHeight() const;\n+ 104\n+109 PixelFormat getSourcePixelFormat() const;\n+ 110\n+115 PixelFormat getPixelFormat() const;\n+ 116\n+120 const byte* getPixelsDataPtr() const;\n+125 size_t getPixelsDataSize() const;\n+130 const char* getLoaderIdentifierString() const;\n+ 131private:\n+ 132 bool allocate();\n+ 133\n+ 134private:\n+ 135\n+ 136 size_t d_bpp;\n+ 137 PixelFormat d_pfSource;\n+ 138 byte* d_pixels;\n+ 139 DataSource* d_data;\n+ 140 ImageContext* d_imageContext;\n+ 141 ImageLoader* d_imageLoader;\n+ 142\n+ 143 // Disabled operation\n+ 144 Image(Image&);\n+ 145 Image& operator=(Image&);\n+ 146};\n+ 147\n+ 148} // End of section namespace SILLY\n+ 149\n+ 150// Inclue inline function when needed\n+ 151#ifdef SILLY_OPT_INLINE\n+ 152#include \"SILLYImage.icpp\"\n+ 153#endif\n+ 154\n+ 155#endif // end of guard _SILLYImage_h_\n SILLY\n Simple Image Loading LibrarY namespace.\n Definition: SILLYJPGImageContext.cpp:46\n+SILLY::PixelFormat\n+PixelFormat\n+List all pixel format supported.\n+Definition: SILLYBase.h:60\n+SILLY::PixelOrigin\n+PixelOrigin\n+List all pixel origin supported.\n+Definition: SILLYBase.h:71\n SILLY::DataSource\n This is an abstract class used to provide data to the loader.\n Definition: SILLYDataSource.h:47\n-SILLY::MemoryDataSource\n-Load an image from a memory area.\n-Definition: SILLYMemoryDataSource.h:49\n-SILLY::MemoryDataSource::getDataPtr\n-const byte * getDataPtr() const\n-Get raw access to the image data.\n-SILLY::MemoryDataSource::getSize\n-size_t getSize() const\n-Return the size of the data.\n+SILLY::Image\n+Image is the main user class of the library.\n+Definition: SILLYImage.h:47\n+SILLY::Image::getSourcePixelFormat\n+PixelFormat getSourcePixelFormat() const\n+Retrieve the pixel format used for the image storage.\n+SILLY::Image::getLoaderIdentifierString\n+const char * getLoaderIdentifierString() const\n+Get Image loader identifier string.\n+SILLY::Image::getPixelsDataPtr\n+const byte * getPixelsDataPtr() const\n+Get a pointer to the pixels data.\n+SILLY::Image::isValid\n+bool isValid() const\n+Return true if the image is valid after its loading.\n+SILLY::Image::getPixelsDataSize\n+size_t getPixelsDataSize() const\n+Get the size of the pixel buffer.\n+SILLY::Image::~Image\n+~Image()\n+Destructor.\n+SILLY::Image::getWidth\n+size_t getWidth() const\n+Retrieve the width of the image.\n+SILLY::Image::getPixelFormat\n+PixelFormat getPixelFormat() const\n+Retrieve the pixel format of the resulting image.\n+SILLY::Image::getHeight\n+size_t getHeight() const\n+Retrieve the height of the image.\n+SILLY::ImageContext\n+Store the data needed by an ImageLoader object during the parsing of an image.\n+Definition: SILLYImageContext.h:44\n+SILLY::ImageLoader\n+This is an abstract class that define the interface of all image loader.\n+Definition: SILLYImageLoader.h:47\n \n ===============================================================================\n Generated by\u00a0[doxygen] 1.9.4\n"}]}, {"source1": "./usr/share/doc/libsilly-doc/html/a00095_source.html", "source2": "./usr/share/doc/libsilly-doc/html/a00095_source.html", "unified_diff": "@@ -1,15 +1,15 @@\n \n \n \n \n \n \n \n-Simple Image Loading LibrarY: /build/reproducible-path/silly-0.1.0/include/SILLYDataSource.icpp Source File\n+Simple Image Loading LibrarY: /build/reproducible-path/silly-0.1.0/include/SILLYMemoryDataSource.icpp Source File\n \n \n \n \n \n \n
\n@@ -39,23 +39,23 @@\n
\n \n
\n
\n-
SILLYDataSource.icpp
\n+
SILLYMemoryDataSource.icpp
\n
\n
\n
1/***********************************************************************
\n-
2 filename: SILLYDataSource.icpp
\n+
2 Filename: SILLYMemoryDataSource.icpp
\n
3 created: 10 Jun 2006
\n-
4 author: ode@dalfy.dalfy.dyndns.org
\n+
4 author: Olivier Delannoy
\n
5
\n-
6 purpose: Inline function definition for (F>>>ILE_SANS<<<) class
\n+
6 purpose: Inline function definition for MemoryDataSource class
\n
7*************************************************************************/
\n
8/***************************************************************************
\n
9 * Copyright (C) 2004 - 2006 Paul D Turner & The CEGUI Development Team
\n
10 *
\n
11 * Permission is hereby granted, free of charge, to any person obtaining
\n
12 * a copy of this software and associated documentation files (the
\n
13 * "Software"), to deal in the Software without restriction, including
\n@@ -75,26 +75,27 @@\n
27 * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
\n
28 * OTHER DEALINGS IN THE SOFTWARE.
\n
29 ***************************************************************************/
\n
30
\n
31// Start of section namespace SILLY
\n
32namespace SILLY
\n
33{
\n-
34inline DataSource::~DataSource()
\n-
35{
\n-
36}
\n-
37
\n-
38inline byte DataSource::operator[](size_t offset) const
\n-
39{
\n-
40 assert(offset < getSize() && "ASSERT: Trying to access pixel outside of the data");
\n-
41 return getDataPtr()[offset];
\n-
42}
\n-
43
\n-
44} // End of section namespace SILLY
\n-
45
\n+
34
\n+
35inline const byte* MemoryDataSource::getDataPtr() const
\n+
36{
\n+
37 return d_bytes;
\n+
38}
\n+
39
\n+
40inline size_t MemoryDataSource::getSize() const
\n+
41{
\n+
42 return d_size;
\n+
43}
\n+
44
\n+
45} // End of section namespace SILLY
\n+
46
\n
\n \n
\n Generated by \"doxygen\"/ 1.9.4\n
\n \n \n", "details": [{"source1": "html2text {}", "source2": "html2text {}", "unified_diff": "@@ -4,21 +4,21 @@\n \n Simple Image Loading LibrarY\u00a00.1.0\n \n * build\n * reproducible-path\n * silly-0.1.0\n * include\n-SILLYDataSource.icpp\n+SILLYMemoryDataSource.icpp\n 1/***********************************************************************\n- 2 filename: SILLYDataSource.icpp\n+ 2 Filename: SILLYMemoryDataSource.icpp\n 3 created: 10 Jun 2006\n- 4 author: ode@dalfy.dalfy.dyndns.org\n+ 4 author: Olivier Delannoy\n 5\n- 6 purpose: Inline function definition for (F>>>ILE_SANS<<<) class\n+ 6 purpose: Inline function definition for MemoryDataSource class\n 7*************************************************************************/\n 8/***************************************************************************\n 9 * Copyright (C) 2004 - 2006 Paul D Turner & The CEGUI Development Team\n 10 *\n 11 * Permission is hereby granted, free of charge, to any person obtaining\n 12 * a copy of this software and associated documentation files (the\n 13 * \"Software\"), to deal in the Software without restriction, including\n@@ -39,23 +39,23 @@\n 28 * OTHER DEALINGS IN THE SOFTWARE.\n 29\n ***************************************************************************/\n 30\n 31// Start of section namespace SILLY\n 32namespace SILLY\n 33{\n- 34inline DataSource::~DataSource()\n- 35{\n- 36}\n- 37\n- 38inline byte DataSource::operator[](size_t offset) const\n- 39{\n- 40 assert(offset < getSize() && \"ASSERT: Trying to access pixel outside of the\n-data\");\n- 41 return getDataPtr()[offset];\n- 42}\n- 43\n- 44} // End of section namespace SILLY\n- 45\n+ 34\n+ 35inline const byte* MemoryDataSource::getDataPtr() const\n+ 36{\n+ 37 return d_bytes;\n+ 38}\n+ 39\n+ 40inline size_t MemoryDataSource::getSize() const\n+ 41{\n+ 42 return d_size;\n+ 43}\n+ 44\n+ 45} // End of section namespace SILLY\n+ 46\n \n ===============================================================================\n Generated by\u00a0[doxygen] 1.9.4\n"}]}, {"source1": "./usr/share/doc/libsilly-doc/html/a00098_source.html", "source2": "./usr/share/doc/libsilly-doc/html/a00098_source.html", "unified_diff": "@@ -1,15 +1,15 @@\n \n \n \n \n \n \n \n-Simple Image Loading LibrarY: /build/reproducible-path/silly-0.1.0/include/SILLYImage.h Source File\n+Simple Image Loading LibrarY: /build/reproducible-path/silly-0.1.0/include/SILLYImageLoader.h Source File\n \n \n \n \n \n \n
\n@@ -39,124 +39,95 @@\n
\n \n
\n
\n-
SILLYImage.h
\n+
SILLYImageLoader.h
\n
\n
\n-
1
\n-
2/***********************************************************************
\n-
3 filename: SILLYImage.h
\n-
4 created: 10 Jun 2006
\n-
5 author: Olivier Delannoy
\n-
6
\n-
7 purpose: Image class definition
\n-
8*************************************************************************/
\n-
9/***************************************************************************
\n-
10 * Copyright (C) 2004 - 2006 Paul D Turner & The CEGUI Development Team
\n-
11 *
\n-
12 * Permission is hereby granted, free of charge, to any person obtaining
\n-
13 * a copy of this software and associated documentation files (the
\n-
14 * "Software"), to deal in the Software without restriction, including
\n-
15 * without limitation the rights to use, copy, modify, merge, publish,
\n-
16 * distribute, sublicense, and/or sell copies of the Software, and to
\n-
17 * permit persons to whom the Software is furnished to do so, subject to
\n-
18 * the following conditions:
\n-
19 *
\n-
20 * The above copyright notice and this permission notice shall be
\n-
21 * included in all copies or substantial portions of the Software.
\n-
22 *
\n-
23 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
\n-
24 * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
\n-
25 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
\n-
26 * IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR
\n-
27 * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
\n-
28 * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
\n-
29 * OTHER DEALINGS IN THE SOFTWARE.
\n-
30 ***************************************************************************/
\n-
31#ifndef _SILLYImage_h_
\n-
32#define _SILLYImage_h_
\n-
33#include "SILLYBase.h"
\n-
34#include "SILLYImageContext.h"
\n-
35#include "SILLYDataSource.h"
\n-
36#include "SILLYImageLoader.h"
\n-
37
\n-
38// Start of section namespace SILLY
\n-
39namespace SILLY
\n-
40{
\n-
41
\n-
46class SILLY_EXPORT Image
\n+
1/***********************************************************************
\n+
2 filename: SILLYImageLoader.h
\n+
3 created: 10 Jun 2006
\n+
4 author: Olivier Delannoy
\n+
5
\n+
6 purpose: Abstract class for all image loader
\n+
7*************************************************************************/
\n+
8/***************************************************************************
\n+
9 * Copyright (C) 2004 - 2006 Paul D Turner & The CEGUI Development Team
\n+
10 *
\n+
11 * Permission is hereby granted, free of charge, to any person obtaining
\n+
12 * a copy of this software and associated documentation files (the
\n+
13 * "Software"), to deal in the Software without restriction, including
\n+
14 * without limitation the rights to use, copy, modify, merge, publish,
\n+
15 * distribute, sublicense, and/or sell copies of the Software, and to
\n+
16 * permit persons to whom the Software is furnished to do so, subject to
\n+
17 * the following conditions:
\n+
18 *
\n+
19 * The above copyright notice and this permission notice shall be
\n+
20 * included in all copies or substantial portions of the Software.
\n+
21 *
\n+
22 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
\n+
23 * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
\n+
24 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
\n+
25 * IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR
\n+
26 * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
\n+
27 * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
\n+
28 * OTHER DEALINGS IN THE SOFTWARE.
\n+
29 ***************************************************************************/
\n+
30#ifndef _SILLYImageLoader_h_
\n+
31#define _SILLYImageLoader_h_
\n+
32#include "SILLYBase.h"
\n+
33// Start of section namespace SILLY
\n+
34namespace SILLY
\n+
35{
\n+
36class DataSource; // Forward declaration
\n+
37class ImageContext; // Forward declaration
\n+
38
\n+
46class SILLY_EXPORT ImageLoader
\n
47{
\n-
48public:
\n-
55 Image(DataSource& data);
\n-
56
\n-\n-
62
\n-
67 bool isValid() const;
\n-
68
\n-
69
\n-
76 bool loadImageHeader();
\n-
77
\n-
91 bool loadImageData(PixelFormat resultFormat = PF_RGBA, PixelOrigin origin = PO_TOP_LEFT);
\n-
92
\n-
97 size_t getWidth() const;
\n-
98
\n-
103 size_t getHeight() const;
\n-
104
\n-\n-
110
\n-\n-
116
\n-
120 const byte* getPixelsDataPtr() const;
\n-
125 size_t getPixelsDataSize() const;
\n-
130 const char* getLoaderIdentifierString() const;
\n-
131private:
\n-
132 bool allocate();
\n-
133
\n-
134private:
\n-
135
\n-
136 size_t d_bpp;
\n-
137 PixelFormat d_pfSource;
\n-
138 byte* d_pixels;
\n-
139 DataSource* d_data;
\n-
140 ImageContext* d_imageContext;
\n-
141 ImageLoader* d_imageLoader;
\n-
142
\n-
143 // Disabled operation
\n-
144 Image(Image&);
\n-
145 Image& operator=(Image&);
\n-
146};
\n-
147
\n-
148} // End of section namespace SILLY
\n-
149
\n-
150// Inclue inline function when needed
\n-
151#ifdef SILLY_OPT_INLINE
\n-
152#include "SILLYImage.icpp"
\n-
153#endif
\n-
154
\n-
155#endif // end of guard _SILLYImage_h_
\n+
48protected:
\n+
52 ImageLoader(const char* name);
\n+
53public:
\n+
54
\n+
59 virtual ~ImageLoader();
\n+
60
\n+
71 virtual ImageContext* loadHeader(PixelFormat& formatSource, DataSource* data) = 0;
\n+
72
\n+
73
\n+
86 virtual bool loadImageData(PixelOrigin origin, DataSource* data, ImageContext* context) = 0;
\n+
87
\n+
94 void destroyContext(ImageContext* context);
\n+
95
\n+
100 const char* getIdentifierString() const;
\n+
101private:
\n+
102 const char* d_name;
\n+
103
\n+
104};
\n+
105
\n+
106} // End of section namespace SILLY
\n+
107
\n+
108// Inclue inline function when needed
\n+
109#ifdef SILLY_OPT_INLINE
\n+
110#include "SILLYImageLoader.icpp"
\n+
111#endif
\n+
112
\n+
113#endif // end of guard _SILLYImageLoader_h_
\n
Simple Image Loading LibrarY namespace.
\n-
PixelFormat
List all pixel format supported.
Definition: SILLYBase.h:60
\n-
PixelOrigin
List all pixel origin supported.
Definition: SILLYBase.h:71
\n-
This is an abstract class used to provide data to the loader.
\n-
Image is the main user class of the library.
Definition: SILLYImage.h:47
\n-
PixelFormat getSourcePixelFormat() const
Retrieve the pixel format used for the image storage.
\n-
const char * getLoaderIdentifierString() const
Get Image loader identifier string.
\n-
const byte * getPixelsDataPtr() const
Get a pointer to the pixels data.
\n-
bool isValid() const
Return true if the image is valid after its loading.
\n-
size_t getPixelsDataSize() const
Get the size of the pixel buffer.
\n-
~Image()
Destructor.
\n-
size_t getWidth() const
Retrieve the width of the image.
\n-
PixelFormat getPixelFormat() const
Retrieve the pixel format of the resulting image.
\n-
size_t getHeight() const
Retrieve the height of the image.
\n-
Store the data needed by an ImageLoader object during the parsing of an image.
\n-
This is an abstract class that define the interface of all image loader.
\n+
PixelFormat
List all pixel format supported.
Definition: SILLYBase.h:60
\n+
PixelOrigin
List all pixel origin supported.
Definition: SILLYBase.h:71
\n+
This is an abstract class used to provide data to the loader.
\n+
Store the data needed by an ImageLoader object during the parsing of an image.
\n+
This is an abstract class that define the interface of all image loader.
\n+
ImageLoader(const char *name)
Constructor.
\n+
virtual ImageContext * loadHeader(PixelFormat &formatSource, DataSource *data)=0
Parse the header of the image and fill the header struct.
\n+
virtual bool loadImageData(PixelOrigin origin, DataSource *data, ImageContext *context)=0
Parse the pixels data of the image and fill the header struct.
\n+
virtual ~ImageLoader()
Destructor.
\n+
const char * getIdentifierString() const
Return the name of the loader.
\n
\n \n
\n Generated by \"doxygen\"/ 1.9.4\n
\n \n \n", "details": [{"source1": "html2text {}", "source2": "html2text {}", "unified_diff": "@@ -4,154 +4,118 @@\n \n Simple Image Loading LibrarY\u00a00.1.0\n \n * build\n * reproducible-path\n * silly-0.1.0\n * include\n-SILLYImage.h\n- 1\n- 2/***********************************************************************\n- 3 filename: SILLYImage.h\n- 4 created: 10 Jun 2006\n- 5 author: Olivier Delannoy\n- 6\n- 7 purpose: Image class definition\n- 8*************************************************************************/\n- 9/***************************************************************************\n- 10 * Copyright (C) 2004 - 2006 Paul D Turner & The CEGUI Development Team\n- 11 *\n- 12 * Permission is hereby granted, free of charge, to any person obtaining\n- 13 * a copy of this software and associated documentation files (the\n- 14 * \"Software\"), to deal in the Software without restriction, including\n- 15 * without limitation the rights to use, copy, modify, merge, publish,\n- 16 * distribute, sublicense, and/or sell copies of the Software, and to\n- 17 * permit persons to whom the Software is furnished to do so, subject to\n- 18 * the following conditions:\n- 19 *\n- 20 * The above copyright notice and this permission notice shall be\n- 21 * included in all copies or substantial portions of the Software.\n- 22 *\n- 23 * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND,\n- 24 * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\n- 25 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.\n- 26 * IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR\n- 27 * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,\n- 28 * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR\n- 29 * OTHER DEALINGS IN THE SOFTWARE.\n- 30\n+SILLYImageLoader.h\n+ 1/***********************************************************************\n+ 2 filename: SILLYImageLoader.h\n+ 3 created: 10 Jun 2006\n+ 4 author: Olivier Delannoy\n+ 5\n+ 6 purpose: Abstract class for all image loader\n+ 7*************************************************************************/\n+ 8/***************************************************************************\n+ 9 * Copyright (C) 2004 - 2006 Paul D Turner & The CEGUI Development Team\n+ 10 *\n+ 11 * Permission is hereby granted, free of charge, to any person obtaining\n+ 12 * a copy of this software and associated documentation files (the\n+ 13 * \"Software\"), to deal in the Software without restriction, including\n+ 14 * without limitation the rights to use, copy, modify, merge, publish,\n+ 15 * distribute, sublicense, and/or sell copies of the Software, and to\n+ 16 * permit persons to whom the Software is furnished to do so, subject to\n+ 17 * the following conditions:\n+ 18 *\n+ 19 * The above copyright notice and this permission notice shall be\n+ 20 * included in all copies or substantial portions of the Software.\n+ 21 *\n+ 22 * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND,\n+ 23 * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\n+ 24 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.\n+ 25 * IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR\n+ 26 * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,\n+ 27 * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR\n+ 28 * OTHER DEALINGS IN THE SOFTWARE.\n+ 29\n ***************************************************************************/\n- 31#ifndef _SILLYImage_h_\n- 32#define _SILLYImage_h_\n- 33#include \"SILLYBase.h\"\n- 34#include \"SILLYImageContext.h\"\n- 35#include \"SILLYDataSource.h\"\n- 36#include \"SILLYImageLoader.h\"\n- 37\n- 38// Start of section namespace SILLY\n- 39namespace SILLY\n- 40{\n- 41\n-46class SILLY_EXPORT Image\n+ 30#ifndef _SILLYImageLoader_h_\n+ 31#define _SILLYImageLoader_h_\n+ 32#include \"SILLYBase.h\"\n+ 33// Start of section namespace SILLY\n+ 34namespace SILLY\n+ 35{\n+ 36class DataSource; // Forward declaration\n+ 37class ImageContext; // Forward declaration\n+ 38\n+46class SILLY_EXPORT ImageLoader\n 47{\n- 48public:\n- 55 Image(DataSource& data);\n- 56\n-61 ~Image();\n- 62\n-67 bool isValid() const;\n- 68\n- 69\n- 76 bool loadImageHeader();\n- 77\n- 91 bool loadImageData(PixelFormat resultFormat = PF_RGBA, PixelOrigin origin =\n-PO_TOP_LEFT);\n- 92\n-97 size_t getWidth() const;\n- 98\n-103 size_t getHeight() const;\n- 104\n-109 PixelFormat getSourcePixelFormat() const;\n- 110\n-115 PixelFormat getPixelFormat() const;\n- 116\n-120 const byte* getPixelsDataPtr() const;\n-125 size_t getPixelsDataSize() const;\n-130 const char* getLoaderIdentifierString() const;\n- 131private:\n- 132 bool allocate();\n- 133\n- 134private:\n- 135\n- 136 size_t d_bpp;\n- 137 PixelFormat d_pfSource;\n- 138 byte* d_pixels;\n- 139 DataSource* d_data;\n- 140 ImageContext* d_imageContext;\n- 141 ImageLoader* d_imageLoader;\n- 142\n- 143 // Disabled operation\n- 144 Image(Image&);\n- 145 Image& operator=(Image&);\n- 146};\n- 147\n- 148} // End of section namespace SILLY\n- 149\n- 150// Inclue inline function when needed\n- 151#ifdef SILLY_OPT_INLINE\n- 152#include \"SILLYImage.icpp\"\n- 153#endif\n- 154\n- 155#endif // end of guard _SILLYImage_h_\n+ 48protected:\n+52 ImageLoader(const char* name);\n+ 53public:\n+ 54\n+59 virtual ~ImageLoader();\n+ 60\n+71 virtual ImageContext* loadHeader(PixelFormat& formatSource, DataSource*\n+data) = 0;\n+ 72\n+ 73\n+86 virtual bool loadImageData(PixelOrigin origin, DataSource* data,\n+ImageContext* context) = 0;\n+ 87\n+ 94 void destroyContext(ImageContext* context);\n+ 95\n+100 const char* getIdentifierString() const;\n+ 101private:\n+ 102 const char* d_name;\n+ 103\n+ 104};\n+ 105\n+ 106} // End of section namespace SILLY\n+ 107\n+ 108// Inclue inline function when needed\n+ 109#ifdef SILLY_OPT_INLINE\n+ 110#include \"SILLYImageLoader.icpp\"\n+ 111#endif\n+ 112\n+ 113#endif // end of guard _SILLYImageLoader_h_\n SILLY\n Simple Image Loading LibrarY namespace.\n Definition: SILLYJPGImageContext.cpp:46\n SILLY::PixelFormat\n PixelFormat\n List all pixel format supported.\n Definition: SILLYBase.h:60\n SILLY::PixelOrigin\n PixelOrigin\n List all pixel origin supported.\n Definition: SILLYBase.h:71\n SILLY::DataSource\n This is an abstract class used to provide data to the loader.\n Definition: SILLYDataSource.h:47\n-SILLY::Image\n-Image is the main user class of the library.\n-Definition: SILLYImage.h:47\n-SILLY::Image::getSourcePixelFormat\n-PixelFormat getSourcePixelFormat() const\n-Retrieve the pixel format used for the image storage.\n-SILLY::Image::getLoaderIdentifierString\n-const char * getLoaderIdentifierString() const\n-Get Image loader identifier string.\n-SILLY::Image::getPixelsDataPtr\n-const byte * getPixelsDataPtr() const\n-Get a pointer to the pixels data.\n-SILLY::Image::isValid\n-bool isValid() const\n-Return true if the image is valid after its loading.\n-SILLY::Image::getPixelsDataSize\n-size_t getPixelsDataSize() const\n-Get the size of the pixel buffer.\n-SILLY::Image::~Image\n-~Image()\n-Destructor.\n-SILLY::Image::getWidth\n-size_t getWidth() const\n-Retrieve the width of the image.\n-SILLY::Image::getPixelFormat\n-PixelFormat getPixelFormat() const\n-Retrieve the pixel format of the resulting image.\n-SILLY::Image::getHeight\n-size_t getHeight() const\n-Retrieve the height of the image.\n SILLY::ImageContext\n Store the data needed by an ImageLoader object during the parsing of an image.\n Definition: SILLYImageContext.h:44\n SILLY::ImageLoader\n This is an abstract class that define the interface of all image loader.\n Definition: SILLYImageLoader.h:47\n+SILLY::ImageLoader::ImageLoader\n+ImageLoader(const char *name)\n+Constructor.\n+SILLY::ImageLoader::loadHeader\n+virtual ImageContext * loadHeader(PixelFormat &formatSource, DataSource\n+*data)=0\n+Parse the header of the image and fill the header struct.\n+SILLY::ImageLoader::loadImageData\n+virtual bool loadImageData(PixelOrigin origin, DataSource *data, ImageContext\n+*context)=0\n+Parse the pixels data of the image and fill the header struct.\n+SILLY::ImageLoader::~ImageLoader\n+virtual ~ImageLoader()\n+Destructor.\n+SILLY::ImageLoader::getIdentifierString\n+const char * getIdentifierString() const\n+Return the name of the loader.\n \n ===============================================================================\n Generated by\u00a0[doxygen] 1.9.4\n"}]}, {"source1": "./usr/share/doc/libsilly-doc/html/a00101_source.html", "source2": "./usr/share/doc/libsilly-doc/html/a00101_source.html", "unified_diff": "@@ -1,15 +1,15 @@\n \n \n \n \n \n \n \n-Simple Image Loading LibrarY: /build/reproducible-path/silly-0.1.0/include/SILLYImageLoader.icpp Source File\n+Simple Image Loading LibrarY: /build/reproducible-path/silly-0.1.0/include/SILLY.h Source File\n \n \n \n \n \n \n
\n@@ -39,64 +39,67 @@\n
\n \n
\n
\n-
SILLYImageLoader.icpp
\n+
SILLY.h
\n
\n
\n-
1/***********************************************************************
\n-
2 filename: ImageLoader.icpp
\n-
3 created: 10 Jun 2006
\n-
4 author: Olivier Delannoy
\n-
5
\n-
6 purpose: Inline function definition for ImageLoader class
\n-
7*************************************************************************/
\n-
8/***************************************************************************
\n-
9 * Copyright (C) 2004 - 2006 Paul D Turner & The CEGUI Development Team
\n-
10 *
\n-
11 * Permission is hereby granted, free of charge, to any person obtaining
\n-
12 * a copy of this software and associated documentation files (the
\n-
13 * "Software"), to deal in the Software without restriction, including
\n-
14 * without limitation the rights to use, copy, modify, merge, publish,
\n-
15 * distribute, sublicense, and/or sell copies of the Software, and to
\n-
16 * permit persons to whom the Software is furnished to do so, subject to
\n-
17 * the following conditions:
\n-
18 *
\n-
19 * The above copyright notice and this permission notice shall be
\n-
20 * included in all copies or substantial portions of the Software.
\n-
21 *
\n-
22 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
\n-
23 * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
\n-
24 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
\n-
25 * IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR
\n-
26 * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
\n-
27 * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
\n-
28 * OTHER DEALINGS IN THE SOFTWARE.
\n-
29 ***************************************************************************/
\n-
30
\n-
31// Start of section namespace SILLY
\n-
32namespace SILLY
\n-
33{
\n-
34inline ImageLoader::ImageLoader(const char* name)
\n-
35 : d_name(name)
\n-
36{
\n-
37}
\n-
38inline ImageLoader::~ImageLoader()
\n-
39{
\n-
40}
\n-
41inline const char* ImageLoader::getIdentifierString() const
\n-
42{
\n-
43 return d_name;
\n-
44}
\n-
45
\n-
46} // End of section namespace SILLY
\n-
47
\n+
1/***********************************************************************
\n+
2 filename: SILLY.h
\n+
3 created: 10 Jun 2006
\n+
4 author: Olivier Delannoy
\n+
5
\n+
6 purpose: Master include for the SILLY library
\n+
7*************************************************************************/
\n+
8/***************************************************************************
\n+
9 * Copyright (C) 2004 - 2006 Paul D Turner & The CEGUI Development Team
\n+
10 *
\n+
11 * Permission is hereby granted, free of charge, to any person obtaining
\n+
12 * a copy of this software and associated documentation files (the
\n+
13 * "Software"), to deal in the Software without restriction, including
\n+
14 * without limitation the rights to use, copy, modify, merge, publish,
\n+
15 * distribute, sublicense, and/or sell copies of the Software, and to
\n+
16 * permit persons to whom the Software is furnished to do so, subject to
\n+
17 * the following conditions:
\n+
18 *
\n+
19 * The above copyright notice and this permission notice shall be
\n+
20 * included in all copies or substantial portions of the Software.
\n+
21 *
\n+
22 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
\n+
23 * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
\n+
24 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
\n+
25 * IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR
\n+
26 * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
\n+
27 * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
\n+
28 * OTHER DEALINGS IN THE SOFTWARE.
\n+
29 ***************************************************************************/
\n+
30#ifndef _SILLY_h_
\n+
31#define _SILLY_h_
\n+
109namespace SILLY
\n+
110{
\n+
111
\n+
112}
\n+
113
\n+
114
\n+
115
\n+
116
\n+
117#include "SILLYBase.h"
\n+
118#include "SILLYDataSource.h"
\n+
119#include "SILLYFileDataSource.h"
\n+
120#include "SILLYMemoryDataSource.h"
\n+
121#include "SILLYImageLoader.h"
\n+
122#include "SILLYImageContext.h"
\n+
123#include "SILLYImageLoaderManager.h"
\n+
124#include "SILLYImage.h"
\n+
125
\n+
126#endif // end of guard _SILLY_h_
\n+
Simple Image Loading LibrarY namespace.
\n
\n \n
\n Generated by \"doxygen\"/ 1.9.4\n
\n \n \n", "details": [{"source1": "html2text {}", "source2": "html2text {}", "unified_diff": "@@ -4,21 +4,21 @@\n \n Simple Image Loading LibrarY\u00a00.1.0\n \n * build\n * reproducible-path\n * silly-0.1.0\n * include\n-SILLYImageLoader.icpp\n+SILLY.h\n 1/***********************************************************************\n- 2 filename: ImageLoader.icpp\n+ 2 filename: SILLY.h\n 3 created: 10 Jun 2006\n 4 author: Olivier Delannoy\n 5\n- 6 purpose: Inline function definition for ImageLoader class\n+ 6 purpose: Master include for the SILLY library\n 7*************************************************************************/\n 8/***************************************************************************\n 9 * Copyright (C) 2004 - 2006 Paul D Turner & The CEGUI Development Team\n 10 *\n 11 * Permission is hereby granted, free of charge, to any person obtaining\n 12 * a copy of this software and associated documentation files (the\n 13 * \"Software\"), to deal in the Software without restriction, including\n@@ -35,28 +35,33 @@\n 24 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.\n 25 * IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR\n 26 * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,\n 27 * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR\n 28 * OTHER DEALINGS IN THE SOFTWARE.\n 29\n ***************************************************************************/\n- 30\n- 31// Start of section namespace SILLY\n- 32namespace SILLY\n- 33{\n- 34inline ImageLoader::ImageLoader(const char* name)\n- 35 : d_name(name)\n- 36{\n- 37}\n- 38inline ImageLoader::~ImageLoader()\n- 39{\n- 40}\n- 41inline const char* ImageLoader::getIdentifierString() const\n- 42{\n- 43 return d_name;\n- 44}\n- 45\n- 46} // End of section namespace SILLY\n- 47\n+ 30#ifndef _SILLY_h_\n+ 31#define _SILLY_h_\n+ 109namespace SILLY\n+ 110{\n+ 111\n+ 112}\n+ 113\n+ 114\n+ 115\n+ 116\n+ 117#include \"SILLYBase.h\"\n+ 118#include \"SILLYDataSource.h\"\n+ 119#include \"SILLYFileDataSource.h\"\n+ 120#include \"SILLYMemoryDataSource.h\"\n+ 121#include \"SILLYImageLoader.h\"\n+ 122#include \"SILLYImageContext.h\"\n+ 123#include \"SILLYImageLoaderManager.h\"\n+ 124#include \"SILLYImage.h\"\n+ 125\n+ 126#endif // end of guard _SILLY_h_\n+SILLY\n+Simple Image Loading LibrarY namespace.\n+Definition: SILLYJPGImageContext.cpp:46\n \n ===============================================================================\n Generated by\u00a0[doxygen] 1.9.4\n"}]}, {"source1": "./usr/share/doc/libsilly-doc/html/a00104_source.html", "source2": "./usr/share/doc/libsilly-doc/html/a00104_source.html", "unified_diff": "@@ -1,15 +1,15 @@\n \n \n \n \n \n \n \n-Simple Image Loading LibrarY: /build/reproducible-path/silly-0.1.0/include/SILLYImageLoader.h Source File\n+Simple Image Loading LibrarY: /build/reproducible-path/silly-0.1.0/include/SILLYOptions.h Source File\n \n \n \n \n \n \n
\n@@ -39,95 +39,56 @@\n
\n \n
\n
\n-
SILLYImageLoader.h
\n+
SILLYOptions.h
\n
\n
\n-
1/***********************************************************************
\n-
2 filename: SILLYImageLoader.h
\n-
3 created: 10 Jun 2006
\n-
4 author: Olivier Delannoy
\n-
5
\n-
6 purpose: Abstract class for all image loader
\n-
7*************************************************************************/
\n-
8/***************************************************************************
\n-
9 * Copyright (C) 2004 - 2006 Paul D Turner & The CEGUI Development Team
\n-
10 *
\n-
11 * Permission is hereby granted, free of charge, to any person obtaining
\n-
12 * a copy of this software and associated documentation files (the
\n-
13 * "Software"), to deal in the Software without restriction, including
\n-
14 * without limitation the rights to use, copy, modify, merge, publish,
\n-
15 * distribute, sublicense, and/or sell copies of the Software, and to
\n-
16 * permit persons to whom the Software is furnished to do so, subject to
\n-
17 * the following conditions:
\n-
18 *
\n-
19 * The above copyright notice and this permission notice shall be
\n-
20 * included in all copies or substantial portions of the Software.
\n-
21 *
\n-
22 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
\n-
23 * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
\n-
24 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
\n-
25 * IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR
\n-
26 * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
\n-
27 * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
\n-
28 * OTHER DEALINGS IN THE SOFTWARE.
\n-
29 ***************************************************************************/
\n-
30#ifndef _SILLYImageLoader_h_
\n-
31#define _SILLYImageLoader_h_
\n-
32#include "SILLYBase.h"
\n-
33// Start of section namespace SILLY
\n-
34namespace SILLY
\n-
35{
\n-
36class DataSource; // Forward declaration
\n-
37class ImageContext; // Forward declaration
\n-
38
\n-
46class SILLY_EXPORT ImageLoader
\n-
47{
\n-
48protected:
\n-
52 ImageLoader(const char* name);
\n-
53public:
\n-
54
\n-
59 virtual ~ImageLoader();
\n-
60
\n-
71 virtual ImageContext* loadHeader(PixelFormat& formatSource, DataSource* data) = 0;
\n-
72
\n-
73
\n-
86 virtual bool loadImageData(PixelOrigin origin, DataSource* data, ImageContext* context) = 0;
\n-
87
\n-
94 void destroyContext(ImageContext* context);
\n-
95
\n-
100 const char* getIdentifierString() const;
\n-
101private:
\n-
102 const char* d_name;
\n-
103
\n-
104};
\n-
105
\n-
106} // End of section namespace SILLY
\n-
107
\n-
108// Inclue inline function when needed
\n-
109#ifdef SILLY_OPT_INLINE
\n-
110#include "SILLYImageLoader.icpp"
\n-
111#endif
\n-
112
\n-
113#endif // end of guard _SILLYImageLoader_h_
\n-
Simple Image Loading LibrarY namespace.
\n-
PixelFormat
List all pixel format supported.
Definition: SILLYBase.h:60
\n-
PixelOrigin
List all pixel origin supported.
Definition: SILLYBase.h:71
\n-
This is an abstract class used to provide data to the loader.
\n-
Store the data needed by an ImageLoader object during the parsing of an image.
\n-
This is an abstract class that define the interface of all image loader.
\n-
ImageLoader(const char *name)
Constructor.
\n-
virtual ImageContext * loadHeader(PixelFormat &formatSource, DataSource *data)=0
Parse the header of the image and fill the header struct.
\n-
virtual bool loadImageData(PixelOrigin origin, DataSource *data, ImageContext *context)=0
Parse the pixels data of the image and fill the header struct.
\n-
virtual ~ImageLoader()
Destructor.
\n-
const char * getIdentifierString() const
Return the name of the loader.
\n+
1/* include/SILLYOptions.h. Generated from SILLYOptions.h.in by configure. */
\n+
2/***********************************************************************
\n+
3 filename: SILLYOptions.h.in
\n+
4 created: 2006/06/10
\n+
5 author: Olivier Delannoy
\n+
6
\n+
7 purpose: Store options of the SILLY library
\n+
8*************************************************************************/
\n+
9/***************************************************************************
\n+
10 * Copyright (C) 2004 - 2006 Paul D Turner & The CEGUI Development Team
\n+
11 *
\n+
12 * Permission is hereby granted, free of charge, to any person obtaining
\n+
13 * a copy of this software and associated documentation files (the
\n+
14 * "Software"), to deal in the Software without restriction, including
\n+
15 * without limitation the rights to use, copy, modify, merge, publish,
\n+
16 * distribute, sublicense, and/or sell copies of the Software, and to
\n+
17 * permit persons to whom the Software is furnished to do so, subject to
\n+
18 * the following conditions:
\n+
19 *
\n+
20 * The above copyright notice and this permission notice shall be
\n+
21 * included in all copies or substantial portions of the Software.
\n+
22 *
\n+
23 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
\n+
24 * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
\n+
25 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
\n+
26 * IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR
\n+
27 * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
\n+
28 * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
\n+
29 * OTHER DEALINGS IN THE SOFTWARE.
\n+
30 ***************************************************************************/
\n+
31/* Defined to 1 if inline is enabled */
\n+
32#define SILLY_OPT_INLINE 1
\n+
33
\n+
34/* Defined to 1 if debug is enabled */
\n+
35/* #undef SILLY_OPT_DEBUG */
\n+
36
\n+
37/* Defined to 1 if profile is enabled */
\n+
38/* #undef SILLY_OPT_PROFILE */
\n+
39
\n
\n \n
\n Generated by \"doxygen\"/ 1.9.4\n
\n \n \n", "details": [{"source1": "html2text {}", "source2": "html2text {}", "unified_diff": "@@ -4,118 +4,51 @@\n \n Simple Image Loading LibrarY\u00a00.1.0\n \n * build\n * reproducible-path\n * silly-0.1.0\n * include\n-SILLYImageLoader.h\n- 1/***********************************************************************\n- 2 filename: SILLYImageLoader.h\n- 3 created: 10 Jun 2006\n- 4 author: Olivier Delannoy\n- 5\n- 6 purpose: Abstract class for all image loader\n- 7*************************************************************************/\n- 8/***************************************************************************\n- 9 * Copyright (C) 2004 - 2006 Paul D Turner & The CEGUI Development Team\n- 10 *\n- 11 * Permission is hereby granted, free of charge, to any person obtaining\n- 12 * a copy of this software and associated documentation files (the\n- 13 * \"Software\"), to deal in the Software without restriction, including\n- 14 * without limitation the rights to use, copy, modify, merge, publish,\n- 15 * distribute, sublicense, and/or sell copies of the Software, and to\n- 16 * permit persons to whom the Software is furnished to do so, subject to\n- 17 * the following conditions:\n- 18 *\n- 19 * The above copyright notice and this permission notice shall be\n- 20 * included in all copies or substantial portions of the Software.\n- 21 *\n- 22 * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND,\n- 23 * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\n- 24 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.\n- 25 * IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR\n- 26 * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,\n- 27 * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR\n- 28 * OTHER DEALINGS IN THE SOFTWARE.\n- 29\n+SILLYOptions.h\n+ 1/* include/SILLYOptions.h. Generated from SILLYOptions.h.in by configure. */\n+ 2/***********************************************************************\n+ 3 filename: SILLYOptions.h.in\n+ 4 created: 2006/06/10\n+ 5 author: Olivier Delannoy\n+ 6\n+ 7 purpose: Store options of the SILLY library\n+ 8*************************************************************************/\n+ 9/***************************************************************************\n+ 10 * Copyright (C) 2004 - 2006 Paul D Turner & The CEGUI Development Team\n+ 11 *\n+ 12 * Permission is hereby granted, free of charge, to any person obtaining\n+ 13 * a copy of this software and associated documentation files (the\n+ 14 * \"Software\"), to deal in the Software without restriction, including\n+ 15 * without limitation the rights to use, copy, modify, merge, publish,\n+ 16 * distribute, sublicense, and/or sell copies of the Software, and to\n+ 17 * permit persons to whom the Software is furnished to do so, subject to\n+ 18 * the following conditions:\n+ 19 *\n+ 20 * The above copyright notice and this permission notice shall be\n+ 21 * included in all copies or substantial portions of the Software.\n+ 22 *\n+ 23 * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND,\n+ 24 * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\n+ 25 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.\n+ 26 * IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR\n+ 27 * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,\n+ 28 * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR\n+ 29 * OTHER DEALINGS IN THE SOFTWARE.\n+ 30\n ***************************************************************************/\n- 30#ifndef _SILLYImageLoader_h_\n- 31#define _SILLYImageLoader_h_\n- 32#include \"SILLYBase.h\"\n- 33// Start of section namespace SILLY\n- 34namespace SILLY\n- 35{\n- 36class DataSource; // Forward declaration\n- 37class ImageContext; // Forward declaration\n- 38\n-46class SILLY_EXPORT ImageLoader\n- 47{\n- 48protected:\n-52 ImageLoader(const char* name);\n- 53public:\n- 54\n-59 virtual ~ImageLoader();\n- 60\n-71 virtual ImageContext* loadHeader(PixelFormat& formatSource, DataSource*\n-data) = 0;\n- 72\n- 73\n-86 virtual bool loadImageData(PixelOrigin origin, DataSource* data,\n-ImageContext* context) = 0;\n- 87\n- 94 void destroyContext(ImageContext* context);\n- 95\n-100 const char* getIdentifierString() const;\n- 101private:\n- 102 const char* d_name;\n- 103\n- 104};\n- 105\n- 106} // End of section namespace SILLY\n- 107\n- 108// Inclue inline function when needed\n- 109#ifdef SILLY_OPT_INLINE\n- 110#include \"SILLYImageLoader.icpp\"\n- 111#endif\n- 112\n- 113#endif // end of guard _SILLYImageLoader_h_\n-SILLY\n-Simple Image Loading LibrarY namespace.\n-Definition: SILLYJPGImageContext.cpp:46\n-SILLY::PixelFormat\n-PixelFormat\n-List all pixel format supported.\n-Definition: SILLYBase.h:60\n-SILLY::PixelOrigin\n-PixelOrigin\n-List all pixel origin supported.\n-Definition: SILLYBase.h:71\n-SILLY::DataSource\n-This is an abstract class used to provide data to the loader.\n-Definition: SILLYDataSource.h:47\n-SILLY::ImageContext\n-Store the data needed by an ImageLoader object during the parsing of an image.\n-Definition: SILLYImageContext.h:44\n-SILLY::ImageLoader\n-This is an abstract class that define the interface of all image loader.\n-Definition: SILLYImageLoader.h:47\n-SILLY::ImageLoader::ImageLoader\n-ImageLoader(const char *name)\n-Constructor.\n-SILLY::ImageLoader::loadHeader\n-virtual ImageContext * loadHeader(PixelFormat &formatSource, DataSource\n-*data)=0\n-Parse the header of the image and fill the header struct.\n-SILLY::ImageLoader::loadImageData\n-virtual bool loadImageData(PixelOrigin origin, DataSource *data, ImageContext\n-*context)=0\n-Parse the pixels data of the image and fill the header struct.\n-SILLY::ImageLoader::~ImageLoader\n-virtual ~ImageLoader()\n-Destructor.\n-SILLY::ImageLoader::getIdentifierString\n-const char * getIdentifierString() const\n-Return the name of the loader.\n+ 31/* Defined to 1 if inline is enabled */\n+ 32#define SILLY_OPT_INLINE 1\n+ 33\n+ 34/* Defined to 1 if debug is enabled */\n+ 35/* #undef SILLY_OPT_DEBUG */\n+ 36\n+ 37/* Defined to 1 if profile is enabled */\n+ 38/* #undef SILLY_OPT_PROFILE */\n+ 39\n \n ===============================================================================\n Generated by\u00a0[doxygen] 1.9.4\n"}]}, {"source1": "./usr/share/doc/libsilly-doc/html/a00107_source.html", "source2": "./usr/share/doc/libsilly-doc/html/a00107_source.html", "unified_diff": "@@ -1,15 +1,15 @@\n \n \n \n \n \n \n \n-Simple Image Loading LibrarY: /build/reproducible-path/silly-0.1.0/include/SILLY.h Source File\n+Simple Image Loading LibrarY: /build/reproducible-path/silly-0.1.0/include/SILLYFileDataSource.h Source File\n \n \n \n \n \n \n
\n@@ -39,23 +39,23 @@\n
\n \n
\n
\n-
SILLY.h
\n+
SILLYFileDataSource.h
\n
\n
\n
1/***********************************************************************
\n-
2 filename: SILLY.h
\n-
3 created: 10 Jun 2006
\n+
2 filename: SILLYFileDataSource.h
\n+
3 created: 20 Jul 2006
\n
4 author: Olivier Delannoy
\n
5
\n-
6 purpose: Master include for the SILLY library
\n+
6 purpose: Provide file based image loading
\n
7*************************************************************************/
\n
8/***************************************************************************
\n
9 * Copyright (C) 2004 - 2006 Paul D Turner & The CEGUI Development Team
\n
10 *
\n
11 * Permission is hereby granted, free of charge, to any person obtaining
\n
12 * a copy of this software and associated documentation files (the
\n
13 * "Software"), to deal in the Software without restriction, including
\n@@ -71,35 +71,52 @@\n
23 * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
\n
24 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
\n
25 * IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR
\n
26 * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
\n
27 * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
\n
28 * OTHER DEALINGS IN THE SOFTWARE.
\n
29 ***************************************************************************/
\n-
30#ifndef _SILLY_h_
\n-
31#define _SILLY_h_
\n-
109namespace SILLY
\n-
110{
\n-
111
\n-
112}
\n-
113
\n-
114
\n-
115
\n-
116
\n-
117#include "SILLYBase.h"
\n-
118#include "SILLYDataSource.h"
\n-
119#include "SILLYFileDataSource.h"
\n-
120#include "SILLYMemoryDataSource.h"
\n-
121#include "SILLYImageLoader.h"
\n-
122#include "SILLYImageContext.h"
\n-
123#include "SILLYImageLoaderManager.h"
\n-
124#include "SILLYImage.h"
\n-
125
\n-
126#endif // end of guard _SILLY_h_
\n+
30#ifndef _SILLYFileDataSource_h_
\n+
31#define _SILLYFileDataSource_h_
\n+
32#include "SILLYBase.h"
\n+
33#include "SILLYDataSource.h"
\n+
34// Start of section namespace SILLY
\n+
35namespace SILLY
\n+
36{
\n+
37
\n+
48class SILLY_EXPORT FileDataSource : public DataSource
\n+
49{
\n+
50public:
\n+
60 FileDataSource(const char* filename);
\n+\n+
73 bool isValid() const;
\n+
74
\n+
75 const byte* getDataPtr() const;
\n+
76 size_t getSize() const;
\n+
77private:
\n+
78 bool d_error;
\n+
79 byte* d_bytes;
\n+
80 size_t d_size;
\n+
81};
\n+
82
\n+
83
\n+
84} // End of section namespace SILLY
\n+
85
\n+
86// Inclue inline function when needed
\n+
87#ifdef SILLY_OPT_INLINE
\n+
88#include "SILLYFileDataSource.icpp"
\n+
89#endif
\n+
90
\n+
91#endif // end of guard _SILLYFileDataSource_h_
\n
Simple Image Loading LibrarY namespace.
\n+
This is an abstract class used to provide data to the loader.
\n+
This class allow the loading of an image directly from a file.
\n+
const byte * getDataPtr() const
Get raw access to the image data.
\n+
bool isValid() const
Check wether the loading is successfull or not.
\n+
size_t getSize() const
Return the size of the data.
\n
\n \n
\n Generated by \"doxygen\"/ 1.9.4\n
\n \n \n", "details": [{"source1": "html2text {}", "source2": "html2text {}", "unified_diff": "@@ -4,21 +4,21 @@\n \n Simple Image Loading LibrarY\u00a00.1.0\n \n * build\n * reproducible-path\n * silly-0.1.0\n * include\n-SILLY.h\n+SILLYFileDataSource.h\n 1/***********************************************************************\n- 2 filename: SILLY.h\n- 3 created: 10 Jun 2006\n+ 2 filename: SILLYFileDataSource.h\n+ 3 created: 20 Jul 2006\n 4 author: Olivier Delannoy\n 5\n- 6 purpose: Master include for the SILLY library\n+ 6 purpose: Provide file based image loading\n 7*************************************************************************/\n 8/***************************************************************************\n 9 * Copyright (C) 2004 - 2006 Paul D Turner & The CEGUI Development Team\n 10 *\n 11 * Permission is hereby granted, free of charge, to any person obtaining\n 12 * a copy of this software and associated documentation files (the\n 13 * \"Software\"), to deal in the Software without restriction, including\n@@ -35,33 +35,60 @@\n 24 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.\n 25 * IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR\n 26 * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,\n 27 * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR\n 28 * OTHER DEALINGS IN THE SOFTWARE.\n 29\n ***************************************************************************/\n- 30#ifndef _SILLY_h_\n- 31#define _SILLY_h_\n- 109namespace SILLY\n- 110{\n- 111\n- 112}\n- 113\n- 114\n- 115\n- 116\n- 117#include \"SILLYBase.h\"\n- 118#include \"SILLYDataSource.h\"\n- 119#include \"SILLYFileDataSource.h\"\n- 120#include \"SILLYMemoryDataSource.h\"\n- 121#include \"SILLYImageLoader.h\"\n- 122#include \"SILLYImageContext.h\"\n- 123#include \"SILLYImageLoaderManager.h\"\n- 124#include \"SILLYImage.h\"\n- 125\n- 126#endif // end of guard _SILLY_h_\n+ 30#ifndef _SILLYFileDataSource_h_\n+ 31#define _SILLYFileDataSource_h_\n+ 32#include \"SILLYBase.h\"\n+ 33#include \"SILLYDataSource.h\"\n+ 34// Start of section namespace SILLY\n+ 35namespace SILLY\n+ 36{\n+ 37\n+48class SILLY_EXPORT FileDataSource : public DataSource\n+ 49{\n+ 50public:\n+ 60 FileDataSource(const char* filename);\n+ 64 ~FileDataSource();\n+73 bool isValid() const;\n+ 74\n+75 const byte* getDataPtr() const;\n+76 size_t getSize() const;\n+ 77private:\n+ 78 bool d_error;\n+ 79 byte* d_bytes;\n+ 80 size_t d_size;\n+ 81};\n+ 82\n+ 83\n+ 84} // End of section namespace SILLY\n+ 85\n+ 86// Inclue inline function when needed\n+ 87#ifdef SILLY_OPT_INLINE\n+ 88#include \"SILLYFileDataSource.icpp\"\n+ 89#endif\n+ 90\n+ 91#endif // end of guard _SILLYFileDataSource_h_\n SILLY\n Simple Image Loading LibrarY namespace.\n Definition: SILLYJPGImageContext.cpp:46\n+SILLY::DataSource\n+This is an abstract class used to provide data to the loader.\n+Definition: SILLYDataSource.h:47\n+SILLY::FileDataSource\n+This class allow the loading of an image directly from a file.\n+Definition: SILLYFileDataSource.h:49\n+SILLY::FileDataSource::getDataPtr\n+const byte * getDataPtr() const\n+Get raw access to the image data.\n+SILLY::FileDataSource::isValid\n+bool isValid() const\n+Check wether the loading is successfull or not.\n+SILLY::FileDataSource::getSize\n+size_t getSize() const\n+Return the size of the data.\n \n ===============================================================================\n Generated by\u00a0[doxygen] 1.9.4\n"}]}, {"source1": "./usr/share/doc/libsilly-doc/html/a00110_source.html", "source2": "./usr/share/doc/libsilly-doc/html/a00110_source.html", "unified_diff": "@@ -1,15 +1,15 @@\n \n \n \n \n \n \n \n-Simple Image Loading LibrarY: /build/reproducible-path/silly-0.1.0/include/SILLYDataSource.h Source File\n+Simple Image Loading LibrarY: /build/reproducible-path/silly-0.1.0/include/SILLYImageLoaderManager.h Source File\n \n \n \n \n \n \n
\n@@ -39,23 +39,23 @@\n
\n \n
\n
\n-
SILLYDataSource.h
\n+
SILLYImageLoaderManager.h
\n
\n
\n
1/***********************************************************************
\n-
2 filename: SILLYDataSource.h
\n+
2 filename: ImageLoaderManager.h
\n
3 created: 10 Jun 2006
\n-
4 author: Olivier Delannoy
\n+
4 author: Olivier Delannoy
\n
5
\n-
6 purpose: SILLY::DataSource declaration for the SILLY library
\n+
6 purpose: Manage all available loader
\n
7*************************************************************************/
\n
8/***************************************************************************
\n
9 * Copyright (C) 2004 - 2006 Paul D Turner & The CEGUI Development Team
\n
10 *
\n
11 * Permission is hereby granted, free of charge, to any person obtaining
\n
12 * a copy of this software and associated documentation files (the
\n
13 * "Software"), to deal in the Software without restriction, including
\n@@ -71,45 +71,78 @@\n
23 * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
\n
24 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
\n
25 * IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR
\n
26 * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
\n
27 * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
\n
28 * OTHER DEALINGS IN THE SOFTWARE.
\n
29 ***************************************************************************/
\n-
30#ifndef _SILLYDataSource_h_
\n-
31#define _SILLYDataSource_h_
\n+
30#ifndef _SILLYImageLoaderManager_h_
\n+
31#define _SILLYImageLoaderManager_h_
\n
32#include "SILLYBase.h"
\n-
33
\n+
33#include <vector>
\n
34// Start of section namespace SILLY
\n
35namespace SILLY
\n
36{
\n-
37
\n-
46class SILLY_EXPORT DataSource
\n-
47{
\n-
48public:
\n-
53 virtual ~DataSource();
\n-
58 virtual const byte * getDataPtr() const = 0;
\n-
64 byte operator[] (size_t offset) const;
\n-
69 virtual size_t getSize() const = 0;
\n-
70};
\n-
71
\n-
72
\n-
73} // End of section namespace SILLY
\n-
74
\n-
75// Inclue inline function when needed
\n-
76#ifdef SILLY_OPT_INLINE
\n-
77#include "SILLYDataSource.icpp"
\n-
78#endif
\n-
79
\n-
80#endif // end of guard _SILLYDataSource_h_
\n+
37class ImageLoader; // Forward declaration
\n+
42typedef std::vector<ImageLoader*> ImageLoaderList;
\n+
43
\n+
44#if defined(_MSC_VER)
\n+
45
\n+
46# pragma warning(push)
\n+
47
\n+
48# pragma warning(disable : 4251)
\n+
49
\n+
50#endif
\n+
51
\n+
56class SILLY_EXPORT ImageLoaderManager
\n+
57{
\n+
58
\n+
59public:
\n+\n+\n+
74 ImageLoaderList::iterator begin();
\n+
79 ImageLoaderList::iterator end();
\n+
86 void add(ImageLoader* loader);
\n+
87
\n+
88private:
\n+
89 ImageLoaderList d_loaders;
\n+
90
\n+
91public:
\n+
92 static ImageLoaderManager* getSingletonPtr();
\n+
93 static ImageLoaderManager& getSingleton();
\n+
94
\n+
95private:
\n+
96 static ImageLoaderManager* d_instance;
\n+
97
\n+
98 // Disabled operations
\n+\n+\n+
101};
\n+
102
\n+
103#if defined(_MSC_VER)
\n+
104
\n+
105# pragma warning(pop)
\n+
106
\n+
107#endif
\n+
108
\n+
109} // End of section namespace SILLY
\n+
110
\n+
111// Inclue inline function when needed
\n+
112#ifdef SILLY_OPT_INLINE
\n+
113#include "SILLYImageLoaderManager.icpp"
\n+
114#endif
\n+
115
\n+
116#endif // end of guard _SILLYImageLoaderManager_h_
\n
Simple Image Loading LibrarY namespace.
\n-
This is an abstract class used to provide data to the loader.
\n-
virtual size_t getSize() const =0
Return the size of the data.
\n-
virtual const byte * getDataPtr() const =0
Get raw access to the image data.
\n-
virtual ~DataSource()
Destructor.
\n+
std::vector< ImageLoader * > ImageLoaderList
Typename for a collection of image loader.
\n+
This is an abstract class that define the interface of all image loader.
\n+
Manage the list of all supported ImageLoader.
\n+
void add(ImageLoader *loader)
Register an ImageLoader object.
\n+
ImageLoaderList::iterator begin()
Get an iterator to the first ImageLoader registered.
\n+
ImageLoaderList::iterator end()
Get an iterator to the first not registered ImageLoader.
\n
\n \n
\n Generated by \"doxygen\"/ 1.9.4\n
\n \n \n", "details": [{"source1": "html2text {}", "source2": "html2text {}", "unified_diff": "@@ -4,21 +4,21 @@\n \n Simple Image Loading LibrarY\u00a00.1.0\n \n * build\n * reproducible-path\n * silly-0.1.0\n * include\n-SILLYDataSource.h\n+SILLYImageLoaderManager.h\n 1/***********************************************************************\n- 2 filename: SILLYDataSource.h\n+ 2 filename: ImageLoaderManager.h\n 3 created: 10 Jun 2006\n 4 author: Olivier Delannoy\n 5\n- 6 purpose: SILLY::DataSource declaration for the SILLY library\n+ 6 purpose: Manage all available loader\n 7*************************************************************************/\n 8/***************************************************************************\n 9 * Copyright (C) 2004 - 2006 Paul D Turner & The CEGUI Development Team\n 10 *\n 11 * Permission is hereby granted, free of charge, to any person obtaining\n 12 * a copy of this software and associated documentation files (the\n 13 * \"Software\"), to deal in the Software without restriction, including\n@@ -35,51 +35,89 @@\n 24 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.\n 25 * IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR\n 26 * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,\n 27 * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR\n 28 * OTHER DEALINGS IN THE SOFTWARE.\n 29\n ***************************************************************************/\n- 30#ifndef _SILLYDataSource_h_\n- 31#define _SILLYDataSource_h_\n+ 30#ifndef _SILLYImageLoaderManager_h_\n+ 31#define _SILLYImageLoaderManager_h_\n 32#include \"SILLYBase.h\"\n- 33\n+ 33#include \n 34// Start of section namespace SILLY\n 35namespace SILLY\n 36{\n- 37\n-46class SILLY_EXPORT DataSource\n- 47{\n- 48public:\n-53 virtual ~DataSource();\n-58 virtual const byte * getDataPtr() const = 0;\n-64 byte operator[] (size_t offset) const;\n-69 virtual size_t getSize() const = 0;\n- 70};\n- 71\n- 72\n- 73} // End of section namespace SILLY\n- 74\n- 75// Inclue inline function when needed\n- 76#ifdef SILLY_OPT_INLINE\n- 77#include \"SILLYDataSource.icpp\"\n- 78#endif\n- 79\n- 80#endif // end of guard _SILLYDataSource_h_\n+ 37class ImageLoader; // Forward declaration\n+42typedef std::vector ImageLoaderList;\n+ 43\n+ 44#if defined(_MSC_VER)\n+ 45\n+ 46# pragma warning(push)\n+ 47\n+ 48# pragma warning(disable : 4251)\n+ 49\n+ 50#endif\n+ 51\n+56class SILLY_EXPORT ImageLoaderManager\n+ 57{\n+ 58\n+ 59public:\n+ 64 ImageLoaderManager();\n+ 69 ~ImageLoaderManager();\n+74 ImageLoaderList::iterator begin();\n+79 ImageLoaderList::iterator end();\n+86 void add(ImageLoader* loader);\n+ 87\n+ 88private:\n+ 89 ImageLoaderList d_loaders;\n+ 90\n+ 91public:\n+ 92 static ImageLoaderManager* getSingletonPtr();\n+ 93 static ImageLoaderManager& getSingleton();\n+ 94\n+ 95private:\n+ 96 static ImageLoaderManager* d_instance;\n+ 97\n+ 98 // Disabled operations\n+ 99 ImageLoaderManager(ImageLoaderManager&);\n+ 100 ImageLoaderManager& operator=(ImageLoaderManager&);\n+ 101};\n+ 102\n+ 103#if defined(_MSC_VER)\n+ 104\n+ 105# pragma warning(pop)\n+ 106\n+ 107#endif\n+ 108\n+ 109} // End of section namespace SILLY\n+ 110\n+ 111// Inclue inline function when needed\n+ 112#ifdef SILLY_OPT_INLINE\n+ 113#include \"SILLYImageLoaderManager.icpp\"\n+ 114#endif\n+ 115\n+ 116#endif // end of guard _SILLYImageLoaderManager_h_\n SILLY\n Simple Image Loading LibrarY namespace.\n Definition: SILLYJPGImageContext.cpp:46\n-SILLY::DataSource\n-This is an abstract class used to provide data to the loader.\n-Definition: SILLYDataSource.h:47\n-SILLY::DataSource::getSize\n-virtual size_t getSize() const =0\n-Return the size of the data.\n-SILLY::DataSource::getDataPtr\n-virtual const byte * getDataPtr() const =0\n-Get raw access to the image data.\n-SILLY::DataSource::~DataSource\n-virtual ~DataSource()\n-Destructor.\n+SILLY::ImageLoaderList\n+std::vector< ImageLoader * > ImageLoaderList\n+Typename for a collection of image loader.\n+Definition: SILLYImageLoaderManager.h:42\n+SILLY::ImageLoader\n+This is an abstract class that define the interface of all image loader.\n+Definition: SILLYImageLoader.h:47\n+SILLY::ImageLoaderManager\n+Manage the list of all supported ImageLoader.\n+Definition: SILLYImageLoaderManager.h:57\n+SILLY::ImageLoaderManager::add\n+void add(ImageLoader *loader)\n+Register an ImageLoader object.\n+SILLY::ImageLoaderManager::begin\n+ImageLoaderList::iterator begin()\n+Get an iterator to the first ImageLoader registered.\n+SILLY::ImageLoaderManager::end\n+ImageLoaderList::iterator end()\n+Get an iterator to the first not registered ImageLoader.\n \n ===============================================================================\n Generated by\u00a0[doxygen] 1.9.4\n"}]}, {"source1": "./usr/share/doc/libsilly-doc/html/a00113_source.html", "source2": "./usr/share/doc/libsilly-doc/html/a00113_source.html", "unified_diff": "@@ -1,15 +1,15 @@\n \n \n \n \n \n \n \n-Simple Image Loading LibrarY: /build/reproducible-path/silly-0.1.0/include/SILLYMemoryDataSource.icpp Source File\n+Simple Image Loading LibrarY: /build/reproducible-path/silly-0.1.0/include/SILLYImage.icpp Source File\n \n \n \n \n \n \n
\n@@ -39,23 +39,23 @@\n
\n \n
\n
\n-
SILLYMemoryDataSource.icpp
\n+
SILLYImage.icpp
\n
\n
\n
1/***********************************************************************
\n-
2 Filename: SILLYMemoryDataSource.icpp
\n+
2 filename: SILLYImage.icpp
\n
3 created: 10 Jun 2006
\n
4 author: Olivier Delannoy
\n
5
\n-
6 purpose: Inline function definition for MemoryDataSource class
\n+
6 purpose: Inline definition of the image class
\n
7*************************************************************************/
\n
8/***************************************************************************
\n
9 * Copyright (C) 2004 - 2006 Paul D Turner & The CEGUI Development Team
\n
10 *
\n
11 * Permission is hereby granted, free of charge, to any person obtaining
\n
12 * a copy of this software and associated documentation files (the
\n
13 * "Software"), to deal in the Software without restriction, including
\n@@ -76,26 +76,64 @@\n
28 * OTHER DEALINGS IN THE SOFTWARE.
\n
29 ***************************************************************************/
\n
30
\n
31// Start of section namespace SILLY
\n
32namespace SILLY
\n
33{
\n
34
\n-
35inline const byte* MemoryDataSource::getDataPtr() const
\n+
35inline bool Image::isValid() const
\n
36{
\n-
37 return d_bytes;
\n+
37 return d_imageContext && d_pixels;
\n
38}
\n
39
\n-
40inline size_t MemoryDataSource::getSize() const
\n+
40inline size_t Image::getWidth() const
\n
41{
\n-
42 return d_size;
\n+
42 return d_imageContext->getWidth();
\n
43}
\n-
44
\n-
45} // End of section namespace SILLY
\n-
46
\n+
44
\n+
45inline size_t Image::getHeight() const
\n+
46{
\n+
47 return d_imageContext->getHeight();
\n+
48}
\n+
49
\n+
50inline PixelFormat Image::getSourcePixelFormat() const
\n+
51{
\n+
52 return d_pfSource;
\n+
53}
\n+
54
\n+
55inline PixelFormat Image::getPixelFormat() const
\n+
56{
\n+
57 return d_imageContext->getPixelFormat();
\n+
58}
\n+
59
\n+
60inline const byte* Image::getPixelsDataPtr() const
\n+
61{
\n+
62 return d_pixels;
\n+
63}
\n+
64
\n+
65inline size_t Image::getPixelsDataSize() const
\n+
66{
\n+
67 return getWidth() * getHeight() * d_bpp;
\n+
68}
\n+
69
\n+
70inline Image::~Image()
\n+
71{
\n+
72 delete [] d_pixels;
\n+
73 if (d_imageLoader)
\n+
74 d_imageLoader->destroyContext(d_imageContext);
\n+
75}
\n+
76inline const char* Image::getLoaderIdentifierString() const
\n+
77{
\n+
78 if (d_imageLoader)
\n+
79 return d_imageLoader->getIdentifierString();
\n+
80 return 0;
\n+
81}
\n+
82
\n+
83} // End of section namespace SILLY
\n+
84
\n
\n \n
\n Generated by \"doxygen\"/ 1.9.4\n
\n \n \n", "details": [{"source1": "html2text {}", "source2": "html2text {}", "unified_diff": "@@ -4,21 +4,21 @@\n \n Simple Image Loading LibrarY\u00a00.1.0\n \n * build\n * reproducible-path\n * silly-0.1.0\n * include\n-SILLYMemoryDataSource.icpp\n+SILLYImage.icpp\n 1/***********************************************************************\n- 2 Filename: SILLYMemoryDataSource.icpp\n+ 2 filename: SILLYImage.icpp\n 3 created: 10 Jun 2006\n 4 author: Olivier Delannoy\n 5\n- 6 purpose: Inline function definition for MemoryDataSource class\n+ 6 purpose: Inline definition of the image class\n 7*************************************************************************/\n 8/***************************************************************************\n 9 * Copyright (C) 2004 - 2006 Paul D Turner & The CEGUI Development Team\n 10 *\n 11 * Permission is hereby granted, free of charge, to any person obtaining\n 12 * a copy of this software and associated documentation files (the\n 13 * \"Software\"), to deal in the Software without restriction, including\n@@ -40,22 +40,60 @@\n 29\n ***************************************************************************/\n 30\n 31// Start of section namespace SILLY\n 32namespace SILLY\n 33{\n 34\n- 35inline const byte* MemoryDataSource::getDataPtr() const\n+ 35inline bool Image::isValid() const\n 36{\n- 37 return d_bytes;\n+ 37 return d_imageContext && d_pixels;\n 38}\n 39\n- 40inline size_t MemoryDataSource::getSize() const\n+ 40inline size_t Image::getWidth() const\n 41{\n- 42 return d_size;\n+ 42 return d_imageContext->getWidth();\n 43}\n 44\n- 45} // End of section namespace SILLY\n- 46\n+ 45inline size_t Image::getHeight() const\n+ 46{\n+ 47 return d_imageContext->getHeight();\n+ 48}\n+ 49\n+ 50inline PixelFormat Image::getSourcePixelFormat() const\n+ 51{\n+ 52 return d_pfSource;\n+ 53}\n+ 54\n+ 55inline PixelFormat Image::getPixelFormat() const\n+ 56{\n+ 57 return d_imageContext->getPixelFormat();\n+ 58}\n+ 59\n+ 60inline const byte* Image::getPixelsDataPtr() const\n+ 61{\n+ 62 return d_pixels;\n+ 63}\n+ 64\n+ 65inline size_t Image::getPixelsDataSize() const\n+ 66{\n+ 67 return getWidth() * getHeight() * d_bpp;\n+ 68}\n+ 69\n+ 70inline Image::~Image()\n+ 71{\n+ 72 delete [] d_pixels;\n+ 73 if (d_imageLoader)\n+ 74 d_imageLoader->destroyContext(d_imageContext);\n+ 75}\n+ 76inline const char* Image::getLoaderIdentifierString() const\n+ 77{\n+ 78 if (d_imageLoader)\n+ 79 return d_imageLoader->getIdentifierString();\n+ 80 return 0;\n+ 81}\n+ 82\n+ 83} // End of section namespace SILLY\n+ 84\n \n ===============================================================================\n Generated by\u00a0[doxygen] 1.9.4\n"}]}, {"source1": "./usr/share/doc/libsilly-doc/html/a00116_source.html", "source2": "./usr/share/doc/libsilly-doc/html/a00116_source.html", "unified_diff": "@@ -1,15 +1,15 @@\n \n \n \n \n \n \n \n-Simple Image Loading LibrarY: /build/reproducible-path/silly-0.1.0/include/SILLYOptions.h Source File\n+Simple Image Loading LibrarY: /build/reproducible-path/silly-0.1.0/include/SILLYImageLoaderManager.icpp Source File\n \n \n \n \n \n \n
\n@@ -39,56 +39,79 @@\n
\n \n
\n
\n-
SILLYOptions.h
\n+
SILLYImageLoaderManager.icpp
\n
\n
\n-
1/* include/SILLYOptions.h. Generated from SILLYOptions.h.in by configure. */
\n-
2/***********************************************************************
\n-
3 filename: SILLYOptions.h.in
\n-
4 created: 2006/06/10
\n-
5 author: Olivier Delannoy
\n-
6
\n-
7 purpose: Store options of the SILLY library
\n-
8*************************************************************************/
\n-
9/***************************************************************************
\n-
10 * Copyright (C) 2004 - 2006 Paul D Turner & The CEGUI Development Team
\n-
11 *
\n-
12 * Permission is hereby granted, free of charge, to any person obtaining
\n-
13 * a copy of this software and associated documentation files (the
\n-
14 * "Software"), to deal in the Software without restriction, including
\n-
15 * without limitation the rights to use, copy, modify, merge, publish,
\n-
16 * distribute, sublicense, and/or sell copies of the Software, and to
\n-
17 * permit persons to whom the Software is furnished to do so, subject to
\n-
18 * the following conditions:
\n-
19 *
\n-
20 * The above copyright notice and this permission notice shall be
\n-
21 * included in all copies or substantial portions of the Software.
\n-
22 *
\n-
23 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
\n-
24 * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
\n-
25 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
\n-
26 * IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR
\n-
27 * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
\n-
28 * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
\n-
29 * OTHER DEALINGS IN THE SOFTWARE.
\n-
30 ***************************************************************************/
\n-
31/* Defined to 1 if inline is enabled */
\n-
32#define SILLY_OPT_INLINE 1
\n-
33
\n-
34/* Defined to 1 if debug is enabled */
\n-
35/* #undef SILLY_OPT_DEBUG */
\n-
36
\n-
37/* Defined to 1 if profile is enabled */
\n-
38/* #undef SILLY_OPT_PROFILE */
\n-
39
\n+
1/***********************************************************************
\n+
2 filename: SILLYImageLoaderManager.icpp
\n+
3 created: 10 Jun 2006
\n+
4 author: Olivier Delannoy
\n+
5
\n+
6 purpose: Inline definition for ImageLoaderManager class
\n+
7*************************************************************************/
\n+
8/***************************************************************************
\n+
9 * Copyright (C) 2004 - 2006 Paul D Turner & The CEGUI Development Team
\n+
10 *
\n+
11 * Permission is hereby granted, free of charge, to any person obtaining
\n+
12 * a copy of this software and associated documentation files (the
\n+
13 * "Software"), to deal in the Software without restriction, including
\n+
14 * without limitation the rights to use, copy, modify, merge, publish,
\n+
15 * distribute, sublicense, and/or sell copies of the Software, and to
\n+
16 * permit persons to whom the Software is furnished to do so, subject to
\n+
17 * the following conditions:
\n+
18 *
\n+
19 * The above copyright notice and this permission notice shall be
\n+
20 * included in all copies or substantial portions of the Software.
\n+
21 *
\n+
22 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
\n+
23 * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
\n+
24 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
\n+
25 * IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR
\n+
26 * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
\n+
27 * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
\n+
28 * OTHER DEALINGS IN THE SOFTWARE.
\n+
29 ***************************************************************************/
\n+
30
\n+
31// Start of section namespace SILLY
\n+
32namespace SILLY
\n+
33{
\n+
34inline ImageLoaderList::iterator ImageLoaderManager::begin()
\n+
35{
\n+
36 return d_loaders.begin();
\n+
37}
\n+
38
\n+
39inline ImageLoaderList::iterator ImageLoaderManager::end()
\n+
40{
\n+
41 return d_loaders.end();
\n+
42}
\n+
43
\n+
44inline ImageLoaderManager* ImageLoaderManager::getSingletonPtr()
\n+
45{
\n+
46 return d_instance;
\n+
47}
\n+
48
\n+
49inline ImageLoaderManager& ImageLoaderManager::getSingleton()
\n+
50{
\n+
51 assert(d_instance && "ASSERT: Singleton object not yet created");
\n+
52 return *d_instance;
\n+
53}
\n+
54
\n+
55inline void ImageLoaderManager::add(ImageLoader* loader)
\n+
56{
\n+
57 assert(loader && "ASSERT: adding a none existing loader object");
\n+
58 d_loaders.push_back(loader);
\n+
59}
\n+
60
\n+
61} // End of section namespace SILLY
\n+
62
\n
\n \n
\n Generated by \"doxygen\"/ 1.9.4\n
\n \n \n", "details": [{"source1": "html2text {}", "source2": "html2text {}", "unified_diff": "@@ -4,51 +4,74 @@\n \n Simple Image Loading LibrarY\u00a00.1.0\n \n * build\n * reproducible-path\n * silly-0.1.0\n * include\n-SILLYOptions.h\n- 1/* include/SILLYOptions.h. Generated from SILLYOptions.h.in by configure. */\n- 2/***********************************************************************\n- 3 filename: SILLYOptions.h.in\n- 4 created: 2006/06/10\n- 5 author: Olivier Delannoy\n- 6\n- 7 purpose: Store options of the SILLY library\n- 8*************************************************************************/\n- 9/***************************************************************************\n- 10 * Copyright (C) 2004 - 2006 Paul D Turner & The CEGUI Development Team\n- 11 *\n- 12 * Permission is hereby granted, free of charge, to any person obtaining\n- 13 * a copy of this software and associated documentation files (the\n- 14 * \"Software\"), to deal in the Software without restriction, including\n- 15 * without limitation the rights to use, copy, modify, merge, publish,\n- 16 * distribute, sublicense, and/or sell copies of the Software, and to\n- 17 * permit persons to whom the Software is furnished to do so, subject to\n- 18 * the following conditions:\n- 19 *\n- 20 * The above copyright notice and this permission notice shall be\n- 21 * included in all copies or substantial portions of the Software.\n- 22 *\n- 23 * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND,\n- 24 * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\n- 25 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.\n- 26 * IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR\n- 27 * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,\n- 28 * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR\n- 29 * OTHER DEALINGS IN THE SOFTWARE.\n- 30\n+SILLYImageLoaderManager.icpp\n+ 1/***********************************************************************\n+ 2 filename: SILLYImageLoaderManager.icpp\n+ 3 created: 10 Jun 2006\n+ 4 author: Olivier Delannoy\n+ 5\n+ 6 purpose: Inline definition for ImageLoaderManager class\n+ 7*************************************************************************/\n+ 8/***************************************************************************\n+ 9 * Copyright (C) 2004 - 2006 Paul D Turner & The CEGUI Development Team\n+ 10 *\n+ 11 * Permission is hereby granted, free of charge, to any person obtaining\n+ 12 * a copy of this software and associated documentation files (the\n+ 13 * \"Software\"), to deal in the Software without restriction, including\n+ 14 * without limitation the rights to use, copy, modify, merge, publish,\n+ 15 * distribute, sublicense, and/or sell copies of the Software, and to\n+ 16 * permit persons to whom the Software is furnished to do so, subject to\n+ 17 * the following conditions:\n+ 18 *\n+ 19 * The above copyright notice and this permission notice shall be\n+ 20 * included in all copies or substantial portions of the Software.\n+ 21 *\n+ 22 * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND,\n+ 23 * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\n+ 24 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.\n+ 25 * IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR\n+ 26 * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,\n+ 27 * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR\n+ 28 * OTHER DEALINGS IN THE SOFTWARE.\n+ 29\n ***************************************************************************/\n- 31/* Defined to 1 if inline is enabled */\n- 32#define SILLY_OPT_INLINE 1\n- 33\n- 34/* Defined to 1 if debug is enabled */\n- 35/* #undef SILLY_OPT_DEBUG */\n- 36\n- 37/* Defined to 1 if profile is enabled */\n- 38/* #undef SILLY_OPT_PROFILE */\n- 39\n+ 30\n+ 31// Start of section namespace SILLY\n+ 32namespace SILLY\n+ 33{\n+ 34inline ImageLoaderList::iterator ImageLoaderManager::begin()\n+ 35{\n+ 36 return d_loaders.begin();\n+ 37}\n+ 38\n+ 39inline ImageLoaderList::iterator ImageLoaderManager::end()\n+ 40{\n+ 41 return d_loaders.end();\n+ 42}\n+ 43\n+ 44inline ImageLoaderManager* ImageLoaderManager::getSingletonPtr()\n+ 45{\n+ 46 return d_instance;\n+ 47}\n+ 48\n+ 49inline ImageLoaderManager& ImageLoaderManager::getSingleton()\n+ 50{\n+ 51 assert(d_instance && \"ASSERT: Singleton object not yet created\");\n+ 52 return *d_instance;\n+ 53}\n+ 54\n+ 55inline void ImageLoaderManager::add(ImageLoader* loader)\n+ 56{\n+ 57 assert(loader && \"ASSERT: adding a none existing loader object\");\n+ 58 d_loaders.push_back(loader);\n+ 59}\n+ 60\n+ 61} // End of section namespace SILLY\n+ 62\n \n ===============================================================================\n Generated by\u00a0[doxygen] 1.9.4\n"}]}, {"source1": "./usr/share/doc/libsilly-doc/html/a00119_source.html", "source2": "./usr/share/doc/libsilly-doc/html/a00119_source.html", "unified_diff": "@@ -1,15 +1,15 @@\n \n \n \n \n \n \n \n-Simple Image Loading LibrarY: /build/reproducible-path/silly-0.1.0/include/SILLYImage.icpp Source File\n+Simple Image Loading LibrarY: /build/reproducible-path/silly-0.1.0/include/SILLYBase.h Source File\n \n \n \n \n \n \n
\n@@ -39,101 +39,99 @@\n
\n \n
\n
\n-
SILLYImage.icpp
\n+
SILLYBase.h
\n
\n
\n-
1/***********************************************************************
\n-
2 filename: SILLYImage.icpp
\n-
3 created: 10 Jun 2006
\n-
4 author: Olivier Delannoy
\n-
5
\n-
6 purpose: Inline definition of the image class
\n-
7*************************************************************************/
\n-
8/***************************************************************************
\n-
9 * Copyright (C) 2004 - 2006 Paul D Turner & The CEGUI Development Team
\n-
10 *
\n-
11 * Permission is hereby granted, free of charge, to any person obtaining
\n-
12 * a copy of this software and associated documentation files (the
\n-
13 * "Software"), to deal in the Software without restriction, including
\n-
14 * without limitation the rights to use, copy, modify, merge, publish,
\n-
15 * distribute, sublicense, and/or sell copies of the Software, and to
\n-
16 * permit persons to whom the Software is furnished to do so, subject to
\n-
17 * the following conditions:
\n-
18 *
\n-
19 * The above copyright notice and this permission notice shall be
\n-
20 * included in all copies or substantial portions of the Software.
\n-
21 *
\n-
22 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
\n-
23 * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
\n-
24 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
\n-
25 * IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR
\n-
26 * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
\n-
27 * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
\n-
28 * OTHER DEALINGS IN THE SOFTWARE.
\n-
29 ***************************************************************************/
\n-
30
\n-
31// Start of section namespace SILLY
\n-
32namespace SILLY
\n-
33{
\n+
1/***********************************************************************
\n+
2 filename: SILLYBase.h
\n+
3 created: 2006/06/10
\n+
4 author: Olivier Delannoy
\n+
5
\n+
6 purpose: Common header for the SILLY library
\n+
7*************************************************************************/
\n+
8/***************************************************************************
\n+
9 * Copyright (C) 2004 - 2006 Paul D Turner & The CEGUI Development Team
\n+
10 *
\n+
11 * Permission is hereby granted, free of charge, to any person obtaining
\n+
12 * a copy of this software and associated documentation files (the
\n+
13 * "Software"), to deal in the Software without restriction, including
\n+
14 * without limitation the rights to use, copy, modify, merge, publish,
\n+
15 * distribute, sublicense, and/or sell copies of the Software, and to
\n+
16 * permit persons to whom the Software is furnished to do so, subject to
\n+
17 * the following conditions:
\n+
18 *
\n+
19 * The above copyright notice and this permission notice shall be
\n+
20 * included in all copies or substantial portions of the Software.
\n+
21 *
\n+
22 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
\n+
23 * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
\n+
24 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
\n+
25 * IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR
\n+
26 * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
\n+
27 * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
\n+
28 * OTHER DEALINGS IN THE SOFTWARE.
\n+
29 ***************************************************************************/
\n+
30#ifndef _SILLYBase_h_
\n+
31#define _SILLYBase_h_
\n+
32#include <cassert>
\n+
33#include <cstddef>
\n
34
\n-
35inline bool Image::isValid() const
\n-
36{
\n-
37 return d_imageContext && d_pixels;
\n-
38}
\n-
39
\n-
40inline size_t Image::getWidth() const
\n-
41{
\n-
42 return d_imageContext->getWidth();
\n-
43}
\n-
44
\n-
45inline size_t Image::getHeight() const
\n-
46{
\n-
47 return d_imageContext->getHeight();
\n-
48}
\n-
49
\n-
50inline PixelFormat Image::getSourcePixelFormat() const
\n-
51{
\n-
52 return d_pfSource;
\n-
53}
\n+
35#if defined(USE_SILLYOPTIONS_H)
\n+
36#include "SILLYOptions.h"
\n+
37#endif
\n+
38
\n+
39#if defined(_WIN32) || defined(__WIN32__)
\n+
40# undef SILLY_OPT_INLINE // No inlining
\n+
41# undef SILLY_BE // Little Endian
\n+
42# ifdef SILLY_EXPORTS
\n+
43# define SILLY_EXPORT __declspec(dllexport)
\n+
44# else
\n+
45# define SILLY_EXPORT __declspec(dllimport)
\n+
46# endif
\n+
47#else
\n+
48# define SILLY_EXPORT
\n+
49#endif
\n+
50
\n+
51// Start of section namespace SILLY
\n+
52namespace SILLY
\n+
53{
\n
54
\n-
55inline PixelFormat Image::getPixelFormat() const
\n-
56{
\n-
57 return d_imageContext->getPixelFormat();
\n-
58}
\n-
59
\n-
60inline const byte* Image::getPixelsDataPtr() const
\n-
61{
\n-
62 return d_pixels;
\n-
63}
\n-
64
\n-
65inline size_t Image::getPixelsDataSize() const
\n-
66{
\n-
67 return getWidth() * getHeight() * d_bpp;
\n-
68}
\n-
69
\n-
70inline Image::~Image()
\n+\n+
60{
\n+
61 PF_A1B5G5R5, //<! 16 bits, pixel format is A1R5G5B5 (GGGBBBBB,ARRRRRGG on disk)
\n+
62 PF_RGB, //<! 24 bits, pixel format is 8 bits for R, G, B
\n+
63 PF_RGBA, //<! 32 bits, pixel format is 8 bits for R, G, B and A channel
\n+
64 PF_ORIGIN, //<! This format is used when the input storage use a specific pixel format
\n+
65};
\n+\n
71{
\n-
72 delete [] d_pixels;
\n-
73 if (d_imageLoader)
\n-
74 d_imageLoader->destroyContext(d_imageContext);
\n-
75}
\n-
76inline const char* Image::getLoaderIdentifierString() const
\n-
77{
\n-
78 if (d_imageLoader)
\n-
79 return d_imageLoader->getIdentifierString();
\n-
80 return 0;
\n-
81}
\n-
82
\n-
83} // End of section namespace SILLY
\n-
84
\n+
72 PO_TOP_LEFT, //<! The resulting image origine is Top Left
\n+
73 PO_BOTTOM_LEFT, //<! The resulting image origine is Bottom Left
\n+
74};
\n+
75
\n+
80typedef unsigned char byte;
\n+
88bool SILLY_EXPORT SILLYInit();
\n+
89
\n+
94void SILLY_EXPORT SILLYCleanup();
\n+
95
\n+
96} // End of section namespace SILLY
\n+
97
\n+
98#endif // end of guard _SILLYBase_h_
\n+
99
\n+
Simple Image Loading LibrarY namespace.
\n+
unsigned char byte
Typename for a byte.
Definition: SILLYBase.h:80
\n+
void SILLYCleanup()
Cleanup SILLY library internal.
\n+
PixelFormat
List all pixel format supported.
Definition: SILLYBase.h:60
\n+
bool SILLYInit()
Initialize the SILLY Library.
\n+
PixelOrigin
List all pixel origin supported.
Definition: SILLYBase.h:71
\n
\n \n
\n Generated by \"doxygen\"/ 1.9.4\n
\n \n \n", "details": [{"source1": "html2text {}", "source2": "html2text {}", "unified_diff": "@@ -4,21 +4,21 @@\n \n Simple Image Loading LibrarY\u00a00.1.0\n \n * build\n * reproducible-path\n * silly-0.1.0\n * include\n-SILLYImage.icpp\n+SILLYBase.h\n 1/***********************************************************************\n- 2 filename: SILLYImage.icpp\n- 3 created: 10 Jun 2006\n+ 2 filename: SILLYBase.h\n+ 3 created: 2006/06/10\n 4 author: Olivier Delannoy\n 5\n- 6 purpose: Inline definition of the image class\n+ 6 purpose: Common header for the SILLY library\n 7*************************************************************************/\n 8/***************************************************************************\n 9 * Copyright (C) 2004 - 2006 Paul D Turner & The CEGUI Development Team\n 10 *\n 11 * Permission is hereby granted, free of charge, to any person obtaining\n 12 * a copy of this software and associated documentation files (the\n 13 * \"Software\"), to deal in the Software without restriction, including\n@@ -35,65 +35,82 @@\n 24 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.\n 25 * IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR\n 26 * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,\n 27 * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR\n 28 * OTHER DEALINGS IN THE SOFTWARE.\n 29\n ***************************************************************************/\n- 30\n- 31// Start of section namespace SILLY\n- 32namespace SILLY\n- 33{\n+ 30#ifndef _SILLYBase_h_\n+ 31#define _SILLYBase_h_\n+ 32#include \n+ 33#include \n 34\n- 35inline bool Image::isValid() const\n- 36{\n- 37 return d_imageContext && d_pixels;\n- 38}\n- 39\n- 40inline size_t Image::getWidth() const\n- 41{\n- 42 return d_imageContext->getWidth();\n- 43}\n- 44\n- 45inline size_t Image::getHeight() const\n- 46{\n- 47 return d_imageContext->getHeight();\n- 48}\n- 49\n- 50inline PixelFormat Image::getSourcePixelFormat() const\n- 51{\n- 52 return d_pfSource;\n- 53}\n+ 35#if defined(USE_SILLYOPTIONS_H)\n+ 36#include \"SILLYOptions.h\"\n+ 37#endif\n+ 38\n+ 39#if defined(_WIN32) || defined(__WIN32__)\n+ 40# undef SILLY_OPT_INLINE // No inlining\n+ 41# undef SILLY_BE // Little Endian\n+ 42# ifdef SILLY_EXPORTS\n+ 43# define SILLY_EXPORT __declspec(dllexport)\n+ 44# else\n+ 45# define SILLY_EXPORT __declspec(dllimport)\n+ 46# endif\n+ 47#else\n+ 48# define SILLY_EXPORT\n+ 49#endif\n+ 50\n+ 51// Start of section namespace SILLY\n+ 52namespace SILLY\n+ 53{\n 54\n- 55inline PixelFormat Image::getPixelFormat() const\n- 56{\n- 57 return d_imageContext->getPixelFormat();\n- 58}\n- 59\n- 60inline const byte* Image::getPixelsDataPtr() const\n- 61{\n- 62 return d_pixels;\n- 63}\n- 64\n- 65inline size_t Image::getPixelsDataSize() const\n- 66{\n- 67 return getWidth() * getHeight() * d_bpp;\n- 68}\n- 69\n- 70inline Image::~Image()\n+59enum PixelFormat\n+ 60{\n+ 61 PF_A1B5G5R5, //destroyContext(d_imageContext);\n- 75}\n- 76inline const char* Image::getLoaderIdentifierString() const\n- 77{\n- 78 if (d_imageLoader)\n- 79 return d_imageLoader->getIdentifierString();\n- 80 return 0;\n- 81}\n- 82\n- 83} // End of section namespace SILLY\n- 84\n+ 72 PO_TOP_LEFT, //\n \n \n \n \n \n \n-Simple Image Loading LibrarY: /build/reproducible-path/silly-0.1.0/include/SILLYImageLoaderManager.icpp Source File\n+Simple Image Loading LibrarY: /build/reproducible-path/silly-0.1.0/include/SILLYImageLoader.icpp Source File\n \n \n \n \n \n \n
\n@@ -39,23 +39,23 @@\n
\n \n
\n
\n-
SILLYImageLoaderManager.icpp
\n+
SILLYImageLoader.icpp
\n
\n
\n
1/***********************************************************************
\n-
2 filename: SILLYImageLoaderManager.icpp
\n+
2 filename: ImageLoader.icpp
\n
3 created: 10 Jun 2006
\n
4 author: Olivier Delannoy
\n
5
\n-
6 purpose: Inline definition for ImageLoaderManager class
\n+
6 purpose: Inline function definition for ImageLoader class
\n
7*************************************************************************/
\n
8/***************************************************************************
\n
9 * Copyright (C) 2004 - 2006 Paul D Turner & The CEGUI Development Team
\n
10 *
\n
11 * Permission is hereby granted, free of charge, to any person obtaining
\n
12 * a copy of this software and associated documentation files (the
\n
13 * "Software"), to deal in the Software without restriction, including
\n@@ -75,43 +75,28 @@\n
27 * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
\n
28 * OTHER DEALINGS IN THE SOFTWARE.
\n
29 ***************************************************************************/
\n
30
\n
31// Start of section namespace SILLY
\n
32namespace SILLY
\n
33{
\n-
34inline ImageLoaderList::iterator ImageLoaderManager::begin()
\n-
35{
\n-
36 return d_loaders.begin();
\n+
34inline ImageLoader::ImageLoader(const char* name)
\n+
35 : d_name(name)
\n+
36{
\n
37}
\n-
38
\n-
39inline ImageLoaderList::iterator ImageLoaderManager::end()
\n-
40{
\n-
41 return d_loaders.end();
\n-
42}
\n-
43
\n-
44inline ImageLoaderManager* ImageLoaderManager::getSingletonPtr()
\n-
45{
\n-
46 return d_instance;
\n-
47}
\n-
48
\n-
49inline ImageLoaderManager& ImageLoaderManager::getSingleton()
\n-
50{
\n-
51 assert(d_instance && "ASSERT: Singleton object not yet created");
\n-
52 return *d_instance;
\n-
53}
\n-
54
\n-
55inline void ImageLoaderManager::add(ImageLoader* loader)
\n-
56{
\n-
57 assert(loader && "ASSERT: adding a none existing loader object");
\n-
58 d_loaders.push_back(loader);
\n-
59}
\n-
60
\n-
61} // End of section namespace SILLY
\n-
62
\n+
38inline ImageLoader::~ImageLoader()
\n+
39{
\n+
40}
\n+
41inline const char* ImageLoader::getIdentifierString() const
\n+
42{
\n+
43 return d_name;
\n+
44}
\n+
45
\n+
46} // End of section namespace SILLY
\n+
47
\n
\n \n
\n Generated by \"doxygen\"/ 1.9.4\n
\n \n \n", "details": [{"source1": "html2text {}", "source2": "html2text {}", "unified_diff": "@@ -4,21 +4,21 @@\n \n Simple Image Loading LibrarY\u00a00.1.0\n \n * build\n * reproducible-path\n * silly-0.1.0\n * include\n-SILLYImageLoaderManager.icpp\n+SILLYImageLoader.icpp\n 1/***********************************************************************\n- 2 filename: SILLYImageLoaderManager.icpp\n+ 2 filename: ImageLoader.icpp\n 3 created: 10 Jun 2006\n 4 author: Olivier Delannoy\n 5\n- 6 purpose: Inline definition for ImageLoaderManager class\n+ 6 purpose: Inline function definition for ImageLoader class\n 7*************************************************************************/\n 8/***************************************************************************\n 9 * Copyright (C) 2004 - 2006 Paul D Turner & The CEGUI Development Team\n 10 *\n 11 * Permission is hereby granted, free of charge, to any person obtaining\n 12 * a copy of this software and associated documentation files (the\n 13 * \"Software\"), to deal in the Software without restriction, including\n@@ -39,39 +39,24 @@\n 28 * OTHER DEALINGS IN THE SOFTWARE.\n 29\n ***************************************************************************/\n 30\n 31// Start of section namespace SILLY\n 32namespace SILLY\n 33{\n- 34inline ImageLoaderList::iterator ImageLoaderManager::begin()\n- 35{\n- 36 return d_loaders.begin();\n+ 34inline ImageLoader::ImageLoader(const char* name)\n+ 35 : d_name(name)\n+ 36{\n 37}\n- 38\n- 39inline ImageLoaderList::iterator ImageLoaderManager::end()\n- 40{\n- 41 return d_loaders.end();\n- 42}\n- 43\n- 44inline ImageLoaderManager* ImageLoaderManager::getSingletonPtr()\n- 45{\n- 46 return d_instance;\n- 47}\n- 48\n- 49inline ImageLoaderManager& ImageLoaderManager::getSingleton()\n- 50{\n- 51 assert(d_instance && \"ASSERT: Singleton object not yet created\");\n- 52 return *d_instance;\n- 53}\n- 54\n- 55inline void ImageLoaderManager::add(ImageLoader* loader)\n- 56{\n- 57 assert(loader && \"ASSERT: adding a none existing loader object\");\n- 58 d_loaders.push_back(loader);\n- 59}\n- 60\n- 61} // End of section namespace SILLY\n- 62\n+ 38inline ImageLoader::~ImageLoader()\n+ 39{\n+ 40}\n+ 41inline const char* ImageLoader::getIdentifierString() const\n+ 42{\n+ 43 return d_name;\n+ 44}\n+ 45\n+ 46} // End of section namespace SILLY\n+ 47\n \n ===============================================================================\n Generated by\u00a0[doxygen] 1.9.4\n"}]}, {"source1": "./usr/share/doc/libsilly-doc/html/a00125_source.html", "source2": "./usr/share/doc/libsilly-doc/html/a00125_source.html", "unified_diff": "@@ -1,15 +1,15 @@\n \n \n \n \n \n \n \n-Simple Image Loading LibrarY: /build/reproducible-path/silly-0.1.0/include/SILLYBase.h Source File\n+Simple Image Loading LibrarY: /build/reproducible-path/silly-0.1.0/include/SILLYFileDataSource.icpp Source File\n \n \n \n \n \n \n
\n@@ -39,99 +39,67 @@\n
\n \n
\n
\n-
SILLYBase.h
\n+
SILLYFileDataSource.icpp
\n
\n
\n-
1/***********************************************************************
\n-
2 filename: SILLYBase.h
\n-
3 created: 2006/06/10
\n-
4 author: Olivier Delannoy
\n-
5
\n-
6 purpose: Common header for the SILLY library
\n-
7*************************************************************************/
\n-
8/***************************************************************************
\n-
9 * Copyright (C) 2004 - 2006 Paul D Turner & The CEGUI Development Team
\n-
10 *
\n-
11 * Permission is hereby granted, free of charge, to any person obtaining
\n-
12 * a copy of this software and associated documentation files (the
\n-
13 * "Software"), to deal in the Software without restriction, including
\n-
14 * without limitation the rights to use, copy, modify, merge, publish,
\n-
15 * distribute, sublicense, and/or sell copies of the Software, and to
\n-
16 * permit persons to whom the Software is furnished to do so, subject to
\n-
17 * the following conditions:
\n-
18 *
\n-
19 * The above copyright notice and this permission notice shall be
\n-
20 * included in all copies or substantial portions of the Software.
\n-
21 *
\n-
22 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
\n-
23 * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
\n-
24 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
\n-
25 * IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR
\n-
26 * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
\n-
27 * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
\n-
28 * OTHER DEALINGS IN THE SOFTWARE.
\n-
29 ***************************************************************************/
\n-
30#ifndef _SILLYBase_h_
\n-
31#define _SILLYBase_h_
\n-
32#include <cassert>
\n-
33#include <cstddef>
\n-
34
\n-
35#if defined(USE_SILLYOPTIONS_H)
\n-
36#include "SILLYOptions.h"
\n-
37#endif
\n+
1/***********************************************************************
\n+
2 filename: SILLYFileDataSource.icpp
\n+
3 created: 20 Jul 2006
\n+
4 author: Olivier Delannoy
\n+
5
\n+
6 purpose: Inline function definition for the FileDataSource class
\n+
7*************************************************************************/
\n+
8/***************************************************************************
\n+
9 * Copyright (C) 2004 - 2006 Paul D Turner & The CEGUI Development Team
\n+
10 *
\n+
11 * Permission is hereby granted, free of charge, to any person obtaining
\n+
12 * a copy of this software and associated documentation files (the
\n+
13 * "Software"), to deal in the Software without restriction, including
\n+
14 * without limitation the rights to use, copy, modify, merge, publish,
\n+
15 * distribute, sublicense, and/or sell copies of the Software, and to
\n+
16 * permit persons to whom the Software is furnished to do so, subject to
\n+
17 * the following conditions:
\n+
18 *
\n+
19 * The above copyright notice and this permission notice shall be
\n+
20 * included in all copies or substantial portions of the Software.
\n+
21 *
\n+
22 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
\n+
23 * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
\n+
24 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
\n+
25 * IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR
\n+
26 * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
\n+
27 * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
\n+
28 * OTHER DEALINGS IN THE SOFTWARE.
\n+
29 ***************************************************************************/
\n+
30
\n+
31// Start of section namespace SILLY
\n+
32namespace SILLY
\n+
33{
\n+
34inline bool FileDataSource::isValid() const
\n+
35{
\n+
36 return d_error;
\n+
37}
\n
38
\n-
39#if defined(_WIN32) || defined(__WIN32__)
\n-
40# undef SILLY_OPT_INLINE // No inlining
\n-
41# undef SILLY_BE // Little Endian
\n-
42# ifdef SILLY_EXPORTS
\n-
43# define SILLY_EXPORT __declspec(dllexport)
\n-
44# else
\n-
45# define SILLY_EXPORT __declspec(dllimport)
\n-
46# endif
\n-
47#else
\n-
48# define SILLY_EXPORT
\n-
49#endif
\n+
39inline const byte* FileDataSource::getDataPtr() const
\n+
40{
\n+
41 return d_bytes;
\n+
42}
\n+
43
\n+
44inline size_t FileDataSource::getSize() const
\n+
45{
\n+
46 return d_size;
\n+
47}
\n+
48
\n+
49} // End of section namespace SILLY
\n
50
\n-
51// Start of section namespace SILLY
\n-
52namespace SILLY
\n-
53{
\n-
54
\n-\n-
60{
\n-
61 PF_A1B5G5R5, //<! 16 bits, pixel format is A1R5G5B5 (GGGBBBBB,ARRRRRGG on disk)
\n-
62 PF_RGB, //<! 24 bits, pixel format is 8 bits for R, G, B
\n-
63 PF_RGBA, //<! 32 bits, pixel format is 8 bits for R, G, B and A channel
\n-
64 PF_ORIGIN, //<! This format is used when the input storage use a specific pixel format
\n-
65};
\n-\n-
71{
\n-
72 PO_TOP_LEFT, //<! The resulting image origine is Top Left
\n-
73 PO_BOTTOM_LEFT, //<! The resulting image origine is Bottom Left
\n-
74};
\n-
75
\n-
80typedef unsigned char byte;
\n-
88bool SILLY_EXPORT SILLYInit();
\n-
89
\n-
94void SILLY_EXPORT SILLYCleanup();
\n-
95
\n-
96} // End of section namespace SILLY
\n-
97
\n-
98#endif // end of guard _SILLYBase_h_
\n-
99
\n-
Simple Image Loading LibrarY namespace.
\n-
unsigned char byte
Typename for a byte.
Definition: SILLYBase.h:80
\n-
void SILLYCleanup()
Cleanup SILLY library internal.
\n-
PixelFormat
List all pixel format supported.
Definition: SILLYBase.h:60
\n-
bool SILLYInit()
Initialize the SILLY Library.
\n-
PixelOrigin
List all pixel origin supported.
Definition: SILLYBase.h:71
\n
\n \n
\n Generated by \"doxygen\"/ 1.9.4\n
\n \n \n", "details": [{"source1": "html2text {}", "source2": "html2text {}", "unified_diff": "@@ -4,21 +4,21 @@\n \n Simple Image Loading LibrarY\u00a00.1.0\n \n * build\n * reproducible-path\n * silly-0.1.0\n * include\n-SILLYBase.h\n+SILLYFileDataSource.icpp\n 1/***********************************************************************\n- 2 filename: SILLYBase.h\n- 3 created: 2006/06/10\n+ 2 filename: SILLYFileDataSource.icpp\n+ 3 created: 20 Jul 2006\n 4 author: Olivier Delannoy\n 5\n- 6 purpose: Common header for the SILLY library\n+ 6 purpose: Inline function definition for the FileDataSource class\n 7*************************************************************************/\n 8/***************************************************************************\n 9 * Copyright (C) 2004 - 2006 Paul D Turner & The CEGUI Development Team\n 10 *\n 11 * Permission is hereby granted, free of charge, to any person obtaining\n 12 * a copy of this software and associated documentation files (the\n 13 * \"Software\"), to deal in the Software without restriction, including\n@@ -35,82 +35,31 @@\n 24 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.\n 25 * IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR\n 26 * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,\n 27 * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR\n 28 * OTHER DEALINGS IN THE SOFTWARE.\n 29\n ***************************************************************************/\n- 30#ifndef _SILLYBase_h_\n- 31#define _SILLYBase_h_\n- 32#include \n- 33#include \n- 34\n- 35#if defined(USE_SILLYOPTIONS_H)\n- 36#include \"SILLYOptions.h\"\n- 37#endif\n+ 30\n+ 31// Start of section namespace SILLY\n+ 32namespace SILLY\n+ 33{\n+ 34inline bool FileDataSource::isValid() const\n+ 35{\n+ 36 return d_error;\n+ 37}\n 38\n- 39#if defined(_WIN32) || defined(__WIN32__)\n- 40# undef SILLY_OPT_INLINE // No inlining\n- 41# undef SILLY_BE // Little Endian\n- 42# ifdef SILLY_EXPORTS\n- 43# define SILLY_EXPORT __declspec(dllexport)\n- 44# else\n- 45# define SILLY_EXPORT __declspec(dllimport)\n- 46# endif\n- 47#else\n- 48# define SILLY_EXPORT\n- 49#endif\n+ 39inline const byte* FileDataSource::getDataPtr() const\n+ 40{\n+ 41 return d_bytes;\n+ 42}\n+ 43\n+ 44inline size_t FileDataSource::getSize() const\n+ 45{\n+ 46 return d_size;\n+ 47}\n+ 48\n+ 49} // End of section namespace SILLY\n 50\n- 51// Start of section namespace SILLY\n- 52namespace SILLY\n- 53{\n- 54\n-59enum PixelFormat\n- 60{\n- 61 PF_A1B5G5R5, //typedef unsigned char byte\n \n \n
\n \n

Typename for a byte.

\n \n-

Definition at line 80 of file SILLYBase.h.

\n+

Definition at line 80 of file SILLYBase.h.

\n \n
\n
\n \n

◆ ImageLoaderList

\n \n
\n@@ -182,15 +182,15 @@\n typedef std::vector<ImageLoader*> ImageLoaderList\n \n \n
\n \n

Typename for a collection of image loader.

\n \n-

Definition at line 42 of file SILLYImageLoaderManager.h.

\n+

Definition at line 42 of file SILLYImageLoaderManager.h.

\n \n
\n
\n

Enumeration Type Documentation

\n \n

◆ PixelFormat

\n \n@@ -201,15 +201,15 @@\n enum PixelFormat\n \n \n
\n \n

List all pixel format supported.

\n \n-

Definition at line 59 of file SILLYBase.h.

\n+

Definition at line 59 of file SILLYBase.h.

\n \n
\n
\n \n

◆ PixelOrigin

\n \n
\n@@ -219,15 +219,15 @@\n enum PixelOrigin\n \n \n
\n \n

List all pixel origin supported.

\n \n-

Definition at line 70 of file SILLYBase.h.

\n+

Definition at line 70 of file SILLYBase.h.

\n \n
\n
\n

Function Documentation

\n \n

◆ JPG_emit_message()

\n \n@@ -390,15 +390,15 @@\n \n )\n \n \n \n
\n \n-

Definition at line 64 of file SILLYPNGImageLoader.cpp.

\n+

Definition at line 64 of file SILLYPNGImageLoader.cpp.

\n \n
\n
\n \n

◆ PNG_read_function()

\n \n
\n@@ -426,15 +426,15 @@\n \n )\n \n \n \n
\n \n-

Definition at line 48 of file SILLYPNGImageLoader.cpp.

\n+

Definition at line 48 of file SILLYPNGImageLoader.cpp.

\n \n
\n
\n \n

◆ PNG_warning_function()

\n \n
\n@@ -456,15 +456,15 @@\n \n )\n \n \n \n
\n \n-

Definition at line 58 of file SILLYPNGImageLoader.cpp.

\n+

Definition at line 58 of file SILLYPNGImageLoader.cpp.

\n \n
\n
\n \n

◆ SILLYCleanup()

\n \n
\n@@ -477,15 +477,15 @@\n \n \n \n
\n \n

Cleanup SILLY library internal.

\n \n-

Definition at line 100 of file SILLYImageLoaderManager.cpp.

\n+

Definition at line 100 of file SILLYImageLoaderManager.cpp.

\n \n
\n
\n \n

◆ SILLYInit()

\n \n
\n@@ -499,15 +499,15 @@\n \n \n
\n \n

Initialize the SILLY Library.

\n
Returns
True if the initialization was successfull false otherwise.
\n \n-

Definition at line 87 of file SILLYImageLoaderManager.cpp.

\n+

Definition at line 87 of file SILLYImageLoaderManager.cpp.

\n \n
\n
\n

Variable Documentation

\n \n

◆ silly_init_counter

\n \n@@ -524,15 +524,15 @@\n \n \n static \n \n \n
\n \n-

Definition at line 58 of file SILLYImageLoaderManager.cpp.

\n+

Definition at line 58 of file SILLYImageLoaderManager.cpp.

\n \n
\n
\n
\n \n
\n Generated by \"doxygen\"/ 1.9.4\n"}, {"source1": "./usr/share/doc/libsilly-doc/html/a00945.html", "source2": "./usr/share/doc/libsilly-doc/html/a00945.html", "unified_diff": "@@ -51,15 +51,15 @@\n
JPGImageContext Class Reference
\n
\n
\n \n

Image Context for JPG image loader. \n More...

\n \n-

#include <SILLYJPGImageContext.h>

\n+

#include <SILLYJPGImageContext.h>

\n
\n Inheritance diagram for JPGImageContext:
\n
\n
\"Inheritance
\n \n \"\"\n \"\"\n@@ -128,15 +128,15 @@\n  \n \n

Detailed Description

\n

Image Context for JPG image loader.

\n

Most of the code of this loader is taken from Corona and adapted to our image loading framework

\n

Multiple loading is not handle yet.

\n \n-

Definition at line 56 of file SILLYJPGImageContext.h.

\n+

Definition at line 56 of file SILLYJPGImageContext.h.

\n

Constructor & Destructor Documentation

\n \n

◆ JPGImageContext()

\n \n
\n
\n \n@@ -195,15 +195,15 @@\n \n
\n
\n \n

Flip pixel ordering.

\n
Returns
true on success false otherwise
\n \n-

Definition at line 45 of file SILLYImageContext.cpp.

\n+

Definition at line 45 of file SILLYImageContext.cpp.

\n \n
\n
\n \n

◆ setImageSize()

\n \n
\n@@ -231,15 +231,15 @@\n \n \n \n \n
jpeg_decompress_struct cinfo
\n
\n \n-

Definition at line 66 of file SILLYJPGImageContext.h.

\n+

Definition at line 66 of file SILLYJPGImageContext.h.

\n \n
\n
\n \n

◆ d_error_mgr

\n \n
\n@@ -247,15 +247,15 @@\n \n \n \n \n
jpeg_error_mgr d_error_mgr
\n
\n \n-

Definition at line 68 of file SILLYJPGImageContext.h.

\n+

Definition at line 68 of file SILLYJPGImageContext.h.

\n \n
\n
\n \n

◆ d_source

\n \n
\n@@ -263,15 +263,15 @@\n \n \n \n \n
DataSource* d_source
\n
\n \n-

Definition at line 70 of file SILLYJPGImageContext.h.

\n+

Definition at line 70 of file SILLYJPGImageContext.h.

\n \n
\n
\n \n

◆ setjmp_buffer

\n \n
\n@@ -279,15 +279,15 @@\n \n \n \n \n
jmp_buf setjmp_buffer
\n
\n \n-

Definition at line 69 of file SILLYJPGImageContext.h.

\n+

Definition at line 69 of file SILLYJPGImageContext.h.

\n \n
\n
\n \n

◆ src_mgr

\n \n
\n@@ -295,20 +295,20 @@\n \n \n \n \n
jpeg_source_mgr src_mgr
\n
\n \n-

Definition at line 65 of file SILLYJPGImageContext.h.

\n+

Definition at line 65 of file SILLYJPGImageContext.h.

\n \n
\n
\n
The documentation for this class was generated from the following files:\n
\n \n
\n Generated by \"doxygen\"/ 1.9.4\n
\n"}, {"source1": "./usr/share/doc/libsilly-doc/html/a00949.html", "source2": "./usr/share/doc/libsilly-doc/html/a00949.html", "unified_diff": "@@ -49,15 +49,15 @@\n
JPGImageLoader Class Reference
\n
\n
\n \n

Loader class for JPG Image. \n More...

\n \n-

#include <SILLYJPGImageLoader.h>

\n+

#include <SILLYJPGImageLoader.h>

\n
\n Inheritance diagram for JPGImageLoader:
\n
\n
\"Inheritance
\n \n \"\"\n \"\"\n@@ -88,15 +88,15 @@\n bool loadImageData (PixelOrigin origin, DataSource *data, ImageContext *context)\n  Parse the pixels data of the image and fill the header struct. More...
\n  \n \n

Detailed Description

\n

Loader class for JPG Image.

\n \n-

Definition at line 42 of file SILLYJPGImageLoader.h.

\n+

Definition at line 42 of file SILLYJPGImageLoader.h.

\n

Constructor & Destructor Documentation

\n \n

◆ JPGImageLoader()

\n \n
\n
\n \n@@ -161,15 +161,15 @@\n
Parameters
\n
\n \n
contexta pointer to the context
\n \n \n \n-

Definition at line 47 of file SILLYImageLoader.cpp.

\n+

Definition at line 47 of file SILLYImageLoader.cpp.

\n \n
\n
\n \n

◆ loadHeader()

\n \n
\n@@ -273,15 +273,15 @@\n

Implements ImageLoader.

\n \n

Definition at line 90 of file SILLYJPGImageLoader.cpp.

\n \n
\n
\n
The documentation for this class was generated from the following files:\n
\n \n
\n Generated by \"doxygen\"/ 1.9.4\n
\n"}, {"source1": "./usr/share/doc/libsilly-doc/html/a00953.html", "source2": "./usr/share/doc/libsilly-doc/html/a00953.html", "unified_diff": "@@ -51,15 +51,15 @@\n
PNGImageContext Class Reference
\n \n
\n \n

Image Context for PNG Image Loader. \n More...

\n \n-

#include <SILLYPNGImageContext.h>

\n+

#include <SILLYPNGImageContext.h>

\n
\n Inheritance diagram for PNGImageContext:
\n
\n
\"Inheritance
\n \n \"\"\n \"\"\n@@ -115,15 +115,15 @@\n Friends\n class PNGImageLoader\n  \n \n

Detailed Description

\n

Image Context for PNG Image Loader.

\n \n-

Definition at line 45 of file SILLYPNGImageContext.h.

\n+

Definition at line 45 of file SILLYPNGImageContext.h.

\n

Constructor & Destructor Documentation

\n \n

◆ PNGImageContext()

\n \n
\n
\n \n@@ -133,15 +133,15 @@\n \n \n \n \n
DataSourcedata)
\n
\n \n-

Definition at line 59 of file SILLYPNGImageContext.cpp.

\n+

Definition at line 59 of file SILLYPNGImageContext.cpp.

\n \n
\n
\n \n

◆ ~PNGImageContext()

\n \n
\n@@ -152,15 +152,15 @@\n (\n )\n \n \n \n
\n \n-

Definition at line 65 of file SILLYPNGImageContext.cpp.

\n+

Definition at line 65 of file SILLYPNGImageContext.cpp.

\n \n
\n
\n

Member Function Documentation

\n \n

◆ flipVertically()

\n \n@@ -183,15 +183,15 @@\n \n \n
\n \n

Flip pixel ordering.

\n
Returns
true on success false otherwise
\n \n-

Definition at line 45 of file SILLYImageContext.cpp.

\n+

Definition at line 45 of file SILLYImageContext.cpp.

\n \n
\n \n \n

◆ read()

\n \n
\n@@ -213,15 +213,15 @@\n \n )\n \n \n \n
\n \n-

Definition at line 46 of file SILLYPNGImageContext.cpp.

\n+

Definition at line 46 of file SILLYPNGImageContext.cpp.

\n \n
\n \n

Friends And Related Function Documentation

\n \n

◆ PNGImageLoader

\n \n@@ -238,21 +238,21 @@\n \n \n friend \n \n \n
\n \n-

Definition at line 70 of file SILLYPNGImageContext.h.

\n+

Definition at line 70 of file SILLYPNGImageContext.h.

\n \n
\n \n
The documentation for this class was generated from the following files:\n \n \n
\n Generated by \"doxygen\"/ 1.9.4\n
\n \n"}, {"source1": "./usr/share/doc/libsilly-doc/html/a00957.html", "source2": "./usr/share/doc/libsilly-doc/html/a00957.html", "unified_diff": "@@ -49,15 +49,15 @@\n
PNGImageLoader Class Reference
\n \n
\n \n

Loader for PNG Image. \n More...

\n \n-

#include <SILLYPNGImageLoader.h>

\n+

#include <SILLYPNGImageLoader.h>

\n
\n Inheritance diagram for PNGImageLoader:
\n
\n
\"Inheritance
\n \n \"\"\n \"\"\n@@ -88,15 +88,15 @@\n bool loadImageData (PixelOrigin origin, DataSource *data, ImageContext *context)\n  Parse the pixels data of the image and fill the header struct. More...
\n  \n \n

Detailed Description

\n

Loader for PNG Image.

\n \n-

Definition at line 42 of file SILLYPNGImageLoader.h.

\n+

Definition at line 42 of file SILLYPNGImageLoader.h.

\n

Constructor & Destructor Documentation

\n \n

◆ PNGImageLoader()

\n \n
\n
\n \n@@ -105,15 +105,15 @@\n \n \n \n \n
()
\n
\n \n-

Definition at line 79 of file SILLYPNGImageLoader.cpp.

\n+

Definition at line 79 of file SILLYPNGImageLoader.cpp.

\n \n
\n
\n \n

◆ ~PNGImageLoader()

\n \n
\n@@ -124,15 +124,15 @@\n (\n )\n \n \n \n
\n \n-

Definition at line 83 of file SILLYPNGImageLoader.cpp.

\n+

Definition at line 83 of file SILLYPNGImageLoader.cpp.

\n \n
\n
\n

Member Function Documentation

\n \n

◆ destroyContext()

\n \n@@ -161,15 +161,15 @@\n
Parameters
\n \n \n
contexta pointer to the context
\n
\n
\n \n-

Definition at line 47 of file SILLYImageLoader.cpp.

\n+

Definition at line 47 of file SILLYImageLoader.cpp.

\n \n
\n \n \n

◆ loadHeader()

\n \n
\n@@ -211,15 +211,15 @@\n \n \n \n
Returns
Context for the rest of the parsing or 0 if an error occured
\n \n

Implements ImageLoader.

\n \n-

Definition at line 88 of file SILLYPNGImageLoader.cpp.

\n+

Definition at line 88 of file SILLYPNGImageLoader.cpp.

\n \n
\n \n \n

◆ loadImageData()

\n \n
\n@@ -268,21 +268,21 @@\n \n \n \n
Returns
true on success false on error
\n \n

Implements ImageLoader.

\n \n-

Definition at line 154 of file SILLYPNGImageLoader.cpp.

\n+

Definition at line 154 of file SILLYPNGImageLoader.cpp.

\n \n
\n \n
The documentation for this class was generated from the following files:\n \n \n
\n Generated by \"doxygen\"/ 1.9.4\n
\n \n"}, {"source1": "./usr/share/doc/libsilly-doc/html/a00961.html", "source2": "./usr/share/doc/libsilly-doc/html/a00961.html", "unified_diff": "@@ -51,15 +51,15 @@\n
TGAImageContext Class Reference
\n \n
\n \n

Image Context for Targa image. \n More...

\n \n-

#include <SILLYTGAImageContext.h>

\n+

#include <SILLYTGAImageContext.h>

\n
\n Inheritance diagram for TGAImageContext:
\n
\n
\"Inheritance
\n \n \"\"\n \"\"\n@@ -114,15 +114,15 @@\n Friends\n class TGAImageLoader\n  \n \n

Detailed Description

\n

Image Context for Targa image.

\n \n-

Definition at line 42 of file SILLYTGAImageContext.h.

\n+

Definition at line 42 of file SILLYTGAImageContext.h.

\n

Member Function Documentation

\n \n

◆ flipVertically()

\n \n
\n
\n \n@@ -142,15 +142,15 @@\n \n
\n
\n \n

Flip pixel ordering.

\n
Returns
true on success false otherwise
\n \n-

Definition at line 45 of file SILLYImageContext.cpp.

\n+

Definition at line 45 of file SILLYImageContext.cpp.

\n \n
\n
\n

Friends And Related Function Documentation

\n \n

◆ TGAImageLoader

\n \n@@ -167,20 +167,20 @@\n \n \n friend \n \n \n
\n \n-

Definition at line 54 of file SILLYTGAImageContext.h.

\n+

Definition at line 54 of file SILLYTGAImageContext.h.

\n \n
\n
\n
The documentation for this class was generated from the following file:\n \n \n
\n Generated by \"doxygen\"/ 1.9.4\n
\n \n"}, {"source1": "./usr/share/doc/libsilly-doc/html/a00965.html", "source2": "./usr/share/doc/libsilly-doc/html/a00965.html", "unified_diff": "@@ -49,15 +49,15 @@\n
TGAImageLoader Class Reference
\n \n
\n \n

Loader for Targa image. \n More...

\n \n-

#include <SILLYTGAImageLoader.h>

\n+

#include <SILLYTGAImageLoader.h>

\n
\n Inheritance diagram for TGAImageLoader:
\n
\n
\"Inheritance
\n \n \"\"\n \"\"\n@@ -88,15 +88,15 @@\n bool loadImageData (PixelOrigin origin, DataSource *data, ImageContext *context)\n  Parse the pixels data of the image and fill the header struct. More...
\n  \n \n

Detailed Description

\n

Loader for Targa image.

\n \n-

Definition at line 43 of file SILLYTGAImageLoader.h.

\n+

Definition at line 43 of file SILLYTGAImageLoader.h.

\n

Constructor & Destructor Documentation

\n \n

◆ TGAImageLoader()

\n \n
\n
\n \n@@ -161,15 +161,15 @@\n
Parameters
\n
\n \n
contexta pointer to the context
\n \n \n \n-

Definition at line 47 of file SILLYImageLoader.cpp.

\n+

Definition at line 47 of file SILLYImageLoader.cpp.

\n \n
\n
\n \n

◆ loadHeader()

\n \n
\n@@ -273,15 +273,15 @@\n

Implements ImageLoader.

\n \n

Definition at line 134 of file SILLYTGAImageLoader.cpp.

\n \n
\n
\n
The documentation for this class was generated from the following files:\n
\n \n
\n Generated by \"doxygen\"/ 1.9.4\n
\n"}, {"source1": "./usr/share/doc/libsilly-doc/html/a00969.html", "source2": "./usr/share/doc/libsilly-doc/html/a00969.html", "unified_diff": "@@ -49,15 +49,15 @@\n
DataSource Class Referenceabstract
\n \n
\n \n

This is an abstract class used to provide data to the loader. \n More...

\n \n-

#include <SILLYDataSource.h>

\n+

#include <SILLYDataSource.h>

\n
\n Inheritance diagram for DataSource:
\n
\n
\"Inheritance
\n \n \"\"\n \"\"\n@@ -82,15 +82,15 @@\n  Destructor.
\n  \n \n

Detailed Description

\n

This is an abstract class used to provide data to the loader.

\n

This class defines abstract data loading operation required for the library.

\n \n-

Definition at line 46 of file SILLYDataSource.h.

\n+

Definition at line 46 of file SILLYDataSource.h.

\n

Member Function Documentation

\n \n

◆ getDataPtr()

\n \n
\n
\n \n@@ -143,15 +143,15 @@\n

Return the size of the data.

\n \n

Implemented in FileDataSource, and MemoryDataSource.

\n \n \n \n
The documentation for this class was generated from the following file:\n \n \n
\n Generated by \"doxygen\"/ 1.9.4\n
\n \n"}, {"source1": "./usr/share/doc/libsilly-doc/html/a00973.html", "source2": "./usr/share/doc/libsilly-doc/html/a00973.html", "unified_diff": "@@ -49,15 +49,15 @@\n
FileDataSource Class Reference
\n \n
\n \n

This class allow the loading of an image directly from a file. \n More...

\n \n-

#include <SILLYFileDataSource.h>

\n+

#include <SILLYFileDataSource.h>

\n
\n Inheritance diagram for FileDataSource:
\n
\n
\"Inheritance
\n \n \"\"\n \"\"\n@@ -95,15 +95,15 @@\n
\n \n
 destructor More...
 
\n

Detailed Description

\n

This class allow the loading of an image directly from a file.

\n

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.

\n \n-

Definition at line 48 of file SILLYFileDataSource.h.

\n+

Definition at line 48 of file SILLYFileDataSource.h.

\n

Constructor & Destructor Documentation

\n \n

◆ FileDataSource()

\n \n
\n
\n \n@@ -122,15 +122,15 @@\n
Parameters
\n
\n \n
filenamethe name of the file containing the data
\n \n \n \n-

Definition at line 46 of file SILLYFileDataSource.cpp.

\n+

Definition at line 46 of file SILLYFileDataSource.cpp.

\n \n
\n
\n \n

◆ ~FileDataSource()

\n \n
\n@@ -143,15 +143,15 @@\n \n \n \n
\n \n

destructor

\n \n-

Definition at line 86 of file SILLYFileDataSource.cpp.

\n+

Definition at line 86 of file SILLYFileDataSource.cpp.

\n \n
\n
\n

Member Function Documentation

\n \n

◆ getDataPtr()

\n \n@@ -228,16 +228,16 @@\n

Check wether the loading is successfull or not.

\n

One must call this function after creating this object in order to be sure the loading was successfull.

\n
Returns
true if the loading is successfull.
\n \n
\n
\n
The documentation for this class was generated from the following files:\n
\n \n
\n Generated by \"doxygen\"/ 1.9.4\n
\n \n"}, {"source1": "./usr/share/doc/libsilly-doc/html/a00977.html", "source2": "./usr/share/doc/libsilly-doc/html/a00977.html", "unified_diff": "@@ -49,15 +49,15 @@\n
Image Class Reference
\n \n
\n \n

Image is the main user class of the library. \n More...

\n \n-

#include <SILLYImage.h>

\n+

#include <SILLYImage.h>

\n \n \n \n \n \n@@ -102,15 +102,15 @@\n  \n \n \n

\n Public Member Functions

\n size_t getHeight () const
 Retrieve the height of the image.
 
~Image ()
 Destructor.
 
\n

Detailed Description

\n

Image is the main user class of the library.

\n \n-

Definition at line 46 of file SILLYImage.h.

\n+

Definition at line 46 of file SILLYImage.h.

\n

Constructor & Destructor Documentation

\n \n

◆ Image()

\n \n
\n
\n \n@@ -128,15 +128,15 @@\n
Parameters
\n
\n \n
datathe raw input containing the image
\n \n \n \n-

Definition at line 48 of file SILLYImage.cpp.

\n+

Definition at line 48 of file SILLYImage.cpp.

\n \n
\n
\n

Member Function Documentation

\n \n

◆ loadImageData()

\n \n@@ -170,15 +170,15 @@\n originexpected origin position for the pixels\n \n \n \n
Returns
true on success false if an error occured
\n
Note
this function can be called several time if the pixel format are different the format is reloaded
\n \n-

Definition at line 68 of file SILLYImage.cpp.

\n+

Definition at line 68 of file SILLYImage.cpp.

\n \n
\n \n \n

◆ loadImageHeader()

\n \n
\n@@ -192,21 +192,21 @@\n \n \n
\n \n

Retrieve the information concerning the image object.

\n
Returns
true on success
\n \n-

Definition at line 54 of file SILLYImage.cpp.

\n+

Definition at line 54 of file SILLYImage.cpp.

\n \n
\n \n
The documentation for this class was generated from the following files:\n \n \n
\n Generated by \"doxygen\"/ 1.9.4\n
\n \n"}, {"source1": "./usr/share/doc/libsilly-doc/html/a00981.html", "source2": "./usr/share/doc/libsilly-doc/html/a00981.html", "unified_diff": "@@ -50,15 +50,15 @@\n
ImageContext Class Reference
\n \n
\n \n

Store the data needed by an ImageLoader object during the parsing of an image. \n More...

\n \n-

#include <SILLYImageContext.h>

\n+

#include <SILLYImageContext.h>

\n
\n Inheritance diagram for ImageContext:
\n
\n
\"Inheritance
\n \n \"\"\n \"\"\n@@ -105,15 +105,15 @@\n \n void setWidth (size_t width)\n  \n \n

Detailed Description

\n

Store the data needed by an ImageLoader object during the parsing of an image.

\n \n-

Definition at line 43 of file SILLYImageContext.h.

\n+

Definition at line 43 of file SILLYImageContext.h.

\n

Constructor & Destructor Documentation

\n \n

◆ ImageContext()

\n \n
\n
\n \n@@ -171,21 +171,21 @@\n \n
\n
\n \n

Flip pixel ordering.

\n
Returns
true on success false otherwise
\n \n-

Definition at line 45 of file SILLYImageContext.cpp.

\n+

Definition at line 45 of file SILLYImageContext.cpp.

\n \n
\n
\n
The documentation for this class was generated from the following files:\n
\n \n
\n Generated by \"doxygen\"/ 1.9.4\n
\n \n"}, {"source1": "./usr/share/doc/libsilly-doc/html/a00985.html", "source2": "./usr/share/doc/libsilly-doc/html/a00985.html", "unified_diff": "@@ -50,15 +50,15 @@\n
ImageLoader Class Referenceabstract
\n
\n
\n \n

This is an abstract class that define the interface of all image loader. \n More...

\n \n-

#include <SILLYImageLoader.h>

\n+

#include <SILLYImageLoader.h>

\n
\n Inheritance diagram for ImageLoader:
\n
\n
\"Inheritance
\n \n \"\"\n \"\"\n@@ -94,15 +94,15 @@\n  Constructor.
\n  \n \n

Detailed Description

\n

This is an abstract class that define the interface of all image loader.

\n

In order to add support for new image format one have to inherits this class and implement all required function.

\n \n-

Definition at line 46 of file SILLYImageLoader.h.

\n+

Definition at line 46 of file SILLYImageLoader.h.

\n

Member Function Documentation

\n \n

◆ destroyContext()

\n \n
\n
\n \n@@ -120,15 +120,15 @@\n
Parameters
\n
\n \n
contexta pointer to the context
\n \n \n \n-

Definition at line 47 of file SILLYImageLoader.cpp.

\n+

Definition at line 47 of file SILLYImageLoader.cpp.

\n \n
\n
\n \n

◆ loadHeader()

\n \n
\n@@ -228,16 +228,16 @@\n
Returns
true on success false on error
\n \n

Implemented in JPGImageLoader, PNGImageLoader, and TGAImageLoader.

\n \n
\n
\n
The documentation for this class was generated from the following files:\n
\n \n
\n Generated by \"doxygen\"/ 1.9.4\n
\n \n"}, {"source1": "./usr/share/doc/libsilly-doc/html/a00989.html", "source2": "./usr/share/doc/libsilly-doc/html/a00989.html", "unified_diff": "@@ -50,15 +50,15 @@\n
ImageLoaderManager Class Reference
\n \n
\n \n

Manage the list of all supported ImageLoader. \n More...

\n \n-

#include <SILLYImageLoaderManager.h>

\n+

#include <SILLYImageLoaderManager.h>

\n \n \n \n \n \n \n \n

\n Public Member Functions

void add (ImageLoader *loader)
 Register an ImageLoader object. More...
 
\n@@ -84,15 +84,15 @@\n
\n static ImageLoaderManagergetSingletonPtr ()
 
\n

Detailed Description

\n

Manage the list of all supported ImageLoader.

\n \n-

Definition at line 56 of file SILLYImageLoaderManager.h.

\n+

Definition at line 56 of file SILLYImageLoaderManager.h.

\n

Constructor & Destructor Documentation

\n \n

◆ ImageLoaderManager()

\n \n
\n
\n \n@@ -103,15 +103,15 @@\n \n \n
\n
\n \n

Constructor.

\n \n-

Definition at line 62 of file SILLYImageLoaderManager.cpp.

\n+

Definition at line 62 of file SILLYImageLoaderManager.cpp.

\n \n
\n
\n \n

◆ ~ImageLoaderManager()

\n \n
\n@@ -124,15 +124,15 @@\n \n \n \n
\n \n

Destructor.

\n \n-

Definition at line 77 of file SILLYImageLoaderManager.cpp.

\n+

Definition at line 77 of file SILLYImageLoaderManager.cpp.

\n \n
\n
\n

Member Function Documentation

\n \n

◆ add()

\n \n@@ -156,16 +156,16 @@\n \n \n \n \n \n \n
The documentation for this class was generated from the following files:\n \n \n
\n Generated by \"doxygen\"/ 1.9.4\n
\n \n"}, {"source1": "./usr/share/doc/libsilly-doc/html/a00993.html", "source2": "./usr/share/doc/libsilly-doc/html/a00993.html", "unified_diff": "@@ -49,15 +49,15 @@\n
MemoryDataSource Class Reference
\n \n
\n \n

Load an image from a memory area. \n More...

\n \n-

#include <SILLYMemoryDataSource.h>

\n+

#include <SILLYMemoryDataSource.h>

\n
\n Inheritance diagram for MemoryDataSource:
\n
\n
\"Inheritance
\n \n \"\"\n \"\"\n@@ -89,15 +89,15 @@\n  Retieve the byte at offset.
\n  \n \n

Detailed Description

\n

Load an image from a memory area.

\n

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.

\n \n-

Definition at line 48 of file SILLYMemoryDataSource.h.

\n+

Definition at line 48 of file SILLYMemoryDataSource.h.

\n

Constructor & Destructor Documentation

\n \n

◆ MemoryDataSource()

\n \n
\n
\n \n@@ -127,15 +127,15 @@\n
\n \n \n
dataa byte array of size size
sizethe size of data
\n \n \n \n-

Definition at line 46 of file SILLYMemoryDataSource.cpp.

\n+

Definition at line 46 of file SILLYMemoryDataSource.cpp.

\n \n
\n
\n

Member Function Documentation

\n \n

◆ getDataPtr()

\n \n@@ -191,16 +191,16 @@\n

Return the size of the data.

\n \n

Implements DataSource.

\n \n
\n
\n
The documentation for this class was generated from the following files:\n \n \n
\n Generated by \"doxygen\"/ 1.9.4\n
\n \n"}, {"source1": "./usr/share/doc/libsilly-doc/html/dir_0d87e2e7ddaae8a2a8572c0afc59fe0d.html", "source2": "./usr/share/doc/libsilly-doc/html/dir_0d87e2e7ddaae8a2a8572c0afc59fe0d.html", "unified_diff": "@@ -60,47 +60,47 @@\n

\n Directories

\n directory  loaders\n  \n \n \n-\n+\n \n-\n+\n \n-\n+\n \n-\n+\n \n-\n+\n \n-\n+\n \n-\n+\n \n-\n+\n \n-\n+\n \n-\n+\n \n-\n+\n \n-\n+\n \n-\n+\n \n-\n+\n \n-\n+\n \n-\n+\n \n-\n+\n \n

\n Files

file  SILLY.h [code]
file  SILLY.h [code]
 
file  SILLYBase.h [code]
file  SILLYBase.h [code]
 
file  SILLYDataSource.h [code]
file  SILLYDataSource.h [code]
 
file  SILLYDataSource.icpp [code]
file  SILLYDataSource.icpp [code]
 
file  SILLYFileDataSource.h [code]
file  SILLYFileDataSource.h [code]
 
file  SILLYFileDataSource.icpp [code]
file  SILLYFileDataSource.icpp [code]
 
file  SILLYImage.h [code]
file  SILLYImage.h [code]
 
file  SILLYImage.icpp [code]
file  SILLYImage.icpp [code]
 
file  SILLYImageContext.h [code]
file  SILLYImageContext.h [code]
 
file  SILLYImageContext.icpp [code]
file  SILLYImageContext.icpp [code]
 
file  SILLYImageLoader.h [code]
file  SILLYImageLoader.h [code]
 
file  SILLYImageLoader.icpp [code]
file  SILLYImageLoader.icpp [code]
 
file  SILLYImageLoaderManager.h [code]
file  SILLYImageLoaderManager.h [code]
 
file  SILLYImageLoaderManager.icpp [code]
file  SILLYImageLoaderManager.icpp [code]
 
file  SILLYMemoryDataSource.h [code]
file  SILLYMemoryDataSource.h [code]
 
file  SILLYMemoryDataSource.icpp [code]
file  SILLYMemoryDataSource.icpp [code]
 
file  SILLYOptions.h [code]
file  SILLYOptions.h [code]
 
\n \n \n
\n Generated by \"doxygen\"/ 1.9.4\n
\n"}, {"source1": "./usr/share/doc/libsilly-doc/html/dir_7b011f4828cd5682692dd5e7c066fc3b.html", "source2": "./usr/share/doc/libsilly-doc/html/dir_7b011f4828cd5682692dd5e7c066fc3b.html", "unified_diff": "@@ -58,19 +58,19 @@\n \n \n \n \n \n \n-\n+\n \n-\n+\n \n-\n+\n \n \n \n

\n Files

file  SILLYJPGImageContext.cpp [code]
 
file  SILLYJPGImageLoader.cpp [code]
 
file  SILLYPNGImageContext.cpp [code]
file  SILLYPNGImageContext.cpp [code]
 
file  SILLYPNGImageLoader.cpp [code]
file  SILLYPNGImageLoader.cpp [code]
 
file  SILLYTGAImageContext.cpp [code]
file  SILLYTGAImageContext.cpp [code]
 
file  SILLYTGAImageLoader.cpp [code]
 
\n \n \n
\n"}, {"source1": "./usr/share/doc/libsilly-doc/html/dir_7b53bc9a32849689d682eb098e891de5.html", "source2": "./usr/share/doc/libsilly-doc/html/dir_7b53bc9a32849689d682eb098e891de5.html", "unified_diff": "@@ -60,27 +60,27 @@\n

\n Directories

\n directory  loaders\n  \n \n \n-\n+\n \n-\n+\n \n-\n+\n \n-\n+\n \n-\n+\n \n-\n+\n \n-\n+\n \n

\n Files

file  SILLYDataSource.cpp [code]
file  SILLYDataSource.cpp [code]
 
file  SILLYFileDataSource.cpp [code]
file  SILLYFileDataSource.cpp [code]
 
file  SILLYImage.cpp [code]
file  SILLYImage.cpp [code]
 
file  SILLYImageContext.cpp [code]
file  SILLYImageContext.cpp [code]
 
file  SILLYImageLoader.cpp [code]
file  SILLYImageLoader.cpp [code]
 
file  SILLYImageLoaderManager.cpp [code]
file  SILLYImageLoaderManager.cpp [code]
 
file  SILLYMemoryDataSource.cpp [code]
file  SILLYMemoryDataSource.cpp [code]
 
\n \n \n
\n Generated by \"doxygen\"/ 1.9.4\n
\n"}, {"source1": "./usr/share/doc/libsilly-doc/html/dir_7cea72c962538e8359f822070f2512f7.html", "source2": "./usr/share/doc/libsilly-doc/html/dir_7cea72c962538e8359f822070f2512f7.html", "unified_diff": "@@ -54,37 +54,37 @@\n \"\"\n \"\"\n \n \n \n \n-\n+\n \n-\n+\n \n-\n+\n \n-\n+\n \n-\n+\n \n-\n+\n \n-\n+\n \n-\n+\n \n-\n+\n \n-\n+\n \n-\n+\n \n-\n+\n \n

\n Files

file  SILLYJPGImageContext.h [code]
file  SILLYJPGImageContext.h [code]
 
file  SILLYJPGImageContext.icpp [code]
file  SILLYJPGImageContext.icpp [code]
 
file  SILLYJPGImageLoader.h [code]
file  SILLYJPGImageLoader.h [code]
 
file  SILLYJPGImageLoader.icpp [code]
file  SILLYJPGImageLoader.icpp [code]
 
file  SILLYPNGImageContext.h [code]
file  SILLYPNGImageContext.h [code]
 
file  SILLYPNGImageContext.icpp [code]
file  SILLYPNGImageContext.icpp [code]
 
file  SILLYPNGImageLoader.h [code]
file  SILLYPNGImageLoader.h [code]
 
file  SILLYPNGImageLoader.icpp [code]
file  SILLYPNGImageLoader.icpp [code]
 
file  SILLYTGAImageContext.h [code]
file  SILLYTGAImageContext.h [code]
 
file  SILLYTGAImageContext.icpp [code]
file  SILLYTGAImageContext.icpp [code]
 
file  SILLYTGAImageLoader.h [code]
file  SILLYTGAImageLoader.h [code]
 
file  SILLYTGAImageLoader.icpp [code]
file  SILLYTGAImageLoader.icpp [code]
 
\n \n \n
\n Generated by \"doxygen\"/ 1.9.4\n
\n"}, {"source1": "./usr/share/doc/libsilly-doc/html/files.html", "source2": "./usr/share/doc/libsilly-doc/html/files.html", "unified_diff": "@@ -45,58 +45,58 @@\n
Here is a list of all documented files with brief descriptions:
\n
[detail level 123456]
\n \n \n \n \n \n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n \n \n \n \n-\n-\n-\n+\n+\n+\n \n-\n-\n-\n-\n-\n-\n-\n+\n+\n+\n+\n+\n+\n+\n
  build
  reproducible-path
  silly-0.1.0
  include
  loaders
 SILLYJPGImageContext.h
 SILLYJPGImageContext.icpp
 SILLYJPGImageLoader.h
 SILLYJPGImageLoader.icpp
 SILLYPNGImageContext.h
 SILLYPNGImageContext.icpp
 SILLYPNGImageLoader.h
 SILLYPNGImageLoader.icpp
 SILLYTGAImageContext.h
 SILLYTGAImageContext.icpp
 SILLYTGAImageLoader.h
 SILLYTGAImageLoader.icpp
 SILLY.h
 SILLYBase.h
 SILLYDataSource.h
 SILLYDataSource.icpp
 SILLYFileDataSource.h
 SILLYFileDataSource.icpp
 SILLYImage.h
 SILLYImage.icpp
 SILLYImageContext.h
 SILLYImageContext.icpp
 SILLYImageLoader.h
 SILLYImageLoader.icpp
 SILLYImageLoaderManager.h
 SILLYImageLoaderManager.icpp
 SILLYMemoryDataSource.h
 SILLYMemoryDataSource.icpp
 SILLYOptions.h
 SILLYJPGImageContext.h
 SILLYJPGImageContext.icpp
 SILLYJPGImageLoader.h
 SILLYJPGImageLoader.icpp
 SILLYPNGImageContext.h
 SILLYPNGImageContext.icpp
 SILLYPNGImageLoader.h
 SILLYPNGImageLoader.icpp
 SILLYTGAImageContext.h
 SILLYTGAImageContext.icpp
 SILLYTGAImageLoader.h
 SILLYTGAImageLoader.icpp
 SILLY.h
 SILLYBase.h
 SILLYDataSource.h
 SILLYDataSource.icpp
 SILLYFileDataSource.h
 SILLYFileDataSource.icpp
 SILLYImage.h
 SILLYImage.icpp
 SILLYImageContext.h
 SILLYImageContext.icpp
 SILLYImageLoader.h
 SILLYImageLoader.icpp
 SILLYImageLoaderManager.h
 SILLYImageLoaderManager.icpp
 SILLYMemoryDataSource.h
 SILLYMemoryDataSource.icpp
 SILLYOptions.h
  src
  loaders
 SILLYJPGImageContext.cpp
 SILLYJPGImageLoader.cpp
 SILLYPNGImageContext.cpp
 SILLYPNGImageLoader.cpp
 SILLYTGAImageContext.cpp
 SILLYPNGImageContext.cpp
 SILLYPNGImageLoader.cpp
 SILLYTGAImageContext.cpp
 SILLYTGAImageLoader.cpp
 SILLYDataSource.cpp
 SILLYFileDataSource.cpp
 SILLYImage.cpp
 SILLYImageContext.cpp
 SILLYImageLoader.cpp
 SILLYImageLoaderManager.cpp
 SILLYMemoryDataSource.cpp
 SILLYDataSource.cpp
 SILLYFileDataSource.cpp
 SILLYImage.cpp
 SILLYImageContext.cpp
 SILLYImageLoader.cpp
 SILLYImageLoaderManager.cpp
 SILLYMemoryDataSource.cpp
\n
\n \n \n
\n Generated by \"doxygen\"/ 1.9.4\n
\n"}, {"source1": "./usr/share/doc/libsilly-doc/html/index.html", "source2": "./usr/share/doc/libsilly-doc/html/index.html", "unified_diff": "@@ -90,19 +90,19 @@\n
}
\n
// Return a pointer to a byte array containing the
\n
// pixels stored as RGBA
\n
img.getPixelsDataPtr();
\n
// Get the size of the pixel array
\n
img.getPixelsDataSize();
\n
SILLY::SILLYCleanup(); // Free all memory used by the library
\n-
unsigned char byte
Typename for a byte.
Definition: SILLYBase.h:80
\n-
void SILLYCleanup()
Cleanup SILLY library internal.
\n-
bool SILLYInit()
Initialize the SILLY Library.
\n-
Image is the main user class of the library.
Definition: SILLYImage.h:47
\n-
Load an image from a memory area.
\n+
unsigned char byte
Typename for a byte.
Definition: SILLYBase.h:80
\n+
void SILLYCleanup()
Cleanup SILLY library internal.
\n+
bool SILLYInit()
Initialize the SILLY Library.
\n+
Image is the main user class of the library.
Definition: SILLYImage.h:47
\n+
Load an image from a memory area.
\n \n \n \n
\n Generated by \"doxygen\"/ 1.9.4\n
\n \n"}]}]}]}]}