/usr/include/tuxcap/ImageLib.h is in libtuxcap-dev 1.4.0.dfsg2-2.3+b2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 | #ifndef __IMAGELIB_H__
#define __IMAGELIB_H__
#include <string>
#include <stdint.h>
namespace ImageLib
{
class Image
{
public:
int mWidth;
int mHeight;
uint32_t* mBits;
public:
Image();
Image(int width, int height);
virtual ~Image();
int GetWidth();
int GetHeight();
uint32_t* GetBits();
};
#if 0
bool WriteJPEGImage(const std::string& theFileName, Image* theImage);
bool WritePNGImage(const std::string& theFileName, Image* theImage);
bool WriteTGAImage(const std::string& theFileName, Image* theImage);
bool WriteBMPImage(const std::string& theFileName, Image* theImage);
#endif
extern int gAlphaComposeColor;
extern bool gAutoLoadAlpha;
extern bool gIgnoreJPEG2000Alpha; // I've noticed alpha in jpeg2000's that shouldn't have alpha so this defaults to true
Image* GetImage(std::string theFileName, bool lookForAlphaImage = true);
void InitJPEG2000();
void CloseJPEG2000();
}
#endif //__IMAGELIB_H__
|