colors ¶
Colorspace ¶
Bases: CustomIntEnum
__call__ ¶
__call__(clip: VideoNode, **kwargs: Any) -> VideoNode
Source code
458 459 460 461 | |
from_clip ¶
from_clip(
clip: VideoNode,
fp32: bool | None = None,
func: FuncExceptT | None = None,
**kwargs: Any
) -> VideoNode
Source code
463 464 465 466 467 468 469 470 | |
to_rgb ¶
to_rgb(
clip: VideoNode,
fp32: bool | None = None,
func: FuncExceptT | None = None,
props: VideoNode | None = None,
**kwargs: Any
) -> VideoNode
Source code
472 473 474 475 476 477 478 479 480 481 482 483 | |
to_yuv ¶
to_yuv(
clip: VideoNode,
fp32: bool | None = None,
func: FuncExceptT | None = None,
props: VideoNode | None = None,
**kwargs: Any
) -> VideoNode
Source code
485 486 487 488 489 490 491 492 493 494 495 496 | |
ResampleGRAY ¶
Bases: ResampleYUV
clip2csp ¶
clip2csp(
clip: VideoNode,
fp32: bool | None = None,
func: FuncExceptT | None = None,
**kwargs: Any
) -> VideoNode
Convert any clip to the implemented colorspace.
Parameters:
-
(clip¶VideoNode) –Clip to be processed.
-
–f32¶Whether to process in original bitdepth (None) or in int16 (False) or float32 (True).
-
(func¶FuncExceptT | None, default:None) –Function returned for custom error handling. This should only be set by VS package developers.
Returns:
-
VideoNode–Converted clip.
Source code
33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 | |
csp2rgb ¶
csp2rgb(
clip: VideoNode,
fp32: bool | None = None,
func: FuncExceptT | None = None,
**kwargs: Any
) -> VideoNode
Source code
137 138 139 140 141 142 143 144 145 146 147 | |
csp2yuv ¶
csp2yuv(
clip: VideoNode,
fp32: bool | None = None,
func: FuncExceptT | None = None,
**kwargs: Any
) -> VideoNode
Source code
218 219 220 221 222 | |
rgb2csp ¶
rgb2csp(
clip: VideoNode,
fp32: bool | None = None,
func: FuncExceptT | None = None,
**kwargs: Any
) -> VideoNode
Source code
127 128 129 130 131 132 133 134 135 | |
yuv2csp ¶
yuv2csp(
clip: VideoNode,
fp32: bool | None = None,
func: FuncExceptT | None = None,
**kwargs: Any
) -> VideoNode
Source code
208 209 210 211 212 213 214 215 216 | |
ResampleOPP ¶
Bases: ResampleRGBMatrixUtil
matrix_csp2rgb class-attribute instance-attribute ¶
matrix_rgb2csp class-attribute instance-attribute ¶
matrix_rgb2csp = [
1 / 3,
1 / 3,
1 / 3,
0,
1 / sqrt(6),
-1 / sqrt(6),
-sqrt(2) / 3,
1 / 3 * sqrt(2),
1 / 3 * sqrt(2),
]
clip2csp ¶
clip2csp(
clip: VideoNode,
fp32: bool | None = None,
func: FuncExceptT | None = None,
**kwargs: Any
) -> VideoNode
Convert any clip to the implemented colorspace.
Parameters:
-
(clip¶VideoNode) –Clip to be processed.
-
–f32¶Whether to process in original bitdepth (None) or in int16 (False) or float32 (True).
-
(func¶FuncExceptT | None, default:None) –Function returned for custom error handling. This should only be set by VS package developers.
Returns:
-
VideoNode–Converted clip.
Source code
33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 | |
csp2rgb ¶
csp2rgb(
clip: VideoNode,
fp32: bool | None = None,
func: FuncExceptT | None = None,
**kwargs: Any
) -> VideoNode
Source code
166 167 168 169 170 171 172 173 174 175 176 | |
csp2yuv ¶
csp2yuv(
clip: VideoNode,
fp32: bool | None = None,
func: FuncExceptT | None = None,
**kwargs: Any
) -> VideoNode
Source code
113 114 115 116 117 118 119 120 121 122 123 | |
rgb2csp ¶
rgb2csp(
clip: VideoNode,
fp32: bool | None = None,
func: FuncExceptT | None = None,
**kwargs: Any
) -> VideoNode
Source code
154 155 156 157 158 159 160 161 162 163 164 | |
yuv2csp ¶
yuv2csp(
clip: VideoNode,
fp32: bool | None = None,
func: FuncExceptT | None = None,
**kwargs: Any
) -> VideoNode
Source code
103 104 105 106 107 108 109 110 111 | |
ResampleOPPBM3D ¶
Bases: ResampleRGBMatrixUtil
matrix_csp2rgb class-attribute instance-attribute ¶
matrix_csp2rgb = [1, 1, 2 / 3, 1, 0, -4 / 3, 1, -1, 2 / 3]
matrix_rgb2csp class-attribute instance-attribute ¶
matrix_rgb2csp = [1 / 3, 1 / 3, 1 / 3, 1 / 2, 0, -1 / 2, 1 / 4, -1 / 2, 1 / 4]
clip2csp ¶
clip2csp(
clip: VideoNode,
fp32: bool | None = None,
func: FuncExceptT | None = None,
**kwargs: Any
) -> VideoNode
Convert any clip to the implemented colorspace.
Parameters:
-
(clip¶VideoNode) –Clip to be processed.
-
–f32¶Whether to process in original bitdepth (None) or in int16 (False) or float32 (True).
-
(func¶FuncExceptT | None, default:None) –Function returned for custom error handling. This should only be set by VS package developers.
Returns:
-
VideoNode–Converted clip.
Source code
33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 | |
csp2rgb ¶
csp2rgb(
clip: VideoNode,
fp32: bool | None = None,
func: FuncExceptT | None = None,
**kwargs: Any
) -> VideoNode
Source code
166 167 168 169 170 171 172 173 174 175 176 | |
csp2yuv ¶
csp2yuv(
clip: VideoNode,
fp32: bool | None = None,
func: FuncExceptT | None = None,
**kwargs: Any
) -> VideoNode
Source code
113 114 115 116 117 118 119 120 121 122 123 | |
rgb2csp ¶
rgb2csp(
clip: VideoNode,
fp32: bool | None = None,
func: FuncExceptT | None = None,
**kwargs: Any
) -> VideoNode
Source code
154 155 156 157 158 159 160 161 162 163 164 | |
yuv2csp ¶
yuv2csp(
clip: VideoNode,
fp32: bool | None = None,
func: FuncExceptT | None = None,
**kwargs: Any
) -> VideoNode
Source code
103 104 105 106 107 108 109 110 111 | |
ResampleOPPBM3DS ¶
Bases: ResampleRGBMatrixUtil
matrix_csp2rgb class-attribute instance-attribute ¶
matrix_csp2rgb = [1, 0, -4 / 3, 1, 1, 2 / 3, 1, -1, 2 / 3]
matrix_rgb2csp class-attribute instance-attribute ¶
matrix_rgb2csp = [1 / 3, 1 / 3, 1 / 3, 0, 1 / 2, -1 / 2, -1 / 2, 1 / 4, 1 / 4]
clip2csp ¶
clip2csp(
clip: VideoNode,
fp32: bool | None = None,
func: FuncExceptT | None = None,
**kwargs: Any
) -> VideoNode
Convert any clip to the implemented colorspace.
Parameters:
-
(clip¶VideoNode) –Clip to be processed.
-
–f32¶Whether to process in original bitdepth (None) or in int16 (False) or float32 (True).
-
(func¶FuncExceptT | None, default:None) –Function returned for custom error handling. This should only be set by VS package developers.
Returns:
-
VideoNode–Converted clip.
Source code
33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 | |
csp2rgb ¶
csp2rgb(
clip: VideoNode,
fp32: bool | None = None,
func: FuncExceptT | None = None,
**kwargs: Any
) -> VideoNode
Source code
166 167 168 169 170 171 172 173 174 175 176 | |
csp2yuv ¶
csp2yuv(
clip: VideoNode,
fp32: bool | None = None,
func: FuncExceptT | None = None,
**kwargs: Any
) -> VideoNode
Source code
113 114 115 116 117 118 119 120 121 122 123 | |
rgb2csp ¶
rgb2csp(
clip: VideoNode,
fp32: bool | None = None,
func: FuncExceptT | None = None,
**kwargs: Any
) -> VideoNode
Source code
154 155 156 157 158 159 160 161 162 163 164 | |
yuv2csp ¶
yuv2csp(
clip: VideoNode,
fp32: bool | None = None,
func: FuncExceptT | None = None,
**kwargs: Any
) -> VideoNode
Source code
103 104 105 106 107 108 109 110 111 | |
ResampleOPPLCC ¶
Bases: ResampleRGBMatrixUtil
matrix_csp2rgb class-attribute instance-attribute ¶
matrix_rgb2csp class-attribute instance-attribute ¶
matrix_rgb2csp = [
1 / 3,
1 / 3,
1 / 3,
1 / sqrt(6),
0,
-1 / sqrt(6),
1 / 3 * sqrt(2),
sqrt(2) / -3,
1 / 3 * sqrt(2),
]
clip2csp ¶
clip2csp(
clip: VideoNode,
fp32: bool | None = None,
func: FuncExceptT | None = None,
**kwargs: Any
) -> VideoNode
Convert any clip to the implemented colorspace.
Parameters:
-
(clip¶VideoNode) –Clip to be processed.
-
–f32¶Whether to process in original bitdepth (None) or in int16 (False) or float32 (True).
-
(func¶FuncExceptT | None, default:None) –Function returned for custom error handling. This should only be set by VS package developers.
Returns:
-
VideoNode–Converted clip.
Source code
33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 | |
csp2rgb ¶
csp2rgb(
clip: VideoNode,
fp32: bool | None = None,
func: FuncExceptT | None = None,
**kwargs: Any
) -> VideoNode
Source code
166 167 168 169 170 171 172 173 174 175 176 | |
csp2yuv ¶
csp2yuv(
clip: VideoNode,
fp32: bool | None = None,
func: FuncExceptT | None = None,
**kwargs: Any
) -> VideoNode
Source code
113 114 115 116 117 118 119 120 121 122 123 | |
rgb2csp ¶
rgb2csp(
clip: VideoNode,
fp32: bool | None = None,
func: FuncExceptT | None = None,
**kwargs: Any
) -> VideoNode
Source code
154 155 156 157 158 159 160 161 162 163 164 | |
yuv2csp ¶
yuv2csp(
clip: VideoNode,
fp32: bool | None = None,
func: FuncExceptT | None = None,
**kwargs: Any
) -> VideoNode
Source code
103 104 105 106 107 108 109 110 111 | |
ResampleRGB ¶
Bases: ResampleRGBUtil
clip2csp ¶
clip2csp(
clip: VideoNode,
fp32: bool | None = None,
func: FuncExceptT | None = None,
**kwargs: Any
) -> VideoNode
Convert any clip to the implemented colorspace.
Parameters:
-
(clip¶VideoNode) –Clip to be processed.
-
–f32¶Whether to process in original bitdepth (None) or in int16 (False) or float32 (True).
-
(func¶FuncExceptT | None, default:None) –Function returned for custom error handling. This should only be set by VS package developers.
Returns:
-
VideoNode–Converted clip.
Source code
33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 | |
csp2rgb ¶
csp2rgb(
clip: VideoNode,
fp32: bool | None = None,
func: FuncExceptT | None = None,
**kwargs: Any
) -> VideoNode
Source code
186 187 188 189 190 | |
csp2yuv ¶
csp2yuv(
clip: VideoNode,
fp32: bool | None = None,
func: FuncExceptT | None = None,
**kwargs: Any
) -> VideoNode
Source code
113 114 115 116 117 118 119 120 121 122 123 | |
rgb2csp ¶
rgb2csp(
clip: VideoNode,
fp32: bool | None = None,
func: FuncExceptT | None = None,
**kwargs: Any
) -> VideoNode
Source code
180 181 182 183 184 | |
yuv2csp ¶
yuv2csp(
clip: VideoNode,
fp32: bool | None = None,
func: FuncExceptT | None = None,
**kwargs: Any
) -> VideoNode
Source code
103 104 105 106 107 108 109 110 111 | |
ResampleRGBMatrixUtil ¶
Bases: ResampleRGBUtil
clip2csp ¶
clip2csp(
clip: VideoNode,
fp32: bool | None = None,
func: FuncExceptT | None = None,
**kwargs: Any
) -> VideoNode
Convert any clip to the implemented colorspace.
Parameters:
-
(clip¶VideoNode) –Clip to be processed.
-
–f32¶Whether to process in original bitdepth (None) or in int16 (False) or float32 (True).
-
(func¶FuncExceptT | None, default:None) –Function returned for custom error handling. This should only be set by VS package developers.
Returns:
-
VideoNode–Converted clip.
Source code
33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 | |
csp2rgb ¶
csp2rgb(
clip: VideoNode,
fp32: bool | None = None,
func: FuncExceptT | None = None,
**kwargs: Any
) -> VideoNode
Source code
166 167 168 169 170 171 172 173 174 175 176 | |
csp2yuv ¶
csp2yuv(
clip: VideoNode,
fp32: bool | None = None,
func: FuncExceptT | None = None,
**kwargs: Any
) -> VideoNode
Source code
113 114 115 116 117 118 119 120 121 122 123 | |
rgb2csp ¶
rgb2csp(
clip: VideoNode,
fp32: bool | None = None,
func: FuncExceptT | None = None,
**kwargs: Any
) -> VideoNode
Source code
154 155 156 157 158 159 160 161 162 163 164 | |
yuv2csp ¶
yuv2csp(
clip: VideoNode,
fp32: bool | None = None,
func: FuncExceptT | None = None,
**kwargs: Any
) -> VideoNode
Source code
103 104 105 106 107 108 109 110 111 | |
ResampleRGBUtil ¶
Bases: ResampleUtil
clip2csp ¶
clip2csp(
clip: VideoNode,
fp32: bool | None = None,
func: FuncExceptT | None = None,
**kwargs: Any
) -> VideoNode
Convert any clip to the implemented colorspace.
Parameters:
-
(clip¶VideoNode) –Clip to be processed.
-
–f32¶Whether to process in original bitdepth (None) or in int16 (False) or float32 (True).
-
(func¶FuncExceptT | None, default:None) –Function returned for custom error handling. This should only be set by VS package developers.
Returns:
-
VideoNode–Converted clip.
Source code
33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 | |
csp2rgb abstractmethod ¶
csp2rgb(
clip: VideoNode,
fp32: bool | None = None,
func: FuncExceptT | None = None,
**kwargs: Any
) -> VideoNode
Source code
87 88 89 90 91 92 | |
csp2yuv ¶
csp2yuv(
clip: VideoNode,
fp32: bool | None = None,
func: FuncExceptT | None = None,
**kwargs: Any
) -> VideoNode
Source code
113 114 115 116 117 118 119 120 121 122 123 | |
rgb2csp abstractmethod ¶
rgb2csp(
clip: VideoNode,
fp32: bool | None = None,
func: FuncExceptT | None = None,
**kwargs: Any
) -> VideoNode
Convert an RGB clip to the implemented colorspace.
Parameters:
-
(clip¶VideoNode) –RGB clip to be processed.
-
(func¶FuncExceptT | None, default:None) –Function returned for custom error handling. This should only be set by VS package developers.
Returns:
-
VideoNode–Converted clip.
Source code
57 58 59 60 61 62 63 64 65 66 67 68 69 70 | |
yuv2csp ¶
yuv2csp(
clip: VideoNode,
fp32: bool | None = None,
func: FuncExceptT | None = None,
**kwargs: Any
) -> VideoNode
Source code
103 104 105 106 107 108 109 110 111 | |
ResampleUtil ¶
clip2csp ¶
clip2csp(
clip: VideoNode,
fp32: bool | None = None,
func: FuncExceptT | None = None,
**kwargs: Any
) -> VideoNode
Convert any clip to the implemented colorspace.
Parameters:
-
(clip¶VideoNode) –Clip to be processed.
-
–f32¶Whether to process in original bitdepth (None) or in int16 (False) or float32 (True).
-
(func¶FuncExceptT | None, default:None) –Function returned for custom error handling. This should only be set by VS package developers.
Returns:
-
VideoNode–Converted clip.
Source code
33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 | |
csp2rgb abstractmethod ¶
csp2rgb(
clip: VideoNode,
fp32: bool | None = None,
func: FuncExceptT | None = None,
**kwargs: Any
) -> VideoNode
Source code
87 88 89 90 91 92 | |
csp2yuv abstractmethod ¶
csp2yuv(
clip: VideoNode,
fp32: bool | None = None,
func: FuncExceptT | None = None,
**kwargs: Any
) -> VideoNode
Source code
94 95 96 97 98 99 | |
rgb2csp abstractmethod ¶
rgb2csp(
clip: VideoNode,
fp32: bool | None = None,
func: FuncExceptT | None = None,
**kwargs: Any
) -> VideoNode
Convert an RGB clip to the implemented colorspace.
Parameters:
-
(clip¶VideoNode) –RGB clip to be processed.
-
(func¶FuncExceptT | None, default:None) –Function returned for custom error handling. This should only be set by VS package developers.
Returns:
-
VideoNode–Converted clip.
Source code
57 58 59 60 61 62 63 64 65 66 67 68 69 70 | |
yuv2csp abstractmethod ¶
yuv2csp(
clip: VideoNode,
fp32: bool | None = None,
func: FuncExceptT | None = None,
**kwargs: Any
) -> VideoNode
Convert a YUV clip to the implemented colorspace.
Parameters:
-
(clip¶VideoNode) –YUV clip to be processed.
-
(func¶FuncExceptT | None, default:None) –Function returned for custom error handling. This should only be set by VS package developers.
Returns:
-
VideoNode–Converted clip.
Source code
72 73 74 75 76 77 78 79 80 81 82 83 84 85 | |
ResampleYCgCo ¶
Bases: ResampleRGBMatrixUtil
matrix_rgb2csp class-attribute instance-attribute ¶
matrix_rgb2csp = [1 / 4, 1 / 2, 1 / 4, 1 / 2, 0, -1 / 2, -1 / 4, 1 / 2, -1 / 4]
clip2csp ¶
clip2csp(
clip: VideoNode,
fp32: bool | None = None,
func: FuncExceptT | None = None,
**kwargs: Any
) -> VideoNode
Convert any clip to the implemented colorspace.
Parameters:
-
(clip¶VideoNode) –Clip to be processed.
-
–f32¶Whether to process in original bitdepth (None) or in int16 (False) or float32 (True).
-
(func¶FuncExceptT | None, default:None) –Function returned for custom error handling. This should only be set by VS package developers.
Returns:
-
VideoNode–Converted clip.
Source code
33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 | |
csp2rgb ¶
csp2rgb(
clip: VideoNode,
fp32: bool | None = None,
func: FuncExceptT | None = None,
**kwargs: Any
) -> VideoNode
Source code
166 167 168 169 170 171 172 173 174 175 176 | |
csp2yuv ¶
csp2yuv(
clip: VideoNode,
fp32: bool | None = None,
func: FuncExceptT | None = None,
**kwargs: Any
) -> VideoNode
Source code
113 114 115 116 117 118 119 120 121 122 123 | |
rgb2csp ¶
rgb2csp(
clip: VideoNode,
fp32: bool | None = None,
func: FuncExceptT | None = None,
**kwargs: Any
) -> VideoNode
Source code
154 155 156 157 158 159 160 161 162 163 164 | |
yuv2csp ¶
yuv2csp(
clip: VideoNode,
fp32: bool | None = None,
func: FuncExceptT | None = None,
**kwargs: Any
) -> VideoNode
Source code
103 104 105 106 107 108 109 110 111 | |
ResampleYCgCoR ¶
Bases: ResampleRGBMatrixUtil
matrix_csp2rgb class-attribute instance-attribute ¶
matrix_csp2rgb = [1, 1 / 2, -1 / 2, 1, 0, 1 / 2, 1, -1 / 2, -1 / 2]
matrix_rgb2csp class-attribute instance-attribute ¶
matrix_rgb2csp = [1 / 4, 1 / 2, 1 / 4, 1, 0, -1, -1 / 2, 1, -1 / 2]
clip2csp ¶
clip2csp(
clip: VideoNode,
fp32: bool | None = None,
func: FuncExceptT | None = None,
**kwargs: Any
) -> VideoNode
Convert any clip to the implemented colorspace.
Parameters:
-
(clip¶VideoNode) –Clip to be processed.
-
–f32¶Whether to process in original bitdepth (None) or in int16 (False) or float32 (True).
-
(func¶FuncExceptT | None, default:None) –Function returned for custom error handling. This should only be set by VS package developers.
Returns:
-
VideoNode–Converted clip.
Source code
33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 | |
csp2rgb ¶
csp2rgb(
clip: VideoNode,
fp32: bool | None = None,
func: FuncExceptT | None = None,
**kwargs: Any
) -> VideoNode
Source code
166 167 168 169 170 171 172 173 174 175 176 | |
csp2yuv ¶
csp2yuv(
clip: VideoNode,
fp32: bool | None = None,
func: FuncExceptT | None = None,
**kwargs: Any
) -> VideoNode
Source code
113 114 115 116 117 118 119 120 121 122 123 | |
rgb2csp ¶
rgb2csp(
clip: VideoNode,
fp32: bool | None = None,
func: FuncExceptT | None = None,
**kwargs: Any
) -> VideoNode
Source code
154 155 156 157 158 159 160 161 162 163 164 | |
yuv2csp ¶
yuv2csp(
clip: VideoNode,
fp32: bool | None = None,
func: FuncExceptT | None = None,
**kwargs: Any
) -> VideoNode
Source code
103 104 105 106 107 108 109 110 111 | |
ResampleYUV ¶
Bases: ResampleYUVUtil
clip2csp ¶
clip2csp(
clip: VideoNode,
fp32: bool | None = None,
func: FuncExceptT | None = None,
**kwargs: Any
) -> VideoNode
Convert any clip to the implemented colorspace.
Parameters:
-
(clip¶VideoNode) –Clip to be processed.
-
–f32¶Whether to process in original bitdepth (None) or in int16 (False) or float32 (True).
-
(func¶FuncExceptT | None, default:None) –Function returned for custom error handling. This should only be set by VS package developers.
Returns:
-
VideoNode–Converted clip.
Source code
33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 | |
csp2rgb ¶
csp2rgb(
clip: VideoNode,
fp32: bool | None = None,
func: FuncExceptT | None = None,
**kwargs: Any
) -> VideoNode
Source code
137 138 139 140 141 142 143 144 145 146 147 | |
csp2yuv ¶
csp2yuv(
clip: VideoNode,
fp32: bool | None = None,
func: FuncExceptT | None = None,
**kwargs: Any
) -> VideoNode
Source code
200 201 202 203 204 | |
rgb2csp ¶
rgb2csp(
clip: VideoNode,
fp32: bool | None = None,
func: FuncExceptT | None = None,
**kwargs: Any
) -> VideoNode
Source code
127 128 129 130 131 132 133 134 135 | |
yuv2csp ¶
yuv2csp(
clip: VideoNode,
fp32: bool | None = None,
func: FuncExceptT | None = None,
**kwargs: Any
) -> VideoNode
Source code
194 195 196 197 198 | |
ResampleYUVUtil ¶
Bases: ResampleUtil
clip2csp ¶
clip2csp(
clip: VideoNode,
fp32: bool | None = None,
func: FuncExceptT | None = None,
**kwargs: Any
) -> VideoNode
Convert any clip to the implemented colorspace.
Parameters:
-
(clip¶VideoNode) –Clip to be processed.
-
–f32¶Whether to process in original bitdepth (None) or in int16 (False) or float32 (True).
-
(func¶FuncExceptT | None, default:None) –Function returned for custom error handling. This should only be set by VS package developers.
Returns:
-
VideoNode–Converted clip.
Source code
33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 | |
csp2rgb ¶
csp2rgb(
clip: VideoNode,
fp32: bool | None = None,
func: FuncExceptT | None = None,
**kwargs: Any
) -> VideoNode
Source code
137 138 139 140 141 142 143 144 145 146 147 | |
csp2yuv abstractmethod ¶
csp2yuv(
clip: VideoNode,
fp32: bool | None = None,
func: FuncExceptT | None = None,
**kwargs: Any
) -> VideoNode
Source code
94 95 96 97 98 99 | |
rgb2csp ¶
rgb2csp(
clip: VideoNode,
fp32: bool | None = None,
func: FuncExceptT | None = None,
**kwargs: Any
) -> VideoNode
Source code
127 128 129 130 131 132 133 134 135 | |
yuv2csp abstractmethod ¶
yuv2csp(
clip: VideoNode,
fp32: bool | None = None,
func: FuncExceptT | None = None,
**kwargs: Any
) -> VideoNode
Convert a YUV clip to the implemented colorspace.
Parameters:
-
(clip¶VideoNode) –YUV clip to be processed.
-
(func¶FuncExceptT | None, default:None) –Function returned for custom error handling. This should only be set by VS package developers.
Returns:
-
VideoNode–Converted clip.
Source code
72 73 74 75 76 77 78 79 80 81 82 83 84 85 | |