File tree Expand file tree Collapse file tree 2 files changed +22
-1
lines changed
src/AvTranscoder/transcoder Expand file tree Collapse file tree 2 files changed +22
-1
lines changed Original file line number Diff line number Diff line change @@ -69,8 +69,18 @@ class AvExport StreamTranscoder
69
69
*/
70
70
double getDuration () const ;
71
71
72
- // / Returns a reference to the current decoder used by the streamTranscoder (from input file or from generator)
72
+ // / Returns a reference to the current decoder (from input file or from generator)
73
73
IDecoder& getCurrentDecoder () const { return *_currentDecoder; }
74
+ // / Returns a reference to the encoder
75
+ IEncoder& getEncoder () const { return *_outputEncoder; }
76
+
77
+ // / Returns a reference to the object which transforms the decoded data
78
+ ITransform& getTransform () const { return *_transform; }
79
+
80
+ // / Returns a reference to the stream which unwraps data
81
+ IInputStream& getInputStream () const { return *_inputStream; }
82
+ // / Returns a reference to the stream which wraps data
83
+ IOutputStream& getOutputStream () const { return *_outputStream; }
74
84
75
85
/* *
76
86
* @brief Returns if the stream can switch to a generator when ended
Original file line number Diff line number Diff line change @@ -122,12 +122,23 @@ class AvExport Transcoder
122
122
void process ( IProgress& progress );
123
123
void process (); // /< Call process with no display of progression
124
124
125
+ /* *
126
+ * @brief Return the list of streams added to the transcoder.
127
+ */
128
+ std::vector< StreamTranscoder* >& getStreamTranscoders () { return _streamTranscoders; }
129
+
125
130
/* *
126
131
* @param streamIndex: careful about the order of stream insertion of the Transcoder.
127
132
* @return a reference to a stream manage by the Transcoder.
128
133
*/
129
134
StreamTranscoder& getStreamTranscoder ( size_t streamIndex ) const { return *_streamTranscoders.at ( streamIndex ); }
130
135
136
+ /* *
137
+ * @brief Get current processMethod
138
+ * @see EProcessMethod
139
+ */
140
+ EProcessMethod getProcessMethod () const { return _eProcessMethod; }
141
+
131
142
/* *
132
143
* @brief Set the transcoding policy.
133
144
* @note By default eProcessMethodBasedOnStream at index 0.
You can’t perform that action at this time.
0 commit comments