Skip to content

Commit

Permalink
update docs for scRGB
Browse files Browse the repository at this point in the history
  • Loading branch information
jcupitt committed Jun 22, 2015
1 parent 7077356 commit f5b6f2d
Show file tree
Hide file tree
Showing 3 changed files with 154 additions and 60 deletions.
Binary file modified doc/images/interconvert.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
194 changes: 137 additions & 57 deletions doc/images/interconvert.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
20 changes: 17 additions & 3 deletions libvips/colour/colour.c
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,8 @@
*
* The colour functions can be divided into three main groups. First,
* functions to transform images between the different colour spaces supported
* by VIPS: <emphasis>RGB</emphasis>, <emphasis>sRGB</emphasis>,
* by VIPS: <emphasis>sRGB</emphasis>,
* <emphasis>scRGB</emphasis>,
* <emphasis>XYZ</emphasis>, <emphasis>Yxy</emphasis>,
* <emphasis>Lab</emphasis>, <emphasis>LabQ</emphasis>,
* <emphasis>LabS</emphasis>, <emphasis>LCh</emphasis> and
Expand All @@ -77,7 +78,9 @@
*
* This figure shows how the VIPS colour spaces interconvert:
*
* <inlinegraphic fileref="interconvert.png" format="PNG" />
* <para>
* <inlinegraphic fileref="interconvert.png" format="PNG" />
* </para>
*
* The colour spaces supported by VIPS are:
*
Expand Down Expand Up @@ -135,9 +138,10 @@
* image.
* </para>
* </listitem>
*
* <listitem>
* <para>
* <emphasis><code>RGB</code> / <code>sRGB</code></emphasis>
* <emphasis><code>sRGB</code></emphasis>
*
* VIPS converts XYZ to and from sRGB using the usual formula:
*
Expand All @@ -149,6 +153,16 @@
* </listitem>
* <listitem>
* <para>
* <emphasis><code>scRGB</code></emphasis>
*
* scRGB is sRGB bit with linear primaries. It uses floats in the range
* 0 - 1. It's convenient if you need a linear colourspace but don't
* care too much what the primaries are.
* </para>
* </listitem>
*
* <listitem>
* <para>
* <emphasis><code>LCh</code></emphasis>
*
* Like <code>Lab</code>, but rectangular <code>ab</code> coordinates
Expand Down

0 comments on commit f5b6f2d

Please sign in to comment.