Skip to content

Commit 99faa7a

Browse files
author
Clement Champetier
committed
Transcoder: add doc
1 parent 639768d commit 99faa7a

File tree

1 file changed

+18
-1
lines changed

1 file changed

+18
-1
lines changed

src/AvTranscoder/Transcoder/Transcoder.hpp

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,13 +93,29 @@ class Transcoder
9393
* @note The stream will be deleted in Transcoder's destructor.
9494
*/
9595
void add( StreamTranscoder& stream );
96-
96+
97+
/**
98+
* @brief Process the next frame of all streams.
99+
* @return if a frame was processed or not.
100+
*/
97101
bool processFrame();
98102

103+
/**
104+
* @brief Process all the streams, and ended the process depending on the transcode politic.
105+
* @param progress
106+
*/
99107
void process( ProgressListener& progress );
100108

109+
/**
110+
* @brief Set the transcodage politic.
111+
* @note If you call it before adding the streams, the process will stop at the end of the shortest stream.
112+
*/
101113
void setProcessMethod( const EProcessMethod eProcessMethod );
102114

115+
/**
116+
* @brief Set verbose mode for the Transcoder and his streams.
117+
* @note If you call it before adding the streams, no verbose mode will be set for the new streams.
118+
*/
103119
void setVerbose( bool verbose = true );
104120

105121
void setOutputFps( double fps ) { _outputFps = fps; }
@@ -121,6 +137,7 @@ class Transcoder
121137
* @note if there is only dummy, return limit of double.
122138
*/
123139
double getMinTotalDuration() const;
140+
124141
/**
125142
* @brief Get the duration of the longest stream.
126143
* @note if there is only dummy, return limit of double.

0 commit comments

Comments
 (0)