2014-02-11 14:02:00 +00:00
|
|
|
#ifndef __TIFF_HH_INCLUDED__
|
|
|
|
#define __TIFF_HH_INCLUDED__
|
|
|
|
|
|
|
|
#include <QImage>
|
2022-04-05 13:25:07 +00:00
|
|
|
#include <vector>
|
|
|
|
using std::vector;
|
2014-02-11 14:02:00 +00:00
|
|
|
namespace GdTiff
|
|
|
|
{
|
2022-08-06 07:09:15 +00:00
|
|
|
#ifdef MAKE_EXTRA_TIFF_HANDLER
|
2014-02-11 14:02:00 +00:00
|
|
|
// QImage don't handle TIFF files if TIFFTAG_PHOTOMETRIC is not set
|
|
|
|
// We will handle such 1-bit b/w images with default photometric
|
|
|
|
|
|
|
|
bool tiffToQImage( const char * data, int size, QImage & image );
|
2022-08-06 07:09:15 +00:00
|
|
|
#endif
|
2022-04-05 13:25:07 +00:00
|
|
|
void tiff2img( vector< char > & data, const char * format = "webp" );
|
2014-02-11 14:02:00 +00:00
|
|
|
}
|
|
|
|
|
2022-08-06 07:09:15 +00:00
|
|
|
|
2014-02-11 14:02:00 +00:00
|
|
|
|
|
|
|
#endif // TIFF_HH
|