Re: Supporting KSPROPERTY_PIN_CONSTRAINEDDATARANGES under AVStream



Just to add to what Tim said.
What you usually do is your declare your driver as supporting all media
types that it can possibly support at any given time. And then you reduce
that list by rejecting certain types that are NOT to be supported at a
particular point from KSPIN_DISPATCH::SetDataType, KSPIN_DISPATCH::Create
and KSPIN_DESCRIPTOR_EX::IntersectHandler callbacks.

-- Max.



"Tim Roberts" <timr@xxxxxxxxx> wrote in message
news:f5h29150bs09s45ee4df3j1rioqg1lsjn5@xxxxxxxxxx
> yinmun <yinmun@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote:
>
>>Hi Tim,
>>
>>Thanks for spotting the mistake =) Indeed after returning the buffer size,
>>I
>>now managed to display the property dialog box, but the format range still
>>can't be read properly, as all the fields in the dialog box are empty.
>>
>>I'm supporting this property as if I load the driver using GraphEdit, and
>>right-click on the pin to display the Pin Properties to change its
>>streaming
>>format, the AVStream will query this property.
>>
>>Have you tried displaying the format dialog box in GraphEdit without
>>supporting this property explicitly? If so, how did you do it?
>
> The KSDEVICE_DESCRIPTOR for the whole driver includes a pointer to the
> KSFILTER_DESCRIPTOR for the filters in the driver, which includes a
> pointer
> to the KSPIN_DESCRIPTOR_EX for the pins in that filter, which includes a
> pointer to the KSDATARANGES that the pin supports. The
> KSDEVICE_DESCRIPTOR
> is passed to AVStream in KsInitializeDriver, and from that, AVStream knows
> how to find the dataranges and display them in a dialog.
>
> The data structures are 75% of the work in an AVStream driver.
> --
> - Tim Roberts, timr@xxxxxxxxx
> Providenza & Boekelheide, Inc


.



Relevant Pages

  • RE: Fast IR NDIS Miniport Driver for Windows CE
    ... receive functions and may be with the total supported Irda speeds which i was ... supporting to the OID_IRDA query. ... I have developed a Fast IR driver for ARM platform. ... of connection establishment includes baud rate negotiation. ...
    (microsoft.public.windowsce.embedded)
  • Recommendations for a serial port card you can actually BUY?
    ... The Rocketport 550 looked promising, as its just a bunch of 16550s on the ... Comtrol EOL'd the entire 550 line several months ago. ... to work under the pucdriver are actually in production either - I've been ... and it is in no way "obsolete" or something I intend to stop supporting. ...
    (freebsd-stable)
  • Re: Lost a fellow rider today
    ... Tim has already covered it well. ... view of the driver intending on making the left or right-hand turn. ... danger zones at the more optimal times. ...
    (rec.motorcycles)
  • Re: Effect of a rs485 damaged driver
    ... Tim Shoppa wrote: ... >>driver can affect the line by putting permanently the line in a high or low ... > Receivers can latch up/blow up too, for example by shorting one or both ... > resistors in series between each node and the bus wires. ...
    (sci.electronics.design)
  • Re: DBI BOF @ OSCON ?
    ... >>Is a patch available for Rudy to integrate? ... > found using the server is of course faster than emulation in the driver. ... Tim. ...
    (perl.dbi.users)