noise ¶
Classes:
-
AddNoise
–Built-in noise.Add plugin. https://github.com/wwww-wwww/vs-noise
-
ChickenDream
– -
FilmGrain
–fgrain_cuda.Add plugin. https://github.com/AmusementClub/vs-fgrain-cuda
-
GrainPP
– -
Grainer
–Abstract graining interface
-
LinearLightGrainer
–Base grainer depending on linear RGB clip, input dependent.
-
PlaceboGrain
–placebo.Deband plugin. https://github.com/Lypheo/vs-placebo
Functions:
-
multi_graining
–Interface for applying multiple grainers to a clip.
Attributes:
FadeLimits module-attribute
¶
GrainPostProcessT module-attribute
¶
GrainPostProcessT = (
ResolverOneClipArgs | ResolverTwoClipsArgs | str | GrainPP | Resolver
)
GrainPostProcessesT module-attribute
¶
GrainPostProcessesT = GrainPostProcessT | list[GrainPostProcessT]
MultiGrainerT module-attribute
¶
MultiGrainerT = (
Grainer
| type[Grainer]
| tuple[Grainer | type[Grainer] | None, float]
| tuple[Grainer | type[Grainer] | None, float, float]
)
AddNoise ¶
AddNoise(
strength: float | tuple[float, float] = 0.25,
size: float | tuple[float, float] = (1.0, 1.0),
sharp: float | ScalerT = Lanczos,
dynamic: bool = True,
temporal_average: int | tuple[float, int] = (0.0, 1),
postprocess: GrainPostProcessesT | None = None,
protect_chroma: bool = True,
luma_scaling: float | None = None,
fade_limits: bool | FadeLimits = True,
*,
matrix: MatrixT | None = None,
kernel: KernelT = Catrom,
neutral_out: bool = False,
**kwargs: Any
)
Bases: AddNoiseBase
Built-in noise.Add plugin. https://github.com/wwww-wwww/vs-noise
Classes:
-
FBM_SIMPLEX
– -
GAUSS
– -
PERLIN
– -
POISSON
– -
SIMPLEX
–
Methods:
-
grain
–
Attributes:
-
dynamic
– -
fade_limits
– -
kernel
– -
kwargs
– -
luma_scaling
– -
matrix
– -
neutral_out
– -
postprocess
– -
protect_chroma
– -
scaler
(Scaler
) – -
size
– -
strength
–
Source code
82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 |
|
FBM_SIMPLEX ¶
FBM_SIMPLEX(
strength: float | tuple[float, float] = 0.25,
size: float | tuple[float, float] = (1.0, 1.0),
sharp: float | ScalerT = Lanczos,
dynamic: bool = True,
temporal_average: int | tuple[float, int] = (0.0, 1),
postprocess: GrainPostProcessesT | None = None,
protect_chroma: bool = True,
luma_scaling: float | None = None,
fade_limits: bool | FadeLimits = True,
*,
matrix: MatrixT | None = None,
kernel: KernelT = Catrom,
neutral_out: bool = False,
**kwargs: Any
)
Bases: AddNoiseBase
Methods:
-
grain
–
Attributes:
-
dynamic
– -
fade_limits
– -
kernel
– -
kwargs
– -
luma_scaling
– -
matrix
– -
neutral_out
– -
postprocess
– -
protect_chroma
– -
scaler
(Scaler
) – -
size
– -
strength
–
Source code
82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 |
|
grain ¶
grain(
clip: VideoNode,
strength: float | tuple[float, float] | None = None,
dynamic: bool | None = None,
**kwargs: Any
) -> VideoNode
Source code
133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 |
|
GAUSS ¶
GAUSS(
strength: float | tuple[float, float] = 0.25,
size: float | tuple[float, float] = (1.0, 1.0),
sharp: float | ScalerT = Lanczos,
dynamic: bool = True,
temporal_average: int | tuple[float, int] = (0.0, 1),
postprocess: GrainPostProcessesT | None = None,
protect_chroma: bool = True,
luma_scaling: float | None = None,
fade_limits: bool | FadeLimits = True,
*,
matrix: MatrixT | None = None,
kernel: KernelT = Catrom,
neutral_out: bool = False,
**kwargs: Any
)
Bases: AddNoiseBase
Methods:
-
grain
–
Attributes:
-
dynamic
– -
fade_limits
– -
kernel
– -
kwargs
– -
luma_scaling
– -
matrix
– -
neutral_out
– -
postprocess
– -
protect_chroma
– -
scaler
(Scaler
) – -
size
– -
strength
–
Source code
82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 |
|
grain ¶
grain(
clip: VideoNode,
strength: float | tuple[float, float] | None = None,
dynamic: bool | None = None,
**kwargs: Any
) -> VideoNode
Source code
133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 |
|
PERLIN ¶
PERLIN(
strength: float | tuple[float, float] = 0.25,
size: float | tuple[float, float] = (1.0, 1.0),
sharp: float | ScalerT = Lanczos,
dynamic: bool = True,
temporal_average: int | tuple[float, int] = (0.0, 1),
postprocess: GrainPostProcessesT | None = None,
protect_chroma: bool = True,
luma_scaling: float | None = None,
fade_limits: bool | FadeLimits = True,
*,
matrix: MatrixT | None = None,
kernel: KernelT = Catrom,
neutral_out: bool = False,
**kwargs: Any
)
Bases: AddNoiseBase
Methods:
-
grain
–
Attributes:
-
dynamic
– -
fade_limits
– -
kernel
– -
kwargs
– -
luma_scaling
– -
matrix
– -
neutral_out
– -
postprocess
– -
protect_chroma
– -
scaler
(Scaler
) – -
size
– -
strength
–
Source code
82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 |
|
grain ¶
grain(
clip: VideoNode,
strength: float | tuple[float, float] | None = None,
dynamic: bool | None = None,
**kwargs: Any
) -> VideoNode
Source code
133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 |
|
POISSON ¶
POISSON(
strength: float | tuple[float, float] = 0.25,
size: float | tuple[float, float] = (1.0, 1.0),
sharp: float | ScalerT = Lanczos,
dynamic: bool = True,
temporal_average: int | tuple[float, int] = (0.0, 1),
postprocess: GrainPostProcessesT | None = None,
protect_chroma: bool = True,
luma_scaling: float | None = None,
fade_limits: bool | FadeLimits = True,
*,
matrix: MatrixT | None = None,
kernel: KernelT = Catrom,
neutral_out: bool = False,
**kwargs: Any
)
Bases: AddNoiseBase
Methods:
-
grain
–
Attributes:
-
dynamic
– -
fade_limits
– -
kernel
– -
kwargs
– -
luma_scaling
– -
matrix
– -
neutral_out
– -
postprocess
– -
protect_chroma
– -
scaler
(Scaler
) – -
size
– -
strength
–
Source code
82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 |
|
grain ¶
grain(
clip: VideoNode,
strength: float | tuple[float, float] | None = None,
dynamic: bool | None = None,
**kwargs: Any
) -> VideoNode
Source code
133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 |
|
SIMPLEX ¶
SIMPLEX(
strength: float | tuple[float, float] = 0.25,
size: float | tuple[float, float] = (1.0, 1.0),
sharp: float | ScalerT = Lanczos,
dynamic: bool = True,
temporal_average: int | tuple[float, int] = (0.0, 1),
postprocess: GrainPostProcessesT | None = None,
protect_chroma: bool = True,
luma_scaling: float | None = None,
fade_limits: bool | FadeLimits = True,
*,
matrix: MatrixT | None = None,
kernel: KernelT = Catrom,
neutral_out: bool = False,
**kwargs: Any
)
Bases: AddNoiseBase
Methods:
-
grain
–
Attributes:
-
dynamic
– -
fade_limits
– -
kernel
– -
kwargs
– -
luma_scaling
– -
matrix
– -
neutral_out
– -
postprocess
– -
protect_chroma
– -
scaler
(Scaler
) – -
size
– -
strength
–
Source code
82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 |
|
grain ¶
grain(
clip: VideoNode,
strength: float | tuple[float, float] | None = None,
dynamic: bool | None = None,
**kwargs: Any
) -> VideoNode
Source code
133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 |
|
grain ¶
grain(
clip: VideoNode,
strength: float | tuple[float, float] | None = None,
dynamic: bool | None = None,
**kwargs: Any
) -> VideoNode
Source code
133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 |
|
AddNoiseBase ¶
AddNoiseBase(
strength: float | tuple[float, float] = 0.25,
size: float | tuple[float, float] = (1.0, 1.0),
sharp: float | ScalerT = Lanczos,
dynamic: bool = True,
temporal_average: int | tuple[float, int] = (0.0, 1),
postprocess: GrainPostProcessesT | None = None,
protect_chroma: bool = True,
luma_scaling: float | None = None,
fade_limits: bool | FadeLimits = True,
*,
matrix: MatrixT | None = None,
kernel: KernelT = Catrom,
neutral_out: bool = False,
**kwargs: Any
)
Bases: Grainer
Methods:
-
grain
–
Attributes:
-
dynamic
– -
fade_limits
– -
kernel
– -
kwargs
– -
luma_scaling
– -
matrix
– -
neutral_out
– -
postprocess
– -
protect_chroma
– -
scaler
(Scaler
) – -
size
– -
strength
–
Source code
82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 |
|
grain ¶
grain(
clip: VideoNode,
strength: float | tuple[float, float] | None = None,
dynamic: bool | None = None,
**kwargs: Any
) -> VideoNode
Source code
133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 |
|
ChickenDream ¶
ChickenDream(
strength: float | tuple[float, float] = 0.25,
size: float | tuple[float, float] = (1.0, 1.0),
sharp: float | ScalerT = Lanczos,
dynamic: bool = True,
temporal_average: int | tuple[float, int] = (0.0, 1),
postprocess: GrainPostProcessesT | None = None,
protect_chroma: bool = True,
luma_scaling: float | None = None,
fade_limits: bool | FadeLimits = True,
*,
res: int = 1024,
dev: float = 0.0,
gamma: float = 1.0,
matrix: MatrixT | None = None,
kernel: KernelT = Catrom,
neutral_out: bool = False,
**kwargs: Any
)
Bases: ChickenDreamBox
Classes:
Methods:
-
grain
–
Attributes:
-
draft
– -
dynamic
– -
fade_limits
– -
gamma
– -
kernel
– -
kwargs
– -
luma_scaling
– -
matrix
– -
neutral_out
– -
postprocess
– -
protect_chroma
– -
scaler
(Scaler
) – -
size
– -
strength
–
Source code
509 510 511 512 513 514 515 516 517 518 519 520 521 |
|
BOX ¶
BOX(
strength: float | tuple[float, float] = 0.25,
size: float | tuple[float, float] = (1.0, 1.0),
sharp: float | ScalerT = Lanczos,
dynamic: bool = True,
temporal_average: int | tuple[float, int] = (0.0, 1),
postprocess: GrainPostProcessesT | None = None,
protect_chroma: bool = True,
luma_scaling: float | None = None,
fade_limits: bool | FadeLimits = True,
*,
res: int = 1024,
dev: float = 0.0,
gamma: float = 1.0,
matrix: MatrixT | None = None,
kernel: KernelT = Catrom,
neutral_out: bool = False,
**kwargs: Any
)
Bases: ChickenDreamBox
Methods:
-
grain
–
Attributes:
-
draft
– -
dynamic
– -
fade_limits
– -
gamma
– -
kernel
– -
kwargs
– -
luma_scaling
– -
matrix
– -
neutral_out
– -
postprocess
– -
protect_chroma
– -
scaler
(Scaler
) – -
size
– -
strength
–
Source code
509 510 511 512 513 514 515 516 517 518 519 520 521 |
|
grain ¶
grain(
clip: VideoNode,
strength: float | tuple[float, float] | None = None,
dynamic: bool | None = None,
**kwargs: Any
) -> VideoNode
Source code
133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 |
|
GAUSS ¶
GAUSS(
strength: float | tuple[float, float] = 0.35,
size: float | tuple[float, float] = (1.0, 1.0),
sharp: float | ScalerT = Lanczos,
dynamic: bool = True,
temporal_average: int | tuple[float, int] = (0.0, 1),
postprocess: GrainPostProcessesT | None = None,
protect_chroma: bool = True,
luma_scaling: float | None = None,
fade_limits: bool | FadeLimits = True,
*,
rad: float = 0.25,
res: int = 1024,
dev: float = 0.0,
gamma: float = 1.0,
matrix: MatrixT | None = None,
kernel: KernelT = Catrom,
neutral_out: bool = False,
**kwargs: Any
)
Bases: ChickenDreamGauss
Methods:
-
grain
–
Attributes:
-
draft
– -
dynamic
– -
fade_limits
– -
gamma
– -
kernel
– -
kwargs
– -
luma_scaling
– -
matrix
– -
neutral_out
– -
postprocess
– -
protect_chroma
– -
scaler
(Scaler
) – -
size
– -
strength
–
Source code
528 529 530 531 532 533 534 535 536 537 538 539 540 541 |
|
grain ¶
grain(
clip: VideoNode,
strength: float | tuple[float, float] | None = None,
dynamic: bool | None = None,
**kwargs: Any
) -> VideoNode
Source code
133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 |
|
grain ¶
grain(
clip: VideoNode,
strength: float | tuple[float, float] | None = None,
dynamic: bool | None = None,
**kwargs: Any
) -> VideoNode
Source code
133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 |
|
ChickenDreamBase ¶
ChickenDreamBase(
strength: float | tuple[float, float],
draft: bool,
size: float | tuple[float, float] = (1.0, 1.0),
sharp: float | ScalerT = Lanczos,
dynamic: bool = True,
temporal_average: int | tuple[float, int] = (0.0, 1),
postprocess: GrainPostProcessesT | None = None,
protect_chroma: bool = True,
luma_scaling: float | None = None,
fade_limits: bool | FadeLimits = True,
*,
rad: float = 0.25,
res: int = 1024,
dev: float = 0.0,
gamma: float = 1.0,
matrix: MatrixT | None = None,
kernel: KernelT = Catrom,
neutral_out: bool = False,
**kwargs: Any
)
Bases: LinearLightGrainer
chkdr.grain plugin. https://github.com/EleonoreMizo/chickendream
Methods:
-
grain
–
Attributes:
-
draft
– -
dynamic
– -
fade_limits
– -
gamma
– -
kernel
– -
kwargs
– -
luma_scaling
– -
matrix
– -
neutral_out
– -
postprocess
– -
protect_chroma
– -
scaler
(Scaler
) – -
size
– -
strength
–
Source code
482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 |
|
grain ¶
grain(
clip: VideoNode,
strength: float | tuple[float, float] | None = None,
dynamic: bool | None = None,
**kwargs: Any
) -> VideoNode
Source code
133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 |
|
ChickenDreamBox ¶
ChickenDreamBox(
strength: float | tuple[float, float] = 0.25,
size: float | tuple[float, float] = (1.0, 1.0),
sharp: float | ScalerT = Lanczos,
dynamic: bool = True,
temporal_average: int | tuple[float, int] = (0.0, 1),
postprocess: GrainPostProcessesT | None = None,
protect_chroma: bool = True,
luma_scaling: float | None = None,
fade_limits: bool | FadeLimits = True,
*,
res: int = 1024,
dev: float = 0.0,
gamma: float = 1.0,
matrix: MatrixT | None = None,
kernel: KernelT = Catrom,
neutral_out: bool = False,
**kwargs: Any
)
Bases: ChickenDreamBase
Methods:
-
grain
–
Attributes:
-
draft
– -
dynamic
– -
fade_limits
– -
gamma
– -
kernel
– -
kwargs
– -
luma_scaling
– -
matrix
– -
neutral_out
– -
postprocess
– -
protect_chroma
– -
scaler
(Scaler
) – -
size
– -
strength
–
Source code
509 510 511 512 513 514 515 516 517 518 519 520 521 |
|
grain ¶
grain(
clip: VideoNode,
strength: float | tuple[float, float] | None = None,
dynamic: bool | None = None,
**kwargs: Any
) -> VideoNode
Source code
133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 |
|
ChickenDreamGauss ¶
ChickenDreamGauss(
strength: float | tuple[float, float] = 0.35,
size: float | tuple[float, float] = (1.0, 1.0),
sharp: float | ScalerT = Lanczos,
dynamic: bool = True,
temporal_average: int | tuple[float, int] = (0.0, 1),
postprocess: GrainPostProcessesT | None = None,
protect_chroma: bool = True,
luma_scaling: float | None = None,
fade_limits: bool | FadeLimits = True,
*,
rad: float = 0.25,
res: int = 1024,
dev: float = 0.0,
gamma: float = 1.0,
matrix: MatrixT | None = None,
kernel: KernelT = Catrom,
neutral_out: bool = False,
**kwargs: Any
)
Bases: ChickenDreamBase
Methods:
-
grain
–
Attributes:
-
draft
– -
dynamic
– -
fade_limits
– -
gamma
– -
kernel
– -
kwargs
– -
luma_scaling
– -
matrix
– -
neutral_out
– -
postprocess
– -
protect_chroma
– -
scaler
(Scaler
) – -
size
– -
strength
–
Source code
528 529 530 531 532 533 534 535 536 537 538 539 540 541 |
|
grain ¶
grain(
clip: VideoNode,
strength: float | tuple[float, float] | None = None,
dynamic: bool | None = None,
**kwargs: Any
) -> VideoNode
Source code
133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 |
|
FilmGrain ¶
FilmGrain(
strength: float | tuple[float, float] = 0.8,
size: float | tuple[float, float] = (1.0, 1.0),
sharp: float | ScalerT = Lanczos,
dynamic: bool = True,
temporal_average: int | tuple[float, int] = (0.0, 1),
postprocess: GrainPostProcessesT | None = None,
protect_chroma: bool = True,
luma_scaling: float | None = None,
fade_limits: bool | FadeLimits = True,
*,
rad: float = 0.1,
iterations: int = 800,
dev: float = 0.0,
gamma: float = 1.0,
matrix: MatrixT | None = None,
kernel: KernelT = Catrom,
neutral_out: bool = False,
**kwargs: Any
)
Bases: LinearLightGrainer
fgrain_cuda.Add plugin. https://github.com/AmusementClub/vs-fgrain-cuda
Methods:
-
grain
–
Attributes:
-
dynamic
– -
fade_limits
– -
gamma
– -
kernel
– -
kwargs
– -
luma_scaling
– -
matrix
– -
neutral_out
– -
postprocess
– -
protect_chroma
– -
scaler
(Scaler
) – -
size
– -
strength
–
Source code
547 548 549 550 551 552 553 554 555 556 557 558 559 560 |
|
grain ¶
grain(
clip: VideoNode,
strength: float | tuple[float, float] | None = None,
dynamic: bool | None = None,
**kwargs: Any
) -> VideoNode
Source code
133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 |
|
GrainPP dataclass
¶
GrainPP(value: str, kwargs: KwargsT = lambda: KwargsT()())
Methods:
-
Bump
– -
NormBrightness
–
Attributes:
kwargs class-attribute
instance-attribute
¶
kwargs: KwargsT = field(default_factory=lambda: KwargsT())
Bump classmethod
¶
Source code
52 53 54 |
|
NormBrightness classmethod
¶
NormBrightness() -> ResolverOneClipArgs
Source code
56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 |
|
Grainer ¶
Grainer(
strength: float | tuple[float, float] = 0.25,
size: float | tuple[float, float] = (1.0, 1.0),
sharp: float | ScalerT = Lanczos,
dynamic: bool = True,
temporal_average: int | tuple[float, int] = (0.0, 1),
postprocess: GrainPostProcessesT | None = None,
protect_chroma: bool = True,
luma_scaling: float | None = None,
fade_limits: bool | FadeLimits = True,
*,
matrix: MatrixT | None = None,
kernel: KernelT = Catrom,
neutral_out: bool = False,
**kwargs: Any
)
Bases: ABC
Abstract graining interface
Methods:
-
grain
–
Attributes:
-
dynamic
– -
fade_limits
– -
kernel
– -
kwargs
– -
luma_scaling
– -
matrix
– -
neutral_out
– -
postprocess
– -
protect_chroma
– -
scaler
(Scaler
) – -
size
– -
strength
–
Source code
82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 |
|
grain ¶
grain(
clip: VideoNode,
strength: float | tuple[float, float] | None = None,
dynamic: bool | None = None,
**kwargs: Any
) -> VideoNode
Source code
133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 |
|
LinearLightGrainer ¶
LinearLightGrainer(
strength: float | tuple[float, float],
size: float | tuple[float, float] = (1.0, 1.0),
sharp: float | ScalerT = Lanczos,
dynamic: bool = True,
temporal_average: int | tuple[float, int] = (0.0, 1),
postprocess: GrainPostProcessesT | None = None,
protect_chroma: bool = True,
luma_scaling: float | None = None,
fade_limits: bool | FadeLimits = True,
*,
gamma: float = 1.0,
matrix: MatrixT | None = None,
kernel: KernelT = Catrom,
neutral_out: bool = False,
**kwargs: Any
)
Bases: Grainer
Base grainer depending on linear RGB clip, input dependent.
Methods:
-
grain
–
Attributes:
-
dynamic
– -
fade_limits
– -
gamma
– -
kernel
– -
kwargs
– -
luma_scaling
– -
matrix
– -
neutral_out
– -
postprocess
– -
protect_chroma
– -
scaler
(Scaler
) – -
size
– -
strength
–
Source code
414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 |
|
grain ¶
grain(
clip: VideoNode,
strength: float | tuple[float, float] | None = None,
dynamic: bool | None = None,
**kwargs: Any
) -> VideoNode
Source code
133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 |
|
PlaceboGrain ¶
PlaceboGrain(
strength: float | tuple[float, float] = 0.25,
size: float | tuple[float, float] = (1.0, 1.0),
sharp: float | ScalerT = Lanczos,
dynamic: bool = True,
temporal_average: int | tuple[float, int] = (0.0, 1),
postprocess: GrainPostProcessesT | None = None,
protect_chroma: bool = True,
luma_scaling: float | None = None,
fade_limits: bool | FadeLimits = True,
*,
matrix: MatrixT | None = None,
kernel: KernelT = Catrom,
neutral_out: bool = False,
**kwargs: Any
)
Bases: Grainer
placebo.Deband plugin. https://github.com/Lypheo/vs-placebo
Methods:
-
grain
–
Attributes:
-
dynamic
– -
fade_limits
– -
kernel
– -
kwargs
– -
luma_scaling
– -
matrix
– -
neutral_out
– -
postprocess
– -
protect_chroma
– -
scaler
(Scaler
) – -
size
– -
strength
–
Source code
82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 |
|
grain ¶
grain(
clip: VideoNode,
strength: float | tuple[float, float] | None = None,
dynamic: bool | None = None,
**kwargs: Any
) -> VideoNode
Source code
133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 |
|
ResolverOneClipArgs ¶
ResolverTwoClipsArgs ¶
multi_graining ¶
multi_graining(
clip: VideoNode,
*grainers: MultiGrainerT,
prefilter: VideoNode | Prefilter | None = None
) -> VideoNode
Interface for applying multiple grainers to a clip.
Parameters:
-
clip
¶VideoNode
) –Input clip.
-
grainers
¶MultiGrainerT
, default:()
) –Grainers to apply. Can be a grainer, or a tuple of a grainer/None and threshold, overflow. The threshold is the upper threshold of where the grainer will be applied. The overflow is the range of the hard threshold. If a grainer is None, the original clip will be applied in that range. For example: MultiGrainer((None, 0.1), (AddNoise, 0.5)) Will apply no grain for values <= 0.1 & > 0.5, AddNoise for values <= 0.5.
-
prefilter
¶VideoNode | Prefilter | None
, default:None
) –Clip or prefilter for making theh clip used for the threshold masks.
Source code
577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 |
|