Whereas the DisplayViewTransform simply applies a specific view from an OCIO display, the LegacyViewingPipeline provides an example of a complete viewing pipeline of the sort that could be used to implement a viewport in a typical application. It therefore adds, around the DisplayViewTransform, various optional color correction steps and RGBA channel view swizzling. The direction of the DisplayViewTranform is used as the direction of the pipeline. Note: The LegacyViewingPipeline class provides the same functionality as the OCIO v1 DisplayTransform.
Legacy viewing pipeline:
- Start in display transform input color space.
- If linearCC is provided:
- Go to scene_linear colorspace.
- Apply linearCC transform.
- If colorTimingCC is provided:
- Go to color_timing colorspace.
- Apply colorTimingCC transform.
- Apply looks (from display transform or from looks override).
- Go to first look color space.
- Apply first look transform.
- Iterate for all looks.
- Apply channelView transform.
- Apply display transform (without looks).
- Apply displayCC. Note that looks are applied even if the display transform involves data color spaces.
Definition at line 363 of file OpenColorAppHelpers.h.
virtual void OCIO_NAMESPACE::LegacyViewingPipeline::setLooksOverride |
( |
const char * |
looks | ) |
|
|
pure virtual |
A user can optionally override the looks that are, by default, used with the expected display / view combination. A common use case for this functionality is in an image viewing app, where per-shot looks are supported. If for some reason a per-shot look is not defined for the current Context, the Config::getProcessor fcn will not succeed by default. Thus, with this mechanism the viewing app could override to looks = "", and this will allow image display to continue (though hopefully) the interface would reflect this fallback option.
Looks is a potentially comma (or colon) delimited list of lookNames, where +/- prefixes are optionally allowed to denote forward/inverse look specification (and forward is assumed in the absence of either).