Thanks for your support and patience in this matter Vladimir!
I'm using VC2005, and I have set the Language option OpenMP Support to Yes.
I have also tried with static library linking. But I don't get any better performance than previously stated.
So, I also tried with the JPEGView sample. I made this modification in JPGViewDoc.cpp:
DWORD dwStartTick = GetTickCount();
long pos = 0;
for(int i=0; i<100; i++)
{
jerr = ReadImageJPEG(&in,&m_param_jpeg,&m_image);
in.TellPos(&pos);
jerr = in.Seek(pos*-1, 1);
}
string.Format("Decoded 100 jpeg pics in: %lu ms", GetTickCount()-dwStartTick);
AfxMessageBox(string,MB_OK);
To get the time it takes to decode 100 pictures. I built the application with the original supplied build32.bat and Makefile. Still, the performance is worse compared to IJL!
This is the results, in milliseconds it takes to decode one picture - Ijl15 fastest and JpegView slowest:
| Picture |
Ijl15 |
Ijl20 |
IPP 5.3 |
JpegView |
| 640x480 |
4,3 |
5 |
6,25 |
6,4 |
| 1152x778 |
12,9 |
13,6 |
18,5 |
19,2 |
Isn't the sample application optimized?
What can be wrong?
How do we solve this in the easiest way?
Br,
Robert