-
Notifications
You must be signed in to change notification settings - Fork 257
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
GB Camera support #564
GB Camera support #564
Conversation
Oh wait you really went that far to support a camera as well. I didn't even do that. |
Yep, full GB camera support (as far as documented by @AntonioND) with live capture. |
This is as far as I got about the Capture Cartridge: I don't understand the video portion a single bit. It's very confusing and each game handles it slightly differently. |
Updated travis-ci file. |
@LuigiBlood Thanks for the link, will look into it |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Obsolete URL...?
src/backends/api/video_backend.h
Outdated
@@ -0,0 +1,44 @@ | |||
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * | |||
* Mupen64plus - video_backend.h * | |||
* Mupen64Plus homepage: http://code.google.com/p/mupen64plus/ * |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Obsolete URL...
Thanks for telling me, @bsmiles32! It's nice to see that other people find that documentation useful. :) |
@Jj0YzL5nvJ Obsolete URL fixed. Thanks. |
Few things to consider before considering merging this :
|
I don't like having such a big dependency for something that most of our users will never use, so a compile-time make flag is probably necessary. You're using this for cross-platform capability of video capture with whatever cameras happen to be attached to the computer? |
Agreed.
Yes. Note that the OpenCV capture API allow to use webcams but also video/image files transparently (not tested but advertised on their documentation). Internally it wraps different backends depending on the plateform it is run. |
|
projects/unix/Makefile
Outdated
@@ -646,7 +666,7 @@ targets: | |||
@echo " WARNFLAGS=flag == compiler warning levels (default: -Wall)" | |||
@echo " PIC=(1|0) == Force enable/disable of position independent code" | |||
@echo " OSD=(1|0) == Enable/disable build of OpenGL On-screen display" | |||
@echo " NEW_DYNAREC=1 == Replace dynamic recompiler with Ari64's experimental dynarec" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
was this an accident? I think we should keep this line for NEW_DYNAREC in the makefile
@richard42 Yep, silly mistake on my part. Updated with Makefile line re-added. |
Disabling opencv stuff in MSVC so that Appveyor has a chance to build it. |
All the reverse-engineering work comes from AntonioND [1]. A new video backend API has been added to grab video images. By default, a dummy backend is provided. However, an OpenCV based backend is also provided (if enabled at compile-time with OPENCV=1 in Makefile). Other implementation should be possible (GStreamer for instance ?) in the future. With the OpenCV backend, the video device selection can be done using the Core parameter: [Core] GbCameraVideoDevice=<my_device> Where <my_device> can be either an integer which represent the device number (0 for default) or a string which specify the video device path. Tested with 64DD Mario Talent Studio (Japan), a transfer pak plugged in the first controller with a Japanese GameBoy camera. Also since the core currently requires a cart ROM (even if should strictly be required) I used Perfect Dark (Japan) to allow using the Transfer Pak. This is a core/ui limitation not related to this PR. [1] https://github.com/AntonioND/gbcam-rev-engineer
Revert this once win32-deps repo gets updated with OpenCV 3.0.
Following discussion with @LuigiBlood in PR #446, this PR adds GB camera support.
See commit message for more information.
NOTE: I haven't updated the msvc files yet, I'd like to get some feedback first.
@AntonioND: big thanks for sharing your RE work on the GB camera !