8 IReader::IReader(
const std::string& filename,
const size_t streamIndex,
const int channelIndex)
10 , _streamProperties(NULL)
13 , _currentDecoder(NULL)
17 , _streamIndex(streamIndex)
18 , _channelIndex(channelIndex)
20 , _inputFileAllocated(true)
21 , _continueWithGenerator(false)
27 : _inputFile(&inputFile)
28 , _streamProperties(NULL)
31 , _currentDecoder(NULL)
35 , _streamIndex(streamIndex)
36 , _channelIndex(channelIndex)
38 , _inputFileAllocated(false)
39 , _continueWithGenerator(false)
74 bool decodingStatus =
false;
bool _inputFileAllocated
Does the InputFile is held by the class or not (depends on the constructor called) ...
int _currentFrame
The current decoded frame.
IReader(const std::string &filename, const size_t streamIndex=0, const int channelIndex=-1)
Create a new InputFile and prepare to read the stream at the given index.
virtual void flushDecoder()
Reset the internal decoder state / flush internal buffers.
Frame * readFrameAt(const size_t frame)
This class describes decoded (raw) audio or video data.
virtual bool decodeNextFrame(Frame &frameBuffer)=0
Decode next frame.
IDecoder * _currentDecoder
Link to _inputDecoder or _generator.
bool _continueWithGenerator
If there is no more data to decode, complete with generated data.