Floww

Hii all.

I'm new at Direct Show.
I would like to capture Webcam stream and display it in a window.

It says, we have to use InitCaptureGraphBuilder
But I can't find it.

Which Header to include to acces to the function

Thanks.
Flow


Re: DirectShow Development About InitCaptureGraphBuilder

LGS

"It says" Who says and where do they say it.

Sounds like a typo. Maybe they meant ICaptureGraphBuilder Or ICaptureGraphBuilder2





Re: DirectShow Development About InitCaptureGraphBuilder

Floww

Look at > MSDN > MSDN Library > Win32 and COM Development > Graphics and Multimedia > Audio & Video > DirectShow > Using DirectShow > Video Capture > About VideoCapture in DirectShow > About the Capture Graph Builder

The first line on the sample code :
It is more a function than a class.
Code Snippet

HRESULT InitCaptureGraphBuilder(
IGraphBuilder **ppGraph, // Receives the pointer.
ICaptureGraphBuilder2 **ppBuild // Receives the pointer.
)










Re: DirectShow Development About InitCaptureGraphBuilder

LGS

A link would have been useful.

I found this page: http://msdn2.microsoft.com/en-us/library/ms778829.aspx

Which describes InitCaptureGraphBuilder as "The following code shows a helper function to perform these steps: "

InitCaptureGraphBuilder is just some sample code showing how you might call some of the DirectShow interfaces. If you need the functionality provided in that routine, you can either copy the code right off that page and into your program, or just read it, understand it, and create a routine of your own that does something similar.





Re: DirectShow Development About InitCaptureGraphBuilder

Floww

Ohhhh yes, I understand now.

Thanks. I didn't see it is the body function.