prepare errors when open videocamera(pxa3xx)

by linzhangkun » Wed, 11 Nov 2009 02:54:08 GMT


Sponsored Links
 ow,I can see the preview when open the camera, but the preview is
very blurred.This is the first problem now.

And the second problem is about the videorecorder.When I open the
videorecorder,the screen just turns to be black and nothing
happens.From the COM's output, I can see below:

key 0x1c reported
key 0x1c reported
pxa_camera_ioctl(line 4520): pxa_camera_ioctl: cmd= 3221509671,
param= 1088461772l

camera_do_ioctl(line 3266): VIDIOC_S_INPUT

camera_do_ioctl(line 3268): arg_id value ====== 1

ov3640_init
finish SENSOR_HIGH power_on!
sensor reset
reset over
camera_do_ioctl(line 3696): return value = 0

pxa_camera_ioctl(line 4520): pxa_camera_ioctl: cmd= 3234616854,
param= 1088461408l

camera_do_ioctl(line 3329): VIDIOC_S_PARM

camera_do_ioctl(line 3696): return value = 0

pxa_camera_ioctl(line 4520): pxa_camera_ioctl: cmd= 3234616837,
param= 1088461204l

camera_do_ioctl(line 3201): VIDIOC_S_FMT VIDIOC_TRY_FMT

camera_do_ioctl(line 3696): return value = 0

pxa_camera_ioctl(line 4520): pxa_camera_ioctl: cmd= 3222558216,
param= 1088461596l

camera_do_ioctl(line 3557): VIDIOC_REQBUFS

camera_do_ioctl(line 3696): return value = 0

pxa_camera_ioctl(line 4520): pxa_camera_ioctl: cmd= 3225703945,
param= 1088461528l

camera_do_ioctl(line 3442): VIDIOC_QUERYBUF

camera_do_ioctl(line 3696): return value = 0

pxa_camera_ioctl(line 4520): pxa_camera_ioctl: cmd= 3225703945,
param= 1088461528l

camera_do_ioctl(line 3442): VIDIOC_QUERYBUF

camera_do_ioctl(line 3696): return value = 0

pxa_camera_ioctl(line 4520): pxa_camera_ioctl: cmd= 3225703945,
param= 1088461528l

camera_do_ioctl(line 3442): VIDIOC_QUERYBUF

camera_do_ioctl(line 3696): return value = 0

pxa_camera_ioctl(line 4520): pxa_camera_ioctl: cmd= 3225703945,
param= 1088461528l

camera_do_ioctl(line 3442): VIDIOC_QUERYBUF

camera_do_ioctl(line 3696): return value = 0

pxa_camera_ioctl(line 4520): pxa_camera_ioctl: cmd= 1074026002,
param= 1088461612l

camera_do_ioctl(line 3590): VIDIOC_STREAMON begin++++++++++++++++

pxa_camera_ioctl_streamon ++++++++++++++ begin
camera_start_capture begin...............
para defaut yuv 422
camera_context->capture_input_width=320
camera_context->capture_input_height=240
ov3640 set QVGA YUV setting
wait focus-----------
camera_start_capture end ...................
pxa_camera_ioctl_streamon ++++++++++++++++++++end
camera_do_ioctl(line 3601): VIDIOC_STREAMON end++++++++++++++++++++

camera_do_ioctl(line 3696): return value = 0

pxa_camera_irq(line 3975): buf_id = 0

pxa_camera_irq(line 3975): buf_id = 1

pxa_camera_irq(line 3975): buf_id = 2

pxa_camera_irq(line 3975): buf_id = 3

pxa_camera_ioctl(line 4520): pxa_camera_ioctl: cmd= 3225703951,
param= 1088461508l

camera_do_ioctl(line 3470): VIDIOC_QBUF

camera_do_ioctl(line 3696): return value = 0

pxa_camera_ioctl(line 4520): pxa_camera_ioctl: cmd= 3225703951,
param= 1088461508l

camera_do_ioctl(line 3470): VIDIOC_QBUF

camera_do_ioctl(line 3696): return value = 0

pxa_camera_ioctl(line 4520): pxa_camera_ioctl: cmd= 3225703951,
param= 1088461508l

camera_do_ioctl(line 3470): VIDIOC_QBUF

camera_do_ioctl(line 3696): return value = 0

pxa_camera_ioctl(line 4520): pxa_camera_ioctl: cmd= 3225703951,
param= 1088461508l

camera_do_ioctl(line 3470): VIDIOC_QBUF

camera_do_ioctl(line 3696): return value = 0

pxa_camera_irq(



prepare errors when open videocamera(pxa3xx)

by linzhangkun » Thu, 12 Nov 2009 14:25:21 GMT


 Now,when I open camera first,then turn it to the video mode from the
menu,I can see the video preview,but no buttons can respond to my
actions.I can just see the video preview.From the logcat, I alse see
the prepare errors.



When I open the camcorder directly,the problem is still the
same,nothing happens just the black screen and the prepare errors.

In the cameraharware.cpp,I see the code about videorecorder below:

status_t CameraHardware::startRecording(recording_callback cb, void*
user)
{
    return UNKNOWN_ERROR;
}

void CameraHardware::stopRecording()
{
}

bool CameraHardware::recordingEnabled()
{
    return false;
//return true;
}

void CameraHardware::releaseRecordingFrame(const sp<IMemory>& mem)
{
}

Why?These functions do nothing but just return unknown error.

Would you please give som help as soon as possible?



Thank you,

Best regards.

-- 


Sponsored Links


Other Threads

1. Android Emulator and compiled source.

I know its a silly question, but I cant seem to find the answer.

Is it possible to run code i have compiled on the emulator ? I cant
work out how to do it.

I am happier using the command line if that helps.

I just want to compile my own rom and play about with it, but it would
be easier to test using the emulator rather than having to reflash my
phone every 10 minutes.

cheers in advance

--~--~---------~--~----~------------~-------~--~----~

2. Changing the Build Target

I have 2 versions of a "Hello,World" project. Both were newly built.
One I built with Android 1.5-API Level 3 and one with Android1.6-API
Level 4.

If I run them as initially setup then they both run fine.

I then changed the build target of the 1.6-API Level 4 down to 1.5-API
Level 3 via right clicking on the project, selecting "Properties" and
then "Andoird" and selecting a different build target.

The "Android 1.6" icon is changed to an "Android 1.5" icon in the
Package Explorer but when I rebuild and rerun I get the following
error:

[2009-09-29 19:05:57 - MyFirstAndroidApp]ERROR: Application requires
API version 4. Device API version is 3 (Android 1.5).
[2009-09-29 19:05:57 - MyFirstAndroidApp]Launch canceled!

Has anyone else experienced this problem in changing the build target?

Thanks

Graham
--~--~---------~--~----~------------~-------~--~----~

3. 10 ways Google's made Android more awesome

4. Favorite app reviewed thus far?

5. Hey Google I need to know

6. onscreen keyboard on/off?

7. Get next Alarm