File tree Expand file tree Collapse file tree 2 files changed +17
-6
lines changed
src/AvTranscoder/transcoder Expand file tree Collapse file tree 2 files changed +17
-6
lines changed Original file line number Diff line number Diff line change @@ -57,18 +57,23 @@ class AvExport StreamTranscoder
57
57
void switchToGeneratorEssence ();
58
58
void switchToInputEssence ();
59
59
60
- void setVerbose ( bool verbose = true ){ _verbose = verbose; }
61
-
62
- void setInfinityStream ( bool isInfinity ) { _infinityStream = isInfinity; }
63
-
64
- void setOffset ( bool offset = true ){ _offset = offset; }
65
-
66
60
/* *
67
61
* @brief Get the duration of the stream.
68
62
* @note if it's a generated stream, return limit of double.
69
63
*/
70
64
double getDuration () const ;
71
65
66
+ /* *
67
+ * @return a reference to the current essence processed in this stream.
68
+ */
69
+ IInputEssence& getCurrentEssence () const { return *_currentEssence; }
70
+
71
+ void setVerbose ( bool verbose = true ){ _verbose = verbose; }
72
+
73
+ void setInfinityStream ( bool isInfinity ) { _infinityStream = isInfinity; }
74
+
75
+ void setOffset ( bool offset = true ){ _offset = offset; }
76
+
72
77
private:
73
78
bool processRewrap ();
74
79
bool processRewrap ( const int subStreamIndex );
Original file line number Diff line number Diff line change @@ -113,6 +113,12 @@ class AvExport Transcoder
113
113
*/
114
114
void process ( IProgress& progress );
115
115
116
+ /* *
117
+ * @param streamIndex: careful about the order of stream insertion of the Transcoder.
118
+ * @return a reference to a stream manage by the Transcoder.
119
+ */
120
+ StreamTranscoder& getStream ( size_t streamIndex ) const { return *_streamTranscoders.at ( streamIndex ); }
121
+
116
122
/* *
117
123
* @brief Set the transcodage politic.
118
124
* @note Call it after adding the streams.
You can’t perform that action at this time.
0 commit comments