I am searching for optimal sourcecode/algorithm in c++ to convert frames count into time code hh:mm:ss:ff in given fps, ex. 25fps...
this code is preety good - http://www.andrewduncan.ws/Timecodes/Timecodes.html (bottom of page) but it is expensive - it contains 4 mod and 6 div operations
I need to show time code on every frame, so calculating this algorithm could take some time.
I can of course store evaluated timecode to avoid calculations.
But it would be very helpful to know better algorithm...
thanks in advance yours m.