I am trying to trace the isp demo app, isp_h264dec_single_stream, and I found this app would wait about 100us (#define SLEEP_USECS 100) every 720 bytes in function H264DataInput() in main.cpp. If I change this value to 0, there will be Sequence's error, like,
** img_1280x960.h264 file will be used as input.
Press Ctrl+C to terminate the demo.
Framebuffer mapped at 0x7f7936a000.
Sequencer other error:*** Sequencer error text:
NULL pointer data.
Demo execution failed.
I would like to know why it need this delay?
BTW, I also found the other isp demo app, isp_jpeg_4stream, having similar delay (#define SLEEP_USECS 50).
And how to calculate(define) this delay time in my own apps?