Skip to content

Commit

Permalink
Set the vcpkg baseline to a commit that includes lcms 2.14
Browse files Browse the repository at this point in the history
This removes the need to check the lcms version before writing the CICP
tag.
  • Loading branch information
0xC0000054 committed Nov 4, 2022
1 parent 53c47b3 commit 7308a5f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 0 additions & 2 deletions src/common/ColorProfileGeneration.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -258,15 +258,13 @@ namespace
heif_matrix_coefficients matrixCoefficients,
bool fullRange)
{
#if LCMS_VERSION >= 2140
cmsVideoSignalType cicp{};
cicp.ColourPrimaries = static_cast<cmsUInt8Number>(primaries);
cicp.TransferCharacteristics = static_cast<cmsUInt8Number>(transferCharacteristics);
cicp.MatrixCoefficients = static_cast<cmsUInt8Number>(matrixCoefficients);
cicp.VideoFullRangeFlag = static_cast<cmsUInt8Number>(fullRange);

cmsWriteTag(profile, cmsSigcicpTag, &cicp);
#endif // LCMS_VERSION >= 2140
}
}

Expand Down
3 changes: 2 additions & 1 deletion vcpkg.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,6 @@
"homepage": "https://github.com/0xC0000054/avif-format",
"dependencies": [
"lcms"
]
],
"builtin-baseline": "e3a3942a9eb0cb47c12898e5fd819f258441b6f6"
}

0 comments on commit 7308a5f

Please sign in to comment.