{"action":"created","issue":{"url":"https://api.github.com/repos/citra-emu/citra/issues/1947","repository_url":"https://api.github.com/repos/citra-emu/citra","labels_url":"https://api.github.com/repos/citra-emu/citra/issues/1947/labels{/name}","comments_url":"https://api.github.com/repos/citra-emu/citra/issues/1947/comments","events_url":"https://api.github.com/repos/citra-emu/citra/issues/1947/events","html_url":"https://github.com/citra-emu/citra/pull/1947","id":165214652,"number":1947,"title":"[RFC] Add a V4L2-based cam:U implementation","user":{"login":"linkmauve","id":7755816,"avatar_url":"https://avatars.githubusercontent.com/u/7755816?v=3","gravatar_id":"","url":"https://api.github.com/users/linkmauve","html_url":"https://github.com/linkmauve","followers_url":"https://api.github.com/users/linkmauve/followers","following_url":"https://api.github.com/users/linkmauve/following{/other_user}","gists_url":"https://api.github.com/users/linkmauve/gists{/gist_id}","starred_url":"https://api.github.com/users/linkmauve/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/linkmauve/subscriptions","organizations_url":"https://api.github.com/users/linkmauve/orgs","repos_url":"https://api.github.com/users/linkmauve/repos","events_url":"https://api.github.com/users/linkmauve/events{/privacy}","received_events_url":"https://api.github.com/users/linkmauve/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/citra-emu/citra/labels/pr:abandoned","name":"pr:abandoned","color":"cccccc"},{"url":"https://api.github.com/repos/citra-emu/citra/labels/pr:needs-work","name":"pr:needs-work","color":"f7c6c7"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-07-13T01:00:24Z","updated_at":"2016-09-22T07:22:18Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/citra-emu/citra/pulls/1947","html_url":"https://github.com/citra-emu/citra/pull/1947","diff_url":"https://github.com/citra-emu/citra/pull/1947.diff","patch_url":"https://github.com/citra-emu/citra/pull/1947.patch"},"body":"It uses the raw Video For Linux 2 API to integrate any capture device\r\n(a camera for example) into the 3DS cam:U subsystem, so that games can\r\nnow take an actual picture of the user, use the AR system, or do\r\nbasically anything they wants with the video stream.\r\n\r\nConversion to RGB isn’t supported yet, so in the very likely chance\r\nyour capture device doesn’t support outputting directly in RGB you will\r\nget a garbled but recognizable image resulting from the casting of YUYV\r\ndata into RGB565.\r\n\r\nOnly the OUT1 camera (rear left) is currently supported, every other\r\none will still return an empty buffer.  A possible improvement would be\r\nto extend support to more than one /dev/videoN device, and let the user\r\nconfigure which physical device corresponds to which emulated camera.\r\nAnother would be to use a computer vision library to generate a shifted\r\nimage and give the illusion of perspective when using both read\r\ncameras.\r\n\r\nA possible improvement would be to check for the presence of the v4l2\r\nheader instead of matching on the OS name.  A dummy implementation is\r\nbuilt on every other OS.\r\n\r\nThis also adds the SetOutputFormat call.\r\n\r\nNone of this has been tested on hardware yet, nor reversed from the\r\ncam:U service, everything is pure guess work based on the camera/video\r\nexample from 3ds-examples."},"comment":{"url":"https://api.github.com/repos/citra-emu/citra/issues/comments/248830789","html_url":"https://github.com/citra-emu/citra/pull/1947#issuecomment-248830789","issue_url":"https://api.github.com/repos/citra-emu/citra/issues/1947","id":248830789,"user":{"login":"wwylele","id":4592895,"avatar_url":"https://avatars.githubusercontent.com/u/4592895?v=3","gravatar_id":"","url":"https://api.github.com/users/wwylele","html_url":"https://github.com/wwylele","followers_url":"https://api.github.com/users/wwylele/followers","following_url":"https://api.github.com/users/wwylele/following{/other_user}","gists_url":"https://api.github.com/users/wwylele/gists{/gist_id}","starred_url":"https://api.github.com/users/wwylele/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wwylele/subscriptions","organizations_url":"https://api.github.com/users/wwylele/orgs","repos_url":"https://api.github.com/users/wwylele/repos","events_url":"https://api.github.com/users/wwylele/events{/privacy}","received_events_url":"https://api.github.com/users/wwylele/received_events","type":"User","site_admin":false},"created_at":"2016-09-22T07:22:18Z","updated_at":"2016-09-22T07:22:18Z","body":"Reminder: please resolve conflicts with merged clang-format PR."}}
{"actor":{"display_login":"wwylele"}}