TheImagingSource / ic4-examples

IC4 Example Programs
Apache License 2.0
4 stars 1 forks source link

Apparently inconsistent ImageBuffer bufferSize() values? #12

Open g40 opened 3 weeks ago

g40 commented 3 weeks ago

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 commented 3 weeks ago

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 commented 3 weeks ago

Hello there Tim

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

g40 commented 3 weeks ago

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