3#if !defined( __EMSCRIPTEN__) && !defined( MRMESH_NO_TIFF )
13struct BaseTiffParameters
21 } sampleType{ SampleType::Unknown };
29 } valueType{ ValueType::Unknown };
32 int bytesPerSample = 0;
40struct TiffParameters : BaseTiffParameters
61 uint8_t* bytes{
nullptr };
65 TiffParameters* params{
nullptr };
67 AffineXf3f* p2wXf{
nullptr };
69 bool convertToFloat{
true };
71 float* min{
nullptr };
72 float* max{
nullptr };
90[[deprecated(
"use WriteRawTiffParams version instead" )]]
91inline Expected<void>
writeRawTiff(
const uint8_t* bytes,
const std::filesystem::path& path,
94 return writeRawTiff( bytes, path, { .baseParams = params, .xf = xf } );
#define MRMESH_API
Definition MRMeshFwd.h:80
unsafe BaseTiffParameters()
Definition MRCameraOrientationPlugin.h:8
MRMESH_API Expected< void > readRawTiff(const std::filesystem::path &path, RawTiffOutput &output)
MRMESH_API bool isTIFFFile(const std::filesystem::path &path)
MRMESH_API Expected< TiffParameters > readTiffParameters(const std::filesystem::path &path)
MRMESH_API Expected< void > writeRawTiff(const uint8_t *bytes, const std::filesystem::path &path, const WriteRawTiffParams ¶ms)