(video_clip, shrink, crop)
| 74 | |
| 75 | @pytest.mark.parametrize("shrink, crop", [(1, False), (1, True), (2, False), (2, True)]) |
| 76 | def test_reader_read_frame(video_clip, shrink, crop): |
| 77 | if crop: |
| 78 | video_clip.set_bbox(0, 0.5, 0, 0.5, relative=True) |
| 79 | frame = video_clip.read_frame(shrink, crop) |
| 80 | height, width, _ = frame.shape |
| 81 | assert height == video_clip.height // shrink |
| 82 | assert width == video_clip.width // shrink |
| 83 | |
| 84 | |
| 85 | def test_writer_bbox(video_clip): |
nothing calls this directly
no test coverage detected