GDAL
tiff_common.h
1/******************************************************************************
2 *
3 * Project: GDAL Core
4 * Purpose: Common code shared between the GTiff and libertiff drivers
5 * Author: Even Rouault <even dot rouault at spatialys.com>
6 *
7 ******************************************************************************
8 * Copyright (c) 2024, Even Rouault <even dot rouault at spatialys.com>
9 *
10 * SPDX-License-Identifier: MIT
11 ****************************************************************************/
12
13#ifndef TIFF_COMMON_HPP
14#define TIFF_COMMON_HPP
15
16#include "cpl_string.h"
17
18#include "gdal_priv.h"
19
20namespace gdal
21{
22namespace tiff_common
23{
24char CPL_DLL *PrepareTIFFErrorFormat(const char *module, const char *fmt);
25
26std::unique_ptr<GDALColorTable> CPL_DLL TIFFColorMapTagToColorTable(
27 const unsigned short *panRed, const unsigned short *panGreen,
28 const unsigned short *panBlue, int nColorCount, int &nColorTableMultiplier,
29 int nDefaultColorTableMultiplier, bool bNoDataSet, double dfNoDataValue);
30
31CPLStringList CPL_DLL TIFFRPCTagToRPCMetadata(const double adfRPC[92]);
32
33} // namespace tiff_common
34} // namespace gdal
35
36#endif
Various convenience functions for working with strings and string lists.
This file is legacy since GDAL 3.12, but will be kept at least in the whole GDAL 3....