SDI Technologies iH30 Especificações Página 33

  • Descarregar
  • Adicionar aos meus manuais
  • Imprimir
  • Página
    / 147
  • Índice
  • MARCADORES
  • Avaliado. / 5. Com base em avaliações de clientes
Vista de página 32
Data Transfer
Quadro SDI Output PG-03776-001_v06 | 28
Code Listing 24: Sending a Frame of Data to the Linux Video Device
glXSendPbufferToVideoNV(dpy, pbuffer,
GLX_VIDEO_OUT_FRAME_NV,
&gBufCount, GL_FALSE);
5.7 STOPPING VIDEO TRANSFERS AND CLOSING
THE VIDEO DEVICE
On Windows, once an application has completed all video transfers and no longer needs
access to a video device, an application should stop sending and release any OpenGL
resources prior to closing the device with NVAPI. If the
WGL_video_out OpenGL
extension is in use, the pbuffer and video device should be released as shown in Code
Listing 25.
Code Listing 25: Releasing Bound OpenGL Resources
wglReleaseVideoImageNV(gPBuffer.getHandle(),
WGL_VIDEO_OUT_COLOR_AND_ALPHA_NV);
wglReleaseVideoDeviceNV(ghpDevList[0]);
In the case of the GL_present_video extension, no formal releasing of OpenGL
resources is required. However, in both cases, once the OpenGL resources are released,
then the video device can be stopped and closed as shown in Code Listing 26.
Code Listing 26: Closing the Video Device on Windows
if ( m_vioHandle ) {
NvAPI_VIO_Close(m_vioHandle);
}
On Linux there are no requirements within the CONTROL-X extension to stop video
transfers and close the device. However, one must unbind any associated pbuffers and
release the video device using the appropriate
GLX_NV_video_out functions, prior to
deleting the pbuffers. This is outlined Code Listing 27.
Vista de página 32
1 2 ... 28 29 30 31 32 33 34 35 36 37 38 ... 146 147

Comentários a estes Manuais

Sem comentários