Method

VipsImagesRGB2scRGB

Declaration [src]

int
vips_sRGB2scRGB (
  VipsImage* in,
  VipsImage** out,
  ...
)

Description [src]

Convert an sRGB image to scRGB. The input image can be 8 or 16-bit.

If the input image is tagged as #VIPS_INTERPRETATION_RGB16, any extra channels after RGB are divided by 256. Thus, scRGB alpha is always 0 - 255.99.

See also: vips_scRGB2XYZ(), vips_scRGB2sRGB(), vips_rad2float().

This method is not directly available to language bindings.

Parameters

out

Type: VipsImage

Output image.

The argument will be set by the function.
The caller of the method takes ownership of the returned data, and is responsible for freeing it.
...

Type: 

NULL-terminated list of optional named arguments.

Return value

Type: int

0 on success, -1 on error.