│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │ ├── html2text {}
│ │ │ │ │ @@ -1,20 +1,19 @@
│ │ │ │ │ Simple Image Loading LibrarY 0.1.0
│ │ │ │ │ * _b_u_i_l_d
│ │ │ │ │ * _r_e_p_r_o_d_u_c_i_b_l_e_-_p_a_t_h
│ │ │ │ │ * _s_i_l_l_y_-_0_._1_._0
│ │ │ │ │ * _i_n_c_l_u_d_e
│ │ │ │ │ - * _l_o_a_d_e_r_s
│ │ │ │ │ -SILLYTGAImageContext.h
│ │ │ │ │ +SILLYDataSource.icpp
│ │ │ │ │ 1/***********************************************************************
│ │ │ │ │ -2 filename: SILLYTGAImageContext.h
│ │ │ │ │ -3 created: 11 Jun 2006
│ │ │ │ │ -4 author: Olivier Delannoy
│ │ │ │ │ +2 filename: SILLYDataSource.icpp
│ │ │ │ │ +3 created: 10 Jun 2006
│ │ │ │ │ +4 author: ode@dalfy.dalfy.dyndns.org
│ │ │ │ │ 5
│ │ │ │ │ -6 purpose: Declaration of the TGAImageContext class
│ │ │ │ │ +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
│ │ │ │ │ @@ -30,53 +29,26 @@
│ │ │ │ │ 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 ***************************************************************************/
│ │ │ │ │ -30#ifndef _SILLYTGAImageContext_h_
│ │ │ │ │ -31#define _SILLYTGAImageContext_h_
│ │ │ │ │ -32#include "SILLYBase.h"
│ │ │ │ │ -33#include "SILLYImageContext.h"
│ │ │ │ │ -34// Start of section namespace SILLY
│ │ │ │ │ -35namespace _S_I_L_L_Y
│ │ │ │ │ -36{
│ │ │ │ │ -_4_2class _T_G_A_I_m_a_g_e_C_o_n_t_e_x_t : public _I_m_a_g_e_C_o_n_t_e_x_t
│ │ │ │ │ -43{
│ │ │ │ │ -44public:
│ │ │ │ │ -45 _T_G_A_I_m_a_g_e_C_o_n_t_e_x_t(size_t width, size_t height);
│ │ │ │ │ -46 _~_T_G_A_I_m_a_g_e_C_o_n_t_e_x_t();
│ │ │ │ │ -47
│ │ │ │ │ -48private:
│ │ │ │ │ -49 byte d_idLength;
│ │ │ │ │ -50 byte d_imageType;
│ │ │ │ │ -51 byte d_depth;
│ │ │ │ │ -52 byte d_description;
│ │ │ │ │ -53
│ │ │ │ │ -54 friend class _T_G_A_I_m_a_g_e_L_o_a_d_e_r;
│ │ │ │ │ -55
│ │ │ │ │ -56};
│ │ │ │ │ -57
│ │ │ │ │ -58
│ │ │ │ │ -59} // End of section namespace SILLY
│ │ │ │ │ -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_
│ │ │ │ │ -_S_I_L_L_Y
│ │ │ │ │ -Simple Image Loading LibrarY namespace.
│ │ │ │ │ -DDeeffiinniittiioonn _S_I_L_L_Y_J_P_G_I_m_a_g_e_C_o_n_t_e_x_t_._c_p_p_:_4_6
│ │ │ │ │ -_S_I_L_L_Y_:_:_T_G_A_I_m_a_g_e_C_o_n_t_e_x_t
│ │ │ │ │ -Image Context for Targa image.
│ │ │ │ │ -DDeeffiinniittiioonn _S_I_L_L_Y_T_G_A_I_m_a_g_e_C_o_n_t_e_x_t_._h_:_4_3
│ │ │ │ │ -_S_I_L_L_Y_:_:_T_G_A_I_m_a_g_e_L_o_a_d_e_r
│ │ │ │ │ -Loader for Targa image.
│ │ │ │ │ -DDeeffiinniittiioonn _S_I_L_L_Y_T_G_A_I_m_a_g_e_L_o_a_d_e_r_._h_:_4_4
│ │ │ │ │ -_S_I_L_L_Y_:_:_I_m_a_g_e_C_o_n_t_e_x_t
│ │ │ │ │ -Store the data needed by an ImageLoader object during the parsing of an image.
│ │ │ │ │ -DDeeffiinniittiioonn _S_I_L_L_Y_I_m_a_g_e_C_o_n_t_e_x_t_._h_:_4_4
│ │ │ │ │ +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
│ │ │ │ │ ===============================================================================
│ │ │ │ │ Generated by _[_d_o_x_y_g_e_n_] 1.9.8
│ │ │ ├── ./usr/share/doc/libsilly-doc/html/a00056_source.html
│ │ │ │ @@ -1,15 +1,15 @@
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
1/***********************************************************************
│ │ │ │ -
2 filename: SILLYPNGImageLoader.icpp
│ │ │ │ -
│ │ │ │ +
2 filename: ImageLoader.icpp
│ │ │ │ +
│ │ │ │
4 author: Olivier Delannoy
│ │ │ │
│ │ │ │ -
6 purpose: Inline definition for PNGImageLoader
│ │ │ │ +
6 purpose: Inline function definition for ImageLoader 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
│ │ │ │ @@ -80,17 +80,28 @@
│ │ │ │
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
│ │ │ │ -
│ │ │ │ +
34inline ImageLoader::ImageLoader(const char* name)
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
38inline ImageLoader::~ImageLoader()
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
41inline const char* ImageLoader::getIdentifierString() const
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
46} // End of section namespace SILLY
│ │ │ │ +
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │ ├── html2text {}
│ │ │ │ │ @@ -1,20 +1,19 @@
│ │ │ │ │ Simple Image Loading LibrarY 0.1.0
│ │ │ │ │ * _b_u_i_l_d
│ │ │ │ │ * _r_e_p_r_o_d_u_c_i_b_l_e_-_p_a_t_h
│ │ │ │ │ * _s_i_l_l_y_-_0_._1_._0
│ │ │ │ │ * _i_n_c_l_u_d_e
│ │ │ │ │ - * _l_o_a_d_e_r_s
│ │ │ │ │ -SILLYPNGImageLoader.icpp
│ │ │ │ │ +SILLYImageLoader.icpp
│ │ │ │ │ 1/***********************************************************************
│ │ │ │ │ -2 filename: SILLYPNGImageLoader.icpp
│ │ │ │ │ -3 created: 11 Jun 2006
│ │ │ │ │ +2 filename: ImageLoader.icpp
│ │ │ │ │ +3 created: 10 Jun 2006
│ │ │ │ │ 4 author: Olivier Delannoy
│ │ │ │ │ 5
│ │ │ │ │ -6 purpose: Inline definition for PNGImageLoader
│ │ │ │ │ +6 purpose: Inline function definition for ImageLoader 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
│ │ │ │ │ @@ -34,12 +33,23 @@
│ │ │ │ │ 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
│ │ │ │ │ +34inline ImageLoader::ImageLoader(const char* name)
│ │ │ │ │ +35 : d_name(name)
│ │ │ │ │ +36{
│ │ │ │ │ +37}
│ │ │ │ │ +38inline ImageLoader::~ImageLoader()
│ │ │ │ │ +39{
│ │ │ │ │ +40}
│ │ │ │ │ +41inline const char* ImageLoader::getIdentifierString() const
│ │ │ │ │ +42{
│ │ │ │ │ +43 return d_name;
│ │ │ │ │ +44}
│ │ │ │ │ +45
│ │ │ │ │ +46} // End of section namespace SILLY
│ │ │ │ │ +47
│ │ │ │ │ ===============================================================================
│ │ │ │ │ Generated by _[_d_o_x_y_g_e_n_] 1.9.8
│ │ │ ├── ./usr/share/doc/libsilly-doc/html/a00059_source.html
│ │ │ │ @@ -1,15 +1,15 @@
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
30#ifndef _SILLYJPGImageLoader_h_
│ │ │ │ -
31#define _SILLYJPGImageLoader_h_
│ │ │ │ -
│ │ │ │ -
33#include "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");
│ │ │ │ +
│ │ │ │ +
│ │ │ │
│ │ │ │ -
│ │ │ │ -
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.
│ │ │ │ +
55inline void ImageLoaderManager::add(ImageLoader* loader)
│ │ │ │ +
│ │ │ │ +
57 assert(loader && "ASSERT: adding a none existing loader object");
│ │ │ │ +
58 d_loaders.push_back(loader);
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
61} // End of section namespace SILLY
│ │ │ │ +
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │ ├── html2text {}
│ │ │ │ │ @@ -1,20 +1,19 @@
│ │ │ │ │ Simple Image Loading LibrarY 0.1.0
│ │ │ │ │ * _b_u_i_l_d
│ │ │ │ │ * _r_e_p_r_o_d_u_c_i_b_l_e_-_p_a_t_h
│ │ │ │ │ * _s_i_l_l_y_-_0_._1_._0
│ │ │ │ │ * _i_n_c_l_u_d_e
│ │ │ │ │ - * _l_o_a_d_e_r_s
│ │ │ │ │ -SILLYJPGImageLoader.h
│ │ │ │ │ +SILLYImageLoaderManager.icpp
│ │ │ │ │ 1/***********************************************************************
│ │ │ │ │ -2 filename: SILLYJPGImageLoader.h
│ │ │ │ │ -3 created: 11 Jun 2006
│ │ │ │ │ +2 filename: SILLYImageLoaderManager.icpp
│ │ │ │ │ +3 created: 10 Jun 2006
│ │ │ │ │ 4 author: Olivier Delannoy
│ │ │ │ │ 5
│ │ │ │ │ -6 purpose: Declaration of the JPGImageLoader class
│ │ │ │ │ +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
│ │ │ │ │ @@ -30,68 +29,42 @@
│ │ │ │ │ 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 ***************************************************************************/
│ │ │ │ │ -30#ifndef _SILLYJPGImageLoader_h_
│ │ │ │ │ -31#define _SILLYJPGImageLoader_h_
│ │ │ │ │ -32#include "SILLYBase.h"
│ │ │ │ │ -33#include "SILLYImageLoader.h"
│ │ │ │ │ -34// Start of section namespace SILLY
│ │ │ │ │ -35namespace _S_I_L_L_Y
│ │ │ │ │ -36{
│ │ │ │ │ -37
│ │ │ │ │ -_4_2class _J_P_G_I_m_a_g_e_L_o_a_d_e_r : public _I_m_a_g_e_L_o_a_d_e_r
│ │ │ │ │ -43{
│ │ │ │ │ -44public:
│ │ │ │ │ -45 _J_P_G_I_m_a_g_e_L_o_a_d_e_r();
│ │ │ │ │ -46 _~_J_P_G_I_m_a_g_e_L_o_a_d_e_r();
│ │ │ │ │ -47 _I_m_a_g_e_C_o_n_t_e_x_t* _l_o_a_d_H_e_a_d_e_r(_P_i_x_e_l_F_o_r_m_a_t& header, _D_a_t_a_S_o_u_r_c_e* data);
│ │ │ │ │ -48 bool _l_o_a_d_I_m_a_g_e_D_a_t_a(_P_i_x_e_l_O_r_i_g_i_n origin, _D_a_t_a_S_o_u_r_c_e* data, _I_m_a_g_e_C_o_n_t_e_x_t*
│ │ │ │ │ -context);
│ │ │ │ │ -49private:
│ │ │ │ │ -50};
│ │ │ │ │ -51
│ │ │ │ │ -52
│ │ │ │ │ -53} // End of section namespace SILLY
│ │ │ │ │ +30
│ │ │ │ │ +31// Start of section namespace SILLY
│ │ │ │ │ +32namespace SILLY
│ │ │ │ │ +33{
│ │ │ │ │ +34inline ImageLoaderList::iterator ImageLoaderManager::begin()
│ │ │ │ │ +35{
│ │ │ │ │ +36 return d_loaders.begin();
│ │ │ │ │ +37}
│ │ │ │ │ +38
│ │ │ │ │ +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
│ │ │ │ │ -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_
│ │ │ │ │ -_S_I_L_L_Y
│ │ │ │ │ -Simple Image Loading LibrarY namespace.
│ │ │ │ │ -DDeeffiinniittiioonn _S_I_L_L_Y_J_P_G_I_m_a_g_e_C_o_n_t_e_x_t_._c_p_p_:_4_6
│ │ │ │ │ -_S_I_L_L_Y_:_:_P_i_x_e_l_F_o_r_m_a_t
│ │ │ │ │ -PixelFormat
│ │ │ │ │ -List all pixel format supported.
│ │ │ │ │ -DDeeffiinniittiioonn _S_I_L_L_Y_B_a_s_e_._h_:_6_0
│ │ │ │ │ -_S_I_L_L_Y_:_:_P_i_x_e_l_O_r_i_g_i_n
│ │ │ │ │ -PixelOrigin
│ │ │ │ │ -List all pixel origin supported.
│ │ │ │ │ -DDeeffiinniittiioonn _S_I_L_L_Y_B_a_s_e_._h_:_7_1
│ │ │ │ │ -_S_I_L_L_Y_:_:_J_P_G_I_m_a_g_e_L_o_a_d_e_r
│ │ │ │ │ -Loader class for JPG Image.
│ │ │ │ │ -DDeeffiinniittiioonn _S_I_L_L_Y_J_P_G_I_m_a_g_e_L_o_a_d_e_r_._h_:_4_3
│ │ │ │ │ -_S_I_L_L_Y_:_:_J_P_G_I_m_a_g_e_L_o_a_d_e_r_:_:_l_o_a_d_I_m_a_g_e_D_a_t_a
│ │ │ │ │ -bool loadImageData(PixelOrigin origin, DataSource *data, ImageContext *context)
│ │ │ │ │ -Parse the pixels data of the image and fill the header struct.
│ │ │ │ │ -DDeeffiinniittiioonn _S_I_L_L_Y_J_P_G_I_m_a_g_e_L_o_a_d_e_r_._c_p_p_:_9_0
│ │ │ │ │ -_S_I_L_L_Y_:_:_J_P_G_I_m_a_g_e_L_o_a_d_e_r_:_:_l_o_a_d_H_e_a_d_e_r
│ │ │ │ │ -ImageContext * loadHeader(PixelFormat &header, DataSource *data)
│ │ │ │ │ -Parse the header of the image and fill the header struct.
│ │ │ │ │ -DDeeffiinniittiioonn _S_I_L_L_Y_J_P_G_I_m_a_g_e_L_o_a_d_e_r_._c_p_p_:_5_6
│ │ │ │ │ -_S_I_L_L_Y_:_:_D_a_t_a_S_o_u_r_c_e
│ │ │ │ │ -This is an abstract class used to provide data to the loader.
│ │ │ │ │ -DDeeffiinniittiioonn _S_I_L_L_Y_D_a_t_a_S_o_u_r_c_e_._h_:_4_7
│ │ │ │ │ -_S_I_L_L_Y_:_:_I_m_a_g_e_C_o_n_t_e_x_t
│ │ │ │ │ -Store the data needed by an ImageLoader object during the parsing of an image.
│ │ │ │ │ -DDeeffiinniittiioonn _S_I_L_L_Y_I_m_a_g_e_C_o_n_t_e_x_t_._h_:_4_4
│ │ │ │ │ -_S_I_L_L_Y_:_:_I_m_a_g_e_L_o_a_d_e_r
│ │ │ │ │ -This is an abstract class that define the interface of all image loader.
│ │ │ │ │ -DDeeffiinniittiioonn _S_I_L_L_Y_I_m_a_g_e_L_o_a_d_e_r_._h_:_4_7
│ │ │ │ │ +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
│ │ │ │ │ +61} // End of section namespace SILLY
│ │ │ │ │ +62
│ │ │ │ │ ===============================================================================
│ │ │ │ │ Generated by _[_d_o_x_y_g_e_n_] 1.9.8
│ │ │ ├── ./usr/share/doc/libsilly-doc/html/a00062_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/SILLYFileDataSource.icpp Source File
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │ @@ -40,27 +40,27 @@
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
1/***********************************************************************
│ │ │ │ -
2 filename: SILLYJPGImageContext.icpp
│ │ │ │ -
│ │ │ │ +
2 filename: SILLYFileDataSource.icpp
│ │ │ │ +
│ │ │ │
4 author: Olivier Delannoy
│ │ │ │
│ │ │ │ -
6 purpose: Inline definition for JPG context
│ │ │ │ +
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
│ │ │ │ @@ -80,17 +80,31 @@
│ │ │ │
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
│ │ │ │ -
│ │ │ │ +
34inline bool FileDataSource::isValid() const
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
39inline const byte* FileDataSource::getDataPtr() const
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
44inline size_t FileDataSource::getSize() const
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
49} // End of section namespace SILLY
│ │ │ │ +
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │ ├── html2text {}
│ │ │ │ │ @@ -1,20 +1,19 @@
│ │ │ │ │ Simple Image Loading LibrarY 0.1.0
│ │ │ │ │ * _b_u_i_l_d
│ │ │ │ │ * _r_e_p_r_o_d_u_c_i_b_l_e_-_p_a_t_h
│ │ │ │ │ * _s_i_l_l_y_-_0_._1_._0
│ │ │ │ │ * _i_n_c_l_u_d_e
│ │ │ │ │ - * _l_o_a_d_e_r_s
│ │ │ │ │ -SILLYJPGImageContext.icpp
│ │ │ │ │ +SILLYFileDataSource.icpp
│ │ │ │ │ 1/***********************************************************************
│ │ │ │ │ -2 filename: SILLYJPGImageContext.icpp
│ │ │ │ │ -3 created: 11 Jun 2006
│ │ │ │ │ +2 filename: SILLYFileDataSource.icpp
│ │ │ │ │ +3 created: 20 Jul 2006
│ │ │ │ │ 4 author: Olivier Delannoy
│ │ │ │ │ 5
│ │ │ │ │ -6 purpose: Inline definition for JPG context
│ │ │ │ │ +6 purpose: Inline function definition for the FileDataSource 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
│ │ │ │ │ @@ -34,12 +33,26 @@
│ │ │ │ │ 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
│ │ │ │ │ +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
│ │ │ │ │ ===============================================================================
│ │ │ │ │ Generated by _[_d_o_x_y_g_e_n_] 1.9.8
│ │ │ ├── ./usr/share/doc/libsilly-doc/html/a00065_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/SILLY.h Source File
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │ @@ -40,27 +40,27 @@
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │ -
│ │ │ │ -
│ │ │ │ +
│ │ │ │ +
│ │ │ │
│ │ │ │
│ │ │ │ -
│ │ │ │ +
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │ @@ -76,54 +76,35 @@
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │ -
30#ifndef _SILLYTGAImageLoader_h_
│ │ │ │ -
31#define _SILLYTGAImageLoader_h_
│ │ │ │ -
│ │ │ │ -
33#include "SILLYImageLoader.h"
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
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.
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
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 {}
│ │ │ │ │ @@ -1,20 +1,19 @@
│ │ │ │ │ Simple Image Loading LibrarY 0.1.0
│ │ │ │ │ * _b_u_i_l_d
│ │ │ │ │ * _r_e_p_r_o_d_u_c_i_b_l_e_-_p_a_t_h
│ │ │ │ │ * _s_i_l_l_y_-_0_._1_._0
│ │ │ │ │ * _i_n_c_l_u_d_e
│ │ │ │ │ - * _l_o_a_d_e_r_s
│ │ │ │ │ -SILLYTGAImageLoader.h
│ │ │ │ │ +SILLY.h
│ │ │ │ │ 1/***********************************************************************
│ │ │ │ │ -2 filename: SILLYTGAImageLoader.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 TGAImageLoader 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
│ │ │ │ │ @@ -30,69 +29,32 @@
│ │ │ │ │ 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 ***************************************************************************/
│ │ │ │ │ -30#ifndef _SILLYTGAImageLoader_h_
│ │ │ │ │ -31#define _SILLYTGAImageLoader_h_
│ │ │ │ │ -32#include "SILLYBase.h"
│ │ │ │ │ -33#include "SILLYImageLoader.h"
│ │ │ │ │ -34// Start of section namespace SILLY
│ │ │ │ │ -35namespace _S_I_L_L_Y
│ │ │ │ │ -36{
│ │ │ │ │ -37class TGAImageContext;
│ │ │ │ │ -_4_3class _T_G_A_I_m_a_g_e_L_o_a_d_e_r : public _I_m_a_g_e_L_o_a_d_e_r
│ │ │ │ │ -44{
│ │ │ │ │ -45public:
│ │ │ │ │ -46 _T_G_A_I_m_a_g_e_L_o_a_d_e_r();
│ │ │ │ │ -47 _~_T_G_A_I_m_a_g_e_L_o_a_d_e_r();
│ │ │ │ │ -48 _I_m_a_g_e_C_o_n_t_e_x_t* _l_o_a_d_H_e_a_d_e_r(_P_i_x_e_l_F_o_r_m_a_t& formatSource, _D_a_t_a_S_o_u_r_c_e* data);
│ │ │ │ │ -49 bool _l_o_a_d_I_m_a_g_e_D_a_t_a(_P_i_x_e_l_O_r_i_g_i_n origin,
│ │ │ │ │ -50 _D_a_t_a_S_o_u_r_c_e* data,
│ │ │ │ │ -51 _I_m_a_g_e_C_o_n_t_e_x_t* 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_
│ │ │ │ │ +30#ifndef _SILLY_h_
│ │ │ │ │ +31#define _SILLY_h_
│ │ │ │ │ +109namespace _S_I_L_L_Y
│ │ │ │ │ +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_
│ │ │ │ │ _S_I_L_L_Y
│ │ │ │ │ Simple Image Loading LibrarY namespace.
│ │ │ │ │ DDeeffiinniittiioonn _S_I_L_L_Y_J_P_G_I_m_a_g_e_C_o_n_t_e_x_t_._c_p_p_:_4_6
│ │ │ │ │ -_S_I_L_L_Y_:_:_P_i_x_e_l_F_o_r_m_a_t
│ │ │ │ │ -PixelFormat
│ │ │ │ │ -List all pixel format supported.
│ │ │ │ │ -DDeeffiinniittiioonn _S_I_L_L_Y_B_a_s_e_._h_:_6_0
│ │ │ │ │ -_S_I_L_L_Y_:_:_P_i_x_e_l_O_r_i_g_i_n
│ │ │ │ │ -PixelOrigin
│ │ │ │ │ -List all pixel origin supported.
│ │ │ │ │ -DDeeffiinniittiioonn _S_I_L_L_Y_B_a_s_e_._h_:_7_1
│ │ │ │ │ -_S_I_L_L_Y_:_:_T_G_A_I_m_a_g_e_L_o_a_d_e_r
│ │ │ │ │ -Loader for Targa image.
│ │ │ │ │ -DDeeffiinniittiioonn _S_I_L_L_Y_T_G_A_I_m_a_g_e_L_o_a_d_e_r_._h_:_4_4
│ │ │ │ │ -_S_I_L_L_Y_:_:_T_G_A_I_m_a_g_e_L_o_a_d_e_r_:_:_l_o_a_d_H_e_a_d_e_r
│ │ │ │ │ -ImageContext * loadHeader(PixelFormat &formatSource, DataSource *data)
│ │ │ │ │ -Parse the header of the image and fill the header struct.
│ │ │ │ │ -DDeeffiinniittiioonn _S_I_L_L_Y_T_G_A_I_m_a_g_e_L_o_a_d_e_r_._c_p_p_:_7_4
│ │ │ │ │ -_S_I_L_L_Y_:_:_T_G_A_I_m_a_g_e_L_o_a_d_e_r_:_:_l_o_a_d_I_m_a_g_e_D_a_t_a
│ │ │ │ │ -bool loadImageData(PixelOrigin origin, DataSource *data, ImageContext *context)
│ │ │ │ │ -Parse the pixels data of the image and fill the header struct.
│ │ │ │ │ -DDeeffiinniittiioonn _S_I_L_L_Y_T_G_A_I_m_a_g_e_L_o_a_d_e_r_._c_p_p_:_1_3_4
│ │ │ │ │ -_S_I_L_L_Y_:_:_D_a_t_a_S_o_u_r_c_e
│ │ │ │ │ -This is an abstract class used to provide data to the loader.
│ │ │ │ │ -DDeeffiinniittiioonn _S_I_L_L_Y_D_a_t_a_S_o_u_r_c_e_._h_:_4_7
│ │ │ │ │ -_S_I_L_L_Y_:_:_I_m_a_g_e_C_o_n_t_e_x_t
│ │ │ │ │ -Store the data needed by an ImageLoader object during the parsing of an image.
│ │ │ │ │ -DDeeffiinniittiioonn _S_I_L_L_Y_I_m_a_g_e_C_o_n_t_e_x_t_._h_:_4_4
│ │ │ │ │ -_S_I_L_L_Y_:_:_I_m_a_g_e_L_o_a_d_e_r
│ │ │ │ │ -This is an abstract class that define the interface of all image loader.
│ │ │ │ │ -DDeeffiinniittiioonn _S_I_L_L_Y_I_m_a_g_e_L_o_a_d_e_r_._h_:_4_7
│ │ │ │ │ ===============================================================================
│ │ │ │ │ Generated by _[_d_o_x_y_g_e_n_] 1.9.8
│ │ │ ├── ./usr/share/doc/libsilly-doc/html/a00068_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/SILLYFileDataSource.h Source File
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │ @@ -40,57 +40,90 @@
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │ -
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 _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 {}
│ │ │ │ │ @@ -1,20 +1,19 @@
│ │ │ │ │ Simple Image Loading LibrarY 0.1.0
│ │ │ │ │ * _b_u_i_l_d
│ │ │ │ │ * _r_e_p_r_o_d_u_c_i_b_l_e_-_p_a_t_h
│ │ │ │ │ * _s_i_l_l_y_-_0_._1_._0
│ │ │ │ │ * _i_n_c_l_u_d_e
│ │ │ │ │ - * _l_o_a_d_e_r_s
│ │ │ │ │ -SILLYJPGImageLoader.icpp
│ │ │ │ │ +SILLYFileDataSource.h
│ │ │ │ │ 1/***********************************************************************
│ │ │ │ │ -2 filename: SILLYJPGImageLoader.icpp
│ │ │ │ │ -3 created: 11 Jun 2006
│ │ │ │ │ +2 filename: SILLYFileDataSource.h
│ │ │ │ │ +3 created: 20 Jul 2006
│ │ │ │ │ 4 author: Olivier Delannoy
│ │ │ │ │ 5
│ │ │ │ │ -6 purpose: Inline definition of JPGImageLoader class
│ │ │ │ │ +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
│ │ │ │ │ @@ -30,16 +29,59 @@
│ │ │ │ │ 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 ***************************************************************************/
│ │ │ │ │ -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 _S_I_L_L_Y
│ │ │ │ │ +36{
│ │ │ │ │ +37
│ │ │ │ │ +_4_8class SILLY_EXPORT _F_i_l_e_D_a_t_a_S_o_u_r_c_e : public _D_a_t_a_S_o_u_r_c_e
│ │ │ │ │ +49{
│ │ │ │ │ +50public:
│ │ │ │ │ +60 _F_i_l_e_D_a_t_a_S_o_u_r_c_e(const char* filename);
│ │ │ │ │ +64 _~_F_i_l_e_D_a_t_a_S_o_u_r_c_e();
│ │ │ │ │ +_7_3 bool _i_s_V_a_l_i_d() const;
│ │ │ │ │ +74
│ │ │ │ │ +_7_5 const byte* _g_e_t_D_a_t_a_P_t_r() const;
│ │ │ │ │ +_7_6 size_t _g_e_t_S_i_z_e() 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_
│ │ │ │ │ +_S_I_L_L_Y
│ │ │ │ │ +Simple Image Loading LibrarY namespace.
│ │ │ │ │ +DDeeffiinniittiioonn _S_I_L_L_Y_J_P_G_I_m_a_g_e_C_o_n_t_e_x_t_._c_p_p_:_4_6
│ │ │ │ │ +_S_I_L_L_Y_:_:_D_a_t_a_S_o_u_r_c_e
│ │ │ │ │ +This is an abstract class used to provide data to the loader.
│ │ │ │ │ +DDeeffiinniittiioonn _S_I_L_L_Y_D_a_t_a_S_o_u_r_c_e_._h_:_4_7
│ │ │ │ │ +_S_I_L_L_Y_:_:_F_i_l_e_D_a_t_a_S_o_u_r_c_e
│ │ │ │ │ +This class allow the loading of an image directly from a file.
│ │ │ │ │ +DDeeffiinniittiioonn _S_I_L_L_Y_F_i_l_e_D_a_t_a_S_o_u_r_c_e_._h_:_4_9
│ │ │ │ │ +_S_I_L_L_Y_:_:_F_i_l_e_D_a_t_a_S_o_u_r_c_e_:_:_g_e_t_D_a_t_a_P_t_r
│ │ │ │ │ +const byte * getDataPtr() const
│ │ │ │ │ +Get raw access to the image data.
│ │ │ │ │ +_S_I_L_L_Y_:_:_F_i_l_e_D_a_t_a_S_o_u_r_c_e_:_:_i_s_V_a_l_i_d
│ │ │ │ │ +bool isValid() const
│ │ │ │ │ +Check wether the loading is successfull or not.
│ │ │ │ │ +_S_I_L_L_Y_:_:_F_i_l_e_D_a_t_a_S_o_u_r_c_e_:_:_g_e_t_S_i_z_e
│ │ │ │ │ +size_t getSize() const
│ │ │ │ │ +Return the size of the data.
│ │ │ │ │ ===============================================================================
│ │ │ │ │ Generated by _[_d_o_x_y_g_e_n_] 1.9.8
│ │ │ ├── ./usr/share/doc/libsilly-doc/html/a00071_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/SILLYImageLoader.h Source File
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │ @@ -40,57 +40,101 @@
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │ -
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
│ │ │ │ -
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
30#ifndef _SILLYImageLoader_h_
│ │ │ │ +
31#define _SILLYImageLoader_h_
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
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 {}
│ │ │ │ │ @@ -1,20 +1,19 @@
│ │ │ │ │ Simple Image Loading LibrarY 0.1.0
│ │ │ │ │ * _b_u_i_l_d
│ │ │ │ │ * _r_e_p_r_o_d_u_c_i_b_l_e_-_p_a_t_h
│ │ │ │ │ * _s_i_l_l_y_-_0_._1_._0
│ │ │ │ │ * _i_n_c_l_u_d_e
│ │ │ │ │ - * _l_o_a_d_e_r_s
│ │ │ │ │ -SILLYTGAImageLoader.icpp
│ │ │ │ │ +SILLYImageLoader.h
│ │ │ │ │ 1/***********************************************************************
│ │ │ │ │ -2 filename: SILLYTGAImageLoader.icpp
│ │ │ │ │ -3 created: 11 Jun 2006
│ │ │ │ │ +2 filename: SILLYImageLoader.h
│ │ │ │ │ +3 created: 10 Jun 2006
│ │ │ │ │ 4 author: Olivier Delannoy
│ │ │ │ │ 5
│ │ │ │ │ -6 purpose: Inline defintion of TGAImageLoader 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
│ │ │ │ │ @@ -30,16 +29,86 @@
│ │ │ │ │ 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 ***************************************************************************/
│ │ │ │ │ -30
│ │ │ │ │ -31// Start of section namespace SILLY
│ │ │ │ │ -32namespace SILLY
│ │ │ │ │ -33{
│ │ │ │ │ -34
│ │ │ │ │ -35} // End of section namespace SILLY
│ │ │ │ │ -36
│ │ │ │ │ +30#ifndef _SILLYImageLoader_h_
│ │ │ │ │ +31#define _SILLYImageLoader_h_
│ │ │ │ │ +32#include "SILLYBase.h"
│ │ │ │ │ +33// Start of section namespace SILLY
│ │ │ │ │ +34namespace _S_I_L_L_Y
│ │ │ │ │ +35{
│ │ │ │ │ +36class DataSource; // Forward declaration
│ │ │ │ │ +37class ImageContext; // Forward declaration
│ │ │ │ │ +38
│ │ │ │ │ +_4_6class SILLY_EXPORT _I_m_a_g_e_L_o_a_d_e_r
│ │ │ │ │ +47{
│ │ │ │ │ +48protected:
│ │ │ │ │ +_5_2 _I_m_a_g_e_L_o_a_d_e_r(const char* name);
│ │ │ │ │ +53public:
│ │ │ │ │ +54
│ │ │ │ │ +_5_9 virtual _~_I_m_a_g_e_L_o_a_d_e_r();
│ │ │ │ │ +60
│ │ │ │ │ +_7_1 virtual _I_m_a_g_e_C_o_n_t_e_x_t* _l_o_a_d_H_e_a_d_e_r(_P_i_x_e_l_F_o_r_m_a_t& formatSource, _D_a_t_a_S_o_u_r_c_e*
│ │ │ │ │ +data) = 0;
│ │ │ │ │ +72
│ │ │ │ │ +73
│ │ │ │ │ +_8_6 virtual bool _l_o_a_d_I_m_a_g_e_D_a_t_a(_P_i_x_e_l_O_r_i_g_i_n origin, _D_a_t_a_S_o_u_r_c_e* data,
│ │ │ │ │ +_I_m_a_g_e_C_o_n_t_e_x_t* context) = 0;
│ │ │ │ │ +87
│ │ │ │ │ +94 void destroyContext(_I_m_a_g_e_C_o_n_t_e_x_t* context);
│ │ │ │ │ +95
│ │ │ │ │ +_1_0_0 const char* _g_e_t_I_d_e_n_t_i_f_i_e_r_S_t_r_i_n_g() 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_
│ │ │ │ │ +_S_I_L_L_Y
│ │ │ │ │ +Simple Image Loading LibrarY namespace.
│ │ │ │ │ +DDeeffiinniittiioonn _S_I_L_L_Y_J_P_G_I_m_a_g_e_C_o_n_t_e_x_t_._c_p_p_:_4_6
│ │ │ │ │ +_S_I_L_L_Y_:_:_P_i_x_e_l_F_o_r_m_a_t
│ │ │ │ │ +PixelFormat
│ │ │ │ │ +List all pixel format supported.
│ │ │ │ │ +DDeeffiinniittiioonn _S_I_L_L_Y_B_a_s_e_._h_:_6_0
│ │ │ │ │ +_S_I_L_L_Y_:_:_P_i_x_e_l_O_r_i_g_i_n
│ │ │ │ │ +PixelOrigin
│ │ │ │ │ +List all pixel origin supported.
│ │ │ │ │ +DDeeffiinniittiioonn _S_I_L_L_Y_B_a_s_e_._h_:_7_1
│ │ │ │ │ +_S_I_L_L_Y_:_:_D_a_t_a_S_o_u_r_c_e
│ │ │ │ │ +This is an abstract class used to provide data to the loader.
│ │ │ │ │ +DDeeffiinniittiioonn _S_I_L_L_Y_D_a_t_a_S_o_u_r_c_e_._h_:_4_7
│ │ │ │ │ +_S_I_L_L_Y_:_:_I_m_a_g_e_C_o_n_t_e_x_t
│ │ │ │ │ +Store the data needed by an ImageLoader object during the parsing of an image.
│ │ │ │ │ +DDeeffiinniittiioonn _S_I_L_L_Y_I_m_a_g_e_C_o_n_t_e_x_t_._h_:_4_4
│ │ │ │ │ +_S_I_L_L_Y_:_:_I_m_a_g_e_L_o_a_d_e_r
│ │ │ │ │ +This is an abstract class that define the interface of all image loader.
│ │ │ │ │ +DDeeffiinniittiioonn _S_I_L_L_Y_I_m_a_g_e_L_o_a_d_e_r_._h_:_4_7
│ │ │ │ │ +_S_I_L_L_Y_:_:_I_m_a_g_e_L_o_a_d_e_r_:_:_I_m_a_g_e_L_o_a_d_e_r
│ │ │ │ │ +ImageLoader(const char *name)
│ │ │ │ │ +Constructor.
│ │ │ │ │ +_S_I_L_L_Y_:_:_I_m_a_g_e_L_o_a_d_e_r_:_:_l_o_a_d_H_e_a_d_e_r
│ │ │ │ │ +virtual ImageContext * loadHeader(PixelFormat &formatSource, DataSource
│ │ │ │ │ +*data)=0
│ │ │ │ │ +Parse the header of the image and fill the header struct.
│ │ │ │ │ +_S_I_L_L_Y_:_:_I_m_a_g_e_L_o_a_d_e_r_:_:_l_o_a_d_I_m_a_g_e_D_a_t_a
│ │ │ │ │ +virtual bool loadImageData(PixelOrigin origin, DataSource *data, ImageContext
│ │ │ │ │ +*context)=0
│ │ │ │ │ +Parse the pixels data of the image and fill the header struct.
│ │ │ │ │ +_S_I_L_L_Y_:_:_I_m_a_g_e_L_o_a_d_e_r_:_:_~_I_m_a_g_e_L_o_a_d_e_r
│ │ │ │ │ +virtual ~ImageLoader()
│ │ │ │ │ +Destructor.
│ │ │ │ │ +_S_I_L_L_Y_:_:_I_m_a_g_e_L_o_a_d_e_r_:_:_g_e_t_I_d_e_n_t_i_f_i_e_r_S_t_r_i_n_g
│ │ │ │ │ +const char * getIdentifierString() const
│ │ │ │ │ +Return the name of the loader.
│ │ │ │ │ ===============================================================================
│ │ │ │ │ Generated by _[_d_o_x_y_g_e_n_] 1.9.8
│ │ │ ├── ./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/loaders/SILLYJPGImageContext.h Source File
│ │ │ │ +
Simple Image Loading LibrarY: /build/reproducible-path/silly-0.1.0/include/SILLYImageContext.h Source File
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │ @@ -40,27 +40,27 @@
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │ -
│ │ │ │ -
│ │ │ │ +
│ │ │ │ +
│ │ │ │
│ │ │ │
│ │ │ │ -
│ │ │ │ +
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │ @@ -76,62 +76,74 @@
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │ -
30#ifndef _SILLYJPGImageContext_h_
│ │ │ │ -
31#define _SILLYJPGImageContext_h_
│ │ │ │ +
30#ifndef _SILLYImageContext_h_
│ │ │ │ +
31#define _SILLYImageContext_h_
│ │ │ │
│ │ │ │ -
33#include "SILLYImageContext.h"
│ │ │ │ -
34#include "SILLYDataSource.h"
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
65 jpeg_source_mgr src_mgr;
│ │ │ │ -
66 jpeg_decompress_struct cinfo;
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
64 size_t getWidth()
const;
│ │ │ │ +
65 size_t getHeight()
const;
│ │ │ │ +
│ │ │ │
│ │ │ │ -
68 jpeg_error_mgr d_error_mgr;
│ │ │ │ -
69 jmp_buf setjmp_buffer;
│ │ │ │ -
│ │ │ │ -
│ │ │ │ +
74 bool flipVertically();
│ │ │ │ +
│ │ │ │ +
76 void setWidth(
size_t width);
│ │ │ │ +
│ │ │ │ +
78 void setHeight(
size_t height);
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
95 size_t d_currentOffset;
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
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.
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
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 {}
│ │ │ │ │ @@ -1,20 +1,20 @@
│ │ │ │ │ Simple Image Loading LibrarY 0.1.0
│ │ │ │ │ * _b_u_i_l_d
│ │ │ │ │ * _r_e_p_r_o_d_u_c_i_b_l_e_-_p_a_t_h
│ │ │ │ │ * _s_i_l_l_y_-_0_._1_._0
│ │ │ │ │ * _i_n_c_l_u_d_e
│ │ │ │ │ - * _l_o_a_d_e_r_s
│ │ │ │ │ -SILLYJPGImageContext.h
│ │ │ │ │ +SILLYImageContext.h
│ │ │ │ │ 1/***********************************************************************
│ │ │ │ │ -2 filename: SILLYJPGImageContext.h
│ │ │ │ │ -3 created: 11 Jun 2006
│ │ │ │ │ +2 filename: SILLYImageContext.h
│ │ │ │ │ +3 created: 10 Jun 2006
│ │ │ │ │ 4 author: Olivier Delannoy
│ │ │ │ │ 5
│ │ │ │ │ -6 purpose: Declaration of the JPGImageContext class
│ │ │ │ │ +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
│ │ │ │ │ @@ -30,63 +30,82 @@
│ │ │ │ │ 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 ***************************************************************************/
│ │ │ │ │ -30#ifndef _SILLYJPGImageContext_h_
│ │ │ │ │ -31#define _SILLYJPGImageContext_h_
│ │ │ │ │ +30#ifndef _SILLYImageContext_h_
│ │ │ │ │ +31#define _SILLYImageContext_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 _S_I_L_L_Y
│ │ │ │ │ +33
│ │ │ │ │ +34// Start of section namespace SILLY
│ │ │ │ │ +35namespace _S_I_L_L_Y
│ │ │ │ │ +36{
│ │ │ │ │ +37
│ │ │ │ │ +_4_3class SILLY_EXPORT _I_m_a_g_e_C_o_n_t_e_x_t
│ │ │ │ │ 44{
│ │ │ │ │ -45
│ │ │ │ │ -_5_6class _J_P_G_I_m_a_g_e_C_o_n_t_e_x_t : public _I_m_a_g_e_C_o_n_t_e_x_t
│ │ │ │ │ -57{
│ │ │ │ │ -58public:
│ │ │ │ │ -59 _J_P_G_I_m_a_g_e_C_o_n_t_e_x_t();
│ │ │ │ │ -60 _~_J_P_G_I_m_a_g_e_C_o_n_t_e_x_t();
│ │ │ │ │ -61
│ │ │ │ │ -62 void setImageSize();
│ │ │ │ │ +45public:
│ │ │ │ │ +_5_0 virtual _~_I_m_a_g_e_C_o_n_t_e_x_t();
│ │ │ │ │ +51
│ │ │ │ │ +_5_6 void _s_e_t_D_e_s_t_i_n_a_t_i_o_n(byte* pixels, size_t length, _P_i_x_e_l_F_o_r_m_a_t format);
│ │ │ │ │ +57
│ │ │ │ │ +_6_2 void _s_e_t_N_e_x_t_P_i_x_e_l(byte red, byte green, byte bleu, byte alpha);
│ │ │ │ │ 63
│ │ │ │ │ -64
│ │ │ │ │ -65 jpeg_source_mgr src_mgr;
│ │ │ │ │ -66 jpeg_decompress_struct cinfo;
│ │ │ │ │ +64 size_t getWidth() const;
│ │ │ │ │ +65 size_t getHeight() const;
│ │ │ │ │ +66 _P_i_x_e_l_F_o_r_m_a_t getPixelFormat() const;
│ │ │ │ │ 67
│ │ │ │ │ -68 jpeg_error_mgr d_error_mgr;
│ │ │ │ │ -69 jmp_buf setjmp_buffer;
│ │ │ │ │ -70 _D_a_t_a_S_o_u_r_c_e* 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_
│ │ │ │ │ +74 bool flipVertically();
│ │ │ │ │ +75 protected:
│ │ │ │ │ +76 void setWidth(size_t width);
│ │ │ │ │ +77
│ │ │ │ │ +78 void setHeight(size_t height);
│ │ │ │ │ +79
│ │ │ │ │ +_8_8 _I_m_a_g_e_C_o_n_t_e_x_t(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 _P_i_x_e_l_F_o_r_m_a_t d_format;
│ │ │ │ │ +97
│ │ │ │ │ +98 // Disabled operation
│ │ │ │ │ +99 _I_m_a_g_e_C_o_n_t_e_x_t(_I_m_a_g_e_C_o_n_t_e_x_t&);
│ │ │ │ │ +100 _I_m_a_g_e_C_o_n_t_e_x_t& operator=(_I_m_a_g_e_C_o_n_t_e_x_t&);
│ │ │ │ │ +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_
│ │ │ │ │ _S_I_L_L_Y
│ │ │ │ │ Simple Image Loading LibrarY namespace.
│ │ │ │ │ DDeeffiinniittiioonn _S_I_L_L_Y_J_P_G_I_m_a_g_e_C_o_n_t_e_x_t_._c_p_p_:_4_6
│ │ │ │ │ -_S_I_L_L_Y_:_:_J_P_G_I_m_a_g_e_C_o_n_t_e_x_t
│ │ │ │ │ -Image Context for JPG image loader.
│ │ │ │ │ -DDeeffiinniittiioonn _S_I_L_L_Y_J_P_G_I_m_a_g_e_C_o_n_t_e_x_t_._h_:_5_7
│ │ │ │ │ -_S_I_L_L_Y_:_:_D_a_t_a_S_o_u_r_c_e
│ │ │ │ │ -This is an abstract class used to provide data to the loader.
│ │ │ │ │ -DDeeffiinniittiioonn _S_I_L_L_Y_D_a_t_a_S_o_u_r_c_e_._h_:_4_7
│ │ │ │ │ +_S_I_L_L_Y_:_:_P_i_x_e_l_F_o_r_m_a_t
│ │ │ │ │ +PixelFormat
│ │ │ │ │ +List all pixel format supported.
│ │ │ │ │ +DDeeffiinniittiioonn _S_I_L_L_Y_B_a_s_e_._h_:_6_0
│ │ │ │ │ _S_I_L_L_Y_:_:_I_m_a_g_e_C_o_n_t_e_x_t
│ │ │ │ │ Store the data needed by an ImageLoader object during the parsing of an image.
│ │ │ │ │ DDeeffiinniittiioonn _S_I_L_L_Y_I_m_a_g_e_C_o_n_t_e_x_t_._h_:_4_4
│ │ │ │ │ +_S_I_L_L_Y_:_:_I_m_a_g_e_C_o_n_t_e_x_t_:_:_s_e_t_N_e_x_t_P_i_x_e_l
│ │ │ │ │ +void setNextPixel(byte red, byte green, byte bleu, byte alpha)
│ │ │ │ │ +Set the next pixel of the image.
│ │ │ │ │ +_S_I_L_L_Y_:_:_I_m_a_g_e_C_o_n_t_e_x_t_:_:_s_e_t_D_e_s_t_i_n_a_t_i_o_n
│ │ │ │ │ +void setDestination(byte *pixels, size_t length, PixelFormat format)
│ │ │ │ │ +Set the destination of the loading.
│ │ │ │ │ +_S_I_L_L_Y_:_:_I_m_a_g_e_C_o_n_t_e_x_t_:_:_I_m_a_g_e_C_o_n_t_e_x_t
│ │ │ │ │ +ImageContext(size_t width, size_t height)
│ │ │ │ │ +Constructor.
│ │ │ │ │ +_S_I_L_L_Y_:_:_I_m_a_g_e_C_o_n_t_e_x_t_:_:_~_I_m_a_g_e_C_o_n_t_e_x_t
│ │ │ │ │ +virtual ~ImageContext()
│ │ │ │ │ +Destructor.
│ │ │ │ │ ===============================================================================
│ │ │ │ │ Generated by _[_d_o_x_y_g_e_n_] 1.9.8
│ │ │ ├── ./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/SILLYImage.icpp Source File
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │ @@ -40,27 +40,27 @@
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
1/***********************************************************************
│ │ │ │ -
2 filename: SILLYTGAImageContext.icpp
│ │ │ │ -
│ │ │ │ +
2 filename: SILLYImage.icpp
│ │ │ │ +
│ │ │ │
4 author: Olivier Delannoy
│ │ │ │
│ │ │ │ -
6 purpose: Inline definition for TGAImageContext class
│ │ │ │ +
6 purpose: Inline definition of the image 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
│ │ │ │ @@ -80,25 +80,65 @@
│ │ │ │
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)
│ │ │ │ +
│ │ │ │ +
35inline bool Image::isValid() const
│ │ │ │
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
39inline TGAImageContext::~TGAImageContext()
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
43} // End of section namespace SILLY
│ │ │ │ +
37 return d_imageContext && d_pixels;
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
40inline size_t Image::getWidth() const
│ │ │ │ +
│ │ │ │ +
42 return d_imageContext->getWidth();
│ │ │ │ +
│ │ │ │
│ │ │ │ +
45inline size_t Image::getHeight() const
│ │ │ │ +
│ │ │ │ +
47 return d_imageContext->getHeight();
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
50inline PixelFormat Image::getSourcePixelFormat() const
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
55inline PixelFormat Image::getPixelFormat() const
│ │ │ │ +
│ │ │ │ +
57 return d_imageContext->getPixelFormat();
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
60inline const byte* Image::getPixelsDataPtr() const
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
65inline size_t Image::getPixelsDataSize() const
│ │ │ │ +
│ │ │ │ +
67 return getWidth() * getHeight() * d_bpp;
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
74 d_imageLoader->destroyContext(d_imageContext);
│ │ │ │ +
│ │ │ │ +
76inline const char* Image::getLoaderIdentifierString() const
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
79 return d_imageLoader->getIdentifierString();
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
83} // End of section namespace SILLY
│ │ │ │ +
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │ ├── html2text {}
│ │ │ │ │ @@ -1,20 +1,19 @@
│ │ │ │ │ Simple Image Loading LibrarY 0.1.0
│ │ │ │ │ * _b_u_i_l_d
│ │ │ │ │ * _r_e_p_r_o_d_u_c_i_b_l_e_-_p_a_t_h
│ │ │ │ │ * _s_i_l_l_y_-_0_._1_._0
│ │ │ │ │ * _i_n_c_l_u_d_e
│ │ │ │ │ - * _l_o_a_d_e_r_s
│ │ │ │ │ -SILLYTGAImageContext.icpp
│ │ │ │ │ +SILLYImage.icpp
│ │ │ │ │ 1/***********************************************************************
│ │ │ │ │ -2 filename: SILLYTGAImageContext.icpp
│ │ │ │ │ -3 created: 11 Jun 2006
│ │ │ │ │ +2 filename: SILLYImage.icpp
│ │ │ │ │ +3 created: 10 Jun 2006
│ │ │ │ │ 4 author: Olivier Delannoy
│ │ │ │ │ 5
│ │ │ │ │ -6 purpose: Inline definition for TGAImageContext class
│ │ │ │ │ +6 purpose: Inline definition of the image 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
│ │ │ │ │ @@ -34,20 +33,60 @@
│ │ │ │ │ 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 TGAImageContext::TGAImageContext(size_t width, size_t height)
│ │ │ │ │ -35 : ImageContext(width, height)
│ │ │ │ │ +34
│ │ │ │ │ +35inline bool Image::isValid() const
│ │ │ │ │ 36{
│ │ │ │ │ -37}
│ │ │ │ │ -38
│ │ │ │ │ -39inline TGAImageContext::~TGAImageContext()
│ │ │ │ │ -40{
│ │ │ │ │ -41}
│ │ │ │ │ -42
│ │ │ │ │ -43} // End of section namespace SILLY
│ │ │ │ │ +37 return d_imageContext && d_pixels;
│ │ │ │ │ +38}
│ │ │ │ │ +39
│ │ │ │ │ +40inline size_t Image::getWidth() const
│ │ │ │ │ +41{
│ │ │ │ │ +42 return d_imageContext->getWidth();
│ │ │ │ │ +43}
│ │ │ │ │ 44
│ │ │ │ │ +45inline size_t Image::getHeight() const
│ │ │ │ │ +46{
│ │ │ │ │ +47 return d_imageContext->getHeight();
│ │ │ │ │ +48}
│ │ │ │ │ +49
│ │ │ │ │ +50inline PixelFormat Image::getSourcePixelFormat() const
│ │ │ │ │ +51{
│ │ │ │ │ +52 return d_pfSource;
│ │ │ │ │ +53}
│ │ │ │ │ +54
│ │ │ │ │ +55inline PixelFormat Image::getPixelFormat() const
│ │ │ │ │ +56{
│ │ │ │ │ +57 return d_imageContext->getPixelFormat();
│ │ │ │ │ +58}
│ │ │ │ │ +59
│ │ │ │ │ +60inline const byte* Image::getPixelsDataPtr() const
│ │ │ │ │ +61{
│ │ │ │ │ +62 return d_pixels;
│ │ │ │ │ +63}
│ │ │ │ │ +64
│ │ │ │ │ +65inline size_t Image::getPixelsDataSize() const
│ │ │ │ │ +66{
│ │ │ │ │ +67 return getWidth() * getHeight() * d_bpp;
│ │ │ │ │ +68}
│ │ │ │ │ +69
│ │ │ │ │ +70inline Image::~Image()
│ │ │ │ │ +71{
│ │ │ │ │ +72 delete [] d_pixels;
│ │ │ │ │ +73 if (d_imageLoader)
│ │ │ │ │ +74 d_imageLoader->destroyContext(d_imageContext);
│ │ │ │ │ +75}
│ │ │ │ │ +76inline const char* Image::getLoaderIdentifierString() const
│ │ │ │ │ +77{
│ │ │ │ │ +78 if (d_imageLoader)
│ │ │ │ │ +79 return d_imageLoader->getIdentifierString();
│ │ │ │ │ +80 return 0;
│ │ │ │ │ +81}
│ │ │ │ │ +82
│ │ │ │ │ +83} // End of section namespace SILLY
│ │ │ │ │ +84
│ │ │ │ │ ===============================================================================
│ │ │ │ │ Generated by _[_d_o_x_y_g_e_n_] 1.9.8
│ │ │ ├── ./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/SILLYImage.icpp Source File
│ │ │ │ +Simple Image Loading LibrarY: /build/reproducible-path/silly-0.1.0/include/SILLYOptions.h Source File
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │ @@ -44,101 +44,56 @@
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │ -
1/***********************************************************************
│ │ │ │ -
2 filename: SILLYImage.icpp
│ │ │ │ -
│ │ │ │ -
4 author: Olivier Delannoy
│ │ │ │ -
│ │ │ │ -
6 purpose: Inline definition of the image 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 bool Image::isValid() const
│ │ │ │ -
│ │ │ │ -
37 return d_imageContext && d_pixels;
│ │ │ │ -
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
32#define SILLY_OPT_INLINE 1
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │
│ │ │ │ -
40inline size_t Image::getWidth() const
│ │ │ │ -
│ │ │ │ -
42 return d_imageContext->getWidth();
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
45inline size_t Image::getHeight() const
│ │ │ │ -
│ │ │ │ -
47 return d_imageContext->getHeight();
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
50inline PixelFormat Image::getSourcePixelFormat() const
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
55inline PixelFormat Image::getPixelFormat() const
│ │ │ │ -
│ │ │ │ -
57 return d_imageContext->getPixelFormat();
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
60inline const byte* Image::getPixelsDataPtr() const
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
65inline size_t Image::getPixelsDataSize() const
│ │ │ │ -
│ │ │ │ -
67 return getWidth() * getHeight() * d_bpp;
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
74 d_imageLoader->destroyContext(d_imageContext);
│ │ │ │ -
│ │ │ │ -
76inline const char* Image::getLoaderIdentifierString() const
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
79 return d_imageLoader->getIdentifierString();
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
83} // End of section namespace SILLY
│ │ │ │ -
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │ ├── html2text {}
│ │ │ │ │ @@ -1,92 +1,47 @@
│ │ │ │ │ Simple Image Loading LibrarY 0.1.0
│ │ │ │ │ * _b_u_i_l_d
│ │ │ │ │ * _r_e_p_r_o_d_u_c_i_b_l_e_-_p_a_t_h
│ │ │ │ │ * _s_i_l_l_y_-_0_._1_._0
│ │ │ │ │ * _i_n_c_l_u_d_e
│ │ │ │ │ -SILLYImage.icpp
│ │ │ │ │ -1/***********************************************************************
│ │ │ │ │ -2 filename: SILLYImage.icpp
│ │ │ │ │ -3 created: 10 Jun 2006
│ │ │ │ │ -4 author: Olivier Delannoy
│ │ │ │ │ -5
│ │ │ │ │ -6 purpose: Inline definition of the image 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 ***************************************************************************/
│ │ │ │ │ -30
│ │ │ │ │ -31// Start of section namespace SILLY
│ │ │ │ │ -32namespace SILLY
│ │ │ │ │ -33{
│ │ │ │ │ -34
│ │ │ │ │ -35inline bool Image::isValid() const
│ │ │ │ │ -36{
│ │ │ │ │ -37 return d_imageContext && d_pixels;
│ │ │ │ │ -38}
│ │ │ │ │ +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 ***************************************************************************/
│ │ │ │ │ +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 */
│ │ │ │ │ +36
│ │ │ │ │ +37/* Defined to 1 if profile is enabled */
│ │ │ │ │ +38/* #undef SILLY_OPT_PROFILE */
│ │ │ │ │ 39
│ │ │ │ │ -40inline size_t Image::getWidth() const
│ │ │ │ │ -41{
│ │ │ │ │ -42 return d_imageContext->getWidth();
│ │ │ │ │ -43}
│ │ │ │ │ -44
│ │ │ │ │ -45inline size_t Image::getHeight() const
│ │ │ │ │ -46{
│ │ │ │ │ -47 return d_imageContext->getHeight();
│ │ │ │ │ -48}
│ │ │ │ │ -49
│ │ │ │ │ -50inline PixelFormat Image::getSourcePixelFormat() const
│ │ │ │ │ -51{
│ │ │ │ │ -52 return d_pfSource;
│ │ │ │ │ -53}
│ │ │ │ │ -54
│ │ │ │ │ -55inline PixelFormat Image::getPixelFormat() const
│ │ │ │ │ -56{
│ │ │ │ │ -57 return d_imageContext->getPixelFormat();
│ │ │ │ │ -58}
│ │ │ │ │ -59
│ │ │ │ │ -60inline const byte* Image::getPixelsDataPtr() const
│ │ │ │ │ -61{
│ │ │ │ │ -62 return d_pixels;
│ │ │ │ │ -63}
│ │ │ │ │ -64
│ │ │ │ │ -65inline size_t Image::getPixelsDataSize() const
│ │ │ │ │ -66{
│ │ │ │ │ -67 return getWidth() * getHeight() * d_bpp;
│ │ │ │ │ -68}
│ │ │ │ │ -69
│ │ │ │ │ -70inline Image::~Image()
│ │ │ │ │ -71{
│ │ │ │ │ -72 delete [] d_pixels;
│ │ │ │ │ -73 if (d_imageLoader)
│ │ │ │ │ -74 d_imageLoader->destroyContext(d_imageContext);
│ │ │ │ │ -75}
│ │ │ │ │ -76inline const char* Image::getLoaderIdentifierString() const
│ │ │ │ │ -77{
│ │ │ │ │ -78 if (d_imageLoader)
│ │ │ │ │ -79 return d_imageLoader->getIdentifierString();
│ │ │ │ │ -80 return 0;
│ │ │ │ │ -81}
│ │ │ │ │ -82
│ │ │ │ │ -83} // End of section namespace SILLY
│ │ │ │ │ -84
│ │ │ │ │ ===============================================================================
│ │ │ │ │ Generated by _[_d_o_x_y_g_e_n_] 1.9.8
│ │ │ ├── ./usr/share/doc/libsilly-doc/html/a00083_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/SILLYDataSource.h Source File
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │ @@ -44,56 +44,79 @@
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
32#define SILLY_OPT_INLINE 1
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
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 {}
│ │ │ │ │ @@ -1,47 +1,78 @@
│ │ │ │ │ Simple Image Loading LibrarY 0.1.0
│ │ │ │ │ * _b_u_i_l_d
│ │ │ │ │ * _r_e_p_r_o_d_u_c_i_b_l_e_-_p_a_t_h
│ │ │ │ │ * _s_i_l_l_y_-_0_._1_._0
│ │ │ │ │ * _i_n_c_l_u_d_e
│ │ │ │ │ -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 ***************************************************************************/
│ │ │ │ │ -31/* Defined to 1 if inline is enabled */
│ │ │ │ │ -32#define SILLY_OPT_INLINE 1
│ │ │ │ │ +SILLYDataSource.h
│ │ │ │ │ +1/***********************************************************************
│ │ │ │ │ +2 filename: SILLYDataSource.h
│ │ │ │ │ +3 created: 10 Jun 2006
│ │ │ │ │ +4 author: Olivier Delannoy
│ │ │ │ │ +5
│ │ │ │ │ +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
│ │ │ │ │ +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 ***************************************************************************/
│ │ │ │ │ +30#ifndef _SILLYDataSource_h_
│ │ │ │ │ +31#define _SILLYDataSource_h_
│ │ │ │ │ +32#include "SILLYBase.h"
│ │ │ │ │ 33
│ │ │ │ │ -34/* Defined to 1 if debug is enabled */
│ │ │ │ │ -35/* #undef SILLY_OPT_DEBUG */
│ │ │ │ │ -36
│ │ │ │ │ -37/* Defined to 1 if profile is enabled */
│ │ │ │ │ -38/* #undef SILLY_OPT_PROFILE */
│ │ │ │ │ -39
│ │ │ │ │ +34// Start of section namespace SILLY
│ │ │ │ │ +35namespace _S_I_L_L_Y
│ │ │ │ │ +36{
│ │ │ │ │ +37
│ │ │ │ │ +_4_6class SILLY_EXPORT _D_a_t_a_S_o_u_r_c_e
│ │ │ │ │ +47{
│ │ │ │ │ +48public:
│ │ │ │ │ +_5_3 virtual _~_D_a_t_a_S_o_u_r_c_e();
│ │ │ │ │ +_5_8 virtual const byte * _g_e_t_D_a_t_a_P_t_r() const = 0;
│ │ │ │ │ +_6_4 byte operator[] (size_t offset) const;
│ │ │ │ │ +_6_9 virtual size_t _g_e_t_S_i_z_e() 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_
│ │ │ │ │ +_S_I_L_L_Y
│ │ │ │ │ +Simple Image Loading LibrarY namespace.
│ │ │ │ │ +DDeeffiinniittiioonn _S_I_L_L_Y_J_P_G_I_m_a_g_e_C_o_n_t_e_x_t_._c_p_p_:_4_6
│ │ │ │ │ +_S_I_L_L_Y_:_:_D_a_t_a_S_o_u_r_c_e
│ │ │ │ │ +This is an abstract class used to provide data to the loader.
│ │ │ │ │ +DDeeffiinniittiioonn _S_I_L_L_Y_D_a_t_a_S_o_u_r_c_e_._h_:_4_7
│ │ │ │ │ +_S_I_L_L_Y_:_:_D_a_t_a_S_o_u_r_c_e_:_:_g_e_t_S_i_z_e
│ │ │ │ │ +virtual size_t getSize() const =0
│ │ │ │ │ +Return the size of the data.
│ │ │ │ │ +_S_I_L_L_Y_:_:_D_a_t_a_S_o_u_r_c_e_:_:_g_e_t_D_a_t_a_P_t_r
│ │ │ │ │ +virtual const byte * getDataPtr() const =0
│ │ │ │ │ +Get raw access to the image data.
│ │ │ │ │ +_S_I_L_L_Y_:_:_D_a_t_a_S_o_u_r_c_e_:_:_~_D_a_t_a_S_o_u_r_c_e
│ │ │ │ │ +virtual ~DataSource()
│ │ │ │ │ +Destructor.
│ │ │ │ │ ===============================================================================
│ │ │ │ │ Generated by _[_d_o_x_y_g_e_n_] 1.9.8
│ │ │ ├── ./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/SILLYDataSource.icpp Source File
│ │ │ │ +
Simple Image Loading LibrarY: /build/reproducible-path/silly-0.1.0/include/SILLYMemoryDataSource.h Source File
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │ @@ -44,62 +44,84 @@
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │ -
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()
│ │ │ │ -
│ │ │ │ -
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
30#ifndef _SILLYMemoryDataSource_h_
│ │ │ │ +
31#define _SILLYMemoryDataSource_h_
│ │ │ │ +
│ │ │ │ +
33#include "SILLYDataSource.h"
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │
│ │ │ │ -
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
│ │ │ │ -
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
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 {}
│ │ │ │ │ @@ -1,19 +1,19 @@
│ │ │ │ │ Simple Image Loading LibrarY 0.1.0
│ │ │ │ │ * _b_u_i_l_d
│ │ │ │ │ * _r_e_p_r_o_d_u_c_i_b_l_e_-_p_a_t_h
│ │ │ │ │ * _s_i_l_l_y_-_0_._1_._0
│ │ │ │ │ * _i_n_c_l_u_d_e
│ │ │ │ │ -SILLYDataSource.icpp
│ │ │ │ │ +SILLYMemoryDataSource.h
│ │ │ │ │ 1/***********************************************************************
│ │ │ │ │ -2 filename: SILLYDataSource.icpp
│ │ │ │ │ +2 filename: SILLYMemoryDataSource.h
│ │ │ │ │ 3 created: 10 Jun 2006
│ │ │ │ │ -4 author: ode@dalfy.dalfy.dyndns.org
│ │ │ │ │ +4 author: Olivier Delannoy
│ │ │ │ │ 5
│ │ │ │ │ -6 purpose: Inline function definition for (F>>>ILE_SANS<<<) 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
│ │ │ │ │ @@ -29,26 +29,55 @@
│ │ │ │ │ 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 ***************************************************************************/
│ │ │ │ │ -30
│ │ │ │ │ -31// Start of section namespace SILLY
│ │ │ │ │ -32namespace SILLY
│ │ │ │ │ -33{
│ │ │ │ │ -34inline DataSource::~DataSource()
│ │ │ │ │ -35{
│ │ │ │ │ -36}
│ │ │ │ │ +30#ifndef _SILLYMemoryDataSource_h_
│ │ │ │ │ +31#define _SILLYMemoryDataSource_h_
│ │ │ │ │ +32#include "SILLYBase.h"
│ │ │ │ │ +33#include "SILLYDataSource.h"
│ │ │ │ │ +34// Start of section namespace SILLY
│ │ │ │ │ +35namespace _S_I_L_L_Y
│ │ │ │ │ +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
│ │ │ │ │ +_4_8class SILLY_EXPORT _M_e_m_o_r_y_D_a_t_a_S_o_u_r_c_e : public _D_a_t_a_S_o_u_r_c_e
│ │ │ │ │ +49{
│ │ │ │ │ +50public:
│ │ │ │ │ +63 _M_e_m_o_r_y_D_a_t_a_S_o_u_r_c_e(const byte* data, size_t size);
│ │ │ │ │ +64
│ │ │ │ │ +65
│ │ │ │ │ +_6_6 const byte* _g_e_t_D_a_t_a_P_t_r() const;
│ │ │ │ │ +67
│ │ │ │ │ +_6_8 size_t _g_e_t_S_i_z_e() 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_
│ │ │ │ │ +_S_I_L_L_Y
│ │ │ │ │ +Simple Image Loading LibrarY namespace.
│ │ │ │ │ +DDeeffiinniittiioonn _S_I_L_L_Y_J_P_G_I_m_a_g_e_C_o_n_t_e_x_t_._c_p_p_:_4_6
│ │ │ │ │ +_S_I_L_L_Y_:_:_D_a_t_a_S_o_u_r_c_e
│ │ │ │ │ +This is an abstract class used to provide data to the loader.
│ │ │ │ │ +DDeeffiinniittiioonn _S_I_L_L_Y_D_a_t_a_S_o_u_r_c_e_._h_:_4_7
│ │ │ │ │ +_S_I_L_L_Y_:_:_M_e_m_o_r_y_D_a_t_a_S_o_u_r_c_e
│ │ │ │ │ +Load an image from a memory area.
│ │ │ │ │ +DDeeffiinniittiioonn _S_I_L_L_Y_M_e_m_o_r_y_D_a_t_a_S_o_u_r_c_e_._h_:_4_9
│ │ │ │ │ +_S_I_L_L_Y_:_:_M_e_m_o_r_y_D_a_t_a_S_o_u_r_c_e_:_:_g_e_t_D_a_t_a_P_t_r
│ │ │ │ │ +const byte * getDataPtr() const
│ │ │ │ │ +Get raw access to the image data.
│ │ │ │ │ +_S_I_L_L_Y_:_:_M_e_m_o_r_y_D_a_t_a_S_o_u_r_c_e_:_:_g_e_t_S_i_z_e
│ │ │ │ │ +size_t getSize() const
│ │ │ │ │ +Return the size of the data.
│ │ │ │ │ ===============================================================================
│ │ │ │ │ Generated by _[_d_o_x_y_g_e_n_] 1.9.8
│ │ │ ├── ./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/SILLYFileDataSource.h Source File
│ │ │ │ +
Simple Image Loading LibrarY: /build/reproducible-path/silly-0.1.0/include/SILLYImageLoaderManager.h Source File
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │ @@ -44,23 +44,23 @@
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │ -
│ │ │ │ -
│ │ │ │ +
│ │ │ │ +
│ │ │ │
│ │ │ │
│ │ │ │ -
│ │ │ │ +
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │ @@ -76,54 +76,80 @@
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │ -
30#ifndef _SILLYFileDataSource_h_
│ │ │ │ -
31#define _SILLYFileDataSource_h_
│ │ │ │ +
30#ifndef _SILLYImageLoaderManager_h_
│ │ │ │ +
31#define _SILLYImageLoaderManager_h_
│ │ │ │
│ │ │ │ -
33#include "SILLYDataSource.h"
│ │ │ │ +
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
87#ifdef SILLY_OPT_INLINE
│ │ │ │ -
88#include "SILLYFileDataSource.icpp"
│ │ │ │ -
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
48# pragma warning(disable : 4251)
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
74 ImageLoaderList::iterator
begin();
│ │ │ │ +
79 ImageLoaderList::iterator
end();
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │
│ │ │ │ -
│ │ │ │ -
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.
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
112#ifdef SILLY_OPT_INLINE
│ │ │ │ +
113#include "SILLYImageLoaderManager.icpp"
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
Simple Image Loading LibrarY namespace.
│ │ │ │ +
std::vector< ImageLoader * > ImageLoaderList
Typename for a collection of image loader.
│ │ │ │ +
This is an abstract class that define the interface of all image loader.
│ │ │ │ +
Manage the list of all supported ImageLoader.
│ │ │ │ +
void add(ImageLoader *loader)
Register an ImageLoader object.
│ │ │ │ +
ImageLoaderList::iterator begin()
Get an iterator to the first ImageLoader registered.
│ │ │ │ +
ImageLoaderList::iterator end()
Get an iterator to the first not registered ImageLoader.
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │ ├── html2text {}
│ │ │ │ │ @@ -1,19 +1,19 @@
│ │ │ │ │ Simple Image Loading LibrarY 0.1.0
│ │ │ │ │ * _b_u_i_l_d
│ │ │ │ │ * _r_e_p_r_o_d_u_c_i_b_l_e_-_p_a_t_h
│ │ │ │ │ * _s_i_l_l_y_-_0_._1_._0
│ │ │ │ │ * _i_n_c_l_u_d_e
│ │ │ │ │ -SILLYFileDataSource.h
│ │ │ │ │ +SILLYImageLoaderManager.h
│ │ │ │ │ 1/***********************************************************************
│ │ │ │ │ -2 filename: SILLYFileDataSource.h
│ │ │ │ │ -3 created: 20 Jul 2006
│ │ │ │ │ +2 filename: ImageLoaderManager.h
│ │ │ │ │ +3 created: 10 Jun 2006
│ │ │ │ │ 4 author: Olivier Delannoy
│ │ │ │ │ 5
│ │ │ │ │ -6 purpose: Provide file based image loading
│ │ │ │ │ +6 purpose: Manage all available 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
│ │ │ │ │ @@ -29,59 +29,88 @@
│ │ │ │ │ 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 ***************************************************************************/
│ │ │ │ │ -30#ifndef _SILLYFileDataSource_h_
│ │ │ │ │ -31#define _SILLYFileDataSource_h_
│ │ │ │ │ +30#ifndef _SILLYImageLoaderManager_h_
│ │ │ │ │ +31#define _SILLYImageLoaderManager_h_
│ │ │ │ │ 32#include "SILLYBase.h"
│ │ │ │ │ -33#include "SILLYDataSource.h"
│ │ │ │ │ +33#include
│ │ │ │ │ 34// Start of section namespace SILLY
│ │ │ │ │ 35namespace _S_I_L_L_Y
│ │ │ │ │ 36{
│ │ │ │ │ -37
│ │ │ │ │ -_4_8class SILLY_EXPORT _F_i_l_e_D_a_t_a_S_o_u_r_c_e : public _D_a_t_a_S_o_u_r_c_e
│ │ │ │ │ -49{
│ │ │ │ │ -50public:
│ │ │ │ │ -60 _F_i_l_e_D_a_t_a_S_o_u_r_c_e(const char* filename);
│ │ │ │ │ -64 _~_F_i_l_e_D_a_t_a_S_o_u_r_c_e();
│ │ │ │ │ -_7_3 bool _i_s_V_a_l_i_d() const;
│ │ │ │ │ -74
│ │ │ │ │ -_7_5 const byte* _g_e_t_D_a_t_a_P_t_r() const;
│ │ │ │ │ -_7_6 size_t _g_e_t_S_i_z_e() 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
│ │ │ │ │ +37class ImageLoader; // Forward declaration
│ │ │ │ │ +_4_2typedef std::vector _I_m_a_g_e_L_o_a_d_e_r_L_i_s_t;
│ │ │ │ │ +43
│ │ │ │ │ +44#if defined(_MSC_VER)
│ │ │ │ │ +45
│ │ │ │ │ +46# pragma warning(push)
│ │ │ │ │ +47
│ │ │ │ │ +48# pragma warning(disable : 4251)
│ │ │ │ │ +49
│ │ │ │ │ +50#endif
│ │ │ │ │ +51
│ │ │ │ │ +_5_6class SILLY_EXPORT _I_m_a_g_e_L_o_a_d_e_r_M_a_n_a_g_e_r
│ │ │ │ │ +57{
│ │ │ │ │ +58
│ │ │ │ │ +59public:
│ │ │ │ │ +64 _I_m_a_g_e_L_o_a_d_e_r_M_a_n_a_g_e_r();
│ │ │ │ │ +69 _~_I_m_a_g_e_L_o_a_d_e_r_M_a_n_a_g_e_r();
│ │ │ │ │ +_7_4 ImageLoaderList::iterator _b_e_g_i_n();
│ │ │ │ │ +_7_9 ImageLoaderList::iterator _e_n_d();
│ │ │ │ │ +_8_6 void _a_d_d(_I_m_a_g_e_L_o_a_d_e_r* loader);
│ │ │ │ │ +87
│ │ │ │ │ +88private:
│ │ │ │ │ +89 _I_m_a_g_e_L_o_a_d_e_r_L_i_s_t d_loaders;
│ │ │ │ │ 90
│ │ │ │ │ -91#endif // end of guard _SILLYFileDataSource_h_
│ │ │ │ │ +91public:
│ │ │ │ │ +92 static _I_m_a_g_e_L_o_a_d_e_r_M_a_n_a_g_e_r* getSingletonPtr();
│ │ │ │ │ +93 static _I_m_a_g_e_L_o_a_d_e_r_M_a_n_a_g_e_r& getSingleton();
│ │ │ │ │ +94
│ │ │ │ │ +95private:
│ │ │ │ │ +96 static _I_m_a_g_e_L_o_a_d_e_r_M_a_n_a_g_e_r* d_instance;
│ │ │ │ │ +97
│ │ │ │ │ +98 // Disabled operations
│ │ │ │ │ +99 _I_m_a_g_e_L_o_a_d_e_r_M_a_n_a_g_e_r(_I_m_a_g_e_L_o_a_d_e_r_M_a_n_a_g_e_r&);
│ │ │ │ │ +100 _I_m_a_g_e_L_o_a_d_e_r_M_a_n_a_g_e_r& operator=(_I_m_a_g_e_L_o_a_d_e_r_M_a_n_a_g_e_r&);
│ │ │ │ │ +101};
│ │ │ │ │ +102
│ │ │ │ │ +103#if defined(_MSC_VER)
│ │ │ │ │ +104
│ │ │ │ │ +105# pragma warning(pop)
│ │ │ │ │ +106
│ │ │ │ │ +107#endif
│ │ │ │ │ +108
│ │ │ │ │ +109} // End of section namespace SILLY
│ │ │ │ │ +110
│ │ │ │ │ +111// Inclue inline function when needed
│ │ │ │ │ +112#ifdef SILLY_OPT_INLINE
│ │ │ │ │ +113#include "SILLYImageLoaderManager.icpp"
│ │ │ │ │ +114#endif
│ │ │ │ │ +115
│ │ │ │ │ +116#endif // end of guard _SILLYImageLoaderManager_h_
│ │ │ │ │ _S_I_L_L_Y
│ │ │ │ │ Simple Image Loading LibrarY namespace.
│ │ │ │ │ DDeeffiinniittiioonn _S_I_L_L_Y_J_P_G_I_m_a_g_e_C_o_n_t_e_x_t_._c_p_p_:_4_6
│ │ │ │ │ -_S_I_L_L_Y_:_:_D_a_t_a_S_o_u_r_c_e
│ │ │ │ │ -This is an abstract class used to provide data to the loader.
│ │ │ │ │ -DDeeffiinniittiioonn _S_I_L_L_Y_D_a_t_a_S_o_u_r_c_e_._h_:_4_7
│ │ │ │ │ -_S_I_L_L_Y_:_:_F_i_l_e_D_a_t_a_S_o_u_r_c_e
│ │ │ │ │ -This class allow the loading of an image directly from a file.
│ │ │ │ │ -DDeeffiinniittiioonn _S_I_L_L_Y_F_i_l_e_D_a_t_a_S_o_u_r_c_e_._h_:_4_9
│ │ │ │ │ -_S_I_L_L_Y_:_:_F_i_l_e_D_a_t_a_S_o_u_r_c_e_:_:_g_e_t_D_a_t_a_P_t_r
│ │ │ │ │ -const byte * getDataPtr() const
│ │ │ │ │ -Get raw access to the image data.
│ │ │ │ │ -_S_I_L_L_Y_:_:_F_i_l_e_D_a_t_a_S_o_u_r_c_e_:_:_i_s_V_a_l_i_d
│ │ │ │ │ -bool isValid() const
│ │ │ │ │ -Check wether the loading is successfull or not.
│ │ │ │ │ -_S_I_L_L_Y_:_:_F_i_l_e_D_a_t_a_S_o_u_r_c_e_:_:_g_e_t_S_i_z_e
│ │ │ │ │ -size_t getSize() const
│ │ │ │ │ -Return the size of the data.
│ │ │ │ │ +_S_I_L_L_Y_:_:_I_m_a_g_e_L_o_a_d_e_r_L_i_s_t
│ │ │ │ │ +std::vector< ImageLoader * > ImageLoaderList
│ │ │ │ │ +Typename for a collection of image loader.
│ │ │ │ │ +DDeeffiinniittiioonn _S_I_L_L_Y_I_m_a_g_e_L_o_a_d_e_r_M_a_n_a_g_e_r_._h_:_4_2
│ │ │ │ │ +_S_I_L_L_Y_:_:_I_m_a_g_e_L_o_a_d_e_r
│ │ │ │ │ +This is an abstract class that define the interface of all image loader.
│ │ │ │ │ +DDeeffiinniittiioonn _S_I_L_L_Y_I_m_a_g_e_L_o_a_d_e_r_._h_:_4_7
│ │ │ │ │ +_S_I_L_L_Y_:_:_I_m_a_g_e_L_o_a_d_e_r_M_a_n_a_g_e_r
│ │ │ │ │ +Manage the list of all supported ImageLoader.
│ │ │ │ │ +DDeeffiinniittiioonn _S_I_L_L_Y_I_m_a_g_e_L_o_a_d_e_r_M_a_n_a_g_e_r_._h_:_5_7
│ │ │ │ │ +_S_I_L_L_Y_:_:_I_m_a_g_e_L_o_a_d_e_r_M_a_n_a_g_e_r_:_:_a_d_d
│ │ │ │ │ +void add(ImageLoader *loader)
│ │ │ │ │ +Register an ImageLoader object.
│ │ │ │ │ +_S_I_L_L_Y_:_:_I_m_a_g_e_L_o_a_d_e_r_M_a_n_a_g_e_r_:_:_b_e_g_i_n
│ │ │ │ │ +ImageLoaderList::iterator begin()
│ │ │ │ │ +Get an iterator to the first ImageLoader registered.
│ │ │ │ │ +_S_I_L_L_Y_:_:_I_m_a_g_e_L_o_a_d_e_r_M_a_n_a_g_e_r_:_:_e_n_d
│ │ │ │ │ +ImageLoaderList::iterator end()
│ │ │ │ │ +Get an iterator to the first not registered ImageLoader.
│ │ │ │ │ ===============================================================================
│ │ │ │ │ Generated by _[_d_o_x_y_g_e_n_] 1.9.8
│ │ │ ├── ./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/SILLYImageContext.h Source File
│ │ │ │ +Simple Image Loading LibrarY: /build/reproducible-path/silly-0.1.0/include/loaders/SILLYPNGImageContext.h Source File
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │ @@ -40,27 +40,27 @@
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │ -
│ │ │ │ -
│ │ │ │ +
│ │ │ │ +
│ │ │ │
│ │ │ │
│ │ │ │ -
│ │ │ │ +
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │ @@ -76,74 +76,68 @@
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │ -
30#ifndef _SILLYImageContext_h_
│ │ │ │ -
31#define _SILLYImageContext_h_
│ │ │ │ +
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;
│ │ │ │
│ │ │ │ -
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;
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
67 size_t d_num_channels;
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
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.
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
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 {}
│ │ │ │ │ @@ -1,20 +1,20 @@
│ │ │ │ │ Simple Image Loading LibrarY 0.1.0
│ │ │ │ │ * _b_u_i_l_d
│ │ │ │ │ * _r_e_p_r_o_d_u_c_i_b_l_e_-_p_a_t_h
│ │ │ │ │ * _s_i_l_l_y_-_0_._1_._0
│ │ │ │ │ * _i_n_c_l_u_d_e
│ │ │ │ │ -SILLYImageContext.h
│ │ │ │ │ + * _l_o_a_d_e_r_s
│ │ │ │ │ +SILLYPNGImageContext.h
│ │ │ │ │ 1/***********************************************************************
│ │ │ │ │ -2 filename: SILLYImageContext.h
│ │ │ │ │ -3 created: 10 Jun 2006
│ │ │ │ │ +2 filename: SILLYPNGImageContext.h
│ │ │ │ │ +3 created: 11 Jun 2006
│ │ │ │ │ 4 author: Olivier Delannoy
│ │ │ │ │ 5
│ │ │ │ │ -6 purpose: ImageContext is an abstract class used to hide the loader specific
│ │ │ │ │ -data needed during the parsing of an image
│ │ │ │ │ +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
│ │ │ │ │ @@ -30,82 +30,71 @@
│ │ │ │ │ 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 ***************************************************************************/
│ │ │ │ │ -30#ifndef _SILLYImageContext_h_
│ │ │ │ │ -31#define _SILLYImageContext_h_
│ │ │ │ │ +30#ifndef _SILLYPNGImageContext_h_
│ │ │ │ │ +31#define _SILLYPNGImageContext_h_
│ │ │ │ │ 32#include "SILLYBase.h"
│ │ │ │ │ -33
│ │ │ │ │ -34// Start of section namespace SILLY
│ │ │ │ │ -35namespace _S_I_L_L_Y
│ │ │ │ │ -36{
│ │ │ │ │ -37
│ │ │ │ │ -_4_3class SILLY_EXPORT _I_m_a_g_e_C_o_n_t_e_x_t
│ │ │ │ │ -44{
│ │ │ │ │ -45public:
│ │ │ │ │ -_5_0 virtual _~_I_m_a_g_e_C_o_n_t_e_x_t();
│ │ │ │ │ -51
│ │ │ │ │ -_5_6 void _s_e_t_D_e_s_t_i_n_a_t_i_o_n(byte* pixels, size_t length, _P_i_x_e_l_F_o_r_m_a_t format);
│ │ │ │ │ +33#include "SILLYImageContext.h"
│ │ │ │ │ +34#include "SILLYDataSource.h"
│ │ │ │ │ +35#include
│ │ │ │ │ +36// Start of section namespace SILLY
│ │ │ │ │ +37namespace _S_I_L_L_Y
│ │ │ │ │ +38{
│ │ │ │ │ +39
│ │ │ │ │ +_4_5class SILLY_EXPORT _P_N_G_I_m_a_g_e_C_o_n_t_e_x_t : public _I_m_a_g_e_C_o_n_t_e_x_t
│ │ │ │ │ +46{
│ │ │ │ │ +47public:
│ │ │ │ │ +48 _P_N_G_I_m_a_g_e_C_o_n_t_e_x_t(_D_a_t_a_S_o_u_r_c_e* data);
│ │ │ │ │ +49 _~_P_N_G_I_m_a_g_e_C_o_n_t_e_x_t();
│ │ │ │ │ +50
│ │ │ │ │ +51 int read(png_bytep data, png_size_t length);
│ │ │ │ │ +52
│ │ │ │ │ +53
│ │ │ │ │ +54
│ │ │ │ │ +55private:
│ │ │ │ │ +56 void setImageSize();
│ │ │ │ │ 57
│ │ │ │ │ -_6_2 void _s_e_t_N_e_x_t_P_i_x_e_l(byte red, byte green, byte bleu, byte alpha);
│ │ │ │ │ +58 size_t d_offset;
│ │ │ │ │ +59
│ │ │ │ │ +60 _D_a_t_a_S_o_u_r_c_e* d_data;
│ │ │ │ │ +61
│ │ │ │ │ +62 png_structp d_png_ptr;
│ │ │ │ │ 63
│ │ │ │ │ -64 size_t getWidth() const;
│ │ │ │ │ -65 size_t getHeight() const;
│ │ │ │ │ -66 _P_i_x_e_l_F_o_r_m_a_t getPixelFormat() const;
│ │ │ │ │ -67
│ │ │ │ │ -74 bool flipVertically();
│ │ │ │ │ -75 protected:
│ │ │ │ │ -76 void setWidth(size_t width);
│ │ │ │ │ -77
│ │ │ │ │ -78 void setHeight(size_t height);
│ │ │ │ │ -79
│ │ │ │ │ -_8_8 _I_m_a_g_e_C_o_n_t_e_x_t(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 _P_i_x_e_l_F_o_r_m_a_t d_format;
│ │ │ │ │ -97
│ │ │ │ │ -98 // Disabled operation
│ │ │ │ │ -99 _I_m_a_g_e_C_o_n_t_e_x_t(_I_m_a_g_e_C_o_n_t_e_x_t&);
│ │ │ │ │ -100 _I_m_a_g_e_C_o_n_t_e_x_t& operator=(_I_m_a_g_e_C_o_n_t_e_x_t&);
│ │ │ │ │ -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_
│ │ │ │ │ +64 png_infop d_info_ptr;
│ │ │ │ │ +65
│ │ │ │ │ +66 size_t d_bit_depth;
│ │ │ │ │ +67 size_t d_num_channels;
│ │ │ │ │ +68
│ │ │ │ │ +69
│ │ │ │ │ +70 friend class _P_N_G_I_m_a_g_e_L_o_a_d_e_r;
│ │ │ │ │ +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_
│ │ │ │ │ _S_I_L_L_Y
│ │ │ │ │ Simple Image Loading LibrarY namespace.
│ │ │ │ │ DDeeffiinniittiioonn _S_I_L_L_Y_J_P_G_I_m_a_g_e_C_o_n_t_e_x_t_._c_p_p_:_4_6
│ │ │ │ │ -_S_I_L_L_Y_:_:_P_i_x_e_l_F_o_r_m_a_t
│ │ │ │ │ -PixelFormat
│ │ │ │ │ -List all pixel format supported.
│ │ │ │ │ -DDeeffiinniittiioonn _S_I_L_L_Y_B_a_s_e_._h_:_6_0
│ │ │ │ │ +_S_I_L_L_Y_:_:_P_N_G_I_m_a_g_e_C_o_n_t_e_x_t
│ │ │ │ │ +Image Context for PNG Image Loader.
│ │ │ │ │ +DDeeffiinniittiioonn _S_I_L_L_Y_P_N_G_I_m_a_g_e_C_o_n_t_e_x_t_._h_:_4_6
│ │ │ │ │ +_S_I_L_L_Y_:_:_P_N_G_I_m_a_g_e_L_o_a_d_e_r
│ │ │ │ │ +Loader for PNG Image.
│ │ │ │ │ +DDeeffiinniittiioonn _S_I_L_L_Y_P_N_G_I_m_a_g_e_L_o_a_d_e_r_._h_:_4_3
│ │ │ │ │ +_S_I_L_L_Y_:_:_D_a_t_a_S_o_u_r_c_e
│ │ │ │ │ +This is an abstract class used to provide data to the loader.
│ │ │ │ │ +DDeeffiinniittiioonn _S_I_L_L_Y_D_a_t_a_S_o_u_r_c_e_._h_:_4_7
│ │ │ │ │ _S_I_L_L_Y_:_:_I_m_a_g_e_C_o_n_t_e_x_t
│ │ │ │ │ Store the data needed by an ImageLoader object during the parsing of an image.
│ │ │ │ │ DDeeffiinniittiioonn _S_I_L_L_Y_I_m_a_g_e_C_o_n_t_e_x_t_._h_:_4_4
│ │ │ │ │ -_S_I_L_L_Y_:_:_I_m_a_g_e_C_o_n_t_e_x_t_:_:_s_e_t_N_e_x_t_P_i_x_e_l
│ │ │ │ │ -void setNextPixel(byte red, byte green, byte bleu, byte alpha)
│ │ │ │ │ -Set the next pixel of the image.
│ │ │ │ │ -_S_I_L_L_Y_:_:_I_m_a_g_e_C_o_n_t_e_x_t_:_:_s_e_t_D_e_s_t_i_n_a_t_i_o_n
│ │ │ │ │ -void setDestination(byte *pixels, size_t length, PixelFormat format)
│ │ │ │ │ -Set the destination of the loading.
│ │ │ │ │ -_S_I_L_L_Y_:_:_I_m_a_g_e_C_o_n_t_e_x_t_:_:_I_m_a_g_e_C_o_n_t_e_x_t
│ │ │ │ │ -ImageContext(size_t width, size_t height)
│ │ │ │ │ -Constructor.
│ │ │ │ │ -_S_I_L_L_Y_:_:_I_m_a_g_e_C_o_n_t_e_x_t_:_:_~_I_m_a_g_e_C_o_n_t_e_x_t
│ │ │ │ │ -virtual ~ImageContext()
│ │ │ │ │ -Destructor.
│ │ │ │ │ ===============================================================================
│ │ │ │ │ Generated by _[_d_o_x_y_g_e_n_] 1.9.8
│ │ │ ├── ./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/SILLYImageLoader.h Source File
│ │ │ │ +Simple Image Loading LibrarY: /build/reproducible-path/silly-0.1.0/include/loaders/SILLYJPGImageContext.icpp Source File
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │ @@ -40,101 +40,57 @@
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
30#ifndef _SILLYImageLoader_h_
│ │ │ │ -
31#define _SILLYImageLoader_h_
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
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.
│ │ │ │ +
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 {}
│ │ │ │ │ @@ -1,19 +1,20 @@
│ │ │ │ │ Simple Image Loading LibrarY 0.1.0
│ │ │ │ │ * _b_u_i_l_d
│ │ │ │ │ * _r_e_p_r_o_d_u_c_i_b_l_e_-_p_a_t_h
│ │ │ │ │ * _s_i_l_l_y_-_0_._1_._0
│ │ │ │ │ * _i_n_c_l_u_d_e
│ │ │ │ │ -SILLYImageLoader.h
│ │ │ │ │ + * _l_o_a_d_e_r_s
│ │ │ │ │ +SILLYJPGImageContext.icpp
│ │ │ │ │ 1/***********************************************************************
│ │ │ │ │ -2 filename: SILLYImageLoader.h
│ │ │ │ │ -3 created: 10 Jun 2006
│ │ │ │ │ +2 filename: SILLYJPGImageContext.icpp
│ │ │ │ │ +3 created: 11 Jun 2006
│ │ │ │ │ 4 author: Olivier Delannoy
│ │ │ │ │ 5
│ │ │ │ │ -6 purpose: Abstract class for all image loader
│ │ │ │ │ +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
│ │ │ │ │ @@ -29,86 +30,16 @@
│ │ │ │ │ 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 ***************************************************************************/
│ │ │ │ │ -30#ifndef _SILLYImageLoader_h_
│ │ │ │ │ -31#define _SILLYImageLoader_h_
│ │ │ │ │ -32#include "SILLYBase.h"
│ │ │ │ │ -33// Start of section namespace SILLY
│ │ │ │ │ -34namespace _S_I_L_L_Y
│ │ │ │ │ -35{
│ │ │ │ │ -36class DataSource; // Forward declaration
│ │ │ │ │ -37class ImageContext; // Forward declaration
│ │ │ │ │ -38
│ │ │ │ │ -_4_6class SILLY_EXPORT _I_m_a_g_e_L_o_a_d_e_r
│ │ │ │ │ -47{
│ │ │ │ │ -48protected:
│ │ │ │ │ -_5_2 _I_m_a_g_e_L_o_a_d_e_r(const char* name);
│ │ │ │ │ -53public:
│ │ │ │ │ -54
│ │ │ │ │ -_5_9 virtual _~_I_m_a_g_e_L_o_a_d_e_r();
│ │ │ │ │ -60
│ │ │ │ │ -_7_1 virtual _I_m_a_g_e_C_o_n_t_e_x_t* _l_o_a_d_H_e_a_d_e_r(_P_i_x_e_l_F_o_r_m_a_t& formatSource, _D_a_t_a_S_o_u_r_c_e*
│ │ │ │ │ -data) = 0;
│ │ │ │ │ -72
│ │ │ │ │ -73
│ │ │ │ │ -_8_6 virtual bool _l_o_a_d_I_m_a_g_e_D_a_t_a(_P_i_x_e_l_O_r_i_g_i_n origin, _D_a_t_a_S_o_u_r_c_e* data,
│ │ │ │ │ -_I_m_a_g_e_C_o_n_t_e_x_t* context) = 0;
│ │ │ │ │ -87
│ │ │ │ │ -94 void destroyContext(_I_m_a_g_e_C_o_n_t_e_x_t* context);
│ │ │ │ │ -95
│ │ │ │ │ -_1_0_0 const char* _g_e_t_I_d_e_n_t_i_f_i_e_r_S_t_r_i_n_g() 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_
│ │ │ │ │ -_S_I_L_L_Y
│ │ │ │ │ -Simple Image Loading LibrarY namespace.
│ │ │ │ │ -DDeeffiinniittiioonn _S_I_L_L_Y_J_P_G_I_m_a_g_e_C_o_n_t_e_x_t_._c_p_p_:_4_6
│ │ │ │ │ -_S_I_L_L_Y_:_:_P_i_x_e_l_F_o_r_m_a_t
│ │ │ │ │ -PixelFormat
│ │ │ │ │ -List all pixel format supported.
│ │ │ │ │ -DDeeffiinniittiioonn _S_I_L_L_Y_B_a_s_e_._h_:_6_0
│ │ │ │ │ -_S_I_L_L_Y_:_:_P_i_x_e_l_O_r_i_g_i_n
│ │ │ │ │ -PixelOrigin
│ │ │ │ │ -List all pixel origin supported.
│ │ │ │ │ -DDeeffiinniittiioonn _S_I_L_L_Y_B_a_s_e_._h_:_7_1
│ │ │ │ │ -_S_I_L_L_Y_:_:_D_a_t_a_S_o_u_r_c_e
│ │ │ │ │ -This is an abstract class used to provide data to the loader.
│ │ │ │ │ -DDeeffiinniittiioonn _S_I_L_L_Y_D_a_t_a_S_o_u_r_c_e_._h_:_4_7
│ │ │ │ │ -_S_I_L_L_Y_:_:_I_m_a_g_e_C_o_n_t_e_x_t
│ │ │ │ │ -Store the data needed by an ImageLoader object during the parsing of an image.
│ │ │ │ │ -DDeeffiinniittiioonn _S_I_L_L_Y_I_m_a_g_e_C_o_n_t_e_x_t_._h_:_4_4
│ │ │ │ │ -_S_I_L_L_Y_:_:_I_m_a_g_e_L_o_a_d_e_r
│ │ │ │ │ -This is an abstract class that define the interface of all image loader.
│ │ │ │ │ -DDeeffiinniittiioonn _S_I_L_L_Y_I_m_a_g_e_L_o_a_d_e_r_._h_:_4_7
│ │ │ │ │ -_S_I_L_L_Y_:_:_I_m_a_g_e_L_o_a_d_e_r_:_:_I_m_a_g_e_L_o_a_d_e_r
│ │ │ │ │ -ImageLoader(const char *name)
│ │ │ │ │ -Constructor.
│ │ │ │ │ -_S_I_L_L_Y_:_:_I_m_a_g_e_L_o_a_d_e_r_:_:_l_o_a_d_H_e_a_d_e_r
│ │ │ │ │ -virtual ImageContext * loadHeader(PixelFormat &formatSource, DataSource
│ │ │ │ │ -*data)=0
│ │ │ │ │ -Parse the header of the image and fill the header struct.
│ │ │ │ │ -_S_I_L_L_Y_:_:_I_m_a_g_e_L_o_a_d_e_r_:_:_l_o_a_d_I_m_a_g_e_D_a_t_a
│ │ │ │ │ -virtual bool loadImageData(PixelOrigin origin, DataSource *data, ImageContext
│ │ │ │ │ -*context)=0
│ │ │ │ │ -Parse the pixels data of the image and fill the header struct.
│ │ │ │ │ -_S_I_L_L_Y_:_:_I_m_a_g_e_L_o_a_d_e_r_:_:_~_I_m_a_g_e_L_o_a_d_e_r
│ │ │ │ │ -virtual ~ImageLoader()
│ │ │ │ │ -Destructor.
│ │ │ │ │ -_S_I_L_L_Y_:_:_I_m_a_g_e_L_o_a_d_e_r_:_:_g_e_t_I_d_e_n_t_i_f_i_e_r_S_t_r_i_n_g
│ │ │ │ │ -const char * getIdentifierString() const
│ │ │ │ │ -Return the name of the loader.
│ │ │ │ │ +30
│ │ │ │ │ +31// Start of section namespace SILLY
│ │ │ │ │ +32namespace SILLY
│ │ │ │ │ +33{
│ │ │ │ │ +34
│ │ │ │ │ +35} // End of section namespace SILLY
│ │ │ │ │ +36
│ │ │ │ │ ===============================================================================
│ │ │ │ │ Generated by _[_d_o_x_y_g_e_n_] 1.9.8
│ │ │ ├── ./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/SILLYImage.h Source File
│ │ │ │ +
Simple Image Loading LibrarY: /build/reproducible-path/silly-0.1.0/include/loaders/SILLYJPGImageLoader.h Source File
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │ @@ -40,130 +40,88 @@
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
34#include "SILLYImageContext.h"
│ │ │ │ -
35#include "SILLYDataSource.h"
│ │ │ │ -
36#include "SILLYImageLoader.h"
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
76 bool loadImageHeader();
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
30#ifndef _SILLYJPGImageLoader_h_
│ │ │ │ +
31#define _SILLYJPGImageLoader_h_
│ │ │ │ +
│ │ │ │ +
33#include "SILLYImageLoader.h"
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
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.
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
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.
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │ ├── html2text {}
│ │ │ │ │ @@ -1,149 +1,96 @@
│ │ │ │ │ Simple Image Loading LibrarY 0.1.0
│ │ │ │ │ * _b_u_i_l_d
│ │ │ │ │ * _r_e_p_r_o_d_u_c_i_b_l_e_-_p_a_t_h
│ │ │ │ │ * _s_i_l_l_y_-_0_._1_._0
│ │ │ │ │ * _i_n_c_l_u_d_e
│ │ │ │ │ -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#ifndef _SILLYImage_h_
│ │ │ │ │ -32#define _SILLYImage_h_
│ │ │ │ │ -33#include "SILLYBase.h"
│ │ │ │ │ -34#include "SILLYImageContext.h"
│ │ │ │ │ -35#include "SILLYDataSource.h"
│ │ │ │ │ -36#include "SILLYImageLoader.h"
│ │ │ │ │ + * _l_o_a_d_e_r_s
│ │ │ │ │ +SILLYJPGImageLoader.h
│ │ │ │ │ +1/***********************************************************************
│ │ │ │ │ +2 filename: SILLYJPGImageLoader.h
│ │ │ │ │ +3 created: 11 Jun 2006
│ │ │ │ │ +4 author: Olivier Delannoy
│ │ │ │ │ +5
│ │ │ │ │ +6 purpose: Declaration of the 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 ***************************************************************************/
│ │ │ │ │ +30#ifndef _SILLYJPGImageLoader_h_
│ │ │ │ │ +31#define _SILLYJPGImageLoader_h_
│ │ │ │ │ +32#include "SILLYBase.h"
│ │ │ │ │ +33#include "SILLYImageLoader.h"
│ │ │ │ │ +34// Start of section namespace SILLY
│ │ │ │ │ +35namespace _S_I_L_L_Y
│ │ │ │ │ +36{
│ │ │ │ │ 37
│ │ │ │ │ -38// Start of section namespace SILLY
│ │ │ │ │ -39namespace _S_I_L_L_Y
│ │ │ │ │ -40{
│ │ │ │ │ -41
│ │ │ │ │ -_4_6class SILLY_EXPORT _I_m_a_g_e
│ │ │ │ │ -47{
│ │ │ │ │ -48public:
│ │ │ │ │ -55 _I_m_a_g_e(_D_a_t_a_S_o_u_r_c_e& data);
│ │ │ │ │ -56
│ │ │ │ │ -_6_1 _~_I_m_a_g_e();
│ │ │ │ │ -62
│ │ │ │ │ -_6_7 bool _i_s_V_a_l_i_d() const;
│ │ │ │ │ -68
│ │ │ │ │ -69
│ │ │ │ │ -76 bool loadImageHeader();
│ │ │ │ │ -77
│ │ │ │ │ -91 bool loadImageData(_P_i_x_e_l_F_o_r_m_a_t resultFormat = PF_RGBA, _P_i_x_e_l_O_r_i_g_i_n origin =
│ │ │ │ │ -PO_TOP_LEFT);
│ │ │ │ │ -92
│ │ │ │ │ -_9_7 size_t _g_e_t_W_i_d_t_h() const;
│ │ │ │ │ -98
│ │ │ │ │ -_1_0_3 size_t _g_e_t_H_e_i_g_h_t() const;
│ │ │ │ │ -104
│ │ │ │ │ -_1_0_9 _P_i_x_e_l_F_o_r_m_a_t _g_e_t_S_o_u_r_c_e_P_i_x_e_l_F_o_r_m_a_t() const;
│ │ │ │ │ -110
│ │ │ │ │ -_1_1_5 _P_i_x_e_l_F_o_r_m_a_t _g_e_t_P_i_x_e_l_F_o_r_m_a_t() const;
│ │ │ │ │ -116
│ │ │ │ │ -_1_2_0 const byte* _g_e_t_P_i_x_e_l_s_D_a_t_a_P_t_r() const;
│ │ │ │ │ -_1_2_5 size_t _g_e_t_P_i_x_e_l_s_D_a_t_a_S_i_z_e() const;
│ │ │ │ │ -_1_3_0 const char* _g_e_t_L_o_a_d_e_r_I_d_e_n_t_i_f_i_e_r_S_t_r_i_n_g() const;
│ │ │ │ │ -131private:
│ │ │ │ │ -132 bool allocate();
│ │ │ │ │ -133
│ │ │ │ │ -134private:
│ │ │ │ │ -135
│ │ │ │ │ -136 size_t d_bpp;
│ │ │ │ │ -137 _P_i_x_e_l_F_o_r_m_a_t d_pfSource;
│ │ │ │ │ -138 byte* d_pixels;
│ │ │ │ │ -139 _D_a_t_a_S_o_u_r_c_e* d_data;
│ │ │ │ │ -140 _I_m_a_g_e_C_o_n_t_e_x_t* d_imageContext;
│ │ │ │ │ -141 _I_m_a_g_e_L_o_a_d_e_r* d_imageLoader;
│ │ │ │ │ -142
│ │ │ │ │ -143 // Disabled operation
│ │ │ │ │ -144 _I_m_a_g_e(_I_m_a_g_e&);
│ │ │ │ │ -145 _I_m_a_g_e& operator=(_I_m_a_g_e&);
│ │ │ │ │ -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_
│ │ │ │ │ +_4_2class _J_P_G_I_m_a_g_e_L_o_a_d_e_r : public _I_m_a_g_e_L_o_a_d_e_r
│ │ │ │ │ +43{
│ │ │ │ │ +44public:
│ │ │ │ │ +45 _J_P_G_I_m_a_g_e_L_o_a_d_e_r();
│ │ │ │ │ +46 _~_J_P_G_I_m_a_g_e_L_o_a_d_e_r();
│ │ │ │ │ +47 _I_m_a_g_e_C_o_n_t_e_x_t* _l_o_a_d_H_e_a_d_e_r(_P_i_x_e_l_F_o_r_m_a_t& header, _D_a_t_a_S_o_u_r_c_e* data);
│ │ │ │ │ +48 bool _l_o_a_d_I_m_a_g_e_D_a_t_a(_P_i_x_e_l_O_r_i_g_i_n origin, _D_a_t_a_S_o_u_r_c_e* data, _I_m_a_g_e_C_o_n_t_e_x_t*
│ │ │ │ │ +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_
│ │ │ │ │ _S_I_L_L_Y
│ │ │ │ │ Simple Image Loading LibrarY namespace.
│ │ │ │ │ DDeeffiinniittiioonn _S_I_L_L_Y_J_P_G_I_m_a_g_e_C_o_n_t_e_x_t_._c_p_p_:_4_6
│ │ │ │ │ _S_I_L_L_Y_:_:_P_i_x_e_l_F_o_r_m_a_t
│ │ │ │ │ PixelFormat
│ │ │ │ │ List all pixel format supported.
│ │ │ │ │ DDeeffiinniittiioonn _S_I_L_L_Y_B_a_s_e_._h_:_6_0
│ │ │ │ │ _S_I_L_L_Y_:_:_P_i_x_e_l_O_r_i_g_i_n
│ │ │ │ │ PixelOrigin
│ │ │ │ │ List all pixel origin supported.
│ │ │ │ │ DDeeffiinniittiioonn _S_I_L_L_Y_B_a_s_e_._h_:_7_1
│ │ │ │ │ +_S_I_L_L_Y_:_:_J_P_G_I_m_a_g_e_L_o_a_d_e_r
│ │ │ │ │ +Loader class for JPG Image.
│ │ │ │ │ +DDeeffiinniittiioonn _S_I_L_L_Y_J_P_G_I_m_a_g_e_L_o_a_d_e_r_._h_:_4_3
│ │ │ │ │ +_S_I_L_L_Y_:_:_J_P_G_I_m_a_g_e_L_o_a_d_e_r_:_:_l_o_a_d_I_m_a_g_e_D_a_t_a
│ │ │ │ │ +bool loadImageData(PixelOrigin origin, DataSource *data, ImageContext *context)
│ │ │ │ │ +Parse the pixels data of the image and fill the header struct.
│ │ │ │ │ +DDeeffiinniittiioonn _S_I_L_L_Y_J_P_G_I_m_a_g_e_L_o_a_d_e_r_._c_p_p_:_9_0
│ │ │ │ │ +_S_I_L_L_Y_:_:_J_P_G_I_m_a_g_e_L_o_a_d_e_r_:_:_l_o_a_d_H_e_a_d_e_r
│ │ │ │ │ +ImageContext * loadHeader(PixelFormat &header, DataSource *data)
│ │ │ │ │ +Parse the header of the image and fill the header struct.
│ │ │ │ │ +DDeeffiinniittiioonn _S_I_L_L_Y_J_P_G_I_m_a_g_e_L_o_a_d_e_r_._c_p_p_:_5_6
│ │ │ │ │ _S_I_L_L_Y_:_:_D_a_t_a_S_o_u_r_c_e
│ │ │ │ │ This is an abstract class used to provide data to the loader.
│ │ │ │ │ DDeeffiinniittiioonn _S_I_L_L_Y_D_a_t_a_S_o_u_r_c_e_._h_:_4_7
│ │ │ │ │ -_S_I_L_L_Y_:_:_I_m_a_g_e
│ │ │ │ │ -Image is the main user class of the library.
│ │ │ │ │ -DDeeffiinniittiioonn _S_I_L_L_Y_I_m_a_g_e_._h_:_4_7
│ │ │ │ │ -_S_I_L_L_Y_:_:_I_m_a_g_e_:_:_g_e_t_S_o_u_r_c_e_P_i_x_e_l_F_o_r_m_a_t
│ │ │ │ │ -PixelFormat getSourcePixelFormat() const
│ │ │ │ │ -Retrieve the pixel format used for the image storage.
│ │ │ │ │ -_S_I_L_L_Y_:_:_I_m_a_g_e_:_:_g_e_t_L_o_a_d_e_r_I_d_e_n_t_i_f_i_e_r_S_t_r_i_n_g
│ │ │ │ │ -const char * getLoaderIdentifierString() const
│ │ │ │ │ -Get Image loader identifier string.
│ │ │ │ │ -_S_I_L_L_Y_:_:_I_m_a_g_e_:_:_g_e_t_P_i_x_e_l_s_D_a_t_a_P_t_r
│ │ │ │ │ -const byte * getPixelsDataPtr() const
│ │ │ │ │ -Get a pointer to the pixels data.
│ │ │ │ │ -_S_I_L_L_Y_:_:_I_m_a_g_e_:_:_i_s_V_a_l_i_d
│ │ │ │ │ -bool isValid() const
│ │ │ │ │ -Return true if the image is valid after its loading.
│ │ │ │ │ -_S_I_L_L_Y_:_:_I_m_a_g_e_:_:_g_e_t_P_i_x_e_l_s_D_a_t_a_S_i_z_e
│ │ │ │ │ -size_t getPixelsDataSize() const
│ │ │ │ │ -Get the size of the pixel buffer.
│ │ │ │ │ -_S_I_L_L_Y_:_:_I_m_a_g_e_:_:_~_I_m_a_g_e
│ │ │ │ │ -~Image()
│ │ │ │ │ -Destructor.
│ │ │ │ │ -_S_I_L_L_Y_:_:_I_m_a_g_e_:_:_g_e_t_W_i_d_t_h
│ │ │ │ │ -size_t getWidth() const
│ │ │ │ │ -Retrieve the width of the image.
│ │ │ │ │ -_S_I_L_L_Y_:_:_I_m_a_g_e_:_:_g_e_t_P_i_x_e_l_F_o_r_m_a_t
│ │ │ │ │ -PixelFormat getPixelFormat() const
│ │ │ │ │ -Retrieve the pixel format of the resulting image.
│ │ │ │ │ -_S_I_L_L_Y_:_:_I_m_a_g_e_:_:_g_e_t_H_e_i_g_h_t
│ │ │ │ │ -size_t getHeight() const
│ │ │ │ │ -Retrieve the height of the image.
│ │ │ │ │ _S_I_L_L_Y_:_:_I_m_a_g_e_C_o_n_t_e_x_t
│ │ │ │ │ Store the data needed by an ImageLoader object during the parsing of an image.
│ │ │ │ │ DDeeffiinniittiioonn _S_I_L_L_Y_I_m_a_g_e_C_o_n_t_e_x_t_._h_:_4_4
│ │ │ │ │ _S_I_L_L_Y_:_:_I_m_a_g_e_L_o_a_d_e_r
│ │ │ │ │ This is an abstract class that define the interface of all image loader.
│ │ │ │ │ DDeeffiinniittiioonn _S_I_L_L_Y_I_m_a_g_e_L_o_a_d_e_r_._h_:_4_7
│ │ │ │ │ ===============================================================================
│ │ │ ├── ./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/SILLYDataSource.h Source File
│ │ │ │ +
Simple Image Loading LibrarY: /build/reproducible-path/silly-0.1.0/include/loaders/SILLYJPGImageLoader.icpp Source File
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │ @@ -40,83 +40,57 @@
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
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.
│ │ │ │ +
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 {}
│ │ │ │ │ @@ -1,19 +1,20 @@
│ │ │ │ │ Simple Image Loading LibrarY 0.1.0
│ │ │ │ │ * _b_u_i_l_d
│ │ │ │ │ * _r_e_p_r_o_d_u_c_i_b_l_e_-_p_a_t_h
│ │ │ │ │ * _s_i_l_l_y_-_0_._1_._0
│ │ │ │ │ * _i_n_c_l_u_d_e
│ │ │ │ │ -SILLYDataSource.h
│ │ │ │ │ + * _l_o_a_d_e_r_s
│ │ │ │ │ +SILLYJPGImageLoader.icpp
│ │ │ │ │ 1/***********************************************************************
│ │ │ │ │ -2 filename: SILLYDataSource.h
│ │ │ │ │ -3 created: 10 Jun 2006
│ │ │ │ │ +2 filename: SILLYJPGImageLoader.icpp
│ │ │ │ │ +3 created: 11 Jun 2006
│ │ │ │ │ 4 author: Olivier Delannoy
│ │ │ │ │ 5
│ │ │ │ │ -6 purpose: SILLY::DataSource declaration for the SILLY library
│ │ │ │ │ +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
│ │ │ │ │ @@ -29,50 +30,16 @@
│ │ │ │ │ 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 ***************************************************************************/
│ │ │ │ │ -30#ifndef _SILLYDataSource_h_
│ │ │ │ │ -31#define _SILLYDataSource_h_
│ │ │ │ │ -32#include "SILLYBase.h"
│ │ │ │ │ -33
│ │ │ │ │ -34// Start of section namespace SILLY
│ │ │ │ │ -35namespace _S_I_L_L_Y
│ │ │ │ │ -36{
│ │ │ │ │ -37
│ │ │ │ │ -_4_6class SILLY_EXPORT _D_a_t_a_S_o_u_r_c_e
│ │ │ │ │ -47{
│ │ │ │ │ -48public:
│ │ │ │ │ -_5_3 virtual _~_D_a_t_a_S_o_u_r_c_e();
│ │ │ │ │ -_5_8 virtual const byte * _g_e_t_D_a_t_a_P_t_r() const = 0;
│ │ │ │ │ -_6_4 byte operator[] (size_t offset) const;
│ │ │ │ │ -_6_9 virtual size_t _g_e_t_S_i_z_e() 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_
│ │ │ │ │ -_S_I_L_L_Y
│ │ │ │ │ -Simple Image Loading LibrarY namespace.
│ │ │ │ │ -DDeeffiinniittiioonn _S_I_L_L_Y_J_P_G_I_m_a_g_e_C_o_n_t_e_x_t_._c_p_p_:_4_6
│ │ │ │ │ -_S_I_L_L_Y_:_:_D_a_t_a_S_o_u_r_c_e
│ │ │ │ │ -This is an abstract class used to provide data to the loader.
│ │ │ │ │ -DDeeffiinniittiioonn _S_I_L_L_Y_D_a_t_a_S_o_u_r_c_e_._h_:_4_7
│ │ │ │ │ -_S_I_L_L_Y_:_:_D_a_t_a_S_o_u_r_c_e_:_:_g_e_t_S_i_z_e
│ │ │ │ │ -virtual size_t getSize() const =0
│ │ │ │ │ -Return the size of the data.
│ │ │ │ │ -_S_I_L_L_Y_:_:_D_a_t_a_S_o_u_r_c_e_:_:_g_e_t_D_a_t_a_P_t_r
│ │ │ │ │ -virtual const byte * getDataPtr() const =0
│ │ │ │ │ -Get raw access to the image data.
│ │ │ │ │ -_S_I_L_L_Y_:_:_D_a_t_a_S_o_u_r_c_e_:_:_~_D_a_t_a_S_o_u_r_c_e
│ │ │ │ │ -virtual ~DataSource()
│ │ │ │ │ -Destructor.
│ │ │ │ │ +30
│ │ │ │ │ +31// Start of section namespace SILLY
│ │ │ │ │ +32namespace SILLY
│ │ │ │ │ +33{
│ │ │ │ │ +34
│ │ │ │ │ +35} // End of section namespace SILLY
│ │ │ │ │ +36
│ │ │ │ │ ===============================================================================
│ │ │ │ │ Generated by _[_d_o_x_y_g_e_n_] 1.9.8
│ │ │ ├── ./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/SILLYBase.h Source File
│ │ │ │ +
Simple Image Loading LibrarY: /build/reproducible-path/silly-0.1.0/include/loaders/SILLYPNGImageLoader.h Source File
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │ @@ -40,27 +40,27 @@
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │ -
│ │ │ │ -
│ │ │ │ +
│ │ │ │ +
│ │ │ │
│ │ │ │
│ │ │ │ -
│ │ │ │ +
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │ @@ -76,71 +76,58 @@
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
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)
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ +
30#ifndef _SILLYPNGImageLoader_h_
│ │ │ │ +
31#define _SILLYPNGImageLoader_h_
│ │ │ │ +
│ │ │ │ +
33#include "SILLYImageLoader.h"
│ │ │ │ +
34#include "SILLYDataSource.h"
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
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.
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
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 {}
│ │ │ │ │ @@ -1,19 +1,20 @@
│ │ │ │ │ Simple Image Loading LibrarY 0.1.0
│ │ │ │ │ * _b_u_i_l_d
│ │ │ │ │ * _r_e_p_r_o_d_u_c_i_b_l_e_-_p_a_t_h
│ │ │ │ │ * _s_i_l_l_y_-_0_._1_._0
│ │ │ │ │ * _i_n_c_l_u_d_e
│ │ │ │ │ -SILLYBase.h
│ │ │ │ │ + * _l_o_a_d_e_r_s
│ │ │ │ │ +SILLYPNGImageLoader.h
│ │ │ │ │ 1/***********************************************************************
│ │ │ │ │ -2 filename: SILLYBase.h
│ │ │ │ │ -3 created: 2006/06/10
│ │ │ │ │ +2 filename: SILLYPNGImageLoader.h
│ │ │ │ │ +3 created: 11 Jun 2006
│ │ │ │ │ 4 author: Olivier Delannoy
│ │ │ │ │ 5
│ │ │ │ │ -6 purpose: Common header for the SILLY library
│ │ │ │ │ +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
│ │ │ │ │ @@ -29,81 +30,73 @@
│ │ │ │ │ 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 ***************************************************************************/
│ │ │ │ │ -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
│ │ │ │ │ +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 _S_I_L_L_Y
│ │ │ │ │ +37{
│ │ │ │ │ +_4_2class _P_N_G_I_m_a_g_e_L_o_a_d_e_r : public _I_m_a_g_e_L_o_a_d_e_r
│ │ │ │ │ +43{
│ │ │ │ │ +44public:
│ │ │ │ │ +45 _P_N_G_I_m_a_g_e_L_o_a_d_e_r();
│ │ │ │ │ +46
│ │ │ │ │ +47 _~_P_N_G_I_m_a_g_e_L_o_a_d_e_r();
│ │ │ │ │ +48
│ │ │ │ │ +49 _I_m_a_g_e_C_o_n_t_e_x_t* _l_o_a_d_H_e_a_d_e_r(_P_i_x_e_l_F_o_r_m_a_t& formatSource, _D_a_t_a_S_o_u_r_c_e* data);
│ │ │ │ │ 50
│ │ │ │ │ -51// Start of section namespace SILLY
│ │ │ │ │ -52namespace _S_I_L_L_Y
│ │ │ │ │ -53{
│ │ │ │ │ -54
│ │ │ │ │ -_5_9enum _P_i_x_e_l_F_o_r_m_a_t
│ │ │ │ │ -60{
│ │ │ │ │ -61 PF_A1B5G5R5, //
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │ -Simple Image Loading LibrarY: /build/reproducible-path/silly-0.1.0/include/SILLYImageLoader.icpp Source File
│ │ │ │ +Simple Image Loading LibrarY: /build/reproducible-path/silly-0.1.0/include/loaders/SILLYJPGImageContext.h Source File
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │ @@ -40,68 +40,98 @@
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │ -
1/***********************************************************************
│ │ │ │ -
2 filename: ImageLoader.icpp
│ │ │ │ -
│ │ │ │ -
4 author: Olivier Delannoy
│ │ │ │ -
│ │ │ │ -
6 purpose: Inline function definition for ImageLoader 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 ImageLoader::ImageLoader(const char* name)
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
38inline ImageLoader::~ImageLoader()
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
41inline const char* ImageLoader::getIdentifierString() const
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
30#ifndef _SILLYJPGImageContext_h_
│ │ │ │ +
31#define _SILLYJPGImageContext_h_
│ │ │ │ +
│ │ │ │ +
33#include "SILLYImageContext.h"
│ │ │ │ +
34#include "SILLYDataSource.h"
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │
│ │ │ │ -
46} // End of section namespace SILLY
│ │ │ │ -
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
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.
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │ ├── html2text {}
│ │ │ │ │ @@ -1,19 +1,20 @@
│ │ │ │ │ Simple Image Loading LibrarY 0.1.0
│ │ │ │ │ * _b_u_i_l_d
│ │ │ │ │ * _r_e_p_r_o_d_u_c_i_b_l_e_-_p_a_t_h
│ │ │ │ │ * _s_i_l_l_y_-_0_._1_._0
│ │ │ │ │ * _i_n_c_l_u_d_e
│ │ │ │ │ -SILLYImageLoader.icpp
│ │ │ │ │ + * _l_o_a_d_e_r_s
│ │ │ │ │ +SILLYJPGImageContext.h
│ │ │ │ │ 1/***********************************************************************
│ │ │ │ │ -2 filename: ImageLoader.icpp
│ │ │ │ │ -3 created: 10 Jun 2006
│ │ │ │ │ +2 filename: SILLYJPGImageContext.h
│ │ │ │ │ +3 created: 11 Jun 2006
│ │ │ │ │ 4 author: Olivier Delannoy
│ │ │ │ │ 5
│ │ │ │ │ -6 purpose: Inline function definition for ImageLoader class
│ │ │ │ │ +6 purpose: Declaration of the JPGImageContext 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
│ │ │ │ │ @@ -29,27 +30,63 @@
│ │ │ │ │ 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 ***************************************************************************/
│ │ │ │ │ -30
│ │ │ │ │ -31// Start of section namespace SILLY
│ │ │ │ │ -32namespace SILLY
│ │ │ │ │ -33{
│ │ │ │ │ -34inline ImageLoader::ImageLoader(const char* name)
│ │ │ │ │ -35 : d_name(name)
│ │ │ │ │ -36{
│ │ │ │ │ -37}
│ │ │ │ │ -38inline ImageLoader::~ImageLoader()
│ │ │ │ │ -39{
│ │ │ │ │ -40}
│ │ │ │ │ -41inline const char* ImageLoader::getIdentifierString() const
│ │ │ │ │ -42{
│ │ │ │ │ -43 return d_name;
│ │ │ │ │ -44}
│ │ │ │ │ +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 _S_I_L_L_Y
│ │ │ │ │ +44{
│ │ │ │ │ 45
│ │ │ │ │ -46} // End of section namespace SILLY
│ │ │ │ │ -47
│ │ │ │ │ +_5_6class _J_P_G_I_m_a_g_e_C_o_n_t_e_x_t : public _I_m_a_g_e_C_o_n_t_e_x_t
│ │ │ │ │ +57{
│ │ │ │ │ +58public:
│ │ │ │ │ +59 _J_P_G_I_m_a_g_e_C_o_n_t_e_x_t();
│ │ │ │ │ +60 _~_J_P_G_I_m_a_g_e_C_o_n_t_e_x_t();
│ │ │ │ │ +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 _D_a_t_a_S_o_u_r_c_e* 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_
│ │ │ │ │ +_S_I_L_L_Y
│ │ │ │ │ +Simple Image Loading LibrarY namespace.
│ │ │ │ │ +DDeeffiinniittiioonn _S_I_L_L_Y_J_P_G_I_m_a_g_e_C_o_n_t_e_x_t_._c_p_p_:_4_6
│ │ │ │ │ +_S_I_L_L_Y_:_:_J_P_G_I_m_a_g_e_C_o_n_t_e_x_t
│ │ │ │ │ +Image Context for JPG image loader.
│ │ │ │ │ +DDeeffiinniittiioonn _S_I_L_L_Y_J_P_G_I_m_a_g_e_C_o_n_t_e_x_t_._h_:_5_7
│ │ │ │ │ +_S_I_L_L_Y_:_:_D_a_t_a_S_o_u_r_c_e
│ │ │ │ │ +This is an abstract class used to provide data to the loader.
│ │ │ │ │ +DDeeffiinniittiioonn _S_I_L_L_Y_D_a_t_a_S_o_u_r_c_e_._h_:_4_7
│ │ │ │ │ +_S_I_L_L_Y_:_:_I_m_a_g_e_C_o_n_t_e_x_t
│ │ │ │ │ +Store the data needed by an ImageLoader object during the parsing of an image.
│ │ │ │ │ +DDeeffiinniittiioonn _S_I_L_L_Y_I_m_a_g_e_C_o_n_t_e_x_t_._h_:_4_4
│ │ │ │ │ ===============================================================================
│ │ │ │ │ Generated by _[_d_o_x_y_g_e_n_] 1.9.8
│ │ │ ├── ./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/SILLYImageLoaderManager.h Source File
│ │ │ │ +Simple Image Loading LibrarY: /build/reproducible-path/silly-0.1.0/include/loaders/SILLYTGAImageContext.icpp Source File
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │ @@ -40,116 +40,65 @@
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
30#ifndef _SILLYImageLoaderManager_h_
│ │ │ │ -
31#define _SILLYImageLoaderManager_h_
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ +
1/***********************************************************************
│ │ │ │ +
2 filename: SILLYTGAImageContext.icpp
│ │ │ │ +
│ │ │ │ +
4 author: Olivier Delannoy
│ │ │ │ +
│ │ │ │ +
6 purpose: Inline definition for TGAImageContext 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 TGAImageContext::TGAImageContext(size_t width, size_t height)
│ │ │ │ +
35 : ImageContext(width, height)
│ │ │ │
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
48# pragma warning(disable : 4251)
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
74 ImageLoaderList::iterator
begin();
│ │ │ │ -
79 ImageLoaderList::iterator
end();
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
112#ifdef SILLY_OPT_INLINE
│ │ │ │ -
113#include "SILLYImageLoaderManager.icpp"
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
Simple Image Loading LibrarY namespace.
│ │ │ │ -
std::vector< ImageLoader * > ImageLoaderList
Typename for a collection of image loader.
│ │ │ │ -
This is an abstract class that define the interface of all image loader.
│ │ │ │ -
Manage the list of all supported ImageLoader.
│ │ │ │ -
void add(ImageLoader *loader)
Register an ImageLoader object.
│ │ │ │ -
ImageLoaderList::iterator begin()
Get an iterator to the first ImageLoader registered.
│ │ │ │ -
ImageLoaderList::iterator end()
Get an iterator to the first not registered ImageLoader.
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
39inline TGAImageContext::~TGAImageContext()
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
43} // End of section namespace SILLY
│ │ │ │ +
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │ ├── html2text {}
│ │ │ │ │ @@ -1,19 +1,20 @@
│ │ │ │ │ Simple Image Loading LibrarY 0.1.0
│ │ │ │ │ * _b_u_i_l_d
│ │ │ │ │ * _r_e_p_r_o_d_u_c_i_b_l_e_-_p_a_t_h
│ │ │ │ │ * _s_i_l_l_y_-_0_._1_._0
│ │ │ │ │ * _i_n_c_l_u_d_e
│ │ │ │ │ -SILLYImageLoaderManager.h
│ │ │ │ │ + * _l_o_a_d_e_r_s
│ │ │ │ │ +SILLYTGAImageContext.icpp
│ │ │ │ │ 1/***********************************************************************
│ │ │ │ │ -2 filename: ImageLoaderManager.h
│ │ │ │ │ -3 created: 10 Jun 2006
│ │ │ │ │ +2 filename: SILLYTGAImageContext.icpp
│ │ │ │ │ +3 created: 11 Jun 2006
│ │ │ │ │ 4 author: Olivier Delannoy
│ │ │ │ │ 5
│ │ │ │ │ -6 purpose: Manage all available loader
│ │ │ │ │ +6 purpose: Inline definition for TGAImageContext 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
│ │ │ │ │ @@ -29,88 +30,24 @@
│ │ │ │ │ 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 ***************************************************************************/
│ │ │ │ │ -30#ifndef _SILLYImageLoaderManager_h_
│ │ │ │ │ -31#define _SILLYImageLoaderManager_h_
│ │ │ │ │ -32#include "SILLYBase.h"
│ │ │ │ │ -33#include
│ │ │ │ │ -34// Start of section namespace SILLY
│ │ │ │ │ -35namespace _S_I_L_L_Y
│ │ │ │ │ +30
│ │ │ │ │ +31// Start of section namespace SILLY
│ │ │ │ │ +32namespace SILLY
│ │ │ │ │ +33{
│ │ │ │ │ +34inline TGAImageContext::TGAImageContext(size_t width, size_t height)
│ │ │ │ │ +35 : ImageContext(width, height)
│ │ │ │ │ 36{
│ │ │ │ │ -37class ImageLoader; // Forward declaration
│ │ │ │ │ -_4_2typedef std::vector _I_m_a_g_e_L_o_a_d_e_r_L_i_s_t;
│ │ │ │ │ -43
│ │ │ │ │ -44#if defined(_MSC_VER)
│ │ │ │ │ -45
│ │ │ │ │ -46# pragma warning(push)
│ │ │ │ │ -47
│ │ │ │ │ -48# pragma warning(disable : 4251)
│ │ │ │ │ -49
│ │ │ │ │ -50#endif
│ │ │ │ │ -51
│ │ │ │ │ -_5_6class SILLY_EXPORT _I_m_a_g_e_L_o_a_d_e_r_M_a_n_a_g_e_r
│ │ │ │ │ -57{
│ │ │ │ │ -58
│ │ │ │ │ -59public:
│ │ │ │ │ -64 _I_m_a_g_e_L_o_a_d_e_r_M_a_n_a_g_e_r();
│ │ │ │ │ -69 _~_I_m_a_g_e_L_o_a_d_e_r_M_a_n_a_g_e_r();
│ │ │ │ │ -_7_4 ImageLoaderList::iterator _b_e_g_i_n();
│ │ │ │ │ -_7_9 ImageLoaderList::iterator _e_n_d();
│ │ │ │ │ -_8_6 void _a_d_d(_I_m_a_g_e_L_o_a_d_e_r* loader);
│ │ │ │ │ -87
│ │ │ │ │ -88private:
│ │ │ │ │ -89 _I_m_a_g_e_L_o_a_d_e_r_L_i_s_t d_loaders;
│ │ │ │ │ -90
│ │ │ │ │ -91public:
│ │ │ │ │ -92 static _I_m_a_g_e_L_o_a_d_e_r_M_a_n_a_g_e_r* getSingletonPtr();
│ │ │ │ │ -93 static _I_m_a_g_e_L_o_a_d_e_r_M_a_n_a_g_e_r& getSingleton();
│ │ │ │ │ -94
│ │ │ │ │ -95private:
│ │ │ │ │ -96 static _I_m_a_g_e_L_o_a_d_e_r_M_a_n_a_g_e_r* d_instance;
│ │ │ │ │ -97
│ │ │ │ │ -98 // Disabled operations
│ │ │ │ │ -99 _I_m_a_g_e_L_o_a_d_e_r_M_a_n_a_g_e_r(_I_m_a_g_e_L_o_a_d_e_r_M_a_n_a_g_e_r&);
│ │ │ │ │ -100 _I_m_a_g_e_L_o_a_d_e_r_M_a_n_a_g_e_r& operator=(_I_m_a_g_e_L_o_a_d_e_r_M_a_n_a_g_e_r&);
│ │ │ │ │ -101};
│ │ │ │ │ -102
│ │ │ │ │ -103#if defined(_MSC_VER)
│ │ │ │ │ -104
│ │ │ │ │ -105# pragma warning(pop)
│ │ │ │ │ -106
│ │ │ │ │ -107#endif
│ │ │ │ │ -108
│ │ │ │ │ -109} // End of section namespace SILLY
│ │ │ │ │ -110
│ │ │ │ │ -111// Inclue inline function when needed
│ │ │ │ │ -112#ifdef SILLY_OPT_INLINE
│ │ │ │ │ -113#include "SILLYImageLoaderManager.icpp"
│ │ │ │ │ -114#endif
│ │ │ │ │ -115
│ │ │ │ │ -116#endif // end of guard _SILLYImageLoaderManager_h_
│ │ │ │ │ -_S_I_L_L_Y
│ │ │ │ │ -Simple Image Loading LibrarY namespace.
│ │ │ │ │ -DDeeffiinniittiioonn _S_I_L_L_Y_J_P_G_I_m_a_g_e_C_o_n_t_e_x_t_._c_p_p_:_4_6
│ │ │ │ │ -_S_I_L_L_Y_:_:_I_m_a_g_e_L_o_a_d_e_r_L_i_s_t
│ │ │ │ │ -std::vector< ImageLoader * > ImageLoaderList
│ │ │ │ │ -Typename for a collection of image loader.
│ │ │ │ │ -DDeeffiinniittiioonn _S_I_L_L_Y_I_m_a_g_e_L_o_a_d_e_r_M_a_n_a_g_e_r_._h_:_4_2
│ │ │ │ │ -_S_I_L_L_Y_:_:_I_m_a_g_e_L_o_a_d_e_r
│ │ │ │ │ -This is an abstract class that define the interface of all image loader.
│ │ │ │ │ -DDeeffiinniittiioonn _S_I_L_L_Y_I_m_a_g_e_L_o_a_d_e_r_._h_:_4_7
│ │ │ │ │ -_S_I_L_L_Y_:_:_I_m_a_g_e_L_o_a_d_e_r_M_a_n_a_g_e_r
│ │ │ │ │ -Manage the list of all supported ImageLoader.
│ │ │ │ │ -DDeeffiinniittiioonn _S_I_L_L_Y_I_m_a_g_e_L_o_a_d_e_r_M_a_n_a_g_e_r_._h_:_5_7
│ │ │ │ │ -_S_I_L_L_Y_:_:_I_m_a_g_e_L_o_a_d_e_r_M_a_n_a_g_e_r_:_:_a_d_d
│ │ │ │ │ -void add(ImageLoader *loader)
│ │ │ │ │ -Register an ImageLoader object.
│ │ │ │ │ -_S_I_L_L_Y_:_:_I_m_a_g_e_L_o_a_d_e_r_M_a_n_a_g_e_r_:_:_b_e_g_i_n
│ │ │ │ │ -ImageLoaderList::iterator begin()
│ │ │ │ │ -Get an iterator to the first ImageLoader registered.
│ │ │ │ │ -_S_I_L_L_Y_:_:_I_m_a_g_e_L_o_a_d_e_r_M_a_n_a_g_e_r_:_:_e_n_d
│ │ │ │ │ -ImageLoaderList::iterator end()
│ │ │ │ │ -Get an iterator to the first not registered ImageLoader.
│ │ │ │ │ +37}
│ │ │ │ │ +38
│ │ │ │ │ +39inline TGAImageContext::~TGAImageContext()
│ │ │ │ │ +40{
│ │ │ │ │ +41}
│ │ │ │ │ +42
│ │ │ │ │ +43} // End of section namespace SILLY
│ │ │ │ │ +44
│ │ │ │ │ ===============================================================================
│ │ │ │ │ Generated by _[_d_o_x_y_g_e_n_] 1.9.8
│ │ │ ├── ./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/SILLYFileDataSource.icpp Source File
│ │ │ │ +Simple Image Loading LibrarY: /build/reproducible-path/silly-0.1.0/include/loaders/SILLYPNGImageContext.icpp Source File
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │ @@ -40,27 +40,27 @@
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
1/***********************************************************************
│ │ │ │ -
2 filename: SILLYFileDataSource.icpp
│ │ │ │ -
│ │ │ │ +
2 filename: SILLYPNGImageContext.icpp
│ │ │ │ +
│ │ │ │
4 author: Olivier Delannoy
│ │ │ │
│ │ │ │ -
6 purpose: Inline function definition for the FileDataSource class
│ │ │ │ +
6 purpose: Inline definition for PNGImageContext 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
│ │ │ │ @@ -80,31 +80,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 bool FileDataSource::isValid() const
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
39inline const byte* FileDataSource::getDataPtr() const
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
44inline size_t FileDataSource::getSize() const
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
49} // End of section namespace SILLY
│ │ │ │ -
│ │ │ │ +
│ │ │ │ +
35} // End of section namespace SILLY
│ │ │ │ +
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │ ├── html2text {}
│ │ │ │ │ @@ -1,19 +1,20 @@
│ │ │ │ │ Simple Image Loading LibrarY 0.1.0
│ │ │ │ │ * _b_u_i_l_d
│ │ │ │ │ * _r_e_p_r_o_d_u_c_i_b_l_e_-_p_a_t_h
│ │ │ │ │ * _s_i_l_l_y_-_0_._1_._0
│ │ │ │ │ * _i_n_c_l_u_d_e
│ │ │ │ │ -SILLYFileDataSource.icpp
│ │ │ │ │ + * _l_o_a_d_e_r_s
│ │ │ │ │ +SILLYPNGImageContext.icpp
│ │ │ │ │ 1/***********************************************************************
│ │ │ │ │ -2 filename: SILLYFileDataSource.icpp
│ │ │ │ │ -3 created: 20 Jul 2006
│ │ │ │ │ +2 filename: SILLYPNGImageContext.icpp
│ │ │ │ │ +3 created: 11 Jun 2006
│ │ │ │ │ 4 author: Olivier Delannoy
│ │ │ │ │ 5
│ │ │ │ │ -6 purpose: Inline function definition for the FileDataSource class
│ │ │ │ │ +6 purpose: Inline definition for 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
│ │ │ │ │ @@ -33,26 +34,12 @@
│ │ │ │ │ 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
│ │ │ │ │ +34
│ │ │ │ │ +35} // End of section namespace SILLY
│ │ │ │ │ +36
│ │ │ │ │ ===============================================================================
│ │ │ │ │ Generated by _[_d_o_x_y_g_e_n_] 1.9.8
│ │ │ ├── ./usr/share/doc/libsilly-doc/html/a00116_source.html
│ │ │ │ @@ -1,15 +1,15 @@
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │ -Simple Image Loading LibrarY: /build/reproducible-path/silly-0.1.0/include/SILLYMemoryDataSource.icpp Source File
│ │ │ │ +Simple Image Loading LibrarY: /build/reproducible-path/silly-0.1.0/include/loaders/SILLYPNGImageLoader.icpp Source File
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │ @@ -40,27 +40,27 @@
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
1/***********************************************************************
│ │ │ │ -
2 Filename: SILLYMemoryDataSource.icpp
│ │ │ │ -
│ │ │ │ +
2 filename: SILLYPNGImageLoader.icpp
│ │ │ │ +
│ │ │ │
4 author: Olivier Delannoy
│ │ │ │
│ │ │ │ -
6 purpose: Inline function definition for MemoryDataSource class
│ │ │ │ +
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
│ │ │ │ @@ -80,27 +80,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
│ │ │ │
│ │ │ │
│ │ │ │ -
│ │ │ │ -
35inline const byte* MemoryDataSource::getDataPtr() const
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
40inline size_t MemoryDataSource::getSize() const
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
45} // End of section namespace SILLY
│ │ │ │ -
│ │ │ │ +
│ │ │ │ +
35} // End of section namespace SILLY
│ │ │ │ +
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │ ├── html2text {}
│ │ │ │ │ @@ -1,19 +1,20 @@
│ │ │ │ │ Simple Image Loading LibrarY 0.1.0
│ │ │ │ │ * _b_u_i_l_d
│ │ │ │ │ * _r_e_p_r_o_d_u_c_i_b_l_e_-_p_a_t_h
│ │ │ │ │ * _s_i_l_l_y_-_0_._1_._0
│ │ │ │ │ * _i_n_c_l_u_d_e
│ │ │ │ │ -SILLYMemoryDataSource.icpp
│ │ │ │ │ + * _l_o_a_d_e_r_s
│ │ │ │ │ +SILLYPNGImageLoader.icpp
│ │ │ │ │ 1/***********************************************************************
│ │ │ │ │ -2 Filename: SILLYMemoryDataSource.icpp
│ │ │ │ │ -3 created: 10 Jun 2006
│ │ │ │ │ +2 filename: SILLYPNGImageLoader.icpp
│ │ │ │ │ +3 created: 11 Jun 2006
│ │ │ │ │ 4 author: Olivier Delannoy
│ │ │ │ │ 5
│ │ │ │ │ -6 purpose: Inline function definition for MemoryDataSource class
│ │ │ │ │ +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
│ │ │ │ │ @@ -34,21 +35,11 @@
│ │ │ │ │ 28 * OTHER DEALINGS IN THE SOFTWARE.
│ │ │ │ │ 29 ***************************************************************************/
│ │ │ │ │ 30
│ │ │ │ │ 31// Start of section namespace SILLY
│ │ │ │ │ 32namespace SILLY
│ │ │ │ │ 33{
│ │ │ │ │ 34
│ │ │ │ │ -35inline const byte* MemoryDataSource::getDataPtr() const
│ │ │ │ │ -36{
│ │ │ │ │ -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
│ │ │ │ │ +35} // End of section namespace SILLY
│ │ │ │ │ +36
│ │ │ │ │ ===============================================================================
│ │ │ │ │ Generated by _[_d_o_x_y_g_e_n_] 1.9.8
│ │ │ ├── ./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/SILLYImageLoaderManager.icpp Source File
│ │ │ │ +Simple Image Loading LibrarY: /build/reproducible-path/silly-0.1.0/include/loaders/SILLYTGAImageContext.h Source File
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │ @@ -40,83 +40,88 @@
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │ -
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);
│ │ │ │ -
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
30#ifndef _SILLYTGAImageContext_h_
│ │ │ │ +
31#define _SILLYTGAImageContext_h_
│ │ │ │ +
│ │ │ │ +
33#include "SILLYImageContext.h"
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │
│ │ │ │ -
61} // End of section namespace SILLY
│ │ │ │ -
│ │ │ │ +
│ │ │ │ +
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.
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │ ├── html2text {}
│ │ │ │ │ @@ -1,19 +1,20 @@
│ │ │ │ │ Simple Image Loading LibrarY 0.1.0
│ │ │ │ │ * _b_u_i_l_d
│ │ │ │ │ * _r_e_p_r_o_d_u_c_i_b_l_e_-_p_a_t_h
│ │ │ │ │ * _s_i_l_l_y_-_0_._1_._0
│ │ │ │ │ * _i_n_c_l_u_d_e
│ │ │ │ │ -SILLYImageLoaderManager.icpp
│ │ │ │ │ + * _l_o_a_d_e_r_s
│ │ │ │ │ +SILLYTGAImageContext.h
│ │ │ │ │ 1/***********************************************************************
│ │ │ │ │ -2 filename: SILLYImageLoaderManager.icpp
│ │ │ │ │ -3 created: 10 Jun 2006
│ │ │ │ │ +2 filename: SILLYTGAImageContext.h
│ │ │ │ │ +3 created: 11 Jun 2006
│ │ │ │ │ 4 author: Olivier Delannoy
│ │ │ │ │ 5
│ │ │ │ │ -6 purpose: Inline definition for ImageLoaderManager class
│ │ │ │ │ +6 purpose: Declaration of the TGAImageContext 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
│ │ │ │ │ @@ -29,42 +30,53 @@
│ │ │ │ │ 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 ***************************************************************************/
│ │ │ │ │ -30
│ │ │ │ │ -31// Start of section namespace SILLY
│ │ │ │ │ -32namespace SILLY
│ │ │ │ │ -33{
│ │ │ │ │ -34inline ImageLoaderList::iterator ImageLoaderManager::begin()
│ │ │ │ │ -35{
│ │ │ │ │ -36 return d_loaders.begin();
│ │ │ │ │ -37}
│ │ │ │ │ -38
│ │ │ │ │ -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
│ │ │ │ │ -55inline void ImageLoaderManager::add(ImageLoader* loader)
│ │ │ │ │ -56{
│ │ │ │ │ -57 assert(loader && "ASSERT: adding a none existing loader object");
│ │ │ │ │ -58 d_loaders.push_back(loader);
│ │ │ │ │ -59}
│ │ │ │ │ +30#ifndef _SILLYTGAImageContext_h_
│ │ │ │ │ +31#define _SILLYTGAImageContext_h_
│ │ │ │ │ +32#include "SILLYBase.h"
│ │ │ │ │ +33#include "SILLYImageContext.h"
│ │ │ │ │ +34// Start of section namespace SILLY
│ │ │ │ │ +35namespace _S_I_L_L_Y
│ │ │ │ │ +36{
│ │ │ │ │ +_4_2class _T_G_A_I_m_a_g_e_C_o_n_t_e_x_t : public _I_m_a_g_e_C_o_n_t_e_x_t
│ │ │ │ │ +43{
│ │ │ │ │ +44public:
│ │ │ │ │ +45 _T_G_A_I_m_a_g_e_C_o_n_t_e_x_t(size_t width, size_t height);
│ │ │ │ │ +46 _~_T_G_A_I_m_a_g_e_C_o_n_t_e_x_t();
│ │ │ │ │ +47
│ │ │ │ │ +48private:
│ │ │ │ │ +49 byte d_idLength;
│ │ │ │ │ +50 byte d_imageType;
│ │ │ │ │ +51 byte d_depth;
│ │ │ │ │ +52 byte d_description;
│ │ │ │ │ +53
│ │ │ │ │ +54 friend class _T_G_A_I_m_a_g_e_L_o_a_d_e_r;
│ │ │ │ │ +55
│ │ │ │ │ +56};
│ │ │ │ │ +57
│ │ │ │ │ +58
│ │ │ │ │ +59} // End of section namespace SILLY
│ │ │ │ │ 60
│ │ │ │ │ -61} // End of section namespace SILLY
│ │ │ │ │ -62
│ │ │ │ │ +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_
│ │ │ │ │ +_S_I_L_L_Y
│ │ │ │ │ +Simple Image Loading LibrarY namespace.
│ │ │ │ │ +DDeeffiinniittiioonn _S_I_L_L_Y_J_P_G_I_m_a_g_e_C_o_n_t_e_x_t_._c_p_p_:_4_6
│ │ │ │ │ +_S_I_L_L_Y_:_:_T_G_A_I_m_a_g_e_C_o_n_t_e_x_t
│ │ │ │ │ +Image Context for Targa image.
│ │ │ │ │ +DDeeffiinniittiioonn _S_I_L_L_Y_T_G_A_I_m_a_g_e_C_o_n_t_e_x_t_._h_:_4_3
│ │ │ │ │ +_S_I_L_L_Y_:_:_T_G_A_I_m_a_g_e_L_o_a_d_e_r
│ │ │ │ │ +Loader for Targa image.
│ │ │ │ │ +DDeeffiinniittiioonn _S_I_L_L_Y_T_G_A_I_m_a_g_e_L_o_a_d_e_r_._h_:_4_4
│ │ │ │ │ +_S_I_L_L_Y_:_:_I_m_a_g_e_C_o_n_t_e_x_t
│ │ │ │ │ +Store the data needed by an ImageLoader object during the parsing of an image.
│ │ │ │ │ +DDeeffiinniittiioonn _S_I_L_L_Y_I_m_a_g_e_C_o_n_t_e_x_t_._h_:_4_4
│ │ │ │ │ ===============================================================================
│ │ │ │ │ Generated by _[_d_o_x_y_g_e_n_] 1.9.8
│ │ │ ├── ./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/SILLYMemoryDataSource.h Source File
│ │ │ │ +
Simple Image Loading LibrarY: /build/reproducible-path/silly-0.1.0/include/loaders/SILLYTGAImageLoader.h Source File
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │ @@ -40,27 +40,27 @@
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │
│ │ │ │ -
│ │ │ │ +
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │ @@ -76,52 +76,54 @@
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │ -
30#ifndef _SILLYMemoryDataSource_h_
│ │ │ │ -
31#define _SILLYMemoryDataSource_h_
│ │ │ │ +
30#ifndef _SILLYTGAImageLoader_h_
│ │ │ │ +
31#define _SILLYTGAImageLoader_h_
│ │ │ │
│ │ │ │ -
33#include "SILLYDataSource.h"
│ │ │ │ +
33#include "SILLYImageLoader.h"
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
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.
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
│ │ │ │ +
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 {}
│ │ │ │ │ @@ -1,19 +1,20 @@
│ │ │ │ │ Simple Image Loading LibrarY 0.1.0
│ │ │ │ │ * _b_u_i_l_d
│ │ │ │ │ * _r_e_p_r_o_d_u_c_i_b_l_e_-_p_a_t_h
│ │ │ │ │ * _s_i_l_l_y_-_0_._1_._0
│ │ │ │ │ * _i_n_c_l_u_d_e
│ │ │ │ │ -SILLYMemoryDataSource.h
│ │ │ │ │ + * _l_o_a_d_e_r_s
│ │ │ │ │ +SILLYTGAImageLoader.h
│ │ │ │ │ 1/***********************************************************************
│ │ │ │ │ -2 filename: SILLYMemoryDataSource.h
│ │ │ │ │ -3 created: 10 Jun 2006
│ │ │ │ │ +2 filename: SILLYTGAImageLoader.h
│ │ │ │ │ +3 created: 11 Jun 2006
│ │ │ │ │ 4 author: Olivier Delannoy
│ │ │ │ │ 5
│ │ │ │ │ -6 purpose: SILLYMemoryDataSource declaration for the SILLY library
│ │ │ │ │ +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
│ │ │ │ │ @@ -29,55 +30,69 @@
│ │ │ │ │ 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 ***************************************************************************/
│ │ │ │ │ -30#ifndef _SILLYMemoryDataSource_h_
│ │ │ │ │ -31#define _SILLYMemoryDataSource_h_
│ │ │ │ │ +30#ifndef _SILLYTGAImageLoader_h_
│ │ │ │ │ +31#define _SILLYTGAImageLoader_h_
│ │ │ │ │ 32#include "SILLYBase.h"
│ │ │ │ │ -33#include "SILLYDataSource.h"
│ │ │ │ │ +33#include "SILLYImageLoader.h"
│ │ │ │ │ 34// Start of section namespace SILLY
│ │ │ │ │ 35namespace _S_I_L_L_Y
│ │ │ │ │ 36{
│ │ │ │ │ -37
│ │ │ │ │ -_4_8class SILLY_EXPORT _M_e_m_o_r_y_D_a_t_a_S_o_u_r_c_e : public _D_a_t_a_S_o_u_r_c_e
│ │ │ │ │ -49{
│ │ │ │ │ -50public:
│ │ │ │ │ -63 _M_e_m_o_r_y_D_a_t_a_S_o_u_r_c_e(const byte* data, size_t size);
│ │ │ │ │ -64
│ │ │ │ │ -65
│ │ │ │ │ -_6_6 const byte* _g_e_t_D_a_t_a_P_t_r() const;
│ │ │ │ │ -67
│ │ │ │ │ -_6_8 size_t _g_e_t_S_i_z_e() 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_
│ │ │ │ │ +37class TGAImageContext;
│ │ │ │ │ +_4_3class _T_G_A_I_m_a_g_e_L_o_a_d_e_r : public _I_m_a_g_e_L_o_a_d_e_r
│ │ │ │ │ +44{
│ │ │ │ │ +45public:
│ │ │ │ │ +46 _T_G_A_I_m_a_g_e_L_o_a_d_e_r();
│ │ │ │ │ +47 _~_T_G_A_I_m_a_g_e_L_o_a_d_e_r();
│ │ │ │ │ +48 _I_m_a_g_e_C_o_n_t_e_x_t* _l_o_a_d_H_e_a_d_e_r(_P_i_x_e_l_F_o_r_m_a_t& formatSource, _D_a_t_a_S_o_u_r_c_e* data);
│ │ │ │ │ +49 bool _l_o_a_d_I_m_a_g_e_D_a_t_a(_P_i_x_e_l_O_r_i_g_i_n origin,
│ │ │ │ │ +50 _D_a_t_a_S_o_u_r_c_e* data,
│ │ │ │ │ +51 _I_m_a_g_e_C_o_n_t_e_x_t* 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_
│ │ │ │ │ _S_I_L_L_Y
│ │ │ │ │ Simple Image Loading LibrarY namespace.
│ │ │ │ │ DDeeffiinniittiioonn _S_I_L_L_Y_J_P_G_I_m_a_g_e_C_o_n_t_e_x_t_._c_p_p_:_4_6
│ │ │ │ │ +_S_I_L_L_Y_:_:_P_i_x_e_l_F_o_r_m_a_t
│ │ │ │ │ +PixelFormat
│ │ │ │ │ +List all pixel format supported.
│ │ │ │ │ +DDeeffiinniittiioonn _S_I_L_L_Y_B_a_s_e_._h_:_6_0
│ │ │ │ │ +_S_I_L_L_Y_:_:_P_i_x_e_l_O_r_i_g_i_n
│ │ │ │ │ +PixelOrigin
│ │ │ │ │ +List all pixel origin supported.
│ │ │ │ │ +DDeeffiinniittiioonn _S_I_L_L_Y_B_a_s_e_._h_:_7_1
│ │ │ │ │ +_S_I_L_L_Y_:_:_T_G_A_I_m_a_g_e_L_o_a_d_e_r
│ │ │ │ │ +Loader for Targa image.
│ │ │ │ │ +DDeeffiinniittiioonn _S_I_L_L_Y_T_G_A_I_m_a_g_e_L_o_a_d_e_r_._h_:_4_4
│ │ │ │ │ +_S_I_L_L_Y_:_:_T_G_A_I_m_a_g_e_L_o_a_d_e_r_:_:_l_o_a_d_H_e_a_d_e_r
│ │ │ │ │ +ImageContext * loadHeader(PixelFormat &formatSource, DataSource *data)
│ │ │ │ │ +Parse the header of the image and fill the header struct.
│ │ │ │ │ +DDeeffiinniittiioonn _S_I_L_L_Y_T_G_A_I_m_a_g_e_L_o_a_d_e_r_._c_p_p_:_7_4
│ │ │ │ │ +_S_I_L_L_Y_:_:_T_G_A_I_m_a_g_e_L_o_a_d_e_r_:_:_l_o_a_d_I_m_a_g_e_D_a_t_a
│ │ │ │ │ +bool loadImageData(PixelOrigin origin, DataSource *data, ImageContext *context)
│ │ │ │ │ +Parse the pixels data of the image and fill the header struct.
│ │ │ │ │ +DDeeffiinniittiioonn _S_I_L_L_Y_T_G_A_I_m_a_g_e_L_o_a_d_e_r_._c_p_p_:_1_3_4
│ │ │ │ │ _S_I_L_L_Y_:_:_D_a_t_a_S_o_u_r_c_e
│ │ │ │ │ This is an abstract class used to provide data to the loader.
│ │ │ │ │ DDeeffiinniittiioonn _S_I_L_L_Y_D_a_t_a_S_o_u_r_c_e_._h_:_4_7
│ │ │ │ │ -_S_I_L_L_Y_:_:_M_e_m_o_r_y_D_a_t_a_S_o_u_r_c_e
│ │ │ │ │ -Load an image from a memory area.
│ │ │ │ │ -DDeeffiinniittiioonn _S_I_L_L_Y_M_e_m_o_r_y_D_a_t_a_S_o_u_r_c_e_._h_:_4_9
│ │ │ │ │ -_S_I_L_L_Y_:_:_M_e_m_o_r_y_D_a_t_a_S_o_u_r_c_e_:_:_g_e_t_D_a_t_a_P_t_r
│ │ │ │ │ -const byte * getDataPtr() const
│ │ │ │ │ -Get raw access to the image data.
│ │ │ │ │ -_S_I_L_L_Y_:_:_M_e_m_o_r_y_D_a_t_a_S_o_u_r_c_e_:_:_g_e_t_S_i_z_e
│ │ │ │ │ -size_t getSize() const
│ │ │ │ │ -Return the size of the data.
│ │ │ │ │ +_S_I_L_L_Y_:_:_I_m_a_g_e_C_o_n_t_e_x_t
│ │ │ │ │ +Store the data needed by an ImageLoader object during the parsing of an image.
│ │ │ │ │ +DDeeffiinniittiioonn _S_I_L_L_Y_I_m_a_g_e_C_o_n_t_e_x_t_._h_:_4_4
│ │ │ │ │ +_S_I_L_L_Y_:_:_I_m_a_g_e_L_o_a_d_e_r
│ │ │ │ │ +This is an abstract class that define the interface of all image loader.
│ │ │ │ │ +DDeeffiinniittiioonn _S_I_L_L_Y_I_m_a_g_e_L_o_a_d_e_r_._h_:_4_7
│ │ │ │ │ ===============================================================================
│ │ │ │ │ Generated by _[_d_o_x_y_g_e_n_] 1.9.8
│ │ │ ├── ./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/SILLYImageContext.icpp Source File
│ │ │ │ +
Simple Image Loading LibrarY: /build/reproducible-path/silly-0.1.0/include/loaders/SILLYTGAImageLoader.icpp Source File
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │ @@ -40,27 +40,27 @@
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
1/***********************************************************************
│ │ │ │ -
2 filename: SILLYImageContext.icpp
│ │ │ │ -
│ │ │ │ +
2 filename: SILLYTGAImageLoader.icpp
│ │ │ │ +
│ │ │ │
4 author: Olivier Delannoy
│ │ │ │
│ │ │ │ -
6 purpose: Inline definition for ImageContext
│ │ │ │ +
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
│ │ │ │ @@ -80,85 +80,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
│ │ │ │
│ │ │ │
│ │ │ │ -
│ │ │ │ -
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)
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
│ │ │ │ -
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
│ │ │ │ -
│ │ │ │ +
│ │ │ │ +
35} // End of section namespace SILLY
│ │ │ │ +
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │ ├── html2text {}
│ │ │ │ │ @@ -1,19 +1,20 @@
│ │ │ │ │ Simple Image Loading LibrarY 0.1.0
│ │ │ │ │ * _b_u_i_l_d
│ │ │ │ │ * _r_e_p_r_o_d_u_c_i_b_l_e_-_p_a_t_h
│ │ │ │ │ * _s_i_l_l_y_-_0_._1_._0
│ │ │ │ │ * _i_n_c_l_u_d_e
│ │ │ │ │ -SILLYImageContext.icpp
│ │ │ │ │ + * _l_o_a_d_e_r_s
│ │ │ │ │ +SILLYTGAImageLoader.icpp
│ │ │ │ │ 1/***********************************************************************
│ │ │ │ │ -2 filename: SILLYImageContext.icpp
│ │ │ │ │ -3 created: 10 Jun 2006
│ │ │ │ │ +2 filename: SILLYTGAImageLoader.icpp
│ │ │ │ │ +3 created: 11 Jun 2006
│ │ │ │ │ 4 author: Olivier Delannoy
│ │ │ │ │ 5
│ │ │ │ │ -6 purpose: Inline definition for ImageContext
│ │ │ │ │ +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
│ │ │ │ │ @@ -34,83 +35,11 @@
│ │ │ │ │ 28 * OTHER DEALINGS IN THE SOFTWARE.
│ │ │ │ │ 29 ***************************************************************************/
│ │ │ │ │ 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
│ │ │ │ │ -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
│ │ │ │ │ +35} // End of section namespace SILLY
│ │ │ │ │ +36
│ │ │ │ │ ===============================================================================
│ │ │ │ │ Generated by _[_d_o_x_y_g_e_n_] 1.9.8
│ │ │ ├── ./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 @@
│ │ │ │
|
│ │ │ │ ) |
│ │ │ │ | |
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
◆ JPG_term_source()
│ │ │ │
│ │ │ │
│ │ │ │ @@ -360,15 +360,15 @@
│ │ │ │
j_decompress_ptr |
│ │ │ │ cinfo | ) |
│ │ │ │ |
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │ ◆ PNG_error_function()
│ │ │ │
│ │ │ │
│ │ │ │ @@ -390,15 +390,15 @@
│ │ │ │
|
│ │ │ │ ) |
│ │ │ │ | |
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
◆ PNG_read_function()
│ │ │ │
│ │ │ │
│ │ │ │ @@ -426,15 +426,15 @@
│ │ │ │
|
│ │ │ │ ) |
│ │ │ │ | |
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
◆ PNG_warning_function()
│ │ │ │
│ │ │ │
│ │ │ │ @@ -456,15 +456,15 @@
│ │ │ │
|
│ │ │ │ ) |
│ │ │ │ | |
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
◆ SILLYCleanup()
│ │ │ │
│ │ │ │
│ │ │ │ @@ -477,15 +477,15 @@
│ │ │ │
|
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │