summaryrefslogtreecommitdiff
path: root/docs/ColorManagement-static.html
blob: 5a8f913c80d06b0b7e49ac4868ddbd5c056927e2 (plain)
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
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">


<!-- The babl webpage is partially autogenerated
-->
<html>
  <head>
    <title>babl color management</title>
    <meta http-equiv="content-type" content="text/html;charset=utf-8" />
    <link rel="icon" href="graphics/babl-16x16.png" type="image/png" />
    <link rel="shortcut icon" href="graphics/babl-16x16.png" type="image/png" />
    <style type='text/css'>
       @import url(babl.css);
    </style>

  </head>
  <body>

<!--TOC-->


    <div class='paper'>
  <div class='content'>
  <h2>Color Management</h2>

  <p>By default the babl API is assuming data to be (unbounded) sRGB data, data
  being sRGB defines the conversion to and from gray-scale as well as the gamma
  - or Transfer Response Curve, TRC, used for converting between linear and
  non-linear variants of the data.
  </p>

  <p>babl has API for creating a format for a specific space:
  <tt>babl_format_with_space("R'G'B' u16", babl_space ("Rec2020"))</tt> creates
  a 16 bit integer format for the Rec2020 color space. Babl knows internally
  about "sRGB", "Rec2020", "Adobe", "Apple" and "ProPhoto" spaces, as they are
  defined with constants on their wikipedia pages.
  </p>

  <p>Additional spaces can be loaded from monitor-class matrix+TRC ICC v2 and
  v4 profiles. Using babl_icc_make_space (see babl.h for details). The space of
  a babl format can also be queried with babl_format_get_space.
  </p>

  <p>The conversions babl does with ICC profiles are according to what is known
  as the relative-colorimetric intent, monitor profiles containing both the
  matrices used by babl and 3d CLUTs (color look up tables) sometimes also do
  relative-colorimetric transfer for the "perceptual" intent CLUTs, but with
  a more flexible and possibly higher accuracy conversions.</p>

  <p>Handling of <a href='CMYK.html'>CMYK is in a separate document</a>.</p>

  <a href='graphics/index.html'><img class='BablFish' alt='/babl' title='babl' src='graphics/babl-48x48.png'/></a>
  </div>
  </div>

    <div class='graphic'>
      <div class='print'>
        <img src='graphics/babl-a4poster.png' alt=' '/>
      </div>
    </div>

  </body>
</html>