Flutter Engine
The Flutter Engine
SkICCPriv.h
Go to the documentation of this file.
1/*
2 * Copyright 2016 Google Inc.
3 *
4 * Use of this source code is governed by a BSD-style license that can be
5 * found in the LICENSE file.
6 */
7
8#ifndef SkICCPriv_DEFINED
9#define SkICCPriv_DEFINED
10
11#include "include/core/SkTypes.h" // SkSetFourByteTag
12
13#include <cstddef>
14#include <cstdint>
15
16// This is equal to the header size according to the ICC specification (128)
17// plus the size of the tag count (4). We include the tag count since we
18// always require it to be present anyway.
19static constexpr size_t kICCHeaderSize = 132;
20
21// Contains a signature (4), offset (4), and size (4).
22static constexpr size_t kICCTagTableEntrySize = 12;
23
24static constexpr uint32_t kRGB_ColorSpace = SkSetFourByteTag('R', 'G', 'B', ' ');
25static constexpr uint32_t kCMYK_ColorSpace = SkSetFourByteTag('C', 'M', 'Y', 'K');
26static constexpr uint32_t kGray_ColorSpace = SkSetFourByteTag('G', 'R', 'A', 'Y');
27static constexpr uint32_t kDisplay_Profile = SkSetFourByteTag('m', 'n', 't', 'r');
28static constexpr uint32_t kInput_Profile = SkSetFourByteTag('s', 'c', 'n', 'r');
29static constexpr uint32_t kOutput_Profile = SkSetFourByteTag('p', 'r', 't', 'r');
30static constexpr uint32_t kColorSpace_Profile = SkSetFourByteTag('s', 'p', 'a', 'c');
31static constexpr uint32_t kXYZ_PCSSpace = SkSetFourByteTag('X', 'Y', 'Z', ' ');
32static constexpr uint32_t kLAB_PCSSpace = SkSetFourByteTag('L', 'a', 'b', ' ');
33static constexpr uint32_t kACSP_Signature = SkSetFourByteTag('a', 'c', 's', 'p');
34
35static constexpr uint32_t kTAG_rXYZ = SkSetFourByteTag('r', 'X', 'Y', 'Z');
36static constexpr uint32_t kTAG_gXYZ = SkSetFourByteTag('g', 'X', 'Y', 'Z');
37static constexpr uint32_t kTAG_bXYZ = SkSetFourByteTag('b', 'X', 'Y', 'Z');
38static constexpr uint32_t kTAG_rTRC = SkSetFourByteTag('r', 'T', 'R', 'C');
39static constexpr uint32_t kTAG_gTRC = SkSetFourByteTag('g', 'T', 'R', 'C');
40static constexpr uint32_t kTAG_bTRC = SkSetFourByteTag('b', 'T', 'R', 'C');
41static constexpr uint32_t kTAG_kTRC = SkSetFourByteTag('k', 'T', 'R', 'C');
42static constexpr uint32_t kTAG_A2B0 = SkSetFourByteTag('A', '2', 'B', '0');
43static constexpr uint32_t kTAG_B2A0 = SkSetFourByteTag('B', '2', 'A', '0');
44static constexpr uint32_t kTAG_desc = SkSetFourByteTag('d', 'e', 's', 'c');
45static constexpr uint32_t kTAG_cicp = SkSetFourByteTag('c', 'i', 'c', 'p');
46static constexpr uint32_t kTAG_wtpt = SkSetFourByteTag('w', 't', 'p', 't');
47static constexpr uint32_t kTAG_cprt = SkSetFourByteTag('c', 'p', 'r', 't');
48
49static constexpr uint32_t kTAG_CurveType = SkSetFourByteTag('c', 'u', 'r', 'v');
50static constexpr uint32_t kTAG_ParaCurveType = SkSetFourByteTag('p', 'a', 'r', 'a');
51static constexpr uint32_t kTAG_TextType = SkSetFourByteTag('m', 'l', 'u', 'c');
52static constexpr uint32_t kTAG_mABType = SkSetFourByteTag('m', 'A', 'B', ' ');
53static constexpr uint32_t kTAG_mBAType = SkSetFourByteTag('m', 'B', 'A', ' ');
54
61};
62
63#endif // SkICCPriv_DEFINED
static constexpr uint32_t kTAG_mBAType
Definition: SkICCPriv.h:53
static constexpr uint32_t kTAG_desc
Definition: SkICCPriv.h:44
static constexpr uint32_t kLAB_PCSSpace
Definition: SkICCPriv.h:32
static constexpr uint32_t kGray_ColorSpace
Definition: SkICCPriv.h:26
static constexpr uint32_t kTAG_gTRC
Definition: SkICCPriv.h:39
static constexpr uint32_t kTAG_TextType
Definition: SkICCPriv.h:51
static constexpr uint32_t kTAG_cprt
Definition: SkICCPriv.h:47
static constexpr uint32_t kXYZ_PCSSpace
Definition: SkICCPriv.h:31
static constexpr uint32_t kTAG_bTRC
Definition: SkICCPriv.h:40
static constexpr size_t kICCHeaderSize
Definition: SkICCPriv.h:19
static constexpr uint32_t kTAG_gXYZ
Definition: SkICCPriv.h:36
static constexpr uint32_t kTAG_wtpt
Definition: SkICCPriv.h:46
static constexpr uint32_t kColorSpace_Profile
Definition: SkICCPriv.h:30
static constexpr uint32_t kTAG_A2B0
Definition: SkICCPriv.h:42
static constexpr uint32_t kACSP_Signature
Definition: SkICCPriv.h:33
static constexpr uint32_t kTAG_B2A0
Definition: SkICCPriv.h:43
static constexpr uint32_t kOutput_Profile
Definition: SkICCPriv.h:29
static constexpr uint32_t kTAG_ParaCurveType
Definition: SkICCPriv.h:50
static constexpr size_t kICCTagTableEntrySize
Definition: SkICCPriv.h:22
static constexpr uint32_t kTAG_mABType
Definition: SkICCPriv.h:52
static constexpr uint32_t kTAG_bXYZ
Definition: SkICCPriv.h:37
static constexpr uint32_t kCMYK_ColorSpace
Definition: SkICCPriv.h:25
static constexpr uint32_t kRGB_ColorSpace
Definition: SkICCPriv.h:24
static constexpr uint32_t kTAG_rXYZ
Definition: SkICCPriv.h:35
static constexpr uint32_t kDisplay_Profile
Definition: SkICCPriv.h:27
static constexpr uint32_t kTAG_rTRC
Definition: SkICCPriv.h:38
static constexpr uint32_t kTAG_cicp
Definition: SkICCPriv.h:45
static constexpr uint32_t kTAG_kTRC
Definition: SkICCPriv.h:41
ParaCurveType
Definition: SkICCPriv.h:55
@ kGABDE_ParaCurveType
Definition: SkICCPriv.h:59
@ kExponential_ParaCurveType
Definition: SkICCPriv.h:56
@ kGAB_ParaCurveType
Definition: SkICCPriv.h:57
@ kGABC_ParaCurveType
Definition: SkICCPriv.h:58
@ kGABCDEF_ParaCurveType
Definition: SkICCPriv.h:60
static constexpr uint32_t kInput_Profile
Definition: SkICCPriv.h:28
static constexpr uint32_t kTAG_CurveType
Definition: SkICCPriv.h:49
static constexpr SkFourByteTag SkSetFourByteTag(char a, char b, char c, char d)
Definition: SkTypes.h:167