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: FuncExceptT, 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
35 36 37 38 39 40 41 42 43 44 45 46 47 48 |
|
check staticmethod
¶
Check if there's a valid colorspace path for the given clip.
Parameters:
-
func
¶FuncExceptT
) –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
50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 |
|
InvalidMatrixError ¶
InvalidMatrixError(
func: FuncExceptT,
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
89 90 91 92 93 |
|
InvalidPrimariesError ¶
InvalidPrimariesError(
func: FuncExceptT,
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
139 140 141 142 143 |
|
InvalidTransferError ¶
InvalidTransferError(
func: FuncExceptT,
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
114 115 116 117 118 |
|
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.