SO3Engine
|
SO3ConversionTools.h
Go to the documentation of this file.
53 static bool SaveImage(const std::string &filename, int w, int h, int comp, const void *data, int quality = 90);
59 SConvertBuffer(const uchar* _srcBuff, const uchar* _srcBuffa, void* _dstBuff, const int &_width, const int &_height, const int &_sbpl, const int &_abpl, const int &_dbpl, const int &_bpp) :
109 static void bitmapsToBuffPf(const int start, const int end, const SConvertBuffer &conv, const Ogre::PixelFormat format);
113 static void bitmapsToScaleBuffNearest(const int start, const int end, const SConvertBuffer &conv, const Ogre::PixelFormat format, const int x_ratio, const int y_ratio);
117 static void bitmapsToScaleBuffBilinear(const int start, const int end, const SConvertBuffer &conv, const Ogre::PixelFormat format, const float x_ratio, const float y_ratio);
125 static void ScolBitmapGetRGBA(PtrObjBitmap scolBitmap, PtrObjBitmap alphaBitmap, const Ogre::PixelBox& pixelbox);
133 static void ScolBitmapGetRGBA(PtrObjBitmap scolBitmap, PtrObjBitmap alphaBitmap, Ogre::PixelFormat format, void* buff);
137 static void ScolBitmapGetRGBA(PtrObjBitmap scolBitmap, PtrObjBitmap alphaBitmap, unsigned int nwidth, unsigned int nheight, Ogre::PixelFormat format, void* buff);
141 static void ScolBitmapGetRGBA(const uchar* sbuff, const int swidth, const int sheight, const int sbpp, const int sbpl, unsigned int nwidth, unsigned int nheight, Ogre::PixelFormat format, void* buff);
librairies include
const uchar * srcBuffa
Definition SO3ConversionTools.h:74
SConvertBuffer(const uchar *_srcBuff, const uchar *_srcBuffa, void *_dstBuff, const int &_width, const int &_height, const int &_sbpl, const int &_abpl, const int &_dbpl, const int &_bpp)
Definition SO3ConversionTools.h:59
~SConvertBuffer()
Definition SO3ConversionTools.h:71
const uchar * srcBuff
Definition SO3ConversionTools.h:73
Definition SO3ConversionTools.h:49
static bool SaveImage(const std::string &filename, int w, int h, int comp, const void *data, int quality=90)
Definition SO3ConversionTools.cpp:75
static void bitmapsToScaleBuffNearest(const int start, const int end, const SConvertBuffer &conv, const Ogre::PixelFormat format, const int x_ratio, const int y_ratio)
Definition SO3ConversionTools.cpp:201
static std::string GetValidImageExtension(std::string ext)
Definition SO3ConversionTools.cpp:34
static Ogre::ColourValue ScolToOgreColorRGB(const int &scolColor)
Definition SO3ConversionTools.cpp:147
static Ogre::ColourValue ScolToOgreColorRGBA(const int &scolColor)
Definition SO3ConversionTools.cpp:126
static float formatFloat(float val)
Definition SO3ConversionTools.cpp:682
static bool SaveOgreImage(Ogre::Image &image, boost::filesystem::path &path)
Definition SO3ConversionTools.cpp:42
static std::string formatFloatToString(double val)
Definition SO3ConversionTools.cpp:700
static void bitmapsToScaleBuffBilinear(const int start, const int end, const SConvertBuffer &conv, const Ogre::PixelFormat format, const float x_ratio, const float y_ratio)
Definition SO3ConversionTools.cpp:228
static int OgreToScolColorRGBA(const Ogre::ColourValue &ogreColor)
Definition SO3ConversionTools.cpp:115
static void bitmapsToBuffPf(const int start, const int end, const SConvertBuffer &conv, const Ogre::PixelFormat format)
Definition SO3ConversionTools.cpp:177
static bool fequal(float a, float b)
Definition SO3ConversionTools.cpp:652
static void ScolBitmapGetRGB(PtrObjBitmap scolBitmap, unsigned char *buff)
Definition SO3ConversionTools.cpp:288
static void bitmapToBuff(const int start, const int end, const SConvertBuffer &conv)
Definition SO3ConversionTools.cpp:157
static void ScolBitmapGetRGBA(PtrObjBitmap scolBitmap, PtrObjBitmap alphaBitmap, const Ogre::PixelBox &pixelbox)
Definition SO3ConversionTools.cpp:326
static int OgreToScolColorRGB(const Ogre::ColourValue &ogreColor)
Definition SO3ConversionTools.cpp:137
static double Roundn(double dValue, int nDecimales)
Definition SO3ConversionTools.cpp:668
Definition SO3DataScol.h:38
Generated by 1.9.8