File tree Expand file tree Collapse file tree 2 files changed +19
-0
lines changed
src/AvTranscoder/transcoder Expand file tree Collapse file tree 2 files changed +19
-0
lines changed Original file line number Diff line number Diff line change @@ -464,4 +464,19 @@ double StreamTranscoder::getDuration() const
464
464
return std::numeric_limits<double >::max ();
465
465
}
466
466
467
+ bool StreamTranscoder::isTranscodeCase () const
468
+ {
469
+ return _inputStream && _inputDecoder;
470
+ }
471
+
472
+ bool StreamTranscoder::isRewrapCase () const
473
+ {
474
+ return _inputStream && ! _inputDecoder;
475
+ }
476
+
477
+ bool StreamTranscoder::isGeneratorCase () const
478
+ {
479
+ return ! _inputStream;
480
+ }
481
+
467
482
}
Original file line number Diff line number Diff line change @@ -94,6 +94,10 @@ class AvExport StreamTranscoder
94
94
bool processRewrap ();
95
95
bool processTranscode ( const int subStreamIndex = -1 ); // /< By default transcode all channels
96
96
97
+ bool isTranscodeCase () const ;
98
+ bool isRewrapCase () const ;
99
+ bool isGeneratorCase () const ;
100
+
97
101
private:
98
102
IInputStream* _inputStream; // /< Input stream to read next packet (has link, no ownership)
99
103
IOutputStream* _outputStream; // /< Output stream to wrap next packet (has link, no ownership)
You can’t perform that action at this time.
0 commit comments