SDI Technologies iH30 Especificaciones Pagina 32

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 147
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 31
Data Transfer
Quadro SDI Output PG-03776-001_v06 | 27
Table 5-2. Pbuffer Size = Frame
iBufferType Pbuffer Size = Frame
WGL_VIDEO_OUT_FIELD_1 Even lines to Field 0
WGL_VIDEO_OUT_FIELD_2 Odd lines to Field 1
WGL_VIDEO_OUT_FRAME Full frame
WGL_VIDEO_OUT_STACKED_FIELDS_1_2 Upper half to Field 2
Bottom half to Field 1
WGL_VIDEO_OUT_STACKED_FIELDS_2_1 Upper half to Field 1
Bottom half to Field 2
The parameter pulCounterPbuffer returns the count of the pbuffer sent. This value
should always increment and can be used to calculate if frames or fields have been
dropped or duplicated as described in Section 8.1.1. The value of
bBlock indicates if the
function should queue the pbuffer and return immediately or wait until the pbuffer is
actually scanned out by the SDI device. The following example sends a frame of
graphics data to the video device.
Code Listing 23: Sending a Frame of Data to the Video Device
if ((wglSendPbufferToVideoNV(hpBuf, WGL_VIDEO_OUT_FRAME,
&gBufCount, TRUE) != GL_NOERROR) {
// Handle error.
}
In this example, the fourth argument to wglSendPbufferToVideoNV() is set to TRUE to
indicate that this function call should block until video scan out of this frame is
complete. This aids in the synchronization of graphics and video in applications that
utilize only a single pbuffer.
Note: Color data in an 8-bit pbuffer should be integer data in the range of 1 to 256
while data placed by an application into a 16-bit floating point pbuffer should be
16-bit float data in the range of 0 to 1.
On Linux, the procedure of sending a pbuffer containing a field or frame to the video
output is identical to that for Windows except for the function used. On Linux, the
function
glXSendPbufferToVideoNV() is utilized as illustrated in the following
example.
int glXSendPbufferToVideoNV(Display *dpy, GLXPbuffer pbuf,
int iBufferType,
unsigned long *pulCounterPbuffer,
GLboolean bBlock);
Vista de pagina 31
1 2 ... 27 28 29 30 31 32 33 34 35 36 37 ... 146 147

Comentarios a estos manuales

Sin comentarios