Implement Camera Support for Android Emulator using Web Cam

336 views
Skip to first unread message

Thisara Rupasinghe

unread,
Apr 17, 2010, 12:26:49 PM4/17/10
to android-d...@googlegroups.com, android-...@googlegroups.com, android...@googlegroups.com, android...@googlegroups.com, di...@android.com
Hi,

I'm interested in implementing the Camera support for Android emulator using webcam. Therefore these days im looking into android emulators source code for get some information regarding this.

And I'm thinking of using GStreamer for access webcam. But since this is linux library this wont work for windows system. Is there anything that will work on both of these platforms. What is the strategy used in the android emulator to achieve the platform independence?
And can't we use the same thing to make webcam implementation work both on windows and linux?

Please help if you are aware of these things.

--
Thanks & Regards,
Thisara.

--
You received this message because you are subscribed to the Google Groups "android-platform" group.
To post to this group, send email to android-...@googlegroups.com.
To unsubscribe from this group, send email to android-platfo...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/android-platform?hl=en.

Thisara Rupasinghe

unread,
Apr 17, 2010, 1:42:09 PM4/17/10
to android...@googlegroups.com, android-d...@googlegroups.com, android-...@googlegroups.com, android...@googlegroups.com, di...@android.com
Hi Karthik,

Thank you very much for ur comments.
Within the emulator didnt it talk to any hardware devices on the machine?

Is there anyone knows abt this pls help...
Can we talk to webcam from the QEMU ARM environment, that is from the android emulator and the changes need to be done?

On Sat, Apr 17, 2010 at 10:44 PM, karthik poduval <karthik...@gmail.com> wrote:
Hi,

To implement a camera device in Android, you need to write a new Camera HAL layer. Now between the emulator and real device, there is different HAL for emulator and a different one for the real device. Now the emulator Camera HAL is basically something that generates a dummy video frame(like a virtual video device). In case of the device, the HAL would talk to V4L2(Video for Linux) framework to get camera frames. 

You need to modify the emulator HAL and write your own one to support a webcam frame. The Android  emulator is based on QEMU ARM virtualization, so I am not sure how much QEMU will allow for this activity. You need to communicate from a virtualized ARM platform to the native OS video routines(Video for Windows in case of windows). I am really nit sure if its possible through QEMU. Someone more familiar with QEMU could comment on this.

Regards,
Karthik Poduval

On Sat, Apr 17, 2010 at 11:26 AM, Thisara Rupasinghe <thisa...@gmail.com> wrote:
Hi,

I'm interested in implementing the Camera support for Android emulator using webcam. Therefore these days im looking into android emulators source code for get some information regarding this.

And I'm thinking of using GStreamer for access webcam. But since this is linux library this wont work for windows system. Is there anything that will work on both of these platforms. What is the strategy used in the android emulator to achieve the platform independence?
And can't we use the same thing to make webcam implementation work both on windows and linux?

Please help if you are aware of these things.

--
Thanks & Regards,
Thisara.



--
Regards,
Karthik Venugopal Poduval
Ph: 09384808733

--
unsubscribe: android-kerne...@googlegroups.com
website: http://groups.google.com/group/android-kernel

Thisara Rupasinghe

unread,
May 3, 2010, 7:12:32 AM5/3/10
to android...@googlegroups.com, android-...@googlegroups.com, android...@googlegroups.com
Thanks for your comments.

So as far as i know about the emulator, it uses some actual hardware devices of the computer and some are emulated instead of the actual device. Therefore where this differentiate happens, to call actual hardware device or emulated feature. Is it from HAL(Hardware abstraction layer)?
After HAL, the Linux Kernel layer need to be change to cater the needs of the emulator to access particular device or service it need? is that correct understanding? correct me if im wrong...

Thanks

On Tue, Apr 27, 2010 at 12:32 PM, sanjeev sharma <sanjeevs...@gmail.com> wrote:
Hi,

You can talk to hardware device from emulator.One example is connect your modem to emulator through serial device and send
AT commands to Modem.


sanjeev
Reply all
Reply to author
Forward
0 new messages