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. displaying contacts in a list

Hi,
I've been trying to display contacts in a list. Here's what I did:




activity.setContentView(R.layout.contacts);
                String[] projection = new String[] {
                            android.provider.BaseColumns._ID,
                            android.provider.Contacts.PeopleColumns.NAME,
                            //android.provider.Contacts.PhonesColumns.NUMBER,
                            //android.provider.Contacts.PeopleColumns.PHOTO
                        };

                int [] tempInt= new int[]{R.id.contactsList};


                        // Best way to retrieve a query; returns a managed 
query.
                        Cursor managedCursor =
activity.managedQuery(android.provider.Contacts.Phones.CONTENT_URI,
                                                projection,
                                                null,
        
android.provider.Contacts.PeopleColumns.NAME + " ASC"); // Order-by
clause.




        ListView contactsList=
(ListView)activity.findViewById(R.id.contactsList);
        SimpleCursorAdapter contactsAdapter= new
SimpleCursorAdapter(activity, android.R.layout.simple_list_item_1,
managedCursor, projection, tempInt );
        contactsList.setAdapter(contactsAdapter);


the above code does not give me and exception etc. but it doesn't
work. I see a blank list with no data in it. What could be the problem
and how can it be rectified?

Thanks,
Sylvester
--~--~---------~--~----~------------~-------~--~----~

2. Adding button to list 'Go to', 'Bookmarks', 'Windows', etc. with WebView

Hi all,

Here is my question: How can I easily modify this code to add 'my
button' at android web browser menu?

        super.onCreate(icicle);
        WebView w = new WebView(this);
        url = "www.test.com";
        w.loadUrl(url);
        setContentView(w);

Thanks,
Ruben

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

3. Retrieve Email Id from contacts

4. Lost sheep finder in the white spaces, please.

5. Android tracing and profiling

6. Read and modify and write back contacts

7. Android javadoc downloadable