Commits on Source (6)
-
Print empty pipeline with the proper indentation. Signed-off-by: Leandro Ribeiro <leandro.ribeiro@collabora.com>
fe1e171e -
Move code that depend on cmsGetToneCurveSegment() to a new file: color-curve-segments.c This help us to eliminate #if HAVE_CMS_GET_TONE_CURVE_SEGMENT scattered around color-transform.c, making the code clearer and helping to avoid mistakes. Signed-off-by: Leandro Ribeiro <leandro.ribeiro@collabora.com>
c54220f0 -
At the moment, when we merge curves we transform them into sampled curves, even if they were parametric before. If we have two inverse parametric curve sets in sequence in the color pipeline, we can drop them both, as merging them would result in the identity curve. If we don't do that and merge the resulting identity with another curve set, we'll end up with a sampled curve. Start dropping inverse curve sets in sequence. This change help us in the following scenarios: pipeline: curve set A, curve set B (inverse of A), curve set C (parametric) Merging A and B results in identity, and merging that with C results in a sampled curve. With our changes, we end up with curve set C intact, and we'd rather end up with a parametric curve than with a sampled one. Signed-off-by: Leandro Ribeiro <leandro.ribeiro@collabora.com>
e4baf5ba -
At the moment, when we merge two curve sets it becomes a sampled one. With this change, we start merging power-law curve sets and keeping them as parametric, as we'd rather have a parametric curve than a sampled one. Signed-off-by: Leandro Ribeiro <leandro.ribeiro@collabora.com>
884579bc -
This will help us to debug our color pipeline optimizer without the need to craft special ICC profiles for that. In this initial patch, we are able to add matrices and curve sets to the pipeline and assure that the optimizer is doing the right thing. Signed-off-by: Leandro Ribeiro <leandro.ribeiro@collabora.com>
9486740d -
Just to be consistent with the other functions in the code. Signed-off-by: Leandro Ribeiro <leandro.ribeiro@collabora.com>
25ffc4ae
libweston/color-lcms/color-curve-segments.c
0 → 100644
libweston/color-lcms/color-curve-segments.h
0 → 100644
tests/color-lcms-optimizer-test.c
0 → 100644