
Advanced Topics
Quadro SDI Output PG-03776-001_v06 | 71
disableSyncTermination(GLvoid)
{
NVVIOCONFIG l_vioConfig;
memset(&l_vioConfig, 0, sizeof(l_vioConfig));
l_vioConfig.version = NVVIOCONFIG_VER;
l_vioConfig.fields = 0;
l_vioConfig.fields = NVVIOCONFIG_COMPOSITETERMINATE;
l_vioConfig.vioConfig.outConfig.compositeTerminate = FALSE;
// Set configuration
if (NvAPI_VIO_SetConfig(hVIO, &l_vioConfig)!= NVAPI_OK) {
return E_FAIL;
}
return S_OK;
}
10.9 SPECIFYING THE INTERNAL BUFFER QUEUE
LENGTH
The driver software for the Quadro SDI maintains a collection of internal buffers. The
default number of buffers is five. This internal buffer queue permits applications that do
not set the bBlock argument to
TRUE in wglSendPbufferToVideoNV() or
glXSendPbufferToVideoNV() to render and send frames or fields ahead of when they
will be scanned out by the SDI video device. On Windows XP, the number of internal
buffers can be queried using
NvAPI_VIO_GetConfig() as outlined in Code Listing 51.
Code Listing 51: Querying the Number of Internal Buffers on
Windows
//
// Get flip queue length
//
HRESULT
getFlipQueueLength()
{
NVVIOCONFIG l_vioConfig;
memset(&l_vioConfig, 0, sizeof(l_vioConfig));
l_vioConfig.version = NVVIOCONFIG_VER;
l_vioConfig.fields = 0;
l_vioConfig.fields = NVVIOCONFIG_FLIPQUEUELENGTH;
// Get configuration
if (NvAPI_VIO_GetConfig(hVIO, &l_vioConfig)!= NVAPI_OK) {
Comentários a estes Manuais