Hi,

I am doing a USB Avstream Device Driver, I wanted to stream MPEG2 TS data
through USB to be played on PC using directshow.

I am using a pin centric approach in the avstream, my question is, how do i
let the upper layer graph builder knows about the format of the upcoming data
format (eg. MPEG2 TS) .... i could do it in onSetDataFormat() and
IntersectHandler() in the Pin class right?? How do i do it?

I am quite new to this, any cautions on TS streams also greatly
appreciated.

Is there any sample in the DDK that show this ?

Thanks
--
--------------------------------------------
William

Re: About KSPIN format by Tim

Tim
Sat Dec 08 22:10:15 PST 2007

William Xie <WilliamXie@discussions.microsoft.com> wrote:
>
>I am doing a USB Avstream Device Driver, I wanted to stream MPEG2 TS data
>through USB to be played on PC using directshow.
>
>I am using a pin centric approach in the avstream, my question is, how do i
>let the upper layer graph builder knows about the format of the upcoming data
>format (eg. MPEG2 TS) .... i could do it in onSetDataFormat() and
>IntersectHandler() in the Pin class right?? How do i do it?

You define this in the KS_DATARANGE_VIDEO structure that goes in your
KSPIN_DESCRIPTOR_EX. Your IntersectHandler and SetDataFormat structures
get the chance to narrow things down, but they are handled ranges that are
already in your KS_DATARANGE_VIDEO list.

>Is there any sample in the DDK that show this ?

If you have or can find the 3790.1830 DDK (The Windows Server 2003 SP1
DDK), the Europa sample does this.
--
Tim Roberts, timr@probo.com
Providenza & Boekelheide, Inc.