mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 20:28:11 +00:00
![]() `x.size()` is 3 or 4 in practice and at most 15 in theory (cf `number_of_components_in_color_space()` in Profile.cpp), so using a VLA for these should be fine from a stack size PoV. They're accessed from two local loops iterating from 0 to `x.size()`, so it's hopefully not too risky from a security PoV either. Takes Build/lagom/bin/image --no-output \ --assign-color-profile \ Build/lagom/Root/res/icc/Adobe/CMYK/USWebCoatedSWOP.icc \ --convert-to-color-profile serenity-sRGB.icc \ cmyk.jpg from 2.81s to 2.74s on my machine, about 2.5% faster. |
||
---|---|---|
.. | ||
BinaryFormat.h | ||
BinaryWriter.cpp | ||
BinaryWriter.h | ||
DistinctFourCC.h | ||
Enums.cpp | ||
Enums.h | ||
Profile.cpp | ||
Profile.h | ||
Tags.cpp | ||
Tags.h | ||
TagTypes.cpp | ||
TagTypes.h | ||
WellKnownProfiles.cpp | ||
WellKnownProfiles.h |