Hi Everyone,

I'm working on image processing, where I want to take fixed frames per second.

And in case frames are less than the fixed frame then I have to create dummy frame of previous one and then send the same.

As of now, I have write code which calculate frames per seconds as per the inputs, and I have calculate this on every frame and shows to the user.
Qt Code:
  1. double fps = 1000.0 / msElapsed;
To copy to clipboard, switch view to plain text mode 

But I'm bit confused how I right the logic to set fixed frame rate, can please some one help me ?

Thanks