Commits on Source (7)
-
Leandro Ribeiro authored
In the next commits we are going to introduce a public API to libweston to allow creating color profiles from parameters. This should be used by both the frontend and by the color protocol implementation. This API require some color struct's and enum's that are currently defined in libweston core, so move them to a public header. Signed-off-by: Leandro Ribeiro <leandro.ribeiro@collabora.com>
1c54ad7f -
Leandro Ribeiro authored
Up to now we had support only for transfer functions with pre-defined parameters in struct weston_color_tf_info. Add support for the first parameterized transfer function (a function whose params are not pre-defined). Signed-off-by: Leandro Ribeiro <leandro.ribeiro@collabora.com>
9707a332 -
Leandro Ribeiro authored
In the next commits we'll start support clients that want to create image descriptions through params using the CM&HDR protocol extension. In order to do that, we'll have to expose the primaries and transfer functions that the color manager supports. So keep track of that. Signed-off-by: Leandro Ribeiro <leandro.ribeiro@collabora.com>
89a57c7b -
Leandro Ribeiro authored
Add function to color managers to create color profiles from parameters. This will be used by the parametric color profile builder that we'll add in the next commit. WARNING: we still do not fully support creating color profiles from parameters. This just creates a boilerplate color profile that we're planning to extend later. Co-authored-by: Pekka Paalanen <pekka.paalanen@collabora.com> Signed-off-by: Leandro Ribeiro <leandro.ribeiro@collabora.com>
93d086f0 -
Leandro Ribeiro authored
In cmlcms_get_color_profile_from_icc(), if we fail to create the ro_anonymous_file we end up calling cmlcms_color_profile_destroy() with a cprof whose cprof->prof_rofile is NULL. For now that's alright, because cmlcms_color_profile_destroy() checks if this field is NULL. But in the future we'll drop this check, so the idea of this patch is to avoid an issue in the future. Reorganize cmlcms_get_color_profile_from_icc() to avoid destroying a cprof without a ro_anonymous_file. Signed-off-by: Leandro Ribeiro <leandro.ribeiro@collabora.com>
0b9565e8 -
Leandro Ribeiro authored
No behavior change. Move ICC profile data to nested struct to keep the code more organized. Signed-off-by: Leandro Ribeiro <leandro.ribeiro@collabora.com>
141f466a -
Leandro Ribeiro authored
Add API to create color profiles from parameters. It is a public API that should be used by the frontend and also by the color management protocol implementation. Currently our protocol implementation does not support clients that want to create color profiles from parameters, and this is a step towards supporting that. As warned in "color: add get_color_profile_from_params() to color managers", we still do not fully support creating color profiles from parameters. This just creates a boilerplate color profile that we're planning to extend later. Signed-off-by: Leandro Ribeiro <leandro.ribeiro@collabora.com>
2c44a4ea
libweston/color-profile-param-builder.c
0 → 100644
This diff is collapsed.