Skip to content
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

Apparently inconsistent ImageBuffer bufferSize() values? #12

Open
g40 opened this issue Jun 25, 2024 · 3 comments
Open

Apparently inconsistent ImageBuffer bufferSize() values? #12

g40 opened this issue Jun 25, 2024 · 3 comments
Labels
question Request for information/clarifications.

Comments

@g40
Copy link

g40 commented Jun 25, 2024

Hello TIS people.

We have 2 DFK33 GX545 cameras, apparently configured to use a width/height of 1280x192 using BGR8 running on Windows 10 and Windows 11. Both use the latest IC4 runtime with version 1.0.0.2416

When a frame is received the buffer size is checked to detect external modifications to width/height etc.

On the Win10 machine this works correctly with 1280*192*3 = a 737280 byte buffer. The calculated value (expected) matches the reported value of 737280.

On the Windows 11 system the buffer set up is identical but bufferSize() reports a value of 737616.

In both cases stride is identical at 3840px

Any thoughts? Please ask if more information is required.

Thanks

Jerry.

@TIS-Tim
Copy link
Contributor

TIS-Tim commented Jun 25, 2024

Hi Jerry,
I suspect that on one of the systems, you had ChunkModeActive enabled in the camera, and on one you did not.
Chunk data is transmitted as part of the buffer after the image data.
Tim

@g40
Copy link
Author

g40 commented Jun 25, 2024

Hello there Tim

Excellent work. I shall check it out. Thank you.

@g40
Copy link
Author

g40 commented Jun 25, 2024

Yes, chunk mode is the culprit.
Thanks again Tim,
great support.

@TIS-Edgar TIS-Edgar added the question Request for information/clarifications. label Jul 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Request for information/clarifications.
Projects
None yet
Development

No branches or pull requests

3 participants