File tree Expand file tree Collapse file tree 4 files changed +7
-5
lines changed Expand file tree Collapse file tree 4 files changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -58,6 +58,7 @@ class AvExport FormatContext
58
58
AVStream& addAVStream ( const AVCodec& avCodec );
59
59
60
60
size_t getNbStreams () const { return _avFormatContext->nb_streams ; }
61
+ // / Get duration of the program, in seconds
61
62
size_t getDuration () const { return _avFormatContext->duration ; }
62
63
size_t getStartTime () const { return _avFormatContext->start_time ; }
63
64
Original file line number Diff line number Diff line change @@ -22,6 +22,7 @@ class AvExport InputStream : public IInputStream
22
22
bool readNextPacket ( CodedData& data );
23
23
24
24
size_t getStreamIndex () const { return _streamIndex; }
25
+ // / Get duration of the stream, in seconds
25
26
double getDuration () const ;
26
27
AVMediaType getStreamType () const ;
27
28
Original file line number Diff line number Diff line change @@ -60,7 +60,7 @@ class AvExport StreamTranscoder
60
60
// @}
61
61
62
62
/* *
63
- * @brief Get the duration of the stream.
63
+ * @brief Get the duration of the stream, in seconds
64
64
* @note if it's a generated stream, return limit of double.
65
65
*/
66
66
double getDuration () const ;
@@ -98,7 +98,7 @@ class AvExport StreamTranscoder
98
98
99
99
int _subStreamIndex; // /< Index of channel that is processed from the input stream (-1 if no demultiplexing).
100
100
101
- size_t _frameProcessed; // /< How many frame processed for this StreamTranscoder.
101
+ size_t _frameProcessed; // /< How many frames have been processed by the StreamTranscoder.
102
102
size_t _offset; // /< Offset, in frame, at the beginning of the StreamTranscoder.
103
103
104
104
bool _takeFromGenerator; // /< Is the data processed are taken from a generator.
Original file line number Diff line number Diff line change @@ -145,18 +145,18 @@ class AvExport Transcoder
145
145
InputFile* addInputFile ( const std::string& filename, const size_t streamIndex );
146
146
147
147
/* *
148
- * @brief Get the duration of the stream.
148
+ * @brief Get the duration of the stream, in seconds
149
149
* @note If the stream is a generator, return limit of double.
150
150
*/
151
151
double getStreamDuration ( size_t indexStream ) const ;
152
152
153
153
/* *
154
- * @brief Get the duration of the shortest stream.
154
+ * @brief Get the duration of the shortest stream, in seconds
155
155
*/
156
156
double getMinTotalDuration () const ;
157
157
158
158
/* *
159
- * @brief Get the duration of the longest stream.
159
+ * @brief Get the duration of the longest stream, in seconds
160
160
*/
161
161
double getMaxTotalDuration () const ;
162
162
You can’t perform that action at this time.
0 commit comments