File tree Expand file tree Collapse file tree 3 files changed +2
-7
lines changed
src/torchcodec/decoders/_core Expand file tree Collapse file tree 3 files changed +2
-7
lines changed Original file line number Diff line number Diff line change 8
8
.. autoclass :: {{ name }}
9
9
:members:
10
10
:undoc-members: __init__
11
+ :inherited-members:
Original file line number Diff line number Diff line change @@ -76,7 +76,6 @@ def play_audio(samples):
76
76
# all streams start exactly at 0! This is not a bug in TorchCodec, this is a
77
77
# property of the file that was defined when it was encoded.
78
78
#
79
- # %%
80
79
# Specifying a range
81
80
# ------------------
82
81
#
Original file line number Diff line number Diff line change 22
22
SPACES = " "
23
23
24
24
25
- # TODO-AUDIO: docs below are mostly for video streams, we should edit them and /
26
- # or make sure they're OK for audio streams as well. Not sure how to best handle
27
- # docs for such class hierarchy.
28
- # TODO very related, none of these common fields in this base class show up in
29
- # the docs right now.
30
25
@dataclass
31
26
class StreamMetadata :
32
27
duration_seconds_from_header : Optional [float ]
@@ -40,7 +35,7 @@ class StreamMetadata:
40
35
codec : Optional [str ]
41
36
"""Codec (str or None)."""
42
37
stream_index : int
43
- """Index of the stream within the video (int)."""
38
+ """Index of the stream that this metadata refers to (int)."""
44
39
45
40
def __repr__ (self ):
46
41
s = self .__class__ .__name__ + ":\n "
You can’t perform that action at this time.
0 commit comments