-
-
Notifications
You must be signed in to change notification settings - Fork 312
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Value for constant ARV_PIXEL_FORMAT_MONO_10_PACKED is wrong #870
Comments
Just bumped into this too, I just switched to using the string I guess a fix could be implemented in the aravis API. |
Actually, my camera at least exposes some versioning info for the standard in use...
If exposing this is part of the standard, and therefore should be expected on all cameras, it could be a way to determine which value should be used. |
Describe the bug
I am using a Basler camera which is set to pixelformat MONO10p.
When I am accessing the camera using the aravis client I get the right value 0x010A0046 according to the spec.
https://www.emva.org/wp-content/uploads/GenICam_PFNC_1_1_01.pdf
In the code the value of this pixelformat MONO10p is set to 0x010c0004 which is not defined in the spec at all.
#define ARV_PIXEL_FORMAT_MONO_10_PACKED ((ArvPixelFormat) 0x010c0004u)
So, the bottom line is, the value I get from the camera is correct and the value defined in ARV_PIXEL_FORMAT_MONO_10_PACKED is wrong. The value 0x010c0004 doesn't even exist in the spec.
Update:
It seems that I was using an obsolete spec. In the current spec the values matches with the implementation.
https://www.emva.org/wp-content/uploads/GenICam_Package_2023.07a.zip
But this leads to another issue: How can I check to which standard the camera is developed?
To Reproduce
Either check the spec and compare the values or connect to a GIGE Vision cam which is set to pixelformat MONO10p and check the value you get using
ArvPixelFormat pixelFormat = arv_buffer_get_image_pixel_format(buffer);
Expected behavior
The value for the constant must be this
#define ARV_PIXEL_FORMAT_MONO_10_PACKED ((ArvPixelFormat) 0x010A0046u)
Camera description:
Platform description:
The text was updated successfully, but these errors were encountered: