Dear All:
We are developing a MPEG1 hardware encoded device and are writing its driver
which is based on AVStream.
In this design, we need connect the output pin of source capture filter to
Microsoft's MPEG-1 Stream Splitter.
However, why cannot I connect them successfully?
I use the format structure below, is it right?
Please help me.
I don't know how to solve it. ...><...
static KSDATARANGE AnalogCaptureSystemStreamPinDataRange =
{
{ sizeof(KSDATARANGE),
0,
64 * 512,
0,
STATIC_KSDATAFORMAT_TYPE_STREAM,
STATIC_KSDATAFORMAT_TYPE_MPEG1_SYSTEM,
STATIC_KSDATAFORMAT_SPECIFIER_NONE,
}
};
static PKSDATARANGE AnalogCaptureProgramStreamPinDataRangesArray[ ] = {
(PKSDATARANGE)(&AnalogCaptureSystemStreamPinDataRa nge),
};
DECLARE_SIMPLE_FRAMING_EX(
AMEBDAD_ANALOG_CAPTURE_PIN_PROGRAMSTREAM_ALLOCATOR _FRAMING,
STATICGUIDOF(KSMEMORY_TYPE_KERNEL_NONPAGED),
KSALLOCATOR_REQUIREMENTF_SYSTEM_MEMORY |
KSALLOCATOR_REQUIREMENTF_PREFERENCES_ONLY,
8,
FILE_BYTE_ALIGNMENT,
64 * 512,
64 * 512
);
Best Regards,
H.P.