ADLINK Technology PCI-MPG24 Manual do Utilizador Página 117

  • Descarregar
  • Adicionar aos meus manuais
  • Imprimir
  • Página
    / 160
  • Índice
  • MARCADORES
  • Avaliado. / 5. Com base em avaliações de clientes
Vista de página 116
Reference Manual 107
Sample Code
void
CVideoControlPropertyPage::SetPinFormat(IAMStrea
mConfig* stream_config,
TCFGVIDEOEX* video_config)
{
AM_MEDIA_TYPE* pmt;
VIDEO_STREAM_CONFIG_CAPS caps;
if ( stream_config == NULL ) return;
int caps_count = 0, caps_size = 0;
stream_config-
>GetNumberOfCapabilities(&caps_count,
&caps_size);
char szDebugInfo[1000];
for ( int i = 0 ; i < caps_count ; i ++ )
{
HRESULT hr = stream_config-
>GetStreamCaps(i, &pmt, (BYTE*)&caps);
if ( FAILED(hr) ) {
OutputDebugString("[wisproxy]: GetSteamCaps
Failed!"); continue; }
unsigned long normal_format_size;
switch ( video_config->strcfg.compress_mode
)
{
case MPEG1:
{
if ( pmt->subtype != MEDIASUBTYPE_MPEG1Payload )
goto next_stream_caps;
Vista de página 116
1 2 ... 112 113 114 115 116 117 118 119 120 121 122 ... 159 160

Comentários a estes Manuais

Sem comentários