│ │ │
│ │ │
│ │ │
│ │ │
│ │ │ ├── html2text {}
│ │ │ │ @@ -1,147 +1,80 @@
│ │ │ │ Simple Image Loading LibrarY 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"
│ │ │ │ +SILLYMemoryDataSource.h
│ │ │ │ +1/***********************************************************************
│ │ │ │ +2 filename: SILLYMemoryDataSource.h
│ │ │ │ +3 created: 10 Jun 2006
│ │ │ │ +4 author: Olivier Delannoy
│ │ │ │ +5
│ │ │ │ +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
│ │ │ │ +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 _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
│ │ │ │ -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_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_:_:_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
│ │ │ │ -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
│ │ │ │ +_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/a00110_source.html
│ │ │ @@ -1,15 +1,15 @@
│ │ │
│ │ │
│ │ │
│ │ │
│ │ │ -
1 /***********************************************************************
│ │ │ -
2 filename: SILLYFileDataSource.icpp
│ │ │ -
│ │ │ -
4 author: Olivier Delannoy
│ │ │ -
│ │ │ -
6 purpose: Inline function definition for the FileDataSource class
│ │ │ -
7 *************************************************************************/
│ │ │ -
8 /***************************************************************************
│ │ │ -
9 * Copyright (C) 2004 - 2006 Paul D Turner & The CEGUI Development Team
│ │ │ -
│ │ │ -
11 * Permission is hereby granted, free of charge, to any person obtaining
│ │ │ -
12 * a copy of this software and associated documentation files (the
│ │ │ -
13 * "Software"), to deal in the Software without restriction, including
│ │ │ -
14 * without limitation the rights to use, copy, modify, merge, publish,
│ │ │ -
15 * distribute, sublicense, and/or sell copies of the Software, and to
│ │ │ -
16 * permit persons to whom the Software is furnished to do so, subject to
│ │ │ -
17 * the following conditions:
│ │ │ -
│ │ │ -
19 * The above copyright notice and this permission notice shall be
│ │ │ -
20 * included in all copies or substantial portions of the Software.
│ │ │ -
│ │ │ -
22 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
│ │ │ -
23 * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
│ │ │ -
24 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
│ │ │ -
25 * IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR
│ │ │ -
26 * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
│ │ │ -
27 * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
│ │ │ -
28 * OTHER DEALINGS IN THE SOFTWARE.
│ │ │ -
29 ***************************************************************************/
│ │ │ -
│ │ │ -
31 // Start of section namespace SILLY
│ │ │ -
│ │ │ -
│ │ │ -
34 inline bool FileDataSource::isValid() const
│ │ │ -
│ │ │ -
│ │ │ -
│ │ │ -
│ │ │ -
39 inline const byte* FileDataSource::getDataPtr() const
│ │ │ +
│ │ │ +
│ │ │ +
│ │ │ +
│ │ │ +
│ │ │ +
│ │ │ +
│ │ │ +
│ │ │ +
│ │ │ +
│ │ │ +
│ │ │ +
│ │ │ +
│ │ │ +
│ │ │ +
│ │ │ +
│ │ │ +
│ │ │ +
│ │ │ +
│ │ │ +
│ │ │ +
│ │ │ +
│ │ │ +
│ │ │ +
│ │ │ +
│ │ │ +
│ │ │ +
│ │ │ +
│ │ │ +
│ │ │ +
│ │ │ +
│ │ │ +
│ │ │ +
│ │ │ +
34 #include "SILLYImageContext.h"
│ │ │ +
35 #include "SILLYDataSource.h"
│ │ │ +
36 #include "SILLYImageLoader.h"
│ │ │ +
│ │ │ +
│ │ │ +
│ │ │
│ │ │ -
│ │ │ -
│ │ │ -
│ │ │ -
44 inline size_t FileDataSource::getSize() const
│ │ │ -
│ │ │ -
│ │ │ -
│ │ │ -
│ │ │ -
49 } // End of section namespace SILLY
│ │ │ -
│ │ │ +
│ │ │ +
│ │ │ +
│ │ │ +
│ │ │ +
│ │ │ +
│ │ │ +
│ │ │ +
│ │ │ +
│ │ │ +
│ │ │ +
│ │ │ +
│ │ │ +
76 bool loadImageHeader();
│ │ │ +
│ │ │ +
│ │ │ +
│ │ │ +
│ │ │ +
│ │ │ +
│ │ │ +
│ │ │ +
│ │ │ +
│ │ │ +
│ │ │ +
│ │ │ +
│ │ │ +
│ │ │ +
│ │ │ +
│ │ │ +
│ │ │ +
│ │ │ +
│ │ │ +
│ │ │ +
│ │ │ +
│ │ │ +
│ │ │ +
│ │ │ +
│ │ │ +
│ │ │ +
│ │ │ +
│ │ │ +
│ │ │ +
│ │ │ +
│ │ │ +
│ │ │ +
│ │ │ +
│ │ │ +
│ │ │ +
│ │ │ +
151 #ifdef SILLY_OPT_INLINE
│ │ │ +
152 #include "SILLYImage.icpp"
│ │ │ +
│ │ │ +
│ │ │ +
│ │ │ +
Simple Image Loading LibrarY namespace.
│ │ │ +
PixelFormat
List all pixel format supported.
│ │ │ +
PixelOrigin
List all pixel origin supported.
│ │ │ +
This is an abstract class used to provide data to the loader.
│ │ │ +
Image is the main user class of the library.
│ │ │ +
PixelFormat getSourcePixelFormat() const
Retrieve the pixel format used for the image storage.
│ │ │ +
const char * getLoaderIdentifierString() const
Get Image loader identifier string.
│ │ │ +
const byte * getPixelsDataPtr() const
Get a pointer to the pixels data.
│ │ │ +
bool isValid() const
Return true if the image is valid after its loading.
│ │ │ +
size_t getPixelsDataSize() const
Get the size of the pixel buffer.
│ │ │ +
│ │ │ +
size_t getWidth() const
Retrieve the width of the image.
│ │ │ +
PixelFormat getPixelFormat() const
Retrieve the pixel format of the resulting image.
│ │ │ +
size_t getHeight() const
Retrieve the height of the image.
│ │ │ +
Store the data needed by an ImageLoader object during the parsing of an image.
│ │ │ +
This is an abstract class that define the interface of all image loader.
│ │ │
│ │ │
│ │ │
│ │ │
│ │ │
│ │ │ ├── html2text {}
│ │ │ │ @@ -1,55 +1,147 @@
│ │ │ │ Simple Image Loading LibrarY 0.1.0
│ │ │ │ * _i_n_c_l_u_d_e
│ │ │ │ -SILLYFileDataSource.icpp
│ │ │ │ -1/***********************************************************************
│ │ │ │ -2 filename: SILLYFileDataSource.icpp
│ │ │ │ -3 created: 20 Jul 2006
│ │ │ │ -4 author: Olivier Delannoy
│ │ │ │ -5
│ │ │ │ -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
│ │ │ │ -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{
│ │ │ │ -34inline bool FileDataSource::isValid() const
│ │ │ │ -35{
│ │ │ │ -36 return d_error;
│ │ │ │ -37}
│ │ │ │ -38
│ │ │ │ -39inline const byte* FileDataSource::getDataPtr() const
│ │ │ │ +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"
│ │ │ │ +37
│ │ │ │ +38// Start of section namespace SILLY
│ │ │ │ +39namespace _S_I_L_L_Y
│ │ │ │ 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
│ │ │ │ +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_
│ │ │ │ +_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
│ │ │ │ +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
│ │ │ │ ===============================================================================
│ │ │ │ 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: include/SILLYFileDataSource.h Source File
│ │ │ +
Simple Image Loading LibrarY: include/SILLYImageLoader.h Source File
│ │ │
│ │ │
│ │ │
│ │ │
│ │ │
│ │ │
│ │ │
│ │ │ @@ -44,23 +44,23 @@
│ │ │
│ │ │
│ │ │
│ │ │
│ │ │
│ │ │
│ │ │ -
│ │ │ -
│ │ │ +
│ │ │ +
│ │ │
│ │ │
│ │ │ -
│ │ │ +
│ │ │
│ │ │
│ │ │
│ │ │
│ │ │
│ │ │
│ │ │
│ │ │ @@ -76,54 +76,65 @@
│ │ │
│ │ │
│ │ │
│ │ │
│ │ │
│ │ │
│ │ │
│ │ │ -
30 #ifndef _SILLYFileDataSource_h_
│ │ │ -
31 #define _SILLYFileDataSource_h_
│ │ │ -
│ │ │ -
33 #include "SILLYDataSource.h"
│ │ │ -
│ │ │ -
│ │ │ -
│ │ │ -
│ │ │ -
│ │ │ -
│ │ │ -
│ │ │ -
│ │ │ -
│ │ │ -
│ │ │ -
│ │ │ -
│ │ │ -
│ │ │ -
│ │ │ -
│ │ │ -
│ │ │ -
│ │ │ -
│ │ │ -
│ │ │ +
30 #ifndef _SILLYImageLoader_h_
│ │ │ +
31 #define _SILLYImageLoader_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.
│ │ │ +
│ │ │ +
│ │ │ +
│ │ │ +
│ │ │ +
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,16 +1,16 @@
│ │ │ │ Simple Image Loading LibrarY 0.1.0
│ │ │ │ * _i_n_c_l_u_d_e
│ │ │ │ -SILLYFileDataSource.h
│ │ │ │ +SILLYImageLoader.h
│ │ │ │ 1/***********************************************************************
│ │ │ │ -2 filename: SILLYFileDataSource.h
│ │ │ │ -3 created: 20 Jul 2006
│ │ │ │ +2 filename: SILLYImageLoader.h
│ │ │ │ +3 created: 10 Jun 2006
│ │ │ │ 4 author: Olivier Delannoy
│ │ │ │ 5
│ │ │ │ -6 purpose: Provide file based image loading
│ │ │ │ +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
│ │ │ │ @@ -26,59 +26,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#ifndef _SILLYFileDataSource_h_
│ │ │ │ -31#define _SILLYFileDataSource_h_
│ │ │ │ +30#ifndef _SILLYImageLoader_h_
│ │ │ │ +31#define _SILLYImageLoader_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_
│ │ │ │ +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_:_:_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_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/a00116_source.html
│ │ │ @@ -1,15 +1,15 @@
│ │ │
│ │ │
│ │ │
│ │ │
│ │ │
│ │ │
│ │ │
│ │ │ -
Simple Image Loading LibrarY: include/SILLYDataSource.icpp Source File
│ │ │ +
Simple Image Loading LibrarY: include/SILLYImageContext.icpp Source File
│ │ │
│ │ │
│ │ │
│ │ │
│ │ │
│ │ │
│ │ │
│ │ │ @@ -44,23 +44,23 @@
│ │ │
│ │ │
│ │ │
│ │ │
│ │ │
│ │ │
1 /***********************************************************************
│ │ │ -
2 filename: SILLYDataSource.icpp
│ │ │ +
2 filename: SILLYImageContext.icpp
│ │ │
│ │ │ -
4 author: ode@dalfy.dalfy.dyndns.org
│ │ │ +
4 author: Olivier Delannoy
│ │ │
│ │ │ -
6 purpose: Inline function definition for (F>>>ILE_SANS<<<) class
│ │ │ +
6 purpose: Inline definition for ImageContext
│ │ │
7 *************************************************************************/
│ │ │
8 /***************************************************************************
│ │ │
9 * Copyright (C) 2004 - 2006 Paul D Turner & The CEGUI Development Team
│ │ │
│ │ │
11 * Permission is hereby granted, free of charge, to any person obtaining
│ │ │
12 * a copy of this software and associated documentation files (the
│ │ │
13 * "Software"), to deal in the Software without restriction, including
│ │ │ @@ -80,26 +80,85 @@
│ │ │
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
│ │ │
│ │ │
│ │ │ -
34 inline DataSource::~DataSource()
│ │ │ -
│ │ │ -
│ │ │ -
│ │ │ -
38 inline 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
│ │ │ +
│ │ │ +
35 inline 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)
│ │ │ +
│ │ │ +
│ │ │ +
│ │ │ +
│ │ │ +
41 inline ImageContext::~ImageContext()
│ │ │ +
│ │ │ +
│ │ │ +
│ │ │
│ │ │ +
46 inline void ImageContext::setDestination(byte* pixels, size_t length, PixelFormat format)
│ │ │ +
│ │ │ +
│ │ │ +
│ │ │ +
│ │ │ +
│ │ │ +
│ │ │ +
│ │ │ +
54 inline 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;
│ │ │ +
│ │ │ +
│ │ │ +
│ │ │ +
│ │ │ +
79 inline size_t ImageContext::getWidth() const
│ │ │ +
│ │ │ +
│ │ │ +
│ │ │ +
│ │ │ +
84 inline void ImageContext::setWidth(size_t width)
│ │ │ +
│ │ │ +
│ │ │ +
│ │ │ +
│ │ │ +
89 inline size_t ImageContext::getHeight() const
│ │ │ +
│ │ │ +
│ │ │ +
│ │ │ +
│ │ │ +
94 inline void ImageContext::setHeight(size_t height)
│ │ │ +
│ │ │ +
│ │ │ +
│ │ │ +
98 inline PixelFormat ImageContext::getPixelFormat() const
│ │ │ +
│ │ │ +
│ │ │ +
│ │ │ +
│ │ │ +
103 } // End of section namespace SILLY
│ │ │ +
│ │ │
│ │ │
│ │ │
│ │ │
│ │ │
│ │ │ ├── html2text {}
│ │ │ │ @@ -1,16 +1,16 @@
│ │ │ │ Simple Image Loading LibrarY 0.1.0
│ │ │ │ * _i_n_c_l_u_d_e
│ │ │ │ -SILLYDataSource.icpp
│ │ │ │ +SILLYImageContext.icpp
│ │ │ │ 1/***********************************************************************
│ │ │ │ -2 filename: SILLYDataSource.icpp
│ │ │ │ +2 filename: SILLYImageContext.icpp
│ │ │ │ 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: Inline definition for ImageContext
│ │ │ │ 7*************************************************************************/
│ │ │ │ 8/***************************************************************************
│ │ │ │ 9 * Copyright (C) 2004 - 2006 Paul D Turner & The CEGUI Development Team
│ │ │ │ 10 *
│ │ │ │ 11 * Permission is hereby granted, free of charge, to any person obtaining
│ │ │ │ 12 * a copy of this software and associated documentation files (the
│ │ │ │ 13 * "Software"), to deal in the Software without restriction, including
│ │ │ │ @@ -30,22 +30,84 @@
│ │ │ │ 27 * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
│ │ │ │ 28 * OTHER DEALINGS IN THE SOFTWARE.
│ │ │ │ 29 ***************************************************************************/
│ │ │ │ 30
│ │ │ │ 31// Start of section namespace SILLY
│ │ │ │ 32namespace SILLY
│ │ │ │ 33{
│ │ │ │ -34inline DataSource::~DataSource()
│ │ │ │ -35{
│ │ │ │ -36}
│ │ │ │ -37
│ │ │ │ -38inline byte DataSource::operator[](size_t offset) const
│ │ │ │ -39{
│ │ │ │ -40 assert(offset < getSize() && "ASSERT: Trying to access pixel outside of the
│ │ │ │ -data");
│ │ │ │ -41 return getDataPtr()[offset];
│ │ │ │ -42}
│ │ │ │ -43
│ │ │ │ -44} // End of section namespace SILLY
│ │ │ │ +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
│ │ │ │ ===============================================================================
│ │ │ │ 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: include/SILLYDataSource.h Source File
│ │ │ +
Simple Image Loading LibrarY: include/SILLYImage.icpp Source File
│ │ │
│ │ │
│ │ │
│ │ │
│ │ │
│ │ │
│ │ │
│ │ │ @@ -44,79 +44,101 @@
│ │ │
│ │ │
│ │ │
│ │ │
│ │ │
│ │ │ -
│ │ │ -
│ │ │ -
│ │ │ -
│ │ │ -
│ │ │ -
│ │ │ -
│ │ │ -
│ │ │ -
│ │ │ -
│ │ │ -
│ │ │ -
│ │ │ -
│ │ │ -
│ │ │ -
│ │ │ -
│ │ │ -
│ │ │ -
│ │ │ -
│ │ │ -
│ │ │ -
│ │ │ -
│ │ │ -
│ │ │ -
│ │ │ -
│ │ │ -
│ │ │ -
│ │ │ -
│ │ │ -
│ │ │ -
30 #ifndef _SILLYDataSource_h_
│ │ │ -
31 #define _SILLYDataSource_h_
│ │ │ -
│ │ │ -
│ │ │ -
│ │ │ -
│ │ │ +
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
│ │ │ +
│ │ │ +
│ │ │ +
│ │ │ +
35 inline bool Image::isValid() const
│ │ │
│ │ │ -
│ │ │ -
│ │ │ -
│ │ │ -
│ │ │ -
│ │ │ -
│ │ │ -
│ │ │ -
64 byte operator[] (
size_t offset)
const ;
│ │ │ -
│ │ │ -
│ │ │ -
│ │ │ -
│ │ │ -
│ │ │ -
│ │ │ -
│ │ │ -
│ │ │ -
76 #ifdef SILLY_OPT_INLINE
│ │ │ -
77 #include "SILLYDataSource.icpp"
│ │ │ -
│ │ │ -
│ │ │ -
│ │ │ -
Simple Image Loading LibrarY namespace.
│ │ │ -
This is an abstract class used to provide data to the loader.
│ │ │ -
virtual size_t getSize() const =0
Return the size of the data.
│ │ │ -
virtual const byte * getDataPtr() const =0
Get raw access to the image data.
│ │ │ -
virtual ~DataSource()
Destructor.
│ │ │ +
37 return d_imageContext && d_pixels;
│ │ │ +
│ │ │ +
│ │ │ +
40 inline size_t Image::getWidth() const
│ │ │ +
│ │ │ +
42 return d_imageContext->getWidth();
│ │ │ +
│ │ │ +
│ │ │ +
45 inline size_t Image::getHeight() const
│ │ │ +
│ │ │ +
47 return d_imageContext->getHeight();
│ │ │ +
│ │ │ +
│ │ │ +
50 inline PixelFormat Image::getSourcePixelFormat() const
│ │ │ +
│ │ │ +
│ │ │ +
│ │ │ +
│ │ │ +
55 inline PixelFormat Image::getPixelFormat() const
│ │ │ +
│ │ │ +
57 return d_imageContext->getPixelFormat();
│ │ │ +
│ │ │ +
│ │ │ +
60 inline const byte* Image::getPixelsDataPtr() const
│ │ │ +
│ │ │ +
│ │ │ +
│ │ │ +
│ │ │ +
65 inline size_t Image::getPixelsDataSize() const
│ │ │ +
│ │ │ +
67 return getWidth() * getHeight() * d_bpp;
│ │ │ +
│ │ │ +
│ │ │ +
│ │ │ +
│ │ │ +
│ │ │ +
│ │ │ +
74 d_imageLoader->destroyContext(d_imageContext);
│ │ │ +
│ │ │ +
76 inline const char* Image::getLoaderIdentifierString() const
│ │ │ +
│ │ │ +
│ │ │ +
79 return d_imageLoader->getIdentifierString();
│ │ │ +
│ │ │ +
│ │ │ +
│ │ │ +
83 } // End of section namespace SILLY
│ │ │ +
│ │ │
│ │ │
│ │ │
│ │ │
│ │ │
│ │ │ ├── html2text {}
│ │ │ │ @@ -1,16 +1,16 @@
│ │ │ │ Simple Image Loading LibrarY 0.1.0
│ │ │ │ * _i_n_c_l_u_d_e
│ │ │ │ -SILLYDataSource.h
│ │ │ │ +SILLYImage.icpp
│ │ │ │ 1/***********************************************************************
│ │ │ │ -2 filename: SILLYDataSource.h
│ │ │ │ +2 filename: SILLYImage.icpp
│ │ │ │ 3 created: 10 Jun 2006
│ │ │ │ 4 author: Olivier Delannoy
│ │ │ │ 5
│ │ │ │ -6 purpose: SILLY::DataSource declaration for the SILLY library
│ │ │ │ +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
│ │ │ │ @@ -26,50 +26,64 @@
│ │ │ │ 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
│ │ │ │ +30
│ │ │ │ +31// Start of section namespace SILLY
│ │ │ │ +32namespace SILLY
│ │ │ │ +33{
│ │ │ │ +34
│ │ │ │ +35inline bool Image::isValid() const
│ │ │ │ 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.
│ │ │ │ +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/a00122_source.html
│ │ │ @@ -1,15 +1,15 @@
│ │ │
│ │ │
│ │ │
│ │ │
│ │ │
│ │ │
│ │ │
│ │ │ -
Simple Image Loading LibrarY: include/SILLYBase.h Source File
│ │ │ +
Simple Image Loading LibrarY: include/SILLYDataSource.icpp Source File
│ │ │
│ │ │
│ │ │
│ │ │
│ │ │
│ │ │
│ │ │
│ │ │ @@ -44,103 +44,62 @@
│ │ │
│ │ │
│ │ │
│ │ │
│ │ │
│ │ │ -
│ │ │ -
│ │ │ -
│ │ │ -
│ │ │ -
│ │ │ -
│ │ │ -
│ │ │ -
│ │ │ -
│ │ │ -
│ │ │ -
│ │ │ -
│ │ │ -
│ │ │ -
│ │ │ -
│ │ │ -
│ │ │ -
│ │ │ -
│ │ │ -
│ │ │ -
│ │ │ -
│ │ │ -
│ │ │ -
│ │ │ -
│ │ │ -
│ │ │ -
│ │ │ -
│ │ │ -
│ │ │ -
│ │ │ -
│ │ │ -
│ │ │ -
│ │ │ -
│ │ │ -
│ │ │ -
35 #if defined(USE_SILLYOPTIONS_H)
│ │ │ -
36 #include "SILLYOptions.h"
│ │ │ -
│ │ │ -
│ │ │ -
39 #if defined(_WIN32) || defined(__WIN32__)
│ │ │ -
40 # undef SILLY_OPT_INLINE
│ │ │ -
│ │ │ -
│ │ │ -
43 # define SILLY_EXPORT __declspec(dllexport)
│ │ │ -
│ │ │ -
45 # define SILLY_EXPORT __declspec(dllimport)
│ │ │ -
│ │ │ -
│ │ │ -
│ │ │ -
│ │ │ -
│ │ │ -
│ │ │ -
│ │ │ -
│ │ │ -
│ │ │ -
│ │ │ -
│ │ │ -
│ │ │ -
│ │ │ -
│ │ │ -
│ │ │ -
│ │ │ -
│ │ │ -
│ │ │ -
│ │ │ -
│ │ │ -
│ │ │ -
│ │ │ -
│ │ │ -
│ │ │ -
│ │ │ -
│ │ │ -
│ │ │ -
│ │ │ -
│ │ │ -
│ │ │ -
│ │ │ -
│ │ │ -
│ │ │ -
│ │ │ -
│ │ │ -
Simple Image Loading LibrarY namespace.
│ │ │ -
unsigned char byte
Typename for a byte.
│ │ │ -
void SILLYCleanup()
Cleanup SILLY library internal.
│ │ │ -
PixelFormat
List all pixel format supported.
│ │ │ -
bool SILLYInit()
Initialize the SILLY Library.
│ │ │ -
PixelOrigin
List all pixel origin supported.
│ │ │ +
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
│ │ │ +
│ │ │ +
│ │ │ +
34 inline DataSource::~DataSource()
│ │ │ +
│ │ │ +
│ │ │ +
│ │ │ +
38 inline byte DataSource::operator[](size_t offset) const
│ │ │ +
│ │ │ +
40 assert(offset < getSize() && "ASSERT: Trying to access pixel outside of the data");
│ │ │ +
41 return getDataPtr()[offset];
│ │ │ +
│ │ │ +
│ │ │ +
44 } // End of section namespace SILLY
│ │ │ +
│ │ │
│ │ │
│ │ │
│ │ │
│ │ │
│ │ │ ├── html2text {}
│ │ │ │ @@ -1,16 +1,16 @@
│ │ │ │ Simple Image Loading LibrarY 0.1.0
│ │ │ │ * _i_n_c_l_u_d_e
│ │ │ │ -SILLYBase.h
│ │ │ │ +SILLYDataSource.icpp
│ │ │ │ 1/***********************************************************************
│ │ │ │ -2 filename: SILLYBase.h
│ │ │ │ -3 created: 2006/06/10
│ │ │ │ -4 author: Olivier Delannoy
│ │ │ │ +2 filename: SILLYDataSource.icpp
│ │ │ │ +3 created: 10 Jun 2006
│ │ │ │ +4 author: ode@dalfy.dalfy.dyndns.org
│ │ │ │ 5
│ │ │ │ -6 purpose: Common header for the SILLY library
│ │ │ │ +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
│ │ │ │ @@ -26,81 +26,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 _SILLYBase_h_
│ │ │ │ -31#define _SILLYBase_h_
│ │ │ │ -32#include
│ │ │ │ -33#include
│ │ │ │ -34
│ │ │ │ -35#if defined(USE_SILLYOPTIONS_H)
│ │ │ │ -36#include "SILLYOptions.h"
│ │ │ │ -37#endif
│ │ │ │ -38
│ │ │ │ -39#if defined(_WIN32) || defined(__WIN32__)
│ │ │ │ -40# undef SILLY_OPT_INLINE // No inlining
│ │ │ │ -41# undef SILLY_BE // Little Endian
│ │ │ │ -42# ifdef SILLY_EXPORTS
│ │ │ │ -43# define SILLY_EXPORT __declspec(dllexport)
│ │ │ │ -44# else
│ │ │ │ -45# define SILLY_EXPORT __declspec(dllimport)
│ │ │ │ -46# endif
│ │ │ │ -47#else
│ │ │ │ -48# define SILLY_EXPORT
│ │ │ │ -49#endif
│ │ │ │ -50
│ │ │ │ -51// Start of section namespace SILLY
│ │ │ │ -52namespace _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: include/SILLY.h Source File
│ │ │ +Simple Image Loading LibrarY: include/SILLYImageLoaderManager.h Source File
│ │ │
│ │ │
│ │ │
│ │ │
│ │ │
│ │ │
│ │ │
│ │ │ @@ -44,23 +44,23 @@
│ │ │
│ │ │
│ │ │
│ │ │
│ │ │
│ │ │
│ │ │ -
│ │ │ +
│ │ │
│ │ │
│ │ │
│ │ │ -
│ │ │ +
│ │ │
│ │ │
│ │ │
│ │ │
│ │ │
│ │ │
│ │ │
│ │ │ @@ -76,35 +76,80 @@
│ │ │
│ │ │
│ │ │
│ │ │
│ │ │
│ │ │
│ │ │
│ │ │ -
│ │ │ -
│ │ │ -
│ │ │ -
│ │ │ -
│ │ │ -
│ │ │ -
│ │ │ -
│ │ │ +
30 #ifndef _SILLYImageLoaderManager_h_
│ │ │ +
31 #define _SILLYImageLoaderManager_h_
│ │ │ +
│ │ │ +
│ │ │ +
│ │ │ +
│ │ │ +
│ │ │ +
│ │ │ +
│ │ │ +
│ │ │ +
│ │ │ +
│ │ │ +
│ │ │ +
│ │ │ +
48 # pragma warning(disable : 4251)
│ │ │ +
│ │ │ +
│ │ │ +
│ │ │ +
│ │ │ +
│ │ │ +
│ │ │ +
│ │ │ +
│ │ │ +
│ │ │ +
│ │ │ +
74 ImageLoaderList::iterator
begin ();
│ │ │ +
79 ImageLoaderList::iterator
end ();
│ │ │ +
│ │ │ +
│ │ │ +
│ │ │ +
│ │ │ +
│ │ │ +
│ │ │ +
│ │ │ +
│ │ │ +
│ │ │ +
│ │ │ +
│ │ │ +
│ │ │ +
│ │ │ +
│ │ │ +
│ │ │ +
│ │ │ +
│ │ │ +
│ │ │ +
│ │ │ +
│ │ │ +
│ │ │ +
│ │ │ +
│ │ │ +
│ │ │ +
│ │ │ +
│ │ │ +
│ │ │ +
112 #ifdef SILLY_OPT_INLINE
│ │ │ +
113 #include "SILLYImageLoaderManager.icpp"
│ │ │ +
│ │ │
│ │ │ -
│ │ │ -
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.
│ │ │ +
│ │ │ +
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,16 +1,16 @@
│ │ │ │ Simple Image Loading LibrarY 0.1.0
│ │ │ │ * _i_n_c_l_u_d_e
│ │ │ │ -SILLY.h
│ │ │ │ +SILLYImageLoaderManager.h
│ │ │ │ 1/***********************************************************************
│ │ │ │ -2 filename: SILLY.h
│ │ │ │ +2 filename: ImageLoaderManager.h
│ │ │ │ 3 created: 10 Jun 2006
│ │ │ │ 4 author: Olivier Delannoy
│ │ │ │ 5
│ │ │ │ -6 purpose: Master include for the SILLY library
│ │ │ │ +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
│ │ │ │ @@ -26,32 +26,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 _SILLY_h_
│ │ │ │ -31#define _SILLY_h_
│ │ │ │ -109namespace _S_I_L_L_Y
│ │ │ │ -110{
│ │ │ │ -111
│ │ │ │ -112}
│ │ │ │ -113
│ │ │ │ -114
│ │ │ │ +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
│ │ │ │ +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
│ │ │ │ -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_
│ │ │ │ +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.
│ │ │ │ ===============================================================================
│ │ │ │ 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
│ │ │
│ │ │
│ │ │