
Video Compositing
Quadro SDI Output PG-03776-001_v06 | 45
7.3 LUMA-KEYING
For luma keying, the application specifies up to two pairs of luma (Y) values via the API.
These values represent the starting and ending luma values for replacement. Luma
keying is enabled with the range specified as follows.
// Y composite ranges
l_vioConfig.fields = 0; // reset fields
l_vioConfig.fields = NVVIOCONFIG_COMPOSITE |
NVVIOCONFIG_COMPOSITE_Y;
l_vioConfig.vioConfig.outConfig.enableComposite = TRUE;
l_vioConfig.vioConfig.outConfig.compRange.uEnabled = TRUE;
l_vioConfig.vioConfig.outConfig.compRange.uRange = 0;
l_vioConfig.vioConfig.outConfig.compRange.uMin = yCompRange[0];
l_vioConfig.vioConfig.outConfig.compRange.uMax = yCompRange[1];
if (NvAPI_VIO_SetConfig(m_vioHandle, &l_vioConfig)!= NVAPI_OK) {
return E_FAIL;
}
l_vioConfig.vioConfig.outConfig.compRange.uRange = 1;
l_vioConfig.vioConfig.outConfig.compRange.uMin = yCompRange[2];
l_vioConfig.vioConfig.outConfig.compRange.uMax = yCompRange[3];
if (NvAPI_VIO_SetConfig(m_vioHandle, &l_vioConfig)!= NVAPI_OK) {
return E_FAIL;
}
When luma compositing is enabled, the Quadro SDI compares the luma (Y) for each
incoming video pixel to the specified ranges. If the value for that pixel is within a
specified range, the color or that pixel is replaced with the pixel color from the GPU.
Comentários a estes Manuais