VirtualCameraDriver icon indicating copy to clipboard operation
VirtualCameraDriver copied to clipboard

How does the driver capture data from the interface in this driver program? If you know, thank you very much.

Open hulahulahulala opened this issue 1 year ago • 3 comments

How does the driver capture data from the interface in this driver program? If you know, thank you very much. I am a driver beginner.

hulahulahulala avatar Feb 26 '24 15:02 hulahulahulala

Data is passed to the driver through a DirectShow Filter property.

robot9706 avatar Feb 27 '24 07:02 robot9706

Data is passed to the driver through a DirectShow Filter property. After long-term learning and debugging, I found that my driver hardware status is stopped, which makes it impossible for me to obtain images in Windows camera applications. What are the possible reasons? How to conduct analysis? Besides, I would like to ask, what are the supported formats for images? Jpg, png, jpeg? Are there strict requirements for format? image

hulahulahulala avatar Mar 03 '24 16:03 hulahulahulala

Take a look at the hwsim Start function, some memory allocation could fail there.

The image format is RGB888. Also it has to be the same resolution as the buffer in the driver interface, so by default 1280x720.

Debugging is hard since it's a driver, you can log to the Windows Event Log, also I beleive if you are running your driver on a different PC you can somehow attach to it and debug it line by line, but I never tried this.

robot9706 avatar Mar 04 '24 07:03 robot9706