Account Options

  1. Sign in
The old Google Groups will be going away soon.
Switch to the new Google Groups.
Google Groups Home
« Groups Home
V4L2 Camera interface
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  Messages 1 - 25 of 80 - Collapse all  -  Translate all to Translated (View all originals)   Newer >
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Androidphan  
View profile  
 More options May 6 2009, 10:19 am
From: Androidphan <niels.kee...@tass.nl>
Date: Wed, 6 May 2009 07:19:46 -0700 (PDT)
Local: Wed, May 6 2009 10:19 am
Subject: V4L2 Camera interface
I'm currently trying to replace the CameraHardwareStub with my own
CameraHardware which uses the v4l2 interface. Now I can capture jpeg
frames from the camera which will be automatically saved onto the SD
card.

I'm having problems with my preview video. I'm not getting a preview
image on my screen. It seems that Android is using some kind of YUV422
format? At the moment I'm getting my frames in YUYV format. How can I
convert this into the format Android is using for it's preview video?

As I get this right, the memory base that's given with
mPreviewCallback is used for preview video?


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Harishkumar V  
View profile  
 More options May 6 2009, 11:52 am
From: Harishkumar V <harishpres...@gmail.com>
Date: Wed, 6 May 2009 21:22:43 +0530
Local: Wed, May 6 2009 11:52 am
Subject: Re: [android-porting] V4L2 Camera interface

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


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
teddy.teddypig@gmail.com  
View profile  
 More options May 6 2009, 8:54 pm
From: "teddy.teddy...@gmail.com" <teddy.teddy...@gmail.com>
Date: Thu, 07 May 2009 08:54:25 +0800
Local: Wed, May 6 2009 8:54 pm
Subject: Re: [android-porting] V4L2 Camera interface
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 video from camera but
the  image are not correct. We doubt that the YUYV pattern of our camera
is different from android system demanded.
thanks.

Androidphan write:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Androidphan  
View profile  
 More options May 7 2009, 3:59 am
From: Androidphan <niels.kee...@tass.nl>
Date: Thu, 7 May 2009 00:59:39 -0700 (PDT)
Local: Thurs, May 7 2009 3:59 am
Subject: Re: V4L2 Camera interface
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?

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Harishkumar V  
View profile  
 More options May 7 2009, 4:46 am
From: Harishkumar V <harishpres...@gmail.com>
Date: Thu, 7 May 2009 14:16:48 +0530
Local: Thurs, May 7 2009 4:46 am
Subject: Re: [android-porting] Re: V4L2 Camera interface

Hi Androidphan,

Can you share the camera stub source, we are facing the same problem.
It would be appreciated.

Thanks and Regards,
HarishKumar.V


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
teddy.teddypig@gmail.com  
View profile  
 More options May 7 2009, 4:50 am
From: "teddy.teddy...@gmail.com" <teddy.teddy...@gmail.com>
Date: Thu, 07 May 2009 16:50:00 +0800
Subject: Re: [android-porting] Re: V4L2 Camera interface

Hi androidphan,
        See my attachment for get preview image.(unfortunately, android app
seems only takes the Y filed but u and v.So our preview image is single
colored)
        You should transfer ur raw data YUYV to YYYYUUVV format as our
device.cpp write.

Androidphan 写道:

  libcameraservice.tar.gz
139K Download

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Androidphan  
View profile  
 More options May 7 2009, 10:41 am
From: Androidphan <niels.kee...@tass.nl>
Date: Thu, 7 May 2009 07:41:33 -0700 (PDT)
Local: Thurs, May 7 2009 10:41 am
Subject: Re: V4L2 Camera interface
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"


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Harishkumar V  
View profile   Translate to Translated (View Original)
 More options May 7 2009, 10:59 pm
From: Harishkumar V <harishpres...@gmail.com>
Date: Fri, 8 May 2009 08:29:10 +0530
Local: Thurs, May 7 2009 10:59 pm
Subject: Re: [android-porting] Re: V4L2 Camera interface

Hi Androidplan,

you can see android_build/external/opencore/colorconvert/

there lot of conersions are available.

Thanks and Regards,
HarishKumar.V


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Harishkumar V  
View profile   Translate to Translated (View Original)
 More options May 7 2009, 11:07 pm
From: Harishkumar V <harishpres...@gmail.com>
Date: Fri, 8 May 2009 08:37:05 +0530
Local: Thurs, May 7 2009 11:07 pm
Subject: Re: [android-porting] Re: V4L2 Camera interface

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>


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Androidphan  
View profile   Translate to Translated (View Original)
 More options May 8 2009, 2:41 am
From: Androidphan <niels.kee...@tass.nl>
Date: Thu, 7 May 2009 23:41:45 -0700 (PDT)
Local: Fri, May 8 2009 2:41 am
Subject: Re: V4L2 Camera interface
Thanks for the tip, I'll let you know if it worked.

On May 8, 5:07 am, Harishkumar V <harishpres...@gmail.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Harishkumar V  
View profile   Translate to Translated (View Original)
 More options May 8 2009, 4:08 am
From: Harishkumar V <harishpres...@gmail.com>
Date: Fri, 8 May 2009 13:38:53 +0530
Local: Fri, May 8 2009 4:08 am
Subject: Re: [android-porting] Re: V4L2 Camera interface

Hi,

i tried to compile libcameraservice.tgz, but its failing.

Am i need to modify other files. if so, what are the files.

Thanks and Regards,
HarishKumar.V

2009/5/8 Androidphan <niels.kee...@tass.nl>


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Androidphan  
View profile   Translate to Translated (View Original)
 More options May 11 2009, 10:15 am
From: Androidphan <niels.kee...@tass.nl>
Date: Mon, 11 May 2009 07:15:44 -0700 (PDT)
Local: Mon, May 11 2009 10:15 am
Subject: Re: V4L2 Camera interface
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:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Steve Fischer  
View profile   Translate to Translated (View Original)
 More options May 11 2009, 10:17 am
From: Steve Fischer <steve2...@gmail.com>
Date: Mon, 11 May 2009 07:17:16 -0700 (PDT)
Local: Mon, May 11 2009 10:17 am
Subject: Re: V4L2 Camera interface
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 full color preview, the preview frames would have to be
converted to RGB, likely RGB565, but this will take more time per
frame, since the YUV->RGB conversion is more complicated.

Steve.

On May 8, 3:08 am, Harishkumar V <harishpres...@gmail.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Androidphan  
View profile   Translate to Translated (View Original)
 More options May 12 2009, 9:29 am
From: Androidphan <niels.kee...@tass.nl>
Date: Tue, 12 May 2009 06:29:10 -0700 (PDT)
Local: Tues, May 12 2009 9:29 am
Subject: Re: V4L2 Camera interface
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:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
blindfold  
View profile  
 More options May 12 2009, 9:44 am
From: blindfold <seeingwithso...@gmail.com>
Date: Tue, 12 May 2009 06:44:56 -0700 (PDT)
Local: Tues, May 12 2009 9:44 am
Subject: Re: V4L2 Camera interface
http://groups.google.com/group/android-developers/browse_thread/threa...

On May 11, 4:15 pm, Androidphan <niels.kee...@tass.nl> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Androidphan  
View profile  
 More options May 13 2009, 5:43 am
From: Androidphan <niels.kee...@tass.nl>
Date: Wed, 13 May 2009 02:43:35 -0700 (PDT)
Local: Wed, May 13 2009 5:43 am
Subject: Re: V4L2 Camera interface
Thanks for the reply. But I already converted my yuyv frame into
yuv420sp yuv422sp yuv422, rgb 565, no luck at all.

On May 12, 3:44 pm, blindfold <seeingwithso...@gmail.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
blindfold  
View profile  
 More options May 13 2009, 8:31 am
From: blindfold <seeingwithso...@gmail.com>
Date: Wed, 13 May 2009 05:31:05 -0700 (PDT)
Local: Wed, May 13 2009 8:31 am
Subject: Re: V4L2 Camera interface
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 the other hand does show the color preview,
but uses a quite different (YUV420) encoding with 3/2 * width * height
bytes per preview frame.

On May 13, 11:43 am, Androidphan <niels.kee...@tass.nl> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Androidphan  
View profile  
 More options May 13 2009, 9:00 am
From: Androidphan <niels.kee...@tass.nl>
Date: Wed, 13 May 2009 06:00:22 -0700 (PDT)
Local: Wed, May 13 2009 9:00 am
Subject: Re: V4L2 Camera interface
I'm porting Android to a x86 netbook. But why is color ignored? Can't
I get this working?

On May 13, 2:31 pm, blindfold <seeingwithso...@gmail.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
blindfold  
View profile  
 More options May 13 2009, 9:21 am
From: blindfold <seeingwithso...@gmail.com>
Date: Wed, 13 May 2009 06:21:28 -0700 (PDT)
Local: Wed, May 13 2009 9:21 am
Subject: Re: V4L2 Camera interface
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:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Steve Fischer  
View profile  
 More options May 13 2009, 11:11 am
From: Steve Fischer <steve2...@gmail.com>
Date: Wed, 13 May 2009 08:11:15 -0700 (PDT)
Local: Wed, May 13 2009 11:11 am
Subject: Re: V4L2 Camera interface
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:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Androidphan  
View profile  
 More options Jun 17 2009, 4:16 am
From: Androidphan <niels.kee...@tass.nl>
Date: Wed, 17 Jun 2009 01:16:08 -0700 (PDT)
Local: Wed, Jun 17 2009 4:16 am
Subject: Re: V4L2 Camera interface
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:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Harishkumar V  
View profile  
 More options Jun 21 2009, 9:45 am
From: Harishkumar V <harishpres...@gmail.com>
Date: Sun, 21 Jun 2009 19:15:16 +0530
Local: Sun, Jun 21 2009 9:45 am
Subject: Re: [android-porting] Re: V4L2 Camera interface

Hi AndroidPlan,

Can u update the latest source and share or attach it.

Thanks and Regards,
HarishKumar.V


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Androidphan  
View profile  
 More options Jun 22 2009, 2:53 am
From: Androidphan <niels.kee...@tass.nl>
Date: Sun, 21 Jun 2009 23:53:44 -0700 (PDT)
Local: Mon, Jun 22 2009 2:53 am
Subject: Re: V4L2 Camera interface
Source can be found here:
http://android-m912.googlecode.com/files/v4l2_camera_v2.patch

This is a V4L2 implementation for a UVC camera with mmap support and
output format V4L2_PIX_FMT_YUYV.

On Jun 21, 3:45 pm, Harishkumar V <harishpres...@gmail.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Androidphan  
View profile  
 More options Jun 23 2009, 6:46 am
From: Androidphan <niels.kee...@tass.nl>
Date: Tue, 23 Jun 2009 03:46:49 -0700 (PDT)
Local: Tues, Jun 23 2009 6:46 am
Subject: Re: V4L2 Camera interface
Was it useful?

On Jun 21, 3:45 pm, Harishkumar V <harishpres...@gmail.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Harishkumar V  
View profile  
 More options Jun 23 2009, 8:31 am
From: Harishkumar V <harishpres...@gmail.com>
Date: Tue, 23 Jun 2009 18:01:05 +0530
Local: Tues, Jun 23 2009 8:31 am
Subject: Re: [android-porting] Re: V4L2 Camera interface

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

  Android.mk
1K Download

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Messages 1 - 25 of 80   Newer >
« Back to Discussions « Newer topic     Older topic »