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. ListView getCount question

Hi, ListView.getCount() returns the total number of data items in the
listview.

Does anyone know how to find out the total number of visible views in
the listbox.

Alternately, does anyone know how to see whether the listview will
scroll or not (i.e. if number of visible views < getCount())

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

2. ViewFlipper one at a time?

Can you use ViewFlipper to switch one view at a time. I know about
ViewSwitcher but that can only have two views at a time. I have more
than two views I want to switch between and I would like to define
things in a XML layout file.

Thanks

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

3. ViewFlipper

4. ViewSwitch how to switch between views

5. About Network connection

6. Aver the air download and install application

7. Deploy from a webserver