Hi, Frank
For iMX5 platform, In general, there are three kinds of selection provided to user
(1) stream mode with blocking
filePlayEnable=0, prescanEnable=0
in such mode, vpu will always wait enough data for decoding
user need to create one additonal thread responsible to feed the data to avoid application hang.
(2) stream mode without blocking
filePlayEnable=0, prescanEnable=1
in such mode, vpu will always check whether the frame is integrated, it will start decode only when the frame is integrated.
otherwise, it will return without decoding. this mode will introduce some performance penalty
(3) file mode without blocking
filePlayEnable=1
in such mode, it is user's responsibility to make sure the frame is integrated.
if the frame isn't enough, vpu will return failure.
Eagle.