User`s manual

Reference Manual 109
extension->_framerate = video_config->fpscfg;
extension->_resolution = video_config->rescfg;
extension->_bitrate = video_config->ctlcfg;
}
sprintf(szDebugInfo, "MPEG1 width: %d height: %d
fps: %d bps: %d",
format->hdr.bmiHeader.biWidth,
format->hdr.bmiHeader.biHeight,
long(format->hdr.AvgTimePerFrame),
format->hdr.dwBitRate);
OutputDebugString(szDebugInfo);
break;
}
case MPEG2:
{
if ( pmt->subtype != MEDIASUBTYPE_MPEG2_VIDEO
) goto next_stream_caps;
if ( pmt->formattype != FORMAT_MPEG2Video )
goto next_stream_caps;
MPEG2VIDEOINFO* format = (MPEG2VIDEOINFO*)pmt-
>pbFormat;
if ( format->hdr.bmiHeader.biWidth !=
(int)video_config->rescfg.width )
goto next_stream_caps;
if ( format->hdr.bmiHeader.biHeight !=
(int)video_config->rescfg.height )
goto next_stream_caps;
normal_format_size =
SIZE_MPEG2VIDEOINFO(format);
format->hdr.AvgTimePerFrame =