示例#1
0
void VideoViewer::frame(void)
{
    /* Lock the most recent video frame in the input triple buffer: */
    if(videoFrames.lockNewValue())
    {
        /* Bump up the video frame's version number to invalidate the cached texture: */
        ++videoFrameVersion;
    }
}
示例#2
0
void IMUTest::frame(void)
	{
	/* Lock the most recent sample and tracker state: */
	tracker->lockNewState();
	samples.lockNewValue();
	}