
Device Feedback
Quadro SDI Output PG-03776-001_v06 | 52
l_bField1 = l_bField1 ? 0 : 1;
l_bBlock = options.block; //l_bField1 ? FALSE : TRUE;
l_iVsyncDiff = 1;
}
} else {
l_iBufType = WGL_VIDEO_OUT_FRAME;
l_iVsyncDiff = 2;
l_bBlock = options.block;
}
wglSendPbufferToVideoNV(hpBuf, l_iBufType, &gBufCount, l_bBlock);
if ((l_ulNumVertBlanks != l_ulLastNumVertBlanks) &&
(l_ulNumVertBlanks != (l_ulLastNumVertBlanks +
l_iVsyncDiff)))
fprintf(stderr, "Warning:Dropped/Duplicate Frame\n");
l_ulLastNumVertBlanks = l_ulNumVertBlanks;
When in the case of a progressive video format, or when rendering fields, the vsync
counter increments by more than one during subsequent execution of the draw loop,
then a vertical retrace was missed. When rendering frames in an interleaved video
format, if the vsync counter increments by more than two during subsequent execution
of the draw loop, then a vertical retrace was missed. Now, to know if a duplicated frame
or field is actually displayed on the SDI video output, this information must be used in
coordination with the number of queued buffers as determined in Code Listing 36.
9.2.2 Using the GL_present_video Extension
When an application uses the GL_NV_present_video extension, a query object is
utilized to determine if a frame is duplicated on the SDI output. This is demonstrated in
Code Listing 38.
Kommentare zu diesen Handbüchern