aravis icon indicating copy to clipboard operation
aravis copied to clipboard

Add option to load additional XML for a camera

Open Dennis10231 opened this issue 3 years ago • 1 comments

Is your feature request related to a problem? Please describe. It would be nice to be able to load an additional GenICam XML file. This could be used to enhance the camera's own GenICam XML with additional nodes.

Describe the solution you'd like Right now, arv_gc_new() is the only function to accept xml input. Either add a new function to load a new, additional GenICam xml, merge it with the cameras XML or allow arv_gc_new() to use two XML inputs. Result: arv_gc_get_node() will return the node, not matter if it comes from the camera or not.

A cheap "hack" would be to simply append the new nodes at the end. A proper merge would allow you to extend nodes, e.g. appending a setting to "Image Format Controls".

It is possible to use XSLT for this, see: http://web.archive.org/web/20160809092524/http://www2.informatik.hu-berlin.de/~obecker/XSLT/#merge

Dennis10231 avatar Oct 26 '22 10:10 Dennis10231

We have something like that in Aravis, only used in GvDevice, and with no user API yet.

https://github.com/AravisProject/aravis/blob/0df6d6aa9eb54454ac821c8db5e58a02a5e5f2a4/src/arvgvdevice.c#L1310-L1348

A properly designed user API would be interesting.

EmmanuelP avatar Oct 27 '22 06:10 EmmanuelP