Commits on Source (10)
-
Leandro Ribeiro authored
In the next commits we plan to add support to load ICC profiles that are embedded in images. So we need something more flexible than load_image(). This patch introduces a new function that, for now, does the same as load_image(). For now we keep load_image() as well, but the plan is to drop it later. Signed-off-by: Leandro Ribeiro <leandro.ribeiro@collabora.com>
1b0f8693 -
Leandro Ribeiro authored
This introduces the functionality to also load the embedded ICC profile from an image. For now, this only supports PNG files, but in the next commit we add the support for JPEG as well. Signed-off-by: Leandro Ribeiro <leandro.ribeiro@collabora.com>
d3f39303 -
Leandro Ribeiro authored
Follow up of "shared: allow to get ICC profile from PNG using weston_image_load()". This adds the support to get ICC profiles from JPEG files. Signed-off-by: Leandro Ribeiro <leandro.ribeiro@collabora.com>
312efb2a -
Leandro Ribeiro authored
Instead of loading only the pixman image through load_image(), load both the pixman image and the ICC profile with weston_image_load(). It also sets the struct weston_image as the cairo surface user data and adds a function so that users can retrieve this. Signed-off-by: Leandro Ribeiro <leandro.ribeiro@collabora.com>
e015081f -
Leandro Ribeiro authored
We have a single user of load_image(), and that can be easily replaced by the new and more flexible weston_image_load() function. So replace and drop load_image() from the code. Signed-off-by: Leandro Ribeiro <leandro.ribeiro@collabora.com>
cf59ed0e -
Leandro Ribeiro authored
This function takes an ICC fd, creates an image description for that and sets the widget surface image description to this one. Signed-off-by: Leandro Ribeiro <leandro.ribeiro@collabora.com>
dbdcae98 -
Leandro Ribeiro authored
For image files that have an embedded ICC profile, use the CM&HDR protocol extension to present taking that into account. We use the CM&HDR extension to create an image description based on the ICC profile. Also through the CM&HDR extension we take this image description and set it to be the surface image description of the surface in which we present the image. For now, the rendering intent is hardcoded to be perceptual. In the next commits we'll allow end users to choose the rendering intent through command line options. Signed-off-by: Leandro Ribeiro <leandro.ribeiro@collabora.com>
576680c7 -
Leandro Ribeiro authored
Add function to print program usage. For now this is kind of useless, but in the next commit we'll add more functionalities to clients/image command line options. Signed-off-by: Leandro Ribeiro <leandro.ribeiro@collabora.com>
d76643ee -
Leandro Ribeiro authored
Commit "clients/image: use embedded ICC profile to present image" added the support to present images with embedded ICC profiles being taken into account. But the rendering intent was hardcoded to perceptual. In this patch we allow end users to choose other rendering intents through command line options. Signed-off-by: Leandro Ribeiro <leandro.ribeiro@collabora.com>
5933af7a -
Leandro Ribeiro authored
This patch adds a new CLI option to weston-image: verbose. It uses that to decide if we should log some info when the image contains an ICC file embedded. Signed-off-by: Leandro Ribeiro <leandro.ribeiro@collabora.com>
5e84f916