color ¶
Classes:
-
InvalidColorspacePathError–Raised when there is no path between two colorspaces.
-
InvalidMatrixError–Raised when an invalid matrix is passed.
-
InvalidPrimariesError–Raised when an invalid matrix is passed.
-
InvalidTransferError–Raised when an invalid matrix is passed.
-
ReservedMatrixError–Raised when a reserved matrix is requested.
-
ReservedPrimariesError–Raised when reserved primaries are requested.
-
ReservedTransferError–Raised when a reserved transfer is requested.
-
UndefinedMatrixError–Raised when an undefined matrix is passed.
-
UndefinedPrimariesError–Raised when an undefined primaries value is passed.
-
UndefinedTransferError–Raised when an undefined transfer is passed.
-
UnsupportedColorRangeError–Raised when a unsupported color range value is passed.
-
UnsupportedMatrixError–Raised when an unsupported matrix is passed.
-
UnsupportedPrimariesError–Raised when a unsupported primaries value is passed.
-
UnsupportedTransferError–Raised when an unsupported transfer is passed.
InvalidColorspacePathError ¶
InvalidColorspacePathError(
func: FuncExcept, message: SupportsString | None = None, **kwargs: Any
)
Bases: CustomValueError
Raised when there is no path between two colorspaces.
Methods:
-
check–Check if there's a valid colorspace path for the given clip.
Source code in vstools/exceptions/color.py
35 36 37 38 39 40 41 42 43 44 45 | |
check staticmethod ¶
Check if there's a valid colorspace path for the given clip.
Parameters:
-
(func¶FuncExcept) –Function returned for custom error handling. This should only be set by VS package developers.
-
(to_check¶VideoNode) –Value to check. Must be a VideoNode.
Raises:
-
InvalidColorspacePathError–If there's no valid colorspace path.
Source code in vstools/exceptions/color.py
47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 | |
InvalidMatrixError ¶
InvalidMatrixError(
func: FuncExcept,
matrix: int = 2,
message: SupportsString = "You can't set a matrix of {matrix}!",
**kwargs: Any
)
Bases: CustomValueError
Raised when an invalid matrix is passed.
Source code in vstools/exceptions/color.py
95 96 97 98 99 100 101 102 | |
InvalidPrimariesError ¶
InvalidPrimariesError(
func: FuncExcept,
primaries: int = 2,
message: SupportsString = "You can't set primaries of {primaries}!",
**kwargs: Any
)
Bases: CustomValueError
Raised when an invalid matrix is passed.
Source code in vstools/exceptions/color.py
169 170 171 172 173 174 175 176 | |
InvalidTransferError ¶
InvalidTransferError(
func: FuncExcept,
transfer: int = 2,
message: SupportsString = "You can't set a transfer of {transfer}!",
**kwargs: Any
)
Bases: CustomValueError
Raised when an invalid matrix is passed.
Source code in vstools/exceptions/color.py
132 133 134 135 136 137 138 139 | |
ReservedMatrixError ¶
Bases: CustomPermissionError
Raised when a reserved matrix is requested.
ReservedPrimariesError ¶
Bases: CustomPermissionError
Raised when reserved primaries are requested.
ReservedTransferError ¶
Bases: CustomPermissionError
Raised when a reserved transfer is requested.
UndefinedMatrixError ¶
Bases: CustomValueError
Raised when an undefined matrix is passed.
UndefinedPrimariesError ¶
Bases: CustomValueError
Raised when an undefined primaries value is passed.
UndefinedTransferError ¶
Bases: CustomValueError
Raised when an undefined transfer is passed.
UnsupportedColorRangeError ¶
Bases: CustomValueError
Raised when a unsupported color range value is passed.
UnsupportedMatrixError ¶
Bases: CustomValueError
Raised when an unsupported matrix is passed.
UnsupportedPrimariesError ¶
Bases: CustomValueError
Raised when a unsupported primaries value is passed.
UnsupportedTransferError ¶
Bases: CustomValueError
Raised when an unsupported transfer is passed.