SDI Technologies iH30 Especificações Página 21

  • Descarregar
  • Adicionar aos meus manuais
  • Imprimir
  • Página
    / 147
  • Índice
  • MARCADORES
  • Avaliado. / 5. Com base em avaliações de clientes
Vista de página 20
Data Transfer
Quadro SDI Output PG-03776-001_v06 | 16
MessageBox(NULL, "Failed to bind a videoDevice to slot 0.\n",
"Error", MB_OK);
exit(1);
}
// Free list of available video devices, don't need it anymore.
free(videoDevices);
5.3 PBUFFER INITIALIZATION
On Windows, the first step in the initialization of the pbuffer is to use the function
wglChoosePixelFormatARB() to choose a compatible pixel format. For Quadro SDI
video output from a pbuffer render target, the list of attributes specified as the second
argument to this function must include
WGL_DRAW_TO_PBUFFER as well as one of
WGL_BIND_TO_VIDEO_RGB_NV, WGL_BIND_TO_VIDEO_RGBA_NV, or
WGL_BIND_TO_VIDEO_RGB_AND_DEPTH_NV. Code Listing 11 and Code Listing 12
illustrate this procedure for both the 8-bit and 16-bit cases.
Note: In the 16-bit floating point per-component case,
WGL_FLOAT_COMPONENTS_NV must also be specified in the attribute list.
Code Listing 11: Choosing an 8-bit Pixel Format
int format = 0;
int nformats = 0;
int attribList = {
WGL_RED_BITS_ARB, 8,
WGL_GREEN_BITS_ARB, 8,
WGL_BLUE_BITS_ARB, 8,
WGL_ALPHA_BITS_ARB, 8,
WGL_STENCIL_BITS_ARB, 8,
WGL_DEPTH_BITS_ARB, 24,
WGL_DRAW_TO_PBUFFER_ARB, true,
WGL_BIND_TO_VIDEO_RGBA_NV, true,
0 };
wglChoosePixelFormatARB(hDC, attribList, 1, &format, &nformats);
Vista de página 20
1 2 ... 16 17 18 19 20 21 22 23 24 25 26 ... 146 147

Comentários a estes Manuais

Sem comentários