aravis
aravis copied to clipboard
Implement quirk files
Cameras don't always use the standard names for the most common features, like exposure, image rate, etc...
Currently, ArvCamera checks for vendor and model, and behave differently when needed. The drawback of this method is when we want to add a new behaviour for a new camera, it has to be included in the code, and it will not be easily available to users until the next release.
It could be improved by instead using quirk files, in the form of genicam xml patches. This quirk files would be bundled in the aravis distribution, but could also be read in a defined user directory.
The search path would be:
$XDG_DATA_DIRS/aravis $prefix/share/aravis
The patch file will be named using the camera genicam filename with a .patch extension added.
Not everything will be possible with these quirk files, but it could be possible to make new camera work without additional code.