maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Nokia N800 (https://talk.maemo.org/forumdisplay.php?f=25)
-   -   Optimizing camera code (https://talk.maemo.org/showthread.php?t=15296)

0xCAFEBABE 2008-01-18 12:50

Optimizing camera code
 
Hey all,

I am using camera.c from the "How to use the Camera API" tutorial up on maemo.org to store individual still images on my N800.

This all works fine, but the startup time is abysmal.

I'm sure if you've played around with the compiled camera.c application, you'll have noticed that gst_element_link_filtered() takes ~18 seconds to return; out of a 22 second startup time. (Or have you?)

I'm writing some software that will upon "popping" the camera out, start the photo-taking application.

Hence why the performance is important. Popping out the camera and then 22 seconds later having the application appear is just not acceptable functionality.

So, if anyone has any ideas about how to improve the performance of gstreamer, or do it a completely different way, then please: shout up.

...Because i'm slowly running out of ideas :)

Thanks,

iamthewalrus 2008-01-18 14:42

Re: Optimizing camera code
 
Just an idea: By default the chat application starts, and does that pretty quick. Perhaps it is easier to just to try to change the default application?

zerojay 2008-01-18 14:46

Re: Optimizing camera code
 
There was a hack of the original camera code done by someone here which made the performance so much better. I believe it was called simplecam or simplecamera. The person included source as well. You should be able to find it on this forum somewhere.


All times are GMT. The time now is 07:55.

vBulletin® Version 3.8.8