Protocol for writing output to disk.
| 168 | |
| 169 | |
| 170 | class OutputWriter(Protocol): |
| 171 | """Protocol for writing output to disk.""" |
| 172 | |
| 173 | def add_frame(self, image: torch.Tensor, depth: torch.Tensor) -> None: |
| 174 | """Add a single frame to output.""" |
| 175 | ... |
| 176 | |
| 177 | def close(self) -> None: |
| 178 | """Finish writing.""" |
| 179 | ... |
| 180 | |
| 181 | |
| 182 | class VideoWriter(OutputWriter): |
nothing calls this directly
no outgoing calls
no test coverage detected