Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
22 commits
Select commit Hold shift + click to select a range
784d563
First iteration of isColorspaceLinear.
cedrik-fuoco-adsk Oct 18, 2022
fe65de8
- Comments.
cedrik-fuoco-adsk Oct 19, 2022
ab0a8ce
- Passing in the config reference instead of using this in the captur…
cedrik-fuoco-adsk Oct 19, 2022
4031024
Removing a comment and removing the helper function as it is not needed.
cedrik-fuoco-adsk Oct 19, 2022
0433f74
Get in sync with changes on the public repository for isColorspaceLin…
cedrik-fuoco-adsk Oct 20, 2022
9fb0b74
- C++ implemention for getProcessorToBuiltinColorSpace with a few uti…
cedrik-fuoco-adsk Oct 24, 2022
7b39edf
- Changed getProcessorToBuiltinColorSpace to getProcessorToOrFromBuil…
cedrik-fuoco-adsk Oct 25, 2022
da670c0
Adding ColorSpaceUtils
cedrik-fuoco-adsk Oct 25, 2022
348dfba
- Comments and styling
cedrik-fuoco-adsk Oct 26, 2022
159d398
Now using getProcessorWithoutCaching and moved logics into Config::Impl.
cedrik-fuoco-adsk Oct 26, 2022
973dd93
Removing combineGroupTransform, small refactor of getRefToSRGBTransfo…
cedrik-fuoco-adsk Oct 26, 2022
4748c44
Python Bindings
cedrik-fuoco-adsk Oct 26, 2022
731ef98
Changing new helper methods to const and minor styling issues.
cedrik-fuoco-adsk Oct 26, 2022
ac88f2c
Minor styling issues
cedrik-fuoco-adsk Oct 26, 2022
dfa489a
Changed a comment to fit on one line and styling issue.
cedrik-fuoco-adsk Oct 26, 2022
5a5b97b
Merge branch 'main' into adsk_contrib/convert-from-to-known-external-…
cedrik-fuoco-adsk Oct 26, 2022
1a24070
Removing extra qualifiers that returns an error on Linux and Mac and …
cedrik-fuoco-adsk Oct 26, 2022
91d50b6
Merge branch 'adsk_contrib/convert-from-to-known-external-color-space…
cedrik-fuoco-adsk Oct 26, 2022
dce2568
Fixing issue with documentation
cedrik-fuoco-adsk Oct 27, 2022
e8b1fcd
- Rename checkForLinearColorSpace ---> getReferenceSpaceFromLinearSpace
cedrik-fuoco-adsk Oct 27, 2022
1c29dc8
Renaming checkForSRGBTextureColorSpace to getReferenceSpaceFromSRGBSp…
cedrik-fuoco-adsk Oct 27, 2022
a5dc09d
Merge branch 'main' into adsk_contrib/convert-from-to-known-external-…
cedrik-fuoco-adsk Oct 28, 2022
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
40 changes: 40 additions & 0 deletions include/OpenColorIO/OpenColorIO.h
Original file line number Diff line number Diff line change
Expand Up @@ -1210,6 +1210,46 @@ class OCIOEXPORT Config
const ConstTransformRcPtr & transform,
TransformDirection direction) const;

/**
* \brief Get a Processor to or from a known external color space.
*
* These methods provide a way to interface color spaces in a config with known standard
* external color spaces. The set of external color space are those contained in the current
* default Built-in config. This includes common spaces such as "Linear Rec.709 (sRGB)",
* "sRGB - Texture", "ACEScg", and "ACES2065-1".
*
* If the source config defines the necessary Interchange Role (typically "aces_interchange"),
* then the conversion will be well-defined and equivalent to calling GetProcessorFromConfigs
* with the source config and the Built-in config
*
* However, if the Interchange Roles are not present, heuristics will be used to try and
* identify a common color space in the source config that may be used to allow the conversion
* to proceed. If the heuristics fail to find a suitable space, an exception is thrown.
* The heuristics may evolve, so the results returned by this function for a given source config
* and color space may change in future releases of the library. However, the Interchange Roles
* are required in config versions 2.2 and higher, so it is hoped that the need for the heuristics
* will decrease over time.
*
* \param srcConfig The user's source config.
* \param srcColorSpaceName The name of the color space in the source config.
* \param builtinColorSpaceName The name of the color space in the current default Built-in config.
*/
static ConstProcessorRcPtr GetProcessorToBuiltinColorSpace(
ConstConfigRcPtr srcConfig,
const char * srcColorSpaceName,
const char * builtinColorSpaceName);
/**
* \brief See description of GetProcessorToBuiltinColorSpace.
*
* \param builtinColorSpaceName The name of the color space in the current default Built-in config.
* \param srcConfig The user's source config.
* \param srcColorSpaceName The name of the color space in the source config.
*/
static ConstProcessorRcPtr GetProcessorFromBuiltinColorSpace(
const char * builtinColorSpaceName,
ConstConfigRcPtr srcConfig,
const char * srcColorSpaceName);

/**
* \brief Get a processor to convert between color spaces in two separate
* configs.
Expand Down
Loading