(self, item)
| 118 | return height, width |
| 119 | |
| 120 | def __getitem__(self, item): |
| 121 | frame = self.data.__getitem__(item) |
| 122 | width, height = frame.size |
| 123 | if self.height is not None and self.width is not None: |
| 124 | if self.height != height or self.width != width: |
| 125 | frame = crop_and_resize(frame, self.height, self.width) |
| 126 | return frame |
| 127 | |
| 128 | def __del__(self): |
| 129 | pass |
no test coverage detected