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,

CodePudding user response:

reference 1/f, it is a nice nickname response:
code comments write, calculate the relative time ah, for the first time is starting time frame, relatively is 0, actual it is the current time, later all use relative time,

To do with relative time

CodePudding user response:

refer to the second floor eternity Alisa describes response:
Quote: reference 1/f, it is a nice nickname response:
code comments to write, calculate the relative time, the first frame start time is the time that relatively is 0, actual it is the current time, all with relative time back,

Using relative time why

General timestamp
  • Related