Skip to content

Commit 9717fe7

Browse files
committed
Remove OpenCV decode_and_resize function
1 parent b97e7bf commit 9717fe7

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

benchmarks/decoders/benchmark_decoders_library.py

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -202,15 +202,6 @@ def decode_first_n_frames(self, video_file, n):
202202
assert len(frames) == n
203203
return frames
204204

205-
def decode_and_resize(self, video_file, pts_list, height, width, device):
206-
207-
# OpenCV doesn't apply antialias, while other `decode_and_resize()` implementations apply antialias by default.
208-
frames = [
209-
self.cv2.resize(frame, (width, height))
210-
for frame in self.decode_frames(video_file, pts_list)
211-
]
212-
return frames
213-
214205
def convert_frame_to_rgb_tensor(self, frame):
215206
# OpenCV uses BGR, change to RGB
216207
frame = self.cv2.cvtColor(frame, self.cv2.COLOR_BGR2RGB)

0 commit comments

Comments
 (0)