Touchgfx; How to Play video from SD Card?
Hello everyone
Is there any example that I can use to read avi file from SD- CARD and pass it to TouchGFX
Function?
Now I can play video from RAM at address 0xD0780000 for instance,
This is TouchGFX Function but I don't know how to use it?
- Any help, I would appreciate :folded_hands:
class MyReader : public touchgfx::VideoDataReader
{
public:
MyReader() : position(0) { }
virtual uint32_t getDataLength() { return video_len; }
virtual void seek(uint32_t pos) { position = pos; }
virtual bool readData(void* dst, uint32_t bytes)
{
memcpy(dst, &video_data[position], bytes);
position += bytes;
return true;
}
private:
uint32_t position;
} myReader;
video.setVideoData(myReader);
