mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2026-04-24 23:36:00 +03:00
[PR #3952] Libraries: libSceCamera implementation #3820
Labels
No labels
Bloodborne
bug
contributor wanted
documentation
enhancement
frontend
good first issue
help wanted
linux
pull-request
question
release
verification progress
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/shadPS4#3820
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/shadps4-emu/shadPS4/pull/3952
Author: @kalaposfos13
Created: 1/23/2026
Status: 🔄 Open
Base:
main← Head:camera📝 Commits (10+)
c6cf33cAdd OpenCV module (only system package for now)ced6ed7get camera id from config063d6feissue of skilleeea65dcamera setup4cafda6my homebrew kinda works!!4!!négy!!499ba22fix formataed35c9force target dimensionsee86671Add OpenCV as a submodule4b95179idiotic bullshit stupid ass spaghetti code library packaging hell197b4abme writing platform specific backend implementations for all 4 platforms in under 2 minutes be like:📊 Changes
5 files changed (+262 additions, -8 deletions)
View changed files
📝
src/common/config.cpp(+11 -0)📝
src/common/config.h(+2 -0)📝
src/core/libraries/camera/camera.cpp(+129 -8)📝
src/core/libraries/camera/camera.h(+117 -0)📝
src/sdl_window.cpp(+3 -0)📄 Description
This PR implements libSceCamera using SDL3's SDL_camera API. Currently WIP, but so far, all the core code is hooked up, and everything that my test homebrew is using is implemented in enough detail for a correct image to be displayed. Actual games using the camera will likely not work just yet, and ironically enough, the PR doesn't work correctly with the actual PS4 Camera either, as the frame data from it has both eyes submitted in one buffer, which I'll need to separate into their own buffers manually. That is not to say it won't display anything, the resulting image will just be very distorted.
To get started, hook up a webcam, capture card, or anything else that can be described as a digital video input device, head to
config.toml, and in the[Input]section, set the newly addedcameraIdsetting to the ID of your chosen input. This is a list of indexes starting from zero, so if you only have one device, set this to 0.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.