[Digikam-devel] Re: how to properly store a curve in XML
Marcel Wiesweg
marcel.wiesweg at gmx.de
Thu Nov 11 10:25:38 GMT 2010
> Every curve is defined by keypoints by the user. Why not simply store
> these keypoints?
Yes, that would be the way to go. Most tools pass the curves points.
But not all: The problem is the "free curve" mode of CurvesSettings
(AdjustCurves and BQM tool) and the BWSepiaSettings.
These always store the "curve values", 256/65536, in the CurvesContainer.
In smooth curve mode, couldn't they only pass the 17 points?
Leaves the true "free curve". It seems acceptable to store an 8bit curve,
which is base64-encoded 344 bytes. It's not pleasant to read this XML then,
but it should work. We lose 16-bit precision for the curve, but that should be
acceptable.
Marcel
More information about the Digikam-devel
mailing list