Radeon ProRender


Sets the colorspace for an image by string.  Default is linear colorspace (1:1 mapping).

The OCIO config file RPR_CONTEXT_OCIO_CONFIG_PATH should be set and contain the color space in the config file.  Also set an RPR_CONTEXT_OCIO_RENDERING_COLOR_SPACE with rprContextSetParameter().

rpr_status rprImageSetOcioColorspace( rpr_image image,
  rpr_char const * ocioColorspace);


Parameter Description
image rpr_image to set colorspace for.
ocioColorspace Name of colorspace to set to (must be in the config.ocio file).


Returns RPR_SUCCESS in case of success, or RPR_ERROR code if a problem was encountered.

To learn how to handle errors in AMD Radeon ProRender SDK, see Error Handling.