Exemple #1
0
static string timecode_to_string(Timecode timecode)
{
    char buffer[64];
    sprintf(buffer, "%02d:%02d:%02d%c%02d (@ %dfps)",
            timecode.GetHour(), timecode.GetMin(), timecode.GetSec(),
            timecode.IsDropFrame() ? ';' : ':', timecode.GetFrame(),
            timecode.GetRoundedTCBase());
    return buffer;
}