mirror of
https://github.com/brl/mutter.git
synced 2025-02-11 19:04:10 +00:00
![Jonas Ådahl](/assets/img/avatar_default.png)
Just as gsd-color does, generate color profiles. This can either be done from EFI, if available and the color device is associated with a built in panel, or from the EDID. If no source for a profile is found, none is created. The ICC profiles are also stored on disk so that they can be read by e.g. colord. The on disk stored profiles will only be used for storing, not reading the profiles, as the autogenerated ones will no matter what always be loaded to verify the on disk profiles are up to date. If a on disk profile is not, it will be replaced. This is so that fixes or improvements to the profile generation will be made available despite having run an older version earlier. After generating, add some metadata about the generated file itself needed by colord, i.e. file MD5 checksum and the file path. Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/2164>
45 lines
1.4 KiB
C
45 lines
1.4 KiB
C
/*
|
|
* Copyright (C) 2021 Red Hat Inc.
|
|
*
|
|
* This program is free software; you can redistribute it and/or
|
|
* modify it under the terms of the GNU General Public License as
|
|
* published by the Free Software Foundation; either version 2 of the
|
|
* License, or (at your option) any later version.
|
|
*
|
|
* This program is distributed in the hope that it will be useful, but
|
|
* WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
* General Public License for more details.
|
|
*
|
|
* You should have received a copy of the GNU General Public License
|
|
* along with this program; if not, see <http://www.gnu.org/licenses/>.
|
|
*/
|
|
|
|
#ifndef META_COLOR_MANAGER_PRIVATE_H
|
|
#define META_COLOR_MANAGER_PRIVATE_H
|
|
|
|
#include <colord.h>
|
|
#include <lcms2.h>
|
|
|
|
#include "backends/meta-backend-types.h"
|
|
#include "backends/meta-color-manager.h"
|
|
|
|
struct _MetaColorManagerClass
|
|
{
|
|
GObjectClass parent_class;
|
|
};
|
|
|
|
CdClient * meta_color_manager_get_cd_client (MetaColorManager *color_manager);
|
|
|
|
MetaColorStore * meta_color_manager_get_color_store (MetaColorManager *color_manager);
|
|
|
|
META_EXPORT_TEST
|
|
gboolean meta_color_manager_is_ready (MetaColorManager *color_manager);
|
|
|
|
META_EXPORT_TEST
|
|
int meta_color_manager_get_num_color_devices (MetaColorManager *color_manager);
|
|
|
|
cmsContext meta_color_manager_get_lcms_context (MetaColorManager *color_manager);
|
|
|
|
#endif /* META_COLOR_MANAGER_PRIVATE_H */
|