1/***********************************************************************
│ │ │ │ -
2 filename: SILLYDataSource.icpp
│ │ │ │ -
│ │ │ │ -
4 author: ode@dalfy.dalfy.dyndns.org
│ │ │ │ -
│ │ │ │ -
6 purpose: Inline function definition for (F>>>ILE_SANS<<<) class
│ │ │ │ -
7*************************************************************************/
│ │ │ │ -
8/***************************************************************************
│ │ │ │ -
9 * Copyright (C) 2004 - 2006 Paul D Turner & The CEGUI Development Team
│ │ │ │ -
│ │ │ │ -
11 * Permission is hereby granted, free of charge, to any person obtaining
│ │ │ │ -
12 * a copy of this software and associated documentation files (the
│ │ │ │ -
13 * "Software"), to deal in the Software without restriction, including
│ │ │ │ -
14 * without limitation the rights to use, copy, modify, merge, publish,
│ │ │ │ -
15 * distribute, sublicense, and/or sell copies of the Software, and to
│ │ │ │ -
16 * permit persons to whom the Software is furnished to do so, subject to
│ │ │ │ -
17 * the following conditions:
│ │ │ │ -
│ │ │ │ -
19 * The above copyright notice and this permission notice shall be
│ │ │ │ -
20 * included in all copies or substantial portions of the Software.
│ │ │ │ -
│ │ │ │ -
22 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
│ │ │ │ -
23 * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
│ │ │ │ -
24 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
│ │ │ │ -
25 * IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR
│ │ │ │ -
26 * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
│ │ │ │ -
27 * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
│ │ │ │ -
28 * OTHER DEALINGS IN THE SOFTWARE.
│ │ │ │ -
29 ***************************************************************************/
│ │ │ │ -
│ │ │ │ -
31// Start of section namespace SILLY
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
34inline DataSource::~DataSource()
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
38inline byte DataSource::operator[](size_t offset) const
│ │ │ │ -
│ │ │ │ -
40 assert(offset < getSize() && "ASSERT: Trying to access pixel outside of the data");
│ │ │ │ -
41 return getDataPtr()[offset];
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
44} // End of section namespace SILLY
│ │ │ │ -
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
30#ifndef _SILLYPNGImageLoader_h_
│ │ │ │ +
31#define _SILLYPNGImageLoader_h_
│ │ │ │ +
│ │ │ │ +
33#include "SILLYImageLoader.h"
│ │ │ │ +
34#include "SILLYDataSource.h"
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
62#ifdef SILLY_OPT_INLINE
│ │ │ │ +
63#include "SILLYPNGImageLoader.icpp"
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
Simple Image Loading LibrarY namespace.
│ │ │ │ +
PixelFormat
List all pixel format supported.
│ │ │ │ +
PixelOrigin
List all pixel origin supported.
│ │ │ │ +
│ │ │ │ +
ImageContext * loadHeader(PixelFormat &formatSource, DataSource *data)
Parse the header of the image and fill the header struct.
│ │ │ │ +
bool loadImageData(PixelOrigin origin, DataSource *data, ImageContext *context)
Parse the pixels data of the image and fill the header struct.
│ │ │ │ +
This is an abstract class used to provide data to the loader.
│ │ │ │ +
Store the data needed by an ImageLoader object during the parsing of an image.
│ │ │ │ +
This is an abstract class that define the interface of all image loader.
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │ ├── html2text {}
│ │ │ │ │ @@ -4,21 +4,22 @@
│ │ │ │ │
│ │ │ │ │ Simple Image Loading LibrarY 0.1.0
│ │ │ │ │
│ │ │ │ │ * build
│ │ │ │ │ * reproducible-path
│ │ │ │ │ * silly-0.1.0
│ │ │ │ │ * include
│ │ │ │ │ -SILLYDataSource.icpp
│ │ │ │ │ + * loaders
│ │ │ │ │ +SILLYPNGImageLoader.h
│ │ │ │ │ 1/***********************************************************************
│ │ │ │ │ - 2 filename: SILLYDataSource.icpp
│ │ │ │ │ - 3 created: 10 Jun 2006
│ │ │ │ │ - 4 author: ode@dalfy.dalfy.dyndns.org
│ │ │ │ │ + 2 filename: SILLYPNGImageLoader.h
│ │ │ │ │ + 3 created: 11 Jun 2006
│ │ │ │ │ + 4 author: Olivier Delannoy
│ │ │ │ │ 5
│ │ │ │ │ - 6 purpose: Inline function definition for (F>>>ILE_SANS<<<) class
│ │ │ │ │ + 6 purpose: Declaration of the PNGImageLoader class
│ │ │ │ │ 7*************************************************************************/
│ │ │ │ │ 8/***************************************************************************
│ │ │ │ │ 9 * Copyright (C) 2004 - 2006 Paul D Turner & The CEGUI Development Team
│ │ │ │ │ 10 *
│ │ │ │ │ 11 * Permission is hereby granted, free of charge, to any person obtaining
│ │ │ │ │ 12 * a copy of this software and associated documentation files (the
│ │ │ │ │ 13 * "Software"), to deal in the Software without restriction, including
│ │ │ │ │ @@ -35,27 +36,74 @@
│ │ │ │ │ 24 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
│ │ │ │ │ 25 * IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR
│ │ │ │ │ 26 * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
│ │ │ │ │ 27 * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
│ │ │ │ │ 28 * OTHER DEALINGS IN THE SOFTWARE.
│ │ │ │ │ 29
│ │ │ │ │ ***************************************************************************/
│ │ │ │ │ - 30
│ │ │ │ │ - 31// Start of section namespace SILLY
│ │ │ │ │ - 32namespace SILLY
│ │ │ │ │ - 33{
│ │ │ │ │ - 34inline DataSource::~DataSource()
│ │ │ │ │ - 35{
│ │ │ │ │ - 36}
│ │ │ │ │ - 37
│ │ │ │ │ - 38inline byte DataSource::operator[](size_t offset) const
│ │ │ │ │ - 39{
│ │ │ │ │ - 40 assert(offset < getSize() && "ASSERT: Trying to access pixel outside of the
│ │ │ │ │ -data");
│ │ │ │ │ - 41 return getDataPtr()[offset];
│ │ │ │ │ - 42}
│ │ │ │ │ - 43
│ │ │ │ │ - 44} // End of section namespace SILLY
│ │ │ │ │ - 45
│ │ │ │ │ + 30#ifndef _SILLYPNGImageLoader_h_
│ │ │ │ │ + 31#define _SILLYPNGImageLoader_h_
│ │ │ │ │ + 32#include "SILLYBase.h"
│ │ │ │ │ + 33#include "SILLYImageLoader.h"
│ │ │ │ │ + 34#include "SILLYDataSource.h"
│ │ │ │ │ + 35// Start of section namespace SILLY
│ │ │ │ │ + 36namespace SILLY
│ │ │ │ │ + 37{
│ │ │ │ │ +42class PNGImageLoader : public ImageLoader
│ │ │ │ │ + 43{
│ │ │ │ │ + 44public:
│ │ │ │ │ + 45 PNGImageLoader();
│ │ │ │ │ + 46
│ │ │ │ │ + 47 ~PNGImageLoader();
│ │ │ │ │ + 48
│ │ │ │ │ + 49 ImageContext* loadHeader(PixelFormat& formatSource, DataSource* data);
│ │ │ │ │ + 50
│ │ │ │ │ + 51 bool loadImageData(PixelOrigin origin,
│ │ │ │ │ + 52 DataSource* data,
│ │ │ │ │ + 53 ImageContext* context);
│ │ │ │ │ + 54private:
│ │ │ │ │ + 55
│ │ │ │ │ + 56};
│ │ │ │ │ + 57
│ │ │ │ │ + 58
│ │ │ │ │ + 59} // End of section namespace SILLY
│ │ │ │ │ + 60
│ │ │ │ │ + 61// Inclue inline function when needed
│ │ │ │ │ + 62#ifdef SILLY_OPT_INLINE
│ │ │ │ │ + 63#include "SILLYPNGImageLoader.icpp"
│ │ │ │ │ + 64#endif
│ │ │ │ │ + 65
│ │ │ │ │ + 66#endif // end of guard _SILLYPNGImageLoader_h_
│ │ │ │ │ +SILLY
│ │ │ │ │ +Simple Image Loading LibrarY namespace.
│ │ │ │ │ +Definition: SILLYJPGImageContext.cpp:46
│ │ │ │ │ +SILLY::PixelFormat
│ │ │ │ │ +PixelFormat
│ │ │ │ │ +List all pixel format supported.
│ │ │ │ │ +Definition: SILLYBase.h:60
│ │ │ │ │ +SILLY::PixelOrigin
│ │ │ │ │ +PixelOrigin
│ │ │ │ │ +List all pixel origin supported.
│ │ │ │ │ +Definition: SILLYBase.h:71
│ │ │ │ │ +SILLY::PNGImageLoader
│ │ │ │ │ +Loader for PNG Image.
│ │ │ │ │ +Definition: SILLYPNGImageLoader.h:43
│ │ │ │ │ +SILLY::PNGImageLoader::loadHeader
│ │ │ │ │ +ImageContext * loadHeader(PixelFormat &formatSource, DataSource *data)
│ │ │ │ │ +Parse the header of the image and fill the header struct.
│ │ │ │ │ +Definition: SILLYPNGImageLoader.cpp:88
│ │ │ │ │ +SILLY::PNGImageLoader::loadImageData
│ │ │ │ │ +bool loadImageData(PixelOrigin origin, DataSource *data, ImageContext *context)
│ │ │ │ │ +Parse the pixels data of the image and fill the header struct.
│ │ │ │ │ +Definition: SILLYPNGImageLoader.cpp:154
│ │ │ │ │ +SILLY::DataSource
│ │ │ │ │ +This is an abstract class used to provide data to the loader.
│ │ │ │ │ +Definition: SILLYDataSource.h:47
│ │ │ │ │ +SILLY::ImageContext
│ │ │ │ │ +Store the data needed by an ImageLoader object during the parsing of an image.
│ │ │ │ │ +Definition: SILLYImageContext.h:44
│ │ │ │ │ +SILLY::ImageLoader
│ │ │ │ │ +This is an abstract class that define the interface of all image loader.
│ │ │ │ │ +Definition: SILLYImageLoader.h:47
│ │ │ │ │
│ │ │ │ │ ===============================================================================
│ │ │ │ │ Generated by [doxygen] 1.9.4
│ │ │ ├── ./usr/share/doc/libsilly-doc/html/a00071_source.html
│ │ │ │ @@ -1,15 +1,15 @@
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
34#include "SILLYImageContext.h"
│ │ │ │ -
35#include "SILLYDataSource.h"
│ │ │ │ -
36#include "SILLYImageLoader.h"
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
76 bool loadImageHeader();
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
151#ifdef SILLY_OPT_INLINE
│ │ │ │ -
152#include "SILLYImage.icpp"
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
Simple Image Loading LibrarY namespace.
│ │ │ │ -
PixelFormat
List all pixel format supported.
│ │ │ │ -
PixelOrigin
List all pixel origin supported.
│ │ │ │ -
This is an abstract class used to provide data to the loader.
│ │ │ │ -
Image is the main user class of the library.
│ │ │ │ -
PixelFormat getSourcePixelFormat() const
Retrieve the pixel format used for the image storage.
│ │ │ │ -
const char * getLoaderIdentifierString() const
Get Image loader identifier string.
│ │ │ │ -
const byte * getPixelsDataPtr() const
Get a pointer to the pixels data.
│ │ │ │ -
bool isValid() const
Return true if the image is valid after its loading.
│ │ │ │ -
size_t getPixelsDataSize() const
Get the size of the pixel buffer.
│ │ │ │ -
│ │ │ │ -
size_t getWidth() const
Retrieve the width of the image.
│ │ │ │ -
PixelFormat getPixelFormat() const
Retrieve the pixel format of the resulting image.
│ │ │ │ -
size_t getHeight() const
Retrieve the height of the image.
│ │ │ │ -
Store the data needed by an ImageLoader object during the parsing of an image.
│ │ │ │ -
This is an abstract class that define the interface of all image loader.
│ │ │ │ +
1/***********************************************************************
│ │ │ │ +
2 filename: SILLYJPGImageLoader.icpp
│ │ │ │ +
│ │ │ │ +
4 author: Olivier Delannoy
│ │ │ │ +
│ │ │ │ +
6 purpose: Inline definition of JPGImageLoader class
│ │ │ │ +
7*************************************************************************/
│ │ │ │ +
8/***************************************************************************
│ │ │ │ +
9 * Copyright (C) 2004 - 2006 Paul D Turner & The CEGUI Development Team
│ │ │ │ +
│ │ │ │ +
11 * Permission is hereby granted, free of charge, to any person obtaining
│ │ │ │ +
12 * a copy of this software and associated documentation files (the
│ │ │ │ +
13 * "Software"), to deal in the Software without restriction, including
│ │ │ │ +
14 * without limitation the rights to use, copy, modify, merge, publish,
│ │ │ │ +
15 * distribute, sublicense, and/or sell copies of the Software, and to
│ │ │ │ +
16 * permit persons to whom the Software is furnished to do so, subject to
│ │ │ │ +
17 * the following conditions:
│ │ │ │ +
│ │ │ │ +
19 * The above copyright notice and this permission notice shall be
│ │ │ │ +
20 * included in all copies or substantial portions of the Software.
│ │ │ │ +
│ │ │ │ +
22 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
│ │ │ │ +
23 * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
│ │ │ │ +
24 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
│ │ │ │ +
25 * IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR
│ │ │ │ +
26 * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
│ │ │ │ +
27 * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
│ │ │ │ +
28 * OTHER DEALINGS IN THE SOFTWARE.
│ │ │ │ +
29 ***************************************************************************/
│ │ │ │ +
│ │ │ │ +
31// Start of section namespace SILLY
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
35} // End of section namespace SILLY
│ │ │ │ +
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │ ├── html2text {}
│ │ │ │ │ @@ -4,154 +4,49 @@
│ │ │ │ │
│ │ │ │ │ Simple Image Loading LibrarY 0.1.0
│ │ │ │ │
│ │ │ │ │ * build
│ │ │ │ │ * reproducible-path
│ │ │ │ │ * silly-0.1.0
│ │ │ │ │ * include
│ │ │ │ │ -SILLYImage.h
│ │ │ │ │ - 1
│ │ │ │ │ - 2/***********************************************************************
│ │ │ │ │ - 3 filename: SILLYImage.h
│ │ │ │ │ - 4 created: 10 Jun 2006
│ │ │ │ │ - 5 author: Olivier Delannoy
│ │ │ │ │ - 6
│ │ │ │ │ - 7 purpose: Image class definition
│ │ │ │ │ - 8*************************************************************************/
│ │ │ │ │ - 9/***************************************************************************
│ │ │ │ │ - 10 * Copyright (C) 2004 - 2006 Paul D Turner & The CEGUI Development Team
│ │ │ │ │ - 11 *
│ │ │ │ │ - 12 * Permission is hereby granted, free of charge, to any person obtaining
│ │ │ │ │ - 13 * a copy of this software and associated documentation files (the
│ │ │ │ │ - 14 * "Software"), to deal in the Software without restriction, including
│ │ │ │ │ - 15 * without limitation the rights to use, copy, modify, merge, publish,
│ │ │ │ │ - 16 * distribute, sublicense, and/or sell copies of the Software, and to
│ │ │ │ │ - 17 * permit persons to whom the Software is furnished to do so, subject to
│ │ │ │ │ - 18 * the following conditions:
│ │ │ │ │ - 19 *
│ │ │ │ │ - 20 * The above copyright notice and this permission notice shall be
│ │ │ │ │ - 21 * included in all copies or substantial portions of the Software.
│ │ │ │ │ - 22 *
│ │ │ │ │ - 23 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
│ │ │ │ │ - 24 * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
│ │ │ │ │ - 25 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
│ │ │ │ │ - 26 * IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR
│ │ │ │ │ - 27 * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
│ │ │ │ │ - 28 * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
│ │ │ │ │ - 29 * OTHER DEALINGS IN THE SOFTWARE.
│ │ │ │ │ - 30
│ │ │ │ │ + * loaders
│ │ │ │ │ +SILLYJPGImageLoader.icpp
│ │ │ │ │ + 1/***********************************************************************
│ │ │ │ │ + 2 filename: SILLYJPGImageLoader.icpp
│ │ │ │ │ + 3 created: 11 Jun 2006
│ │ │ │ │ + 4 author: Olivier Delannoy
│ │ │ │ │ + 5
│ │ │ │ │ + 6 purpose: Inline definition of JPGImageLoader class
│ │ │ │ │ + 7*************************************************************************/
│ │ │ │ │ + 8/***************************************************************************
│ │ │ │ │ + 9 * Copyright (C) 2004 - 2006 Paul D Turner & The CEGUI Development Team
│ │ │ │ │ + 10 *
│ │ │ │ │ + 11 * Permission is hereby granted, free of charge, to any person obtaining
│ │ │ │ │ + 12 * a copy of this software and associated documentation files (the
│ │ │ │ │ + 13 * "Software"), to deal in the Software without restriction, including
│ │ │ │ │ + 14 * without limitation the rights to use, copy, modify, merge, publish,
│ │ │ │ │ + 15 * distribute, sublicense, and/or sell copies of the Software, and to
│ │ │ │ │ + 16 * permit persons to whom the Software is furnished to do so, subject to
│ │ │ │ │ + 17 * the following conditions:
│ │ │ │ │ + 18 *
│ │ │ │ │ + 19 * The above copyright notice and this permission notice shall be
│ │ │ │ │ + 20 * included in all copies or substantial portions of the Software.
│ │ │ │ │ + 21 *
│ │ │ │ │ + 22 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
│ │ │ │ │ + 23 * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
│ │ │ │ │ + 24 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
│ │ │ │ │ + 25 * IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR
│ │ │ │ │ + 26 * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
│ │ │ │ │ + 27 * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
│ │ │ │ │ + 28 * OTHER DEALINGS IN THE SOFTWARE.
│ │ │ │ │ + 29
│ │ │ │ │ ***************************************************************************/
│ │ │ │ │ - 31#ifndef _SILLYImage_h_
│ │ │ │ │ - 32#define _SILLYImage_h_
│ │ │ │ │ - 33#include "SILLYBase.h"
│ │ │ │ │ - 34#include "SILLYImageContext.h"
│ │ │ │ │ - 35#include "SILLYDataSource.h"
│ │ │ │ │ - 36#include "SILLYImageLoader.h"
│ │ │ │ │ - 37
│ │ │ │ │ - 38// Start of section namespace SILLY
│ │ │ │ │ - 39namespace SILLY
│ │ │ │ │ - 40{
│ │ │ │ │ - 41
│ │ │ │ │ -46class SILLY_EXPORT Image
│ │ │ │ │ - 47{
│ │ │ │ │ - 48public:
│ │ │ │ │ - 55 Image(DataSource& data);
│ │ │ │ │ - 56
│ │ │ │ │ -61 ~Image();
│ │ │ │ │ - 62
│ │ │ │ │ -67 bool isValid() const;
│ │ │ │ │ - 68
│ │ │ │ │ - 69
│ │ │ │ │ - 76 bool loadImageHeader();
│ │ │ │ │ - 77
│ │ │ │ │ - 91 bool loadImageData(PixelFormat resultFormat = PF_RGBA, PixelOrigin origin =
│ │ │ │ │ -PO_TOP_LEFT);
│ │ │ │ │ - 92
│ │ │ │ │ -97 size_t getWidth() const;
│ │ │ │ │ - 98
│ │ │ │ │ -103 size_t getHeight() const;
│ │ │ │ │ - 104
│ │ │ │ │ -109 PixelFormat getSourcePixelFormat() const;
│ │ │ │ │ - 110
│ │ │ │ │ -115 PixelFormat getPixelFormat() const;
│ │ │ │ │ - 116
│ │ │ │ │ -120 const byte* getPixelsDataPtr() const;
│ │ │ │ │ -125 size_t getPixelsDataSize() const;
│ │ │ │ │ -130 const char* getLoaderIdentifierString() const;
│ │ │ │ │ - 131private:
│ │ │ │ │ - 132 bool allocate();
│ │ │ │ │ - 133
│ │ │ │ │ - 134private:
│ │ │ │ │ - 135
│ │ │ │ │ - 136 size_t d_bpp;
│ │ │ │ │ - 137 PixelFormat d_pfSource;
│ │ │ │ │ - 138 byte* d_pixels;
│ │ │ │ │ - 139 DataSource* d_data;
│ │ │ │ │ - 140 ImageContext* d_imageContext;
│ │ │ │ │ - 141 ImageLoader* d_imageLoader;
│ │ │ │ │ - 142
│ │ │ │ │ - 143 // Disabled operation
│ │ │ │ │ - 144 Image(Image&);
│ │ │ │ │ - 145 Image& operator=(Image&);
│ │ │ │ │ - 146};
│ │ │ │ │ - 147
│ │ │ │ │ - 148} // End of section namespace SILLY
│ │ │ │ │ - 149
│ │ │ │ │ - 150// Inclue inline function when needed
│ │ │ │ │ - 151#ifdef SILLY_OPT_INLINE
│ │ │ │ │ - 152#include "SILLYImage.icpp"
│ │ │ │ │ - 153#endif
│ │ │ │ │ - 154
│ │ │ │ │ - 155#endif // end of guard _SILLYImage_h_
│ │ │ │ │ -SILLY
│ │ │ │ │ -Simple Image Loading LibrarY namespace.
│ │ │ │ │ -Definition: SILLYJPGImageContext.cpp:46
│ │ │ │ │ -SILLY::PixelFormat
│ │ │ │ │ -PixelFormat
│ │ │ │ │ -List all pixel format supported.
│ │ │ │ │ -Definition: SILLYBase.h:60
│ │ │ │ │ -SILLY::PixelOrigin
│ │ │ │ │ -PixelOrigin
│ │ │ │ │ -List all pixel origin supported.
│ │ │ │ │ -Definition: SILLYBase.h:71
│ │ │ │ │ -SILLY::DataSource
│ │ │ │ │ -This is an abstract class used to provide data to the loader.
│ │ │ │ │ -Definition: SILLYDataSource.h:47
│ │ │ │ │ -SILLY::Image
│ │ │ │ │ -Image is the main user class of the library.
│ │ │ │ │ -Definition: SILLYImage.h:47
│ │ │ │ │ -SILLY::Image::getSourcePixelFormat
│ │ │ │ │ -PixelFormat getSourcePixelFormat() const
│ │ │ │ │ -Retrieve the pixel format used for the image storage.
│ │ │ │ │ -SILLY::Image::getLoaderIdentifierString
│ │ │ │ │ -const char * getLoaderIdentifierString() const
│ │ │ │ │ -Get Image loader identifier string.
│ │ │ │ │ -SILLY::Image::getPixelsDataPtr
│ │ │ │ │ -const byte * getPixelsDataPtr() const
│ │ │ │ │ -Get a pointer to the pixels data.
│ │ │ │ │ -SILLY::Image::isValid
│ │ │ │ │ -bool isValid() const
│ │ │ │ │ -Return true if the image is valid after its loading.
│ │ │ │ │ -SILLY::Image::getPixelsDataSize
│ │ │ │ │ -size_t getPixelsDataSize() const
│ │ │ │ │ -Get the size of the pixel buffer.
│ │ │ │ │ -SILLY::Image::~Image
│ │ │ │ │ -~Image()
│ │ │ │ │ -Destructor.
│ │ │ │ │ -SILLY::Image::getWidth
│ │ │ │ │ -size_t getWidth() const
│ │ │ │ │ -Retrieve the width of the image.
│ │ │ │ │ -SILLY::Image::getPixelFormat
│ │ │ │ │ -PixelFormat getPixelFormat() const
│ │ │ │ │ -Retrieve the pixel format of the resulting image.
│ │ │ │ │ -SILLY::Image::getHeight
│ │ │ │ │ -size_t getHeight() const
│ │ │ │ │ -Retrieve the height of the image.
│ │ │ │ │ -SILLY::ImageContext
│ │ │ │ │ -Store the data needed by an ImageLoader object during the parsing of an image.
│ │ │ │ │ -Definition: SILLYImageContext.h:44
│ │ │ │ │ -SILLY::ImageLoader
│ │ │ │ │ -This is an abstract class that define the interface of all image loader.
│ │ │ │ │ -Definition: SILLYImageLoader.h:47
│ │ │ │ │ + 30
│ │ │ │ │ + 31// Start of section namespace SILLY
│ │ │ │ │ + 32namespace SILLY
│ │ │ │ │ + 33{
│ │ │ │ │ + 34
│ │ │ │ │ + 35} // End of section namespace SILLY
│ │ │ │ │ + 36
│ │ │ │ │
│ │ │ │ │ ===============================================================================
│ │ │ │ │ Generated by [doxygen] 1.9.4
│ │ │ ├── ./usr/share/doc/libsilly-doc/html/a00074_source.html
│ │ │ │ @@ -1,15 +1,15 @@
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │ -
Simple Image Loading LibrarY: /build/reproducible-path/silly-0.1.0/include/SILLYOptions.h Source File
│ │ │ │ +
Simple Image Loading LibrarY: /build/reproducible-path/silly-0.1.0/include/loaders/SILLYPNGImageLoader.icpp Source File
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │ @@ -35,60 +35,57 @@
│ │ │ │ initMenu('',false,false,'search.php','Search');
│ │ │ │ });
│ │ │ │ /* @license-end */
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
32#define SILLY_OPT_INLINE 1
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ +
1/***********************************************************************
│ │ │ │ +
2 filename: SILLYPNGImageLoader.icpp
│ │ │ │ +
│ │ │ │ +
4 author: Olivier Delannoy
│ │ │ │ +
│ │ │ │ +
6 purpose: Inline definition for PNGImageLoader
│ │ │ │ +
7*************************************************************************/
│ │ │ │ +
8/***************************************************************************
│ │ │ │ +
9 * Copyright (C) 2004 - 2006 Paul D Turner & The CEGUI Development Team
│ │ │ │ +
│ │ │ │ +
11 * Permission is hereby granted, free of charge, to any person obtaining
│ │ │ │ +
12 * a copy of this software and associated documentation files (the
│ │ │ │ +
13 * "Software"), to deal in the Software without restriction, including
│ │ │ │ +
14 * without limitation the rights to use, copy, modify, merge, publish,
│ │ │ │ +
15 * distribute, sublicense, and/or sell copies of the Software, and to
│ │ │ │ +
16 * permit persons to whom the Software is furnished to do so, subject to
│ │ │ │ +
17 * the following conditions:
│ │ │ │ +
│ │ │ │ +
19 * The above copyright notice and this permission notice shall be
│ │ │ │ +
20 * included in all copies or substantial portions of the Software.
│ │ │ │ +
│ │ │ │ +
22 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
│ │ │ │ +
23 * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
│ │ │ │ +
24 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
│ │ │ │ +
25 * IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR
│ │ │ │ +
26 * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
│ │ │ │ +
27 * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
│ │ │ │ +
28 * OTHER DEALINGS IN THE SOFTWARE.
│ │ │ │ +
29 ***************************************************************************/
│ │ │ │ +
│ │ │ │ +
31// Start of section namespace SILLY
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
35} // End of section namespace SILLY
│ │ │ │
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │ ├── html2text {}
│ │ │ │ │ @@ -4,51 +4,49 @@
│ │ │ │ │
│ │ │ │ │ Simple Image Loading LibrarY 0.1.0
│ │ │ │ │
│ │ │ │ │ * build
│ │ │ │ │ * reproducible-path
│ │ │ │ │ * silly-0.1.0
│ │ │ │ │ * include
│ │ │ │ │ -SILLYOptions.h
│ │ │ │ │ - 1/* include/SILLYOptions.h. Generated from SILLYOptions.h.in by configure. */
│ │ │ │ │ - 2/***********************************************************************
│ │ │ │ │ - 3 filename: SILLYOptions.h.in
│ │ │ │ │ - 4 created: 2006/06/10
│ │ │ │ │ - 5 author: Olivier Delannoy
│ │ │ │ │ - 6
│ │ │ │ │ - 7 purpose: Store options of the SILLY library
│ │ │ │ │ - 8*************************************************************************/
│ │ │ │ │ - 9/***************************************************************************
│ │ │ │ │ - 10 * Copyright (C) 2004 - 2006 Paul D Turner & The CEGUI Development Team
│ │ │ │ │ - 11 *
│ │ │ │ │ - 12 * Permission is hereby granted, free of charge, to any person obtaining
│ │ │ │ │ - 13 * a copy of this software and associated documentation files (the
│ │ │ │ │ - 14 * "Software"), to deal in the Software without restriction, including
│ │ │ │ │ - 15 * without limitation the rights to use, copy, modify, merge, publish,
│ │ │ │ │ - 16 * distribute, sublicense, and/or sell copies of the Software, and to
│ │ │ │ │ - 17 * permit persons to whom the Software is furnished to do so, subject to
│ │ │ │ │ - 18 * the following conditions:
│ │ │ │ │ - 19 *
│ │ │ │ │ - 20 * The above copyright notice and this permission notice shall be
│ │ │ │ │ - 21 * included in all copies or substantial portions of the Software.
│ │ │ │ │ - 22 *
│ │ │ │ │ - 23 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
│ │ │ │ │ - 24 * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
│ │ │ │ │ - 25 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
│ │ │ │ │ - 26 * IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR
│ │ │ │ │ - 27 * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
│ │ │ │ │ - 28 * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
│ │ │ │ │ - 29 * OTHER DEALINGS IN THE SOFTWARE.
│ │ │ │ │ - 30
│ │ │ │ │ + * loaders
│ │ │ │ │ +SILLYPNGImageLoader.icpp
│ │ │ │ │ + 1/***********************************************************************
│ │ │ │ │ + 2 filename: SILLYPNGImageLoader.icpp
│ │ │ │ │ + 3 created: 11 Jun 2006
│ │ │ │ │ + 4 author: Olivier Delannoy
│ │ │ │ │ + 5
│ │ │ │ │ + 6 purpose: Inline definition for PNGImageLoader
│ │ │ │ │ + 7*************************************************************************/
│ │ │ │ │ + 8/***************************************************************************
│ │ │ │ │ + 9 * Copyright (C) 2004 - 2006 Paul D Turner & The CEGUI Development Team
│ │ │ │ │ + 10 *
│ │ │ │ │ + 11 * Permission is hereby granted, free of charge, to any person obtaining
│ │ │ │ │ + 12 * a copy of this software and associated documentation files (the
│ │ │ │ │ + 13 * "Software"), to deal in the Software without restriction, including
│ │ │ │ │ + 14 * without limitation the rights to use, copy, modify, merge, publish,
│ │ │ │ │ + 15 * distribute, sublicense, and/or sell copies of the Software, and to
│ │ │ │ │ + 16 * permit persons to whom the Software is furnished to do so, subject to
│ │ │ │ │ + 17 * the following conditions:
│ │ │ │ │ + 18 *
│ │ │ │ │ + 19 * The above copyright notice and this permission notice shall be
│ │ │ │ │ + 20 * included in all copies or substantial portions of the Software.
│ │ │ │ │ + 21 *
│ │ │ │ │ + 22 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
│ │ │ │ │ + 23 * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
│ │ │ │ │ + 24 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
│ │ │ │ │ + 25 * IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR
│ │ │ │ │ + 26 * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
│ │ │ │ │ + 27 * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
│ │ │ │ │ + 28 * OTHER DEALINGS IN THE SOFTWARE.
│ │ │ │ │ + 29
│ │ │ │ │ ***************************************************************************/
│ │ │ │ │ - 31/* Defined to 1 if inline is enabled */
│ │ │ │ │ - 32#define SILLY_OPT_INLINE 1
│ │ │ │ │ - 33
│ │ │ │ │ - 34/* Defined to 1 if debug is enabled */
│ │ │ │ │ - 35/* #undef SILLY_OPT_DEBUG */
│ │ │ │ │ + 30
│ │ │ │ │ + 31// Start of section namespace SILLY
│ │ │ │ │ + 32namespace SILLY
│ │ │ │ │ + 33{
│ │ │ │ │ + 34
│ │ │ │ │ + 35} // End of section namespace SILLY
│ │ │ │ │ 36
│ │ │ │ │ - 37/* Defined to 1 if profile is enabled */
│ │ │ │ │ - 38/* #undef SILLY_OPT_PROFILE */
│ │ │ │ │ - 39
│ │ │ │ │
│ │ │ │ │ ===============================================================================
│ │ │ │ │ Generated by [doxygen] 1.9.4
│ │ │ ├── ./usr/share/doc/libsilly-doc/html/a00077_source.html
│ │ │ │ @@ -1,15 +1,15 @@
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │ -
Simple Image Loading LibrarY: /build/reproducible-path/silly-0.1.0/include/loaders/SILLYTGAImageContext.icpp Source File
│ │ │ │ +
Simple Image Loading LibrarY: /build/reproducible-path/silly-0.1.0/include/loaders/SILLYTGAImageLoader.icpp Source File
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │ @@ -39,23 +39,23 @@
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
1/***********************************************************************
│ │ │ │ -
2 filename: SILLYTGAImageContext.icpp
│ │ │ │ +
2 filename: SILLYTGAImageLoader.icpp
│ │ │ │
│ │ │ │
4 author: Olivier Delannoy
│ │ │ │
│ │ │ │ -
6 purpose: Inline definition for TGAImageContext class
│ │ │ │ +
6 purpose: Inline defintion of TGAImageLoader class
│ │ │ │
7*************************************************************************/
│ │ │ │
8/***************************************************************************
│ │ │ │
9 * Copyright (C) 2004 - 2006 Paul D Turner & The CEGUI Development Team
│ │ │ │
│ │ │ │
11 * Permission is hereby granted, free of charge, to any person obtaining
│ │ │ │
12 * a copy of this software and associated documentation files (the
│ │ │ │
13 * "Software"), to deal in the Software without restriction, including
│ │ │ │ @@ -75,25 +75,17 @@
│ │ │ │
27 * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
│ │ │ │
28 * OTHER DEALINGS IN THE SOFTWARE.
│ │ │ │
29 ***************************************************************************/
│ │ │ │
│ │ │ │
31// Start of section namespace SILLY
│ │ │ │
│ │ │ │
│ │ │ │ -
34inline TGAImageContext::TGAImageContext(size_t width, size_t height)
│ │ │ │ -
35 : ImageContext(width, height)
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
39inline TGAImageContext::~TGAImageContext()
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
43} // End of section namespace SILLY
│ │ │ │ -
│ │ │ │ +
│ │ │ │ +
35} // End of section namespace SILLY
│ │ │ │ +
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │ ├── html2text {}
│ │ │ │ │ @@ -5,21 +5,21 @@
│ │ │ │ │ Simple Image Loading LibrarY 0.1.0
│ │ │ │ │
│ │ │ │ │ * build
│ │ │ │ │ * reproducible-path
│ │ │ │ │ * silly-0.1.0
│ │ │ │ │ * include
│ │ │ │ │ * loaders
│ │ │ │ │ -SILLYTGAImageContext.icpp
│ │ │ │ │ +SILLYTGAImageLoader.icpp
│ │ │ │ │ 1/***********************************************************************
│ │ │ │ │ - 2 filename: SILLYTGAImageContext.icpp
│ │ │ │ │ + 2 filename: SILLYTGAImageLoader.icpp
│ │ │ │ │ 3 created: 11 Jun 2006
│ │ │ │ │ 4 author: Olivier Delannoy
│ │ │ │ │ 5
│ │ │ │ │ - 6 purpose: Inline definition for TGAImageContext class
│ │ │ │ │ + 6 purpose: Inline defintion of TGAImageLoader class
│ │ │ │ │ 7*************************************************************************/
│ │ │ │ │ 8/***************************************************************************
│ │ │ │ │ 9 * Copyright (C) 2004 - 2006 Paul D Turner & The CEGUI Development Team
│ │ │ │ │ 10 *
│ │ │ │ │ 11 * Permission is hereby granted, free of charge, to any person obtaining
│ │ │ │ │ 12 * a copy of this software and associated documentation files (the
│ │ │ │ │ 13 * "Software"), to deal in the Software without restriction, including
│ │ │ │ │ @@ -40,21 +40,13 @@
│ │ │ │ │ 28 * OTHER DEALINGS IN THE SOFTWARE.
│ │ │ │ │ 29
│ │ │ │ │ ***************************************************************************/
│ │ │ │ │ 30
│ │ │ │ │ 31// Start of section namespace SILLY
│ │ │ │ │ 32namespace SILLY
│ │ │ │ │ 33{
│ │ │ │ │ - 34inline TGAImageContext::TGAImageContext(size_t width, size_t height)
│ │ │ │ │ - 35 : ImageContext(width, height)
│ │ │ │ │ - 36{
│ │ │ │ │ - 37}
│ │ │ │ │ - 38
│ │ │ │ │ - 39inline TGAImageContext::~TGAImageContext()
│ │ │ │ │ - 40{
│ │ │ │ │ - 41}
│ │ │ │ │ - 42
│ │ │ │ │ - 43} // End of section namespace SILLY
│ │ │ │ │ - 44
│ │ │ │ │ + 34
│ │ │ │ │ + 35} // End of section namespace SILLY
│ │ │ │ │ + 36
│ │ │ │ │
│ │ │ │ │ ===============================================================================
│ │ │ │ │ Generated by [doxygen] 1.9.4
│ │ │ ├── ./usr/share/doc/libsilly-doc/html/a00080_source.html
│ │ │ │ @@ -1,15 +1,15 @@
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │ -
Simple Image Loading LibrarY: /build/reproducible-path/silly-0.1.0/include/loaders/SILLYJPGImageContext.h Source File
│ │ │ │ +
Simple Image Loading LibrarY: /build/reproducible-path/silly-0.1.0/include/loaders/SILLYJPGImageContext.icpp Source File
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │ @@ -39,92 +39,53 @@
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
30#ifndef _SILLYJPGImageContext_h_
│ │ │ │ -
31#define _SILLYJPGImageContext_h_
│ │ │ │ -
│ │ │ │ -
33#include "SILLYImageContext.h"
│ │ │ │ -
34#include "SILLYDataSource.h"
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
65 jpeg_source_mgr src_mgr;
│ │ │ │ -
66 jpeg_decompress_struct cinfo;
│ │ │ │ -
│ │ │ │ -
68 jpeg_error_mgr d_error_mgr;
│ │ │ │ -
69 jmp_buf setjmp_buffer;
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
77#ifdef SILLY_OPT_INLINE
│ │ │ │ -
78#include "SILLYJPGImageContext.icpp"
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
Simple Image Loading LibrarY namespace.
│ │ │ │ -
Image Context for JPG image loader.
│ │ │ │ -
This is an abstract class used to provide data to the loader.
│ │ │ │ -
Store the data needed by an ImageLoader object during the parsing of an image.
│ │ │ │ +
1/***********************************************************************
│ │ │ │ +
2 filename: SILLYJPGImageContext.icpp
│ │ │ │ +
│ │ │ │ +
4 author: Olivier Delannoy
│ │ │ │ +
│ │ │ │ +
6 purpose: Inline definition for JPG context
│ │ │ │ +
7*************************************************************************/
│ │ │ │ +
8/***************************************************************************
│ │ │ │ +
9 * Copyright (C) 2004 - 2006 Paul D Turner & The CEGUI Development Team
│ │ │ │ +
│ │ │ │ +
11 * Permission is hereby granted, free of charge, to any person obtaining
│ │ │ │ +
12 * a copy of this software and associated documentation files (the
│ │ │ │ +
13 * "Software"), to deal in the Software without restriction, including
│ │ │ │ +
14 * without limitation the rights to use, copy, modify, merge, publish,
│ │ │ │ +
15 * distribute, sublicense, and/or sell copies of the Software, and to
│ │ │ │ +
16 * permit persons to whom the Software is furnished to do so, subject to
│ │ │ │ +
17 * the following conditions:
│ │ │ │ +
│ │ │ │ +
19 * The above copyright notice and this permission notice shall be
│ │ │ │ +
20 * included in all copies or substantial portions of the Software.
│ │ │ │ +
│ │ │ │ +
22 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
│ │ │ │ +
23 * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
│ │ │ │ +
24 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
│ │ │ │ +
25 * IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR
│ │ │ │ +
26 * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
│ │ │ │ +
27 * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
│ │ │ │ +
28 * OTHER DEALINGS IN THE SOFTWARE.
│ │ │ │ +
29 ***************************************************************************/
│ │ │ │ +
│ │ │ │ +
31// Start of section namespace SILLY
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
35} // End of section namespace SILLY
│ │ │ │ +
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │ ├── html2text {}
│ │ │ │ │ @@ -5,21 +5,21 @@
│ │ │ │ │ Simple Image Loading LibrarY 0.1.0
│ │ │ │ │
│ │ │ │ │ * build
│ │ │ │ │ * reproducible-path
│ │ │ │ │ * silly-0.1.0
│ │ │ │ │ * include
│ │ │ │ │ * loaders
│ │ │ │ │ -SILLYJPGImageContext.h
│ │ │ │ │ +SILLYJPGImageContext.icpp
│ │ │ │ │ 1/***********************************************************************
│ │ │ │ │ - 2 filename: SILLYJPGImageContext.h
│ │ │ │ │ + 2 filename: SILLYJPGImageContext.icpp
│ │ │ │ │ 3 created: 11 Jun 2006
│ │ │ │ │ 4 author: Olivier Delannoy
│ │ │ │ │ 5
│ │ │ │ │ - 6 purpose: Declaration of the JPGImageContext class
│ │ │ │ │ + 6 purpose: Inline definition for JPG context
│ │ │ │ │ 7*************************************************************************/
│ │ │ │ │ 8/***************************************************************************
│ │ │ │ │ 9 * Copyright (C) 2004 - 2006 Paul D Turner & The CEGUI Development Team
│ │ │ │ │ 10 *
│ │ │ │ │ 11 * Permission is hereby granted, free of charge, to any person obtaining
│ │ │ │ │ 12 * a copy of this software and associated documentation files (the
│ │ │ │ │ 13 * "Software"), to deal in the Software without restriction, including
│ │ │ │ │ @@ -36,64 +36,17 @@
│ │ │ │ │ 24 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
│ │ │ │ │ 25 * IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR
│ │ │ │ │ 26 * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
│ │ │ │ │ 27 * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
│ │ │ │ │ 28 * OTHER DEALINGS IN THE SOFTWARE.
│ │ │ │ │ 29
│ │ │ │ │ ***************************************************************************/
│ │ │ │ │ - 30#ifndef _SILLYJPGImageContext_h_
│ │ │ │ │ - 31#define _SILLYJPGImageContext_h_
│ │ │ │ │ - 32#include "SILLYBase.h"
│ │ │ │ │ - 33#include "SILLYImageContext.h"
│ │ │ │ │ - 34#include "SILLYDataSource.h"
│ │ │ │ │ - 35// Start of section namespace SILLY
│ │ │ │ │ - 36#include
│ │ │ │ │ - 37#include
│ │ │ │ │ - 38#include
│ │ │ │ │ - 39extern "C"
│ │ │ │ │ - 40{
│ │ │ │ │ - 41#include
│ │ │ │ │ - 42}
│ │ │ │ │ - 43namespace SILLY
│ │ │ │ │ - 44{
│ │ │ │ │ - 45
│ │ │ │ │ -56class JPGImageContext : public ImageContext
│ │ │ │ │ - 57{
│ │ │ │ │ - 58public:
│ │ │ │ │ - 59 JPGImageContext();
│ │ │ │ │ - 60 ~JPGImageContext();
│ │ │ │ │ - 61
│ │ │ │ │ - 62 void setImageSize();
│ │ │ │ │ - 63
│ │ │ │ │ - 64
│ │ │ │ │ - 65 jpeg_source_mgr src_mgr;
│ │ │ │ │ - 66 jpeg_decompress_struct cinfo;
│ │ │ │ │ - 67
│ │ │ │ │ - 68 jpeg_error_mgr d_error_mgr;
│ │ │ │ │ - 69 jmp_buf setjmp_buffer;
│ │ │ │ │ - 70 DataSource* d_source;
│ │ │ │ │ - 71};
│ │ │ │ │ - 72
│ │ │ │ │ - 73
│ │ │ │ │ - 74} // End of section namespace SILLY
│ │ │ │ │ - 75
│ │ │ │ │ - 76// Inclue inline function when needed
│ │ │ │ │ - 77#ifdef SILLY_OPT_INLINE
│ │ │ │ │ - 78#include "SILLYJPGImageContext.icpp"
│ │ │ │ │ - 79#endif
│ │ │ │ │ - 80
│ │ │ │ │ - 81#endif // end of guard _SILLYJPGImageContext_h_
│ │ │ │ │ -SILLY
│ │ │ │ │ -Simple Image Loading LibrarY namespace.
│ │ │ │ │ -Definition: SILLYJPGImageContext.cpp:46
│ │ │ │ │ -SILLY::JPGImageContext
│ │ │ │ │ -Image Context for JPG image loader.
│ │ │ │ │ -Definition: SILLYJPGImageContext.h:57
│ │ │ │ │ -SILLY::DataSource
│ │ │ │ │ -This is an abstract class used to provide data to the loader.
│ │ │ │ │ -Definition: SILLYDataSource.h:47
│ │ │ │ │ -SILLY::ImageContext
│ │ │ │ │ -Store the data needed by an ImageLoader object during the parsing of an image.
│ │ │ │ │ -Definition: SILLYImageContext.h:44
│ │ │ │ │ + 30
│ │ │ │ │ + 31// Start of section namespace SILLY
│ │ │ │ │ + 32namespace SILLY
│ │ │ │ │ + 33{
│ │ │ │ │ + 34
│ │ │ │ │ + 35} // End of section namespace SILLY
│ │ │ │ │ + 36
│ │ │ │ │
│ │ │ │ │ ===============================================================================
│ │ │ │ │ Generated by [doxygen] 1.9.4
│ │ │ ├── ./usr/share/doc/libsilly-doc/html/a00086_source.html
│ │ │ │ @@ -1,15 +1,15 @@
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │ -Simple Image Loading LibrarY: /build/reproducible-path/silly-0.1.0/include/loaders/SILLYJPGImageLoader.h Source File
│ │ │ │ +Simple Image Loading LibrarY: /build/reproducible-path/silly-0.1.0/include/loaders/SILLYTGAImageLoader.h Source File
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │ @@ -39,23 +39,23 @@
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │ -
│ │ │ │ +
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │ -
│ │ │ │ +
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │ @@ -71,50 +71,52 @@
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │ -
30#ifndef _SILLYJPGImageLoader_h_
│ │ │ │ -
31#define _SILLYJPGImageLoader_h_
│ │ │ │ -
│ │ │ │ +
30#ifndef _SILLYTGAImageLoader_h_
│ │ │ │ +
31#define _SILLYTGAImageLoader_h_
│ │ │ │ +
│ │ │ │
33#include "SILLYImageLoader.h"
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
56#ifdef SILLY_OPT_INLINE
│ │ │ │ -
57#include "SILLYJPGImageLoader.icpp"
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
Simple Image Loading LibrarY namespace.
│ │ │ │ -
PixelFormat
List all pixel format supported.
│ │ │ │ -
PixelOrigin
List all pixel origin supported.
│ │ │ │ -
Loader class for JPG Image.
│ │ │ │ -
bool loadImageData(PixelOrigin origin, DataSource *data, ImageContext *context)
Parse the pixels data of the image and fill the header struct.
│ │ │ │ -
ImageContext * loadHeader(PixelFormat &header, DataSource *data)
Parse the header of the image and fill the header struct.
│ │ │ │ -
This is an abstract class used to provide data to the loader.
│ │ │ │ -
Store the data needed by an ImageLoader object during the parsing of an image.
│ │ │ │ -
This is an abstract class that define the interface of all image loader.
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
59#ifdef SILLY_OPT_INLINE
│ │ │ │ +
60#include "SILLYTGAImageLoader.icpp"
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
Simple Image Loading LibrarY namespace.
│ │ │ │ +
PixelFormat
List all pixel format supported.
│ │ │ │ +
PixelOrigin
List all pixel origin supported.
│ │ │ │ +
│ │ │ │ +
ImageContext * loadHeader(PixelFormat &formatSource, DataSource *data)
Parse the header of the image and fill the header struct.
│ │ │ │ +
bool loadImageData(PixelOrigin origin, DataSource *data, ImageContext *context)
Parse the pixels data of the image and fill the header struct.
│ │ │ │ +
This is an abstract class used to provide data to the loader.
│ │ │ │ +
Store the data needed by an ImageLoader object during the parsing of an image.
│ │ │ │ +
This is an abstract class that define the interface of all image loader.
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │ ├── html2text {}
│ │ │ │ │ @@ -5,21 +5,21 @@
│ │ │ │ │ Simple Image Loading LibrarY 0.1.0
│ │ │ │ │
│ │ │ │ │ * build
│ │ │ │ │ * reproducible-path
│ │ │ │ │ * silly-0.1.0
│ │ │ │ │ * include
│ │ │ │ │ * loaders
│ │ │ │ │ -SILLYJPGImageLoader.h
│ │ │ │ │ +SILLYTGAImageLoader.h
│ │ │ │ │ 1/***********************************************************************
│ │ │ │ │ - 2 filename: SILLYJPGImageLoader.h
│ │ │ │ │ + 2 filename: SILLYTGAImageLoader.h
│ │ │ │ │ 3 created: 11 Jun 2006
│ │ │ │ │ 4 author: Olivier Delannoy
│ │ │ │ │ 5
│ │ │ │ │ - 6 purpose: Declaration of the JPGImageLoader class
│ │ │ │ │ + 6 purpose: Declaration of the TGAImageLoader class
│ │ │ │ │ 7*************************************************************************/
│ │ │ │ │ 8/***************************************************************************
│ │ │ │ │ 9 * Copyright (C) 2004 - 2006 Paul D Turner & The CEGUI Development Team
│ │ │ │ │ 10 *
│ │ │ │ │ 11 * Permission is hereby granted, free of charge, to any person obtaining
│ │ │ │ │ 12 * a copy of this software and associated documentation files (the
│ │ │ │ │ 13 * "Software"), to deal in the Software without restriction, including
│ │ │ │ │ @@ -36,64 +36,65 @@
│ │ │ │ │ 24 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
│ │ │ │ │ 25 * IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR
│ │ │ │ │ 26 * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
│ │ │ │ │ 27 * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
│ │ │ │ │ 28 * OTHER DEALINGS IN THE SOFTWARE.
│ │ │ │ │ 29
│ │ │ │ │ ***************************************************************************/
│ │ │ │ │ - 30#ifndef _SILLYJPGImageLoader_h_
│ │ │ │ │ - 31#define _SILLYJPGImageLoader_h_
│ │ │ │ │ + 30#ifndef _SILLYTGAImageLoader_h_
│ │ │ │ │ + 31#define _SILLYTGAImageLoader_h_
│ │ │ │ │ 32#include "SILLYBase.h"
│ │ │ │ │ 33#include "SILLYImageLoader.h"
│ │ │ │ │ 34// Start of section namespace SILLY
│ │ │ │ │ 35namespace SILLY
│ │ │ │ │ 36{
│ │ │ │ │ - 37
│ │ │ │ │ -42class JPGImageLoader : public ImageLoader
│ │ │ │ │ - 43{
│ │ │ │ │ - 44public:
│ │ │ │ │ - 45 JPGImageLoader();
│ │ │ │ │ - 46 ~JPGImageLoader();
│ │ │ │ │ - 47 ImageContext* loadHeader(PixelFormat& header, DataSource* data);
│ │ │ │ │ - 48 bool loadImageData(PixelOrigin origin, DataSource* data, ImageContext*
│ │ │ │ │ -context);
│ │ │ │ │ - 49private:
│ │ │ │ │ - 50};
│ │ │ │ │ - 51
│ │ │ │ │ - 52
│ │ │ │ │ - 53} // End of section namespace SILLY
│ │ │ │ │ - 54
│ │ │ │ │ - 55// Inclue inline function when needed
│ │ │ │ │ - 56#ifdef SILLY_OPT_INLINE
│ │ │ │ │ - 57#include "SILLYJPGImageLoader.icpp"
│ │ │ │ │ - 58#endif
│ │ │ │ │ - 59
│ │ │ │ │ - 60#endif // end of guard _SILLYJPGImageLoader_h_
│ │ │ │ │ + 37class TGAImageContext;
│ │ │ │ │ +43class TGAImageLoader : public ImageLoader
│ │ │ │ │ + 44{
│ │ │ │ │ + 45public:
│ │ │ │ │ + 46 TGAImageLoader();
│ │ │ │ │ + 47 ~TGAImageLoader();
│ │ │ │ │ + 48 ImageContext* loadHeader(PixelFormat& formatSource, DataSource* data);
│ │ │ │ │ + 49 bool loadImageData(PixelOrigin origin,
│ │ │ │ │ + 50 DataSource* data,
│ │ │ │ │ + 51 ImageContext* context);
│ │ │ │ │ + 52private:
│ │ │ │ │ + 53
│ │ │ │ │ + 54};
│ │ │ │ │ + 55
│ │ │ │ │ + 56} // End of section namespace SILLY
│ │ │ │ │ + 57
│ │ │ │ │ + 58// Inclue inline function when needed
│ │ │ │ │ + 59#ifdef SILLY_OPT_INLINE
│ │ │ │ │ + 60#include "SILLYTGAImageLoader.icpp"
│ │ │ │ │ + 61#endif
│ │ │ │ │ + 62
│ │ │ │ │ + 63#endif // end of guard _SILLYTGAImageLoader_h_
│ │ │ │ │ SILLY
│ │ │ │ │ Simple Image Loading LibrarY namespace.
│ │ │ │ │ Definition: SILLYJPGImageContext.cpp:46
│ │ │ │ │ SILLY::PixelFormat
│ │ │ │ │ PixelFormat
│ │ │ │ │ List all pixel format supported.
│ │ │ │ │ Definition: SILLYBase.h:60
│ │ │ │ │ SILLY::PixelOrigin
│ │ │ │ │ PixelOrigin
│ │ │ │ │ List all pixel origin supported.
│ │ │ │ │ Definition: SILLYBase.h:71
│ │ │ │ │ -SILLY::JPGImageLoader
│ │ │ │ │ -Loader class for JPG Image.
│ │ │ │ │ -Definition: SILLYJPGImageLoader.h:43
│ │ │ │ │ -SILLY::JPGImageLoader::loadImageData
│ │ │ │ │ +SILLY::TGAImageLoader
│ │ │ │ │ +Loader for Targa image.
│ │ │ │ │ +Definition: SILLYTGAImageLoader.h:44
│ │ │ │ │ +SILLY::TGAImageLoader::loadHeader
│ │ │ │ │ +ImageContext * loadHeader(PixelFormat &formatSource, DataSource *data)
│ │ │ │ │ +Parse the header of the image and fill the header struct.
│ │ │ │ │ +Definition: SILLYTGAImageLoader.cpp:74
│ │ │ │ │ +SILLY::TGAImageLoader::loadImageData
│ │ │ │ │ bool loadImageData(PixelOrigin origin, DataSource *data, ImageContext *context)
│ │ │ │ │ Parse the pixels data of the image and fill the header struct.
│ │ │ │ │ -Definition: SILLYJPGImageLoader.cpp:90
│ │ │ │ │ -SILLY::JPGImageLoader::loadHeader
│ │ │ │ │ -ImageContext * loadHeader(PixelFormat &header, DataSource *data)
│ │ │ │ │ -Parse the header of the image and fill the header struct.
│ │ │ │ │ -Definition: SILLYJPGImageLoader.cpp:56
│ │ │ │ │ +Definition: SILLYTGAImageLoader.cpp:134
│ │ │ │ │ SILLY::DataSource
│ │ │ │ │ This is an abstract class used to provide data to the loader.
│ │ │ │ │ Definition: SILLYDataSource.h:47
│ │ │ │ │ SILLY::ImageContext
│ │ │ │ │ Store the data needed by an ImageLoader object during the parsing of an image.
│ │ │ │ │ Definition: SILLYImageContext.h:44
│ │ │ │ │ SILLY::ImageLoader
│ │ │ ├── ./usr/share/doc/libsilly-doc/html/a00089_source.html
│ │ │ │ @@ -1,15 +1,15 @@
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │ -Simple Image Loading LibrarY: /build/reproducible-path/silly-0.1.0/include/loaders/SILLYJPGImageLoader.icpp Source File
│ │ │ │ +Simple Image Loading LibrarY: /build/reproducible-path/silly-0.1.0/include/loaders/SILLYPNGImageContext.h Source File
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │ @@ -39,53 +39,98 @@
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │ -
1/***********************************************************************
│ │ │ │ -
2 filename: SILLYJPGImageLoader.icpp
│ │ │ │ -
│ │ │ │ -
4 author: Olivier Delannoy
│ │ │ │ -
│ │ │ │ -
6 purpose: Inline definition of JPGImageLoader class
│ │ │ │ -
7*************************************************************************/
│ │ │ │ -
8/***************************************************************************
│ │ │ │ -
9 * Copyright (C) 2004 - 2006 Paul D Turner & The CEGUI Development Team
│ │ │ │ -
│ │ │ │ -
11 * Permission is hereby granted, free of charge, to any person obtaining
│ │ │ │ -
12 * a copy of this software and associated documentation files (the
│ │ │ │ -
13 * "Software"), to deal in the Software without restriction, including
│ │ │ │ -
14 * without limitation the rights to use, copy, modify, merge, publish,
│ │ │ │ -
15 * distribute, sublicense, and/or sell copies of the Software, and to
│ │ │ │ -
16 * permit persons to whom the Software is furnished to do so, subject to
│ │ │ │ -
17 * the following conditions:
│ │ │ │ -
│ │ │ │ -
19 * The above copyright notice and this permission notice shall be
│ │ │ │ -
20 * included in all copies or substantial portions of the Software.
│ │ │ │ -
│ │ │ │ -
22 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
│ │ │ │ -
23 * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
│ │ │ │ -
24 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
│ │ │ │ -
25 * IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR
│ │ │ │ -
26 * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
│ │ │ │ -
27 * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
│ │ │ │ -
28 * OTHER DEALINGS IN THE SOFTWARE.
│ │ │ │ -
29 ***************************************************************************/
│ │ │ │ -
│ │ │ │ -
31// Start of section namespace SILLY
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
35} // End of section namespace SILLY
│ │ │ │ -
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
30#ifndef _SILLYPNGImageContext_h_
│ │ │ │ +
31#define _SILLYPNGImageContext_h_
│ │ │ │ +
│ │ │ │ +
33#include "SILLYImageContext.h"
│ │ │ │ +
34#include "SILLYDataSource.h"
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
51 int read(png_bytep data, png_size_t length);
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
62 png_structp d_png_ptr;
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
67 size_t d_num_channels;
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
77#ifdef SILLY_OPT_INLINE
│ │ │ │ +
78#include "SILLYPNGImageContext.icpp"
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
Simple Image Loading LibrarY namespace.
│ │ │ │ +
Image Context for PNG Image Loader.
│ │ │ │ +
│ │ │ │ +
This is an abstract class used to provide data to the loader.
│ │ │ │ +
Store the data needed by an ImageLoader object during the parsing of an image.
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │ ├── html2text {}
│ │ │ │ │ @@ -5,21 +5,21 @@
│ │ │ │ │ Simple Image Loading LibrarY 0.1.0
│ │ │ │ │
│ │ │ │ │ * build
│ │ │ │ │ * reproducible-path
│ │ │ │ │ * silly-0.1.0
│ │ │ │ │ * include
│ │ │ │ │ * loaders
│ │ │ │ │ -SILLYJPGImageLoader.icpp
│ │ │ │ │ +SILLYPNGImageContext.h
│ │ │ │ │ 1/***********************************************************************
│ │ │ │ │ - 2 filename: SILLYJPGImageLoader.icpp
│ │ │ │ │ + 2 filename: SILLYPNGImageContext.h
│ │ │ │ │ 3 created: 11 Jun 2006
│ │ │ │ │ 4 author: Olivier Delannoy
│ │ │ │ │ 5
│ │ │ │ │ - 6 purpose: Inline definition of JPGImageLoader class
│ │ │ │ │ + 6 purpose: Declaration of the PNGImageContext class
│ │ │ │ │ 7*************************************************************************/
│ │ │ │ │ 8/***************************************************************************
│ │ │ │ │ 9 * Copyright (C) 2004 - 2006 Paul D Turner & The CEGUI Development Team
│ │ │ │ │ 10 *
│ │ │ │ │ 11 * Permission is hereby granted, free of charge, to any person obtaining
│ │ │ │ │ 12 * a copy of this software and associated documentation files (the
│ │ │ │ │ 13 * "Software"), to deal in the Software without restriction, including
│ │ │ │ │ @@ -36,17 +36,72 @@
│ │ │ │ │ 24 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
│ │ │ │ │ 25 * IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR
│ │ │ │ │ 26 * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
│ │ │ │ │ 27 * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
│ │ │ │ │ 28 * OTHER DEALINGS IN THE SOFTWARE.
│ │ │ │ │ 29
│ │ │ │ │ ***************************************************************************/
│ │ │ │ │ - 30
│ │ │ │ │ - 31// Start of section namespace SILLY
│ │ │ │ │ - 32namespace SILLY
│ │ │ │ │ - 33{
│ │ │ │ │ - 34
│ │ │ │ │ - 35} // End of section namespace SILLY
│ │ │ │ │ - 36
│ │ │ │ │ + 30#ifndef _SILLYPNGImageContext_h_
│ │ │ │ │ + 31#define _SILLYPNGImageContext_h_
│ │ │ │ │ + 32#include "SILLYBase.h"
│ │ │ │ │ + 33#include "SILLYImageContext.h"
│ │ │ │ │ + 34#include "SILLYDataSource.h"
│ │ │ │ │ + 35#include
│ │ │ │ │ + 36// Start of section namespace SILLY
│ │ │ │ │ + 37namespace SILLY
│ │ │ │ │ + 38{
│ │ │ │ │ + 39
│ │ │ │ │ +45class SILLY_EXPORT PNGImageContext : public ImageContext
│ │ │ │ │ + 46{
│ │ │ │ │ + 47public:
│ │ │ │ │ + 48 PNGImageContext(DataSource* data);
│ │ │ │ │ + 49 ~PNGImageContext();
│ │ │ │ │ + 50
│ │ │ │ │ + 51 int read(png_bytep data, png_size_t length);
│ │ │ │ │ + 52
│ │ │ │ │ + 53
│ │ │ │ │ + 54
│ │ │ │ │ + 55private:
│ │ │ │ │ + 56 void setImageSize();
│ │ │ │ │ + 57
│ │ │ │ │ + 58 size_t d_offset;
│ │ │ │ │ + 59
│ │ │ │ │ + 60 DataSource* d_data;
│ │ │ │ │ + 61
│ │ │ │ │ + 62 png_structp d_png_ptr;
│ │ │ │ │ + 63
│ │ │ │ │ + 64 png_infop d_info_ptr;
│ │ │ │ │ + 65
│ │ │ │ │ + 66 size_t d_bit_depth;
│ │ │ │ │ + 67 size_t d_num_channels;
│ │ │ │ │ + 68
│ │ │ │ │ + 69
│ │ │ │ │ + 70 friend class PNGImageLoader;
│ │ │ │ │ + 71};
│ │ │ │ │ + 72
│ │ │ │ │ + 73
│ │ │ │ │ + 74} // End of section namespace SILLY
│ │ │ │ │ + 75
│ │ │ │ │ + 76// Inclue inline function when needed
│ │ │ │ │ + 77#ifdef SILLY_OPT_INLINE
│ │ │ │ │ + 78#include "SILLYPNGImageContext.icpp"
│ │ │ │ │ + 79#endif
│ │ │ │ │ + 80
│ │ │ │ │ + 81#endif // end of guard _SILLYPNGImageContext_h_
│ │ │ │ │ +SILLY
│ │ │ │ │ +Simple Image Loading LibrarY namespace.
│ │ │ │ │ +Definition: SILLYJPGImageContext.cpp:46
│ │ │ │ │ +SILLY::PNGImageContext
│ │ │ │ │ +Image Context for PNG Image Loader.
│ │ │ │ │ +Definition: SILLYPNGImageContext.h:46
│ │ │ │ │ +SILLY::PNGImageLoader
│ │ │ │ │ +Loader for PNG Image.
│ │ │ │ │ +Definition: SILLYPNGImageLoader.h:43
│ │ │ │ │ +SILLY::DataSource
│ │ │ │ │ +This is an abstract class used to provide data to the loader.
│ │ │ │ │ +Definition: SILLYDataSource.h:47
│ │ │ │ │ +SILLY::ImageContext
│ │ │ │ │ +Store the data needed by an ImageLoader object during the parsing of an image.
│ │ │ │ │ +Definition: SILLYImageContext.h:44
│ │ │ │ │
│ │ │ │ │ ===============================================================================
│ │ │ │ │ Generated by [doxygen] 1.9.4
│ │ │ ├── ./usr/share/doc/libsilly-doc/html/a00092_source.html
│ │ │ │ @@ -1,15 +1,15 @@
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │ -Simple Image Loading LibrarY: /build/reproducible-path/silly-0.1.0/include/loaders/SILLYTGAImageContext.h Source File
│ │ │ │ +Simple Image Loading LibrarY: /build/reproducible-path/silly-0.1.0/include/SILLYImageLoader.h Source File
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │ @@ -35,27 +35,27 @@
│ │ │ │ initMenu('',false,false,'search.php','Search');
│ │ │ │ });
│ │ │ │ /* @license-end */
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │ -
│ │ │ │ -
│ │ │ │ +
│ │ │ │ +
│ │ │ │
│ │ │ │
│ │ │ │ -
│ │ │ │ +
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │ @@ -71,50 +71,63 @@
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │ -
30#ifndef _SILLYTGAImageContext_h_
│ │ │ │ -
31#define _SILLYTGAImageContext_h_
│ │ │ │ -
│ │ │ │ -
33#include "SILLYImageContext.h"
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ +
30#ifndef _SILLYImageLoader_h_
│ │ │ │ +
31#define _SILLYImageLoader_h_
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │
│ │ │ │ -
│ │ │ │ -
62#ifdef SILLY_OPT_INLINE
│ │ │ │ -
63#include "SILLYTGAImageContext.icpp"
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
Simple Image Loading LibrarY namespace.
│ │ │ │ -
Image Context for Targa image.
│ │ │ │ -
│ │ │ │ -
Store the data needed by an ImageLoader object during the parsing of an image.
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
109#ifdef SILLY_OPT_INLINE
│ │ │ │ +
110#include "SILLYImageLoader.icpp"
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
Simple Image Loading LibrarY namespace.
│ │ │ │ +
PixelFormat
List all pixel format supported.
│ │ │ │ +
PixelOrigin
List all pixel origin supported.
│ │ │ │ +
This is an abstract class used to provide data to the loader.
│ │ │ │ +
Store the data needed by an ImageLoader object during the parsing of an image.
│ │ │ │ +
This is an abstract class that define the interface of all image loader.
│ │ │ │ +
ImageLoader(const char *name)
Constructor.
│ │ │ │ +
virtual ImageContext * loadHeader(PixelFormat &formatSource, DataSource *data)=0
Parse the header of the image and fill the header struct.
│ │ │ │ +
virtual bool loadImageData(PixelOrigin origin, DataSource *data, ImageContext *context)=0
Parse the pixels data of the image and fill the header struct.
│ │ │ │ +
virtual ~ImageLoader()
Destructor.
│ │ │ │ +
const char * getIdentifierString() const
Return the name of the loader.
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │ ├── html2text {}
│ │ │ │ │ @@ -4,22 +4,21 @@
│ │ │ │ │
│ │ │ │ │ Simple Image Loading LibrarY 0.1.0
│ │ │ │ │
│ │ │ │ │ * build
│ │ │ │ │ * reproducible-path
│ │ │ │ │ * silly-0.1.0
│ │ │ │ │ * include
│ │ │ │ │ - * loaders
│ │ │ │ │ -SILLYTGAImageContext.h
│ │ │ │ │ +SILLYImageLoader.h
│ │ │ │ │ 1/***********************************************************************
│ │ │ │ │ - 2 filename: SILLYTGAImageContext.h
│ │ │ │ │ - 3 created: 11 Jun 2006
│ │ │ │ │ + 2 filename: SILLYImageLoader.h
│ │ │ │ │ + 3 created: 10 Jun 2006
│ │ │ │ │ 4 author: Olivier Delannoy
│ │ │ │ │ 5
│ │ │ │ │ - 6 purpose: Declaration of the TGAImageContext class
│ │ │ │ │ + 6 purpose: Abstract class for all image loader
│ │ │ │ │ 7*************************************************************************/
│ │ │ │ │ 8/***************************************************************************
│ │ │ │ │ 9 * Copyright (C) 2004 - 2006 Paul D Turner & The CEGUI Development Team
│ │ │ │ │ 10 *
│ │ │ │ │ 11 * Permission is hereby granted, free of charge, to any person obtaining
│ │ │ │ │ 12 * a copy of this software and associated documentation files (the
│ │ │ │ │ 13 * "Software"), to deal in the Software without restriction, including
│ │ │ │ │ @@ -36,54 +35,87 @@
│ │ │ │ │ 24 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
│ │ │ │ │ 25 * IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR
│ │ │ │ │ 26 * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
│ │ │ │ │ 27 * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
│ │ │ │ │ 28 * OTHER DEALINGS IN THE SOFTWARE.
│ │ │ │ │ 29
│ │ │ │ │ ***************************************************************************/
│ │ │ │ │ - 30#ifndef _SILLYTGAImageContext_h_
│ │ │ │ │ - 31#define _SILLYTGAImageContext_h_
│ │ │ │ │ + 30#ifndef _SILLYImageLoader_h_
│ │ │ │ │ + 31#define _SILLYImageLoader_h_
│ │ │ │ │ 32#include "SILLYBase.h"
│ │ │ │ │ - 33#include "SILLYImageContext.h"
│ │ │ │ │ - 34// Start of section namespace SILLY
│ │ │ │ │ - 35namespace SILLY
│ │ │ │ │ - 36{
│ │ │ │ │ -42class TGAImageContext : public ImageContext
│ │ │ │ │ - 43{
│ │ │ │ │ - 44public:
│ │ │ │ │ - 45 TGAImageContext(size_t width, size_t height);
│ │ │ │ │ - 46 ~TGAImageContext();
│ │ │ │ │ - 47
│ │ │ │ │ - 48private:
│ │ │ │ │ - 49 byte d_idLength;
│ │ │ │ │ - 50 byte d_imageType;
│ │ │ │ │ - 51 byte d_depth;
│ │ │ │ │ - 52 byte d_description;
│ │ │ │ │ - 53
│ │ │ │ │ - 54 friend class TGAImageLoader;
│ │ │ │ │ - 55
│ │ │ │ │ - 56};
│ │ │ │ │ - 57
│ │ │ │ │ - 58
│ │ │ │ │ - 59} // End of section namespace SILLY
│ │ │ │ │ + 33// Start of section namespace SILLY
│ │ │ │ │ + 34namespace SILLY
│ │ │ │ │ + 35{
│ │ │ │ │ + 36class DataSource; // Forward declaration
│ │ │ │ │ + 37class ImageContext; // Forward declaration
│ │ │ │ │ + 38
│ │ │ │ │ +46class SILLY_EXPORT ImageLoader
│ │ │ │ │ + 47{
│ │ │ │ │ + 48protected:
│ │ │ │ │ +52 ImageLoader(const char* name);
│ │ │ │ │ + 53public:
│ │ │ │ │ + 54
│ │ │ │ │ +59 virtual ~ImageLoader();
│ │ │ │ │ 60
│ │ │ │ │ - 61// Inclue inline function when needed
│ │ │ │ │ - 62#ifdef SILLY_OPT_INLINE
│ │ │ │ │ - 63#include "SILLYTGAImageContext.icpp"
│ │ │ │ │ - 64#endif
│ │ │ │ │ - 65
│ │ │ │ │ - 66#endif // end of guard _SILLYTGAImageContext_h_
│ │ │ │ │ +71 virtual ImageContext* loadHeader(PixelFormat& formatSource, DataSource*
│ │ │ │ │ +data) = 0;
│ │ │ │ │ + 72
│ │ │ │ │ + 73
│ │ │ │ │ +86 virtual bool loadImageData(PixelOrigin origin, DataSource* data,
│ │ │ │ │ +ImageContext* context) = 0;
│ │ │ │ │ + 87
│ │ │ │ │ + 94 void destroyContext(ImageContext* context);
│ │ │ │ │ + 95
│ │ │ │ │ +100 const char* getIdentifierString() const;
│ │ │ │ │ + 101private:
│ │ │ │ │ + 102 const char* d_name;
│ │ │ │ │ + 103
│ │ │ │ │ + 104};
│ │ │ │ │ + 105
│ │ │ │ │ + 106} // End of section namespace SILLY
│ │ │ │ │ + 107
│ │ │ │ │ + 108// Inclue inline function when needed
│ │ │ │ │ + 109#ifdef SILLY_OPT_INLINE
│ │ │ │ │ + 110#include "SILLYImageLoader.icpp"
│ │ │ │ │ + 111#endif
│ │ │ │ │ + 112
│ │ │ │ │ + 113#endif // end of guard _SILLYImageLoader_h_
│ │ │ │ │ SILLY
│ │ │ │ │ Simple Image Loading LibrarY namespace.
│ │ │ │ │ Definition: SILLYJPGImageContext.cpp:46
│ │ │ │ │ -SILLY::TGAImageContext
│ │ │ │ │ -Image Context for Targa image.
│ │ │ │ │ -Definition: SILLYTGAImageContext.h:43
│ │ │ │ │ -SILLY::TGAImageLoader
│ │ │ │ │ -Loader for Targa image.
│ │ │ │ │ -Definition: SILLYTGAImageLoader.h:44
│ │ │ │ │ +SILLY::PixelFormat
│ │ │ │ │ +PixelFormat
│ │ │ │ │ +List all pixel format supported.
│ │ │ │ │ +Definition: SILLYBase.h:60
│ │ │ │ │ +SILLY::PixelOrigin
│ │ │ │ │ +PixelOrigin
│ │ │ │ │ +List all pixel origin supported.
│ │ │ │ │ +Definition: SILLYBase.h:71
│ │ │ │ │ +SILLY::DataSource
│ │ │ │ │ +This is an abstract class used to provide data to the loader.
│ │ │ │ │ +Definition: SILLYDataSource.h:47
│ │ │ │ │ SILLY::ImageContext
│ │ │ │ │ Store the data needed by an ImageLoader object during the parsing of an image.
│ │ │ │ │ Definition: SILLYImageContext.h:44
│ │ │ │ │ +SILLY::ImageLoader
│ │ │ │ │ +This is an abstract class that define the interface of all image loader.
│ │ │ │ │ +Definition: SILLYImageLoader.h:47
│ │ │ │ │ +SILLY::ImageLoader::ImageLoader
│ │ │ │ │ +ImageLoader(const char *name)
│ │ │ │ │ +Constructor.
│ │ │ │ │ +SILLY::ImageLoader::loadHeader
│ │ │ │ │ +virtual ImageContext * loadHeader(PixelFormat &formatSource, DataSource
│ │ │ │ │ +*data)=0
│ │ │ │ │ +Parse the header of the image and fill the header struct.
│ │ │ │ │ +SILLY::ImageLoader::loadImageData
│ │ │ │ │ +virtual bool loadImageData(PixelOrigin origin, DataSource *data, ImageContext
│ │ │ │ │ +*context)=0
│ │ │ │ │ +Parse the pixels data of the image and fill the header struct.
│ │ │ │ │ +SILLY::ImageLoader::~ImageLoader
│ │ │ │ │ +virtual ~ImageLoader()
│ │ │ │ │ +Destructor.
│ │ │ │ │ +SILLY::ImageLoader::getIdentifierString
│ │ │ │ │ +const char * getIdentifierString() const
│ │ │ │ │ +Return the name of the loader.
│ │ │ │ │
│ │ │ │ │ ===============================================================================
│ │ │ │ │ Generated by [doxygen] 1.9.4
│ │ │ ├── ./usr/share/doc/libsilly-doc/html/a00095_source.html
│ │ │ │ @@ -1,15 +1,15 @@
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │ -Simple Image Loading LibrarY: /build/reproducible-path/silly-0.1.0/include/loaders/SILLYPNGImageContext.h Source File
│ │ │ │ +Simple Image Loading LibrarY: /build/reproducible-path/silly-0.1.0/include/SILLY.h Source File
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │ @@ -35,27 +35,27 @@
│ │ │ │ initMenu('',false,false,'search.php','Search');
│ │ │ │ });
│ │ │ │ /* @license-end */
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │ -
│ │ │ │ -
│ │ │ │ +
│ │ │ │ +
│ │ │ │
│ │ │ │
│ │ │ │ -
│ │ │ │ +
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │ @@ -71,66 +71,35 @@
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │ -
30#ifndef _SILLYPNGImageContext_h_
│ │ │ │ -
31#define _SILLYPNGImageContext_h_
│ │ │ │ -
│ │ │ │ -
33#include "SILLYImageContext.h"
│ │ │ │ -
34#include "SILLYDataSource.h"
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
51 int read(png_bytep data, png_size_t length);
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
62 png_structp d_png_ptr;
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
67 size_t d_num_channels;
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
77#ifdef SILLY_OPT_INLINE
│ │ │ │ -
78#include "SILLYPNGImageContext.icpp"
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
Simple Image Loading LibrarY namespace.
│ │ │ │ -
Image Context for PNG Image Loader.
│ │ │ │ -
│ │ │ │ -
This is an abstract class used to provide data to the loader.
│ │ │ │ -
Store the data needed by an ImageLoader object during the parsing of an image.
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
117#include "SILLYBase.h"
│ │ │ │ +
118#include "SILLYDataSource.h"
│ │ │ │ +
119#include "SILLYFileDataSource.h"
│ │ │ │ +
120#include "SILLYMemoryDataSource.h"
│ │ │ │ +
121#include "SILLYImageLoader.h"
│ │ │ │ +
122#include "SILLYImageContext.h"
│ │ │ │ +
123#include "SILLYImageLoaderManager.h"
│ │ │ │ +
124#include "SILLYImage.h"
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
Simple Image Loading LibrarY namespace.
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │ ├── html2text {}
│ │ │ │ │ @@ -4,22 +4,21 @@
│ │ │ │ │
│ │ │ │ │ Simple Image Loading LibrarY 0.1.0
│ │ │ │ │
│ │ │ │ │ * build
│ │ │ │ │ * reproducible-path
│ │ │ │ │ * silly-0.1.0
│ │ │ │ │ * include
│ │ │ │ │ - * loaders
│ │ │ │ │ -SILLYPNGImageContext.h
│ │ │ │ │ +SILLY.h
│ │ │ │ │ 1/***********************************************************************
│ │ │ │ │ - 2 filename: SILLYPNGImageContext.h
│ │ │ │ │ - 3 created: 11 Jun 2006
│ │ │ │ │ + 2 filename: SILLY.h
│ │ │ │ │ + 3 created: 10 Jun 2006
│ │ │ │ │ 4 author: Olivier Delannoy
│ │ │ │ │ 5
│ │ │ │ │ - 6 purpose: Declaration of the PNGImageContext class
│ │ │ │ │ + 6 purpose: Master include for the SILLY library
│ │ │ │ │ 7*************************************************************************/
│ │ │ │ │ 8/***************************************************************************
│ │ │ │ │ 9 * Copyright (C) 2004 - 2006 Paul D Turner & The CEGUI Development Team
│ │ │ │ │ 10 *
│ │ │ │ │ 11 * Permission is hereby granted, free of charge, to any person obtaining
│ │ │ │ │ 12 * a copy of this software and associated documentation files (the
│ │ │ │ │ 13 * "Software"), to deal in the Software without restriction, including
│ │ │ │ │ @@ -36,72 +35,33 @@
│ │ │ │ │ 24 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
│ │ │ │ │ 25 * IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR
│ │ │ │ │ 26 * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
│ │ │ │ │ 27 * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
│ │ │ │ │ 28 * OTHER DEALINGS IN THE SOFTWARE.
│ │ │ │ │ 29
│ │ │ │ │ ***************************************************************************/
│ │ │ │ │ - 30#ifndef _SILLYPNGImageContext_h_
│ │ │ │ │ - 31#define _SILLYPNGImageContext_h_
│ │ │ │ │ - 32#include "SILLYBase.h"
│ │ │ │ │ - 33#include "SILLYImageContext.h"
│ │ │ │ │ - 34#include "SILLYDataSource.h"
│ │ │ │ │ - 35#include
│ │ │ │ │ - 36// Start of section namespace SILLY
│ │ │ │ │ - 37namespace SILLY
│ │ │ │ │ - 38{
│ │ │ │ │ - 39
│ │ │ │ │ -45class SILLY_EXPORT PNGImageContext : public ImageContext
│ │ │ │ │ - 46{
│ │ │ │ │ - 47public:
│ │ │ │ │ - 48 PNGImageContext(DataSource* data);
│ │ │ │ │ - 49 ~PNGImageContext();
│ │ │ │ │ - 50
│ │ │ │ │ - 51 int read(png_bytep data, png_size_t length);
│ │ │ │ │ - 52
│ │ │ │ │ - 53
│ │ │ │ │ - 54
│ │ │ │ │ - 55private:
│ │ │ │ │ - 56 void setImageSize();
│ │ │ │ │ - 57
│ │ │ │ │ - 58 size_t d_offset;
│ │ │ │ │ - 59
│ │ │ │ │ - 60 DataSource* d_data;
│ │ │ │ │ - 61
│ │ │ │ │ - 62 png_structp d_png_ptr;
│ │ │ │ │ - 63
│ │ │ │ │ - 64 png_infop d_info_ptr;
│ │ │ │ │ - 65
│ │ │ │ │ - 66 size_t d_bit_depth;
│ │ │ │ │ - 67 size_t d_num_channels;
│ │ │ │ │ - 68
│ │ │ │ │ - 69
│ │ │ │ │ - 70 friend class PNGImageLoader;
│ │ │ │ │ - 71};
│ │ │ │ │ - 72
│ │ │ │ │ - 73
│ │ │ │ │ - 74} // End of section namespace SILLY
│ │ │ │ │ - 75
│ │ │ │ │ - 76// Inclue inline function when needed
│ │ │ │ │ - 77#ifdef SILLY_OPT_INLINE
│ │ │ │ │ - 78#include "SILLYPNGImageContext.icpp"
│ │ │ │ │ - 79#endif
│ │ │ │ │ - 80
│ │ │ │ │ - 81#endif // end of guard _SILLYPNGImageContext_h_
│ │ │ │ │ + 30#ifndef _SILLY_h_
│ │ │ │ │ + 31#define _SILLY_h_
│ │ │ │ │ + 109namespace SILLY
│ │ │ │ │ + 110{
│ │ │ │ │ + 111
│ │ │ │ │ + 112}
│ │ │ │ │ + 113
│ │ │ │ │ + 114
│ │ │ │ │ + 115
│ │ │ │ │ + 116
│ │ │ │ │ + 117#include "SILLYBase.h"
│ │ │ │ │ + 118#include "SILLYDataSource.h"
│ │ │ │ │ + 119#include "SILLYFileDataSource.h"
│ │ │ │ │ + 120#include "SILLYMemoryDataSource.h"
│ │ │ │ │ + 121#include "SILLYImageLoader.h"
│ │ │ │ │ + 122#include "SILLYImageContext.h"
│ │ │ │ │ + 123#include "SILLYImageLoaderManager.h"
│ │ │ │ │ + 124#include "SILLYImage.h"
│ │ │ │ │ + 125
│ │ │ │ │ + 126#endif // end of guard _SILLY_h_
│ │ │ │ │ SILLY
│ │ │ │ │ Simple Image Loading LibrarY namespace.
│ │ │ │ │ Definition: SILLYJPGImageContext.cpp:46
│ │ │ │ │ -SILLY::PNGImageContext
│ │ │ │ │ -Image Context for PNG Image Loader.
│ │ │ │ │ -Definition: SILLYPNGImageContext.h:46
│ │ │ │ │ -SILLY::PNGImageLoader
│ │ │ │ │ -Loader for PNG Image.
│ │ │ │ │ -Definition: SILLYPNGImageLoader.h:43
│ │ │ │ │ -SILLY::DataSource
│ │ │ │ │ -This is an abstract class used to provide data to the loader.
│ │ │ │ │ -Definition: SILLYDataSource.h:47
│ │ │ │ │ -SILLY::ImageContext
│ │ │ │ │ -Store the data needed by an ImageLoader object during the parsing of an image.
│ │ │ │ │ -Definition: SILLYImageContext.h:44
│ │ │ │ │
│ │ │ │ │ ===============================================================================
│ │ │ │ │ Generated by [doxygen] 1.9.4
│ │ │ ├── ./usr/share/doc/libsilly-doc/html/a00098_source.html
│ │ │ │ @@ -1,15 +1,15 @@
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │ -Simple Image Loading LibrarY: /build/reproducible-path/silly-0.1.0/include/loaders/SILLYPNGImageLoader.h Source File
│ │ │ │ +Simple Image Loading LibrarY: /build/reproducible-path/silly-0.1.0/include/SILLYMemoryDataSource.h Source File
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │ @@ -35,27 +35,27 @@
│ │ │ │ initMenu('',false,false,'search.php','Search');
│ │ │ │ });
│ │ │ │ /* @license-end */
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │
│ │ │ │ -
│ │ │ │ +
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │ @@ -71,56 +71,50 @@
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │ -
30#ifndef _SILLYPNGImageLoader_h_
│ │ │ │ -
31#define _SILLYPNGImageLoader_h_
│ │ │ │ +
30#ifndef _SILLYMemoryDataSource_h_
│ │ │ │ +
31#define _SILLYMemoryDataSource_h_
│ │ │ │
│ │ │ │ -
33#include "SILLYImageLoader.h"
│ │ │ │ -
34#include "SILLYDataSource.h"
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
62#ifdef SILLY_OPT_INLINE
│ │ │ │ -
63#include "SILLYPNGImageLoader.icpp"
│ │ │ │ -
│ │ │ │ +
33#include "SILLYDataSource.h"
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │
│ │ │ │ -
│ │ │ │ -
Simple Image Loading LibrarY namespace.
│ │ │ │ -
PixelFormat
List all pixel format supported.
│ │ │ │ -
PixelOrigin
List all pixel origin supported.
│ │ │ │ -
│ │ │ │ -
ImageContext * loadHeader(PixelFormat &formatSource, DataSource *data)
Parse the header of the image and fill the header struct.
│ │ │ │ -
bool loadImageData(PixelOrigin origin, DataSource *data, ImageContext *context)
Parse the pixels data of the image and fill the header struct.
│ │ │ │ -
This is an abstract class used to provide data to the loader.
│ │ │ │ -
Store the data needed by an ImageLoader object during the parsing of an image.
│ │ │ │ -
This is an abstract class that define the interface of all image loader.
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
78#ifdef SILLY_OPT_INLINE
│ │ │ │ +
79#include "SILLYMemoryDataSource.icpp"
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
Simple Image Loading LibrarY namespace.
│ │ │ │ +
This is an abstract class used to provide data to the loader.
│ │ │ │ +
Load an image from a memory area.
│ │ │ │ +
const byte * getDataPtr() const
Get raw access to the image data.
│ │ │ │ +
size_t getSize() const
Return the size of the data.
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │ ├── html2text {}
│ │ │ │ │ @@ -4,22 +4,21 @@
│ │ │ │ │
│ │ │ │ │ Simple Image Loading LibrarY 0.1.0
│ │ │ │ │
│ │ │ │ │ * build
│ │ │ │ │ * reproducible-path
│ │ │ │ │ * silly-0.1.0
│ │ │ │ │ * include
│ │ │ │ │ - * loaders
│ │ │ │ │ -SILLYPNGImageLoader.h
│ │ │ │ │ +SILLYMemoryDataSource.h
│ │ │ │ │ 1/***********************************************************************
│ │ │ │ │ - 2 filename: SILLYPNGImageLoader.h
│ │ │ │ │ - 3 created: 11 Jun 2006
│ │ │ │ │ + 2 filename: SILLYMemoryDataSource.h
│ │ │ │ │ + 3 created: 10 Jun 2006
│ │ │ │ │ 4 author: Olivier Delannoy
│ │ │ │ │ 5
│ │ │ │ │ - 6 purpose: Declaration of the PNGImageLoader class
│ │ │ │ │ + 6 purpose: SILLYMemoryDataSource declaration for the SILLY library
│ │ │ │ │ 7*************************************************************************/
│ │ │ │ │ 8/***************************************************************************
│ │ │ │ │ 9 * Copyright (C) 2004 - 2006 Paul D Turner & The CEGUI Development Team
│ │ │ │ │ 10 *
│ │ │ │ │ 11 * Permission is hereby granted, free of charge, to any person obtaining
│ │ │ │ │ 12 * a copy of this software and associated documentation files (the
│ │ │ │ │ 13 * "Software"), to deal in the Software without restriction, including
│ │ │ │ │ @@ -36,74 +35,56 @@
│ │ │ │ │ 24 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
│ │ │ │ │ 25 * IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR
│ │ │ │ │ 26 * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
│ │ │ │ │ 27 * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
│ │ │ │ │ 28 * OTHER DEALINGS IN THE SOFTWARE.
│ │ │ │ │ 29
│ │ │ │ │ ***************************************************************************/
│ │ │ │ │ - 30#ifndef _SILLYPNGImageLoader_h_
│ │ │ │ │ - 31#define _SILLYPNGImageLoader_h_
│ │ │ │ │ + 30#ifndef _SILLYMemoryDataSource_h_
│ │ │ │ │ + 31#define _SILLYMemoryDataSource_h_
│ │ │ │ │ 32#include "SILLYBase.h"
│ │ │ │ │ - 33#include "SILLYImageLoader.h"
│ │ │ │ │ - 34#include "SILLYDataSource.h"
│ │ │ │ │ - 35// Start of section namespace SILLY
│ │ │ │ │ - 36namespace SILLY
│ │ │ │ │ - 37{
│ │ │ │ │ -42class PNGImageLoader : public ImageLoader
│ │ │ │ │ - 43{
│ │ │ │ │ - 44public:
│ │ │ │ │ - 45 PNGImageLoader();
│ │ │ │ │ - 46
│ │ │ │ │ - 47 ~PNGImageLoader();
│ │ │ │ │ - 48
│ │ │ │ │ - 49 ImageContext* loadHeader(PixelFormat& formatSource, DataSource* data);
│ │ │ │ │ - 50
│ │ │ │ │ - 51 bool loadImageData(PixelOrigin origin,
│ │ │ │ │ - 52 DataSource* data,
│ │ │ │ │ - 53 ImageContext* context);
│ │ │ │ │ - 54private:
│ │ │ │ │ - 55
│ │ │ │ │ - 56};
│ │ │ │ │ - 57
│ │ │ │ │ - 58
│ │ │ │ │ - 59} // End of section namespace SILLY
│ │ │ │ │ - 60
│ │ │ │ │ - 61// Inclue inline function when needed
│ │ │ │ │ - 62#ifdef SILLY_OPT_INLINE
│ │ │ │ │ - 63#include "SILLYPNGImageLoader.icpp"
│ │ │ │ │ - 64#endif
│ │ │ │ │ + 33#include "SILLYDataSource.h"
│ │ │ │ │ + 34// Start of section namespace SILLY
│ │ │ │ │ + 35namespace SILLY
│ │ │ │ │ + 36{
│ │ │ │ │ + 37
│ │ │ │ │ +48class SILLY_EXPORT MemoryDataSource : public DataSource
│ │ │ │ │ + 49{
│ │ │ │ │ + 50public:
│ │ │ │ │ + 63 MemoryDataSource(const byte* data, size_t size);
│ │ │ │ │ + 64
│ │ │ │ │ 65
│ │ │ │ │ - 66#endif // end of guard _SILLYPNGImageLoader_h_
│ │ │ │ │ +66 const byte* getDataPtr() const;
│ │ │ │ │ + 67
│ │ │ │ │ +68 size_t getSize() const;
│ │ │ │ │ + 69private:
│ │ │ │ │ + 70 const byte* d_bytes;
│ │ │ │ │ + 71 size_t d_size;
│ │ │ │ │ + 72};
│ │ │ │ │ + 73
│ │ │ │ │ + 74
│ │ │ │ │ + 75} // End of section namespace SILLY
│ │ │ │ │ + 76
│ │ │ │ │ + 77// Inclue inline function when needed
│ │ │ │ │ + 78#ifdef SILLY_OPT_INLINE
│ │ │ │ │ + 79#include "SILLYMemoryDataSource.icpp"
│ │ │ │ │ + 80#endif
│ │ │ │ │ + 81
│ │ │ │ │ + 82#endif // end of guard _SILLYMemoryDataSource_h_
│ │ │ │ │ SILLY
│ │ │ │ │ Simple Image Loading LibrarY namespace.
│ │ │ │ │ Definition: SILLYJPGImageContext.cpp:46
│ │ │ │ │ -SILLY::PixelFormat
│ │ │ │ │ -PixelFormat
│ │ │ │ │ -List all pixel format supported.
│ │ │ │ │ -Definition: SILLYBase.h:60
│ │ │ │ │ -SILLY::PixelOrigin
│ │ │ │ │ -PixelOrigin
│ │ │ │ │ -List all pixel origin supported.
│ │ │ │ │ -Definition: SILLYBase.h:71
│ │ │ │ │ -SILLY::PNGImageLoader
│ │ │ │ │ -Loader for PNG Image.
│ │ │ │ │ -Definition: SILLYPNGImageLoader.h:43
│ │ │ │ │ -SILLY::PNGImageLoader::loadHeader
│ │ │ │ │ -ImageContext * loadHeader(PixelFormat &formatSource, DataSource *data)
│ │ │ │ │ -Parse the header of the image and fill the header struct.
│ │ │ │ │ -Definition: SILLYPNGImageLoader.cpp:88
│ │ │ │ │ -SILLY::PNGImageLoader::loadImageData
│ │ │ │ │ -bool loadImageData(PixelOrigin origin, DataSource *data, ImageContext *context)
│ │ │ │ │ -Parse the pixels data of the image and fill the header struct.
│ │ │ │ │ -Definition: SILLYPNGImageLoader.cpp:154
│ │ │ │ │ SILLY::DataSource
│ │ │ │ │ This is an abstract class used to provide data to the loader.
│ │ │ │ │ Definition: SILLYDataSource.h:47
│ │ │ │ │ -SILLY::ImageContext
│ │ │ │ │ -Store the data needed by an ImageLoader object during the parsing of an image.
│ │ │ │ │ -Definition: SILLYImageContext.h:44
│ │ │ │ │ -SILLY::ImageLoader
│ │ │ │ │ -This is an abstract class that define the interface of all image loader.
│ │ │ │ │ -Definition: SILLYImageLoader.h:47
│ │ │ │ │ +SILLY::MemoryDataSource
│ │ │ │ │ +Load an image from a memory area.
│ │ │ │ │ +Definition: SILLYMemoryDataSource.h:49
│ │ │ │ │ +SILLY::MemoryDataSource::getDataPtr
│ │ │ │ │ +const byte * getDataPtr() const
│ │ │ │ │ +Get raw access to the image data.
│ │ │ │ │ +SILLY::MemoryDataSource::getSize
│ │ │ │ │ +size_t getSize() const
│ │ │ │ │ +Return the size of the data.
│ │ │ │ │
│ │ │ │ │ ===============================================================================
│ │ │ │ │ Generated by [doxygen] 1.9.4
│ │ │ ├── ./usr/share/doc/libsilly-doc/html/a00101_source.html
│ │ │ │ @@ -1,15 +1,15 @@
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │ -Simple Image Loading LibrarY: /build/reproducible-path/silly-0.1.0/include/loaders/SILLYTGAImageLoader.h Source File
│ │ │ │ +Simple Image Loading LibrarY: /build/reproducible-path/silly-0.1.0/include/SILLYImageContext.icpp Source File
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │ @@ -35,88 +35,125 @@
│ │ │ │ initMenu('',false,false,'search.php','Search');
│ │ │ │ });
│ │ │ │ /* @license-end */
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
30#ifndef _SILLYTGAImageLoader_h_
│ │ │ │ -
31#define _SILLYTGAImageLoader_h_
│ │ │ │ -
│ │ │ │ -
33#include "SILLYImageLoader.h"
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ +
1/***********************************************************************
│ │ │ │ +
2 filename: SILLYImageContext.icpp
│ │ │ │ +
│ │ │ │ +
4 author: Olivier Delannoy
│ │ │ │ +
│ │ │ │ +
6 purpose: Inline definition for ImageContext
│ │ │ │ +
7*************************************************************************/
│ │ │ │ +
8/***************************************************************************
│ │ │ │ +
9 * Copyright (C) 2004 - 2006 Paul D Turner & The CEGUI Development Team
│ │ │ │ +
│ │ │ │ +
11 * Permission is hereby granted, free of charge, to any person obtaining
│ │ │ │ +
12 * a copy of this software and associated documentation files (the
│ │ │ │ +
13 * "Software"), to deal in the Software without restriction, including
│ │ │ │ +
14 * without limitation the rights to use, copy, modify, merge, publish,
│ │ │ │ +
15 * distribute, sublicense, and/or sell copies of the Software, and to
│ │ │ │ +
16 * permit persons to whom the Software is furnished to do so, subject to
│ │ │ │ +
17 * the following conditions:
│ │ │ │ +
│ │ │ │ +
19 * The above copyright notice and this permission notice shall be
│ │ │ │ +
20 * included in all copies or substantial portions of the Software.
│ │ │ │ +
│ │ │ │ +
22 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
│ │ │ │ +
23 * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
│ │ │ │ +
24 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
│ │ │ │ +
25 * IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR
│ │ │ │ +
26 * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
│ │ │ │ +
27 * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
│ │ │ │ +
28 * OTHER DEALINGS IN THE SOFTWARE.
│ │ │ │ +
29 ***************************************************************************/
│ │ │ │ +
│ │ │ │ +
31// Start of section namespace SILLY
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
35inline ImageContext::ImageContext(size_t width, size_t height)
│ │ │ │ +
36 : d_pixels(0), d_length(0), d_width(width), d_height(height), d_currentOffset(0), d_format(PF_RGBA)
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
41inline ImageContext::~ImageContext()
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
46inline void ImageContext::setDestination(byte* pixels, size_t length, PixelFormat format)
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
59#ifdef SILLY_OPT_INLINE
│ │ │ │ -
60#include "SILLYTGAImageLoader.icpp"
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
Simple Image Loading LibrarY namespace.
│ │ │ │ -
PixelFormat
List all pixel format supported.
│ │ │ │ -
PixelOrigin
List all pixel origin supported.
│ │ │ │ -
│ │ │ │ -
ImageContext * loadHeader(PixelFormat &formatSource, DataSource *data)
Parse the header of the image and fill the header struct.
│ │ │ │ -
bool loadImageData(PixelOrigin origin, DataSource *data, ImageContext *context)
Parse the pixels data of the image and fill the header struct.
│ │ │ │ -
This is an abstract class used to provide data to the loader.
│ │ │ │ -
Store the data needed by an ImageLoader object during the parsing of an image.
│ │ │ │ -
This is an abstract class that define the interface of all image loader.
│ │ │ │ +
54inline void ImageContext::setNextPixel(byte red, byte green, byte bleu, byte alpha)
│ │ │ │ +
│ │ │ │ +
56 //assert(d_currentOffset < d_length && "ASSERT: try to set a pixel outside of the image");
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
61 assert(0 && "ASSERT: Not yet implemented");
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
64 // Ignore alpha channel
│ │ │ │ +
65 d_pixels[d_currentOffset++] = red;
│ │ │ │ +
66 d_pixels[d_currentOffset++] = green;
│ │ │ │ +
67 d_pixels[d_currentOffset++] = bleu;
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
71 d_pixels[d_currentOffset++] = red;
│ │ │ │ +
72 d_pixels[d_currentOffset++] = green;
│ │ │ │ +
73 d_pixels[d_currentOffset++] = bleu;
│ │ │ │ +
74 d_pixels[d_currentOffset++] = alpha;
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
79inline size_t ImageContext::getWidth() const
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
84inline void ImageContext::setWidth(size_t width)
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
89inline size_t ImageContext::getHeight() const
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
94inline void ImageContext::setHeight(size_t height)
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
98inline PixelFormat ImageContext::getPixelFormat() const
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
103} // End of section namespace SILLY
│ │ │ │ +
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │ ├── html2text {}
│ │ │ │ │ @@ -4,22 +4,21 @@
│ │ │ │ │
│ │ │ │ │ Simple Image Loading LibrarY 0.1.0
│ │ │ │ │
│ │ │ │ │ * build
│ │ │ │ │ * reproducible-path
│ │ │ │ │ * silly-0.1.0
│ │ │ │ │ * include
│ │ │ │ │ - * loaders
│ │ │ │ │ -SILLYTGAImageLoader.h
│ │ │ │ │ +SILLYImageContext.icpp
│ │ │ │ │ 1/***********************************************************************
│ │ │ │ │ - 2 filename: SILLYTGAImageLoader.h
│ │ │ │ │ - 3 created: 11 Jun 2006
│ │ │ │ │ + 2 filename: SILLYImageContext.icpp
│ │ │ │ │ + 3 created: 10 Jun 2006
│ │ │ │ │ 4 author: Olivier Delannoy
│ │ │ │ │ 5
│ │ │ │ │ - 6 purpose: Declaration of the TGAImageLoader class
│ │ │ │ │ + 6 purpose: Inline definition for ImageContext
│ │ │ │ │ 7*************************************************************************/
│ │ │ │ │ 8/***************************************************************************
│ │ │ │ │ 9 * Copyright (C) 2004 - 2006 Paul D Turner & The CEGUI Development Team
│ │ │ │ │ 10 *
│ │ │ │ │ 11 * Permission is hereby granted, free of charge, to any person obtaining
│ │ │ │ │ 12 * a copy of this software and associated documentation files (the
│ │ │ │ │ 13 * "Software"), to deal in the Software without restriction, including
│ │ │ │ │ @@ -36,70 +35,89 @@
│ │ │ │ │ 24 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
│ │ │ │ │ 25 * IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR
│ │ │ │ │ 26 * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
│ │ │ │ │ 27 * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
│ │ │ │ │ 28 * OTHER DEALINGS IN THE SOFTWARE.
│ │ │ │ │ 29
│ │ │ │ │ ***************************************************************************/
│ │ │ │ │ - 30#ifndef _SILLYTGAImageLoader_h_
│ │ │ │ │ - 31#define _SILLYTGAImageLoader_h_
│ │ │ │ │ - 32#include "SILLYBase.h"
│ │ │ │ │ - 33#include "SILLYImageLoader.h"
│ │ │ │ │ - 34// Start of section namespace SILLY
│ │ │ │ │ - 35namespace SILLY
│ │ │ │ │ - 36{
│ │ │ │ │ - 37class TGAImageContext;
│ │ │ │ │ -43class TGAImageLoader : public ImageLoader
│ │ │ │ │ - 44{
│ │ │ │ │ - 45public:
│ │ │ │ │ - 46 TGAImageLoader();
│ │ │ │ │ - 47 ~TGAImageLoader();
│ │ │ │ │ - 48 ImageContext* loadHeader(PixelFormat& formatSource, DataSource* data);
│ │ │ │ │ - 49 bool loadImageData(PixelOrigin origin,
│ │ │ │ │ - 50 DataSource* data,
│ │ │ │ │ - 51 ImageContext* context);
│ │ │ │ │ - 52private:
│ │ │ │ │ + 30
│ │ │ │ │ + 31// Start of section namespace SILLY
│ │ │ │ │ + 32namespace SILLY
│ │ │ │ │ + 33{
│ │ │ │ │ + 34
│ │ │ │ │ + 35inline ImageContext::ImageContext(size_t width, size_t height)
│ │ │ │ │ + 36 : d_pixels(0), d_length(0), d_width(width), d_height(height),
│ │ │ │ │ +d_currentOffset(0), d_format(PF_RGBA)
│ │ │ │ │ + 37{
│ │ │ │ │ + 38}
│ │ │ │ │ + 39
│ │ │ │ │ + 40
│ │ │ │ │ + 41inline ImageContext::~ImageContext()
│ │ │ │ │ + 42{
│ │ │ │ │ + 43}
│ │ │ │ │ + 44
│ │ │ │ │ + 45
│ │ │ │ │ + 46inline void ImageContext::setDestination(byte* pixels, size_t length,
│ │ │ │ │ +PixelFormat format)
│ │ │ │ │ + 47{
│ │ │ │ │ + 48 d_pixels = pixels;
│ │ │ │ │ + 49 d_length = length;
│ │ │ │ │ + 50 d_currentOffset = 0;
│ │ │ │ │ + 51 d_format = format;
│ │ │ │ │ + 52}
│ │ │ │ │ 53
│ │ │ │ │ - 54};
│ │ │ │ │ - 55
│ │ │ │ │ - 56} // End of section namespace SILLY
│ │ │ │ │ - 57
│ │ │ │ │ - 58// Inclue inline function when needed
│ │ │ │ │ - 59#ifdef SILLY_OPT_INLINE
│ │ │ │ │ - 60#include "SILLYTGAImageLoader.icpp"
│ │ │ │ │ - 61#endif
│ │ │ │ │ - 62
│ │ │ │ │ - 63#endif // end of guard _SILLYTGAImageLoader_h_
│ │ │ │ │ -SILLY
│ │ │ │ │ -Simple Image Loading LibrarY namespace.
│ │ │ │ │ -Definition: SILLYJPGImageContext.cpp:46
│ │ │ │ │ -SILLY::PixelFormat
│ │ │ │ │ -PixelFormat
│ │ │ │ │ -List all pixel format supported.
│ │ │ │ │ -Definition: SILLYBase.h:60
│ │ │ │ │ -SILLY::PixelOrigin
│ │ │ │ │ -PixelOrigin
│ │ │ │ │ -List all pixel origin supported.
│ │ │ │ │ -Definition: SILLYBase.h:71
│ │ │ │ │ -SILLY::TGAImageLoader
│ │ │ │ │ -Loader for Targa image.
│ │ │ │ │ -Definition: SILLYTGAImageLoader.h:44
│ │ │ │ │ -SILLY::TGAImageLoader::loadHeader
│ │ │ │ │ -ImageContext * loadHeader(PixelFormat &formatSource, DataSource *data)
│ │ │ │ │ -Parse the header of the image and fill the header struct.
│ │ │ │ │ -Definition: SILLYTGAImageLoader.cpp:74
│ │ │ │ │ -SILLY::TGAImageLoader::loadImageData
│ │ │ │ │ -bool loadImageData(PixelOrigin origin, DataSource *data, ImageContext *context)
│ │ │ │ │ -Parse the pixels data of the image and fill the header struct.
│ │ │ │ │ -Definition: SILLYTGAImageLoader.cpp:134
│ │ │ │ │ -SILLY::DataSource
│ │ │ │ │ -This is an abstract class used to provide data to the loader.
│ │ │ │ │ -Definition: SILLYDataSource.h:47
│ │ │ │ │ -SILLY::ImageContext
│ │ │ │ │ -Store the data needed by an ImageLoader object during the parsing of an image.
│ │ │ │ │ -Definition: SILLYImageContext.h:44
│ │ │ │ │ -SILLY::ImageLoader
│ │ │ │ │ -This is an abstract class that define the interface of all image loader.
│ │ │ │ │ -Definition: SILLYImageLoader.h:47
│ │ │ │ │ + 54inline void ImageContext::setNextPixel(byte red, byte green, byte bleu, byte
│ │ │ │ │ +alpha)
│ │ │ │ │ + 55{
│ │ │ │ │ + 56 //assert(d_currentOffset < d_length && "ASSERT: try to set a pixel outside
│ │ │ │ │ +of the image");
│ │ │ │ │ + 57 switch(d_format)
│ │ │ │ │ + 58 {
│ │ │ │ │ + 59 case PF_A1B5G5R5:
│ │ │ │ │ + 60 // The hard part
│ │ │ │ │ + 61 assert(0 && "ASSERT: Not yet implemented");
│ │ │ │ │ + 62 break;
│ │ │ │ │ + 63 case PF_RGB:
│ │ │ │ │ + 64 // Ignore alpha channel
│ │ │ │ │ + 65 d_pixels[d_currentOffset++] = red;
│ │ │ │ │ + 66 d_pixels[d_currentOffset++] = green;
│ │ │ │ │ + 67 d_pixels[d_currentOffset++] = bleu;
│ │ │ │ │ + 68 break;
│ │ │ │ │ + 69
│ │ │ │ │ + 70 case PF_RGBA:
│ │ │ │ │ + 71 d_pixels[d_currentOffset++] = red;
│ │ │ │ │ + 72 d_pixels[d_currentOffset++] = green;
│ │ │ │ │ + 73 d_pixels[d_currentOffset++] = bleu;
│ │ │ │ │ + 74 d_pixels[d_currentOffset++] = alpha;
│ │ │ │ │ + 75 break;
│ │ │ │ │ + 76
│ │ │ │ │ + 77 }
│ │ │ │ │ + 78}
│ │ │ │ │ + 79inline size_t ImageContext::getWidth() const
│ │ │ │ │ + 80{
│ │ │ │ │ + 81 return d_width;
│ │ │ │ │ + 82}
│ │ │ │ │ + 83
│ │ │ │ │ + 84inline void ImageContext::setWidth(size_t width)
│ │ │ │ │ + 85{
│ │ │ │ │ + 86 d_width = width;
│ │ │ │ │ + 87}
│ │ │ │ │ + 88
│ │ │ │ │ + 89inline size_t ImageContext::getHeight() const
│ │ │ │ │ + 90{
│ │ │ │ │ + 91 return d_height;
│ │ │ │ │ + 92}
│ │ │ │ │ + 93
│ │ │ │ │ + 94inline void ImageContext::setHeight(size_t height)
│ │ │ │ │ + 95{
│ │ │ │ │ + 96 d_height = height;
│ │ │ │ │ + 97}
│ │ │ │ │ + 98inline PixelFormat ImageContext::getPixelFormat() const
│ │ │ │ │ + 99{
│ │ │ │ │ + 100 return d_format;
│ │ │ │ │ + 101}
│ │ │ │ │ + 102
│ │ │ │ │ + 103} // End of section namespace SILLY
│ │ │ │ │ + 104
│ │ │ │ │
│ │ │ │ │ ===============================================================================
│ │ │ │ │ Generated by [doxygen] 1.9.4
│ │ │ ├── ./usr/share/doc/libsilly-doc/html/a00104_source.html
│ │ │ │ @@ -1,15 +1,15 @@
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │ -
Simple Image Loading LibrarY: /build/reproducible-path/silly-0.1.0/include/loaders/SILLYPNGImageLoader.icpp Source File
│ │ │ │ +
Simple Image Loading LibrarY: /build/reproducible-path/silly-0.1.0/include/SILLYFileDataSource.h Source File
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │ @@ -35,57 +35,88 @@
│ │ │ │ initMenu('',false,false,'search.php','Search');
│ │ │ │ });
│ │ │ │ /* @license-end */
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │ -
1/***********************************************************************
│ │ │ │ -
2 filename: SILLYPNGImageLoader.icpp
│ │ │ │ -
│ │ │ │ -
4 author: Olivier Delannoy
│ │ │ │ -
│ │ │ │ -
6 purpose: Inline definition for PNGImageLoader
│ │ │ │ -
7*************************************************************************/
│ │ │ │ -
8/***************************************************************************
│ │ │ │ -
9 * Copyright (C) 2004 - 2006 Paul D Turner & The CEGUI Development Team
│ │ │ │ -
│ │ │ │ -
11 * Permission is hereby granted, free of charge, to any person obtaining
│ │ │ │ -
12 * a copy of this software and associated documentation files (the
│ │ │ │ -
13 * "Software"), to deal in the Software without restriction, including
│ │ │ │ -
14 * without limitation the rights to use, copy, modify, merge, publish,
│ │ │ │ -
15 * distribute, sublicense, and/or sell copies of the Software, and to
│ │ │ │ -
16 * permit persons to whom the Software is furnished to do so, subject to
│ │ │ │ -
17 * the following conditions:
│ │ │ │ -
│ │ │ │ -
19 * The above copyright notice and this permission notice shall be
│ │ │ │ -
20 * included in all copies or substantial portions of the Software.
│ │ │ │ -
│ │ │ │ -
22 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
│ │ │ │ -
23 * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
│ │ │ │ -
24 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
│ │ │ │ -
25 * IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR
│ │ │ │ -
26 * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
│ │ │ │ -
27 * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
│ │ │ │ -
28 * OTHER DEALINGS IN THE SOFTWARE.
│ │ │ │ -
29 ***************************************************************************/
│ │ │ │ -
│ │ │ │ -
31// Start of section namespace SILLY
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
35} // End of section namespace SILLY
│ │ │ │ -
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
30#ifndef _SILLYFileDataSource_h_
│ │ │ │ +
31#define _SILLYFileDataSource_h_
│ │ │ │ +
│ │ │ │ +
33#include "SILLYDataSource.h"
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
87#ifdef SILLY_OPT_INLINE
│ │ │ │ +
88#include "SILLYFileDataSource.icpp"
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
Simple Image Loading LibrarY namespace.
│ │ │ │ +
This is an abstract class used to provide data to the loader.
│ │ │ │ +
This class allow the loading of an image directly from a file.
│ │ │ │ +
const byte * getDataPtr() const
Get raw access to the image data.
│ │ │ │ +
bool isValid() const
Check wether the loading is successfull or not.
│ │ │ │ +
size_t getSize() const
Return the size of the data.
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │ ├── html2text {}
│ │ │ │ │ @@ -4,22 +4,21 @@
│ │ │ │ │
│ │ │ │ │ Simple Image Loading LibrarY 0.1.0
│ │ │ │ │
│ │ │ │ │ * build
│ │ │ │ │ * reproducible-path
│ │ │ │ │ * silly-0.1.0
│ │ │ │ │ * include
│ │ │ │ │ - * loaders
│ │ │ │ │ -SILLYPNGImageLoader.icpp
│ │ │ │ │ +SILLYFileDataSource.h
│ │ │ │ │ 1/***********************************************************************
│ │ │ │ │ - 2 filename: SILLYPNGImageLoader.icpp
│ │ │ │ │ - 3 created: 11 Jun 2006
│ │ │ │ │ + 2 filename: SILLYFileDataSource.h
│ │ │ │ │ + 3 created: 20 Jul 2006
│ │ │ │ │ 4 author: Olivier Delannoy
│ │ │ │ │ 5
│ │ │ │ │ - 6 purpose: Inline definition for PNGImageLoader
│ │ │ │ │ + 6 purpose: Provide file based image loading
│ │ │ │ │ 7*************************************************************************/
│ │ │ │ │ 8/***************************************************************************
│ │ │ │ │ 9 * Copyright (C) 2004 - 2006 Paul D Turner & The CEGUI Development Team
│ │ │ │ │ 10 *
│ │ │ │ │ 11 * Permission is hereby granted, free of charge, to any person obtaining
│ │ │ │ │ 12 * a copy of this software and associated documentation files (the
│ │ │ │ │ 13 * "Software"), to deal in the Software without restriction, including
│ │ │ │ │ @@ -36,17 +35,60 @@
│ │ │ │ │ 24 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
│ │ │ │ │ 25 * IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR
│ │ │ │ │ 26 * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
│ │ │ │ │ 27 * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
│ │ │ │ │ 28 * OTHER DEALINGS IN THE SOFTWARE.
│ │ │ │ │ 29
│ │ │ │ │ ***************************************************************************/
│ │ │ │ │ - 30
│ │ │ │ │ - 31// Start of section namespace SILLY
│ │ │ │ │ - 32namespace SILLY
│ │ │ │ │ - 33{
│ │ │ │ │ - 34
│ │ │ │ │ - 35} // End of section namespace SILLY
│ │ │ │ │ - 36
│ │ │ │ │ + 30#ifndef _SILLYFileDataSource_h_
│ │ │ │ │ + 31#define _SILLYFileDataSource_h_
│ │ │ │ │ + 32#include "SILLYBase.h"
│ │ │ │ │ + 33#include "SILLYDataSource.h"
│ │ │ │ │ + 34// Start of section namespace SILLY
│ │ │ │ │ + 35namespace SILLY
│ │ │ │ │ + 36{
│ │ │ │ │ + 37
│ │ │ │ │ +48class SILLY_EXPORT FileDataSource : public DataSource
│ │ │ │ │ + 49{
│ │ │ │ │ + 50public:
│ │ │ │ │ + 60 FileDataSource(const char* filename);
│ │ │ │ │ + 64 ~FileDataSource();
│ │ │ │ │ +73 bool isValid() const;
│ │ │ │ │ + 74
│ │ │ │ │ +75 const byte* getDataPtr() const;
│ │ │ │ │ +76 size_t getSize() const;
│ │ │ │ │ + 77private:
│ │ │ │ │ + 78 bool d_error;
│ │ │ │ │ + 79 byte* d_bytes;
│ │ │ │ │ + 80 size_t d_size;
│ │ │ │ │ + 81};
│ │ │ │ │ + 82
│ │ │ │ │ + 83
│ │ │ │ │ + 84} // End of section namespace SILLY
│ │ │ │ │ + 85
│ │ │ │ │ + 86// Inclue inline function when needed
│ │ │ │ │ + 87#ifdef SILLY_OPT_INLINE
│ │ │ │ │ + 88#include "SILLYFileDataSource.icpp"
│ │ │ │ │ + 89#endif
│ │ │ │ │ + 90
│ │ │ │ │ + 91#endif // end of guard _SILLYFileDataSource_h_
│ │ │ │ │ +SILLY
│ │ │ │ │ +Simple Image Loading LibrarY namespace.
│ │ │ │ │ +Definition: SILLYJPGImageContext.cpp:46
│ │ │ │ │ +SILLY::DataSource
│ │ │ │ │ +This is an abstract class used to provide data to the loader.
│ │ │ │ │ +Definition: SILLYDataSource.h:47
│ │ │ │ │ +SILLY::FileDataSource
│ │ │ │ │ +This class allow the loading of an image directly from a file.
│ │ │ │ │ +Definition: SILLYFileDataSource.h:49
│ │ │ │ │ +SILLY::FileDataSource::getDataPtr
│ │ │ │ │ +const byte * getDataPtr() const
│ │ │ │ │ +Get raw access to the image data.
│ │ │ │ │ +SILLY::FileDataSource::isValid
│ │ │ │ │ +bool isValid() const
│ │ │ │ │ +Check wether the loading is successfull or not.
│ │ │ │ │ +SILLY::FileDataSource::getSize
│ │ │ │ │ +size_t getSize() const
│ │ │ │ │ +Return the size of the data.
│ │ │ │ │
│ │ │ │ │ ===============================================================================
│ │ │ │ │ Generated by [doxygen] 1.9.4
│ │ │ ├── ./usr/share/doc/libsilly-doc/html/a00107_source.html
│ │ │ │ @@ -1,15 +1,15 @@
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │ -
Simple Image Loading LibrarY: /build/reproducible-path/silly-0.1.0/include/loaders/SILLYTGAImageLoader.icpp Source File
│ │ │ │ +
Simple Image Loading LibrarY: /build/reproducible-path/silly-0.1.0/include/SILLYImage.h Source File
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │ @@ -35,57 +35,128 @@
│ │ │ │ initMenu('',false,false,'search.php','Search');
│ │ │ │ });
│ │ │ │ /* @license-end */
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │ -
1/***********************************************************************
│ │ │ │ -
2 filename: SILLYTGAImageLoader.icpp
│ │ │ │ -
│ │ │ │ -
4 author: Olivier Delannoy
│ │ │ │ -
│ │ │ │ -
6 purpose: Inline defintion of TGAImageLoader class
│ │ │ │ -
7*************************************************************************/
│ │ │ │ -
8/***************************************************************************
│ │ │ │ -
9 * Copyright (C) 2004 - 2006 Paul D Turner & The CEGUI Development Team
│ │ │ │ -
│ │ │ │ -
11 * Permission is hereby granted, free of charge, to any person obtaining
│ │ │ │ -
12 * a copy of this software and associated documentation files (the
│ │ │ │ -
13 * "Software"), to deal in the Software without restriction, including
│ │ │ │ -
14 * without limitation the rights to use, copy, modify, merge, publish,
│ │ │ │ -
15 * distribute, sublicense, and/or sell copies of the Software, and to
│ │ │ │ -
16 * permit persons to whom the Software is furnished to do so, subject to
│ │ │ │ -
17 * the following conditions:
│ │ │ │ -
│ │ │ │ -
19 * The above copyright notice and this permission notice shall be
│ │ │ │ -
20 * included in all copies or substantial portions of the Software.
│ │ │ │ -
│ │ │ │ -
22 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
│ │ │ │ -
23 * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
│ │ │ │ -
24 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
│ │ │ │ -
25 * IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR
│ │ │ │ -
26 * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
│ │ │ │ -
27 * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
│ │ │ │ -
28 * OTHER DEALINGS IN THE SOFTWARE.
│ │ │ │ -
29 ***************************************************************************/
│ │ │ │ -
│ │ │ │ -
31// Start of section namespace SILLY
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
35} // End of section namespace SILLY
│ │ │ │ -
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
34#include "SILLYImageContext.h"
│ │ │ │ +
35#include "SILLYDataSource.h"
│ │ │ │ +
36#include "SILLYImageLoader.h"
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
76 bool loadImageHeader();
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
151#ifdef SILLY_OPT_INLINE
│ │ │ │ +
152#include "SILLYImage.icpp"
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
Simple Image Loading LibrarY namespace.
│ │ │ │ +
PixelFormat
List all pixel format supported.
│ │ │ │ +
PixelOrigin
List all pixel origin supported.
│ │ │ │ +
This is an abstract class used to provide data to the loader.
│ │ │ │ +
Image is the main user class of the library.
│ │ │ │ +
PixelFormat getSourcePixelFormat() const
Retrieve the pixel format used for the image storage.
│ │ │ │ +
const char * getLoaderIdentifierString() const
Get Image loader identifier string.
│ │ │ │ +
const byte * getPixelsDataPtr() const
Get a pointer to the pixels data.
│ │ │ │ +
bool isValid() const
Return true if the image is valid after its loading.
│ │ │ │ +
size_t getPixelsDataSize() const
Get the size of the pixel buffer.
│ │ │ │ +
│ │ │ │ +
size_t getWidth() const
Retrieve the width of the image.
│ │ │ │ +
PixelFormat getPixelFormat() const
Retrieve the pixel format of the resulting image.
│ │ │ │ +
size_t getHeight() const
Retrieve the height of the image.
│ │ │ │ +
Store the data needed by an ImageLoader object during the parsing of an image.
│ │ │ │ +
This is an abstract class that define the interface of all image loader.
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │ ├── html2text {}
│ │ │ │ │ @@ -4,49 +4,154 @@
│ │ │ │ │
│ │ │ │ │ Simple Image Loading LibrarY 0.1.0
│ │ │ │ │
│ │ │ │ │ * build
│ │ │ │ │ * reproducible-path
│ │ │ │ │ * silly-0.1.0
│ │ │ │ │ * include
│ │ │ │ │ - * loaders
│ │ │ │ │ -SILLYTGAImageLoader.icpp
│ │ │ │ │ - 1/***********************************************************************
│ │ │ │ │ - 2 filename: SILLYTGAImageLoader.icpp
│ │ │ │ │ - 3 created: 11 Jun 2006
│ │ │ │ │ - 4 author: Olivier Delannoy
│ │ │ │ │ - 5
│ │ │ │ │ - 6 purpose: Inline defintion of TGAImageLoader class
│ │ │ │ │ - 7*************************************************************************/
│ │ │ │ │ - 8/***************************************************************************
│ │ │ │ │ - 9 * Copyright (C) 2004 - 2006 Paul D Turner & The CEGUI Development Team
│ │ │ │ │ - 10 *
│ │ │ │ │ - 11 * Permission is hereby granted, free of charge, to any person obtaining
│ │ │ │ │ - 12 * a copy of this software and associated documentation files (the
│ │ │ │ │ - 13 * "Software"), to deal in the Software without restriction, including
│ │ │ │ │ - 14 * without limitation the rights to use, copy, modify, merge, publish,
│ │ │ │ │ - 15 * distribute, sublicense, and/or sell copies of the Software, and to
│ │ │ │ │ - 16 * permit persons to whom the Software is furnished to do so, subject to
│ │ │ │ │ - 17 * the following conditions:
│ │ │ │ │ - 18 *
│ │ │ │ │ - 19 * The above copyright notice and this permission notice shall be
│ │ │ │ │ - 20 * included in all copies or substantial portions of the Software.
│ │ │ │ │ - 21 *
│ │ │ │ │ - 22 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
│ │ │ │ │ - 23 * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
│ │ │ │ │ - 24 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
│ │ │ │ │ - 25 * IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR
│ │ │ │ │ - 26 * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
│ │ │ │ │ - 27 * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
│ │ │ │ │ - 28 * OTHER DEALINGS IN THE SOFTWARE.
│ │ │ │ │ - 29
│ │ │ │ │ -***************************************************************************/
│ │ │ │ │ +SILLYImage.h
│ │ │ │ │ + 1
│ │ │ │ │ + 2/***********************************************************************
│ │ │ │ │ + 3 filename: SILLYImage.h
│ │ │ │ │ + 4 created: 10 Jun 2006
│ │ │ │ │ + 5 author: Olivier Delannoy
│ │ │ │ │ + 6
│ │ │ │ │ + 7 purpose: Image class definition
│ │ │ │ │ + 8*************************************************************************/
│ │ │ │ │ + 9/***************************************************************************
│ │ │ │ │ + 10 * Copyright (C) 2004 - 2006 Paul D Turner & The CEGUI Development Team
│ │ │ │ │ + 11 *
│ │ │ │ │ + 12 * Permission is hereby granted, free of charge, to any person obtaining
│ │ │ │ │ + 13 * a copy of this software and associated documentation files (the
│ │ │ │ │ + 14 * "Software"), to deal in the Software without restriction, including
│ │ │ │ │ + 15 * without limitation the rights to use, copy, modify, merge, publish,
│ │ │ │ │ + 16 * distribute, sublicense, and/or sell copies of the Software, and to
│ │ │ │ │ + 17 * permit persons to whom the Software is furnished to do so, subject to
│ │ │ │ │ + 18 * the following conditions:
│ │ │ │ │ + 19 *
│ │ │ │ │ + 20 * The above copyright notice and this permission notice shall be
│ │ │ │ │ + 21 * included in all copies or substantial portions of the Software.
│ │ │ │ │ + 22 *
│ │ │ │ │ + 23 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
│ │ │ │ │ + 24 * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
│ │ │ │ │ + 25 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
│ │ │ │ │ + 26 * IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR
│ │ │ │ │ + 27 * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
│ │ │ │ │ + 28 * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
│ │ │ │ │ + 29 * OTHER DEALINGS IN THE SOFTWARE.
│ │ │ │ │ 30
│ │ │ │ │ - 31// Start of section namespace SILLY
│ │ │ │ │ - 32namespace SILLY
│ │ │ │ │ - 33{
│ │ │ │ │ - 34
│ │ │ │ │ - 35} // End of section namespace SILLY
│ │ │ │ │ - 36
│ │ │ │ │ +***************************************************************************/
│ │ │ │ │ + 31#ifndef _SILLYImage_h_
│ │ │ │ │ + 32#define _SILLYImage_h_
│ │ │ │ │ + 33#include "SILLYBase.h"
│ │ │ │ │ + 34#include "SILLYImageContext.h"
│ │ │ │ │ + 35#include "SILLYDataSource.h"
│ │ │ │ │ + 36#include "SILLYImageLoader.h"
│ │ │ │ │ + 37
│ │ │ │ │ + 38// Start of section namespace SILLY
│ │ │ │ │ + 39namespace SILLY
│ │ │ │ │ + 40{
│ │ │ │ │ + 41
│ │ │ │ │ +46class SILLY_EXPORT Image
│ │ │ │ │ + 47{
│ │ │ │ │ + 48public:
│ │ │ │ │ + 55 Image(DataSource& data);
│ │ │ │ │ + 56
│ │ │ │ │ +61 ~Image();
│ │ │ │ │ + 62
│ │ │ │ │ +67 bool isValid() const;
│ │ │ │ │ + 68
│ │ │ │ │ + 69
│ │ │ │ │ + 76 bool loadImageHeader();
│ │ │ │ │ + 77
│ │ │ │ │ + 91 bool loadImageData(PixelFormat resultFormat = PF_RGBA, PixelOrigin origin =
│ │ │ │ │ +PO_TOP_LEFT);
│ │ │ │ │ + 92
│ │ │ │ │ +97 size_t getWidth() const;
│ │ │ │ │ + 98
│ │ │ │ │ +103 size_t getHeight() const;
│ │ │ │ │ + 104
│ │ │ │ │ +109 PixelFormat getSourcePixelFormat() const;
│ │ │ │ │ + 110
│ │ │ │ │ +115 PixelFormat getPixelFormat() const;
│ │ │ │ │ + 116
│ │ │ │ │ +120 const byte* getPixelsDataPtr() const;
│ │ │ │ │ +125 size_t getPixelsDataSize() const;
│ │ │ │ │ +130 const char* getLoaderIdentifierString() const;
│ │ │ │ │ + 131private:
│ │ │ │ │ + 132 bool allocate();
│ │ │ │ │ + 133
│ │ │ │ │ + 134private:
│ │ │ │ │ + 135
│ │ │ │ │ + 136 size_t d_bpp;
│ │ │ │ │ + 137 PixelFormat d_pfSource;
│ │ │ │ │ + 138 byte* d_pixels;
│ │ │ │ │ + 139 DataSource* d_data;
│ │ │ │ │ + 140 ImageContext* d_imageContext;
│ │ │ │ │ + 141 ImageLoader* d_imageLoader;
│ │ │ │ │ + 142
│ │ │ │ │ + 143 // Disabled operation
│ │ │ │ │ + 144 Image(Image&);
│ │ │ │ │ + 145 Image& operator=(Image&);
│ │ │ │ │ + 146};
│ │ │ │ │ + 147
│ │ │ │ │ + 148} // End of section namespace SILLY
│ │ │ │ │ + 149
│ │ │ │ │ + 150// Inclue inline function when needed
│ │ │ │ │ + 151#ifdef SILLY_OPT_INLINE
│ │ │ │ │ + 152#include "SILLYImage.icpp"
│ │ │ │ │ + 153#endif
│ │ │ │ │ + 154
│ │ │ │ │ + 155#endif // end of guard _SILLYImage_h_
│ │ │ │ │ +SILLY
│ │ │ │ │ +Simple Image Loading LibrarY namespace.
│ │ │ │ │ +Definition: SILLYJPGImageContext.cpp:46
│ │ │ │ │ +SILLY::PixelFormat
│ │ │ │ │ +PixelFormat
│ │ │ │ │ +List all pixel format supported.
│ │ │ │ │ +Definition: SILLYBase.h:60
│ │ │ │ │ +SILLY::PixelOrigin
│ │ │ │ │ +PixelOrigin
│ │ │ │ │ +List all pixel origin supported.
│ │ │ │ │ +Definition: SILLYBase.h:71
│ │ │ │ │ +SILLY::DataSource
│ │ │ │ │ +This is an abstract class used to provide data to the loader.
│ │ │ │ │ +Definition: SILLYDataSource.h:47
│ │ │ │ │ +SILLY::Image
│ │ │ │ │ +Image is the main user class of the library.
│ │ │ │ │ +Definition: SILLYImage.h:47
│ │ │ │ │ +SILLY::Image::getSourcePixelFormat
│ │ │ │ │ +PixelFormat getSourcePixelFormat() const
│ │ │ │ │ +Retrieve the pixel format used for the image storage.
│ │ │ │ │ +SILLY::Image::getLoaderIdentifierString
│ │ │ │ │ +const char * getLoaderIdentifierString() const
│ │ │ │ │ +Get Image loader identifier string.
│ │ │ │ │ +SILLY::Image::getPixelsDataPtr
│ │ │ │ │ +const byte * getPixelsDataPtr() const
│ │ │ │ │ +Get a pointer to the pixels data.
│ │ │ │ │ +SILLY::Image::isValid
│ │ │ │ │ +bool isValid() const
│ │ │ │ │ +Return true if the image is valid after its loading.
│ │ │ │ │ +SILLY::Image::getPixelsDataSize
│ │ │ │ │ +size_t getPixelsDataSize() const
│ │ │ │ │ +Get the size of the pixel buffer.
│ │ │ │ │ +SILLY::Image::~Image
│ │ │ │ │ +~Image()
│ │ │ │ │ +Destructor.
│ │ │ │ │ +SILLY::Image::getWidth
│ │ │ │ │ +size_t getWidth() const
│ │ │ │ │ +Retrieve the width of the image.
│ │ │ │ │ +SILLY::Image::getPixelFormat
│ │ │ │ │ +PixelFormat getPixelFormat() const
│ │ │ │ │ +Retrieve the pixel format of the resulting image.
│ │ │ │ │ +SILLY::Image::getHeight
│ │ │ │ │ +size_t getHeight() const
│ │ │ │ │ +Retrieve the height of the image.
│ │ │ │ │ +SILLY::ImageContext
│ │ │ │ │ +Store the data needed by an ImageLoader object during the parsing of an image.
│ │ │ │ │ +Definition: SILLYImageContext.h:44
│ │ │ │ │ +SILLY::ImageLoader
│ │ │ │ │ +This is an abstract class that define the interface of all image loader.
│ │ │ │ │ +Definition: SILLYImageLoader.h:47
│ │ │ │ │
│ │ │ │ │ ===============================================================================
│ │ │ │ │ Generated by [doxygen] 1.9.4
│ │ │ ├── ./usr/share/doc/libsilly-doc/html/a00110_source.html
│ │ │ │ @@ -1,15 +1,15 @@
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │ -
Simple Image Loading LibrarY: /build/reproducible-path/silly-0.1.0/include/loaders/SILLYJPGImageContext.icpp Source File
│ │ │ │ +
Simple Image Loading LibrarY: /build/reproducible-path/silly-0.1.0/include/SILLYImageContext.h Source File
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │ @@ -35,57 +35,108 @@
│ │ │ │ initMenu('',false,false,'search.php','Search');
│ │ │ │ });
│ │ │ │ /* @license-end */
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │ -
1/***********************************************************************
│ │ │ │ -
2 filename: SILLYJPGImageContext.icpp
│ │ │ │ -
│ │ │ │ -
4 author: Olivier Delannoy
│ │ │ │ -
│ │ │ │ -
6 purpose: Inline definition for JPG context
│ │ │ │ -
7*************************************************************************/
│ │ │ │ -
8/***************************************************************************
│ │ │ │ -
9 * Copyright (C) 2004 - 2006 Paul D Turner & The CEGUI Development Team
│ │ │ │ -
│ │ │ │ -
11 * Permission is hereby granted, free of charge, to any person obtaining
│ │ │ │ -
12 * a copy of this software and associated documentation files (the
│ │ │ │ -
13 * "Software"), to deal in the Software without restriction, including
│ │ │ │ -
14 * without limitation the rights to use, copy, modify, merge, publish,
│ │ │ │ -
15 * distribute, sublicense, and/or sell copies of the Software, and to
│ │ │ │ -
16 * permit persons to whom the Software is furnished to do so, subject to
│ │ │ │ -
17 * the following conditions:
│ │ │ │ -
│ │ │ │ -
19 * The above copyright notice and this permission notice shall be
│ │ │ │ -
20 * included in all copies or substantial portions of the Software.
│ │ │ │ -
│ │ │ │ -
22 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
│ │ │ │ -
23 * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
│ │ │ │ -
24 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
│ │ │ │ -
25 * IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR
│ │ │ │ -
26 * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
│ │ │ │ -
27 * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
│ │ │ │ -
28 * OTHER DEALINGS IN THE SOFTWARE.
│ │ │ │ -
29 ***************************************************************************/
│ │ │ │ -
│ │ │ │ -
31// Start of section namespace SILLY
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
35} // End of section namespace SILLY
│ │ │ │ -
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
30#ifndef _SILLYImageContext_h_
│ │ │ │ +
31#define _SILLYImageContext_h_
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
64 size_t getWidth()
const;
│ │ │ │ +
65 size_t getHeight()
const;
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
74 bool flipVertically();
│ │ │ │ +
│ │ │ │ +
76 void setWidth(
size_t width);
│ │ │ │ +
│ │ │ │ +
78 void setHeight(
size_t height);
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
95 size_t d_currentOffset;
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
107#ifdef SILLY_OPT_INLINE
│ │ │ │ +
108#include "SILLYImageContext.icpp"
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
Simple Image Loading LibrarY namespace.
│ │ │ │ +
PixelFormat
List all pixel format supported.
│ │ │ │ +
Store the data needed by an ImageLoader object during the parsing of an image.
│ │ │ │ +
void setNextPixel(byte red, byte green, byte bleu, byte alpha)
Set the next pixel of the image.
│ │ │ │ +
void setDestination(byte *pixels, size_t length, PixelFormat format)
Set the destination of the loading.
│ │ │ │ +
ImageContext(size_t width, size_t height)
Constructor.
│ │ │ │ +
virtual ~ImageContext()
Destructor.
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │ ├── html2text {}
│ │ │ │ │ @@ -4,22 +4,22 @@
│ │ │ │ │
│ │ │ │ │ Simple Image Loading LibrarY 0.1.0
│ │ │ │ │
│ │ │ │ │ * build
│ │ │ │ │ * reproducible-path
│ │ │ │ │ * silly-0.1.0
│ │ │ │ │ * include
│ │ │ │ │ - * loaders
│ │ │ │ │ -SILLYJPGImageContext.icpp
│ │ │ │ │ +SILLYImageContext.h
│ │ │ │ │ 1/***********************************************************************
│ │ │ │ │ - 2 filename: SILLYJPGImageContext.icpp
│ │ │ │ │ - 3 created: 11 Jun 2006
│ │ │ │ │ + 2 filename: SILLYImageContext.h
│ │ │ │ │ + 3 created: 10 Jun 2006
│ │ │ │ │ 4 author: Olivier Delannoy
│ │ │ │ │ 5
│ │ │ │ │ - 6 purpose: Inline definition for JPG context
│ │ │ │ │ + 6 purpose: ImageContext is an abstract class used to hide the loader specific
│ │ │ │ │ +data needed during the parsing of an image
│ │ │ │ │ 7*************************************************************************/
│ │ │ │ │ 8/***************************************************************************
│ │ │ │ │ 9 * Copyright (C) 2004 - 2006 Paul D Turner & The CEGUI Development Team
│ │ │ │ │ 10 *
│ │ │ │ │ 11 * Permission is hereby granted, free of charge, to any person obtaining
│ │ │ │ │ 12 * a copy of this software and associated documentation files (the
│ │ │ │ │ 13 * "Software"), to deal in the Software without restriction, including
│ │ │ │ │ @@ -36,17 +36,83 @@
│ │ │ │ │ 24 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
│ │ │ │ │ 25 * IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR
│ │ │ │ │ 26 * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
│ │ │ │ │ 27 * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
│ │ │ │ │ 28 * OTHER DEALINGS IN THE SOFTWARE.
│ │ │ │ │ 29
│ │ │ │ │ ***************************************************************************/
│ │ │ │ │ - 30
│ │ │ │ │ - 31// Start of section namespace SILLY
│ │ │ │ │ - 32namespace SILLY
│ │ │ │ │ - 33{
│ │ │ │ │ - 34
│ │ │ │ │ - 35} // End of section namespace SILLY
│ │ │ │ │ - 36
│ │ │ │ │ + 30#ifndef _SILLYImageContext_h_
│ │ │ │ │ + 31#define _SILLYImageContext_h_
│ │ │ │ │ + 32#include "SILLYBase.h"
│ │ │ │ │ + 33
│ │ │ │ │ + 34// Start of section namespace SILLY
│ │ │ │ │ + 35namespace SILLY
│ │ │ │ │ + 36{
│ │ │ │ │ + 37
│ │ │ │ │ +43class SILLY_EXPORT ImageContext
│ │ │ │ │ + 44{
│ │ │ │ │ + 45public:
│ │ │ │ │ +50 virtual ~ImageContext();
│ │ │ │ │ + 51
│ │ │ │ │ +56 void setDestination(byte* pixels, size_t length, PixelFormat format);
│ │ │ │ │ + 57
│ │ │ │ │ +62 void setNextPixel(byte red, byte green, byte bleu, byte alpha);
│ │ │ │ │ + 63
│ │ │ │ │ + 64 size_t getWidth() const;
│ │ │ │ │ + 65 size_t getHeight() const;
│ │ │ │ │ + 66 PixelFormat getPixelFormat() const;
│ │ │ │ │ + 67
│ │ │ │ │ + 74 bool flipVertically();
│ │ │ │ │ + 75 protected:
│ │ │ │ │ + 76 void setWidth(size_t width);
│ │ │ │ │ + 77
│ │ │ │ │ + 78 void setHeight(size_t height);
│ │ │ │ │ + 79
│ │ │ │ │ +88 ImageContext(size_t width, size_t height);
│ │ │ │ │ + 89
│ │ │ │ │ + 90private:
│ │ │ │ │ + 91 byte* d_pixels;
│ │ │ │ │ + 92 size_t d_length;
│ │ │ │ │ + 93 size_t d_width;
│ │ │ │ │ + 94 size_t d_height;
│ │ │ │ │ + 95 size_t d_currentOffset;
│ │ │ │ │ + 96 PixelFormat d_format;
│ │ │ │ │ + 97
│ │ │ │ │ + 98 // Disabled operation
│ │ │ │ │ + 99 ImageContext(ImageContext&);
│ │ │ │ │ + 100 ImageContext& operator=(ImageContext&);
│ │ │ │ │ + 101};
│ │ │ │ │ + 102
│ │ │ │ │ + 103
│ │ │ │ │ + 104} // End of section namespace SILLY
│ │ │ │ │ + 105
│ │ │ │ │ + 106// Inclue inline function when needed
│ │ │ │ │ + 107#ifdef SILLY_OPT_INLINE
│ │ │ │ │ + 108#include "SILLYImageContext.icpp"
│ │ │ │ │ + 109#endif
│ │ │ │ │ + 110
│ │ │ │ │ + 111#endif // end of guard _SILLYImageContext_h_
│ │ │ │ │ +SILLY
│ │ │ │ │ +Simple Image Loading LibrarY namespace.
│ │ │ │ │ +Definition: SILLYJPGImageContext.cpp:46
│ │ │ │ │ +SILLY::PixelFormat
│ │ │ │ │ +PixelFormat
│ │ │ │ │ +List all pixel format supported.
│ │ │ │ │ +Definition: SILLYBase.h:60
│ │ │ │ │ +SILLY::ImageContext
│ │ │ │ │ +Store the data needed by an ImageLoader object during the parsing of an image.
│ │ │ │ │ +Definition: SILLYImageContext.h:44
│ │ │ │ │ +SILLY::ImageContext::setNextPixel
│ │ │ │ │ +void setNextPixel(byte red, byte green, byte bleu, byte alpha)
│ │ │ │ │ +Set the next pixel of the image.
│ │ │ │ │ +SILLY::ImageContext::setDestination
│ │ │ │ │ +void setDestination(byte *pixels, size_t length, PixelFormat format)
│ │ │ │ │ +Set the destination of the loading.
│ │ │ │ │ +SILLY::ImageContext::ImageContext
│ │ │ │ │ +ImageContext(size_t width, size_t height)
│ │ │ │ │ +Constructor.
│ │ │ │ │ +SILLY::ImageContext::~ImageContext
│ │ │ │ │ +virtual ~ImageContext()
│ │ │ │ │ +Destructor.
│ │ │ │ │
│ │ │ │ │ ===============================================================================
│ │ │ │ │ Generated by [doxygen] 1.9.4
│ │ │ ├── ./usr/share/doc/libsilly-doc/html/a00113_source.html
│ │ │ │ @@ -1,15 +1,15 @@
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │ -
Simple Image Loading LibrarY: /build/reproducible-path/silly-0.1.0/include/SILLY.h Source File
│ │ │ │ +
Simple Image Loading LibrarY: /build/reproducible-path/silly-0.1.0/include/SILLYBase.h Source File
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │ @@ -39,23 +39,23 @@
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │ -
│ │ │ │ -
│ │ │ │ +
│ │ │ │ +
│ │ │ │
│ │ │ │
│ │ │ │ -
│ │ │ │ +
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │ @@ -71,35 +71,67 @@
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
117#include "SILLYBase.h"
│ │ │ │ -
118#include "SILLYDataSource.h"
│ │ │ │ -
119#include "SILLYFileDataSource.h"
│ │ │ │ -
120#include "SILLYMemoryDataSource.h"
│ │ │ │ -
121#include "SILLYImageLoader.h"
│ │ │ │ -
122#include "SILLYImageContext.h"
│ │ │ │ -
123#include "SILLYImageLoaderManager.h"
│ │ │ │ -
124#include "SILLYImage.h"
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
Simple Image Loading LibrarY namespace.
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
35#if defined(USE_SILLYOPTIONS_H)
│ │ │ │ +
36#include "SILLYOptions.h"
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
39#if defined(_WIN32) || defined(__WIN32__)
│ │ │ │ +
40# undef SILLY_OPT_INLINE
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
43# define SILLY_EXPORT __declspec(dllexport)
│ │ │ │ +
│ │ │ │ +
45# define SILLY_EXPORT __declspec(dllimport)
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
Simple Image Loading LibrarY namespace.
│ │ │ │ +
unsigned char byte
Typename for a byte.
│ │ │ │ +
void SILLYCleanup()
Cleanup SILLY library internal.
│ │ │ │ +
PixelFormat
List all pixel format supported.
│ │ │ │ +
bool SILLYInit()
Initialize the SILLY Library.
│ │ │ │ +
PixelOrigin
List all pixel origin supported.
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │ ├── html2text {}
│ │ │ │ │ @@ -4,21 +4,21 @@
│ │ │ │ │
│ │ │ │ │ Simple Image Loading LibrarY 0.1.0
│ │ │ │ │
│ │ │ │ │ * build
│ │ │ │ │ * reproducible-path
│ │ │ │ │ * silly-0.1.0
│ │ │ │ │ * include
│ │ │ │ │ -SILLY.h
│ │ │ │ │ +SILLYBase.h
│ │ │ │ │ 1/***********************************************************************
│ │ │ │ │ - 2 filename: SILLY.h
│ │ │ │ │ - 3 created: 10 Jun 2006
│ │ │ │ │ + 2 filename: SILLYBase.h
│ │ │ │ │ + 3 created: 2006/06/10
│ │ │ │ │ 4 author: Olivier Delannoy
│ │ │ │ │ 5
│ │ │ │ │ - 6 purpose: Master include for the SILLY library
│ │ │ │ │ + 6 purpose: Common header for the SILLY library
│ │ │ │ │ 7*************************************************************************/
│ │ │ │ │ 8/***************************************************************************
│ │ │ │ │ 9 * Copyright (C) 2004 - 2006 Paul D Turner & The CEGUI Development Team
│ │ │ │ │ 10 *
│ │ │ │ │ 11 * Permission is hereby granted, free of charge, to any person obtaining
│ │ │ │ │ 12 * a copy of this software and associated documentation files (the
│ │ │ │ │ 13 * "Software"), to deal in the Software without restriction, including
│ │ │ │ │ @@ -35,33 +35,82 @@
│ │ │ │ │ 24 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
│ │ │ │ │ 25 * IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR
│ │ │ │ │ 26 * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
│ │ │ │ │ 27 * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
│ │ │ │ │ 28 * OTHER DEALINGS IN THE SOFTWARE.
│ │ │ │ │ 29
│ │ │ │ │ ***************************************************************************/
│ │ │ │ │ - 30#ifndef _SILLY_h_
│ │ │ │ │ - 31#define _SILLY_h_
│ │ │ │ │ - 109namespace SILLY
│ │ │ │ │ - 110{
│ │ │ │ │ - 111
│ │ │ │ │ - 112}
│ │ │ │ │ - 113
│ │ │ │ │ - 114
│ │ │ │ │ - 115
│ │ │ │ │ - 116
│ │ │ │ │ - 117#include "SILLYBase.h"
│ │ │ │ │ - 118#include "SILLYDataSource.h"
│ │ │ │ │ - 119#include "SILLYFileDataSource.h"
│ │ │ │ │ - 120#include "SILLYMemoryDataSource.h"
│ │ │ │ │ - 121#include "SILLYImageLoader.h"
│ │ │ │ │ - 122#include "SILLYImageContext.h"
│ │ │ │ │ - 123#include "SILLYImageLoaderManager.h"
│ │ │ │ │ - 124#include "SILLYImage.h"
│ │ │ │ │ - 125
│ │ │ │ │ - 126#endif // end of guard _SILLY_h_
│ │ │ │ │ + 30#ifndef _SILLYBase_h_
│ │ │ │ │ + 31#define _SILLYBase_h_
│ │ │ │ │ + 32#include
│ │ │ │ │ + 33#include
│ │ │ │ │ + 34
│ │ │ │ │ + 35#if defined(USE_SILLYOPTIONS_H)
│ │ │ │ │ + 36#include "SILLYOptions.h"
│ │ │ │ │ + 37#endif
│ │ │ │ │ + 38
│ │ │ │ │ + 39#if defined(_WIN32) || defined(__WIN32__)
│ │ │ │ │ + 40# undef SILLY_OPT_INLINE // No inlining
│ │ │ │ │ + 41# undef SILLY_BE // Little Endian
│ │ │ │ │ + 42# ifdef SILLY_EXPORTS
│ │ │ │ │ + 43# define SILLY_EXPORT __declspec(dllexport)
│ │ │ │ │ + 44# else
│ │ │ │ │ + 45# define SILLY_EXPORT __declspec(dllimport)
│ │ │ │ │ + 46# endif
│ │ │ │ │ + 47#else
│ │ │ │ │ + 48# define SILLY_EXPORT
│ │ │ │ │ + 49#endif
│ │ │ │ │ + 50
│ │ │ │ │ + 51// Start of section namespace SILLY
│ │ │ │ │ + 52namespace SILLY
│ │ │ │ │ + 53{
│ │ │ │ │ + 54
│ │ │ │ │ +59enum PixelFormat
│ │ │ │ │ + 60{
│ │ │ │ │ + 61 PF_A1B5G5R5, //
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │ -Simple Image Loading LibrarY: /build/reproducible-path/silly-0.1.0/include/SILLYImageLoader.h Source File
│ │ │ │ +Simple Image Loading LibrarY: /build/reproducible-path/silly-0.1.0/include/SILLYImageLoaderManager.icpp Source File
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │ @@ -39,95 +39,79 @@
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
30#ifndef _SILLYImageLoader_h_
│ │ │ │ -
31#define _SILLYImageLoader_h_
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ +
1/***********************************************************************
│ │ │ │ +
2 filename: SILLYImageLoaderManager.icpp
│ │ │ │ +
│ │ │ │ +
4 author: Olivier Delannoy
│ │ │ │ +
│ │ │ │ +
6 purpose: Inline definition for ImageLoaderManager class
│ │ │ │ +
7*************************************************************************/
│ │ │ │ +
8/***************************************************************************
│ │ │ │ +
9 * Copyright (C) 2004 - 2006 Paul D Turner & The CEGUI Development Team
│ │ │ │ +
│ │ │ │ +
11 * Permission is hereby granted, free of charge, to any person obtaining
│ │ │ │ +
12 * a copy of this software and associated documentation files (the
│ │ │ │ +
13 * "Software"), to deal in the Software without restriction, including
│ │ │ │ +
14 * without limitation the rights to use, copy, modify, merge, publish,
│ │ │ │ +
15 * distribute, sublicense, and/or sell copies of the Software, and to
│ │ │ │ +
16 * permit persons to whom the Software is furnished to do so, subject to
│ │ │ │ +
17 * the following conditions:
│ │ │ │ +
│ │ │ │ +
19 * The above copyright notice and this permission notice shall be
│ │ │ │ +
20 * included in all copies or substantial portions of the Software.
│ │ │ │ +
│ │ │ │ +
22 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
│ │ │ │ +
23 * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
│ │ │ │ +
24 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
│ │ │ │ +
25 * IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR
│ │ │ │ +
26 * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
│ │ │ │ +
27 * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
│ │ │ │ +
28 * OTHER DEALINGS IN THE SOFTWARE.
│ │ │ │ +
29 ***************************************************************************/
│ │ │ │ +
│ │ │ │ +
31// Start of section namespace SILLY
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
34inline ImageLoaderList::iterator ImageLoaderManager::begin()
│ │ │ │
│ │ │ │ -
│ │ │ │ -
│ │ │ │ +
36 return d_loaders.begin();
│ │ │ │ +
│ │ │ │
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ +
39inline ImageLoaderList::iterator ImageLoaderManager::end()
│ │ │ │ +
│ │ │ │ +
41 return d_loaders.end();
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
44inline ImageLoaderManager* ImageLoaderManager::getSingletonPtr()
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
49inline ImageLoaderManager& ImageLoaderManager::getSingleton()
│ │ │ │ +
│ │ │ │ +
51 assert(d_instance && "ASSERT: Singleton object not yet created");
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
55inline void ImageLoaderManager::add(ImageLoader* loader)
│ │ │ │ +
│ │ │ │ +
57 assert(loader && "ASSERT: adding a none existing loader object");
│ │ │ │ +
58 d_loaders.push_back(loader);
│ │ │ │ +
│ │ │ │
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
109#ifdef SILLY_OPT_INLINE
│ │ │ │ -
110#include "SILLYImageLoader.icpp"
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
Simple Image Loading LibrarY namespace.
│ │ │ │ -
PixelFormat
List all pixel format supported.
│ │ │ │ -
PixelOrigin
List all pixel origin supported.
│ │ │ │ -
This is an abstract class used to provide data to the loader.
│ │ │ │ -
Store the data needed by an ImageLoader object during the parsing of an image.
│ │ │ │ -
This is an abstract class that define the interface of all image loader.
│ │ │ │ -
ImageLoader(const char *name)
Constructor.
│ │ │ │ -
virtual ImageContext * loadHeader(PixelFormat &formatSource, DataSource *data)=0
Parse the header of the image and fill the header struct.
│ │ │ │ -
virtual bool loadImageData(PixelOrigin origin, DataSource *data, ImageContext *context)=0
Parse the pixels data of the image and fill the header struct.
│ │ │ │ -
virtual ~ImageLoader()
Destructor.
│ │ │ │ -
const char * getIdentifierString() const
Return the name of the loader.
│ │ │ │ +
61} // End of section namespace SILLY
│ │ │ │ +
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │ ├── html2text {}
│ │ │ │ │ @@ -4,21 +4,21 @@
│ │ │ │ │
│ │ │ │ │ Simple Image Loading LibrarY 0.1.0
│ │ │ │ │
│ │ │ │ │ * build
│ │ │ │ │ * reproducible-path
│ │ │ │ │ * silly-0.1.0
│ │ │ │ │ * include
│ │ │ │ │ -SILLYImageLoader.h
│ │ │ │ │ +SILLYImageLoaderManager.icpp
│ │ │ │ │ 1/***********************************************************************
│ │ │ │ │ - 2 filename: SILLYImageLoader.h
│ │ │ │ │ + 2 filename: SILLYImageLoaderManager.icpp
│ │ │ │ │ 3 created: 10 Jun 2006
│ │ │ │ │ 4 author: Olivier Delannoy
│ │ │ │ │ 5
│ │ │ │ │ - 6 purpose: Abstract class for all image loader
│ │ │ │ │ + 6 purpose: Inline definition for ImageLoaderManager class
│ │ │ │ │ 7*************************************************************************/
│ │ │ │ │ 8/***************************************************************************
│ │ │ │ │ 9 * Copyright (C) 2004 - 2006 Paul D Turner & The CEGUI Development Team
│ │ │ │ │ 10 *
│ │ │ │ │ 11 * Permission is hereby granted, free of charge, to any person obtaining
│ │ │ │ │ 12 * a copy of this software and associated documentation files (the
│ │ │ │ │ 13 * "Software"), to deal in the Software without restriction, including
│ │ │ │ │ @@ -35,87 +35,43 @@
│ │ │ │ │ 24 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
│ │ │ │ │ 25 * IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR
│ │ │ │ │ 26 * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
│ │ │ │ │ 27 * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
│ │ │ │ │ 28 * OTHER DEALINGS IN THE SOFTWARE.
│ │ │ │ │ 29
│ │ │ │ │ ***************************************************************************/
│ │ │ │ │ - 30#ifndef _SILLYImageLoader_h_
│ │ │ │ │ - 31#define _SILLYImageLoader_h_
│ │ │ │ │ - 32#include "SILLYBase.h"
│ │ │ │ │ - 33// Start of section namespace SILLY
│ │ │ │ │ - 34namespace SILLY
│ │ │ │ │ + 30
│ │ │ │ │ + 31// Start of section namespace SILLY
│ │ │ │ │ + 32namespace SILLY
│ │ │ │ │ + 33{
│ │ │ │ │ + 34inline ImageLoaderList::iterator ImageLoaderManager::begin()
│ │ │ │ │ 35{
│ │ │ │ │ - 36class DataSource; // Forward declaration
│ │ │ │ │ - 37class ImageContext; // Forward declaration
│ │ │ │ │ + 36 return d_loaders.begin();
│ │ │ │ │ + 37}
│ │ │ │ │ 38
│ │ │ │ │ -46class SILLY_EXPORT ImageLoader
│ │ │ │ │ - 47{
│ │ │ │ │ - 48protected:
│ │ │ │ │ -52 ImageLoader(const char* name);
│ │ │ │ │ - 53public:
│ │ │ │ │ + 39inline ImageLoaderList::iterator ImageLoaderManager::end()
│ │ │ │ │ + 40{
│ │ │ │ │ + 41 return d_loaders.end();
│ │ │ │ │ + 42}
│ │ │ │ │ + 43
│ │ │ │ │ + 44inline ImageLoaderManager* ImageLoaderManager::getSingletonPtr()
│ │ │ │ │ + 45{
│ │ │ │ │ + 46 return d_instance;
│ │ │ │ │ + 47}
│ │ │ │ │ + 48
│ │ │ │ │ + 49inline ImageLoaderManager& ImageLoaderManager::getSingleton()
│ │ │ │ │ + 50{
│ │ │ │ │ + 51 assert(d_instance && "ASSERT: Singleton object not yet created");
│ │ │ │ │ + 52 return *d_instance;
│ │ │ │ │ + 53}
│ │ │ │ │ 54
│ │ │ │ │ -59 virtual ~ImageLoader();
│ │ │ │ │ + 55inline void ImageLoaderManager::add(ImageLoader* loader)
│ │ │ │ │ + 56{
│ │ │ │ │ + 57 assert(loader && "ASSERT: adding a none existing loader object");
│ │ │ │ │ + 58 d_loaders.push_back(loader);
│ │ │ │ │ + 59}
│ │ │ │ │ 60
│ │ │ │ │ -71 virtual ImageContext* loadHeader(PixelFormat& formatSource, DataSource*
│ │ │ │ │ -data) = 0;
│ │ │ │ │ - 72
│ │ │ │ │ - 73
│ │ │ │ │ -86 virtual bool loadImageData(PixelOrigin origin, DataSource* data,
│ │ │ │ │ -ImageContext* context) = 0;
│ │ │ │ │ - 87
│ │ │ │ │ - 94 void destroyContext(ImageContext* context);
│ │ │ │ │ - 95
│ │ │ │ │ -100 const char* getIdentifierString() const;
│ │ │ │ │ - 101private:
│ │ │ │ │ - 102 const char* d_name;
│ │ │ │ │ - 103
│ │ │ │ │ - 104};
│ │ │ │ │ - 105
│ │ │ │ │ - 106} // End of section namespace SILLY
│ │ │ │ │ - 107
│ │ │ │ │ - 108// Inclue inline function when needed
│ │ │ │ │ - 109#ifdef SILLY_OPT_INLINE
│ │ │ │ │ - 110#include "SILLYImageLoader.icpp"
│ │ │ │ │ - 111#endif
│ │ │ │ │ - 112
│ │ │ │ │ - 113#endif // end of guard _SILLYImageLoader_h_
│ │ │ │ │ -SILLY
│ │ │ │ │ -Simple Image Loading LibrarY namespace.
│ │ │ │ │ -Definition: SILLYJPGImageContext.cpp:46
│ │ │ │ │ -SILLY::PixelFormat
│ │ │ │ │ -PixelFormat
│ │ │ │ │ -List all pixel format supported.
│ │ │ │ │ -Definition: SILLYBase.h:60
│ │ │ │ │ -SILLY::PixelOrigin
│ │ │ │ │ -PixelOrigin
│ │ │ │ │ -List all pixel origin supported.
│ │ │ │ │ -Definition: SILLYBase.h:71
│ │ │ │ │ -SILLY::DataSource
│ │ │ │ │ -This is an abstract class used to provide data to the loader.
│ │ │ │ │ -Definition: SILLYDataSource.h:47
│ │ │ │ │ -SILLY::ImageContext
│ │ │ │ │ -Store the data needed by an ImageLoader object during the parsing of an image.
│ │ │ │ │ -Definition: SILLYImageContext.h:44
│ │ │ │ │ -SILLY::ImageLoader
│ │ │ │ │ -This is an abstract class that define the interface of all image loader.
│ │ │ │ │ -Definition: SILLYImageLoader.h:47
│ │ │ │ │ -SILLY::ImageLoader::ImageLoader
│ │ │ │ │ -ImageLoader(const char *name)
│ │ │ │ │ -Constructor.
│ │ │ │ │ -SILLY::ImageLoader::loadHeader
│ │ │ │ │ -virtual ImageContext * loadHeader(PixelFormat &formatSource, DataSource
│ │ │ │ │ -*data)=0
│ │ │ │ │ -Parse the header of the image and fill the header struct.
│ │ │ │ │ -SILLY::ImageLoader::loadImageData
│ │ │ │ │ -virtual bool loadImageData(PixelOrigin origin, DataSource *data, ImageContext
│ │ │ │ │ -*context)=0
│ │ │ │ │ -Parse the pixels data of the image and fill the header struct.
│ │ │ │ │ -SILLY::ImageLoader::~ImageLoader
│ │ │ │ │ -virtual ~ImageLoader()
│ │ │ │ │ -Destructor.
│ │ │ │ │ -SILLY::ImageLoader::getIdentifierString
│ │ │ │ │ -const char * getIdentifierString() const
│ │ │ │ │ -Return the name of the loader.
│ │ │ │ │ + 61} // End of section namespace SILLY
│ │ │ │ │ + 62
│ │ │ │ │
│ │ │ │ │ ===============================================================================
│ │ │ │ │ Generated by [doxygen] 1.9.4
│ │ │ ├── ./usr/share/doc/libsilly-doc/html/a00119_source.html
│ │ │ │ @@ -1,15 +1,15 @@
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │ -
Simple Image Loading LibrarY: /build/reproducible-path/silly-0.1.0/include/SILLYFileDataSource.icpp Source File
│ │ │ │ +
Simple Image Loading LibrarY: /build/reproducible-path/silly-0.1.0/include/SILLYDataSource.h Source File
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │ @@ -39,67 +39,77 @@
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │ -
1/***********************************************************************
│ │ │ │ -
2 filename: SILLYFileDataSource.icpp
│ │ │ │ -
│ │ │ │ -
4 author: Olivier Delannoy
│ │ │ │ -
│ │ │ │ -
6 purpose: Inline function definition for the FileDataSource class
│ │ │ │ -
7*************************************************************************/
│ │ │ │ -
8/***************************************************************************
│ │ │ │ -
9 * Copyright (C) 2004 - 2006 Paul D Turner & The CEGUI Development Team
│ │ │ │ -
│ │ │ │ -
11 * Permission is hereby granted, free of charge, to any person obtaining
│ │ │ │ -
12 * a copy of this software and associated documentation files (the
│ │ │ │ -
13 * "Software"), to deal in the Software without restriction, including
│ │ │ │ -
14 * without limitation the rights to use, copy, modify, merge, publish,
│ │ │ │ -
15 * distribute, sublicense, and/or sell copies of the Software, and to
│ │ │ │ -
16 * permit persons to whom the Software is furnished to do so, subject to
│ │ │ │ -
17 * the following conditions:
│ │ │ │ -
│ │ │ │ -
19 * The above copyright notice and this permission notice shall be
│ │ │ │ -
20 * included in all copies or substantial portions of the Software.
│ │ │ │ -
│ │ │ │ -
22 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
│ │ │ │ -
23 * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
│ │ │ │ -
24 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
│ │ │ │ -
25 * IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR
│ │ │ │ -
26 * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
│ │ │ │ -
27 * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
│ │ │ │ -
28 * OTHER DEALINGS IN THE SOFTWARE.
│ │ │ │ -
29 ***************************************************************************/
│ │ │ │ -
│ │ │ │ -
31// Start of section namespace SILLY
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
34inline bool FileDataSource::isValid() const
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
39inline const byte* FileDataSource::getDataPtr() const
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
44inline size_t FileDataSource::getSize() const
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
49} // End of section namespace SILLY
│ │ │ │ -
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
30#ifndef _SILLYDataSource_h_
│ │ │ │ +
31#define _SILLYDataSource_h_
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
64 byte operator[] (
size_t offset)
const;
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
76#ifdef SILLY_OPT_INLINE
│ │ │ │ +
77#include "SILLYDataSource.icpp"
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
Simple Image Loading LibrarY namespace.
│ │ │ │ +
This is an abstract class used to provide data to the loader.
│ │ │ │ +
virtual size_t getSize() const =0
Return the size of the data.
│ │ │ │ +
virtual const byte * getDataPtr() const =0
Get raw access to the image data.
│ │ │ │ +
virtual ~DataSource()
Destructor.
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │ ├── html2text {}
│ │ │ │ │ @@ -4,21 +4,21 @@
│ │ │ │ │
│ │ │ │ │ Simple Image Loading LibrarY 0.1.0
│ │ │ │ │
│ │ │ │ │ * build
│ │ │ │ │ * reproducible-path
│ │ │ │ │ * silly-0.1.0
│ │ │ │ │ * include
│ │ │ │ │ -SILLYFileDataSource.icpp
│ │ │ │ │ +SILLYDataSource.h
│ │ │ │ │ 1/***********************************************************************
│ │ │ │ │ - 2 filename: SILLYFileDataSource.icpp
│ │ │ │ │ - 3 created: 20 Jul 2006
│ │ │ │ │ + 2 filename: SILLYDataSource.h
│ │ │ │ │ + 3 created: 10 Jun 2006
│ │ │ │ │ 4 author: Olivier Delannoy
│ │ │ │ │ 5
│ │ │ │ │ - 6 purpose: Inline function definition for the FileDataSource class
│ │ │ │ │ + 6 purpose: SILLY::DataSource declaration for the SILLY library
│ │ │ │ │ 7*************************************************************************/
│ │ │ │ │ 8/***************************************************************************
│ │ │ │ │ 9 * Copyright (C) 2004 - 2006 Paul D Turner & The CEGUI Development Team
│ │ │ │ │ 10 *
│ │ │ │ │ 11 * Permission is hereby granted, free of charge, to any person obtaining
│ │ │ │ │ 12 * a copy of this software and associated documentation files (the
│ │ │ │ │ 13 * "Software"), to deal in the Software without restriction, including
│ │ │ │ │ @@ -35,31 +35,51 @@
│ │ │ │ │ 24 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
│ │ │ │ │ 25 * IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR
│ │ │ │ │ 26 * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
│ │ │ │ │ 27 * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
│ │ │ │ │ 28 * OTHER DEALINGS IN THE SOFTWARE.
│ │ │ │ │ 29
│ │ │ │ │ ***************************************************************************/
│ │ │ │ │ - 30
│ │ │ │ │ - 31// Start of section namespace SILLY
│ │ │ │ │ - 32namespace SILLY
│ │ │ │ │ - 33{
│ │ │ │ │ - 34inline bool FileDataSource::isValid() const
│ │ │ │ │ - 35{
│ │ │ │ │ - 36 return d_error;
│ │ │ │ │ - 37}
│ │ │ │ │ - 38
│ │ │ │ │ - 39inline const byte* FileDataSource::getDataPtr() const
│ │ │ │ │ - 40{
│ │ │ │ │ - 41 return d_bytes;
│ │ │ │ │ - 42}
│ │ │ │ │ - 43
│ │ │ │ │ - 44inline size_t FileDataSource::getSize() const
│ │ │ │ │ - 45{
│ │ │ │ │ - 46 return d_size;
│ │ │ │ │ - 47}
│ │ │ │ │ - 48
│ │ │ │ │ - 49} // End of section namespace SILLY
│ │ │ │ │ - 50
│ │ │ │ │ + 30#ifndef _SILLYDataSource_h_
│ │ │ │ │ + 31#define _SILLYDataSource_h_
│ │ │ │ │ + 32#include "SILLYBase.h"
│ │ │ │ │ + 33
│ │ │ │ │ + 34// Start of section namespace SILLY
│ │ │ │ │ + 35namespace SILLY
│ │ │ │ │ + 36{
│ │ │ │ │ + 37
│ │ │ │ │ +46class SILLY_EXPORT DataSource
│ │ │ │ │ + 47{
│ │ │ │ │ + 48public:
│ │ │ │ │ +53 virtual ~DataSource();
│ │ │ │ │ +58 virtual const byte * getDataPtr() const = 0;
│ │ │ │ │ +64 byte operator[] (size_t offset) const;
│ │ │ │ │ +69 virtual size_t getSize() const = 0;
│ │ │ │ │ + 70};
│ │ │ │ │ + 71
│ │ │ │ │ + 72
│ │ │ │ │ + 73} // End of section namespace SILLY
│ │ │ │ │ + 74
│ │ │ │ │ + 75// Inclue inline function when needed
│ │ │ │ │ + 76#ifdef SILLY_OPT_INLINE
│ │ │ │ │ + 77#include "SILLYDataSource.icpp"
│ │ │ │ │ + 78#endif
│ │ │ │ │ + 79
│ │ │ │ │ + 80#endif // end of guard _SILLYDataSource_h_
│ │ │ │ │ +SILLY
│ │ │ │ │ +Simple Image Loading LibrarY namespace.
│ │ │ │ │ +Definition: SILLYJPGImageContext.cpp:46
│ │ │ │ │ +SILLY::DataSource
│ │ │ │ │ +This is an abstract class used to provide data to the loader.
│ │ │ │ │ +Definition: SILLYDataSource.h:47
│ │ │ │ │ +SILLY::DataSource::getSize
│ │ │ │ │ +virtual size_t getSize() const =0
│ │ │ │ │ +Return the size of the data.
│ │ │ │ │ +SILLY::DataSource::getDataPtr
│ │ │ │ │ +virtual const byte * getDataPtr() const =0
│ │ │ │ │ +Get raw access to the image data.
│ │ │ │ │ +SILLY::DataSource::~DataSource
│ │ │ │ │ +virtual ~DataSource()
│ │ │ │ │ +Destructor.
│ │ │ │ │
│ │ │ │ │ ===============================================================================
│ │ │ │ │ Generated by [doxygen] 1.9.4
│ │ │ ├── ./usr/share/doc/libsilly-doc/html/a00122_source.html
│ │ │ │ @@ -1,15 +1,15 @@
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │ -
Simple Image Loading LibrarY: /build/reproducible-path/silly-0.1.0/include/SILLYDataSource.h Source File
│ │ │ │ +
Simple Image Loading LibrarY: /build/reproducible-path/silly-0.1.0/include/SILLYMemoryDataSource.icpp Source File
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │ @@ -39,77 +39,63 @@
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
30#ifndef _SILLYDataSource_h_
│ │ │ │ -
31#define _SILLYDataSource_h_
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ +
1/***********************************************************************
│ │ │ │ +
2 Filename: SILLYMemoryDataSource.icpp
│ │ │ │ +
│ │ │ │ +
4 author: Olivier Delannoy
│ │ │ │ +
│ │ │ │ +
6 purpose: Inline function definition for MemoryDataSource class
│ │ │ │ +
7*************************************************************************/
│ │ │ │ +
8/***************************************************************************
│ │ │ │ +
9 * Copyright (C) 2004 - 2006 Paul D Turner & The CEGUI Development Team
│ │ │ │ +
│ │ │ │ +
11 * Permission is hereby granted, free of charge, to any person obtaining
│ │ │ │ +
12 * a copy of this software and associated documentation files (the
│ │ │ │ +
13 * "Software"), to deal in the Software without restriction, including
│ │ │ │ +
14 * without limitation the rights to use, copy, modify, merge, publish,
│ │ │ │ +
15 * distribute, sublicense, and/or sell copies of the Software, and to
│ │ │ │ +
16 * permit persons to whom the Software is furnished to do so, subject to
│ │ │ │ +
17 * the following conditions:
│ │ │ │ +
│ │ │ │ +
19 * The above copyright notice and this permission notice shall be
│ │ │ │ +
20 * included in all copies or substantial portions of the Software.
│ │ │ │ +
│ │ │ │ +
22 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
│ │ │ │ +
23 * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
│ │ │ │ +
24 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
│ │ │ │ +
25 * IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR
│ │ │ │ +
26 * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
│ │ │ │ +
27 * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
│ │ │ │ +
28 * OTHER DEALINGS IN THE SOFTWARE.
│ │ │ │ +
29 ***************************************************************************/
│ │ │ │ +
│ │ │ │ +
31// Start of section namespace SILLY
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
35inline const byte* MemoryDataSource::getDataPtr() const
│ │ │ │
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
64 byte operator[] (
size_t offset)
const;
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
76#ifdef SILLY_OPT_INLINE
│ │ │ │ -
77#include "SILLYDataSource.icpp"
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
Simple Image Loading LibrarY namespace.
│ │ │ │ -
This is an abstract class used to provide data to the loader.
│ │ │ │ -
virtual size_t getSize() const =0
Return the size of the data.
│ │ │ │ -
virtual const byte * getDataPtr() const =0
Get raw access to the image data.
│ │ │ │ -
virtual ~DataSource()
Destructor.
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
40inline size_t MemoryDataSource::getSize() const
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
45} // End of section namespace SILLY
│ │ │ │ +
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │ ├── html2text {}
│ │ │ │ │ @@ -4,21 +4,21 @@
│ │ │ │ │
│ │ │ │ │ Simple Image Loading LibrarY 0.1.0
│ │ │ │ │
│ │ │ │ │ * build
│ │ │ │ │ * reproducible-path
│ │ │ │ │ * silly-0.1.0
│ │ │ │ │ * include
│ │ │ │ │ -SILLYDataSource.h
│ │ │ │ │ +SILLYMemoryDataSource.icpp
│ │ │ │ │ 1/***********************************************************************
│ │ │ │ │ - 2 filename: SILLYDataSource.h
│ │ │ │ │ + 2 Filename: SILLYMemoryDataSource.icpp
│ │ │ │ │ 3 created: 10 Jun 2006
│ │ │ │ │ 4 author: Olivier Delannoy
│ │ │ │ │ 5
│ │ │ │ │ - 6 purpose: SILLY::DataSource declaration for the SILLY library
│ │ │ │ │ + 6 purpose: Inline function definition for MemoryDataSource class
│ │ │ │ │ 7*************************************************************************/
│ │ │ │ │ 8/***************************************************************************
│ │ │ │ │ 9 * Copyright (C) 2004 - 2006 Paul D Turner & The CEGUI Development Team
│ │ │ │ │ 10 *
│ │ │ │ │ 11 * Permission is hereby granted, free of charge, to any person obtaining
│ │ │ │ │ 12 * a copy of this software and associated documentation files (the
│ │ │ │ │ 13 * "Software"), to deal in the Software without restriction, including
│ │ │ │ │ @@ -35,51 +35,27 @@
│ │ │ │ │ 24 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
│ │ │ │ │ 25 * IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR
│ │ │ │ │ 26 * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
│ │ │ │ │ 27 * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
│ │ │ │ │ 28 * OTHER DEALINGS IN THE SOFTWARE.
│ │ │ │ │ 29
│ │ │ │ │ ***************************************************************************/
│ │ │ │ │ - 30#ifndef _SILLYDataSource_h_
│ │ │ │ │ - 31#define _SILLYDataSource_h_
│ │ │ │ │ - 32#include "SILLYBase.h"
│ │ │ │ │ - 33
│ │ │ │ │ - 34// Start of section namespace SILLY
│ │ │ │ │ - 35namespace SILLY
│ │ │ │ │ + 30
│ │ │ │ │ + 31// Start of section namespace SILLY
│ │ │ │ │ + 32namespace SILLY
│ │ │ │ │ + 33{
│ │ │ │ │ + 34
│ │ │ │ │ + 35inline const byte* MemoryDataSource::getDataPtr() const
│ │ │ │ │ 36{
│ │ │ │ │ - 37
│ │ │ │ │ -46class SILLY_EXPORT DataSource
│ │ │ │ │ - 47{
│ │ │ │ │ - 48public:
│ │ │ │ │ -53 virtual ~DataSource();
│ │ │ │ │ -58 virtual const byte * getDataPtr() const = 0;
│ │ │ │ │ -64 byte operator[] (size_t offset) const;
│ │ │ │ │ -69 virtual size_t getSize() const = 0;
│ │ │ │ │ - 70};
│ │ │ │ │ - 71
│ │ │ │ │ - 72
│ │ │ │ │ - 73} // End of section namespace SILLY
│ │ │ │ │ - 74
│ │ │ │ │ - 75// Inclue inline function when needed
│ │ │ │ │ - 76#ifdef SILLY_OPT_INLINE
│ │ │ │ │ - 77#include "SILLYDataSource.icpp"
│ │ │ │ │ - 78#endif
│ │ │ │ │ - 79
│ │ │ │ │ - 80#endif // end of guard _SILLYDataSource_h_
│ │ │ │ │ -SILLY
│ │ │ │ │ -Simple Image Loading LibrarY namespace.
│ │ │ │ │ -Definition: SILLYJPGImageContext.cpp:46
│ │ │ │ │ -SILLY::DataSource
│ │ │ │ │ -This is an abstract class used to provide data to the loader.
│ │ │ │ │ -Definition: SILLYDataSource.h:47
│ │ │ │ │ -SILLY::DataSource::getSize
│ │ │ │ │ -virtual size_t getSize() const =0
│ │ │ │ │ -Return the size of the data.
│ │ │ │ │ -SILLY::DataSource::getDataPtr
│ │ │ │ │ -virtual const byte * getDataPtr() const =0
│ │ │ │ │ -Get raw access to the image data.
│ │ │ │ │ -SILLY::DataSource::~DataSource
│ │ │ │ │ -virtual ~DataSource()
│ │ │ │ │ -Destructor.
│ │ │ │ │ + 37 return d_bytes;
│ │ │ │ │ + 38}
│ │ │ │ │ + 39
│ │ │ │ │ + 40inline size_t MemoryDataSource::getSize() const
│ │ │ │ │ + 41{
│ │ │ │ │ + 42 return d_size;
│ │ │ │ │ + 43}
│ │ │ │ │ + 44
│ │ │ │ │ + 45} // End of section namespace SILLY
│ │ │ │ │ + 46
│ │ │ │ │
│ │ │ │ │ ===============================================================================
│ │ │ │ │ Generated by [doxygen] 1.9.4
│ │ │ ├── ./usr/share/doc/libsilly-doc/html/a00125_source.html
│ │ │ │ @@ -1,15 +1,15 @@
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │ -
Simple Image Loading LibrarY: /build/reproducible-path/silly-0.1.0/include/SILLYFileDataSource.h Source File
│ │ │ │ +
Simple Image Loading LibrarY: /build/reproducible-path/silly-0.1.0/include/SILLYDataSource.icpp Source File
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │ @@ -39,84 +39,62 @@
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
30#ifndef _SILLYFileDataSource_h_
│ │ │ │ -
31#define _SILLYFileDataSource_h_
│ │ │ │ -
│ │ │ │ -
33#include "SILLYDataSource.h"
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ +
1/***********************************************************************
│ │ │ │ +
2 filename: SILLYDataSource.icpp
│ │ │ │ +
│ │ │ │ +
4 author: ode@dalfy.dalfy.dyndns.org
│ │ │ │ +
│ │ │ │ +
6 purpose: Inline function definition for (F>>>ILE_SANS<<<) class
│ │ │ │ +
7*************************************************************************/
│ │ │ │ +
8/***************************************************************************
│ │ │ │ +
9 * Copyright (C) 2004 - 2006 Paul D Turner & The CEGUI Development Team
│ │ │ │ +
│ │ │ │ +
11 * Permission is hereby granted, free of charge, to any person obtaining
│ │ │ │ +
12 * a copy of this software and associated documentation files (the
│ │ │ │ +
13 * "Software"), to deal in the Software without restriction, including
│ │ │ │ +
14 * without limitation the rights to use, copy, modify, merge, publish,
│ │ │ │ +
15 * distribute, sublicense, and/or sell copies of the Software, and to
│ │ │ │ +
16 * permit persons to whom the Software is furnished to do so, subject to
│ │ │ │ +
17 * the following conditions:
│ │ │ │ +
│ │ │ │ +
19 * The above copyright notice and this permission notice shall be
│ │ │ │ +
20 * included in all copies or substantial portions of the Software.
│ │ │ │ +
│ │ │ │ +
22 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
│ │ │ │ +
23 * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
│ │ │ │ +
24 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
│ │ │ │ +
25 * IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR
│ │ │ │ +
26 * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
│ │ │ │ +
27 * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
│ │ │ │ +
28 * OTHER DEALINGS IN THE SOFTWARE.
│ │ │ │ +
29 ***************************************************************************/
│ │ │ │ +
│ │ │ │ +
31// Start of section namespace SILLY
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
34inline DataSource::~DataSource()
│ │ │ │ +
│ │ │ │ +
│ │ │ │
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
87#ifdef SILLY_OPT_INLINE
│ │ │ │ -
88#include "SILLYFileDataSource.icpp"
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
Simple Image Loading LibrarY namespace.
│ │ │ │ -
This is an abstract class used to provide data to the loader.
│ │ │ │ -
This class allow the loading of an image directly from a file.
│ │ │ │ -
const byte * getDataPtr() const
Get raw access to the image data.
│ │ │ │ -
bool isValid() const
Check wether the loading is successfull or not.
│ │ │ │ -
size_t getSize() const
Return the size of the data.
│ │ │ │ +
38inline byte DataSource::operator[](size_t offset) const
│ │ │ │ +
│ │ │ │ +
40 assert(offset < getSize() && "ASSERT: Trying to access pixel outside of the data");
│ │ │ │ +
41 return getDataPtr()[offset];
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
44} // End of section namespace SILLY
│ │ │ │ +
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │ ├── html2text {}
│ │ │ │ │ @@ -4,21 +4,21 @@
│ │ │ │ │
│ │ │ │ │ Simple Image Loading LibrarY 0.1.0
│ │ │ │ │
│ │ │ │ │ * build
│ │ │ │ │ * reproducible-path
│ │ │ │ │ * silly-0.1.0
│ │ │ │ │ * include
│ │ │ │ │ -SILLYFileDataSource.h
│ │ │ │ │ +SILLYDataSource.icpp
│ │ │ │ │ 1/***********************************************************************
│ │ │ │ │ - 2 filename: SILLYFileDataSource.h
│ │ │ │ │ - 3 created: 20 Jul 2006
│ │ │ │ │ - 4 author: Olivier Delannoy
│ │ │ │ │ + 2 filename: SILLYDataSource.icpp
│ │ │ │ │ + 3 created: 10 Jun 2006
│ │ │ │ │ + 4 author: ode@dalfy.dalfy.dyndns.org
│ │ │ │ │ 5
│ │ │ │ │ - 6 purpose: Provide file based image loading
│ │ │ │ │ + 6 purpose: Inline function definition for (F>>>ILE_SANS<<<) class
│ │ │ │ │ 7*************************************************************************/
│ │ │ │ │ 8/***************************************************************************
│ │ │ │ │ 9 * Copyright (C) 2004 - 2006 Paul D Turner & The CEGUI Development Team
│ │ │ │ │ 10 *
│ │ │ │ │ 11 * Permission is hereby granted, free of charge, to any person obtaining
│ │ │ │ │ 12 * a copy of this software and associated documentation files (the
│ │ │ │ │ 13 * "Software"), to deal in the Software without restriction, including
│ │ │ │ │ @@ -35,60 +35,27 @@
│ │ │ │ │ 24 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
│ │ │ │ │ 25 * IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR
│ │ │ │ │ 26 * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
│ │ │ │ │ 27 * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
│ │ │ │ │ 28 * OTHER DEALINGS IN THE SOFTWARE.
│ │ │ │ │ 29
│ │ │ │ │ ***************************************************************************/
│ │ │ │ │ - 30#ifndef _SILLYFileDataSource_h_
│ │ │ │ │ - 31#define _SILLYFileDataSource_h_
│ │ │ │ │ - 32#include "SILLYBase.h"
│ │ │ │ │ - 33#include "SILLYDataSource.h"
│ │ │ │ │ - 34// Start of section namespace SILLY
│ │ │ │ │ - 35namespace SILLY
│ │ │ │ │ - 36{
│ │ │ │ │ + 30
│ │ │ │ │ + 31// Start of section namespace SILLY
│ │ │ │ │ + 32namespace SILLY
│ │ │ │ │ + 33{
│ │ │ │ │ + 34inline DataSource::~DataSource()
│ │ │ │ │ + 35{
│ │ │ │ │ + 36}
│ │ │ │ │ 37
│ │ │ │ │ -48class SILLY_EXPORT FileDataSource : public DataSource
│ │ │ │ │ - 49{
│ │ │ │ │ - 50public:
│ │ │ │ │ - 60 FileDataSource(const char* filename);
│ │ │ │ │ - 64 ~FileDataSource();
│ │ │ │ │ -73 bool isValid() const;
│ │ │ │ │ - 74
│ │ │ │ │ -75 const byte* getDataPtr() const;
│ │ │ │ │ -76 size_t getSize() const;
│ │ │ │ │ - 77private:
│ │ │ │ │ - 78 bool d_error;
│ │ │ │ │ - 79 byte* d_bytes;
│ │ │ │ │ - 80 size_t d_size;
│ │ │ │ │ - 81};
│ │ │ │ │ - 82
│ │ │ │ │ - 83
│ │ │ │ │ - 84} // End of section namespace SILLY
│ │ │ │ │ - 85
│ │ │ │ │ - 86// Inclue inline function when needed
│ │ │ │ │ - 87#ifdef SILLY_OPT_INLINE
│ │ │ │ │ - 88#include "SILLYFileDataSource.icpp"
│ │ │ │ │ - 89#endif
│ │ │ │ │ - 90
│ │ │ │ │ - 91#endif // end of guard _SILLYFileDataSource_h_
│ │ │ │ │ -SILLY
│ │ │ │ │ -Simple Image Loading LibrarY namespace.
│ │ │ │ │ -Definition: SILLYJPGImageContext.cpp:46
│ │ │ │ │ -SILLY::DataSource
│ │ │ │ │ -This is an abstract class used to provide data to the loader.
│ │ │ │ │ -Definition: SILLYDataSource.h:47
│ │ │ │ │ -SILLY::FileDataSource
│ │ │ │ │ -This class allow the loading of an image directly from a file.
│ │ │ │ │ -Definition: SILLYFileDataSource.h:49
│ │ │ │ │ -SILLY::FileDataSource::getDataPtr
│ │ │ │ │ -const byte * getDataPtr() const
│ │ │ │ │ -Get raw access to the image data.
│ │ │ │ │ -SILLY::FileDataSource::isValid
│ │ │ │ │ -bool isValid() const
│ │ │ │ │ -Check wether the loading is successfull or not.
│ │ │ │ │ -SILLY::FileDataSource::getSize
│ │ │ │ │ -size_t getSize() const
│ │ │ │ │ -Return the size of the data.
│ │ │ │ │ + 38inline byte DataSource::operator[](size_t offset) const
│ │ │ │ │ + 39{
│ │ │ │ │ + 40 assert(offset < getSize() && "ASSERT: Trying to access pixel outside of the
│ │ │ │ │ +data");
│ │ │ │ │ + 41 return getDataPtr()[offset];
│ │ │ │ │ + 42}
│ │ │ │ │ + 43
│ │ │ │ │ + 44} // End of section namespace SILLY
│ │ │ │ │ + 45
│ │ │ │ │
│ │ │ │ │ ===============================================================================
│ │ │ │ │ Generated by [doxygen] 1.9.4
│ │ │ ├── ./usr/share/doc/libsilly-doc/html/a00129.html
│ │ │ │ @@ -164,15 +164,15 @@
│ │ │ │
typedef unsigned char byte |
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
Typename for a byte.
│ │ │ │
│ │ │ │ -
Definition at line 80 of file SILLYBase.h.
│ │ │ │ +
Definition at line 80 of file SILLYBase.h.
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
◆ ImageLoaderList
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
◆ PixelFormat
│ │ │ │
│ │ │ │ @@ -201,15 +201,15 @@
│ │ │ │
enum PixelFormat |
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
List all pixel format supported.
│ │ │ │
│ │ │ │ -
Definition at line 59 of file SILLYBase.h.
│ │ │ │ +
Definition at line 59 of file SILLYBase.h.
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
◆ PixelOrigin
│ │ │ │
│ │ │ │
│ │ │ │ @@ -219,15 +219,15 @@
│ │ │ │
enum PixelOrigin |
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
List all pixel origin supported.
│ │ │ │
│ │ │ │ -
Definition at line 70 of file SILLYBase.h.
│ │ │ │ +
Definition at line 70 of file SILLYBase.h.
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
◆ JPG_emit_message()
│ │ │ │
│ │ │ │ @@ -250,15 +250,15 @@
│ │ │ │
|
│ │ │ │
) |
│ │ │ │
| |
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │ ◆ JPG_error_exit()
│ │ │ │
│ │ │ │
│ │ │ │ @@ -270,15 +270,15 @@
│ │ │ │
j_common_ptr |
│ │ │ │ cinfo | ) |
│ │ │ │ |
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │ ◆ JPG_fill_input_buffer()
│ │ │ │
│ │ │ │
│ │ │ │ @@ -290,15 +290,15 @@
│ │ │ │
j_decompress_ptr |
│ │ │ │ cinfo | ) |
│ │ │ │ |
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
◆ JPG_init_source()
│ │ │ │
│ │ │ │
│ │ │ │ @@ -310,15 +310,15 @@
│ │ │ │
j_decompress_ptr |
│ │ │ │ cinfo | ) |
│ │ │ │ |
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
◆ JPG_skip_input_data()
│ │ │ │
│ │ │ │
│ │ │ │ @@ -340,15 +340,15 @@
│ │ │ │
|
│ │ │ │ ) |
│ │ │ │ | |
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │