~ubuntu-branches/ubuntu/trusty/digikam/trusty

« back to all changes in this revision

Viewing changes to core/libs/3rdparty/cimg/CImg.h

  • Committer: Package Import Robot
  • Author(s): Rohan Garg
  • Date: 2012-11-26 18:24:20 UTC
  • mfrom: (1.9.1) (3.1.23 experimental)
  • Revision ID: package-import@ubuntu.com-20121126182420-qoy6z0nx4ai0wzcl
Tags: 4:3.0.0~beta3-0ubuntu1
* New upstream release
  - Add build-deps :  libhupnp-dev, libqtgstreamer-dev, libmagickcore-dev
* Merge from debian, remaining changes:
  - Make sure libqt4-opengl-dev, libgl1-mesa-dev and libglu1-mesa-dev only
    install on i386,amd64 and powerpc
  - Depend on libtiff-dev instead of libtiff4-dev
  - Drop digikam breaks/replaces kipi-plugins-common since we're past the
    LTS release now
  - digikam to recommend mplayerthumbs | ffmpegthumbs. We currently only
    have latter in the archives, even though former is also supposed to
    be part of kdemultimedia. (LP: #890059)
  - kipi-plugins to recommend www-browser rather than konqueror directly
    since 2.8 no direct usage of konqueror is present in the flickr
    plugin anymore (LP: #1011211)
  - Keep kubuntu_mysqld_executable_name.diff
  - Don't install libkipi translations
  - Keep deps on libcv-dev, libcvaux-dev
  - Keep split packaging of libraries
  - Replace icons from KDE 3 time in debian/xpm.d/*.xpm with the new
    versions (LP: #658047)
* Update debian/not-installed

Show diffs side-by-side

added added

removed removed

Lines of Context:
10318
10318
       More informations on this topic can be found in cimg_files_io.
10319
10319
       - If the filename is not found, a CImgIOException is thrown by this constructor.
10320
10320
    **/
10321
 
    CImg(const char *const filename):width(0),height(0),depth(0),dim(0),is_shared(false),data(0) {
 
10321
    explicit CImg(const char *const filename):width(0),height(0),depth(0),dim(0),is_shared(false),data(0) {
10322
10322
      assign(filename);
10323
10323
    }
10324
10324
 
10325
10325
    //! Construct an image from the content of a CImgDisplay instance.
10326
 
    CImg(const CImgDisplay &disp):width(0),height(0),depth(0),dim(0),is_shared(false),data(0) {
 
10326
    explicit CImg(const CImgDisplay &disp):width(0),height(0),depth(0),dim(0),is_shared(false),data(0) {
10327
10327
      disp.snapshot(*this);
10328
10328
    }
10329
10329
 
16863
16863
 
16864
16864
    struct _marching_squares_func {
16865
16865
      const CImg<T>& ref;
16866
 
      _marching_squares_func(const CImg<T>& pref):ref(pref) {}
 
16866
      explicit _marching_squares_func(const CImg<T>& pref):ref(pref) {}
16867
16867
      float operator()(const float x, const float y) const {
16868
16868
        return (float)ref((int)x,(int)y);
16869
16869
      }
16871
16871
 
16872
16872
    struct _marching_cubes_func {
16873
16873
      const CImg<T>& ref;
16874
 
      _marching_cubes_func(const CImg<T>& pref):ref(pref) {}
 
16874
      explicit _marching_cubes_func(const CImg<T>& pref):ref(pref) {}
16875
16875
      float operator()(const float x, const float y, const float z) const {
16876
16876
        return (float)ref((int)x,(int)y,(int)z);
16877
16877
      }
16879
16879
 
16880
16880
    struct _marching_squares_func_float {
16881
16881
      const CImg<T>& ref;
16882
 
      _marching_squares_func_float(const CImg<T>& pref):ref(pref) {}
 
16882
      explicit _marching_squares_func_float(const CImg<T>& pref):ref(pref) {}
16883
16883
      float operator()(const float x, const float y) const {
16884
16884
        return (float)ref._linear_atXY(x,y);
16885
16885
      }
16887
16887
 
16888
16888
    struct _marching_cubes_func_float {
16889
16889
      const CImg<T>& ref;
16890
 
      _marching_cubes_func_float(const CImg<T>& pref):ref(pref) {}
 
16890
      explicit _marching_cubes_func_float(const CImg<T>& pref):ref(pref) {}
16891
16891
      float operator()(const float x, const float y, const float z) const {
16892
16892
        return (float)ref._linear_atXYZ(x,y,z);
16893
16893
      }
33097
33097
    }
33098
33098
 
33099
33099
    //! Construct an image list from a filename.
33100
 
    CImgList(const char *const filename):
 
33100
    explicit CImgList(const char *const filename):
33101
33101
      size(0),allocsize(0),data(0) {
33102
33102
      assign(filename);
33103
33103
    }