[iPAQ] Digital photographs on the ipaq : memory problem

From: Werner Schulte <werner.a.t.schulte-ac.de>
Date: Sat Feb 23 2002 - 13:52:21 EST

Hello all,

I would like to announce a program for the ipaq / zaurus running QTopia 1.5.0
called qphoto.

It will be available from this afternoon from

http://www.uv-ac.de/qphoto

as ipkg.

QPhoto allows the preselection of digital photographs directly from
the cameras flashdisk (using a compact flash adapter). The goal is
to delete pictures, which are not nice and store the other ones
in separate directories, which can be named by the user.

In the first version, this dirs have to be located on the flashdisk itself,
next version will support a ramdisk storage and flashdisk copy.

Nevertheless the program is working, I have still some problems.

1. As Im using jpeg format (my camera does not support something else)
   I need a lot of memory to read the files in. You can watch /proc/meminfo
   and will find out, that sometimes (pictures above 1MByte jpeg) the memory
   is too low. In this case the process is killed (out of memory).

   Is there a way to use few memory during the jpeg read in ?
   If the picture is in the QPixmap, everything seems fine.

   How to reduce the /dev/tmpfs usage (to approx. max 5MByte) ?

2. I am mounting the flashdisk from program. To do this I do a fork and call
   "mount" with the appropriate parameters. I observed, that I have mainly
   the memory problem, when mounting is necessary (and therefore the fork is
   done). As I understand fork creates a complete copy of the process until
   the child process is terminated.

   Is there a more efficient way to get the "mount" done ?

3. To get information about the free storage on the flashdisk, I do
    another fork and call a script (df | grep ...) to get a temporary file
    with the required information, which is read in afterwards

    Is there a more efficient way to get the storage capacity ?

thanks in advance

-- 
Werner Schulte
Pflugstrasse 5b
65462 Ginsheim Gustavsburg
email : werner@schulte-ac.de
Received on Sat Feb 23 10:50:10 2002

This archive was generated by hypermail 2.1.8 : Tue May 04 2004 - 09:44:32 EDT