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

Fix v4l2 camera #12359

Merged
merged 2 commits into from
Feb 22, 2025
Merged

Fix v4l2 camera #12359

merged 2 commits into from
Feb 22, 2025

Conversation

madebr
Copy link
Contributor

@madebr madebr commented Feb 22, 2025

format_sdl_to_v4l2 did not map SDL_PIXELFORMAT_MJPG to V4L2_PIX_FMT_MJPEG.

I also changed the return value to 0 when it get an unknown pixel format. I'm not sure what's appropriate here.

Fixes #12358

Description

Existing Issue(s)

@slouken slouken merged commit 5c214e5 into libsdl-org:main Feb 22, 2025
40 checks passed
@slouken
Copy link
Collaborator

slouken commented Feb 22, 2025

Merged, thanks!

@slouken
Copy link
Collaborator

slouken commented Feb 22, 2025

I don't have a pipewire camera setup. Is there a way to expose MJPG capture on that as well?

@slouken
Copy link
Collaborator

slouken commented Feb 22, 2025

I don't have a pipewire camera setup. Is there a way to expose MJPG capture on that as well?

Actually, I do! I'm investigating...

@slouken
Copy link
Collaborator

slouken commented Feb 22, 2025

... and added!

@madebr madebr deleted the fix-v4l2-camera branch February 22, 2025 12:32
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

Successfully merging this pull request may close these issues.

v4l2 camera driver shows (non-functional) mjpg pixelformats
2 participants