Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
sebastiankrzyszkowiak
megapixels
Commits
684a81e5
Commit
684a81e5
authored
Dec 22, 2020
by
Martijn Braam
Browse files
Fix libtiff 4.2 incompatability
parent
1025cfe8
Changes
1
Hide whitespace changes
Inline
Side-by-side
process_pipeline.c
View file @
684a81e5
...
...
@@ -236,7 +236,11 @@ process_image_for_capture(const MPImage *image, int count)
TIFFSetField
(
tif
,
TIFFTAG_PLANARCONFIG
,
PLANARCONFIG_CONTIG
);
static
const
short
cfapatterndim
[]
=
{
2
,
2
};
TIFFSetField
(
tif
,
TIFFTAG_CFAREPEATPATTERNDIM
,
cfapatterndim
);
#if (TIFFLIB_VERSION < 20201219)
TIFFSetField
(
tif
,
TIFFTAG_CFAPATTERN
,
"
\002\001\001\000
"
);
// BGGR
#else
TIFFSetField
(
tif
,
TIFFTAG_CFAPATTERN
,
4
,
"
\002\001\001\000
"
);
// BGGR
#endif
if
(
camera
->
whitelevel
)
{
TIFFSetField
(
tif
,
TIFFTAG_WHITELEVEL
,
1
,
&
camera
->
whitelevel
);
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment