Commit b236bd8
authored
Adsk contrib - Convert to or from a known external color space (#1710)
* First iteration of isColorspaceLinear.
Signed-off-by: Cedrik Fuoco <[email protected]>
* - Comments.
- Added a private getProcessor method that ignore caching.
- Fix the algorithm for isColorspaceLinear. - Now testing R, G, B and neutral values.
Signed-off-by: Cedrik Fuoco <[email protected]>
* - Passing in the config reference instead of using this in the capture clause of the lambda function as this was causing issue on other platforms than Windows.
- Remove unused variable in unit test.
- other minors changes
Signed-off-by: Cedrik Fuoco <[email protected]>
* Removing a comment and removing the helper function as it is not needed.
Signed-off-by: Cedrik Fuoco <[email protected]>
* Get in sync with changes on the public repository for isColorspaceLinear.
Signed-off-by: Cedrik Fuoco <[email protected]>
* - C++ implemention for getProcessorToBuiltinColorSpace with a few utilitiy functions
Signed-off-by: Cedrik Fuoco <[email protected]>
* - Changed getProcessorToBuiltinColorSpace to getProcessorToOrFromBuiltinColorspace and it not accessible through the API anymore
- Added getProcessorFromBuiltInColorspace (API)
- Added getProcessorToBuiltinColorspace (API)
- rename "bi" variables to "builtin"
- Added the swaping of colorspace when TRANSFORM_DIR_INVERSE
- Added C++ unit test
std::cout debug print will be removed in the next commit.
Signed-off-by: Cedrik Fuoco <[email protected]>
* Adding ColorSpaceUtils
Signed-off-by: Cedrik Fuoco <[email protected]>
* - Comments and styling
- Refactor the code in order to use apply()
- Move everything to ColorSpaceUtils so that all the helper functions are private to ColorSpaceUtils
- Remove the std::cout
Signed-off-by: Cedrik Fuoco <[email protected]>
* Now using getProcessorWithoutCaching and moved logics into Config::Impl.
Signed-off-by: Cedrik Fuoco <[email protected]>
* Removing combineGroupTransform, small refactor of getRefToSRGBTransform and styling issues.
Signed-off-by: Cedrik Fuoco <[email protected]>
* Python Bindings
Signed-off-by: Cedrik Fuoco <[email protected]>
* Changing new helper methods to const and minor styling issues.
Signed-off-by: Cedrik Fuoco <[email protected]>
* Minor styling issues
Signed-off-by: Cedrik Fuoco <[email protected]>
* Changed a comment to fit on one line and styling issue.
Signed-off-by: Cedrik Fuoco <[email protected]>
* Removing extra qualifiers that returns an error on Linux and Mac and fixing warnings on Linux and Mac.
Signed-off-by: Cedrik Fuoco <[email protected]>
* Fixing issue with documentation
Signed-off-by: Cedrik Fuoco <[email protected]>
* - Rename checkForLinearColorSpace ---> getReferenceSpaceFromLinearSpace
- Fix an issue where the wrong config object was used for getProcessorWithoutCaching.
- Added a comment about about 0.0030399346397784323.
- Using std::pow instead of pow
- Small refactor of getReferenceSpaceFromLinearSpace to avoid duplicate code.
Signed-off-by: Cedrik Fuoco <[email protected]>
* Renaming checkForSRGBTextureColorSpace to getReferenceSpaceFromSRGBSpace and adding "Utility - Linear - Rec.2020" to the builtin linear spaces.
Signed-off-by: Cedrik Fuoco <[email protected]>
Signed-off-by: Cedrik Fuoco <[email protected]>
Signed-off-by: Cédrik Fuoco <[email protected]>1 parent a347d80 commit b236bd8
File tree
5 files changed
+868
-1
lines changed- include/OpenColorIO
- src
- OpenColorIO
- bindings/python
- tests
- cpu
- python
5 files changed
+868
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1210 | 1210 | | |
1211 | 1211 | | |
1212 | 1212 | | |
| 1213 | + | |
| 1214 | + | |
| 1215 | + | |
| 1216 | + | |
| 1217 | + | |
| 1218 | + | |
| 1219 | + | |
| 1220 | + | |
| 1221 | + | |
| 1222 | + | |
| 1223 | + | |
| 1224 | + | |
| 1225 | + | |
| 1226 | + | |
| 1227 | + | |
| 1228 | + | |
| 1229 | + | |
| 1230 | + | |
| 1231 | + | |
| 1232 | + | |
| 1233 | + | |
| 1234 | + | |
| 1235 | + | |
| 1236 | + | |
| 1237 | + | |
| 1238 | + | |
| 1239 | + | |
| 1240 | + | |
| 1241 | + | |
| 1242 | + | |
| 1243 | + | |
| 1244 | + | |
| 1245 | + | |
| 1246 | + | |
| 1247 | + | |
| 1248 | + | |
| 1249 | + | |
| 1250 | + | |
| 1251 | + | |
| 1252 | + | |
1213 | 1253 | | |
1214 | 1254 | | |
1215 | 1255 | | |
| |||
0 commit comments