Re: How to add a filter?



If I write this: CComPtr<IBaseFilter> pSobel;

The first error of my program is this one:
1>d:\documents and settings\alex\escritorio\prueba2\webcam.cpp(20) :
error C2065: 'CComPtr' : undeclared identifier

Let me explain something. I'm trying to make an app as simple as this
one: want to read from my webcam and then I want to process the video
stream of the camera thorugh a Sobel filter already working (i tested
this in the graph edit program).

To make this I have get lot of examples from internet and from some
books and now I don´t know very good how it works. I think it would be
easier if you can tell me how can I:

1. Make my app access to the camera, my actual program searches for the
webcam with an external function I don't understand...I think it would
be easier going through the file source filter directly
2. Opening the sobel filter and connecting the filter to the exit of
the source filter (maybe before I need a Smart tee filter)
3. Render the streams I have passed through the Sobel filter.

I think is a very easy program but I have lots of problems if I try to
write it myself so I got the examples I mentioned and now I don't
understand my app.

Thank you

.



Relevant Pages

  • Re: IMediaSeeking Starting Point
    ... > Does it always start with the renderer, or whatever filter ... "The Filter Graph Manager distributes any IMediaSeeking call to each of the ... renderer filters in the graph. ... Filter Graph Manager returns the first error value it received, ...
    (microsoft.public.win32.programmer.directx.video)
  • How to play audio and video from two different sources
    ... My source filter is a modified ... Now I must add a second source of data, namely PCM audio. ... another callback to the C# app that will supply the audio sample. ...
    (microsoft.public.win32.programmer.directx.video)
  • Re: Determine request URL when implementing IHttpModule
    ... This app has a class that implements the IHttpModule interface. ... public class PageCleanerStream ... if (sender is HttpApplication) ... I have my web.config properly configured and so far everything works as expected: the filter performed by PageCleanerStream does its work well. ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Writing into the video frame buffer before it gets displayd
    ... I took the approch of using the SampleGrabber filter connected to a Null ... day to code and itegrate with the old app. ... altered frames to a file. ...
    (microsoft.public.win32.programmer.directx.video)
  • Re: How do I set up an Access database from scratch?
    ... your own app. ... design a basic form then you could use the built-in "filter by form" utility ... to find and filter for records. ...
    (microsoft.public.access.gettingstarted)

Loading