21 lines
763 B
C++
21 lines
763 B
C++
// SPDX-FileCopyrightText: 2024 Filip Leonarski, Paul Scherrer Institute <filip.leonarski@psi.ch>
|
|
// SPDX-License-Identifier: GPL-3.0-only
|
|
|
|
#ifndef JUNGFRAUJOCH_WRITETIFF_H
|
|
#define JUNGFRAUJOCH_WRITETIFF_H
|
|
|
|
#include <string>
|
|
#include <vector>
|
|
#include "../common/JFJochMessages.h"
|
|
|
|
std::string WriteTIFFToString(const CompressedImage& image);
|
|
void WriteTIFFToFile(const std::string &filename, const CompressedImage& image);
|
|
|
|
CompressedImage ReadTIFF(const std::string &s, std::vector<uint8_t> &buffer);
|
|
|
|
std::vector<uint32_t> ReadTIFFFromString32(const std::string& s, uint32_t &cols, uint32_t &lines);
|
|
std::vector<uint16_t> ReadTIFFFromString16(const std::string& s, uint32_t &cols, uint32_t &lines);
|
|
|
|
void SupressTIFFErrors();
|
|
#endif //JUNGFRAUJOCH_WRITETIFF_H
|