AravisProject / aravis

A vision library for genicam based cameras
GNU Lesser General Public License v2.1
868 stars 325 forks source link

NIT NSC1104GIGE support #203

Open tgroche opened 5 years ago

tgroche commented 5 years ago

I seem to be running in a similar issue like #196. When trying to test the camera NSC1104GIGE with the arv-viewer I get the message:

GStreamer cannot understand the camera pixel format: 0x0!

I am running aravis on a Beagleboard X-15 with Debian 9. Attached you will find the output of

arv-tool-0.6 genicam arv_genicam.txt

arv-viewer --debug=all:3 arv_viewer_debug_log.txt

tests/arv-camera-test --debug all:3 arv_camera_test_log.txt

tgroche commented 5 years ago

So, Issue #183 put me on the right track. It is an endianness issue. As a quick hack I changed

https://github.com/AravisProject/aravis/blob/c937a133e35405aa9c7e00d64b00af790659aea5/src/arvgcport.c#L80-L90

to always return true. This let's me stream with aravis-viewer and for example

arv-tool-0.6 --debug=genicam:3 control Width | tail -n 2 now prints

[GcRegisterNode::_get_integer_value] address = 0xa124, value = 0x300 Width = 768 (min:1;max:768)

instead of

[GcRegisterNode::_get_integer_value] address = 0xa124, value = 0x30000 Width = 196608 (min:1;max:768)

which is the expected behaviour.