I am building a video player using Juce. I call repaint() 30 times per second on my component. My paint() method looks like :
if (! m_pCurrentFrameImage.isNull())
If I comment out the above call to drawImage(), CPU consumption is approx. 5%, most of which is probably spent decoding video frames. However, when I uncomment the call to drawImage(), CPU consumption jumps to 45% for a 500 by 700 pixel image on a recent (i5) processor (Windows 7). When I play the same video in Windows Media Player, CPU consumption is less than 10%.
Is there a more clever way to display the video frames to minimize CPU consumption ?