-
Notifications
You must be signed in to change notification settings - Fork 39
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Squashed 'externals/nitro/' changes from cca11bf4c..80a517fcb
80a517fcb Merge commit '911c7b3ae49e1f92b94f2dc83d7716b7abc459c2' into cpp17 911c7b3ae Squashed 'externals/coda-oss/' changes from eb60210ff2..e573adb323 c3e3d3768 add config.h files 1cca072bd latest from CODA-OSS cb5d115bc Squashed 'externals/coda-oss/' changes from 434b85fe53..eb60210ff2 8a3df82fb Merge commit 'cb5d115bcc2ecc11f81e4ccad23caff4f3f8ac29' into cpp17 dc3074153 Merge branch 'main' into cpp17 0357b1432 NITRO-2.11.5 (#589) a0ad6f943 CODA-OSS 2023-10-23 (#588) git-subtree-dir: externals/nitro git-subtree-split: 80a517fcba1d0260effe0ab4af7e39060c0433ae
- Loading branch information
Dan Smith
committed
Nov 3, 2023
1 parent
a6083af
commit 69b472a
Showing
965 changed files
with
333,842 additions
and
107 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
44 changes: 44 additions & 0 deletions
44
externals/coda-oss/modules/c++/tiff/include/tiff/TiffUtils.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
/* ========================================================================= | ||
* This file is part of tiff-c++ | ||
* ========================================================================= | ||
* | ||
* (C) Copyright 2004 - 2014, MDA Information Systems LLC | ||
* © Copyright 2023, Maxar Technologies, Inc. | ||
* | ||
* tiff-c++ is free software; you can redistribute it and/or modify | ||
* it under the terms of the GNU Lesser General Public License as published by | ||
* the Free Software Foundation; either version 3 of the License, or | ||
* (at your option) any later version. | ||
* | ||
* This program is distributed in the hope that it will be useful, | ||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
* GNU Lesser General Public License for more details. | ||
* | ||
* You should have received a copy of the GNU Lesser General Public | ||
* License along with this program; If not, | ||
* see <http://www.gnu.org/licenses/>. | ||
* | ||
*/ | ||
|
||
#pragma once | ||
|
||
#include <stdarg.h> | ||
#include <iostream> | ||
#include <string> | ||
|
||
#include <sys/filesystem.h> | ||
#include <coda_oss/cstddef.h> | ||
|
||
using tiff_errorhandler_t = void(*)(const char*, const char*, va_list); // TIFFErrorHandler | ||
tiff_errorhandler_t tiff_setErrorHandler(tiff_errorhandler_t pHandler = nullptr); // TIFFSetWarningHandler() | ||
tiff_errorhandler_t tiff_setWarningHandler(tiff_errorhandler_t pHandler = nullptr); // TIFFSetErrorHandler() | ||
|
||
bool tiff_readData(const coda_oss::filesystem::path&, coda_oss::byte* buffer, size_t numElements); | ||
|
||
struct tiff_stream_ final { }; | ||
using tiff_stream = tiff_stream_*; // TIFF | ||
|
||
tiff_stream tiff_streamOpen(const std::string& name, std::istream&); // TIFFStreamOpen() | ||
bool tiff_readData(tiff_stream, coda_oss::byte* buffer, size_t numElements); | ||
|
Oops, something went wrong.