@@ -240,14 +240,14 @@ def get_frames_in_range(self, start: int, stop: int, step: int = 1) -> FrameBatc
240240 )
241241 return FrameBatch (* frames )
242242
243- def get_frame_displayed_at (self , seconds : float ) -> Frame :
244- """Return a single frame displayed at the given timestamp in seconds.
243+ def get_frame_played_at (self , seconds : float ) -> Frame :
244+ """Return a single frame played at the given timestamp in seconds.
245245
246246 Args:
247- seconds (float): The time stamp in seconds when the frame is displayed .
247+ seconds (float): The time stamp in seconds when the frame is played .
248248
249249 Returns:
250- Frame: The frame that is displayed at ``seconds``.
250+ Frame: The frame that is played at ``seconds``.
251251 """
252252 if not self ._begin_stream_seconds <= seconds < self ._end_stream_seconds :
253253 raise IndexError (
@@ -264,21 +264,21 @@ def get_frame_displayed_at(self, seconds: float) -> Frame:
264264 duration_seconds = duration_seconds .item (),
265265 )
266266
267- def get_frames_displayed_at (self , seconds : list [float ]) -> FrameBatch :
268- """Return frames displayed at the given timestamps in seconds.
267+ def get_frames_played_at (self , seconds : list [float ]) -> FrameBatch :
268+ """Return frames played at the given timestamps in seconds.
269269
270270 .. note::
271271
272272 Calling this method is more efficient that repeated individual calls
273- to :meth:`~torchcodec.decoders.VideoDecoder.get_frame_displayed_at `.
273+ to :meth:`~torchcodec.decoders.VideoDecoder.get_frame_played_at `.
274274 This method makes sure not to decode the same frame twice, and also
275275 avoids "backwards seek" operations, which are slow.
276276
277277 Args:
278- seconds (list of float): The timestamps in seconds when the frames are displayed .
278+ seconds (list of float): The timestamps in seconds when the frames are played .
279279
280280 Returns:
281- FrameBatch: The frames that are displayed at ``seconds``.
281+ FrameBatch: The frames that are played at ``seconds``.
282282 """
283283 data , pts_seconds , duration_seconds = core .get_frames_by_pts (
284284 self ._decoder , timestamps = seconds , stream_index = self .stream_index
@@ -289,7 +289,7 @@ def get_frames_displayed_at(self, seconds: list[float]) -> FrameBatch:
289289 duration_seconds = duration_seconds ,
290290 )
291291
292- def get_frames_displayed_in_range (
292+ def get_frames_played_in_range (
293293 self , start_seconds : float , stop_seconds : float
294294 ) -> FrameBatch :
295295 """Returns multiple frames in the given range.
0 commit comments