PTdecode/CImg-1.3.0/examples/check_all_functions.cpp

changeset 5
1204ebf9340d
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/PTdecode/CImg-1.3.0/examples/check_all_functions.cpp	Mon Aug 03 14:09:20 2009 +0100
     1.3 @@ -0,0 +1,105 @@
     1.4 +/*
     1.5 + #
     1.6 + #  File        : check_all_functions.cpp
     1.7 + #                ( C++ source file )
     1.8 + #
     1.9 + #  Description : A simple source code that tries to instanciate all
    1.10 + #                CImg functions for the most common template types.
    1.11 + #                This is mainly for testing that CImg compiles correctly
    1.12 + #                on various systems and with various compilers.
    1.13 + #                This file is a part of the CImg Library project.
    1.14 + #                ( http://cimg.sourceforge.net )
    1.15 + #
    1.16 + #  Copyright   : David Tschumperle
    1.17 + #                ( http://www.greyc.ensicaen.fr/~dtschump/ )
    1.18 + #
    1.19 + #  License     : CeCILL v2.0
    1.20 + #                ( http://www.cecill.info/licences/Licence_CeCILL_V2-en.html )
    1.21 + #
    1.22 + #  This software is governed by the CeCILL  license under French law and
    1.23 + #  abiding by the rules of distribution of free software.  You can  use,
    1.24 + #  modify and/ or redistribute the software under the terms of the CeCILL
    1.25 + #  license as circulated by CEA, CNRS and INRIA at the following URL
    1.26 + #  "http://www.cecill.info".
    1.27 + #
    1.28 + #  As a counterpart to the access to the source code and rights to copy,
    1.29 + #  modify and redistribute granted by the license, users are provided only
    1.30 + #  with a limited warranty  and the software's author,  the holder of the
    1.31 + #  economic rights,  and the successive licensors  have only  limited
    1.32 + #  liability.
    1.33 + #
    1.34 + #  In this respect, the user's attention is drawn to the risks associated
    1.35 + #  with loading,  using,  modifying and/or developing or reproducing the
    1.36 + #  software by the user in light of its specific status of free software,
    1.37 + #  that may mean  that it is complicated to manipulate,  and  that  also
    1.38 + #  therefore means  that it is reserved for developers  and  experienced
    1.39 + #  professionals having in-depth computer knowledge. Users are therefore
    1.40 + #  encouraged to load and test the software's suitability as regards their
    1.41 + #  requirements in conditions enabling the security of their systems and/or
    1.42 + #  data to be ensured and,  more generally, to use and operate it in the
    1.43 + #  same conditions as regards security.
    1.44 + #
    1.45 + #  The fact that you are presently reading this means that you have had
    1.46 + #  knowledge of the CeCILL license and that you accept its terms.
    1.47 + #
    1.48 +*/
    1.49 +#ifdef cimg_plugin
    1.50 +
    1.51 +// Load all existing CImg plugins
    1.52 +//---------------------------------
    1.53 +#include "../plugins/add_fileformat.h"
    1.54 +#include "../plugins/greycstoration.h"
    1.55 +#include "../plugins/integral_line.h"
    1.56 +#include "../plugins/jpeg_buffer.h"
    1.57 +#include "../plugins/loop_macros.h"
    1.58 +#include "../plugins/nlmeans.h"
    1.59 +#include "../plugins/noise_analysis.h"
    1.60 +#include "../plugins/skeleton.h"
    1.61 +#include "../plugins/draw_gradient.h"
    1.62 +
    1.63 +#else
    1.64 +#include <cstdio>
    1.65 +#include <jpeglib.h>
    1.66 +#include <jerror.h>
    1.67 +#include <queue>
    1.68 +#define cimg_plugin "examples/check_all_functions.cpp"
    1.69 +#include "CImg.h"
    1.70 +using namespace cimg_library;
    1.71 +
    1.72 +// Instanciate the CImg<T> class with the most common types.
    1.73 +//---------------------------------------------------------
    1.74 +template struct CImg<bool>;
    1.75 +template struct CImg<signed char>;
    1.76 +template struct CImg<unsigned char>;
    1.77 +template struct CImg<char>;
    1.78 +template struct CImg<unsigned short>;
    1.79 +template struct CImg<short>;
    1.80 +template struct CImg<unsigned int>;
    1.81 +template struct CImg<int>;
    1.82 +template struct CImg<unsigned long>;
    1.83 +template struct CImg<long>;
    1.84 +template struct CImg<float>;
    1.85 +template struct CImg<double>;
    1.86 +
    1.87 +// Instanciate the CImgList<T> class with the most common types.
    1.88 +//--------------------------------------------------------------
    1.89 +template struct CImgList<bool>;
    1.90 +template struct CImgList<signed char>;
    1.91 +template struct CImgList<unsigned char>;
    1.92 +template struct CImgList<char>;
    1.93 +template struct CImgList<unsigned short>;
    1.94 +template struct CImgList<short>;
    1.95 +template struct CImgList<unsigned int>;
    1.96 +template struct CImgList<int>;
    1.97 +template struct CImgList<unsigned long>;
    1.98 +template struct CImgList<long>;
    1.99 +template struct CImgList<float>;
   1.100 +template struct CImgList<double>;
   1.101 +
   1.102 +// Main procedure, does actually nothing...
   1.103 +//-----------------------------------------
   1.104 +int main() {
   1.105 +  return 0;
   1.106 +}
   1.107 +
   1.108 +#endif