@@ -18,9 +18,9 @@ namespace avtranscoder
18
18
/* *
19
19
* @brief Enum to set a policy of how we manage the transcode in case of several streams.
20
20
* eProcessMethodShortest: stop transcode at the end of the shortest stream.
21
- * eProcessMethodLongest: stop transcode at the end of the longest stream (default method) .
22
- * eProcessMethodBasedOnStream: stop transcode at the end of an indicated stream (@see _indexBasedStream of Transcoder).
23
- * eProcessMethodInfinity: stop transcode by outside of avTranscoder.
21
+ * eProcessMethodLongest: stop transcode at the end of the longest stream.
22
+ * eProcessMethodBasedOnStream: stop transcode at the end of an indicated stream (@see _indexBasedStream attribute of Transcoder).
23
+ * eProcessMethodInfinity: stop transcode by outside of avTranscoder (streaming mode)
24
24
*/
25
25
enum EProcessMethod
26
26
{
@@ -121,8 +121,8 @@ class AvExport Transcoder
121
121
StreamTranscoder& getStreamTranscoder ( size_t streamIndex ) const { return *_streamTranscoders.at ( streamIndex ); }
122
122
123
123
/* *
124
- * @brief Set the transcodage politic .
125
- * @note By default eProcessMethodLongest .
124
+ * @brief Set the transcoding policy .
125
+ * @note By default eProcessMethodBasedOnStream at index 0 .
126
126
* @param indexBasedStream: in case of process method eProcessMethodBasedOnStream, stop transcode at the end of the indicated stream.
127
127
*/
128
128
void setProcessMethod ( const EProcessMethod eProcessMethod, const size_t indexBasedStream = 0 );
@@ -146,26 +146,25 @@ class AvExport Transcoder
146
146
147
147
/* *
148
148
* @brief Get the duration of the stream.
149
+ * @note If the stream is a generator, return limit of double.
149
150
*/
150
151
double getStreamDuration ( size_t indexStream ) const ;
151
152
152
153
/* *
153
154
* @brief Get the duration of the shortest stream.
154
- * @note if there is only generated streams, return limit of double.
155
155
*/
156
156
double getMinTotalDuration () const ;
157
157
158
158
/* *
159
159
* @brief Get the duration of the longest stream.
160
- * @note if there is only generated streams, return limit of double.
161
160
*/
162
161
double getMaxTotalDuration () const ;
163
162
164
163
/* *
165
164
* @brief Get the duration of the output program
166
165
* @note Depends on the streams, the process method, and the main stream index.
167
166
*/
168
- double getTotalDurationFromProcessMethod () const ;
167
+ double getOutputDuration () const ;
169
168
170
169
/* *
171
170
* @brief Set for each StreamTranscoder if it is an infinity stream (switch to generator at the end of the stream).
0 commit comments