Re: [android-porting] Re: V4L2 Camera interface

2011-07-12 Thread Paul Chu
Hi Harish, I am sorry that the thread is so long ago... but I got the same problem that the functions of libjpeg *undefined reference* errors too What I don't understand is that jpeglib.h or jpeglib.h is compiler problem, however the undefined reference error is linker problem How could you

Re: [android-porting] Re: V4L2 Camera interface

2010-09-21 Thread Raju Sana
Hi I have ported the similar V4L2 stuff to android2.2 on beagle board , it builds for me but when I click on Camera application it says please insert the SD card . Are there any vold issues in android2.2 ? I guess the media scanner or vold some how unable to detect/mount the SD card such that

[android-porting] Re: V4L2 Camera interface

2009-10-05 Thread Harishkumar V
Hi, u also look at 0xdorid camera HAL implementation On Fri, Oct 2, 2009 at 1:06 AM, Michael Trimarchi trimar...@gandalf.sssup.it wrote: praj wrote: Hi Harish, I'm trying out something similar. I'm able to see /dev/video0. Can you pass me a link to the V4L2 patch? Thanks in

[android-porting] Re: V4L2 Camera interface

2009-10-01 Thread praj
Hi Harish, I'm trying out something similar. I'm able to see /dev/video0. Can you pass me a link to the V4L2 patch? Thanks in advance. On Sep 13, 1:55 pm, Harishkumar V harishpres...@gmail.com wrote: Hi, i am using logitech webcam Thanks and Regards, HarishKumar.V On Wed, Sep 9, 2009

[android-porting] Re: V4L2 Camera interface

2009-10-01 Thread Michael Trimarchi
praj wrote: Hi Harish, I'm trying out something similar. I'm able to see /dev/video0. Can you pass me a link to the V4L2 patch? Thanks in advance. On Sep 13, 1:55 pm, Harishkumar V harishpres...@gmail.com wrote: Hi, i am using logitech webcam Thanks and Regards, HarishKumar.V

[android-porting] Re: V4L2 Camera interface

2009-09-13 Thread Harishkumar V
Hi, i am using logitech webcam Thanks and Regards, HarishKumar.V On Wed, Sep 9, 2009 at 4:00 PM, deepak singal deesin...@gmail.com wrote: Hi Harish, Can you share your USB Webcam name and specification. Thanks Regards Deepak -- Thanks and Regards, Harish Kumar. V

[android-porting] Re: V4L2 Camera interface

2009-09-09 Thread deepak singal
Hi Harish, Can you share your USB Webcam name and specification. Thanks Regards Deepak --~--~-~--~~~---~--~~ unsubscribe: android-porting+unsubscr...@googlegroups.com website: http://groups.google.com/group/android-porting

[android-porting] Re: V4L2 Camera interface

2009-09-01 Thread Michael Trimarchi
Hi, Great work here. I just add to the freerunner and I will test on it using an usb camera Michael --~--~-~--~~~---~--~~ unsubscribe: android-porting+unsubscr...@googlegroups.com website: http://groups.google.com/group/android-porting

[android-porting] Re: V4L2 Camera interface

2009-08-10 Thread deepak singal
Hi Harish, Thanks for reply, my webcam information : /*/ # v4l-conf v4l-conf: using X11 display :0.0 dga: version 2.0 mode: 1024x768, depth=24, bpp=32, bpl=4096, base=0xc040 /dev/video0 [v4l2]: ioctl VIDIOC_QUERYCAP: Invalid argument

[android-porting] Re: V4L2 Camera interface

2009-08-06 Thread deepak singal
Hi all, I'm trying the Androidphan patch on my beagle board. I'm using android kernel 2.6.29. I use USB HP Webcam. /* Kernel msg **/ usb 1-1.2: new full speed USB device using musb_hdrc and address 6 usb 1-1.2: configuration #1 chosen from 1 choice gspca: probing 093a:2460 pac207:

[android-porting] Re: V4L2 Camera interface

2009-08-06 Thread Harishkumar V
Hi Deepak, u can observe the error VIDIOC_QBUF Failed that's causing one of the problem. Also androidphan patch is meant for yuyv cameras. if ur camera is jpeg or other, it wont work. u have to modify the androidphan's patch. Thanks and Regards, HarishKumar.V On Thu, Aug 6, 2009 at 5:51 PM,

[android-porting] Re: V4L2 Camera interface

2009-07-26 Thread Alexguitar
Do you use v4l to open android camera application? Can you share your camera hal code? Thanks to your help. On 7月26日, 上午11時48分, Suresh Kalidasan beagleboard@gmail.com wrote: Sorry i cant help you on this, i tried the same with v4l and it worked for me. If you want some information related

[android-porting] Re: V4L2 Camera interface

2009-07-25 Thread Suresh Kalidasan
Sorry i cant help you on this, i tried the same with v4l and it worked for me. If you want some information related to v4l then let me know. Cheers, SK On Fri, Jul 24, 2009 at 3:56 PM, Alexguitar alexgui...@gmail.com wrote: Hi, everyone. CameraHardwareInterface.h adds virtual spIMemoryHeap

[android-porting] Re: V4L2 Camera interface

2009-07-24 Thread Alexguitar
Hi, everyone. CameraHardwareInterface.h adds virtual spIMemoryHeap getPreviewHeapnew(int i) const = 0 and modifies typedef void (*preview_callback)(const spIMemory mem, int index, void* user);. I used the Androidphan's patch and built code. The result had error.

[android-porting] Re: V4L2 Camera interface

2009-07-21 Thread Suresh Kalidasan
Hi all, I got things happening, my sample test application worked fine i tried initializing my camera in JPEG and saved as direct file in .jpg format, i didn't do any conversion algorithm. I am not sure whether the same can be used for Android's camera application since general gtk display

[android-porting] Re: V4L2 Camera interface

2009-07-20 Thread suresh
Hi All, I tried V4L convert option after reading from camera + Android YUV to JPEG conversion(patch from Androidplan), I got blurred Green colour Image with proper data i.e., Image with greenish dots. V4L is giving raw format output but Androids conversion is working with YUV to JPEG. So i

[android-porting] Re: V4L2 Camera interface

2009-07-17 Thread Alexguitar
Hi, I build code successfully but i opened android camera app ddms show error 01-21 02:08:35.889: ERROR/Camera(1277): _getParameters: picture- format=jpeg;picture-size=640x480;preview-format=yuv422sp;preview-frame- rate=15;preview-size=640x480 01-21 02:08:35.889: ERROR/Camera(1277):

[android-porting] Re: V4L2 Camera interface

2009-07-15 Thread Alexguitar
Hi everybody, Above problem had solved,but i tried to compile again The results: frameworks/base/camera/libcameraservice/CameraHardware.cpp:356: error: cannot allocate an object of abstract type 'android::CameraHardware' Anyone knows how to solve it? On 7月14日, 下午5時22分, Alexguitar

[android-porting] Re: V4L2 Camera interface

2009-07-15 Thread Atsuo Igarashi
Hi, Marcus. Can you try 176x144 resolution? then you have to modify a following line. ./packages/apps/Camera/src/com/android/camera/VideoCamera.java:750: mMediaRecorder.setVideoSize(352,288); Regards, Atsuo On 7月14日, 午後8:30, Marcus marcus.figuer...@gmail.com wrote: Hi, Atsuo. I

[android-porting] Re: V4L2 Camera interface

2009-07-15 Thread Alexguitar
Hi everybody, I put all the error messages in here frameworks/base/camera/libcameraservice/CameraHardware.cpp: In static member function 'static android::spandroid::CameraHardwareInterface android::CameraHardware::createInstance()':

[android-porting] Re: V4L2 Camera interface

2009-07-14 Thread Harishkumar V
Marcus, Even i am facing the same problem, i got the green screen with some crazy pixels changing. Whether u able to fix this by changing resolution to 352x288 in camerahardware.cpp as told by atsuo lgarshi. Thanks and Regards, HarishKumar.V On Tue, Jul 14, 2009 at 9:51 AM, Alexguitar

[android-porting] Re: V4L2 Camera interface

2009-07-14 Thread Alexguitar
Hi, everybody! I am trying to run the Androidphan's patch . My results : build/core/base_rules.mk:117: *** hardware/msm7k/libcamera: MODULE.TARGET.SHARED_LIBRARIES.libcamera already defined by frameworks/ base/camera/libcameraservice. Stop. Anyone knows what I solve it? On 7月14日, 下午2時13分,

[android-porting] Re: V4L2 Camera interface

2009-07-14 Thread Alexguitar
Hi everybody, Above problem had solved,but i tried to compile again The results: frameworks/base/camera/libcameraservice/CameraHardware.cpp: In member function 'int android::CameraHardware::previewThread()': frameworks/base/camera/libcameraservice/CameraHardware.cpp:94: error: invalid conversion

[android-porting] Re: V4L2 Camera interface

2009-07-14 Thread Marcus
Hi, Atsuo. I have already changed the resolution. But the screen continues green for the PAC207 camera. Best regards, Marcus. On 14 jul, 00:39, Atsuo Igarashi atsuoigara...@gmail.com wrote: Hi Marcus. Are you using Android's Camcorder app? If so, did you try to change resolution to

[android-porting] Re: V4L2 Camera interface

2009-07-13 Thread Marcus
Hello, everybody! I am trying to run the Androidphan's patch with Android+BeagleBoard. My results until now: 1) I got a green screen with some crazy pixels changing. The camera is working, because the pixels change according to the camera movement. In this case, I am using a PAC207 chipset

[android-porting] Re: V4L2 Camera interface

2009-07-13 Thread Atsuo Igarashi
Hi Marcus. Are you using Android's Camcorder app? If so, did you try to change resolution to 352x288 in CameraHardware.cpp. Regards, Atsuo On 7月14日, 午前6:28, Marcus marcus.figuer...@gmail.com wrote: Hello, everybody! I am trying to run the Androidphan's patch with Android+BeagleBoard. My

[android-porting] Re: V4L2 Camera interface

2009-07-13 Thread Alexguitar
Hi, Harishkumar V Marcus or everybody You use the v4l2 patch given by androidplan. Do you implement cameraHardwareInterface.h? If you do,can you share your code for me? Thanks a lot. On 7月12日, 下午10時19分, Harishkumar V harishpres...@gmail.com wrote: Hi, That's cool, i am using android-2.6.29

[android-porting] Re: V4L2 Camera interface

2009-07-12 Thread Harishkumar V
Hi, That's cool, i am using android-2.6.29 kernel, so kernel would not pose the problem. the v4l2 patch given by androidplan is enough, or do i need to enable any thing in android stuff . Thanks and Regards, HarishKumar.V On Sat, Jul 11, 2009 at 3:16 PM, Atsuo Igarashi

[android-porting] Re: V4L2 Camera interface

2009-07-11 Thread Atsuo Igarashi
Hi HarishKumar.V, I'm using uvc webcam.(Logitech's QCam) my beagleboard is rev C2, and using kernel is 2.6.28 based + some patches for android from android-2.6.29. http://code.google.com/p/beagleboard/wiki/BeagleboardRevCValidation http://www.youtube.com/watch?v=L7LfVTv02cg Regards, Atsuo On

[android-porting] Re: V4L2 Camera interface

2009-07-10 Thread Alexguitar
Hi Harishkumar, I'm Alex. I tried Androidphan'patch(v4l2_camera_v2.patch) and your Android.mk to compile. I got a lot of error. frameworks/base/camera/libcameraservice/V4L2Camera.cpp:24:27: error: linux/jpeglib.h: No such file or directory

[android-porting] Re: V4L2 Camera interface

2009-07-10 Thread Yi Sun
get rid of inux/ use jpeglib.h On Fri, Jul 10, 2009 at 2:08 AM, Alexguitar alexgui...@gmail.com wrote: Hi Harishkumar, I'm Alex. I tried Androidphan'patch(v4l2_camera_v2.patch) and your Android.mk to compile. I got a lot of error.

[android-porting] Re: V4L2 Camera interface

2009-07-10 Thread Yi Sun
BTW-- you should take the latest patch from his site. Yi 2009/7/10 Yi Sun beyo...@gmail.com get rid of inux/ use jpeglib.h On Fri, Jul 10, 2009 at 2:08 AM, Alexguitar alexgui...@gmail.com wrote: Hi Harishkumar, I'm Alex. I tried Androidphan'patch(v4l2_camera_v2.patch) and your

[android-porting] Re: V4L2 Camera interface

2009-07-01 Thread Harishkumar V
Hi Androidphan, I use Logitech Quickcam Connect Webcam whose raw pix format is JPEG. I tried to change pixel format in the macro #define PIXEL_FORMATV4L2_PIX_FMT_JPEG instead of YUYV. I also changed minimum width and height to 320x240 instead of 640x480. Now, i have one doubt where to

[android-porting] Re: V4L2 Camera interface

2009-06-26 Thread crazygenie
It's working! Thanks Androidphan :-) On Jun 24, 7:04 pm, Ravishankar Haranath rav...@gmail.com wrote: Hi Androidphan, Thanks for this great effort. I will re-build with the changes included and test it again on my netbook. 2009/6/24 Harishkumar V harishpres...@gmail.com Thats gr8...

[android-porting] Re: V4L2 Camera interface

2009-06-26 Thread Harishkumar V
Hi Androidphan, I have one doubt, i have one logitech QuickCam Connect which supports jpeg as raw pixel format unlike other camera's which support RGB or yuv as raw pixel format. whether i needs to change anything in v4l2-camera.patch to make this work with android or it straight forward works.

[android-porting] Re: V4L2 Camera interface

2009-06-26 Thread Androidphan
Your input frames for the camera are jpeg? Then you should change pixel format to V4L2_PIX_FMT_JPEG probably. Also you need to change the size of the buffers. At the moment they are 2 bytes per pixel: width * height * 2. On Jun 26, 1:03 pm, Harishkumar V harishpres...@gmail.com wrote: Hi

[android-porting] Re: V4L2 Camera interface

2009-06-26 Thread Harishkumar V
Androidphan, Thanks, Also, i am using kernel version 2.6.29 and using v4l2, now-a-days i see of lot of applications seems to be working only if u do preloading of libv4l2convert , otherwise the pixel format or the conversion is not happening, the display screen is black. Whether i need to do

[android-porting] Re: V4L2 Camera interface

2009-06-26 Thread Androidphan
I don't know, I never heard of libv4l2convert before. On Jun 26, 2:20 pm, Harishkumar V harishpres...@gmail.com wrote: Androidphan, Thanks, Also, i am using kernel version 2.6.29 and using v4l2, now-a-days i see of lot of applications seems to be working only if u do preloading of

[android-porting] Re: V4L2 Camera interface

2009-06-24 Thread Atsuo Igarashi
Hi Androidphan, My Beagle(ARM based board) is working camcorder and camera app with your v4l2 camera. Points in my environment, 1. change permission of video device. (or change owner?) chmod 666 /dev/video0 2. free space of 1st dos partition on the SD card is made 4Gbyte or less.

[android-porting] Re: V4L2 Camera interface

2009-06-24 Thread Androidphan
I got a patch that fixes the permissions for the video device and the sound device files: http://android-m912.googlecode.com/files/device_permissions.patch I knew that already. The resolution is a fixed and can only be changed by recompiling in CameraHardware.cpp. It is indeed a standard

[android-porting] Re: V4L2 Camera interface

2009-06-24 Thread Ravishankar Haranath
Hi Androidphan, Thanks for this great effort. I will re-build with the changes included and test it again on my netbook. 2009/6/24 Harishkumar V harishpres...@gmail.com Thats gr8... As per Atsuo mail, we have working Standard V4l2 HAL Implementation for android on x-86 and ARM-based BB.

[android-porting] Re: V4L2 Camera interface

2009-06-23 Thread Androidphan
Here it doesn't complain about a missing jpeglib.h, maybe that's because I build it for a x86 target. On Jun 23, 2:31 pm, Harishkumar V harishpres...@gmail.com wrote: Hi Androidplan, I downloaded and during compiling its showing errors,arget thumb C++: libcamera =

[android-porting] Re: V4L2 Camera interface

2009-06-23 Thread Harishkumar V
Hi Androidplan, I am able to provide jpeg headers and its compiling, during linking it reports errors, 1) external/jpeg instead of external/jpeg/include solved the jpeg header problem. 2) As recording_callback was not defined and Start_recording was not used, it returns only Error, i commented

[android-porting] Re: V4L2 Camera interface

2009-06-23 Thread Androidphan
Hmm, the Android.mk does says to include the static library libjpeg... On Jun 23, 2:51 pm, Harishkumar V harishpres...@gmail.com wrote: Hi Androidplan, I am able to provide jpeg headers and its compiling, during linking it reports errors, 1) external/jpeg instead of external/jpeg/include

[android-porting] Re: V4L2 Camera interface

2009-06-23 Thread Harishkumar V
Hi Androidplan, can u send ur Android.mk file. Thanks and Regards, HarishKumar.V On Tue, Jun 23, 2009 at 6:25 PM, Androidphan niels.kee...@tass.nl wrote: Hmm, the Android.mk does says to include the static library libjpeg... On Jun 23, 2:51 pm, Harishkumar V harishpres...@gmail.com wrote:

[android-porting] Re: V4L2 Camera interface

2009-06-23 Thread Androidphan
It can be found here http://android-m912.googlecode.com/files/Android.mk On Jun 23, 2:57 pm, Harishkumar V harishpres...@gmail.com wrote: Hi Androidplan, can u send ur Android.mk file. Thanks and Regards, HarishKumar.V On Tue, Jun 23, 2009 at 6:25 PM, Androidphan niels.kee...@tass.nl

[android-porting] Re: V4L2 Camera interface

2009-06-23 Thread Harishkumar V
Hi Androidplan, I think its problem with the linking of static library with the android. but, in the same android source, the skia includes local static libraries like jpeg. Its mystery. Thanks and Regards, HarishKumar.V On Tue, Jun 23, 2009 at 6:39 PM, Androidphan niels.kee...@tass.nl wrote:

[android-porting] Re: V4L2 Camera interface

2009-06-23 Thread Harishkumar V
Hi Androidplan, The libcamera.so and libcameraservice.so got created. In V4l2Camera.cpp, adding this solves the linking problem, extern C { #include jpeglib.h } instead of jpeglib.h Thanks and Regards, HarishKumar.V On Tue, Jun 23, 2009 at 6:45 PM, Harishkumar V harishpres...@gmail.comwrote:

[android-porting] Re: V4L2 Camera interface

2009-06-23 Thread Androidphan
And does it work for your camera? On Jun 23, 3:20 pm, Harishkumar V harishpres...@gmail.com wrote: Hi Androidplan, The libcamera.so and libcameraservice.so got created. In V4l2Camera.cpp, adding this solves the linking problem, extern C { #include jpeglib.h } instead of jpeglib.h

[android-porting] Re: V4L2 Camera interface

2009-06-23 Thread crazygenie
I tried building it. Build was complete and I could install the image on my X86 netbook. But, when I open the Camera application it shows blank screen with a Camera button in the usual position (Top-Right)!! There seems to be some binder related error that shows up in the console binder:

[android-porting] Re: V4L2 Camera interface

2009-06-21 Thread Harishkumar V
Hi AndroidPlan, Can u update the latest source and share or attach it. Thanks and Regards, HarishKumar.V On Wed, Jun 17, 2009 at 1:46 PM, Androidphan niels.kee...@tass.nl wrote: A bit late, but that solved it. I converted my YUYV to rgb 565 and it worked. On May 13, 5:11 pm, Steve

[android-porting] Re: V4L2 Camera interface

2009-06-17 Thread Androidphan
A bit late, but that solved it. I converted my YUYV to rgb 565 and it worked. On May 13, 5:11 pm, Steve Fischer steve2...@gmail.com wrote: If you are producing RGB565 frames in your CameraHardwareInterface implementation, then you will likely need to make a format change in the

[android-porting] Re: V4L2 Camera interface

2009-05-13 Thread blindfold
I'm not sure what you are doing: the Android emulator code for previewing for instance simply ignores all color data and displays only the Y component, i.e., the first width * height bytes out of the 2 * width * height bytes in the YUV422 data[] in the preview callback. The G1 hardware code on

[android-porting] Re: V4L2 Camera interface

2009-05-13 Thread Steve Fischer
If you are producing RGB565 frames in your CameraHardwareInterface implementation, then you will likely need to make a format change in the framework/base/camera/libcameraservice/CameraService.cpp file. Specifically, in the startPreview function, the preview frame format is hardcoded to

[android-porting] Re: V4L2 Camera interface

2009-05-12 Thread Androidphan
I now have a rgb 565 image, but it also shows only grayscale? On May 11, 4:17 pm, Steve Fischer steve2...@gmail.com wrote: The reason that the preview is only grayscale is that OpenGLES (which is used by Surface Flinger for scene composition) does not support YUV input. Instead, Surface

[android-porting] Re: V4L2 Camera interface

2009-05-11 Thread Androidphan
I'm still not able to get my preview video in color... Is the preview format YUV420 or YUV422 and is it semi-planar so something like Y plane then U0 V0 U1 V1 or V0 U0 V1 U1 ? Can anyone provide details? On May 8, 8:41 am, Androidphan niels.kee...@tass.nl wrote: Thanks for the tip, I'll let

[android-porting] Re: V4L2 Camera interface

2009-05-11 Thread Steve Fischer
The reason that the preview is only grayscale is that OpenGLES (which is used by Surface Flinger for scene composition) does not support YUV input. Instead, Surface Flinger is only passing in the Y component in GLES as a lumiance texture, which gives you the grayscale preview. In order to get a

[android-porting] Re: V4L2 Camera interface

2009-05-08 Thread Androidphan
Thanks for the tip, I'll let you know if it worked. On May 8, 5:07 am, Harishkumar V harishpres...@gmail.com wrote: Hi Androidplan, ignore previous mail. you can see android_build/external/opencore/codecs_v2/utilities/colorconvert/src/ there lot of conersions are available. Thanks and

[android-porting] Re: V4L2 Camera interface

2009-05-07 Thread Androidphan
I now can get a preview through. But still I would like to know how to convert my frame to yuv422sp? How is it stored in memory? --~--~-~--~~~---~--~~ unsubscribe: android-porting+unsubscr...@googlegroups.com website: http://groups.google.com/group/android-porting

[android-porting] Re: V4L2 Camera interface

2009-05-07 Thread Harishkumar V
Hi Androidphan, Can you share the camera stub source, we are facing the same problem. It would be appreciated. Thanks and Regards, HarishKumar.V On Thu, May 7, 2009 at 1:29 PM, Androidphan niels.kee...@tass.nl wrote: I now can get a preview through. But still I would like to know how to

[android-porting] Re: V4L2 Camera interface

2009-05-07 Thread Androidphan
My preview video is now black white only... Anyone from the developers can give a hint on how to convert YUYV to this YUV420/ YUV422 SP format? On May 7, 10:50 am, teddy.teddy...@gmail.com teddy.teddy...@gmail.com wrote: Hi androidphan,         See my attachment for get preview

[android-porting] Re: V4L2 Camera interface

2009-05-07 Thread Harishkumar V
Hi Androidplan, you can see android_build/external/opencore/colorconvert/ there lot of conersions are available. Thanks and Regards, HarishKumar.V On Thu, May 7, 2009 at 8:11 PM, Androidphan niels.kee...@tass.nl wrote: My preview video is now black white only... Anyone from the developers

[android-porting] Re: V4L2 Camera interface

2009-05-07 Thread Harishkumar V
Hi Androidplan, ignore previous mail. you can see android_build/external/opencore/codecs_v2/utilities/colorconvert/src/ there lot of conersions are available. Thanks and Regards, HarishKumar.V 2009/5/8 Harishkumar V harishpres...@gmail.com Hi Androidplan, you can see

[android-porting] Re: V4L2 Camera interface

2009-05-06 Thread Harishkumar V
Hi, Even i am in the course of that only. I am unable to preview video. YUYV to YUV422 conversion in the capturing layer can be tried. Thanks and Regards, HarishKumar.V On Wed, May 6, 2009 at 7:49 PM, Androidphan niels.kee...@tass.nl wrote: I'm currently trying to replace the

[android-porting] Re: V4L2 Camera interface

2009-05-06 Thread teddy.teddy...@gmail.com
Hi, Androidphan, Could you please paste ur CameraHardwareStub.cpp ? We are meeting the exact issue as urs. And we haven't successfully grip our data to be a jpeg file. So , if we can get that from you, it will be very appreciate. BTW, seems YUYV is a kind of YUV422. We can ge