Formatted all .cc and .h code in rtengine, rtexif and rtgui using astyle

This commit is contained in:
DrSlony
2015-08-11 11:55:03 +02:00
parent effb46c3e1
commit 0e0cfb9b25
452 changed files with 133354 additions and 99460 deletions

View File

@@ -7,7 +7,7 @@
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
*
* RawTherapee is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
@@ -26,42 +26,77 @@
#include "rtengine.h"
#include "imagefloat.h"
namespace rtengine {
namespace rtengine
{
class Image8;
class Image16 : public IImage16, public ImageIO {
class Image16 : public IImage16, public ImageIO
{
public:
public:
Image16 ();
Image16 (int width, int height);
~Image16 ();
Image16 ();
Image16 (int width, int height);
~Image16 ();
Image16* copy ();
Image16* copy ();
Image8* to8();
Imagefloat* tofloat();
Image8* to8();
Imagefloat* tofloat();
virtual void getStdImage (ColorTemp ctemp, int tran, Imagefloat* image, PreviewProps pp, bool first, procparams::ToneCurveParams hrp);
virtual void getStdImage (ColorTemp ctemp, int tran, Imagefloat* image, PreviewProps pp, bool first, procparams::ToneCurveParams hrp);
virtual const char* getType () const { return sImage16; }
virtual int getBPS () { return 8*sizeof(unsigned short); }
virtual void getScanline (int row, unsigned char* buffer, int bps);
virtual void setScanline (int row, unsigned char* buffer, int bps, float *minValue=NULL, float *maxValue=NULL);
virtual const char* getType () const
{
return sImage16;
}
virtual int getBPS ()
{
return 8 * sizeof(unsigned short);
}
virtual void getScanline (int row, unsigned char* buffer, int bps);
virtual void setScanline (int row, unsigned char* buffer, int bps, float *minValue = NULL, float *maxValue = NULL);
// functions inherited from IImage16:
virtual MyMutex& getMutex () { return mutex (); }
virtual cmsHPROFILE getProfile () { return getEmbeddedProfile (); }
virtual int getBitsPerPixel () { return 8*sizeof(unsigned short); }
virtual int saveToFile (Glib::ustring fname) { return save (fname); }
virtual int saveAsPNG (Glib::ustring fname, int compression = -1, int bps = -1) { return savePNG (fname, compression, bps); }
virtual int saveAsJPEG (Glib::ustring fname, int quality = 100, int subSamp = 3) { return saveJPEG (fname, quality, subSamp); }
virtual int saveAsTIFF (Glib::ustring fname, int bps = -1, bool uncompressed = false) { return saveTIFF (fname, bps, uncompressed); }
virtual void setSaveProgressListener (ProgressListener* pl) { setProgressListener (pl); }
virtual void free () { delete this; }
// functions inherited from IImage16:
virtual MyMutex& getMutex ()
{
return mutex ();
}
virtual cmsHPROFILE getProfile ()
{
return getEmbeddedProfile ();
}
virtual int getBitsPerPixel ()
{
return 8 * sizeof(unsigned short);
}
virtual int saveToFile (Glib::ustring fname)
{
return save (fname);
}
virtual int saveAsPNG (Glib::ustring fname, int compression = -1, int bps = -1)
{
return savePNG (fname, compression, bps);
}
virtual int saveAsJPEG (Glib::ustring fname, int quality = 100, int subSamp = 3)
{
return saveJPEG (fname, quality, subSamp);
}
virtual int saveAsTIFF (Glib::ustring fname, int bps = -1, bool uncompressed = false)
{
return saveTIFF (fname, bps, uncompressed);
}
virtual void setSaveProgressListener (ProgressListener* pl)
{
setProgressListener (pl);
}
virtual void free ()
{
delete this;
}
void ExecCMSTransform(cmsHTRANSFORM hTransform);
void ExecCMSTransform(cmsHTRANSFORM hTransform);
};
}