locked
Color space converter how tu use? RRS feed

  • Question

  • How i can call color space converter and change output pin subtype to RGB24, maybe there are samples?
    Wednesday, April 16, 2008 12:07 PM

Answers

  • You should use IFilterGraph ConnectDirect to force a specific mediatype during the output pin connection.

    Note it only converts between rgb subtypes. Check on Geraint Davies site for filters that do also conversion (http://www.gdcl.co.uk/downloads.htm).

    Wednesday, April 16, 2008 1:12 PM

All replies

  • You should use IFilterGraph ConnectDirect to force a specific mediatype during the output pin connection.

    Note it only converts between rgb subtypes. Check on Geraint Davies site for filters that do also conversion (http://www.gdcl.co.uk/downloads.htm).

    Wednesday, April 16, 2008 1:12 PM
  • Look:
    http://msdn2.microsoft.com/en-us/library/ms781972(VS.85).aspx

    I'm calling this filter:

        hr = AddFilterByCLSID(m_pGraph, CLSID_Colour, L"Color space", &color);

    Now i'm geting Output Pin:

    hr   =   GetPin(color,   PINDIR_OUTPUT,   &pOut);  

    I have output pin. And now i want to connect color space converter with over filter, but at first i want to set color space converter output pin to RGB24. How i must set it now?

    Wednesday, April 16, 2008 1:26 PM