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

PSP Camera Support (Android) #8521

Closed
RinMaru opened this issue Jan 28, 2016 · 46 comments
Closed

PSP Camera Support (Android) #8521

RinMaru opened this issue Jan 28, 2016 · 46 comments

Comments

@RinMaru
Copy link

RinMaru commented Jan 28, 2016

Would we be seeing the PSP Camera supported soon so we can play EyePet and Invisimals with our webcams and mobile cameras?

@hrydgard
Copy link
Owner

It's certainly possible to do, but it may be quite a bit of reverse-engineering work to figure it all out - I don't even know for certain that anyone has figured out the camera APIs apart from the function names. There does seem to be a piece of homebrew using the camera floating around, but the links I could find just return 404...

@sum2012
Copy link
Collaborator

sum2012 commented Jan 30, 2016

@hrydgard
JPCSP support camera,you can reference it

@hrydgard
Copy link
Owner

@sum2012 ah, I didn't realize. Well, certainly doable then...

@RinMaru
Copy link
Author

RinMaru commented Jan 30, 2016

Aw yeah ^_^ Go for it hrydgard cant wait to see some progress.

@zminhquanz
Copy link
Contributor

and support UMD video

@RinMaru
Copy link
Author

RinMaru commented Jan 30, 2016

@zminhquanz That would be nice jpcsp supports it aswell. you may want to post this as a request unless @hrydgard dont mind having two requests in one thread. I could rename this as video and camera support. while we're at it add Animated banner support lol take your time hrydgard we appreciate your work.

@zackzick2
Copy link

@hrydgard, when ppsspp can access camera. So we can play invizimals or eyepet. I promise tu buy ppsspp gold if ppsspp can play invizimals or eyepet with camera mode. Thanx

@sum2012 sum2012 mentioned this issue Aug 26, 2016
@Endarko
Copy link

Endarko commented Aug 30, 2016

hopefully ppsspp in an upcoming version. there are features of the camera model

@Endarko
Copy link

Endarko commented Oct 3, 2016

ppsspp camera mode is very useful for the game pes

@Endarko
Copy link

Endarko commented Mar 31, 2017

please add ppsspp camera mode

@Endarko
Copy link

Endarko commented Jul 1, 2017

please

@Lyuu17
Copy link

Lyuu17 commented Sep 30, 2017

Is there anyone working on this?

@hrydgard
Copy link
Owner

Yes, #9927 added basic support but there's still more to do.

@hrydgard hrydgard added this to the Future milestone Sep 30, 2017
@Endarko
Copy link

Endarko commented Jan 18, 2018

I have not found the camera mode feature in android 6.0, ppsspp build a new one

@zackzick2
Copy link

zackzick2 commented Dec 5, 2018 via email

@zackzick2
Copy link

Please fix camera support for ppsspp. So we can play invizimals game

@Dgmtnz
Copy link

Dgmtnz commented Aug 5, 2019

I would like to help with the issue but I have no clue on how to implement the sceUSBcam driver, i've seen others getting camera input in the emulator but I don't know how

@Florin9doi
Copy link
Contributor

The camera is correctly displayed using Software Rendering and Frame Skipping:OFF, but it runs at 3 FPS:
UCES01241_00000

@hrydgard
Copy link
Owner

Hm, that only works in software rendering? It should be possible for us to notify the FramebufferManager that a camera image is there - that way we could easily get this to work with hardware rendering. Should be looked into.

@hrydgard hrydgard modified the milestones: Future, v1.9.0 Aug 25, 2019
@Florin9doi
Copy link
Contributor

Florin9doi commented Aug 25, 2019

Yes, Invizimals mix camera image and game overlay/hud only while using software rendering.
EyePet goes ingame with hardware rendering with no major graphical issues.

@unknownbrackets
Copy link
Collaborator

What address is the camera data being read into? Is it read directly to VRAM when the hud is mixed, or is it copied to VRAM later?

-[Unknown]

@Florin9doi
Copy link
Contributor

Camera data is transfered using sceUsbCamReadVideoFrame (which pass a pointer) and sceUsbCamReadVideoFrameEnd (get the data length written in the meantime at that pointer): https://github.com/hrydgard/ppsspp/blob/master/Core/HLE/sceUsbCam.cpp#L118
I have no idea if the pointer is from vram

@hrydgard
Copy link
Owner

hrydgard commented Aug 25, 2019

Right, and I forgot that those actually writes the image in JPEG format into the app's space. So we'll have to look into how the app does the JPEG decoding, maybe it decodes directly into a framebuffer then and we're not detecting it.

@Dgmtnz
Copy link

Dgmtnz commented Aug 26, 2019

I've tried last build, but i have the same issue than before.

https://www.reddit.com/r/emulation/comments/cvu50m/just_some_info_for_the_lastest_ppsspp_build/

@hrydgard
Copy link
Owner

@Dgmtnz the text seems to be removed?

@hrydgard
Copy link
Owner

hrydgard commented Aug 26, 2019

I screwed up a little bit. A new build is on its way.

@Dgmtnz
Copy link

Dgmtnz commented Aug 26, 2019

Ok, last build gets the camera working perfectly, i'ts a little bit slow, but the game renders over it very nice, the only issue now is that you need a mic input in order to play the game

https://www.reddit.com/r/emulation/comments/cvw0nh/invizimals_camera_now_working_fine_just_need_mic/

@zackzick2
Copy link

zackzick2 commented Sep 3, 2019 via email

@Florin9doi
Copy link
Contributor

I tried to implement microphone support
https://github.com/Florin9doi/ppsspp/commits/android_audio_record
but I'm unable to find how to unblock the current thread so another thread to be scheduled.
I think it may be related to this: __KernelWaitCurThread.
I'm posting this in case someone else is willing to continue.

@zackzick2
Copy link

zackzick2 commented Sep 13, 2019 via email

@ghost
Copy link

ghost commented Sep 18, 2019

Good job 👍

@hrydgard
Copy link
Owner

PSP camera works!

Microphone is a separate issue. Let's make one: #12336

@ghost
Copy link

ghost commented Sep 18, 2019

This will be added to v1.9 milestone?

@hrydgard hrydgard modified the milestones: v1.10.0, v1.9.0 Sep 18, 2019
@hrydgard
Copy link
Owner

Done, thanks for the reminder.

@hrydgard
Copy link
Owner

Although actually, we still don't support webcams on desktop computers. But I'll open a separate issue for that, too.

@Blane2609
Copy link

It's certainly possible to do, but it may be quite a bit of reverse-engineering work to figure it all out - I don't even know for certain that anyone has figured out the camera APIs apart from the function names. There does seem to be a piece of homebrew using the camera floating around, but the links I could find just return 404...

Hi @hrydgard ,

Sorry for this unrelated question,
If I may please. Assume you have a mobile device supporting otg usb devices. Is it possible to run PS3jig on PPSSPP?

Kind regards,
Blane

@hrydgard
Copy link
Owner

@Blane2609 Our USB API implementation is very basic and we don't expose the USB port of the host device to it. Maybe one day..

@Blane2609
Copy link

@Blane2609 Our USB API implementation is very basic and we don't expose the USB port of the host device to it. Maybe one day..

@hrydgard Thank you for the reply. I appreciate all the efforts and work you are doing with PPSSPP.

@Costa1005
Copy link

So i tried to play invizimals with PPSSPP and it was going fine, but when i needed to use the camera it was very laggy, however it works fine with frontal camera, is this common?

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

No branches or pull requests