From 5c5f4c82ae949ace39b659957e417ad02f30697d Mon Sep 17 00:00:00 2001 From: Clement Champetier Date: Thu, 16 Apr 2015 12:02:38 +0200 Subject: [PATCH 1/3] Transcoder: can get array of StreamTranscoder --- src/AvTranscoder/transcoder/Transcoder.hpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/AvTranscoder/transcoder/Transcoder.hpp b/src/AvTranscoder/transcoder/Transcoder.hpp index 2ee36b56..1c56944a 100644 --- a/src/AvTranscoder/transcoder/Transcoder.hpp +++ b/src/AvTranscoder/transcoder/Transcoder.hpp @@ -122,6 +122,11 @@ 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. From 1e022d3575e17adc101a5a808e73cea2fbc6a7d3 Mon Sep 17 00:00:00 2001 From: Clement Champetier Date: Thu, 16 Apr 2015 12:02:52 +0200 Subject: [PATCH 2/3] Transcoder: can get ProcessMethod --- src/AvTranscoder/transcoder/Transcoder.hpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/AvTranscoder/transcoder/Transcoder.hpp b/src/AvTranscoder/transcoder/Transcoder.hpp index 1c56944a..43729344 100644 --- a/src/AvTranscoder/transcoder/Transcoder.hpp +++ b/src/AvTranscoder/transcoder/Transcoder.hpp @@ -133,6 +133,12 @@ class AvExport 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. From 40680fa38a2bf4b9f636220789d7f91bcc42c370 Mon Sep 17 00:00:00 2001 From: Clement Champetier Date: Thu, 16 Apr 2015 12:03:57 +0200 Subject: [PATCH 3/3] StreamTranscoder: can get encoder, transform, input stream, output stream --- src/AvTranscoder/transcoder/StreamTranscoder.hpp | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) 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