Method

VipsImageCICP2scRGB

Declaration [src]

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

Description [src]

Transform an image with CICP signal to scRGB. If present, the target colour encoding is set by the CICP tags on in. These can be overridden with those specified via the optional CICP arguments.

PQ and HLG are scaled so that 1.0 is BT.2408 reference white (203 nits).

This operation does not remove CICP metadata from out. The following tags should be updated or removed to reflect the conversion: - VIPS_META_CICP_COLOUR_PRIMARIES - VIPS_META_CICP_TRANSFER_CHARACTERISTICS - VIPS_META_CICP_MATRIX_COEFFICIENTS - VIPS_META_CICP_FULL_RANGE_FLAG

Optional arguments

  • colour_primaries: VipsCICPColourPrimaries, target primaries (default VIPS_CICP_COLOUR_PRIMARIES_BT709)
  • transfer_characteristics: VipsCICPTransferCharacteristics, target transfer (default VIPS_CICP_TRANSFER_SRGB)
  • matrix_coefficients: VipsCICPMatrixCoefficients, target matrix (default VIPS_CICP_MATRIX_RGB)

See also

vips_scRGB2CICP().

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.