maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Multimedia (https://talk.maemo.org/forumdisplay.php?f=32)
-   -   RAW picture (back again) (https://talk.maemo.org/showthread.php?t=43584)

ChakiShante 2010-02-06 17:21

RAW picture (back again)
 
A couple of weeks ago, I started investigating how to capture RAW data from the image sensor. I was nicely pointed to the gst-camera.c example (thanks Abbra).

After being diverted by other activities, I came back to that. The above example actually kind of works now (though I had to change the video source from v4l2src to v4l2camsrc).

So now I believe I can take a RAW picture however when I get to the point of writing the data to a file, I get a "Bad address" error and nothing gets saved. I would even get a seg fault if I tried to access the data. Anyone has an idea about why the pointer would be unreadable/unaccessible ?

For details, the faulty line is around line 303:
written = fwrite (data, size, 1, f);

Besides, the picture size is 864x656 which seems like a weird resolution. Is that something I can change or there's no other resolution available currently in RAW data ?

Thanks,
Chakishante


All times are GMT. The time now is 15:59.

vBulletin® Version 3.8.8