diff --git a/src/AvTranscoder/transcoder/StreamTranscoder.hpp b/src/AvTranscoder/transcoder/StreamTranscoder.hpp index 8246ed68..eb968b13 100644 --- a/src/AvTranscoder/transcoder/StreamTranscoder.hpp +++ b/src/AvTranscoder/transcoder/StreamTranscoder.hpp @@ -69,8 +69,18 @@ class AvExport StreamTranscoder */ double getDuration() const; - /// Returns a reference to the current decoder used by the streamTranscoder (from input file or from generator) + /// Returns a reference to the current decoder (from input file or from generator) IDecoder& getCurrentDecoder() const { return *_currentDecoder; } + /// Returns a reference to the encoder + IEncoder& getEncoder() const { return *_outputEncoder; } + + /// Returns a reference to the object which transforms the decoded data + ITransform& getTransform() const { return *_transform; } + + /// Returns a reference to the stream which unwraps data + IInputStream& getInputStream() const { return *_inputStream; } + /// Returns a reference to the stream which wraps data + IOutputStream& getOutputStream() const { return *_outputStream; } /** * @brief Returns if the stream can switch to a generator when ended diff --git a/src/AvTranscoder/transcoder/Transcoder.hpp b/src/AvTranscoder/transcoder/Transcoder.hpp index 2ee36b56..43729344 100644 --- a/src/AvTranscoder/transcoder/Transcoder.hpp +++ b/src/AvTranscoder/transcoder/Transcoder.hpp @@ -122,12 +122,23 @@ class AvExport Transcoder void process( IProgress& progress ); void process(); ///< Call process with no display of progression + /** + * @brief Return the list of streams added to the transcoder. + */ + std::vector< StreamTranscoder* >& getStreamTranscoders() { return _streamTranscoders; } + /** * @param streamIndex: careful about the order of stream insertion of the Transcoder. * @return a reference to a stream manage by the Transcoder. */ StreamTranscoder& getStreamTranscoder( size_t streamIndex ) const { return *_streamTranscoders.at( streamIndex ); } + /** + * @brief Get current processMethod + * @see EProcessMethod + */ + EProcessMethod getProcessMethod() const { return _eProcessMethod; } + /** * @brief Set the transcoding policy. * @note By default eProcessMethodBasedOnStream at index 0.