Skip to main content

glycin_common/
color_profile_preference.rs

1use serde::{Deserialize, Serialize};
2use zvariant::Type;
3
4#[repr(i32)]
5#[derive(Deserialize, Serialize, Type, Debug, Clone, Copy, PartialEq, Eq, Default)]
6#[cfg_attr(feature = "gobject", derive(glib::Enum))]
7#[cfg_attr(feature = "gobject", enum_type(name = "GlyMemoryFormat"))]
8#[zvariant(signature = "s")]
9/// Some loaders can provide a CICP and ICC profile at the same time. Which
10/// color information should be preferred differs between image formats. This
11/// value determines which kind should be preferred.
12pub enum ColorProfilePreference {
13    #[default]
14    Cicp,
15    IccProfile,
16}