Hi,
Thanks for the interest.
The VB.Net code is commercial (interface to a number of sensors, not just cameras, so not of general interest... and copyrighted), but I could put up a reasonably equivalent C# (for .Net 4.5) and WPF up at the same time.
My modifications ended up being limited to
DirectX.Capture/VideoCapabilities.cs and
DirectX.Capture/Capture.csAs for my own VB / C# Code, this modification basically let me set the
FrameSize (which did not originally work with a Blackmagic Design DeckLink Intensity Shuttle).
My .Net code is now something like:
- Code: Select all
DirectX.Capture.Capture capture = new DirectX.Capture.Capture(index_of_DeckLink_device);
capture.FrameSize = new Size(720, 576);
This second statement now works, whereas before it threw an exception because the
IAMStreamConfig.SetFormat API was sent data that could never work: only the
Width and
Height were set, and the
AvgTimePerFrame,
BitRate,
BitCount and other parameters were not correspondingly updated.
I will need to check with my employer if I can put my changes on GitHub, and as soon as I have that reassurance, I will put my modified DirectX.Capture on my GitHub.
Regards,
Francois Genolini
Software Engineer
Aberdeen, Scotland