FlashCap icon indicating copy to clipboard operation
FlashCap copied to clipboard

Added CameraControlProperty interface

Open macaba opened this issue 2 years ago • 1 comments
trafficstars

An implementation of the CameraControlProperty interface, only tested on DirectShow.

I needed this for a thermal camera where it uses the Zoom property in two ways: to switch frame data to raw thermal values (for further processing by the application), and to calibrate the camera (it has an internal shutter for calibration).

Example usage for the thermal camera:

this.captureDevice.SetControlProperty(CameraControlProperty.Zoom, 0x8000);    // 0x8000 = Calibrate
this.captureDevice.SetControlProperty(CameraControlProperty.Zoom, 0x8004);    // 0x8004 = Raw mode

This is incomplete however I wanted to create this PR to start some discussion about how this could be integrated into the main repo in a correct way.

macaba avatar Jun 19 '23 10:06 macaba

@macaba Thank you your PR!

I will review it within a couple of days, so please give me a moment.

kekyo avatar Jun 20 '23 00:06 kekyo