Skip to content

Commit

Permalink
add some docs
Browse files Browse the repository at this point in the history
  • Loading branch information
jcupitt committed Jun 22, 2015
1 parent bdc9684 commit a812e90
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 1 deletion.
4 changes: 4 additions & 0 deletions libvips/colour/HSV2sRGB.c
Expand Up @@ -132,6 +132,10 @@ vips_HSV2sRGB_init( VipsHSV2sRGB *HSV2sRGB )
*
* Convert HSV to sRGB.
*
* HSV is a crude polar coordinate system for RGB images. It is provided for
* compatibility with other image processing systems. See vips_Lab2LCh() for a
* much better colour space.
*
* See also: vips_sRGB2HSV().
*
* Returns: 0 on success, -1 on error.
Expand Down
3 changes: 3 additions & 0 deletions libvips/colour/colour.c
Expand Up @@ -128,6 +128,9 @@
* #VIPS_INTERPRETATION_RGB16 is the same, but using three 16-bit values for
* RGB.
*
* #VIPS_INTERPRETATION_HSV is sRGB, but in polar coordinates.
* #VIPS_INTERPRETATION_LCH is much better, only use HSV if you have to.
*
* * #VIPS_INTERPRETATION_B_W -- a monochrome image, roughly G from sRGB.
* The grey value is
* calculated in #VIPS_INTERPRETATION_scRGB space with the usual 0.2, 0.7, 0.1
Expand Down
6 changes: 5 additions & 1 deletion libvips/colour/sRGB2HSV.c
Expand Up @@ -150,7 +150,11 @@ vips_sRGB2HSV_init( VipssRGB2HSV *sRGB2HSV )
*
* Convert to HSV.
*
* See also: vips_HSV2sRGB().
* HSV is a crude polar coordinate system for RGB images. It is provided for
* compatibility with other image processing systems. See vips_Lab2LCh() for a
* much better colour space.
*
* See also: vips_HSV2sRGB(), vips_Lab2LCh().
*
* Returns: 0 on success, -1 on error.
*/
Expand Down

0 comments on commit a812e90

Please sign in to comment.