About the IKsDataTypeHandler in KsProxy (AVStream)

Discussion in 'Windows Vista Drivers' started by Jie Sun, Sep 18, 2003.

  1. Jie Sun

    Jie Sun Guest

    Hi, everyone:
    Recently I am developing WDM AVStream Capture Driver.
    Our device support both MPEG2 and MPEG4 streams. I export
    two data ranges for each of them. The MPEG4 use
    KS_DATARANGE_VIDEO, and the MPEG2 use

    The problem is: If I call IAMStreamConfig::SetFormat in
    the user mode, for MPEG2 the ksproxy will do nothing, but
    for MPEG4 , the ksproxy call the intersect handler in our
    driver. I think that the ksproxy must found some
    incompatibility between the format I passed to SetFormat
    and the video caps(which is in dataranges) that I
    exported. And Because the MPEG2 and MPEG4 use different
    data type handler in ksproxy, that make the things
    I did extend the format with some extension, and I did
    modified the bmiHeader.biSize to reflect this extension
    (Microsoft MPEG4 data format use this kind of trick
    themself to put sequence header in the extension).

    The intersect handler should not be called if I call
    IAMStreamCOnfig::SetFormat, because I return the default
    format in intersect handler, which can be quite different
    with the one that is passed to the SetFormat.
    And in intersect handler , you can not get the format
    that from the SetFormat, the KS system just give you two
    datarange to intersect blindly.

    Any help will be appreciated.
    Thanks in advance.

    WIS Technolohies.
    Jie Sun, Sep 18, 2003
    1. Advertisements

  2. Hi, Jie,

    Just a quick note to say that I am trying to find you a resource on our
    team that can help you with this issue. Thanks in advance for your

    Bryan S. Burgin

    This posting is provided "AS IS" with no warranties, and confers no rights.
    Bryan S. Burgin [MSFT], Sep 19, 2003
    1. Advertisements

  3. Jie Sun

    Dan Maddy Guest

    Dear Mr. Sun:

    I am sorry to say but I have trouble understanding what you expect the
    desired behavior to be.

    Do you think that MPEG2 is being processed correctly?
    Do you think that MPEG4 is being processed correctly?
    If you remove your format extension to the MPEG4 format then do you get the
    expected behavior?


    Dan Maddy

    This posting is provided "AS IS" with no warranties, and confers no rights.
    Dan Maddy, Sep 20, 2003
    1. Advertisements

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.