| 220 | } |
| 221 | |
| 222 | XnBool MockGenerator::IsNewDataAvailable(XnUInt64& nTimestamp) |
| 223 | { |
| 224 | if (m_bNewDataAvailable) |
| 225 | { |
| 226 | // the timestamp is used for frame sync algorithm. If frameID is zero, this means |
| 227 | // there is no actual frame, so we don't want the timestamp to be checked for sync. |
| 228 | // instead, return an "invalid" timestamp. This is allowed, as FrameID 0 is a non-valid |
| 229 | // frame. |
| 230 | if (m_data[m_nNextDataIdx].nFrameID == 0) |
| 231 | { |
| 232 | nTimestamp = XN_MAX_UINT64; |
| 233 | } |
| 234 | else |
| 235 | { |
| 236 | nTimestamp = m_data[m_nNextDataIdx].nTimeStamp; |
| 237 | } |
| 238 | } |
| 239 | |
| 240 | return m_bNewDataAvailable; |
| 241 | } |
| 242 | |
| 243 | XnStatus MockGenerator::UpdateData() |
| 244 | { |
no outgoing calls
no test coverage detected