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

yuv422_yuy2 incorrectly (de)compressed #293

Open
StefanFabian opened this issue Jan 4, 2024 · 1 comment
Open

yuv422_yuy2 incorrectly (de)compressed #293

StefanFabian opened this issue Jan 4, 2024 · 1 comment

Comments

@StefanFabian
Copy link

Hey,
using usb_cam and my webcam, the image is published as yuv422_yuy2.
The compressed topic has the encoding yuv422_yuy2; jpeg compressed mono8 (which sounds like it doesn't really support compressing yuv and compresses the data as mono8).
When I receive this image with image_transport, I get the original encoding but the step size is incorrect.
YUV has a bit depth of 16bits but the step size of the decompressed image is equal to the width of the image not 2 * the width like it should be and the uncompressed image is.

@emrekuru97
Copy link

emrekuru97 commented Feb 6, 2024

Hey, same situation here, exaclty with the encoding yuv422_yuy2 and plus the encoding yuv422 in compressed image. I don't know where this is done in code, bu a fix would be nice. But I have no problem with the raw_image.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants