Home > Back-end > Based on the qt video acquisition, urgent urgent!!!
Based on the qt video acquisition, urgent urgent!!!
Time:01-30
If (m_getFirst) { Qint64 secondTime=QDateTime: : currentMSecsSinceEpoch ();
Time=secondTime firstTime + timeIndex;//calculate the relative time } The else { FirstTime=QDateTime: : currentMSecsSinceEpoch (); TimeIndex=0; M_getFirst=true; } This code is not very understanding I, get to the first frame, m_getFirst=true, behind all the if, but to perform the if can do? I don't understand,
CodePudding user response:
Wrote code comments, calculate the relative time, the first frame start time is the time that relatively is 0, actual it is the current time, later all use relative time,