1 #ifndef _AV_TRANSCODER_IREADER_HPP
2 #define _AV_TRANSCODER_IREADER_HPP
26 IReader(
const std::string& filename,
const size_t streamIndex = 0,
const int channelIndex = -1);
32 IReader(
InputFile& inputFile,
const size_t streamIndex = 0,
const int channelIndex = -1);
40 Frame* readNextFrame();
46 Frame* readPrevFrame();
53 Frame* readFrameAt(
const size_t frame);
bool _inputFileAllocated
Does the InputFile is held by the class or not (depends on the constructor called) ...
Based class to read a stream.
int _currentFrame
The current decoded frame.
void continueWithGenerator(const bool continueWithGenerator=true)
Set the reader state to generate data (ie silence or black) when there is no more data to decode...
This class describes decoded (raw) audio or video data.
Virtual based class of properties for all types of stream.
const StreamProperties * getSourceProperties() const
Get the properties of the source stream read.
const StreamProperties * _streamProperties
IDecoder * _currentDecoder
Link to _inputDecoder or _generator.
bool _continueWithGenerator
If there is no more data to decode, complete with generated data.