1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
// SPDX-License-Identifier: Apache-2.0 OR MIT
// Copyright (c) 2021-2026, Harbers Bik LLC
use ;
use ;
/*
impl ColorSpace {
pub fn new(tag: Signature) -> Option<Self> {
match tag.0 {
0x58595A20 => Some(Self::XYZ),
0x4C616220 => Some(Self::Lab),
0x4C757620 => Some(Self::Luv),
0x59436272 => Some(Self::YCbr),
0x59787920 => Some(Self::Yxy),
0x52474220 => Some(Self::RGB),
0x47524159 => Some(Self::Gray),
0x48535620 => Some(Self::HSV),
0x484C5320 => Some(Self::HLS),
0x434D594B => Some(Self::CMYK),
0x434D5920 => Some(Self::CMY),
0x32434C52 => Some(Self::CLR2),
0x33434C52 => Some(Self::CLR3),
0x34434C52 => Some(Self::CLR4),
0x35434C52 => Some(Self::CLR5),
0x36434C52 => Some(Self::CLR6),
0x37434C52 => Some(Self::CLR7),
0x38434C52 => Some(Self::CLR8),
0x39434C52 => Some(Self::CLR9),
0x41434C52 => Some(Self::CLRA),
0x42434C52 => Some(Self::CLRB),
0x43434C52 => Some(Self::CLRC),
0x44434C52 => Some(Self::CLRD),
0x45434C52 => Some(Self::CLRE),
0x46434C52 => Some(Self::CLRF),
#[cfg(feature = "v5")]
0x6E630000 => Some(Self::NC), // V5: n channel device data
_ => None
}
}
}
impl From<ColorSpace> for Signature {
fn from(color_space: ColorSpace) -> Self {
Signature(color_space as u32)
}
}
*/