> ...
>
> もっと読む ≫
--
beagleboard.org@gmail.com is maintained by Suresh Kalidasan to develop Linux Community in India.
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=0xc0400000
/dev/video0 [v4l2]: ioctl VIDIOC_QUERYCAP: Invalid argument
/dev/video0 [v4l]: no overlay support
# v4l-info
### video4linux device info [/dev/video0] ###
general info
VIDIOCGCAP
name : "Qtec Webcam 100"
type : 0x1 [CAPTURE]
channels : 1
audios : 0
maxwidth : 352
maxheight : 288
minwidth : 160
minheight : 120
channels
VIDIOCGCHAN(0)
channel : 0
name : "PAC207BCA"
tuners : 0
flags : 0x0 []
type : CAMERA
norm : 0
picture
VIDIOCGPICT
brightness : 10496
hue : 0
colour : 0
contrast : 30720
whiteness : 0
depth : 24
palette : RGB24
/******************************************/
I tried to change pixel format in the macro
#define
PIXEL_FORMAT V4L2_PIX_FMT_RGB24
i needs to change anything in v4l2-camera.patch to make this work with android or it straight forward works.
Thanks & Regards
Deepak
Great work here. I just add to the freerunner and I will test
on it using an usb camera
Michael
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 <atsuoi...@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
> 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>
> > > >> > > > 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
>
> > frameworks/base/camera/libcameraservice/CameraHardware.cpp:162:
> > > >> error:
> > > >> > > > > 'android::status_t android::CameraHardware::startRecording' is
> > not
> > > >> a
> > > >> > > static
> > > >> > > > > member of 'class android::CameraHardware'
>
> > frameworks/base/camera/libcameraservice/CameraHardware.cpp:162:
> > > >> error:
> > > >> > > > > 'recording_callback' was not declared in this scope
>
> > frameworks/base/camera/libcameraservice/CameraHardware.cpp:162:
> > > >> error:
> > > >> > > > > expected primary-expression before 'void'
>
> > frameworks/base/camera/libcameraservice/CameraHardware.cpp:162:
> > > >> error:
> > > >> > > > > initializer expression list treated as compound expression
>
> > frameworks/base/camera/libcameraservice/CameraHardware.cpp:163:
> > > >> error:
> > > >> > > > > expected ',' or ';' before '{' token
> > > >> > > > > make: ***
>
> > [out/target/product/beagle/obj/SHARED_LIBRARIES/libcamera_intermediates/Cam
> > > >> > > eraHardware.o]
> > > >> > > > > Error 1
>
> > > >> > > > > I also attach my Android.mk file.
>
> > > >> > > > > Thanks and Regards,
> > > >> > > > > HarishKumar.V
>
> > > >> > > > > On Tue, Jun 23, 2009 at 4:16 PM, Androidphan <
> > > >> niels.kee...@tass.nl>
> > > >> > > wrote:
>
> > > >> > > > >> Was it useful?
>
> > > >> > > > >> On Jun 21, 3:45 pm, Harishkumar V <harishpres...@gmail.com>
> > > >> wrote:
> > > >> > > > >> > 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 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
> > > >> "framework/base/camera/libcameraservice/CameraService.cpp"
> > > >> > > file.
> > > >> > > > >> > > > Specifically, in the "startPreview" function, the
> > preview
> > > >> frame
> > > >> > > > >> format
> > > >> > > > >> > > > is hardcoded to "YCbCr_420_SP", as in:
>
> > > >> > > > >> > > > mSurface->registerBuffers(w, h, w, h,
> > > >> > > > >> > > > PIXEL_FORMAT_YCbCr_420_SP, ... );
>
> > > >> > > > >> > > > You will need to change this hardcoded value to match
> > the
> > > >> pixel
> > > >> > > > >> format
> > > >> > > > >> > > > of the frames you are producing. I think in there are
> > only
> > > >> a
> > > >> > > couple
> > > >> > > > >> > > > of supported format choices. I believe "RGB_565" is
> > > >> supported.
> > > >> > > > >> Give
> > > >> > > > >> > > > it a try.
>
> > > >> > > > >> > > > Steve.
>
> > > >> > > > >> > > > On May 13, 8:21 am, blindfold <
> > seeingwithso...@gmail.com>
> > > >> > > wrote:
>
> > > >> > > > >> > > > > Don't know why the Android team dropped color preview
> > > >> from the
> > > >> > > > >> > > > > emulator with recent SDKs. Color preview was still
> > > >> present and
> > > >> > > > >> fully
> > > >> > > > >> > > > > functional in the SDK M5 RC15 emulator, but then it
> > > >> stopped
> > > >> > > > >> working as
> > > >> > > > >> > > > > of SDK 0.9 beta even though the color info is still
> > in
> > > >> the
> > > >> > > preview
> > > >> > > > >> > > > > callback data[] with the moving checkerboard. See my
> > > >> issue 822
> > > >> > > > >> > >http://code.google.com/p/android/issues/detail?id=822
>
> > > >> > > > >> > > > > I think you will have to write/adapt your own camera
> > > >> preview
> > > >> > > > >> branch to
> > > >> > > > >> > > > > get color, either by fixing the emulator code or by
> > > >> adapting
> > > >> > > the
> > > >> > > > >> G1
> > > >> > > > >> > > > > hardware code (or better still, submit a patch such
> > that
> > > >> > > everybody
> > > >> > > > >> > > > > will benefit).
>
> > > >> > > > >> > > > > On May 13, 3:00 pm, Androidphan <
> > niels.kee...@tass.nl>
> > > >> wrote:
>
> > > >> > > > >> > > > > > I'm porting Android to a x86 netbook. But why is
> > color
> > > >> > > ignored?
> > > >> > > > >> Can't
> > > >> > > > >> > > > > > I get this working?
>
> > > >> > > > >> > > > > > On
>
>
> もっと読む >>
--~--~---------~--~----~------------~-------~--~----~
unsubscribe: android-porti...@googlegroups.com
website: http://groups.google.com/group/android-porting
-~----------~----~----~----~------~----~------~--~---