Color Profile Functions

These routines may be used within shaders to transform their arguments from one color space to another or to identify the color spaces currently in use.

mi_colorprofile_renderspace_id
miUint1 mi_colorprofile_renderspace_id()

returns the identifier associated with the current rendering color space.

mi_colorprofile_internalspace_id
miUint1 mi_colorprofile_internalspace_id()

returns the identifier associated with the internal color space.

mi_colorprofile_ciexyz_id
miUint1 mi_colorprofile_ciexyz_id()

returns the identifier associated with the CIE XYZ color space.

mi_colorprofile_internal_to_render
miBoolean mi_colorprofile_internal_to_render(
    miColor         *color)

assumes that the given color is in internal color space and transforms it in-place to the rendering color space representation.

mi_colorprofile_render_to_internal
miBoolean mi_colorprofile_render_to_internal(
    miColor         *color)

assumes that the given color is in rendering color space and transforms it in-place to the internal color space representation.

mi_colorprofile_ciexyz_to_render
miBoolean mi_colorprofile_ciexyz_to_render(
    miColor         *color)

assumes that the given color is in CIE XYZ color space and transforms it in-place to the rendering color space representation.

mi_colorprofile_render_to_ciexyz
miBoolean mi_colorprofile_render_to_ciexyz(
    miColor         *color)

assumes that the given color is in rendering color space and transforms it in-place to the CIE XYZ color space representation.

mi_colorprofile_internal_to_ciexyz
miBoolean mi_colorprofile_internal_to_ciexyz(
    miColor         *color)

assumes that the given color is in internal color space and transforms it in-place to the CIE XYZ color space representation.

mi_colorprofile_ciexyz_to_internal
miBoolean mi_colorprofile_ciexyz_to_internal(
    miColor         *color)

assumes that the given color is in CIE XYZ color space and transforms it in-place to the internal color space representation.

Copyright © 1986, 2015 NVIDIA ARC GmbH. All rights reserved.