Skip to content

Commit f5adc0f

Browse files
committed
WIP
1 parent 9d7b240 commit f5adc0f

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

src/torchcodec/decoders/_video_decoder.py

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,10 @@ def get_frame_at(self, index: int) -> Frame:
181181
duration_seconds=duration_seconds.item(),
182182
)
183183

184-
def get_frames_at(self, start: int, stop: int, step: int = 1) -> FrameBatch:
184+
def get_frames_at(self, indices: list[int]) -> FrameBatch:
185+
pass
186+
187+
def get_frames_in_range(self, start: int, stop: int, step: int = 1) -> FrameBatch:
185188
"""Return multiple frames at the given index range.
186189
187190
Frames are in [start, stop).
@@ -238,7 +241,10 @@ def get_frame_displayed_at(self, seconds: float) -> Frame:
238241
duration_seconds=duration_seconds.item(),
239242
)
240243

241-
def get_frames_displayed_at(
244+
def get_frames_displayed_at(self, seconds: list[float]) -> FrameBatch:
245+
pass
246+
247+
def get_frames_displayed_in_range(
242248
self, start_seconds: float, stop_seconds: float
243249
) -> FrameBatch:
244250
"""Returns multiple frames in the given range.

0 commit comments

Comments
 (0)