(cls, config: SimpleNamespace | None)
| 188 | """ |
| 189 | @classmethod |
| 190 | def is_valid_config(cls, config: SimpleNamespace | None) -> None: |
| 191 | cls._enforce_config_spec(config, { |
| 192 | "height": lambda v: isinstance(v, int) and v > 0, |
| 193 | "width": lambda v: isinstance(v, int) and v > 0, |
| 194 | "interp" : lambda v: v in {"nearest", "bilinear"}, |
| 195 | }) |
| 196 | |
| 197 | def forward(self, frame: StereoFrame) -> StereoFrame: |
| 198 | orig_height, orig_width = frame.stereo.height, frame.stereo.width |
nothing calls this directly
no test coverage detected