VideoDataReader
Interface for classes reading video data from non-memory-mapped flash storage.
Public Functions
virtual uint32_t | getDataLength() =0 |
Get the length of the data (file). | |
virtual bool | readData(void * dst, uint32_t bytes) =0 |
Read data from flash to a buffer. | |
virtual void | seek(uint32_t position) =0 |
Seek to a specific position in the data (file). | |
virtual | ~VideoDataReader() |
Virtual destructor. | |
Public Functions Documentation
getDataLength
virtual uint32_t getDataLength | ( | ) | =0 |
Get the length of the data (file).
Returns:
The length of the data.
readData
virtual bool readData | ( | void * | dst , | =0 | |
uint32_t | bytes | =0 | |||
) | =0 |
Read data from flash to a buffer.
This must be a synchrony method that does not return until the copy is done.
Parameters:
dst | Address of destination buffer in RAM. |
bytes | Number of bytes to copy. |
Returns:
Returns true if read was successful.
seek
virtual void seek | ( | uint32_t | position | ) | |
Seek to a specific position in the data (file).
Parameters:
position | Byte position in the data that is needed next. |
~VideoDataReader
virtual ~VideoDataReader | ( | ) |
Virtual destructor.