From: "Coen S"
[Quoted Text] > I'm very new to Directshow and I can't get a good idea of > were to begin. First of all, I've made my own webcam > which outputs raw data which I will convert to RGB. All > the filters in Directshow transform to RGB so I should
That is not true: RGB is not some sort of "canonical" format in DirectShow and most filter will work in YUV just as well.
> have an easy job to display the data on my screen since I > don't have to use a filter. > But what should I do with my uncompressed RGB data to > display it?
Nothing: it's not the source filter's job to display anything. The source filter just outputs its data, then some other filter in the graph will render it. All you need to do is write the live push/capture source filter for your webcam (or driver supported by the VFW wrapper, the WDM wrapper or the KS proxy), then the video renderer will be connected automatically when the application builds the rendering graph.
-- // Alessandro Angeli // MVP :: DirectShow / MediaFoundation // mvpnews at riseoftheants dot com // http://www.riseoftheants.com/mmx/faq.htm
|