주요 내용으로 건너뛰기

VideoDataReader

touchgfx/hal/VideoController.hpp

Interface for classes reading video data from non-memory-mapped flash storage.

Public Functions

virtual uint32_tgetDataLength() =0
Get the length of the data (file).
virtual boolreadData(void * dst, uint32_t bytes) =0
Read data from flash to a buffer.
virtual voidseek(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_tbytes=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:
dstAddress of destination buffer in RAM.
bytesNumber of bytes to copy.
Returns:

Returns true if read was successful.

seek

virtual void seek(uint32_tposition)

Seek to a specific position in the data (file).

Parameters:
positionByte position in the data that is needed next.

~VideoDataReader

virtual ~VideoDataReader()

Virtual destructor.