I need help with jpeg decompression or faster function PxLoadImage. In my application I need to display online cam (mjpg stream) and PxLoadImage take 200ms of process time. So it is possible to display max. 5fr/s… Is in QNX any other solution to display jpeg???
Do you need these files to be in jpeg format? Can you pre-decompress them? If neither of these are alternatives you may have boxed yourself in. Your only hope would be to find significantly faster decompression code, which I think is unlikely.
I wonder if the problem is I/O bound. In other words, how big are these jpeg images you are trying to display and where are you reading them from (disk, CF card etc).
If they are large but there aren’t too many (a few hundred MB worth), you might try copying them into a RAM drive and then loading them from the RAM drive which will significantly speed up the loading aspect.