2024-04-14 09:50 PM
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?
2024-04-16 02:55 AM - edited 2024-04-16 02:56 AM
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,