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
<thisara...@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.
>
> --
> unsubscribe: 
> android-kernel+unsubscr...@googlegroups.com<android-kernel%2bunsubscr...@googlegroups.com>
> website: http://groups.google.com/group/android-kernel




-- 
Regards,
Karthik Venugopal Poduval
Ph: 09384808733

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

Reply via email to