Adsk Contrib - More python tests and bindings fixes (#1274)

* More python tests and fixes:
- re-add commented tests.
- add new tests for FileRules.
- Fix issues outlined by tests.

Signed-off-by: Bernard Lefebvre <bernard.lefebvre@autodesk.com>

* Adjust baker test to account for small differences

Signed-off-by: Bernard Lefebvre <bernard.lefebvre@autodesk.com>

* Forgot to remove the complete string test

Signed-off-by: Bernard Lefebvre <bernard.lefebvre@autodesk.com>

* GroupTranform::write(), new enums, Lut1DTransform python tests

Signed-off-by: Bernard Lefebvre <bernard.lefebvre@autodesk.com>

* Forgot files

Signed-off-by: Bernard Lefebvre <bernard.lefebvre@autodesk.com>

Co-authored-by: doug-walker <43830961+doug-walker@users.noreply.github.com>
This commit is contained in:
Bernard Lefebvreanddoug-walker authored and GitHub committed 2021-01-22 12:10:17 -05:00
1 parent 50e5d8b37d
commit 574ccd856e
45 files changed
+868 -317

No files matched your search

@@ -145,6 +145,10 @@
.. py:class:: FormatIterator
:module: PyOpenColorIO.Baker
Iterator on LUT baker Formats.
Each item is a tuple containing format name and format extension.
.. py:method:: FormatIterator.__getitem__(self: PyOpenColorIO.Baker.FormatIterator, arg0: int) -> tuple
:module: PyOpenColorIO.Baker
@@ -228,17 +228,9 @@
The fcn accepts either a color space name, role name, or alias. (Color space names take precedence over roles.)
.. py:method:: Config.getColorSpaceFromFilepath(*args, **kwargs)
.. py:method:: Config.getColorSpaceFromFilepath(self: PyOpenColorIO.Config, filePath: str) -> tuple
:module: PyOpenColorIO
Overloaded function.
1. getColorSpaceFromFilepath(self: PyOpenColorIO.Config, filePath: str) -> str
Get the color space of the first rule that matched filePath.
2. getColorSpaceFromFilepath(self: PyOpenColorIO.Config, filePath: str, ruleIndex: int) -> str
Get the color space of the first rule that matched filePath.
@@ -30,6 +30,12 @@
FIXED_FUNCTION_XYZ_TO_LUV : CIE XYZ to 1976 CIELUV colour space (D65 white)
FIXED_FUNCTION_ACES_GAMUTMAP_02 : ACES 0.2 Gamut clamping algorithm -- NOT IMPLEMENTED YET.
FIXED_FUNCTION_ACES_GAMUTMAP_07 : ACES 0.7 Gamut clamping algorithm -- NOT IMPLEMENTED YET.
FIXED_FUNCTION_ACES_GAMUTMAP_13 : ACES 1.3 Gamut mapping algorithm -- NOT IMPLEMENTED YET.
.. py:method:: name() -> str
:property:
@@ -38,6 +44,21 @@
:value: <FixedFunctionStyle.FIXED_FUNCTION_ACES_DARK_TO_DIM_10: 4>
.. py:attribute:: FixedFunctionStyle.FIXED_FUNCTION_ACES_GAMUTMAP_02
:module: PyOpenColorIO
:value: <FixedFunctionStyle.FIXED_FUNCTION_ACES_GAMUTMAP_02: 10>
.. py:attribute:: FixedFunctionStyle.FIXED_FUNCTION_ACES_GAMUTMAP_07
:module: PyOpenColorIO
:value: <FixedFunctionStyle.FIXED_FUNCTION_ACES_GAMUTMAP_07: 11>
.. py:attribute:: FixedFunctionStyle.FIXED_FUNCTION_ACES_GAMUTMAP_13
:module: PyOpenColorIO
:value: <FixedFunctionStyle.FIXED_FUNCTION_ACES_GAMUTMAP_13: 12>
.. py:attribute:: FixedFunctionStyle.FIXED_FUNCTION_ACES_GLOW_03
:module: PyOpenColorIO
:value: <FixedFunctionStyle.FIXED_FUNCTION_ACES_GLOW_03: 2>
@@ -73,7 +73,7 @@
Overloaded function.
1. write(self: PyOpenColorIO.GroupTransform, config: OpenColorIO_v2_0rc1::Config, context: OpenColorIO_v2_0rc1::Context, formatName: str, fileName: str) -> None
1. write(self: PyOpenColorIO.GroupTransform, config: PyOpenColorIO.Config, formatName: str, fileName: str) -> None
Write the transforms comprising the group to the stream.
@@ -89,7 +89,7 @@
formats << " (." << GroupTransform::GetFormatExtensionByIndex(i) << ")";
}
2. write(self: PyOpenColorIO.GroupTransform, config: OpenColorIO_v2_0rc1::Config, context: OpenColorIO_v2_0rc1::Context, formatName: str) -> str
2. write(self: PyOpenColorIO.GroupTransform, config: PyOpenColorIO.Config, formatName: str) -> str
Write the transforms comprising the group to the stream.
@@ -10,9 +10,11 @@
Members:
HUE_NONE :
HUE_NONE : No adjustment.
HUE_DW3 :
HUE_DW3 : Algorithm used in ACES Output Transforms through v0.7.
HUE_WYPN : Weighted Yellow Power Norm -- NOT IMPLEMENTED YET.
.. py:method:: name() -> str
:property:
@@ -26,3 +28,8 @@
:module: PyOpenColorIO
:value: <Lut1DHueAdjust.HUE_NONE: 0>
.. py:attribute:: Lut1DHueAdjust.HUE_WYPN
:module: PyOpenColorIO
:value: <Lut1DHueAdjust.HUE_WYPN: 2>
@@ -152,16 +152,14 @@
Set the Range style to clamp or not input values.
.. py:method:: RangeTransform.unsetMaxOutValue(*args, **kwargs)
.. py:method:: RangeTransform.unsetMaxInValue(self: PyOpenColorIO.RangeTransform) -> None
:module: PyOpenColorIO
Overloaded function.
Unset the maximum value for the input.
1. unsetMaxOutValue(self: PyOpenColorIO.RangeTransform) -> None
Unset the maximum value for the output.
2. unsetMaxOutValue(self: PyOpenColorIO.RangeTransform) -> None
.. py:method:: RangeTransform.unsetMaxOutValue(self: PyOpenColorIO.RangeTransform) -> None
:module: PyOpenColorIO
Unset the maximum value for the output.