(
self,
size,
interpolation_mode="bilinear",
)
| 345 | |
| 346 | class CenterCropVideo: |
| 347 | def __init__( |
| 348 | self, |
| 349 | size, |
| 350 | interpolation_mode="bilinear", |
| 351 | ): |
| 352 | if isinstance(size, tuple): |
| 353 | if len(size) != 2: |
| 354 | raise ValueError( |
| 355 | f"size should be tuple (height, width), instead got {size}" |
| 356 | ) |
| 357 | self.size = size |
| 358 | else: |
| 359 | self.size = (size, size) |
| 360 | |
| 361 | self.interpolation_mode = interpolation_mode |
| 362 | |
| 363 | def __call__(self, clip): |
| 364 | """ |
nothing calls this directly
no outgoing calls
no test coverage detected