Camera capture via UMDF

Hi All,

I’m writing a UMDF driver, in the driver context I would like to set a webcam stream and process it.
What is the best way to do it?

Best Regards,
Irena

Can you be more specific? Are you talking about intercepting and modifying the data stream from a web camera? That cannot be done from UMDF. The Kernel Streaming interface used by Windows cameras uses METHOD_NEITHER IRPs that do not follow normal IRP rules. It’s hard enough with KMDF.

Hi Tim,
Thank you for your quick response.
I would like to be able to start the camera, set the camera resolution, and read the image data in my driver.
Ideally, I wanted to control the camera at a higher level, like Madia Foundation API.

Then you do not want a driver at all. You just want a DLL, which internally uses DirectShow or Media Foundation to talk to the driver.

Each of those libraries has a component which acts as a proxy between their API and the Kernel Streaming interfaces. You do not want to re-implement that.