User`s manual

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;