From 60b1a3cc8f3155093732ecb3806d7a62a4f16eea Mon Sep 17 00:00:00 2001 From: jkriege2 Date: Wed, 8 May 2024 10:12:44 +0200 Subject: [PATCH] fixed extCMake examples --- .../extcmake_fetchcontent_tinytiff_test.cpp | 2 +- tests/extcmake_tinytiff_test/extcmake_tinytiff_test.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/extcmake_fetchcontent_tinytiff_test/extcmake_fetchcontent_tinytiff_test.cpp b/tests/extcmake_fetchcontent_tinytiff_test/extcmake_fetchcontent_tinytiff_test.cpp index 86ed345..a76acc7 100644 --- a/tests/extcmake_fetchcontent_tinytiff_test/extcmake_fetchcontent_tinytiff_test.cpp +++ b/tests/extcmake_fetchcontent_tinytiff_test/extcmake_fetchcontent_tinytiff_test.cpp @@ -4,7 +4,7 @@ using namespace std; int main() { - TinyTIFFWriterFile* tif=TinyTIFFWriter_open("extcmake_tinytiff_test.tif", 8, TinyTIFFWriter_UInt, TinyTIFFWriter_Greyscale); + TinyTIFFWriterFile* tif=TinyTIFFWriter_open("extcmake_tinytiff_test.tif", 8, TinyTIFFWriter_UInt, 1, 32, 32, TinyTIFFWriter_Greyscale); if (tif) { uint8_t* data=(uint8_t*)calloc(32*32,sizeof(uint8_t)); TinyTIFFWriter_writeImage(tif, data); diff --git a/tests/extcmake_tinytiff_test/extcmake_tinytiff_test.cpp b/tests/extcmake_tinytiff_test/extcmake_tinytiff_test.cpp index 86ed345..a76acc7 100644 --- a/tests/extcmake_tinytiff_test/extcmake_tinytiff_test.cpp +++ b/tests/extcmake_tinytiff_test/extcmake_tinytiff_test.cpp @@ -4,7 +4,7 @@ using namespace std; int main() { - TinyTIFFWriterFile* tif=TinyTIFFWriter_open("extcmake_tinytiff_test.tif", 8, TinyTIFFWriter_UInt, TinyTIFFWriter_Greyscale); + TinyTIFFWriterFile* tif=TinyTIFFWriter_open("extcmake_tinytiff_test.tif", 8, TinyTIFFWriter_UInt, 1, 32, 32, TinyTIFFWriter_Greyscale); if (tif) { uint8_t* data=(uint8_t*)calloc(32*32,sizeof(uint8_t)); TinyTIFFWriter_writeImage(tif, data);