ADLINK Technology PCI-MPG24 Manuel d'utilisateur Page 117

  • Télécharger
  • Ajouter à mon manuel
  • Imprimer
  • Page
    / 160
  • Table des matières
  • MARQUE LIVRES
  • Noté. / 5. Basé sur avis des utilisateurs
Vue de la page 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;
Vue de la page 116
1 2 ... 112 113 114 115 116 117 118 119 120 121 122 ... 159 160

Commentaires sur ces manuels

Pas de commentaire