|
8 | 8 | #include <AvTranscoder/profile/ProfileLoader.hpp>
|
9 | 9 | #include <AvTranscoder/stat/ProcessStat.hpp>
|
10 | 10 |
|
11 |
| -#include "StreamTranscoder.hpp" |
| 11 | +#include <AvTranscoder/transcoder/InputStreamDesc.hpp> |
| 12 | +#include <AvTranscoder/transcoder/StreamTranscoder.hpp> |
12 | 13 |
|
13 | 14 | #include <string>
|
14 | 15 | #include <vector>
|
15 | 16 |
|
16 | 17 | namespace avtranscoder
|
17 | 18 | {
|
18 | 19 |
|
19 |
| -/** |
20 |
| - * @brief Structure to describe the source data to extract. |
21 |
| - */ |
22 |
| -struct InputStreamDesc |
23 |
| -{ |
24 |
| - |
25 |
| - InputStreamDesc(const std::string& filename, const size_t streamIndex, const std::vector<size_t>& channelIndexArray) |
26 |
| - : _filename(filename) |
27 |
| - , _streamIndex(streamIndex) |
28 |
| - , _channelIndexArray(channelIndexArray) |
29 |
| - { |
30 |
| - } |
31 |
| - |
32 |
| - InputStreamDesc(const std::string& filename, const size_t streamIndex, const size_t channelIndex) |
33 |
| - : _filename(filename) |
34 |
| - , _streamIndex(streamIndex) |
35 |
| - , _channelIndexArray() |
36 |
| - { |
37 |
| - _channelIndexArray.push_back(channelIndex); |
38 |
| - } |
39 |
| - |
40 |
| - InputStreamDesc(const std::string& filename, const size_t streamIndex) |
41 |
| - : _filename(filename) |
42 |
| - , _streamIndex(streamIndex) |
43 |
| - , _channelIndexArray() |
44 |
| - { |
45 |
| - } |
46 |
| - |
47 |
| - /** |
48 |
| - * @return If a demultiplexing step will be done to extract the expected data. |
49 |
| - */ |
50 |
| - bool demultiplexing() const { return !_channelIndexArray.empty(); } |
51 |
| - |
52 |
| -public: |
53 |
| - std::string _filename; ///< Source file path. |
54 |
| - size_t _streamIndex; ///< Source stream to extract. |
55 |
| - std::vector<size_t> _channelIndexArray; ///< List of source channels to extract from the stream |
56 |
| -}; |
57 |
| - |
58 |
| -#ifndef SWIG |
59 |
| -AvExport std::ostream& operator<<(std::ostream& flux, const InputStreamDesc& inputStreamDesc); |
60 |
| -#endif |
61 |
| - |
62 | 20 | /**
|
63 | 21 | * @brief Enum to set a policy of how we manage the process in case of several streams.
|
64 | 22 | * eProcessMethodShortest: stop the process at the end of the shortest stream.
|
|
0 commit comments