Re: Adding color space converter filter to WINCE project



Keep in mind that the Windows CE color space converter only supports a very
small subset of color conversions. Most from a FourCC format to RGB but not
the reverse. This is because it's primarily used for color conversions from
the various YUV formats that camera drivers use to RGB for rendering the
preview window. Most likely it's not going to do whatever conversion you
need to render this file.

You may need to write your own filter for the conversion. Color conversions
are not difficult, check www.fourcc.org for details on all of the various
color formats. The "Programming DirectShow For Digital Video and Television"
book shows how to write a simple transform filter. There's also the "sample
grabber" sample transform filter that will work as a starting point.

Gary Daniels
Windows CE Multimedia and Graphics

This posting is provided "AS IS" with no warranties, and confers no rights.
You assume all risk for your use.

"Haitao Jiang (MS)" <haitaoj@xxxxxxxxxxxxx> wrote in message
news:O09QPSzGHHA.536@xxxxxxxxxxxxxxxxxxxxxxx
Before building your image, you need to select DirectShow Video Capture
from DirectShow catalog. It will set SYSGEN_DSHOW_CAPTURE and bring in
the color space converter (CLSID_Colour). After booting up the device,
you can double check the registry to see if the converter is present or
not.

Please see http://msdn2.microsoft.com/en-us/library/aa926076.aspx for the
details of color space converter.

Thanks,
--
Haitao Jiang
Software Design Engineer in Test
Windows Device Core Mulitimedia


This posting is provided "AS IS" with no warranties, and confers no
rights.
You assume all risk for your use.

<AskVelu@xxxxxxxxx> wrote in message
news:1165294862.519103.102870@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Hi,

I am developing an application in WINCE, that builds the filter graph
dynamically to render an .avi file.
I have the same programe running fine in Windows setup, where the
filter graph is build like this.

sourcefilter->avisplitter->avidecompressor->colorspaceconverter->video
renderer
I ported the same application to WinCE setup, and I got a fail in
creating "Color space converter filter"(CLSID_Colour). I tried many
ways and I couldn't figure out how to add that filter as a part of
output image. I mean I couldn't sysgen that class.

Could someone please help me?

Thanks

Velu





.



Relevant Pages

  • Re: c++ conversion files
    ... "converts between the text file formats used by various operating systems. ... > under Windows would immediately recognize what it does. ... converting line endings is common enough that it's worth encapsulating. ... Right, newline filter doesn't do this, and doesn't pretend to. ...
    (comp.lang.cpp)
  • Connecting to VMR without Color Space Converter
    ... The graph always inserts a color space converter filter between my source filter and VMR9. ... I saw various posts related to this and explaining that the color space converter solves some issues related to VMR9 buffer allocation and format but without much details. ...
    (microsoft.public.win32.programmer.directx.video)
  • Re: Flipping problem, color space converter
    ... > I wrote the Parser filter and Transform filter. ... > The output of the color space converter is still ARGB32. ... Have you tried using the Windows Task Manager? ... Common courtesy is to followup if someone helped you or if you found a solution on your own. ...
    (microsoft.public.win32.programmer.directx.video)
  • Converting from RGB32 to RGB24
    ... I'm being fed with RGB32 bitmaps from a filter and want to write them ... to an AVI file as uncompressed video frames. ... I can't see a way to tell the color space converter what single output ...
    (microsoft.public.win32.programmer.directx.video)
  • Re: CTransform+InfiniteFilter dont connect to Renderer
    ... especially with the tee filter. ... the renderer and see if that helps. ... The color space converter will use ...
    (microsoft.public.win32.programmer.directx.video)