
Advanced Topics
Quadro SDI Output PG-03776-001_v06 | 72
return E_FAIL;
}
return S_OK;
}
At the time that the video output device is configured and prior to calling either
wglBindVideoImageNV() or glXBindVideoImageNV(),this number of internal buffers
can be specified by an application using
NvAPI_VIO_SetConfig(). The number of
internal buffers specified must be between two and seven.
Code Listing 52: Setting the Number of Internal Buffers on Windows
//
// Set flip queue length
//
HRESULT
setFlipQueueLength(unsigned int uiFQL)
{
NVVIOCONFIG l_vioConfig;
memset(&l_vioConfig, 0, sizeof(l_vioConfig));
l_vioConfig.version = NVVIOCONFIG_VER;
l_vioConfig.fields = 0;
l_vioConfig.fields = NVVIOCONFIG_FLIPQUEUELENGTH;
l_vioConfig.vioConfig.outConfig.flipQueueLength = numBuffers;
// Set configuration
if (NvAPI_VIO_SetConfig(hVIO, &l_vioConfig)!= NVAPI_OK) {
return E_FAIL;
}
return S_OK;
}
On Linux, the number of internal buffers can be specified with
XNVCTRLsetAttribute() as demonstrated.
// Set number of internal buffers
XNVCTRLSetAttribute(dpy, screen, 0, NV_CTRL_GVO_FLIP_QUEUE_SIZE, 2);
Comentarios a estos manuales