mirror of
https://github.com/xiaoyifang/goldendict-ng.git
synced 2024-12-18 03:14:06 +00:00
21 lines
464 B
C++
21 lines
464 B
C++
#ifndef __TIFF_HH_INCLUDED__
|
|
#define __TIFF_HH_INCLUDED__
|
|
|
|
#include <QImage>
|
|
#include <vector>
|
|
using std::vector;
|
|
namespace GdTiff
|
|
{
|
|
#ifdef MAKE_EXTRA_TIFF_HANDLER
|
|
// 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 );
|
|
#endif
|
|
void tiff2img( vector< char > & data, const char * format = "webp" );
|
|
}
|
|
|
|
|
|
|
|
#endif // TIFF_HH
|