chalmers-revere/opendlv

Fixing BPP from 24 to 3 to fix segfault in proxy-camera/memcpy

chrberger opened this issue · 8 comments

Doesn't 'bpp' really translate to "bits per pixel"?

Is this solved?

At least it's very old :) I do not remember the details, but things are working now so perhaps close?

As far as I know, it's working but slight confusing if the bpp stands for bytes per pixel or bits per pixel.

It should be "bits per pixel", I think it might be dangerous to mix this up. Bytes per pixel seems to be a quite odd format, we could perhaps write that as "bytesPerPixel" just to be clear. Perhaps we should also have "bpp" in the config, and then divide by 8 in the code.

Actually by looking at https://github.com/chalmers-revere/opendlv.core/blob/master/code/core/system/proxy-camera-axis/src/Camera.cpp#L50 , it seems to be bytes per pixel... :) I hope we didn't mix this up hard...

To use "setBytesPerPixel" is fine, but we should not use "BPP" since that could be confusing.

@chrberger Should we do anything with this, or close it?