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

Missing YUYV to RGB Conversion in start_fetching Method #183

Open
umarsync opened this issue Feb 12, 2025 · 0 comments
Open

Missing YUYV to RGB Conversion in start_fetching Method #183

umarsync opened this issue Feb 12, 2025 · 0 comments

Comments

@umarsync
Copy link

apps/camera/src/contexts/camera.rs

In the start_fetching method of the Camera struct, there's an issue where frames from the GstCamera are stored directly into the frame_buffer without converting them from YUYV to RGB. This causes the image data in the buffer to be corrupted.

Impact

Because the frames are not converted to RGB, the data in the frame_buffer ends up corrupted. This means that when you try to display or process these frames, they won't show correctly.

Steps to Reproduce

  1. Initialize the camera
    Call Camera::init() to set up the camera.
  2. Start fetching frames
    Invoke Camera::start_fetching() to begin capturing frames.
  3. Observe the problem
    You'll notice that the frames stored in frame_buffer appear corrupted because they're missing the YUYV to RGB conversion.
umarsync added a commit to umarsync/mechanix-gui that referenced this issue Feb 12, 2025
…#183

Added yuyv422_to_rgb conversion in the start_fetching method to convert frames from YUYV to RGB format before storing them in the frame_buffer
umarsync added a commit to umarsync/mechanix-gui that referenced this issue Feb 12, 2025
…#183

Added yuyv422_to_rgb conversion in the start_fetching method to convert frames from YUYV to RGB format before storing them in the frame_buffer mecha-org#183
umarsync added a commit to umarsync/mechanix-gui that referenced this issue Feb 12, 2025
Added yuyv422_to_rgb conversion in the start_fetching method to convert frames from YUYV to RGB format before storing them in the frame_buffer
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

1 participant