cancel
Showing results for 
Search instead for 
Did you mean: 

How can I implement the VideoDataReader class? I want to read AVI files from an SD card

chel
Associate

I want to implement reading large AVI files from an SD card for playback. When using VideoDataReader, I couldn't find a specific demo program. So, I added a MyReader class based on the official documentation. However, when executing the HardwareMJPEGDecoder::readData(uint32_t offset, uint32_t length) function, I found that aviBufferLength is less than the length passed in, preventing it from proceeding normally. What should I do?0000.jpg1122.jpg

1 REPLY 1
LouisB
ST Employee

Hello @chel,
First welcome to the TouchGFX community !

For your issue, did you try to initialize the aviBuffer ? Try to call setAviBuffer() in TouchGFXGeneratedHAL.cpp, in the initialize() function.

 

Regards,

Louis BOUDO
ST Software Developer | TouchGFX