PTdecode/CImg-1.3.0/examples/check_all_functions.cpp

Mon, 03 Aug 2009 14:21:23 +0100

author
Philip Pemberton <philpem@philpem.me.uk>
date
Mon, 03 Aug 2009 14:21:23 +0100
changeset 6
a274aba0a9d3
parent 5
1204ebf9340d
permissions
-rwxr-xr-x

added keepme for ptdecode obj directory

     1 /*
     2  #
     3  #  File        : check_all_functions.cpp
     4  #                ( C++ source file )
     5  #
     6  #  Description : A simple source code that tries to instanciate all
     7  #                CImg functions for the most common template types.
     8  #                This is mainly for testing that CImg compiles correctly
     9  #                on various systems and with various compilers.
    10  #                This file is a part of the CImg Library project.
    11  #                ( http://cimg.sourceforge.net )
    12  #
    13  #  Copyright   : David Tschumperle
    14  #                ( http://www.greyc.ensicaen.fr/~dtschump/ )
    15  #
    16  #  License     : CeCILL v2.0
    17  #                ( http://www.cecill.info/licences/Licence_CeCILL_V2-en.html )
    18  #
    19  #  This software is governed by the CeCILL  license under French law and
    20  #  abiding by the rules of distribution of free software.  You can  use,
    21  #  modify and/ or redistribute the software under the terms of the CeCILL
    22  #  license as circulated by CEA, CNRS and INRIA at the following URL
    23  #  "http://www.cecill.info".
    24  #
    25  #  As a counterpart to the access to the source code and rights to copy,
    26  #  modify and redistribute granted by the license, users are provided only
    27  #  with a limited warranty  and the software's author,  the holder of the
    28  #  economic rights,  and the successive licensors  have only  limited
    29  #  liability.
    30  #
    31  #  In this respect, the user's attention is drawn to the risks associated
    32  #  with loading,  using,  modifying and/or developing or reproducing the
    33  #  software by the user in light of its specific status of free software,
    34  #  that may mean  that it is complicated to manipulate,  and  that  also
    35  #  therefore means  that it is reserved for developers  and  experienced
    36  #  professionals having in-depth computer knowledge. Users are therefore
    37  #  encouraged to load and test the software's suitability as regards their
    38  #  requirements in conditions enabling the security of their systems and/or
    39  #  data to be ensured and,  more generally, to use and operate it in the
    40  #  same conditions as regards security.
    41  #
    42  #  The fact that you are presently reading this means that you have had
    43  #  knowledge of the CeCILL license and that you accept its terms.
    44  #
    45 */
    46 #ifdef cimg_plugin
    48 // Load all existing CImg plugins
    49 //---------------------------------
    50 #include "../plugins/add_fileformat.h"
    51 #include "../plugins/greycstoration.h"
    52 #include "../plugins/integral_line.h"
    53 #include "../plugins/jpeg_buffer.h"
    54 #include "../plugins/loop_macros.h"
    55 #include "../plugins/nlmeans.h"
    56 #include "../plugins/noise_analysis.h"
    57 #include "../plugins/skeleton.h"
    58 #include "../plugins/draw_gradient.h"
    60 #else
    61 #include <cstdio>
    62 #include <jpeglib.h>
    63 #include <jerror.h>
    64 #include <queue>
    65 #define cimg_plugin "examples/check_all_functions.cpp"
    66 #include "CImg.h"
    67 using namespace cimg_library;
    69 // Instanciate the CImg<T> class with the most common types.
    70 //---------------------------------------------------------
    71 template struct CImg<bool>;
    72 template struct CImg<signed char>;
    73 template struct CImg<unsigned char>;
    74 template struct CImg<char>;
    75 template struct CImg<unsigned short>;
    76 template struct CImg<short>;
    77 template struct CImg<unsigned int>;
    78 template struct CImg<int>;
    79 template struct CImg<unsigned long>;
    80 template struct CImg<long>;
    81 template struct CImg<float>;
    82 template struct CImg<double>;
    84 // Instanciate the CImgList<T> class with the most common types.
    85 //--------------------------------------------------------------
    86 template struct CImgList<bool>;
    87 template struct CImgList<signed char>;
    88 template struct CImgList<unsigned char>;
    89 template struct CImgList<char>;
    90 template struct CImgList<unsigned short>;
    91 template struct CImgList<short>;
    92 template struct CImgList<unsigned int>;
    93 template struct CImgList<int>;
    94 template struct CImgList<unsigned long>;
    95 template struct CImgList<long>;
    96 template struct CImgList<float>;
    97 template struct CImgList<double>;
    99 // Main procedure, does actually nothing...
   100 //-----------------------------------------
   101 int main() {
   102   return 0;
   103 }
   105 #endif