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 requires RGB
data to be display real time image data in screen i believe.

Pls do give your comment

Cheers,
Suresh Kalidasan.

On Sat, Jul 18, 2009 at 9:04 PM, suresh <beagleboard....@gmail.com> wrote:

>
> 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 request Androidplan to light up with ideas on how to get RAW to
> JPEG instead of YUV to JPEG.
>
> Thanks,
> Suresh Kalidasan.
>
> On Jul 17, 3:14 pm, Alexguitar <alexgui...@gmail.com> wrote:
> > 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): setParameters()
> > 01-21 02:08:36.909: ERROR/V4L2Camera(995): Open: VIDIOC_S_FMT Failed:
> > I/O error
> > 01-21 02:08:37.919: ERROR/V4L2Camera(995): StartStreaming: Unable to
> > start capture: I/O error
> >
> >  Anyone knows how to solve it?
> >
> > On 7月14日, 下午7時30分, Marcus <marcus.figuer...@gmail.com> wrote:
> >
> > > 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 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 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 camera.
> > > > > 2) I got a black screen. In this case, I am using UVCvideo driver.
> >
> > > > > So ... I wonder if anyone knows what I am missing :( ! Thanks a
> lot!
> >
> > > > > Marcus.
> >
> > > > > On 11 jul, 05:17, Harishkumar V <harishpres...@gmail.com> wrote:
> >
> > > > > > Hi Atsuo Igarashi,
> >
> > > > > > I am trying the same patch on my beagle board. i am using android
> kernel
> > > > > > 2.6.29.
> > > > > > my usb webcam is not uvc. my resolution is 320x240.
> >
> > > > > > my webcam is v4l2. it got detected and using v4l-info i can see
> it.
> >
> > > > > > when i click the camcorder application, only green colour or some
> random
> > > > > > dotted pixels coming.
> >
> > > > > > Is there any thing other than this patch, we have to put for
> beagleboard.
> >
> > > > > > Thanks and Regards,
> > > > > > HarishKumar.V
> >
> > > > > > 2009/6/24 Atsuo Igarashi <atsuoigara...@gmail.com>
> >
> > > > > > > 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.
> >
> > > > > > > AuthorDriver and MediaRecorder are failed with max-filesize
> error.
> >
> > > > > > > 3. change resolution to 352x288 in CameraHardware.cpp.
> >
> > > > > > > Thank you Androidphan!
> >
> > > > > > > Regards,
> > > > > > > Atsuo
> >
> > > > > > > On 6月24日, 午後2:07, Harishkumar V <harishpres...@gmail.com>
> wrote:
> > > > > > > > Hi Androidplan,
> >
> > > > > > > > My BB got damaged, i do not have hardware for now, it will
> come in a
> > > > > > > week's
> > > > > > > > time.
> >
> > > > > > > > But, ur code looks like standard v4l2 interface using mmap.
> It should
> > > > > > > work
> > > > > > > > with any normal usb webcam with the resolution alone
> changing.
> >
> > > > > > > > Anyway, i test it and confirm u.
> >
> > > > > > > > Thanks and Regards,
> > > > > > > > HarishKumar.V
> >
> > > > > > > > On Tue, Jun 23, 2009 at 8:01 PM, Androidphan <
> niels.kee...@tass.nl>
> > > > > > > wrote:
> >
> > > > > > > > > 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>
> >
> > > > > > > > > > Thanks and Regards,
> > > > > > > > > > HarishKumar.V
> >
> > > > > > > > > > On Tue, Jun 23, 2009 at 6:45 PM, Harishkumar V <
> > > > > > > harishpres...@gmail.com
> > > > > > > > > >wrote:
> >
> > > > > > > > > > > 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:
> >
> > > > > > > > > > >> 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>
> > > > > > > > > > >> 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:
> > > > > > > > > > >> > > > 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 out that
> part.
> >
> > > > > > > > > > >> > > > after doing the above things, it compiled,
> during linking,
> > > > > > > it
> > > > > > > > > > >> reports the
> > > > > > > > > > >> > > > following,
> >
> > > > > > > > > > >> > > > target SharedLib: libcamera
> >
> > > > > > >
> (out/target/product/beagle/obj/SHARED_LIBRARIES/libcamera_intermediates/LIN
> > > > > > > > > > >> > > KED/libcamera.so)
> >
> > > > > > >
> out/target/product/beagle/obj/SHARED_LIBRARIES/libcamera_intermediates/V4L2
> > > > > > > > > > >> > > Camera.o:
> > > > > > > > > > >> > > > In function
> `android::V4L2Camera::saveYUYVtoJPEG(unsigned
> > > > > > > char*,
> > > > > > > > > > >> int,
> > > > > > > > > > >> > > int,
> > > > > > > > > > >> > > > __sFILE*, int)':
> > > > > > > > > > >> > > >
> frameworks/base/camera/libcameraservice/V4L2Camera.cpp:320:
> > > > > > > > > > >> undefined
> > > > > > > > > > >> > > > reference to `jpeg_std_error(jpeg_error_mgr*)'
> > > > > > > > > > >> > > >
> frameworks/base/camera/libcameraservice/V4L2Camera.cpp:321:
> > > > > > > > > > >> undefined
> > > > > > > > > > >> > > > reference to
> `jpeg_CreateCompress(jpeg_compress_struct*,
> > > > > > > int,
> > > > > > > > > > >> unsigned
> > > > > > > > > > >> > > int)'
> > > > > > > > > > >> > > >
> frameworks/base/camera/libcameraservice/V4L2Camera.cpp:322:
> > > > > > > > > > >> undefined
> > > > > > > > > > >> > > > reference to
> `jpeg_stdio_dest(jpeg_compress_struct*,
> > > > > > > __sFILE*)'
> > > > > > > > > > >> > > >
> frameworks/base/camera/libcameraservice/V4L2Camera.cpp:331:
> > > > > > > > > > >> undefined
> > > > > > > > > > >> > > > reference to
> `jpeg_set_defaults(jpeg_compress_struct*)'
> > > > > > > > > > >> > > >
> frameworks/base/camera/libcameraservice/V4L2Camera.cpp:332:
> > > > > > > > > > >> undefined
> > > > > > > > > > >> > > > reference to
> `jpeg_set_quality(jpeg_compress_struct*, int,
> > > > > > > int)'
> > > > > > > > > > >> > > >
> frameworks/base/camera/libcameraservice/V4L2Camera.cpp:334:
> > > > > > > > > > >> undefined
> > > > > > > > > > >> > > > reference to
> `jpeg_start_compress(jpeg_compress_struct*,
> > > > > > > int)'
> > > > > > > > > > >> > > >
> frameworks/base/camera/libcameraservice/V4L2Camera.cpp:368:
> > > > > > > > > > >> undefined
> > > > > > > > > > >> > > > reference to
> `jpeg_write_scanlines(jpeg_compress_struct*,
> > > > > > > > > unsigned
> > > > > > > > > > >> > > char**,
> > > > > > > > > > >> > > > unsigned int)'
> > > > > > > > > > >> > > >
> frameworks/base/camera/libcameraservice/V4L2Camera.cpp:371:
> > > > > > > > > > >> undefined
> > > > > > > > > > >> > > > reference to
> `jpeg_finish_compress(jpeg_compress_struct*)'
> > > > > > > > > > >> > > >
> frameworks/base/camera/libcameraservice/V4L2Camera.cpp:373:
> > > > > > > > > > >> undefined
> > > > > > > > > > >> > > > reference to
> `jpeg_destroy_compress(jpeg_compress_struct*)'
> > > > > > > > > > >> > > > collect2: ld returned 1 exit status
> >
> > > > > > > > > > >> > > > Thanks and Regards,
> > > > > > > > > > >> > > > HarishKumar.V
> >
> > > > > > > > > > >> > > > On Tue, Jun 23, 2009 at 6:01 PM, Harishkumar V <
> > > > > > > > > > >> harishpres...@gmail.com
> > > > > > > > > > >> > > >wrote:
> >
> > > > > > > > > > >> > > > > Hi Androidplan,
> >
> > > > > > > > > > >> > > > > I downloaded and during compiling its showing
> errors,arget
> > > > > > > > > thumb
> > > > > > > > > > >> C++:
> > > > > > > > > > >> > > > > libcamera <=
> > > > > > > > > > >>
> frameworks/base/camera/libcameraservice/CameraHardware.cpp
> > > > > > > > > > >> > > > > In file included from
> >
> > > > > > > frameworks/base/camera/libcameraservice/CameraHardware.cpp:21:
> >
> > > > > > > > >
> frameworks/base/camera/libcameraservice/CameraHardware.h:28:21:
> > > > > > > > > > >> error:
> > > > > > > > > > >> > > > > jpeglib.h: No such file or directory
> > > > > > > > > > >> > > > > In file included from
> >
> > > > > > > frameworks/base/camera/libcameraservice/CameraHardware.cpp:21:
> >
> > > > > > > frameworks/base/camera/libcameraservice/CameraHardware.h:42:
> > > > > > > > > > >> error:
> > > > > > > > > > >> > > > > 'recording_callback' has not been declared
> >
> > ...
> >
> > read more »
>
> >
>


-- 
beagleboard....@gmail.com is maintained by Suresh Kalidasan to develop Linux
Community in India.

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

Reply via email to